OSDN Git Service

683a24e7767437b6e001e0b9b3224b71b14a24de
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
2
3         PR/11144
4         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
5
6 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
7
8         PR bootstrap/11043
9         * config/arc/t-arc: Replace bogus references to "x-crtinit.o", 
10         "x-crtfini.o" with "crtinit.o", "crtfini.o".
11
12         * fixinc/inclhack.def (limits_ifndefs): Add select test.
13         * fixinc/fixincl.x: Rebuild.
14
15         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
16         * fixinc/fixincl.x: Rebuild.
17
18 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
19
20         * doc/install.texi (Configuration): Document the valgrind option
21         to --enable-checking.
22
23 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
24
25         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
26
27 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28
29         * c-lex.c (cb_ident): Cast cstr.text to const char *.
30
31 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
32
33         * gcov-io.h: Update documentation.
34         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
35         GCOV_NOTE_MAGIC.
36         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
37         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
38         (struct gcov_var): Change buffer's type. Add endian flag.
39         (gcov_open): Remove mode in libgcov.
40         (gcov_magic): Prototype.
41         * gcov-io.c (from_file): New.
42         (gcov_open): Clear endian flag.
43         (gcov_magic): New.
44         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
45         pointers.
46         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
47         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
48         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
49         * gcov-iov.c (main): Correct cast.
50         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
51         conversion.
52         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
53         (coverage_init): Use GCOV_NOTE_SUFFIX.
54         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
55         Rename to gcov_version, and return flag.
56         (gcov_exit): Use gcov_version.
57         (__gcov_init): Use gcov_version.
58         * Makefile.in (coverageexts): Update.
59         * gcov.c (print_version): Remove endianness conversion.
60         (create_file_names): Use GCOV_NOTE_SUFFIX.
61         (read_graph_file): Use gcov_magic.
62         (read_count_file): Likewise.
63         * gcov-dump.c (dump_file): Remove endianness conversion, use
64         gcov_magic.
65
66 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
67
68         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
69         coverage is on.
70         * configure: Regenerated.
71         * Makefile.in (ALL_CFLAGS): Correct its comment.
72
73 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
74
75         * fold-const.c (make_range): Do not access operand 1 for a
76         zero-operand operator.
77
78 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
79
80         * toplev.c (warn_dummy, W_options): Die.
81         (display_help): Don't print W_options.
82         * common.opt: Add W_options help from toplev.c.
83
84 2003-07-09  Andreas Jaeger  <aj@suse.de>
85
86         * opts.c (wrap_help): Only pass int arguments as arguments to
87         printf's '*' modifier.  Change argument of function.
88
89 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
90
91         * doc/invoke.texi: Fix misspelling of "@item".
92
93 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
94
95         * config/i386/i386.md: Remove an old comment about
96         NOTICE_UPDATE_CC.
97
98 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
99
100         * cgraph.c (cgraph_node_name): New function.
101         (dump_cgraph): Use it.
102         * cgraph.h (cgraph_dump_file): Declare.
103         (cgraph_node_name): Declare.
104         * cgraphunit.c: Include timevar.h
105         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
106         (cgraph_optimize_function): Use TV_INTEGRATION.
107         (cgraph_mark_local_functions): reorganize dumps.
108         (cgraph_mark_functions_to_inline_once): Likewise.
109         (cgraph_optimize): Likewise; use timevar.
110         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
111         * toplev.c (dump_file_index): Add DFI_cgraph.
112         (dump_file_info): Likewise.
113         (cgraph_dump_file): New global variable.
114         (do_compile): Open and close cgraph dump.
115         * invoke.texi (-d): Document new flag; renumber.
116
117 2003-07-08  Roger Sayle  <roger@eyesopen.com>
118
119         PR c/11370
120         * calls.c (emit_call_1): Don't bother popping the arguments off of
121         the stack after a noreturn function call;  The adjustment is dead.
122         (expand_call): Likewise.
123
124 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
125
126         * expr.c (MOVE_MAX_PIECES): Move from here...
127         * defaults.h (MOVE_MAX_PIECES): ... to here.
128
129 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
130
131         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
132
133 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
134
135         * genattr.c (internal_dfa_insn_code): Don't prototype.
136         * genattrtab.c (attr_desc): Add `static_p' field.
137         (expand_units): Make blockage range and ready cost functions
138         static.
139         (write_attr_get): Don't add extern prototypes in C file.  Mark
140         static functions as appropriate.
141         (find_attr, make_internal_attr): Initialize static_p.
142         * genattrtab.h (ATTR_STATIC): New macro.
143         * genautomata.c (output_internal_reset_func): Mark output function
144         as inline.
145         (make_internal_dfa_insn_code_attr): Mark output function as static.
146
147 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
148
149         * genattrtab.h: Add new macros for attr `special' flags.
150         * genattrtab.c (attr_desc): Reorder/resize fields better.
151         Use attr `special' macros in all calls to make_internal_attr.
152         * genautomata.c: Likewise.
153
154 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
155
156         * c-common.c (c_estimate_num_insns_1): New static function.
157         (c_estimate_num_insns): New global function.
158         * c-common.h (DECL_NUM_STMTS): Rename to...
159         (DECL_ESTIMATED_INSNS): ... this.
160         (c_estimate_num_insns): Declare.
161         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
162         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
163         * c-semantics.c (add_stmt): Do not account statements.
164         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
165         New.
166         * langhooks.h (lang_hooks_for_tree_inlining): Add
167         estimate_num_insns
168         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
169         to 100.
170         (max-inline-insns): set to 300.
171         (min-inline-insns): set to 10.
172         * tree-inline.c (struct inline_data): Rename inlined_stmts to
173         inlined-insns.
174         (INSNS_PER_STMT): Kill.
175         (inlinable_function_p): Compute and store body size.
176         (expand_call_inline): Likewise.
177         (optimize_inline_calls): Likewise.
178
179 2003-07-08  James E Wilson  <wilson@tuliptree.org>
180
181         PR target/10021
182         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
183         loop over new variable t2 instead of t.
184
185 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
186
187         PR bootstrap/11455
188         * config/i386/winnt.c: Replace use of error(), warning() with
189         error_with_decl(), warning_with_decl(),  throughout.
190
191 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
192
193         * opts.c (wrap_help): Use unsigned int, not size_t.
194
195 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
196
197         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
198         as .file/.loc directives are incompatible with linker relaxation.
199
200 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
201
202         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
203         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
204         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
205         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
206         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
207         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
208         Escape { and } characters which are not part of range expressions.
209         * fixinc/fixincl.x: Regenerate.
210         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
211
212 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
213
214         PR c/1687
215         * tree-inline.c (find_alloca_call): Use
216         walk_tree_without_duplicates, instead of walk_tree.
217         (find_builtin_longjmp_call): Likewise.
218         * c-objc-common.c (c_cannot_inline_fn): Likewise.
219         * c-semantics.c (find_reachable_label): Likewise.
220
221 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
222
223         PR c/11420
224         * config/i386/i386.c (ix86_check_movabs): New function.
225         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
226         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
227         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
228
229 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
230
231         * Makefile.in (install-po): Cope with empty CATALOGS.
232
233 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
234
235         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
236         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
237         (SECTION_FUNCTION_TEMPLATE): Delete.
238         * config/mips/elf.h: As for elf64.h.
239         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
240         * config/mips/linux.h: As for elf.h
241         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
242         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
243         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
244         of in_sdata from current_section_name and current_section_flags.
245         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
246         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
247         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
248         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
249         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
250         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
251         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
252         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
253         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
254         (override_options): Remove setting of MASK_GPOPT.
255         (mips_output_external): Use mips_in_small_data_p to check whether a
256         symbol needs an .extern directive.  Don't emit such directives for
257         TARGET_EXPLICIT_RELOCS.
258         (mips_declare_object): Update accordingly.
259         (mips_select_rtx_section): Call named_section rather than
260         SMALL_DATA_SECTION.
261         (mips_select_section): Use default_elf_section_section for everything
262         except .text string constants.
263         (mips_in_small_data_p): New function.
264         (mips_encode_section_info): Remove small data handling.
265         (mips_unique_section): Delete.
266         (iris6_section_type_flags): New function.
267         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
268
269 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
270
271         PR Target/11453
272         * pa.md: Disparage all mtsar constraints.
273         (extzv, extv, insv): Don't fail on length of {32|64}.
274
275 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
276
277         * system.h: Poison MAP_CHARACTER.
278         * config/i370/i370-protos.h (mvs_map_char): Delete.
279         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
280         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
281         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
282
283 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
284
285         * toplev.c (randomize): Correct call to time().
286
287 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
288
289         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
290         REG_EQUIV notes as well.
291
292 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
293
294         * doc/md.texi: Fix the description of addmodecc.
295
296 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
297
298         * Makefile.in (top_builddir): Set to "..", not ".".
299         (INTLLIBS, INTLDEPS): Delete.
300         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
301         (LIBDEPS): Add $(LIBICONV_DEP).
302         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
303         (INCLUDES): Replace -I../intl with @INCINTL@.
304         ($(top_builddir)/intl/libintl.a): Delete rule.
305         (stage2-start, stage3-start, stage4-start, stageprofile-start,
306         stagefeedback-start): Use $$ for variable to be evaluated by
307         shell, not make.
308         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
309         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
310         * aclocal.m4: sinclude ../config/progtest.m4.  Add
311         contents of lcmessage.m4 from gettext distro.
312         * configure.in: Check for wchar.h and setlocale.  Set
313         LIBICONV_DEP to the empty string and substitute it.
314         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
315         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
316         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
317         in $LIBINTL, to avoid linking it twice.
318         * configure, config.in: Regenerate.
319
320 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
321
322         * fixinc/mkfixinc.sh: Remove winnt support.
323         * fixinc/fixinc.winnt: Delete with extreme prejudice.
324
325 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
326
327         * Makefile.in: Update.
328         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
329         * c.opt: Update documentation.
330         * common.opt: Add some help text.
331         * opts.c: Include intl.h.
332         (wrap_help, print_help): New.
333         (find_opt, handle_option, common_handle_option): opt_text now
334         contains the '-'.  Use print_help to output help.
335         * opts.h (struct cl_option): New member "help".
336         * opts.sh: Update to handle help text output and to prepend
337         options with '-'.
338         * toplev.c (display_help): Remove some help text.
339
340 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
341             Fariborz Jahanian  <fjahanian@apple.com>
342
343         * configure.in: Test for PowerPC mfcr field support in assembler.
344         * config.in, configure: Regenderated.
345
346         * config/rs6000/power4.md: Add mfcrf reservation.
347         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
348         * config/rs6000/rs6000.c (mfcr_operation): Define.
349         (print_operand): Add 'Q' case for mfcrf.
350         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
351         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
352         (movcc_internal1): Emit optional field operand for mfcr and set
353         "type" attribute appropriately.
354         (mfcr SCC): Likewise.
355         (movesi_from_cr_one): New.
356
357 2003-07-07  Roger Sayle  <roger@eyesopen.com>
358
359         * config/i386/i386.md: Correct check-in of incorrect version.
360
361 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
362
363         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
364         adjacent stdio calls.
365         * c-decl.c (c_print_identifier): Likewise.
366         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
367         * print-rtl.c (print_rtx): Likewise.
368         * print-tree.c (print_node_brief, print_node): Likewise.
369         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
370
371         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
372         * config.in, configure: Regenerated.
373
374 2003-07-07  Roger Sayle  <roger@eyesopen.com>
375
376         PR target/10979
377         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
378         Changed to define_expand patterns that copy operand[1] to prevent
379         it from being clobbered before emitting an atan2?f3_1 insn.
380         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
381         patterns that actually specify the behaviour of x87's FPATAN.
382
383 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
384
385         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
386         clearing of SYMBOL_FLAG_LOCAL bit.
387         If vcall_offset fits into signed 16-bit immediate, use
388         one instruction for both addition and load.
389
390 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
391
392         * opts.c (common_handle_option): Correct handling of the
393         -falign- switches that do and don't take an argument.
394
395 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
396
397         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
398         today.
399         (pushhi1_h8300hs): Likewise.
400
401 2003-07-07  Andreas Jaeger  <aj@suse.de>
402
403         * genextract.c: Convert remaining prototypes to ISO C90.
404
405         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
406         * fold-const.c (fold_single_bit_test): Likewise.
407         * diagnostic.c (default_diagnostic_finalizer): Likewise.
408         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
409
410         * gengtype.c (write_array): Generate ISO C90 prototypes.
411
412         * genflags.c (gen_proto): Generate ISO C90 prototypes.
413
414 2003-07-07  Roger Sayle  <roger@eyesopen.com>
415
416         PR optimization/11059
417         * expr.c (can_store_by_pieces): Return true if length is zero.
418         (store_by_pieces): If length is zero and endp is two, abort,
419         othwerise, if length is zero and endp is not two, return "to".
420         (clear_by_pieces): Do nothing if length is zero.
421         (clear_storage): Do nothing if length is zero.
422         (store_constructor): Simplify code when size is zero, or the
423         target has already been cleared.  This avoids emitting a
424         blockage instruction when initializing empty structures.
425
426 2003-07-07  Andreas Jaeger  <aj@suse.de>
427
428         * mips-tfile.c: Convert prototypes to ISO C90.
429         * mips-tdump.c: Convert prototypes to ISO C90.
430
431 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
432
433         * rtl.h (emit_line_note): Take a location_t.
434         (emit_line_note_force): Remove.
435         (set_file_and_line_for_statement): Take a location_t.
436         * tree.g (emit_line_note): Take a location_t.
437         * emit-rtl.c (emit_line_note): Take a location_t.
438         (emit_line_note_force): Remove.
439         * function.c (init_function_start): Adjust emit_line_note call.
440         (expand_function_end): Use force_next_line_note, not
441         emit_line_note_force.
442         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
443         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
444         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
445         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
446         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
447         genrtl_continue_stmt, genrtl_switch_stmt,
448         genrtl_asm_stmt): Likewise.
449         * expr.c (expand_expr): Likewise.
450         * integrate.c (expand_inline_function): Likewise.
451         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
452         (expand_decl_init): Adjust emit_line_note call.
453
454 2003-07-07  Dale Johannesen  <dalej@apple.com>
455
456         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
457
458 2003-07-07  Andreas Jaeger  <aj@suse.de>
459
460         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
461         * config/i386/i386.c: Likewise.
462
463 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
464
465         * config/h8300/h8300.md: Use gen_int_mode instead of
466         GEN_INT (trunc_int_for_mode (...)).
467
468 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
469
470         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
471         2 bytes and then subtract 2 from the stack pointer.
472         (pushhi1_h8300hs): Likewise.
473
474 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
475
476         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
477         -frandom-seed.
478         * configure: Regenerated.
479         * Makefile.in: Remove extraneous comment.
480         * toplev.c (randomize): Protect against potential multiple calls.
481         * doc/invoke.texi (-frandom-seed): Document use for in coverage
482         files.
483
484 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
485             Eric Botcazou  <ebotcazou@libertysurf.fr>
486
487         PR optimization/11198
488         * alias.c (objects_must_conflict_p): Return 1 if the types have
489         the same alias set, not if the alias sets only conflict.
490
491 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
492
493         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
494         (convert_cset): Change inbuf to type ICONV_CONST char.
495         * Makefile.in (LIBS): Add LIBICONV.
496
497         * doc/invoke.texi (-falign-functions): Document that
498         when n is zero then a machine-dependent default is used.
499         (-falign-labels): Document that when n is zero then a
500         machine-dependent default is used and that -falign-labels =1
501         is equivalent to -fno-align-labels.
502         (-falign-loops): Likewise.
503         (-falign-jumps): Likewise.
504
505 2003-07-06  Art Haas  <ahaas@airmail.net>
506
507         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
508         initializer syntax.
509
510 2003-07-06  James E Wilson  <wilson@tuliptree.org>
511
512         PR optimization/9812
513         * rtl.h (mem_for_const_double): Delete prototype.
514         * varasm.c (mem_for_const_double): Delete function.
515         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
516         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
517         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
518         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
519         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
520         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
521         comment about confused support for XFmode constants.
522
523 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
524
525         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
526
527 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
528
529         * config/h8300/h8300.c: Fix comment typos.
530         * config/h8300/h8300.md: Likewise.
531         * config/i386/athlon.md: Likewise.
532         * config/i386/i386.c: Likewise.
533         * config/i386/pentium.md: Likewise.
534         * config/ia64/ia64.c: Likewise.
535         * config/ia64/itanium1.md: Likewise.
536         * config/ia64/itanium2.md: Likewise.
537         * config/m32r/m32r.md: Likewise.
538         * config/m68hc11/m68hc11.c: Likewise.
539         * config/mcore/mcore.c: Likewise.
540         * config/mips/sr71k.md: Likewise.
541         * config/mips/t-iris5-as: Likewise.
542         * config/mmix/mmix.h: Likewise.
543         * config/ns32k/ns32k.h: Likewise.
544         * config/ns32k/NOTES: Fix a typo.
545
546 2003-07-06  Andreas Jaeger  <aj@suse.de>
547
548         * stmt.c: Convert remaining prototypes to ISO C90.
549         * cfglayout.c: Likewise.
550         * dbxout.c: Likewise.
551         * gcc.c: Likewise.
552         * genemit.c: Likewise.
553
554         * basic-block.h: Convert prototypes to ISO C90.
555         * c-parse.in: Likewise.
556         * c-pragma.h: Likewise.
557         * c-typeck.c: Likewise.
558         * cfghooks.h: Likewise.
559         * cfgloopanal.c: Likewise.
560         * dbxout.h: Likewise.
561         * debug.h: Likewise.
562         * dwarf2asm.h: Likewise.
563         * gcov.c: Likewise.
564         * gengtype-lex.l: Likewise.
565         * sched-int.h: Likewise.
566         * timevar.c: Likewise.
567
568 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
569
570         * c-common.h (c_comon_handle_filename,
571         c_common_missing_arguement): New.
572         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
573         LANG_HOOKS_MISSING_ARGUMENT): New.
574         * c-opts.c (missing_arg): Rename c_common_missing_argument,
575         update to be an appropriate langhook.
576         (c_common_handle_option): Don't handle filenames.
577         (c_common_handle_filename): New.
578         * hooks.c (hook_void_constcharptr,
579         hook_bool_constcharptr_size_t_false): New.
580         * hooks.h (hook_void_constcharptr,
581         hook_bool_constcharptr_size_t_false): New.
582         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
583         LANG_HOOKS_MISSING_ARGUMENT): New.
584         (LANG_HOOKS_INITIALIZER): Update.
585         * langhooks.h (struct lang_hooks): Add handle_filename and
586         missing_argument.
587         * opts.c (handle_option): Don't handle filenames here, but ...
588         (handle_options): ... here.
589         (common_handle_option): Don't handle missing arguments here.
590         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
591         LANG_HOOKS_MISSING_ARGUMENT): New.
592
593 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
594
595         * Makfile.in: Remove traces of mbchar.
596         * c-parse.in (MULTIBYTE_CHARS): Remove.
597         * config.in (MULTIBYTE_CHARS): Remove.
598         * configure: Remove --enable-mbchar.
599         * configure.in: Remove --enable-mbchar.
600         * mbchar.c, mbchar.h: Remove.
601         * system.h: Poison MULTIBYTE_CHARS.
602         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
603         * config/linux.h (MULTIBYTE_CHARS): Remove.
604         * config/svr4.h (MULTIBYTE_CHARS): Remove.
605         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
606
607 2003-07-06  Andreas Jaeger  <aj@suse.de>
608
609         * varray.c (varray_check_failed): Fix typo.
610
611         * unroll.c: Convert prototypes to ISO C90.
612         * varasm.c: Likewise.
613         * varray.c: Likewise.
614         * varray.h: Likewise.
615         * vmsdbgout.c: Likewise.
616         * xcoffout.c: Likewise.
617         * xcoffout.h: Likewise.
618
619 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
620
621         * gcov-io.h: Add a local time stamp.
622         (struct gcov_info): Add stamp field.
623         (gcov_truncate): New.
624         * coverage.c (read_counts_file): Skip the stamp.
625         (coverage_begin_output): Write the stamp.
626         (build_gcov_info): Declare and init the stamp.
627         (coverage_finish): Only unlink data file, if stamp is zero.
628         * gcov-dump.c (dump_file): Dump the stamp.
629         * gcov.c (bbg_stamp): New.
630         (release_structures): Clear bbg_stamp.
631         (read_graph_file): Read stamp.
632         (read_count_file): Check stamp.
633         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
634
635 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
636
637         * tree.h (default_flag_random_seed): Remove.
638         * toplev.h (local_tick): Declare.
639         * tree.c (flag_random_seed, default_flag_random_seed): Move to
640         toplev.c.
641         (append_random_chars): Don't call default_flag_random_seed.
642         * toplev.c (flag_random_seed): Define here. Set local_tick.
643         (local_tick): Define.
644         (randomize): New, moved from tree.c.
645         (print_switch_values): Adjust.
646         (toplev_main): Call randomize.
647
648 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
649
650         * tree.h (crc32_string): Declare.
651         * tree.c (append_random_chars): Remove.
652         (crc32_string): New.
653         (get_file_function_name_long): Use crc32_string here.
654
655 2003-07-06  Andreas Jaeger  <aj@suse.de>
656
657         * gcc.c: Convert prototypes to ISO C90.
658         * gcc.h: Likewise.
659         * gcov-dump.c: Likewise.
660         * gcov-iov.c: Likewise.
661         * gcse.c: Likewise.
662         * genattrtab.h: Likewise.
663         * ggc.h: Likewise.
664         * global.c: Likewise.
665         * graph.c: Likewise.
666         * graph.h: Likewise.
667         * hosthooks.h: Likewise.
668         * hooks.h: Likewise.
669         * hooks.c: Likewise.
670         * hashtable.h: Likewise.
671         * hashtable.c: Likewise.
672         * haifa-sched.c: Likewise.
673         * integrate.h: Likewise.
674         * integrate.c: Likewise.
675         * input.h: Likewise.
676         * ifcvt.c: Likewise.
677         * jump.c: Likewise.
678         * langhooks-def.h: Likewise.  Add extern to prototypes.
679         * langhooks.c: Likewise.
680         * langhooks.h: Likewise.
681         * lcm.c: Likewise.
682         * local-alloc.c: Likewise.
683         * loop-init.c: Likewise.
684         * loop-unroll.c: Likewise.
685         * loop-unswitch.c: Likewise.
686         * loop.c: Likewise.
687         * loop.h: Likewise. Add extern to prototypes.
688         * machmode.h: Likewise.
689         * main.c: Likewise.
690         * mbchar.c: Likewise.
691         * mbchar.h: Likewise.
692         * mkdeps.c: Likewise.
693         * mkdeps.h: Likewise.
694         * optabs.c: Likewise.
695         * optabs.h: Likewise.
696         * output.h: Likewise.
697         * gccspec.c: Likwise.
698         * postreload.c: Likewise.
699         * prefix.c: Likewise.
700         * prefix.h: Likewise.
701         * print-rtl.c: Likewise.
702         * print-tree.c: Likewise.
703         * profile.c: Likewise.
704         * read-rtl.c: Likewise.
705         * real.c: Likewise.
706         * real.h: Likewise.
707         * recog.c: Likewise.
708         * recog.h: Likewise.
709         * reg-stack.c: Likewise.
710         * regclass.c: Likewise.
711         * regmove.c: Likewise.
712         * regrename.c: Likewise.
713         * regs.h: Likewise.
714         * reload.c: Likewise.
715         * reload.h: Likewise.
716         * reload1.c: Likewise.
717         * reorg.c: Likewise.
718         * resource.c: Likewise.
719         * resource.h: Likewise.
720         * rtl-error.c: Likewise.
721         * rtl.c: Likewise.
722         * rtl.h: Likewise.
723         * rtlanal.c: Likewise.
724         * sbitmap.c: Likewise.
725         * sbitmap.h: Likewise.
726         * scan-decls.c: Likewise.
727         * scan.c: Likewise.
728         * sched-deps.c: Likewise.
729         * sched-ebb.c: Likewise.
730         * sched-int.h: Likewise.
731         * sched-rgn.c: Likewise.
732         * sched-vis.c: Likewise.
733         * sibcall.c: Likewise.
734         * simplify-rtx.c: Likewise.
735         * sreal.c: Likewise.
736         * sreal.h: Likewise.
737         * ssa-ccp.c: Likewise.
738         * ssa-dce.c: Likewise.
739         * ssa.c: Likewise.
740         * ssa.h: Likewise.
741         * stack.h: Likewise.
742         * stmt.c: Likewise.
743         * stor-layout.c: Likewise.
744         * stringpool.c: Likewise.
745         * target.h: Likewise.
746         * timevar.c: Likewise.
747         * timevar.h: Likewise.
748         * tlink.c: Likewise.
749         * tracer.c: Likewise.
750         * tree-inline.c: Likewise.
751         * tree-inline.h: Likewise.
752         * tree.c: Likewise.
753         * tree.h: Likewise.
754
755 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
756
757         * combine.c (nonzero_bits1): Fix a warning.
758
759 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
760
761         * config/h8300/h8300.c (compute_mov_length): Correct the
762         length of loading CONST0_RTX (SFmode).
763
764 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
765
766         * toplev.c (output_clean_symbol_name): Remove.
767         * toplev.h (output_clean_symbol_name): Remove.
768         * config/alpha/alpha.c (unicosmk_output_module_name): Use
769         lbasename & clean_symbol_name.
770
771 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
772
773         * ggc.h: Follow spelling conventions.
774         * config/i386/i386.c: Likewise.
775         * config/i386/winnt.c: Likewise.
776         * config/rs6000/rs6000.c: Likewise.
777
778 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
779
780         * bt-load.c: Fix comment typos.
781         * c-incpath.c: Likewise.
782         * cfg.c: Likewise.
783         * cfgcleanup.c: Likewise.
784         * cfgloop.h: Likewise.
785         * cfgloopmanip.c: Likewise.
786         * cfgrtl.c: Likewise.
787         * diagnostic.h: Likewise.
788         * dwarfout.c: Likewise.
789         * emit-rtl.c: Likewise.
790         * et-forest.c: Likewise.
791         * et-forest.h: Likewise.
792         * expr.c: Likewise.
793         * gcse.c: Likewise.
794         * genattr.c: Likewise.
795         * jump.c: Likewise.
796         * langhooks.h: Likewise.
797         * local-alloc.c: Likewise.
798         * loop-unroll.c: Likewise.
799         * loop-unswitch.c: Likewise.
800         * ra-build.c: Likewise.
801         * regclass.c: Likewise.
802         * regmove.c: Likewise.
803         * rtl.def: Likewise.
804         * rtlanal.c: Likewise.
805         * sched-ebb.c: Likewise.
806         * sched-rgn.c: Likewise.
807         * simplify-rtx.c: Likewise.
808         * ssa.c: Likewise.
809         * tracer.c: Likewise.
810         * tree.c: Likewise.
811
812 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
813
814         * cppcharset.c: Use the correct return type for the fallback iconv
815         macro.
816
817 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
818
819         Blame to Jan Hubicka  <jh@suse.cz>
820         * cfglayout.c (record_effective_endpoints): Split insns before
821         first basic block correctly.
822
823 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
824
825         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
826         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
827         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
828
829 2003-07-05  Andreas Jaeger  <aj@suse.de>
830
831         * genattrtab.c (write_attr_get): Revert part of last patch to
832         always write out a prototype.
833
834         * genemit.c (gen_split): Readd lost unused attributes in last
835         patch.
836
837 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
838
839         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
840         different from header.
841
842 2003-07-05  Andreas Schwab  <schwab@suse.de>
843
844         * config/m68k/m68k.c: Remove code protected by CRDS.
845         * config/m68k/m68k.md: Likewise.
846
847 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
848
849         PR driver/11417
850         * c-opts.c (permit_fortran_options): New.
851         (c_common_init_options): Accept fortran front end options if
852         it looks like we might be preprocessing Fortran.
853         (c_common_handle_option): Don't reject switch if permit_fotran_options.
854
855 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
856
857         * genattr.c (internal_dfa_insn_code): Output prototype.
858         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
859         * genautomata.c: Likewise.
860         * genconditions.c: Likewise.
861         * genemit.c: Likewise.
862         * genextract.c: Likewise.
863         * gengenrtl.c: Likewise.
864         * gengtype.c: Likewise.
865         * genopinit.c: Likewise.
866         * genoutput.c: Likewise.
867         * genpeep.c: Likewise.
868         * genrecog.c: Likewise.
869
870 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
871
872         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
873         (struct cpp_options): Add narrow_charset, wide_charset,
874         bytes_big_endian fields.  Remove EBCDIC field.
875         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
876
877         * cpphash.h: Include <iconv.h> if we have it, otherwise
878         provide a dummy definition of iconv_t.
879         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
880         (_cpp_valid_ucn): Update prototype.
881         (_cpp_destroy_iconv): New prototype.
882
883         * doc/cpp.texi: Document character set handling.
884         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
885         * doc/extend.texi: Delete entire section on multiline strings.
886         Rewrite section on __FUNCTION__ etc now that these are
887         variables in C.
888
889         * cppucnid.tab, cppucnid.pl: New files.
890         * cppucnid.h: New generated file.
891         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
892         (iconv_open, iconv, iconv_close): Provide dummy definitions
893         if !HAVE_ICONV.
894         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
895         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
896         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
897         cpp_interpret_string, narrow_str_to_charconst,
898         wide_str_to_charconst): New.
899         (ucn_valid_in_identifier): Use a binary search through the
900         ucnranges table defined in cppucnid.h, not a long chain of if
901         statements.
902         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
903         character names are only valid in C++ and C99" to a warning.
904         Issue the "meaning of \[uU] is different in traditional C"
905         warning here.  Take care not to let iconv see an invalid UCS
906         value if we get a malformed UCN.  Issue an error if we don't
907         have iconv.
908         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
909         cpp_interpret_string to do the heavy lifting.
910
911         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
912         narrow_charset, wide_charset fields of options structure.
913         (cpp_destroy): Call _cpp_destroy_iconv.
914         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
915         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
916         (cpp_interpret_charconst): Moved to cppcharset.c.
917         * cpplib.c (dequote_string): Delete.
918         (interpret_string_notranslate): New.
919         (do_line, do_linemarker): Use interpret_string_notranslate.
920
921         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
922
923         * c-common.c (fname_string, combine_strings): Delete.
924         * c-common.h (fname_string, combine_strings): Delete prototypes.
925         * c-lex.c (ignore_escape_flag): Delete.
926         (cb_ident): Use cpp_interpret_string, not lex_string.
927         (get_nonpadding_token): New function.
928         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
929         Adjust calls to lex_string.  Don't write *value twice.
930         (lex_string): Now handles string constant concatenation.
931         Most of the work handed off to cpp_interpret_string.
932         Call fix_string_type here.
933         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
934         FUNC_NAME, throughout.
935         (OBJC_STRING): New token type.
936         (primary:STRING): No need to call fix_string_type here.
937         (primary:objc_string): Make that OBJC_STRING.
938         (objc_string nonterminal): Delete.
939         (yylexname): Delete code to handle fake string constants.
940         (yylexstring): Delete entirely.
941         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
942         to handle CPP_ATSIGN.
943
944         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
945         * c-opts.c (missing_arg, c_common_handle_option): Handle
946         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
947         (c_common_init): Set cpp_opts->bytes_big_endian, not
948         cpp_opts->EBCDIC.  Call cpp_init_iconv.
949         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
950         (TARGET_EBCDIC): Delete default definition.
951
952         * objc/objc-act.c (build_objc_string_object): No need to
953         handle string constant concatenation.
954
955 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
956
957         * doc/install.texi: Fix typos.
958         * doc/invoke.texi: Likewise.
959         * doc/tm.texi: Likewise.
960
961 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
962
963         * config/pa/fptr.c: Fix comment typos.
964         * config/pa/pa-64.h: Likewise.
965         * config/pa/pa.c: Likewise.
966         * config/pa/pa.h: Likewise.
967         * config/rs6000/603.md: Likewise.
968         * config/rs6000/7xx.md: Likewise.
969         * config/rs6000/darwin.h: Likewise.
970         * config/rs6000/freebsd.h: Likewise.
971         * config/rs6000/rs6000.c: Likewise.
972         * config/rs6000/rs6000.md: Likewise.
973         * config/rs6000/spe.h: Likewise.
974
975 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
976
977         * config/s390/2064.md: Change GNU CC to GCC.
978         * config/s390/2084.md: Likewise.
979         * config/s390/fixdfdi.h: Likewise.
980         * config/s390/linux.h: Likewise.
981         * config/s390/s390-modes.def: Likewise.
982         * config/s390/s390-protos.h: Likewise.
983         * config/s390/s390.c: Likewise.
984         * config/s390/s390.h: Likewise.
985         * config/s390/s390.md: Likewise.
986         * config/s390/s390x.h: Likewise.
987
988 2003-07-04  Jeff Law  <law@redhat.com>
989
990         PR c/11428
991         * expr.c (do_store_flag): Pass in the correct result type
992         when calling fold_single_bit_test.
993         * fold-const.c (fold_single_bit_test): Use result_type for the
994         result when folding a sign bit test.
995
996 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
997
998         * opts.c (common_handle_options): Negate sense of -falign- switches.
999
1000 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
1001
1002         * Makefile.in: Replace PWD with PWD_COMMAND.
1003
1004 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1005
1006         * cfgloopanal.c (count_strange_loop_iterations): New static function.
1007         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
1008         Handle strange loops.
1009
1010 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
1011
1012         * install.texi: Even the g77 manpage is derived from
1013         the full g77 manual.
1014
1015 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
1016
1017         * ABOUT-NLS: Delete.
1018         * intl: Delete entire directory.
1019         * aclocal.m4: Include ../config/gettext.m4.  Delete
1020         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
1021         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
1022         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
1023         Remove intl/Makefile from all_outputs.
1024         * configure, config.in: Regenerate.
1025         * Makefile.in: Expunge all references to intl subdirectory.
1026         Add -I../intl to INCLUDES.
1027         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
1028
1029 2003-07-04  Roger Sayle  <roger@eyesopen.com>
1030
1031         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
1032         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
1033
1034 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
1035
1036         PR c++/5287, PR c++/7910, PR c++/11021
1037         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
1038         dllimport attribute if function is defined at declaration, but
1039         report error instead. Likewise for dllimport'd variable
1040         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
1041         declared within functions, Report error if dllimport or dllexport
1042         symbol is not global.
1043         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
1044         if defined after declaration or if inlined. Don't allow definition
1045         of static data members of C++ classes. Don't dllimport virtual
1046         methods.
1047         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
1048         (i386_pe_mark_dllimport): Remove unnecessary checks.
1049         (i386_pe_encode_section_info): Warn if the dllimport attribute
1050         and symbol prefix have been instantiated and then overridden.
1051
1052         * doc/extend.texi: Document dllimport and dllexport attributes.
1053
1054         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
1055
1056 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
1057
1058         * config/kaos.h (CPP_PREDEFINES): Delete.
1059         (TARGET_OS_CPP_BUILTINS): New.
1060
1061 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1062
1063         * c-aux-info.c: Include toplev.h after c-tree.h.
1064         * c-common.c: Likewise.
1065         (GCC_DIAG_STYLE): Undef.
1066         * c-semantics.c (GCC_DIAG_STYLE): Define.
1067         * c-tree.h (GCC_DIAG_STYLE): Likewise.
1068         * diagnostic.h (inform): Move prototype to toplev.h.
1069         * jump.c: Include diagnostic.h before toplev.h.
1070         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
1071         (warning, error, fatal_error, pedwarn, sorry, inform,
1072         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
1073
1074 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1075
1076         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
1077         at all if edge is not specified.
1078         (can_copy_bbs_p, copy_bbs): New.
1079         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
1080         * cfgloop.c (get_loop_body): Comment more precisely.
1081         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
1082         (scale_bbs_frequencies): Fix comment typo.
1083         (can_duplicate_loop_p): Use can_copy_bbs_p.
1084         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
1085
1086 2003-07-03  Devang Patel <dpatel@apple.com>
1087
1088         * c-opts.c (c_common_parse_file): Remove extra
1089         debug_hooks->start_source_file call.
1090
1091 2003-07-03  Roger Sayle  <roger@eyesopen.com>
1092
1093         * real.c (real_trunc, real_floor, real_ceil): New functions
1094         to implement trunc, floor and ceil respectively.
1095         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
1096         * builtins.c (integer_valued_real_p): New function to test if
1097         a floating point expression has an integer valued result.
1098         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
1099         foo(x) where foo is an integer rounding function.  Similarly,
1100         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
1101         (double)(int)x when both foo and bar are integer rounding
1102         functions and we don't need to honor errno.
1103         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
1104         New functions to fold trunc, floor and ceil.
1105         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
1106         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
1107         to fold BUILT_IN_CEIL*.
1108         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
1109         the remaining integer rounding functions.
1110
1111 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1112
1113         * config/sparc/sparc.c (function_arg_partial_nregs): Use
1114         SPARC_INT_ARG_MAX to determine where to split unnamed
1115         complex FP arguments.
1116
1117 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
1118
1119         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
1120         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
1121         (merge_blocks_move_predecessor_nojumps,
1122          merge_blocks_move_successor_nojumps): Use merge_blocks.
1123         (try_optimize_cfg): Use merge_blocks_move.
1124         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
1125         (merge_blocks_nomove): Rename to rtl_merge_blocks.
1126         (cfg_layout_create_basic_block): New.
1127         (rtl_can_merge_blocks): New.
1128         (cfg_layout_split_block): Do not alloc aux by hand.
1129         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
1130         merge_blocks.
1131         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
1132         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
1133         * cfgloopmanip.c (loop_split_edge_with): Likewise.
1134         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
1135
1136         * basic-block.h (basic_block_def): Add field 'rbi'.
1137         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
1138         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
1139         * cfg.c (entry_exit_blocks): Add new field.
1140         * cfglayout.c: Include alloc-pool.h;
1141         (cfg_layout_pool): New.
1142         (record_effective_endpoints, fixup_reorder_chain,
1143         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
1144         of rbi.
1145         (cfg_layout_initialize_rbi): New function.
1146         (cfg_layout_initialize): Use it.
1147         (cfg_layout_finalize): Clear rbi fields.
1148         * cfglayout.h (RBI): Kill.
1149         (cfg_layout_initialize_rbi): Declare.
1150         * cfgloopmanip.c (copy_bbs): Use rbi.
1151         (record_exit_edges): Likewise.
1152         (duplicate_loop_to_header_edge): Likewise.
1153         * cfgrtl.c (cfg_layout_create_basic_block): Use
1154         cfg_layout_initialize_rbi.
1155         (cfg_layout_split_block): Use rbi.
1156         (cfg_layout_delete_block): Likewise.
1157         * loop-init.c (loop_optimizer_finalize): Likewise.
1158         * loop-unswitch.c (unswitch_loop): Likewise.
1159         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
1160
1161         * cfgrtl.c: Update comments.
1162         (try_redirect_by_replacing_jump): New argument.
1163         (redirect_branch_edge): Break out from ...
1164         (rtl_redirect_edge_and_branch): ... this one.
1165         (update_cfg_after_block_merging): Break out from ...
1166         (rtl_merge_blocks): ... this one.
1167         (cfg_layout_split_edge): New.
1168         (cfg_layout_merge_blocks): New.
1169         (cfg_layout_can_merge_blocks_p): New.
1170         (cfg_layout_redirect_edge_and_branch): Reorganize.
1171         (cfg_layout_rtl_cfg_hooks): Fill in.
1172         (cfg_layout_delete_block): Kill barriers.
1173         * cfganal.c (can_fallthru): Deal with exit blocks
1174         * cfglayout.c (cfg_layout_function_header): New function
1175         (record_effective_endpoints): Record function header.
1176         (fixup_reorder_chain): Fixup dead jumptables; place header
1177
1178         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
1179         * bb-reorder.c (cfg_layout_initialize): Update call.
1180         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
1181         edges in cfglayout mode.
1182         * cfglayout.c (cleanup_unconditional_jumps): Kill.
1183         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
1184         * cfglayout.h (cfg_layout_initialize): Update prototype.
1185         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
1186         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
1187         * flow.c (propagate_block): Do not crash when basic block ends
1188         by first insn in the chain.
1189         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
1190         do loop discovery.
1191         * tracer.c (tracer): Update call of cfg_layout_initialize.
1192
1193 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1194
1195         * Makefile.in: Use dependency variables in lieu of explicit
1196         files throughout.
1197
1198 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
1199
1200         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
1201         * tree.h: ...to here.
1202
1203 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
1204
1205         * config/s390/2064.md: Fix comment typos.
1206         * config/s390/2084.md: Likewise.
1207         * config/s390/s390.c: Likewise.
1208         * config/s390/s390.md: Likewise.
1209         * config/sh/sh.c: Likewise.
1210         * config/sh/sh.h: Likewise.
1211         * config/sh/sh.md: Likewise.
1212         * config/sparc/sparc.c: Likewise.
1213         * config/sparc/sparc.h: Likewise.
1214         * config/sparc/sparc.md: Likewise.
1215         * config/stormy16/stormy16.c: Likewise.
1216         * config/stormy16/stormy16.h: Likewise.
1217         * config/stormy16/stormy-abi: Fix a typo.
1218
1219 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
1220
1221         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
1222
1223 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1224
1225         * config/mips/mips.h (save_argv): Delete.
1226
1227 2003-07-03  Roger Sayle  <roger@eyesopen.com>
1228
1229         PR target/10700
1230         * fold-const.c (extract_muldiv_1): There's nothing that can be done
1231         if the expression is a SAVE_EXPR.
1232
1233 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
1234
1235         * config/m32r/m32r.c: Fix comment typos.
1236         * config/m68hc11/m68hc11.c: Likewise.
1237         * config/m68hc11/m68hc11.h: Likewise.
1238         * config/m68k/m68k.c: Likewise.
1239         * config/mcore/mcore.c: Likewise.
1240         * config/mcore/mcore.h: Likewise.
1241         * config/mcore/mcore.md: Likewise.
1242         * config/mips/mips.c: Likewise.
1243         * config/mips/mips.h: Likewise.
1244         * config/mips/mips.md: Likewise.
1245         * config/mips/netbsd.h: Likewise.
1246         * config/mn10300/mn10300.c: Likewise.
1247
1248 2003-07-03  Andreas Schwab  <schwab@suse.de>
1249
1250         * dbxout.c (pending_bincls): Move decl down inside
1251         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
1252
1253 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
1254
1255         * rtl.h (NOTE_DATA): Refer to whole union.
1256         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
1257
1258 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1259
1260         PR optimization/11381
1261         * simplify-rtx.c (simplify_relational_operation): Check that
1262         two equal operands have no side-effects before simplifying
1263         the comparison.
1264
1265 2003-07-02  Jeff Law  <law@redhat.com>
1266
1267         * expr.c (do_store_flag): Remove special case folding for
1268         single bit tests.  Instead call back into the commonized folder
1269         routine.
1270         * fold-const.c (fold_single_bit_test): New function, mostly
1271         extracted from do_store_flag, with an additional case extracted
1272         from fold.
1273         (fold): Call fold_single_bit_test appropriately.
1274         * tree.h (fold_single_bit_test): Prototype.
1275
1276 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
1277
1278         * system.h: Include filenames.h.
1279         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
1280         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
1281         define based on HAVE_DOS_BASED_FILE_SYSTEM.
1282         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
1283         * config/i386/xm-mingw32.h: Don't define
1284         HAVE_DOS_BASED_FILE_SYSTEM,
1285         DIR_SEPARATOR, or DIR_SEPARATOR_2.
1286         * doc/hostconfig.texi: Update to match.
1287
1288         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
1289         config/i386/cygwin.h:
1290         Use IS_ABSOLUTE_PATH throughout.
1291         * gcc.c (DIR_UP): Delete, unused.
1292         * protoize.c (IS_SAME_PATH): Define in terms of
1293         FILENAME_CMP.
1294         (is_abspath): Delete.
1295
1296 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
1297
1298         * config/i386/emmintrin.h: Fix comment typos.
1299         * config/i386/i386.c: Likewise.
1300         * config/i386/i386.h: Likewise.
1301         * config/i386/sco5.h: Likewise.
1302         * config/ia64/ia64.c: Likewise.
1303         * config/ia64/itanium2.md: Likewise.
1304
1305 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1306
1307         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
1308         DBX_USE_BINCL.
1309         (emit_bincl_stab): Same.
1310         (emit_pending_bincls): Same.
1311
1312 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
1313
1314         * config/h8300/h8300.c (compute_mov_length): Fix the length of
1315         loading CONST0_RTX (SFmode).
1316         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
1317         'G' to CONST0_RTX (SFmode).
1318         * config/h8300/h8300.md (movsf_h8300): Change the first
1319         constraint to 'G'.
1320         (movsf_h8300h): Likewise.
1321
1322 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
1323
1324         * c-common.h (c_common_init_options): New prototype.
1325         * c-opts.c (deferred_size): Remove.
1326         (defer_opt): Array is now pre-allocated.
1327         (c_common_init_options): Pre-allocate deferred_opts.  Make
1328         lang_flags unsigned.
1329         (push_command_line_options): Free deferred_opts.
1330         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
1331         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
1332         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
1333         * langhooks.h (struct lang_hooks): New prototype for init_options.
1334         * main.c (main): Cast argv.
1335         * opts.c (handle_option, handle_options): Update prototypes.
1336         (decode_options): save_argc, save_argv are not global.  Constify.
1337         * opts.h (decode_options): New prototype.
1338         * toplev.c (general_init): New protoype.
1339         (save_argv): Make static.
1340         (save_argc): Remove.
1341         (print_switch_values, general_init): Constify.
1342         (toplev_main): Save argv.
1343         * toplev.h (toplev_main): Update prototype.
1344         (save_argc, save_argv): Remove.
1345
1346 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
1347
1348         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
1349         (emit_bincl_stab): Same.
1350         (emit_pending_bincls): Same.
1351
1352 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
1353
1354         PR c++/11072
1355         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
1356
1357 2003-07-02  Andreas Schwab  <schwab@suse.de>
1358
1359         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
1360
1361 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1362
1363         PR optimization/11210
1364         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
1365         about the behaviour with regard to bitfields.
1366         * fold-const (decode_field_reference): Record outermost type in
1367         case the expression is a NOP. Strip all NOPs. Set the signedness
1368         to that of the outermost type (if any) when the bitsize is equal
1369         to the size of the type.
1370
1371 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
1372
1373         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
1374         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
1375         (adddi3_internal_3, addsi3_internal_2): Likewise.
1376
1377 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
1378
1379         * config/mips/mips.c (machine_function): Add new fields:
1380         ignore_hazard_length_p and all_noreorder_p.
1381         (mips_flag_delayed_branch): New variable.
1382         (override_options): Treat '/' as an operand punctuation character.
1383         Set up mips_flag_delayed_branch.
1384         (print_operand): Handle '/'.
1385         (mips_output_function_prologue): Put the whole function in
1386         .set noreorder and .set nomacro if all_noreorder_p is true.
1387         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
1388         (mips16_optimize_gp): Remove "first insn" parameter.
1389         (mips16_lay_out_constants): New function, split out from mips_reorg.
1390         (mips_avoid_hazard, mips_avoid_hazards): New functions.
1391         (mips_reorg): For mips16 code, call mips16_lay_out_constant
1392         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
1393         do delayed-branch scheduling followed by hazard detection.
1394         (mips_adjust_insn_length): Only account for hazards if
1395         !ignore_hazard_length_p.
1396         (mips_output_load_label): Add a nop to the o32 sequence if
1397         the target suffers from load delays.
1398         (mips_output_conditional_branch): Add %/ to the end of branches.
1399         (mips_output_division): Fill the branch delay slot with %#.
1400         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
1401         instructions.  End all other %* branches with %/.
1402         (ffssi2, ffsdi2): Fix lengths.
1403         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
1404         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
1405         (fix_truncsfsi2_macro): Likewise.
1406         (mov_lwl): Set hazard to "none".
1407         (ashldi3_internal): Fill the branch delay slot with %#.
1408         (ashrdi3_internal, lshrdi3_internal): Likewise.
1409         (exception_receiver): Explicitly set $28.
1410         (hazard_nop): New pattern.
1411
1412 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
1413
1414         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
1415         before calling tree_inlinable_function_p.
1416
1417 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1418
1419         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
1420         <internal/stdio_core.h> too.
1421         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
1422         <internal/wchar_core.h> too.
1423         Substitute va_list uses in inline definition.
1424         * fixinc/fixincl.x: Regenerate.
1425
1426 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1427
1428         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
1429         Undef before redefinition.
1430         (LABEL_AFTER_LOC): Likewise.
1431         (DEFAULT_SIGNED_CHAR): Likewise.
1432         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
1433         Fix IRIX spelling.
1434
1435         * config/mips/iris3.h: Remove, unused.
1436         * config/mips/iris4.h: Likewise.
1437
1438         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
1439
1440         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
1441         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
1442         target_cpu_default.
1443
1444         * config/mips/iris5.h: Move explicit includes ...
1445         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
1446
1447         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
1448         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
1449         tm_defines.
1450
1451         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
1452         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
1453         target_cpu_default.
1454
1455         * config/mips/iris6.h: Fix IRIX spelling.
1456         (MULTILIB_DEFAULTS): Undef before redefinition.
1457
1458         * config/mips/iris6.h: Move explicit includes ...
1459         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
1460
1461 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
1462
1463         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
1464         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
1465         Use next_needed field instead of aux to maintain the queue.
1466         * cgraph.h (cgraph_node): Add next_needed.
1467         (cgraph_varpool_node): Add next_needed; remove aux.
1468         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
1469
1470 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
1471
1472         * cgraphunit.c (cgraph_finalize_function): Set finalized.
1473         (cgraph_finalize_function): Do not examine inlinablility.
1474         (cgraph_finalize_compilation_unit): Do it here.
1475         * cgraph.h (cgraph_local_info): Add finalized field.
1476
1477 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1478
1479         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
1480         (gt_pch_restore): Likewise.
1481
1482 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
1483
1484         * config/alpha/alpha.c: Fix comment typos.
1485         * config/alpha/elf.h: Likewise.
1486         * config/arm/arm.c: Likewise.
1487         * config/arm/arm.h: Likewise.
1488         * config/arm/arm.md: Likewise.
1489         * config/arm/t-arm-coff: Likewise.
1490         * config/arm/t-strongarm-pe: Likewise.
1491         * config/arm/xscale-elf.h: Likewise.
1492         * config/avr/avr.h: Likewise.
1493
1494 2003-07-01  Jeff Law  <law@redhat.com>
1495
1496         * stmt.c (any_pending_cleanups): Remove another redundant test.
1497
1498 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
1499             J"orn Rennecke <joern.rennecke@superh.com>
1500
1501         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
1502         for MEM case.
1503
1504 2003-07-01  Devang Patel  <dpatel@apple.com>
1505
1506         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
1507         (binclstatus): New.
1508         (struct dbx_file): New members - bincl_status, pending_bincl_name and
1509         prev.
1510         (pending_bincls): New.
1511         (dbxout_init): Initialize new dbx_file members.
1512         (dbxout_start_source_file): Same.
1513         (emit_bincl_stab): New function.
1514         (emit_pending_bincls): Same.
1515         (emit_pending_bincls_if_required): Same.
1516         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
1517         processed.
1518         (dbxout_begin_block): Emit pending BINCL stabs.
1519         (dbxout_end_block): Same.
1520         (dbxout_function_decl): Same.
1521         (dbxout_continue): Same.
1522         (dbxout_type): Same.
1523         (dbxout_class_name_qualifiers): Same.
1524         (dbxout_symbol): Same.
1525         (dbxout_symbol_location): Same.
1526         (dbxout_parms): Same.
1527
1528 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1529
1530         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
1531         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
1532
1533 2003-07-01  Andreas Jaeger  <aj@suse.de>
1534
1535         * fold-const.c: Convert prototypes to ISO C90.
1536         * function.c: Likewise.
1537         * function.h: Likewise.
1538
1539 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
1540
1541         * doc/contrib.texi: Fix typos.
1542         * doc/invoke.texi: Likewise.
1543         * doc/passes.texi: Likewise.
1544         * doc/sourcebuild.texi: Likewise.
1545         * doc/tm.texi: Likewise.
1546
1547 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
1548
1549         * basic-block.h: Fix comment typos.
1550         * bb-reorder.c: Likewise.
1551         * c-format.c: Likewise.
1552         * cfgcleanup.c: Likewise.
1553         * cfghooks.h: Likewise.
1554         * cfgloop.c: Likewise.
1555         * cfgloopmanip.c: Likewise.
1556         * cfgrtl.c: Likewise.
1557         * cgraph.h: Likewise.
1558         * cgraphunit.c: Likewise.
1559         * combine.c: Likewise.
1560         * convert.c: Likewise.
1561         * dbxout.c: Likewise.
1562         * df.c: Likewise.
1563         * df.h: Likewise.
1564         * diagnostic.c: Likewise.
1565         * dwarf2out.c: Likewise.
1566         * et-forest.h: Likewise.
1567         * flow.c: Likewise.
1568         * fold-const.c: Likewise.
1569         * function.h: Likewise.
1570         * gcov-io.h: Likewise.
1571         * gcov.c: Likewise.
1572         * gcse.c: Likewise.
1573         * genautomata.c: Likewise.
1574         * ggc-common.c: Likewise.
1575         * ggc-page.c: Likewise.
1576         * loop-unroll.c: Likewise.
1577         * loop-unswitch.c: Likewise.
1578         * loop.c: Likewise.
1579         * mips-tfile.c: Likewise.
1580         * optabs.c: Likewise.
1581         * ra-build.c: Likewise.
1582         * ra-colorize.c: Likewise.
1583         * ra-rewrite.c: Likewise.
1584         * ra.h: Likewise.
1585         * regmove.c: Likewise.
1586         * reload.c: Likewise.
1587         * rtlanal.c: Likewise.
1588         * sched-ebb.c: Likewise.
1589         * sched-int.h: Likewise.
1590         * sched-vis.c: Likewise.
1591         * sreal.c: Likewise.
1592         * ssa-ccp.c: Likewise.
1593         * ssa.c: Likewise.
1594         * toplev.c: Likewise.
1595         * tree-inline.c: Likewise.
1596         * value-prof.c: Likewise.
1597         * value-prof.h: Likewise.
1598
1599 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
1600
1601         * rtl.h (emit_line_note_after): Remove.
1602         (emit_note_copy_after, emit_note_copy): New.
1603         * emit-rtl.c (reorder_insns_with_line_notes): Replace
1604         emit_line_note_after with emit_note_copy_after.
1605         (emit_insn_after_with_line_notes): Likewise.
1606         (emit_line_note_after): Kill.
1607         (emit_note_copy_after): New.
1608         (emit_note_copy): New.
1609         * function.c (emit_return_into_block): Use emit_note_copy_after.
1610         (thread_prologue_and_epilogue_insns): Likewise.
1611         * integrate.c (expand_inline_function): Use emit_note_copy.
1612         (copy_insn_list): Likewise.
1613         * unroll.c (copy_loop_body): Likewise.
1614         * cfglayout.c (duplicate_insn_chain): Likewise.
1615
1616 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
1617
1618         * c-tree.h (define_label): Replace filename and lineno arguments
1619         with a location_t.
1620         * c-decl.c (poplevel): Adjust define_label call.
1621         (pop_label_level): Likewise.
1622         (define_label): Replace filename and lineno arguments with a
1623         location_t.
1624         (store_parm_decls): Use DECL_SOURCE_LOCATION.
1625         * c-parse.in (label): Adjust define_label call.
1626
1627 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
1628
1629         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
1630         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
1631         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
1632         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
1633         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
1634
1635 2003-07-01  Andreas Jaeger  <aj@suse.de>
1636
1637         * final.c: Convert prototypes to ISO C90.
1638         * flow.c: Likewise.
1639         * flags.h: Likewise.
1640         * gcov-io.c: Likewise.
1641         * gcov-io.h: Likewise.
1642
1643 2003-06-30  Bruno Haible  <bruno@clisp.org>
1644
1645         PR middle-end/6578
1646         * libgcc2.c (__subvsi3): Remove simplification that would not work
1647         when subtracting -0x80000000.
1648         (__subvdi3): Remove simplification that would return a wrong result.
1649         (__mulvsi3): Fix overflow check.
1650         (__absvdi2): Fix simplification that would return a wrong result.
1651         (__mulvdi3): Fix overflow check.
1652
1653 2003-06-30  Jeff Law  <law@redhat.com>
1654
1655         * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
1656         was always passed in the value '1'.  Simplify body appropriately.
1657         * tree.h (any_pending_cleanups): Corresponding changes.
1658         * calls.c: (expand_call): Corresponding changes.
1659
1660 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
1661
1662         * combine.c (distribute_notes): Don't bother REG_WAS_0.
1663         * cse.c (cse_insn): Likewise.
1664         * final.c (final_scan_insn): Likewise.
1665         * jump.c (duplicate_loop_exit_test): Likewise.
1666         * rtl.c (reg_note_name): Remove REG_WAS_0.
1667         * rtl.h (REG_WAS_0): Remove.
1668         * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
1669         * config/avr/avr.c (output_movqi): Don't use reg_was_0.
1670         (output_movhi): Likewise.
1671         (output_movsisf): Likewise.
1672         (reg_was_0): Remove.
1673         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
1674         REG_WAS_0.
1675         (m68hc11_gen_movqi): Likewise.
1676         * config/vax/vax-protos.h: Remove the prototype for
1677         reg_was_0_p.
1678         * config/vax/vax.c (follows_p): Remove.
1679         (reg_was_0_p): Likewise.
1680         * config/vax/vax.md (movsi): Don't use reg_was_0_p.
1681         (movhi): Likewise.
1682         (movqi): Likewise.
1683         * doc/rtl.texi (REG_WAS_0): Remove.
1684
1685 2003-06-30  Mark Mitchell  <mark@codesourcery.com>
1686
1687         * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
1688
1689 2003-06-30  Bob Wilson  <bob.wilson@acm.org>
1690
1691         * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
1692         top-level include directory.
1693         * config/xtensa/lib2funcs.S: Likewise.
1694         * config/xtensa/xtensa.h: Likewise.
1695         * config/xtensa/xtensa-config.h: Remove.
1696         * doc/install.texi: Update location of "xtensa-config.h" header.
1697
1698 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
1699
1700         * config/s390/s390.c (s390_extra_constraint): New function.
1701         * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
1702         * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
1703         * config/s390/s390.c (q_constraint): Remove.
1704         * config/s390/s390-protos.h (q_constraint): Likewise.
1705         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
1706         (EXTRA_ADDRESS_CONSTRAINT): Define.
1707
1708         * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
1709         (DISP_IN_RANGE, s390_short_displacement): New.
1710         (legitimate_reload_operand_p): Support long displacements.
1711         (s390_decompose_address): Likewise.
1712         (legitimize_pic_address): Likewise.
1713         (legitimize_address): Likewise.
1714         (s390_fixup_clobbered_return_reg): Likewise.
1715         (s390_emit_prologue, s390_emit_epilogue): Likewise.
1716         (s390_output_mi_thunk): Likewise.
1717
1718         * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
1719         (attr "atype", attr "length"): Add defaults for new op_types.
1720         (all insns): Change op_type attribute where appropriate.
1721
1722         ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
1723         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
1724         "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
1725         "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
1726         "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
1727         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
1728         "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
1729         "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
1730         "*movdf_64", "*movdf_31", "*movsf",
1731         "*load_multiple_si", "*store_multiple_di",
1732         "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
1733         "*la_64", "*la_31", "*la_31_and", "force_la_31",
1734         "*addsi3_carry1_cc", *addsi3_carry1_cconly",
1735         "*addsi3_carry2_cc", *addsi3_carry2_cconly",
1736         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
1737         "*addsi3_sign", "*addsi3_sub", "addsi3",
1738         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
1739         "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
1740         "mulsi3"
1741         "*andsi3_cc", "*andsi3_cconly", "andsi3",
1742         "*andqi3_ss", "*andqi3_ss_inv",
1743         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
1744         "*iorqi3_ss", "*iorqi3_ss_inv",
1745         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
1746         "*xorqi3_ss", "*xorqi3_ss_inv",
1747         "*tls_load_31"): Add alternatives for long-displacement instructions.
1748
1749         ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
1750         "*load_multiple_di", "*store_multiple_di",
1751         "*sethighqidi_64", "*zero_extendhisi2_31",
1752         "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
1753         "adddf3", "*adddf3", "*adddf3_ibm",
1754         "addsf3", "*addsf3", "*addsf3_ibm",
1755         "subdf3", "*subdf3", "*subdf3_ibm",
1756         "subsf3", "*subsf3", "*subsf3_ibm",
1757         "mulsi_6432", "divmoddisi3",
1758         "muldf3", "*muldf3", "*muldf3_ibm",
1759         "mulsf3", "*mulsf3", "*mulsf3_ibm",
1760         "divdf3", "*divdf3", "*divdf3_ibm",
1761         "divsf3", "div*sf3", "*divsf3_ibm",
1762         "sqrtdf2", "sqrtsf2",
1763         "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
1764         "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
1765         "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
1766         and address constraints for instructions that do not accept long
1767         displacements.
1768
1769 2003-06-30  Hartmut Penner  <hpenner@de.ibm.com>
1770             Ulrich Weigand  <uweigand@de.ibm.com>
1771
1772         * config/s390/2084.md: New file.
1773         * config/s390/s390.md: Include it.
1774         * config/s390/s390.c (s390_adjust_priority): New function.
1775         (TARGET_SCHED_ADJUST_PRIORITY): Define.
1776         (s390_first_cycle_multipass_dfa_lookahead): New function.
1777         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1778         (s390_sched_reorder2): New function.
1779         (TARGET_SCHED_REORDER2): Define.
1780         (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
1781         (s390_issue_rate): Likewise.
1782
1783 Mon Jun 30 23:47:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
1784
1785         * Makefile.in (GTFILES): Add cgraph.h.
1786         * cgraph.c (known_decls): Remove.
1787         (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
1788         cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
1789         (cgraph_node): Do not allocate known_decls; use polutate hashtable.
1790         (cgraph_varpool_node): Likewise; add next pointer.
1791         (cgraph_varpool_nodes): New static variable.
1792         * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
1793         cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
1794         cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
1795         * gengtype.c (open_base_files): Include cgraph.h
1796
1797 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1798
1799         * Changelog: Remove ">>>>>>>" from previous change.
1800
1801 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1802
1803         * config/cris/cris.c: Fix spelling for "testcase".
1804         * config/cris/cris.h: Likewise.
1805         * config/cris/cris.md: Likewise.
1806         * config/mmix/crti.asm: Likewise.
1807         * config/mmix/mmix.h: Likewise.
1808         * config/mmix/mmix.md: Likewise.
1809
1810 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
1811
1812         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
1813         1.
1814
1815 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
1816
1817         * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
1818         --with-mode configure options.
1819         * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
1820         (DRIVER_SELF_SPECS): Define.
1821         * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
1822         architecture to assembler.
1823         (LINK_SPEC): Merge 31-bit and 64-bit variants.
1824         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
1825         * config/s390/s390.c (override_options): New default rules for
1826         architecture mode and cpu architecture selection.
1827         * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
1828         new default rules.
1829
1830         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
1831         * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
1832         * config/s390/s390.c (override_options): Add "z990" to
1833         processor_alias_table.
1834         * doc/invoke.texi (-march): Document "z990" processor type.
1835
1836         * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
1837         * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
1838         (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
1839         TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
1840         * config/s390/s390.c (override_options): Replace enum pta_flags by
1841         enum processor_flags.  Fill in s390_tune_flags and s390_arch_flags.
1842
1843         * config/s390/s390.c (s390_cpu): Rename to ...
1844         (s390_tune): ... this.
1845         * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
1846         * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
1847         * config/s390/s390.md (attr "cpu"): Likewise.
1848
1849 2003-06-30  Neil Booth  <neil@daikokuya.co.uk>
1850
1851         * c-common.c (enum c_language_kind, flag_objc): Remove.
1852         (fix_string_type, check_case_value, c_common_nodes_and_builtins,
1853         c_add_case_label, finish_label_addr_expr, boolean_increment):
1854         Use c_dialect_ macros.
1855         * c-common.h (enum c_language_kind): Extend.
1856         (c_dialect_cxx, c_dialect_objc): New.
1857         (flag_objc): Remove.
1858         (c_common_init_options): Update prototype.
1859         * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
1860         macros.
1861         * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
1862         macros.
1863         * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
1864         * c-lang.c (c_init_options): Remove.
1865         (c_language): Define.
1866         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1867         * c-lex.c (lex_charconst): Use c_dialect_ macros.
1868         * c-opts.c (lang_flags): Make function-local.
1869         (c_common_init_options): Use c_dialect_ macros.  Handle
1870         C++ diagnostic requirements.
1871         (c_common_handle_option, c_common_post_options): Use flag_cxx.
1872         * c-parse.in (init_reswords): Use c_dialect_objc ().
1873         * c-pch.c (get_ident): Use c_language.
1874         * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
1875         * c-typeck.c (comptypes, build_c_cast): Similarly.
1876         * objc/objc-lang.c (c_language): Define.
1877         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1878         (objc_init_options): Remove.
1879
1880 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
1881
1882         * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
1883         * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
1884
1885 2003-06-30  Wolfgang Bangerth  <bangerth@dealii.org>
1886
1887         * doc/sourcebuild.texi: Don't reference gnats.html any more.
1888
1889 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
1890
1891         * config/h8300/h8300.c (compute_mov_length): Fix length of
1892         mov:SF on H8/300.
1893
1894 2003-06-30  Nick Clifton  <nickc@redhat.com>
1895
1896         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
1897         constant.
1898
1899 Mon Jun 30 15:36:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
1900
1901         (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
1902
1903 2003-06-30 Hartmut Penner  <hpenner@de.ibm.com>
1904
1905         * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
1906         (altivec_in_gprs_p): New function.
1907
1908         * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
1909         prototype.
1910         (altivec_in_gprs_p): New prototype.
1911
1912         * config/rs6000/altivec.md (*movv4si_internal): Change
1913         multi-assembler alternative to '#'. Add postreload splitter to
1914         handle this cases.
1915         (*movv4hi_internal): Likewise.
1916         (*movv4qi_internal): Likewise.
1917         (*movv4sf_internal): Likewise.
1918
1919 2003-06-30  Jason Merrill  <jason@redhat.com>
1920
1921         * defaults.h (PUSH_ARGS_REVERSED): Define default here.
1922         * calls.c: Not here.
1923
1924 2003-06-30  Ben Elliston  <bje@wasabisystems.com>
1925
1926         * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
1927         (bad_signed_byte_operand): Likewise.
1928         (arm_output_epilogue): Likewise.
1929         (arm_final_prescan_insn): Likewise.
1930
1931 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1932
1933         * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
1934
1935 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1936
1937         * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
1938         subsequent writes.
1939
1940 Mon Jun 30 10:03:02 CEST 2003  Jan Hubicka  <jh@suse.cz>
1941
1942         * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
1943         in cfglayout mode.
1944
1945 Mon Jun 30 09:52:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
1946
1947         * i386.c (standard_80387_constant_p): Accept TFmode constants too.
1948         (init_ext_80387_constants): Likewise.
1949         (standard_80387_constant_rtx): Likewise.
1950         * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
1951         (atantf): Disable for !TARGET_128BIT_LONG_LONG
1952         (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
1953         (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
1954         (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
1955         (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
1956         (frndinttf2): New.
1957         (f2xm1tf2): New.
1958         (exp?f2): Use expsf2_tf when needed.
1959         (exp?f2_tf): New.
1960         (exptf): New.
1961
1962 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
1963
1964         * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
1965         statement from tmake_file set.
1966
1967 2003-06-29  James E Wilson  <wilson@tuliptree.org>
1968
1969         * reload.c (find_reloads): Change push_reloads to push_reload in
1970         comment.
1971         * reload1.c (eliminate_regs): Likewise.
1972         (dump_needs): Delete prototype for deleted function.
1973
1974 2003-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1975
1976         * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
1977         format attributes.
1978         * c-format.c (enum format_type): Add gcc_diag_format_type,
1979         gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
1980         (gcc_diag_length_specs, gcc_cdiag_length_specs,
1981         gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
1982         gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
1983         gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
1984         gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
1985         (format_types_orig): Add new data.
1986         (find_char_info_specifier_index, init_dynamic_diag_info): New
1987         functions.
1988         (handle_format_attribute): Update to handle new format attributes.
1989
1990 2003-06-29  Aaron W. LaFramboise  <awlaframboise@aol.com>
1991
1992         * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
1993
1994 2003-06-29  Dara Hazeghi  <dhazeghi@yahoo.com>
1995
1996         * doc/install.texi: Remove install documentation for obsoleted targets
1997         i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
1998         arm-*-aof.
1999         Update information about IA64 toolchain, AIX make requirements,
2000         and binutils for m68k-*-hpux and *-*-linuxaout targets.
2001
2002 Mon Jun 30 00:50:43 CEST 2003  Jan Hubicka  <jh@suse.cz>
2003
2004         * regmove.c (regmove_optimize): Don't try to make src and dst match
2005         when they are in different modes.
2006
2007 Sun Jun 29 23:06:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
2008
2009         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
2010         busy work when builtin is not supported by the backend.
2011
2012 2003-06-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2013
2014         * loop.c (count_one_set): Fix detection of registers set in more
2015         than one basic block.
2016
2017 2003-06-29  Andreas Jaeger  <aj@suse.de>
2018
2019         * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
2020         * system.h: Poison OBJ_FORMAT_ROSE.
2021         * doc/tm.texi (Macros for Initialization): Remove documentatin of
2022         OBJECT_FORMAT_ROSE.
2023         * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
2024         * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
2025
2026 2003-06-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2027
2028         * pa.c (update_total_code_bytes): New function.
2029         (last_address): Number of bytes output for a function and its
2030         associated thunks.
2031         (compute_frame_size): Use BITS_PER_UNIT.
2032         (pa_output_function_epilogue): Compute last_address.  Use
2033         update_total_code_bytes.
2034         (output_lbranch): Handle long branch on portable runtime.
2035         (attr_length_millicode_call, attr_length_call,
2036         attr_length_indirect_call): Only use total_code_bytes for calls in
2037         the text section.
2038         (output_call): Only use an indirect call sequence when the target is
2039         not local.
2040         (pa_asm_output_mi_thunk): Handle updating of total_code_bytes.  Improve
2041         test to determine when an IA-relative branch can be used.  Add various
2042         long branch sequences.  Avoid using an indirect branch on all ports
2043         except SOM.
2044
2045 2003-06-29  Ulrich Weigand  <uweigand@de.ibm.com>
2046
2047         * expr.c (clear_by_pieces): Fix prototype.
2048
2049 2003-06-29  Andreas Jaeger  <aj@suse.de>
2050
2051         * cse.c: Convert prototypes to ISO C90.
2052         * cselib.c: Likewise.
2053         * cselib.h: Likewise.
2054         * dbxout.c: Likewise.
2055         * debug.c: Likewise.
2056         * df.c: Likewise.
2057         * df.h: Likewise.
2058         * dojump.c: Likewise.
2059         * doloop.c: Likewise.
2060         * dominance.c: Likewise.
2061         * dwarf2asm.c: Likewise.
2062         * dwarf2out.c: Likewise.
2063         * dwarf2out.h: Likewise.
2064         * dwarfout.c: Likewise.
2065         * except.c: Likewise.
2066         * except.h: Likewise.
2067         * emit-rtl.c: Likewise.
2068         * et-forest.c: Likewise.
2069         * et-forest.h: Likewise.
2070         * except.c: Likewise.
2071         * explow.c: Likewise.
2072         * expmed.c: Likewise.
2073         * expr.c: Likewise.
2074         * expr.h: Likewise.
2075
2076 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2077
2078         * alloc-pool.c: Fix comment formatting.
2079         * bitmap.c: Likewise.
2080         * bitmap.h: Likewise.
2081         * bt-load.c: Likewise.
2082         * builtins.c: Likewise.
2083         * caller-save.c: Likewise.
2084         * cfganal.c: Likewise.
2085         * cfgrtl.c: Likewise.
2086         * collect2.c: Likewise.
2087         * cse.c: Likewise.
2088         * df.c: Likewise.
2089         * diagnostic.c: Likewise.
2090         * dwarf2out.c: Likewise.
2091         * dwarfout.c: Likewise.
2092         * expmed.c: Likewise.
2093         * final.c: Likewise.
2094         * flags.h: Likewise.
2095         * fold-const.c: Likewise.
2096         * gcc.c: Likewise.
2097         * gcov-io.h: Likewise.
2098         * gcov.c: Likewise.
2099         * genattrtab.c: Likewise.
2100         * genautomata.c: Likewise.
2101         * libgcov.c: Likewise.
2102         * mips-tfile.c: Likewise.
2103         * optabs.c: Likewise.
2104         * prefix.c: Likewise.
2105         * rtlanal.c: Likewise.
2106         * stmt.c: Likewise.
2107         * stor-layout.c: Likewise.
2108         * toplev.c: Likewise.
2109         * varasm.c: Likewise.
2110         * vmsdbgout.c: Likewise.
2111
2112 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2113
2114         * expr.c (emit_single_push_insn): If padding is needed
2115         downward, adjust the stack pointer first, and then store the
2116         data into the stack location using an offset.
2117
2118 2003-06-29  Andreas Jaeger  <aj@suse.de>
2119
2120         * collect2.h: Convert prototypes to ISO C90.
2121         * collect2.c: Likewise.
2122         * conflict.c: Likewise.
2123         * coverage.c: Likewise.
2124         * convert.h: Likewise.
2125         * convert.c: Likewise.
2126
2127 2003-06-29  Nathan Sidwell  <nathan@codesourcery.com>
2128
2129         * c-decl.c (c_init_decl_processing): Use a location_t. Set input
2130         filename to <internal>.
2131         * tree.c (make_node): Just copy the current location.
2132
2133 2003-06-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2134
2135         PR optimization/11210
2136         * fold-const (decode_field_reference): Revert 2003-06-26 patch.
2137
2138 2003-06-29  Neil Booth  <neil@daikokuya.co.uk>
2139
2140         * toplev.c (flag_dummy): Remove.
2141         (f_options): Restore flag pointers.
2142
2143 2003-06-29  David Edelsohn  <edelsohn@gnu.org>
2144
2145         * config/rs6000/rs6000.c (processor_target_table): Add 970.
2146         * config.gcc: Add 970.
2147
2148 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2149
2150         * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
2151         -1) with ggc_strdup.
2152         * stmt.c (expand_asm_operands): Likewise.
2153         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2154
2155 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2156
2157         * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
2158         definition.
2159
2160 2003-06-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2161
2162         * opts.c: Include insn-attr.h.
2163         * Makefile.in (opts.o): Depend on INSN_ATTR_H.
2164
2165 2003-06-27  J"orn Rennecke <joern.rennecke@superh.com>
2166
2167         * flow.c (propagate_one_insn): Use proper test for a register
2168         being part of the return value.
2169
2170 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2171
2172         * config/avr/avr.c: Fix a comment typo.
2173
2174 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2175
2176         * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
2177         with avr_simplify_comparison_p.
2178         * config/avr/avr.c: Likewise.
2179
2180 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2181
2182         * builtins.c: Follow spelling conventions.
2183         * cgraph.c: Likewise.
2184         * cpplex.c: Likewise.
2185         * config/arm/arm.c: Likewise.
2186         * config/arm/iwmmxt.md: Likewise.
2187         * config/c4x/c4x-modes.def: Likewise.
2188         * config/c4x/c4x.c: Likewise.
2189         * config/c4x/c4x.h: Likewise.
2190         * config/c4x/c4x.md: Likewise.
2191         * config/i386/i386-interix.h: Likewise.
2192         * config/mips/mips.h: Likewise.
2193
2194 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2195
2196         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
2197         __mc68020__ on TARGET_68020.
2198
2199 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2200
2201         * config/h8300/h8300.c: Fix a comment typo.
2202
2203 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
2204
2205         * c-parse.in (yylexstring): Use a location_t.
2206
2207         * diagnostic.h (diagnostic_set_info): Replace file and lineno
2208         parameters with a location_t.
2209         * diagnostic.c (diagnostic_set_info): Replace file and lineno
2210         parameters with a location_t.
2211         (inform, warning, pedwarn, error, sorry, fatal_error,
2212         internal_error, warning_with_decl, pedwarn_with_decl,
2213         error_with_decl): Adjust.
2214         * c-error.c (pedwarn_c99): Adjust.
2215         * c-format.c (status_warning): Adjust.
2216         * rtl-error.c (file_and_line_for_asm): Rename to ...
2217         (location_for_asm): Return a location_t.
2218         (diagnostic_for_asm): Adjust.
2219
2220 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2221
2222         * cpptrad.c (skip_macro_block_comment): New.
2223         (copy_comment): Use it if appropriate.
2224
2225 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2226
2227         * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
2228         definition.
2229         (store_killed_in_insn): Likewise.
2230         * print-rtl.c (print_rtx): Likewise.
2231         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2232         * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
2233         (m68hc11_reassign_regs): Likewise.
2234         (m68hc11_reorg): Likewise.
2235
2236 2003-06-28  Gabriel Dos Reis <gdr@integrable-solutions.net>
2237
2238         * diagnostic.c (output_integer_with_precision): New macro.
2239         (output_format): Use it.  Handle more format specifiers.
2240         (output_long_decimal): Remove.
2241         (output_unsigned_decimal): Likewise.
2242         (output_long_unsigned_decimal): Likewise.
2243         (output_octal): Likewise.
2244         (output_long_octal): Likewise.
2245         (output_hexadecimal): Likewise.
2246         (output_long_hexadecimal): Likewise.
2247         (output_long_long_decimal): Likewise.
2248
2249 2003-06-28  Andreas Schwab  <schwab@suse.de>
2250
2251         * config/ia64/ia64.md: Follow recent emit_note API change.
2252
2253 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
2254
2255         * c-parse.in (%union): Replace filename & lineno with location.
2256         (save_filename, save_lineno): Remove.
2257         (save_location): New.
2258         (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
2259         nested_function, notype_nested_function, if_prefix, lineno_stmt,
2260         lineno_label, label): Adjust.
2261
2262 2003-06-28  Jakub Jelinek  <jakub@redhat.com>
2263
2264         * builtins.c (c_strlen): Add only_value argument.
2265         Handle COND_EXPR and COMPOUND_EXPR.
2266         (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
2267         Adjust c_strlen callers.
2268         (expand_builtin_strcpy, expand_builtin_strncpy,
2269         expand_builtin_strcmp, expand_builtin_strncmp,
2270         expand_builtin_fputs, expand_builtin_sprintf,
2271         fold_builtin): Adjust c_strlen callers.
2272
2273 2003-06-28  Josef Zlomek  <zlomekj@suse.cz>
2274
2275         * bb-reorder.c (find_traces_1_round): Do not send basic block
2276         to next round when we are in the last round.
2277
2278 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2279
2280         * Makefile.in: Update.
2281         * opts.c: Include tm_p.h.
2282         (handle_options): Make static.
2283         (decode_options): Copied from toplev.c.
2284         * opts.h (decode_options): New.
2285         * toplev.c (parse_options_and_default_flags): Move most to opts.c,
2286         some to...
2287         (general_init): ...here.
2288         (toplev_main): Use decode_options instead.
2289         * toplev.h (save_argc, save_argv): New.
2290
2291 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2292
2293         * explow.c (find_next_ref): Remove.
2294         * rtl.h: Remove the prototype for find_next_ref.
2295
2296 2003-06-27  Roger Sayle  <roger@eyesopen.com>
2297
2298         * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
2299         call to match recent API change.
2300
2301 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
2302
2303         * dbxout.c (flag_debug_only_used_symbols): Delete redundant
2304         declaration.
2305
2306         * c-format.c (check_format_string, get_constant)
2307         * cfgrtl.c (rtl_split_edge):
2308         Mark the definition static, matching the forward declaration.
2309
2310 2003-06-27  Gunther Nikl <gni@gecko.de>
2311
2312         * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
2313
2314         PR target/11014
2315         * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
2316         syntax for MIT / MOTOROLA.
2317
2318         PR other/10240
2319         * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
2320         * configure: Rebuilt.
2321
2322 2003-06-27  Chris Demetriou  <cgd@broadcom.com>
2323
2324         * config/mips/mips.c (mips_build_va_list): Make padding in
2325         va_list structure explicit to avoid -Wpadded warnings.
2326
2327 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
2328
2329         * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
2330         * config/s390/s390.c (s390_secondary_output_reload_class): New function.
2331         * config/s390/s390-protos.h (s390_secondary_output_reload_class):
2332         Declare it.
2333         * config/s390/s390.md ("reload_outti", "reload_outdi",
2334         "reload_outdf"): New expanders.
2335
2336         * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
2337         memory operands as source.
2338         ("movdi" + splitters): Likewise.
2339         ("movdf" + splitters): Likewise.
2340         * config/s390/s390.c (s390_split_ok_p): New function.
2341         * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
2342
2343 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2344
2345         * combine.c (force_to_mode): Replace the equality comparison
2346         of INTVALs with a pointer equality comparison.
2347         (simplify_comparison): Likewise.
2348
2349 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2350
2351         * jump.c (rtx_renumbered_equal_p): Replace an expression that
2352         is known to be 0 with 0.
2353
2354 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2355
2356         * gcse.c (expr_equiv_p): Replace expressions that are known to
2357         be 0 with 0.
2358
2359 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2360
2361         * cse.c (fold_rtx): Replace the equality comparison of INTVALs
2362         with a pointer equality comparison.
2363
2364 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2365
2366         * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
2367         are known to be not equivalent.
2368
2369 2003-06-27  Richard Henderson  <rth@redhat.com>
2370
2371         * config/alpha/alpha.c (function_arg): Don't pass small aggregates
2372         in floating point registers.  Validate that we don't receive complex
2373         values here.  Use #elif.
2374         (return_in_memory, function_value): New.
2375         (alpha_va_arg): Handle complex values as two arguments.
2376         * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
2377         (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
2378         (SPLIT_COMPLEX_ARGS): New.
2379         * config/alpha/alpha-protos.h: Update.
2380
2381 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
2382
2383         * ggc-page.c (inverse_table): Change type of mult to size_t.
2384         (compute_inverse): Compute inverse using size_t, not unsigned int.
2385         Compute inverse also for sizes larger than half a machine page.
2386
2387 Fri Jun 27 18:36:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
2388
2389         * toplev.c (rest_of_decl_compilation):  Only varpoolize argument
2390         when called before cgraph_optimize.
2391
2392 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
2393
2394         * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
2395         * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
2396         be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
2397
2398 Fri Jun 27 17:41:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
2399
2400         * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
2401         of known_decls.
2402
2403 2003-06-27  Hans-Peter Nilsson  <hp@axis.com>
2404
2405         * defaults.h (REGISTER_MOVE_COST): Define default here.
2406         * regclass.c: Don't define default REGISTER_MOVE_COST here.
2407         * reload.c, reload1.c: Ditto.
2408
2409 2003-06-27  Richard Earnshaw <rearnsha@arm.com>
2410
2411         * flags.h: Really install previous change.
2412
2413 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
2414
2415         * rtl.h (emit_note): Remove FILE parameter.
2416         * emit-rtl.c (emit_line_note): Adjust emit_note call.
2417         (emit_note): Remove FILE parameter. Adjust.
2418         * builtins.c (expand_builtin_expect): Adjust emit_note call.
2419         * c-semantics.c (genrtl_scope_stmt): Likewise.
2420         (expand_stmt): Likewise.
2421         * cfglayout.c (reemit_insn_block_notes): Likewise.
2422         (duplicate_insn_chain): Likewise.
2423         * except.c (expand_eh_region_start, expand_eh_region_end,
2424         sjlj_emit_function_enter): Likewise.
2425         * explow.c (probe_stack_range): Likewise.
2426         * expr.c (emit_block_move_via_loop): Likewise.
2427         * function.c (init_function_start, expand_function_start,
2428         expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
2429         * integrate.c (expand_inline_function, copy_insn_list): Likewise.
2430         * reg-stack.c (compensate_edge): Likewise.
2431         * reload1.c (reload): Likewise.
2432         * rtlanal.c (hoist_insn_to_edge): Likewise.
2433         * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
2434         expand_loop_continue_here, expand_end_loop, expand_continue_loop,
2435         expand_exit_loop_top_cond, expand_value_return,
2436         expand_start_bindings_and_block, expand_end_bindings,
2437         expand_decl_cleanup, expand_start_case): Likewise.
2438         * unroll.c (copy_loop_body
2439         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
2440         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2441         * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
2442         rs6000_emit_allocate_stack, rs6000_output_function_prologue,
2443         rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
2444         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2445         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2446
2447 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
2448
2449         * c-tree.h (grokfield): Remove unused filename and line parameters.
2450         * c-decl.c (grokfield): Remove unused filename and line parameters.
2451         * c-parse.in (component_decl): Adjust field grokking rules, adjust
2452         grokfield calls.
2453         (component_declarator): Likewise.
2454         (component_notype_declarator): Likewise.
2455         * objc/objc-act.c (build_module_descriptor): Adjust grokfield
2456         calls.
2457         (build_protocol_template, build_method_prototype_list_template,
2458         build_method_prototype_template, build_category_template,
2459         build_selector_template, build_class_template,
2460         build_super_template, build_ivar_template,
2461         build_ivar_list_template, build_method_list_template,
2462         build_method_template, add_instance_variable): Likewise.
2463
2464 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2465
2466         * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
2467         OP2 are known to be not equivalent.
2468
2469 2003-06-26  Devang Patel <dpatel@apple.com>
2470
2471         * final.c (debug_flush_symbol_queue): New function.
2472         (debug_queue_symbol): New function.
2473         (debug_free_queue): New function.
2474         (debug_nesting): New variable.
2475         (symbol_queue): New variable.
2476         (symbol_queue_index): Same.
2477         (symbol_queue_size): Same.
2478         * debug.h (debug_flush_symbol_queue): New.
2479         (debug_queue_symbol): New.
2480         (debug_free_queue): New.
2481         (debug_nesting): New.
2482         (symbol_queue_index): New.
2483         * dbxout.c (DBXOUT_DECR_NESTING): New macro.
2484         (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
2485         (dbxout_init): Delay symbol output.
2486         (dbxout_global_decl): Save, set and reset TREE_USED bit around
2487         dbxout_symbol() call.
2488         (dbxout_begin_function): Same.
2489         (dbxout_finish): Free symbol queue.
2490         (dbxout_type): Put appropriate symbols in queue.
2491         (dbxout_symbol): Put info for symbol's type in queue.
2492         Decrement/Increment nesting counts flush symbol queue appropriately.
2493         (dbxout_parms): Increment dbxout nesting.
2494         (dbxout_reg_parms): Same.
2495         * flags.h (flag_debug_only_used_symbols): New.
2496         * toplev.c (flag_debug_only_used_symbols): New variable.
2497         (lang_independent_options): Add entries for new option
2498         -feliminate-unused-debug-symbols.
2499         * common.opt: Add entry for -feliminate-unused-debug-symbols.
2500         * opts.c (common_handle_options): Same.
2501         * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
2502         -feliminate-unused-debug-symbols.
2503         * doc/invoke.texi (Debugging Options): Document
2504         -feliminate-unused-debug-symbols.
2505
2506 2003-06-26  Roger Sayle  <roger@eyesopen.com>
2507             Jakub Jelinek  <jakub@redhat.com>
2508
2509         * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
2510         obtain the format string instead of using TREE_STRING_POINTER and
2511         TREE_STRING_LENGTH.  Only optimize sprintf(dst,"%s",src) when the
2512         return value is unused or the length of src is a known constant.
2513
2514 2003-06-26  Richard Henderson  <rth@redhat.com>
2515
2516         * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
2517
2518 2003-06-26  Richard Henderson  <rth@redhat.com>
2519
2520         * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
2521         (ia64_split_call): Only load descriptor for GP register inputs.
2522         (ia64_expand_epilogue): Check current_frame_info.mask not
2523         current_function_is_leaf to restore ar.pfs.
2524
2525 2003-06-26  Richard Henderson  <rth@redhat.com>
2526
2527         * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
2528         instead of replacing it.
2529
2530 2003-06-26  Richard Henderson  <rth@redhat.com>
2531
2532         * flow.c (propagate_one_insn): Kill function return value
2533         registers across tail calls.
2534
2535         * flow.c (propagate_one_insn): Preserve live-at-end registers
2536         across tail calls.
2537
2538 2003-06-26  J"orn Rennecke <joern.rennecke@superh.com>
2539
2540         * reload.c (can_reload_into): New function.
2541         (push_reload): Use it.
2542
2543 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
2544
2545         * config/h8300/h8300.c (compute_a_rotate_length): Fix the
2546         references to the amount of a rotation.
2547
2548 2003-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2549
2550         * config/sh/coff.h: Don't include dbxcoff.h.
2551         * config.gcc: List it here.
2552
2553 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
2554
2555         * postreload.c (reload_cse_simplify_set): Call cselib_lookup
2556         earlier.  Don't check if SRC is a constant.
2557
2558 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
2559
2560         * Makefile.in (OBJS): Add postreload.o.
2561         Remove cselib.h from the dependency list for reload1.o.
2562         Add a dependency list for postreload.o.
2563         * reload.h: Change the comment for the prototype of
2564         reload_cse_regs.
2565         * reload1.c: Don't include cselib.h.
2566         (reload_cse_regs): Move to postreload.c
2567         (reload_cse_regs_1): Likewise.
2568         (reload_cse_noop_set_p): Likewise.
2569         (reload_cse_simplify_set): Likewise.
2570         (reload_cse_simplify_operands): Likewise.
2571         (RELOAD_COMBINE_MAX_USES): Likewise.
2572         (reload_combine_ruid): Likewise.
2573         (LABEL_LIVE): Likewise.
2574         (reload_combine): Likewise.
2575         (reload_combine_note_use): Likewise.
2576         (reload_combine_note_store): Likewise.
2577         (reg_set_luid): Likewise.
2578         (reg_offset): Likewise.
2579         (reg_base_reg): Likewise.
2580         (reg_mode): Likewise.
2581         (move2add_luid): Likewise.
2582         (move2add_last_label_luid): Likewise.
2583         (MODES_OK_FOR_MOVE2ADD): Likewise.
2584         (reload_cse_move2add): Likewise.
2585         (move2add_note_store): Likewise.
2586         (reload_cse_simplify): Likewise.
2587         * postreload.c: New.
2588
2589 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
2590
2591         * config/avr/avr.c (final_prescan_insn): Remove support for
2592         -mrtl.
2593         * config/avr/avr.h (MASK_RTL_DUMP): Remove.
2594         (TARGET_RTL_DUMP): Likewise.
2595         (TARGET_SWITCHES): Remove -mrtl.
2596
2597 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
2598
2599         * config/h8300/h8300-protos.h: Change emit_a_rotate to
2600         output_a_rotate.  Add a prototype for compute_a_rotate_length.
2601         * config/h8300/h8300.c (emit_a_rotate): Change to
2602         output_a_rotate.
2603         (compute_a_rotate_length): New.
2604         (h8300_adjust_insn_length): Remove.
2605         * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
2606         * config/h8300/h8300.md (adjust_length): Remove.
2607         (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
2608         (*rotlhi3_1): Likewise.
2609         (*rotlsi3_1): Likewise.
2610
2611 2003-06-26  Roger Sayle  <roger@eyesopen.com>
2612             Richard Henderson  <rth@redhat.com>
2613
2614         * builtins.c (expand_builtin_mathfn): Always stabilize the argument
2615         list against re-evaluation.  If expand_unop fails, call expand_call
2616         with the stabilized argument list rather than return NULL_RTX.
2617         (expand_builtin_mathfn2): Likewise, always stabilize the argument
2618         list, and call expand_call ourselves if expand_binop fails.
2619
2620 2003-06-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
2621
2622         PR optimization/11210
2623         * fold-const (decode_field_reference): Strip only NOPs that
2624         don't affect the sign.
2625
2626 2003-06-26  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
2627
2628         * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
2629         (pop_fpscr, fpu_switch): Likewise.
2630
2631 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2632
2633         * value-prof.c: New.
2634         * value-prof.h: New.
2635         * Makefile.in (value-prof.o): New.
2636         (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
2637         (profile.o): Add value-prof.h and tree.h dependency.
2638         * flags.h (flag_profile_values): Declare.
2639         * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
2640         Add new counters.
2641         (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
2642         GCOV_COUNTER_V_DELTA): New counter sections.
2643         (__gcov_merge_single, __gcov_merge_delta): Declare.
2644         * flow.c (mark_used_regs): Set subregs_of_mode only when the
2645         structure is initialized.
2646         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
2647         * profile.c: Include value-prof.h and tree.h.
2648         (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
2649         gen_const_delta_profiler, instrument_values): New static functions.
2650         (get_exec_counts): Fix comment.
2651         (branch_prob): Invoke instrument_values.
2652         * toplev.c (flag_profile_values): New flag.
2653         * doc/invoke.texi (-fprofile-values): Document.
2654
2655 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2656
2657         * Makefile.in (cfgrtl.o): Add expr.h dependency.
2658         * cfgrtl.c: Include expr.h.
2659         (mark_killed_regs, safe_insert_insn_on_edge): New
2660         functions.
2661         * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
2662         * basic-block.h (safe_insert_insn_on_edge): Declare.
2663
2664 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
2665
2666         * c-opts.c (missing_arg): Make non-static.
2667         (c_common_handle_option): Don't check for missing arguments.
2668         * opts.c (handle_option): Check for missing arguments.
2669
2670 2003-06-26  David Edelsohn  <edelsohn@gnu.org>
2671
2672         * config/rs6000/power4.md (power4-veccomplex): Correct latency.
2673
2674 2003-06-25  Loren James Rittle  <ljrittle@acm.org>
2675
2676         * configure.in (ld_vers): Portability [sed].
2677         * configure: Regenerate with autoconf213.
2678
2679 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
2680
2681         * doc/extend.texi: Document new builtin functions for Intel
2682         Prescott New Intrunctions.
2683
2684         * doc/invoke.texi: Document new command-line options, -mpni and
2685         -mno-pni, for Intel Prescott New Intrunctions.
2686
2687         * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
2688
2689         * config/i386/i386.c (override_options): Turn on MASK_SSE2
2690         for -mpni. Turn on MASK_SSE for -msse2.
2691         (bdesc_2arg): Add PNI builtins with 2 args.
2692         (bdesc_1arg): Add PNI builtins with 1 arg.
2693         (ix86_init_mmx_sse_builtins): Handle PNI builtins.
2694         (ix86_expand_builtin): Likewise.
2695
2696         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
2697         MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
2698         MASK_TLS_DIRECT_SEG_REFS): Renumbered.
2699         (TARGET_PNI): New.
2700         (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
2701         -mpni and -mno-pni.
2702         (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
2703         (ix86_builtins): Add PNI builtins.
2704         (config/i386/i386.md): Add PNI patterns.
2705
2706         * config/i386/pmmintrin.h: New file.
2707
2708 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
2709
2710         * config/h8300/h8300.md (call): Fix the insn lengths.
2711         (call_value): Likewise.
2712
2713 Thu Jun 26 00:13:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
2714
2715         * c-common.c (handle_used_attribute): Use mark_referenced.
2716         * varasm.c (mark_referenced): Break out from ...
2717         (assemble_name): ... here.
2718         * tree.h (mark_referenced): Declare.
2719
2720 2003-06-25  Wolfgang Bangerth  <bangerth@dealii.org>
2721
2722         * gccbug.in: Add PCH to list of categories.
2723
2724 2003-06-25 Martin Schaffner <schaffner@gmx.li>
2725
2726         * cppfiles.c: Clarify comments.
2727         * cpphash.h: Likewise.
2728         * cpplib.h: Likewise.
2729         * cppmacro.c: Likewise.
2730         * mkdeps.h: Likewise.
2731
2732 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
2733
2734         * c-opts.c (complain_wrong_lang, write_langs): Remove.
2735         (c_common_handle_option): Complaints about wrong language are
2736         handled in opts.c now.
2737         * opts.c (complain_wrong_lang, write_langs, handle_options): New.
2738         (find_opt): Fix thinko.
2739         (handle_option): Update prototype.  Complain about switches for
2740         a different front end.
2741         * opts.h (lang_names, handle_options): New.
2742         (handle_option): Remove.
2743         * opts.sh: Write out language names array.
2744         * toplev.c (parse_options_and_default_flags): Use handle_options.
2745
2746 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
2747
2748         * config/i386/i386.c (MASK_SSE1): Removed.
2749         (MASK_SSE164): Removed.
2750         (MASK_SSE264): Removed.
2751         (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
2752         MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
2753         with MASK_SSE2 | MASK_64BIT.
2754         (bdesc_1arg): Likewise.
2755         (ix86_init_mmx_sse_builtins): Likewise.
2756
2757         * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
2758         (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
2759         -msse2.
2760
2761 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2762
2763         * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
2764         (HOST_WIDE_INT_PRINT_DEC_SPACE,
2765         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
2766         HOST_WIDEST_INT_PRINT_DEC_SPACE,
2767         HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
2768         (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
2769         HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
2770         terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
2771
2772         * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
2773         * ra-debug.c (dump_static_insn_cost): Likewise.
2774
2775 2003-06-26  Nick Clifton  <nickc@redhat.com>
2776
2777         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2778         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2779         Replace occurances of '???' with 'XXX' incase they are
2780         mistaken for trigraphs.
2781         (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
2782         does not have a register for the first operand.
2783
2784 2003-06-25      Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2785
2786         * config/sh/sh.c (sh_register_move_cost):
2787         Add case for moving between MAC_REGS.
2788
2789 2003-06-25  Zack Weinberg  <zack@codesourcery.com>
2790
2791         PR 10178
2792         * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
2793         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
2794         * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
2795         to true.
2796         * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
2797         return 0.
2798
2799 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2800
2801         * Makefile.in (bt-load.o): Depend on $(TM_P_H).
2802         * bt-load.c: Include "tm_p.h".
2803
2804 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
2805
2806         * config/h8300/h8300.c (compute_mov_length): Adjust for the
2807         new optimization.
2808         * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
2809         an SImode constant whose upper and lower are the same.
2810
2811 Wed Jun 25 11:31:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
2812
2813         * varasm.c (assemble_name): Mark needed variables even when
2814         global info is ready.
2815
2816 2003-06-24  Jerry Quinn  <jlquinn@optonline.net>
2817
2818         PR other/11280
2819         * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
2820         -freorder-functions description.
2821
2822 2003-06-25  Josef Zlomek  <zlomekj@suse.cz>
2823
2824         * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
2825
2826 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
2827
2828         * opts.c (common_handle_option): Add missing break;s.
2829
2830 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
2831
2832         * config/h8300/h8300-protos.h: Add a prototype for
2833         compute_mov_length.
2834         * config/h8300/h8300.c (compute_mov_length): New.
2835         * config/h8300/h8300.md (*movqi_h8300): Use it.
2836         (*movqi_h8300hs): Likewise.
2837         (movstrictqi): Likewise.
2838         (*movhi_h8300): Likewise.
2839         (*movhi_h8300hs): Likewise.
2840         (movstricthi): Likewise.
2841         (*movsi_h8300): Likewise.
2842         (*movsf_h8300): Likewise.
2843         (*movsi_h8300hs): Likewise.
2844         (*movsf_h8300hs): Likewise.
2845
2846 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
2847
2848         * jump.c (next_nondeleted_insn): Remove.
2849         * rtl.h: Remove the prototype for next_nondeleted_insn.
2850
2851 2003-06-24  Roger Sayle  <roger@eyesopen.com>
2852
2853         PR optimization/11311
2854         * builtins.c (powi_cost): Fix typo.  The number of multiplications
2855         required is the number to reduce the argument, result, plus the
2856         cost of calculating the residual, val [not n, the original value].
2857
2858 2003-06-24  Roger Sayle  <roger@eyesopen.com>
2859
2860         * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
2861
2862 2003-06-24  Richard Henderson  <rth@redhat.com>
2863             (blame to: Loren James Rittle  <ljrittle@acm.org>)
2864
2865         * real.h (ieee_extended_intel_96_round_53_format): New.
2866         * real.c (ieee_extended_intel_96_round_53_format): New.
2867         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
2868         for XFmode and TFmode.
2869
2870 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
2871
2872         * config/h8300/h8300.md (4 anonymous patterns): Give internal
2873         names.
2874         (movsi_h8300): Change the name to *movsi_h8300.
2875         (movsi_h8300hs): Change the name to *movsi_h8300hs.
2876         (movsf_h8300): Change the name to *movsf_h8300.
2877         (movsf_h8300hs): Change the name to *movsf_h8300hs.
2878
2879 2003-06-24  Jakub Jelinek  <jakub@redhat.com>
2880
2881         * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
2882         src twice.
2883
2884 2003-06-24  J"orn Rennecke <joern.rennecke@superh.com>
2885
2886         Back out these patches:
2887          2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
2888           * sh.h (OLD_ARG_MODE): New macro.
2889           (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
2890           (FUNCTION_ARG_1): Break out of:
2891           (FUNCTION_ARG).  Use OLD_ARG_MODE.
2892          2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
2893           * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
2894           of the generated register.
2895
2896         * sh.h (FUNCTION_ARG_SCmode_WART): Define.
2897         (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
2898         an even number of floating point regs are in use, use the same
2899         sequence of argument passing registers for SCmode as would be
2900         used for two SFmode values.
2901         * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
2902         swap real / imaginary parts in incoming SCmode values passed
2903         in registers.
2904
2905 2003-06-24  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2906
2907         PR target/11260
2908         * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
2909
2910 Tue Jun 24 18:49:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
2911
2912         * Makefile.in (cgraph.o): Depend on output.h, not depend on
2913         tree-inline.h
2914         * cgraph.c: Do not include tree-inline.h; include output.h
2915         (known_fns): Rename to ...
2916         (known_decls): ... this one; update all uses.
2917         (cgraph_varpool_hash): New static variable.
2918         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
2919         variables.
2920         (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
2921         cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
2922         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2923         New functions.
2924         * cgraph.h (cgraph_varpool_node): New structure.
2925         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
2926         (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
2927         cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
2928         cgraph_varpool_asemble_pending_decls): Declare.
2929         * cgraphunit.c (record_call_1): Notice variable references.
2930         (cgraph_finalize_compilation_unit): Assemble pending variables.
2931         * toplev.c (wrapup_global_declarations): Use varpool.
2932         (compile_file): Assemble pending declarations.
2933         (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
2934         * varasm.c (assemble_name): Notice varpool references.
2935
2936 Tue Jun 24 13:52:11 CEST 2003  Jan Hubicka  <jh@suse.cz>
2937
2938         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
2939         * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
2940         * varasm.c (assemble_variable): Call prepare_assemble_variable.
2941
2942 2003-06-23  Roger Sayle  <roger@eyesopen.com>
2943
2944         * builtins.c (expand_builtin): Use expand_builtin_pow to expand
2945         calls for pow, powf, powl and their __builtin_ variants.
2946         (expand_builtin_pow): If the second argument is a constant
2947         integer and compiling with -ffast-math, use expand_powi to
2948         generate RTL if powi_cost is less than POWI_MAX_MULTS.
2949         (powi_cost): New function to return the number of multiplications
2950         necessary to evaluate an Nth power, for integer constant N.
2951         (expand_powi): New function to expand the RTL for evaluating
2952         the Nth power of a floating point value, for integer constant N.
2953
2954         * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
2955
2956 Mon Jun 23 23:07:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
2957
2958         * cgraph.c (cgraph_nodes_queue): Declare.
2959         (eq_node): Take identifier as p2.
2960         (cgraph_node): Update htab_find_slot_with_hash call.
2961         (cgraph_node_for_identifier): New.
2962         (cgraph_mark_needed_node): Move here from cgraphunit.c.
2963         * cgraph.h (cgraph_nodes_queue): Declare.
2964         (cgraph_node_for_identifier): Declare.
2965         * cgraphunit.c (cgraph_finalize_function): Collect entry points here
2966         instead of in cgraph_finalize_compilation_unit; constructors and
2967         destructors are entry points.
2968         (cgraph_finalize_compilation_unit): Reorganize debug outout;
2969         examine nested functions after lowerng; call collect_functions hook.
2970         (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
2971         (cgraph_finalize_compilation_unit): Do not collect entry points.
2972         * varasm.c: Include cgraph.h
2973         (assemble_name): Mark referenced identifier as needed.
2974
2975         * cgraphunit.c (record_call_1): Use get_callee_fndecl.
2976
2977 2003-06-23  Jakub Jelinek  <jakub@redhat.com>
2978
2979         * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
2980         just SYMBOL_REF.
2981         * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
2982         mode, as it requires pic register loaded.
2983
2984         * varasm.c (resolve_unique_section): Remove prototype.  No longer
2985         static.
2986         * tree.h (resolve_unique_section): New prototype.
2987
2988 2003-06-23  Andreas Schwab  <schwab@suse.de>
2989
2990         PR debug/9905
2991         * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
2992         recursing through first argument.
2993
2994 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
2995
2996         * ChangeLog.1: Fix a typo.
2997         * cfgrtl.c: Fix comment typos.
2998         * dwarf2out.c: Likewise.
2999         * expmed.c: Likewise.
3000         * genrecog.c: Likewise.
3001         * jump.c: Likewise.
3002         * rtlanal.c: Likewise.
3003         * ssa-dce.c: Likewise.
3004         * toplev.c: Likewise.
3005
3006 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3007
3008         * doc/extend.texi: Fix typos.
3009         * doc/md.texi: Likewise.
3010         * doc/tm.texi: Likewise.
3011
3012 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3013
3014         * basic-block.h: Fix comment formatting.
3015         * bt-load.c: Likewise.
3016         * builtins.c: Likewise.
3017         * c-common.c: Likewise.
3018         * c-common.h: Likewise.
3019         * c-format.c: Likewise.
3020         * coverage.c: Likewise.
3021         * cpplib.h: Likewise.
3022         * cpppch.c: Likewise.
3023         * dbxout.c: Likewise.
3024         * diagnostic.c: Likewise.
3025         * dwarf2out.c: Likewise.
3026         * expr.c: Likewise.
3027         * fold-const.c: Likewise.
3028         * function.c: Likewise.
3029         * gcc.c: Likewise.
3030         * gcov-io.c: Likewise.
3031         * gcov-io.h: Likewise.
3032         * gcov.c: Likewise.
3033         * profile.c: Likewise.
3034         * real.h: Likewise.
3035         * sched-deps.c: Likewise.
3036
3037 2003-06-23  Roger Sayle  <roger@eyesopen.com>
3038             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3039
3040         * doc/contrib.texi (Contributors): Add a note on testing and
3041         remove duplicates from testers list.
3042
3043 2003-06-23  Nick Clifton  <nickc@redhat.com>
3044
3045         * read-rtl.c (read_braced_string): Check for EOF.  If
3046         encountered issue an error message.
3047
3048 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3049
3050         * doc/invoke.texi: Document dump options, dT and dW.
3051
3052 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3053
3054         * genrecog.c (pred_table): Remove the entry for
3055         mode_independent_operand.
3056         * recog.c (next_insns_test_no_inequality): Remove.
3057         (mode_independent_operand): Likewise.
3058         * recog.h: Remove the prototype for mode_independent_operand.
3059
3060 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3061
3062         * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
3063         store into bit 0.
3064         * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
3065         second alternative to set_znv.
3066         (*extzv_1_r_inv_h8300hs): Likewise.
3067
3068 2003-06-23  Hans-Peter Nilsson  <hp@bitrange.com>
3069
3070         * configure.in (in_tree_gas): Find out here whether GAS is ELF,
3071         set in_tree_gas_is_elf accordingly.
3072         (in_tree_ld): Find out whether LD emulation is ELF, set
3073         in_tree_ld_is_elf accordingly.
3074         (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
3075         (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
3076         (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
3077         (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
3078         grepping gas/Makefile.
3079         (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
3080         $in_tree_ld_is_elf instead of grepping ld/Makefile.
3081         * configure: Regenerate.
3082
3083 2003-06-22  Roger Sayle  <roger@eyesopen.com>
3084
3085         * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
3086         up the stabilized argument list, not build_tree_list.
3087         (expand_builtin_strcpy): Construct new argument list manually
3088         instead of using chainon to modify the original argument list.
3089         (expand_builtin_stpcpy): Construct new argument list manually
3090         instead of using copy_list and chainon.
3091         (expand_builtin_sprintf): New function.  Optimize calls to
3092         sprintf when the format is "%s" or doesn't contain a '%'.
3093         (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
3094         expand_builtin_sprintf.
3095
3096 2003-06-22  Andreas Schwab  <schwab@suse.de>
3097
3098         * function.c (set_insn_locators): Mark as unused.
3099
3100 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3101
3102         * common.opt: Add -finline-limit.
3103         * opts.c (common_handle_options): Handle it.
3104         * opts.sh: Temporary kludge for -finline-limit.
3105         * toplev.c (decode_f_option, independent_decode_option): Die.
3106         (parse_options_and_default_flags): No independent_decode_option.
3107
3108 2003-06-22  Andreas Jaeger  <aj@suse.de>
3109
3110         * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
3111
3112 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3113
3114         * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
3115
3116 2003-06-22  Andreas Schwab  <schwab@suse.de>
3117
3118         * doc/invoke.texi: Remove leading `-' from options in index.
3119
3120 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3121
3122         * bt-load.c: Follow spelling conventions.
3123
3124 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3125
3126         * expr.c (emit_move_insn_1): Fix a comment typo.
3127
3128 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3129
3130         * doc/invoke.texi: Alphabetize dump options.
3131
3132 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3133
3134         * doc/invoke.texi: Remove a duplicate -dk.
3135
3136 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3137
3138         * doc/invoke.texi: Update dump file names.
3139
3140 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
3141
3142         * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
3143         and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
3144
3145 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3146
3147         * doc/rtl.texi: Fix the @findex for pre_modify.
3148
3149 2003-06-22  Andreas Jaeger  <aj@suse.de>
3150
3151         * caller-save.c: Convert to ISO C90.
3152         * calls.c: Likewise.
3153         * cfg.c: Likewise.
3154         * cfganal.c: Likewise.
3155         * cfgbuild.c: Likewise.
3156         * cfgcleanup.c: Likewise.
3157         * cfghooks.c: Likewise.
3158         * cfglayout.c: Likewise.
3159         * cfglayout.h: Likewise.
3160         * cfgloop.c: Likewise.
3161         * cfgloop.h: Likewise.
3162         * cfgloopanal.c: Likewise.
3163         * cfgloopmainip.c: Likewise.
3164         * cfgrtl.c: Likewise.
3165
3166 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
3167
3168         * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
3169         64-bit alignment.
3170
3171 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
3172
3173         * arm.md (all call_value patterns): Remove register constraints on
3174         value operand.
3175
3176 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3177
3178         * common.opt: More -f switches.
3179         * opts.c (common_handle_options): Handle them.
3180         * toplev.c (time_report): Make extern.
3181         (f_options): USe flag_dummy.
3182         (decode_f_option): No need to use f_options now.
3183         * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
3184         flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
3185
3186 2003-06-22  Andreas Jaeger  <aj@suse.de>
3187
3188         * c-lex.c: Convert to ISO C90.
3189         * c-objc-common.c: Likewise.
3190         * c-opts.c: Likewise.
3191         * c-pch.c: Likewise.
3192         * c-ppoutput.c: Likewise.
3193         * c-pragma.h: Likewise.
3194         * c-pretty-print.c: Likewise.
3195         * c-pretty-print.h: Likewise.
3196         * c-semantics.c: Likewise.
3197         * c-tree.h: Likewise.
3198         * c-typeck.c: Likewise.
3199
3200         * c-lang.c: Convert to ISO C90.
3201
3202 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3203
3204         * opts.c (find_opt): Fix to always guarantee a find of a
3205         switch with joined parameter.
3206         * opts.h (struct cl_option): New member back_chain.
3207         * opts.sh: Update to calculate and add back_chain member.
3208
3209 2003-06-22  Gabriel Dos Reis <gdr@integrable-solutions.net>
3210
3211         * diagnostic.h (output_host_wide_integer): Declare.
3212         * diagnostic.c (output_long_long_decicaml): New function.
3213         (output_host_wide_integer): Likewise.
3214         (output_format): Use them.  Handle "%ll" and "%w".
3215
3216 2003-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
3217
3218         * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
3219
3220 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
3221
3222         * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
3223         * configure.in: Don't use gcc_AC_C_CHARSET.
3224         * configure, config.in: Regenerate.
3225         * config/i370/i370.c, config/i370/i370.h: Use
3226         (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
3227         instead of HOST_EBCDIC or !HOST_EBCDIC.  Clarify comments a tad.
3228
3229 2003-06-21  Neil Booth  <neil@daikokuya.co.uk>
3230
3231         * Makefile.in: Update.
3232         * common.opt: New switches.
3233         * opts.c: Include diagnostic.h.
3234         (common_handle_option): Handle new switches.
3235         * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
3236         flag_if_conversion2, flag_delete_null_pointer_checks,
3237         flag_rerun_cse_after_loop): Make extern.
3238         (flag_dummy): New.
3239         (f_options): Update to use flag_dummy for moved options.
3240         (decode_f_option): Some switches moved to opts.c.
3241         * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
3242         flag_if_conversion2, flag_delete_null_pointer_checks,
3243         flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
3244         flag_tracer, flag_thread_jumps, flag_unroll_loops,
3245         flag_unroll_all_loops, flag_unswitch_loops): New.
3246
3247 Sat Jun 21 13:41:00 CEST 2003  Jan Hubicka  <jh@suse.cz>
3248
3249         * i386.c (ix86_va_arg): Fix allocation of temporary slot.
3250
3251 2003-06-20  Kazu Hirata  <kazu@cs.umass.edu>
3252
3253         * config/h8300/h8300-protos.h: Add a prototype for
3254         same_cmp_preceding_p.
3255         * config/h8300/h8300.c (same_cmp_preceding): New.
3256         * config/h8300/h8300.md: Extend peephole2's that transform
3257         compare:SI into shorter sequences so that they can deal with
3258         signed comparisons.
3259
3260 2003-06-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3261
3262         * doc/contrib.texi (Contributors): Use Windows instead of Win32.
3263
3264         Update Andreas Jaeger's entry.
3265
3266         Merge the two entries of Kaveh Ghazi, David Edelsohn, and
3267         Loren J. Rittle.
3268
3269 2003-06-21  Nathanael Nerode  <neroden@gcc.gnu.org>
3270
3271         * mkconfig.sh: Add multiple inclusion guards to generated headers.
3272
3273 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
3274
3275         * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
3276         * common.opt: Add remaining -W options and -g.
3277         * diagnostic.c (warnings_are_errors): Remove.
3278         * flags.h: Make most warning flags boolean.
3279         * opts.c (common_handle_option): Handle remaining -W options, and -g.
3280         Move many warning flags from toplev.c, making them boolean.
3281         * toplev.c: Remove many warning flags.
3282         (decode_W_option): Remove.
3283         (decode_g_option): Make extern.  Error on unknown switch.
3284         (lang_independent_W_options): Use warn_dummy.
3285         (independent_decode_option): Just handle -f switches now.
3286         * toplev.h (decode_g_option): New.
3287
3288 2003-06-20  Aldy Hernandez  <aldyh@redhat.com>
3289
3290         PR/11092
3291         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
3292         vectors.
3293
3294 2003-06-20  Kelley Cook  <kelleycook@wideopenwest.com>
3295
3296         * opts.sh: Tweak awk script for portability.
3297
3298 2003-06-20  Mark Mitchell  <mark@codesourcery.com>
3299
3300         PR c++/10888
3301         * tree-inline.c (expand_call_inline): Do not warn about failing to
3302         inline functions declared in system headers.
3303         * doc/invoke.texi (-Winline): Expand on documentation.
3304
3305 2003-06-20  Richard Henderson  <rth@redhat.com>
3306
3307         * config/alpha/alpha.c (alpha_file_start): Disable
3308         file_start_file_directive for ELF and not MDEBUG.
3309
3310 2003-06-20  J"orn Rennecke <joern.rennecke@superh.com>
3311
3312         * sh.h (ROUND_TYPE_ALIGN): Remove.
3313
3314 2003-06-20  Richard Henderson  <rth@redhat.com>
3315
3316         * hooks.c (hook_int_void_no_regs): Rename from
3317         hook_reg_class_void_no_regs; change return type.
3318         * hooks.h: Update.
3319         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
3320         * target.h (branch_target_register_class): Change return type to int.
3321         Add documentation.
3322         * config/sh/sh.c (sh_target_reg_class): Change return type.
3323         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3324
3325 2003-06-20  Andreas Tobler <toa@pop.agri.ch>
3326
3327         * c-format.c: Change _Bool to bool reverting part of the last
3328         patch.
3329
3330 2003-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3331
3332         * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
3333         strip name encoding.
3334
3335 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3336
3337         * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
3338         * configure: Regenerate.
3339         Fixes PR driver/9362.
3340
3341 2003-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3342
3343         * config/alpha/alpha.c (alpha_file_start): Fix typo.
3344
3345 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3346
3347         * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
3348         to ASM_OUTPUT_SOURCE_LINE.
3349
3350 2003-06-20  Daniel Egger  <degger@fhm.edu>
3351             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3352
3353         * doc/install.texi (Building): Correct and improve statement
3354         about parallel builds.
3355
3356 2003-06-20  Andreas Jaeger  <aj@suse.de>
3357
3358         * c-common.c: Change _Bool to bool reverting part of the last
3359         patch.
3360
3361 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
3362
3363         * tree.h (expand_function_end): Remove all parameters.
3364         * function.c (expand_function_end): Remove all parameters.
3365         Use input_location. Never expand_end_bindings.
3366         * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
3367         * coverage.c (create_coverage): Likewise.
3368
3369 2003-06-20  Nick Clifton  <nickc@redhat.com>
3370
3371         * doc/extend.texi (ARM Built-in Functions): New node.  Document
3372         ARM builtin functions for iWMMXt support.
3373
3374 2003-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
3375
3376         * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
3377         SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
3378         (--with-as): Add @anchor.
3379         (--with-gnu-ld): Fix typo.
3380         (--with-ld): Add @uref to --with-as.
3381
3382 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
3383
3384         * doc/tm.texi: Uniformly use @defmac for macros, rather than
3385         @table items.  Minor formatting and editorial corrections.
3386
3387 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
3388
3389         * line-map.c, line-map.h: Convert to ISO prototypes.
3390
3391 2003-06-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3392
3393         * gcse.c (store_killed_in_insn): Fix.
3394
3395 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
3396
3397         * target.h (asm_out.file_start, file_start_app_off,
3398         file_start_file_directive): New hooks.
3399         * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3400         TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
3401         New hook-definition macros.
3402         * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
3403         * varasm.c (default_file_start): New.
3404         * output.h: Prototype it.
3405         * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
3406         * system.h: Poison ASM_FILE_START.
3407
3408         * config/alpha/alpha.c (alpha_write_verstamp): Delete.
3409         (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
3410         (unicosmk_asm_file_start): Rename unicosmk_file_start,
3411         make static, take no arguments.
3412         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
3413         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
3414         * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
3415         TARGET_ASM_FILE_END.  Remove reference to ASM_FILE_START in
3416         comment.
3417         * config/arc/arc.c (arc_asm_file_start): Rename
3418         arc_file_start, take no arguments, make static.
3419         (TARGET_ASM_FILE_START): Set it.
3420         * config/arm/arm.c (aof_file_start): New static function.
3421         (TARGET_ASM_FILE_START): Set it, when appropriate.
3422         * config/arm/coff.h, config/arm/elf.h:
3423         Set TARGET_ASM_FILE_START_APP_OFF to true.
3424         * config/avr/avr.c (asm_file_start): Rename avr_file_start,
3425         take no arguments, make static.
3426         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3427         Set them.
3428         * config/c4x/c4x.c (c4x_file_start): New static function.
3429         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3430         Set them.
3431         * config/cris/cris.c (cris_file_start): New static function.
3432         (TARGET_ASM_FILE_START): Set it.
3433         * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
3434         dsp16xx_file_start, make static.
3435         (luxworks_dsp16xx_file_start): Delete.
3436         (TARGET_ASM_FILE_START): Set it.
3437         * config/h8300/h8300.c (asm_file_start): Rename
3438         h8300_file_start, make static, take no arguments.
3439         (TARGET_ASM_FILE_START): Set it.
3440         * config/i370/i370.c (i370_file_start): New static function.
3441         (TARGET_ASM_FILE_START): Set it.
3442         * config/i386/i386.c (x86_file_start): New static function.
3443         (TARGET_ASM_FILE_START): Set it.
3444         * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
3445         X86_FILE_START_FLTUSED): New macros, default to false.
3446         * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
3447         * config/i386/sysv4.h, config/i386/sco5.h: Override
3448         X86_FILE_START_VERSION_DIRECTIVE to true.
3449         * config/ia64/ia64.c (ia64_file_start): New static function.
3450         (TARGET_ASM_FILE_START): Set it.
3451         (emit_safe_across_calls): Take no arguments.
3452         * config/ia64/ia64.md: Update to match.
3453         * config/m32r/m32r.c (m32r_asm_file_start): Rename
3454         m32r_file_start, make static, take no arguments.
3455         (TARGET_ASM_FILE_START): Set it.
3456         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
3457         m68hc11_file_start, make static, take no arguments.
3458         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3459         (print_options): Delete.
3460         * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
3461         (TARGET_ASM_FILE_START_APP_OFF): Set.
3462         * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
3463         m68k_hp320_file_start.
3464         * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
3465         Make static, take no arguments.
3466         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3467         * config/mmix/mmix.c (mmix_asm_file_start): Rename
3468         mmix_file_start, make static, take no arguments.
3469         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3470         * config/mn10300/mn10300.c (asm_file_start): Rename
3471         mn10300_file_start, make static, take no arguments.
3472         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3473         * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
3474         * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
3475         pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
3476         pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
3477         pa_hpux64_hpas_file_start): New static functions.
3478         * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
3479         * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
3480         pa_linux_file_start.
3481         * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
3482         pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
3483         appropriate.
3484         * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
3485         * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
3486         (rs6000_file_start): Make static, take no arguments.  Reset
3487         default_cpu under certain conditions.
3488         (rs6000_xcoff_file_start): New function.
3489         * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
3490         * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
3491         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
3492         * config/sh/sh.c (output_file_start): Rename
3493         sh_file_start, make static, take no arguments.  Merge in old
3494         code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
3495         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3496         * config/sh/sh.c (TARGET_ELF): Define to 0.
3497         * config/sh/elf.h (TARGET_ELF): Redefine to 1.
3498         * config/v850/v850.c (asm_file_start): Delete.
3499         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3500         * config/vax/vax.c (vax_file_start): New static function.
3501         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
3502
3503         * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
3504         * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
3505         * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
3506         * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
3507         * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
3508         * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
3509
3510         * config/darwin.h, config/elfos.h, config/alpha/elf.h
3511         * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
3512         * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
3513         * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
3514         * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
3515         * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
3516         * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
3517         * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
3518         * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
3519         * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
3520         * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
3521         * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
3522         * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
3523         * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
3524         * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
3525         * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
3526         * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
3527         * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
3528
3529         * config/alpha/alpha-protos.h, config/arc/arc-protos.h
3530         * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
3531         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
3532         * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
3533         * config/mips/mips-protos.h, config/mmix/mmix-protos.h
3534         * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
3535         * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
3536
3537         * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
3538         Remove reference to ASM_FILE_START in comment.
3539         * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
3540         * config/arm/linux-gas.h, config/arm/netbsd-elf.h
3541         * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
3542
3543 2003-06-19  Graeme Peterson <gp@qnx.com>
3544
3545         * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
3546         SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
3547         sysroot_hdrs_suffix_spec): New.
3548         (static_specs): Initialize new variables.
3549         (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
3550         * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
3551         New macros.
3552
3553 2003-06-19  Andreas Jaeger  <aj@suse.de>
3554
3555         * c-aux-info.c: Convert to ISO C90.
3556         * c-pragma.c: Likewise.
3557         * c-common.c: Likewise.
3558         * c-common.h: Likewise.
3559         * c-convert.c: Likewise.
3560         * c-cppbuiltin.c: Likewise.
3561         * c-dump.c: Likewise.
3562         * c-decl.c: Likewise
3563         * c-format.c: Likewise.
3564         * c-incpath.c: Likewise.
3565         * c-incpath.h: Likewise.
3566
3567 2003-06-19  Roger Sayle  <roger@eyesopen.com>
3568
3569         * builtins.c (expand_errno_check): Assume that flag_errno_math
3570         and HONOR_NANS have been tested before calling here.  Only try
3571         to set errno ourselves if the decl can't throw an exception.
3572         (expand_builtin_mathfn): Move the code to stabilize the arg
3573         after the main switch, so that that its only done when needed.
3574         BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
3575         Don't modify the original expr when stabilizing the argument.
3576         (expand_builtin_mathfn_2): Likewise, move the code to stabilize
3577         the args after the main switch, and don't modify the orginal exp.
3578
3579 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
3580
3581         * expr.c (const_vector_from_tree): Initialize remaining elements
3582         to 0.
3583
3584 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
3585
3586         * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
3587         Change "fix" to "float".
3588
3589 2003-06-19  Andreas Jaeger  <aj@suse.de>
3590
3591         * c-tree.h: Remove declaration of poplevel.
3592
3593         * tree.h: Remove declaration of approx_sqrt.
3594
3595         * c-lex.c: Remove redundant declaration of asm_out_file.
3596
3597         * flags.h: Remove declaration of warn_unknown_pragma and
3598         main_input_filename.
3599
3600         * rtl.h: Remove functions from fold-const.c since they're already
3601         declared in tree.h.
3602
3603         * regs.h: Remove redundant declaration of reg_names.
3604
3605         * bt-load.c (migrate_btr_defs): Correct printf arguments.
3606
3607         * protoize.c: Fix breakage from last patch.
3608
3609 2003-06-19  J"orn Rennecke <joern.rennecke@superh.com>
3610
3611         * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
3612         has been included.
3613
3614 2003-06-18  James A Morrison <ja2morri@student.math.uwaterloo.ca>
3615
3616         * config/sparc/sparc.c: Update copyright year.
3617
3618 2003-06-19  David Edelsohn  <edelsohn@gnu.org>
3619
3620         * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
3621         to ABI_V4.
3622
3623 2003-06-18  Joseph S. Myers  <jsm@polyomino.org.uk>
3624
3625         PR bootstrap/4068
3626         * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
3627
3628 2003-06-19  Kazu Hirata  <kazu@cs.umass.edu>
3629
3630         * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
3631         to the end of the file.  Remove unnecessary prototypes.
3632
3633 2003-06-19  Hans-Peter Nilsson  <hp@axis.com>
3634
3635         * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
3636         calls to insn_default_latency and result_ready_cost.  Initialize
3637         def_latency to 1.
3638
3639 2003-06-18  Richard Henderson  <rth@redhat.com>
3640
3641         * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
3642         (_Unwind_FindEnclosingFunction): Implement.
3643
3644 2003-06-18  Kazu Hirata  <kazu@cs.umass.edu>
3645
3646         * toplev.c (rest_of_handle_sched): Hide the entire function if
3647         INSN_SCHEDULING is not defined.
3648         (rest_of_compilation): Call rest_of_handle_sched() only when
3649         INSN_SCHEDULING is defined.
3650
3651 2003-06-18  Stephen Clarke <stephen.clarke@superh.com>
3652             J"orn Rennecke <joern.rennecke@superh.com>
3653
3654         * bt-load.c: New file.
3655         * Makefile.in (OBJS): Include bt-load.o
3656         (bt-load.o): Add dependencies.
3657         * flags.h (flag_branch_target_load_optimize): Declare.
3658         (flag_branch_target_load_optimize2): Likewise.
3659         * hooks.c (hook_reg_class_void_no_regs): New function.
3660         (hook_bool_bool_false): Likewise.
3661         * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
3662         * rtl.h (branch_target_load_optimize): Declare.
3663         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
3664         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3665         (TARGET_INITIALIZER): Include these.
3666         * target.h (struct gcc_target): Add branch_target_register_class
3667         and branch_target_register_callee_saved members.
3668         * toplev.c (enum dump_file_index): Add DFI_branch_target_load
3669         (dump_file) Add "tars" entry.
3670         (flag_branch_target_load_optimize): New variable.
3671         (flag_branch_target_load_optimize2): Likewise.
3672         (lang_independent_options): Add entries for new options.
3673         (rest_of_compilation): Call branch_target_load_optimize.
3674         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
3675         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3676         * doc/invoke.texi: Document -fbranch-target-load-optimize and
3677         -fbranch-target-load-optimize2.
3678         * rtl.h (epilogue_completed): Declare.
3679         * recog.c (epilogue_completed): New variable.
3680         * toplev.c (rest_of_compilation): Set it.
3681         * flow.c (mark_regs_live_at_end): Use it.
3682         * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
3683         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3684         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3685         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3686
3687         * sh.c (shmedia_space_reserved_for_target_registers): New variable.
3688         (sh_target_reg_class): New function.
3689         (sh_optimize_target_register_callee_saved): Likwise.
3690         (shmedia_target_regs_stack_space): Likewise.
3691         (shmedia_reserve_space_for_target_registers_p): Likewise.
3692         (shmedia_target_regs_stack_adjust): Likewise.
3693         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
3694         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3695         (calc_live_regs): If flag_branch_target_load_optimize2 and
3696         TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
3697         for target registers, make sure that we save all target registers.
3698         (sh_expand_prologue, sh_expand_epilogue): Take target register
3699         optimizations into account.  Collapse stack adjustments if that
3700         is beneficial.
3701         (initial_elimination_offset): Reserve space for target registers
3702         if necessary.
3703         * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
3704         (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
3705
3706 2003-06-18  Nick Clifton  <nickc@redhat.com>
3707
3708         * config.gcc: Add an extra_header for ARM targets.
3709         Support configuring with --with-cpu=iwmmxt.
3710         * doc/invoke.texi: Document new value for -mcpu= ARM switch.
3711         * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
3712         names.  Fix formatting.
3713         * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
3714         names.
3715         * config/arm/arm-protos.h (arm_emit_vector_const): New
3716         prototype.
3717         (arm_output_load_gr): New prototype.
3718         * config/arm/arm.c (extra_reg_names1): Delete.
3719         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
3720         * arch_is_iwmmxt): Define.
3721         (all_cores, all_architecture): Add entry for iwmmxt.
3722         (arm_override_options): Add support for iwmmxt.
3723         (use_return_insn, arm_function_arg, arm_legitimate_index_p,
3724         arm_print_value, arm_rtx_costs_1, output_move_double,
3725         arm_compute_save_reg_mask, arm_output_epilogue,
3726         arm_get_frame_size, arm_expand_prologue, arm_print_operand,
3727         arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
3728         Likewise.
3729         (arm_init_cumulative_args): Count iwmmxt registers.
3730         (arm_function_ok_for_sibcall): Return false of sibcall_blocked
3731         has been set.
3732         (struct minipool_node): Add fix_size field.
3733         (add_minipool_forward_ref): Add support for 8-byte aligning of
3734         the pool.
3735         (add_minipool_backward_ref, add_minipool_offsets,
3736         dump_minipool, push_minipool_fix): Likewise.
3737         (struct builtin_description): New struct.
3738         (builtin_description): New array of iwmmxt builtin functions.
3739         (arm_init_iwmmxt_builtins): New function.
3740         (arm_init_builtins): New function.
3741         (safe_vector_operand): New function.
3742         (arm_expand_binop_builtin): New function.
3743         (arm_expand_unop_builtin): New function.
3744         (arm_expand_builtin): New function.
3745         (arm_emit_vector_const): New function.
3746         (arm_output_load_gr): New function.
3747         * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
3748         TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
3749         TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
3750         DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
3751         (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
3752         (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
3753         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3754         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3755         REG_CLASS_FOR_LETTER): Add iwmmxt registers.
3756         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
3757         registers unless the iwmmxt target is selected.
3758         (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
3759         FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
3760         IS_IWMMXT_GR_REGNUM): Define.
3761         (FIRST_PSEUDO_REGISTER): Bump to 63.
3762         (struct machine_function): Add sibcall_blocked field.
3763         (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
3764         nargs fields.
3765         (enum arm_builtins): New enum list.
3766         * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
3767         UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
3768         UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
3769         UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
3770         (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
3771         VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
3772         (movv2si, movv4hi, movv8qi): New expands for vector moves.
3773         Include iwmmxt.md.
3774         * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
3775         multilib.
3776         (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
3777         * config/arm/mmintrin.h: New ARM specific header file.
3778         * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
3779
3780 2003-06-18  J"orn Rennecke <joern.rennecke@superh.com>
3781
3782         * toplev.c (Remaining -d letters summary): Update.
3783
3784 2003-06-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3785
3786         * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
3787         argument.
3788         (function_arg): Handle CALL_LIBCALL flag.
3789         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
3790         prototype.
3791         * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
3792         (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
3793         (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
3794         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
3795
3796 2003-06-18  Neil Booth  <neil@daikokuya.co.uk>
3797
3798         * Makefile.in: Update.
3799         * common.opt: New options.
3800         * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
3801         set_Wunused): New.
3802         (common_handle_option): Handle new options.
3803         * toplev.c (set_target_switch): Export.
3804         (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
3805         (decode_W_option): -Wunused and -Wextra handled in opts.c now.
3806         (independent_decode_option): More options handled in opts.c now.
3807         Change prototype.
3808         * toplev.h (set_target_switch): New.
3809
3810 2003-06-17  Robert Abeles  <rabeles@archaelogic.com>
3811
3812         PR debug/4252
3813         * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
3814         to dump_switch_p().
3815         * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
3816         from static strings in dump_files.
3817
3818 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3819
3820         * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
3821         VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
3822         libiberty macros.
3823
3824 2003-06-17  Jason Merrill  <jason@redhat.com>
3825
3826         PR c++/10929
3827         * tree-inline.c (expand_call_inline): Don't warn about failing to
3828         inline a function which was made inline by -finline-functions.
3829
3830 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3831
3832         * config/h8300/h8300-protos.h: Update to ISO C.
3833         * config/h8300/h8300.c: Likewise.
3834         * config/h8300/h8300.h: Likewise.
3835         * config/h8300/h8300.md: Likewise.
3836
3837 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3838
3839         * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
3840         * configure: Regenerate.
3841         * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
3842
3843 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
3844
3845         * install.texi (Testing): Add information on how to run Java
3846         runtime tests separately.
3847
3848 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3849
3850         * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
3851
3852         * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
3853         (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
3854
3855 2003-06-17  Christopher Faylor  <cgf@redhat.com>
3856
3857         * doc/install.texi: Add msvc rebuild caveat.
3858
3859 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3860
3861         * config/sh/coff.h: Replace Hitachi with Renesas.
3862         * config/sh/elf.h: Likewise.
3863         * config/sh/embed-elf.h: Likewise.
3864         * config/sh/lib1funcs.asm: Likewise.
3865         * config/sh/sh-protos.h: Likewise.
3866         * config/sh/sh.c: Likewise.
3867         * config/sh/sh.h: Likewise.
3868         * config/sh/sh.md: Likewise.
3869
3870 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3871
3872         * ChangeLog.3: Fix comment typos.
3873         * ChangeLog.6: Likewise.
3874         * config/d30v/d30v.c: Likewise.
3875         * config/h8300/h8300.md: Likewise.
3876         * config/m32r/m32r.md: Likewise.
3877         * config/mips/mips.c: Likewise.
3878         * config/mips/mips.md: Likewise.
3879         * config/ns32k/NOTES: Likewise.
3880
3881 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
3882             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3883
3884         * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
3885         to run Java runtime tests separately.
3886
3887 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3888
3889         * config/h8300/h8300-protos.h: Update a comment.
3890
3891 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
3892
3893         * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
3894         are aligned like integral modes.
3895         (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
3896
3897         * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
3898         (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
3899         * sh.md (*pt): Remove.
3900
3901         * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
3902
3903         * sh.md (return_media_rte): New pattern.
3904         (return_media): Use it.
3905
3906 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3907
3908         * doc/contrib.texi: Replace Hitachi with Renesas.
3909         * doc/install.texi: Likewise.
3910         * doc/invoke.texi: Likewise.
3911
3912 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
3913
3914         * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
3915         behaviour.
3916
3917 2003-06-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3918
3919         * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
3920
3921         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
3922         2003-01-23 patch. Corrected to handle kernels with changed ucontext.
3923
3924         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
3925         -msdata=eabi usages.
3926
3927         * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
3928
3929 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3930
3931         * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
3932         * fixinc/gnu-regex.c: Don't define `volatile'.
3933         * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
3934         * ggc-simple.c: Likewise.
3935         * system.h: Don't define `volatile'.
3936
3937         * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
3938         * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
3939         call these macros.
3940         * config.in, configure: Regenerated.
3941
3942 2003-06-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3943
3944         * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
3945         Handle POINTERS_EXTEND_UNSIGNED.
3946
3947 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3948
3949         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
3950         !TARGET_IRIX6]: Define as NULL.
3951
3952 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3953
3954         * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
3955
3956 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3957
3958         * dbxout.c (dbxout_source_line_counter): New global variable.
3959         Mark it with GTY(()).
3960         (dbxout_source_line): Increment dbxout_source_line_counter
3961         and pass it to ASM_OUTPUT_SOURCE_LINE.
3962         * sdbout.c (sdbout_source_line_counter): New global variable.
3963         Mark it with GTY(()).
3964         (unnamed_struct_number): Mark it with GTY(()).
3965         (sdbout_source_line): Increment sdbout_source_line_counter
3966         and pass it to ASM_OUTPUT_SOURCE_LINE.
3967         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
3968         (xcoffout_source_line): Pass 0 as third argument to
3969         ASM_OUTPUT_SOURCE_LINE.
3970         (xcoffout_begin_prologue): Likewise.
3971         * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3972         Use it instead of 'sym_lineno' but without incrementing it.
3973         * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3974         * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3975         * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3976         * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
3977         argument to ASM_OUTPUT_SOURCE_LINE.
3978         * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3979         * config/arm/aout.h: Remove useless comment.
3980         * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3981         * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3982         * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3983         Use it instead of 'sym_lineno' but without incrementing it.
3984         * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3985         * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
3986         parameter. Use it instead of 'sym_lineno' but without incrementing it.
3987         * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
3988         argument to ASM_OUTPUT_SOURCE_LINE.
3989         * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3990         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3991         * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3992         Use it instead of 'sym_lineno' but without incrementing it.
3993         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3994         * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3995         * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3996         * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3997         * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
3998
3999 2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
4000
4001         * config/mips/mips-protos.h (mips_expand_block_move): Declare.
4002         (expand_block_move, output_block_move): Remove.
4003         * config/mips/mips.h (enum block_move_type): Remove.
4004         * config/mips/mips.c (block_move_call, output_block_move): Remove.
4005         (mips_block_move_straight, mips_adjust_block_mem): New function.
4006         (mips_block_move_loop): Renamed and reworked from block_move_loop.
4007         (mips_expand_block_move): Likewise expand_block_move.  Return false
4008         to fall back on the target-independent code.
4009         * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
4010         (movstrsi_internal*): Remove.
4011
4012 2003-06-16  Zack Weinberg  <zack@codesourcery.com>
4013
4014         * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
4015         * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
4016         * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
4017         ISO C: new-style function declarations, no need for PARAMS,
4018         no special punctuation on indirect function calls, use string
4019         constant concatenation where convenient.
4020
4021 2003-06-17  Andreas Jaeger  <aj@suse.de>
4022
4023         * rtl.h: Remove declarations from coverage.h.
4024         * toplev.c: Include coverage.h.
4025         * Makefile.in (toplev.o): Depend on coverage.h.
4026
4027         * toplev.h: Remove extra declaration of print_time.
4028
4029         * gengtype.c (close_output_files): Remove duplicated declaration.
4030
4031 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4032
4033         * config/sparc/sysv4.h: Remove target-independent comment;
4034         replace "GNU CC" with "GCC".
4035         * config/vxworks.h: Replace "GNU compiler" with "GCC".
4036         * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
4037         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4038         config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
4039         config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
4040         config/sparc/rtemself.h, config/sparc/sol2-64.h,
4041         config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
4042         config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
4043         config/sparc/sol2.h, config/sparc/sp64-aout.h,
4044         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
4045         config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
4046         "GNU compiler", "GNU CC" with "GCC".
4047         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4048         config/sparc/sparc-modes.def, config/sparc/sparc.c,
4049         config/sparc/sparc.md, config/sparc/sparclet.md,
4050         config/sparc/supersparc.md, config/sparc/ultra1_2.md,
4051         config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
4052         "GNU C Compiler" with "GCC".
4053         * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
4054
4055 2003-06-16  Aldy Hernandez  <aldyh@redhat.com>
4056
4057         * simplify-rtx.c (simplify_subreg): Do not over-extend vector
4058         constants.
4059
4060         * testsuite/gcc.c-torture/execute/simd-4.c: New.
4061
4062 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4063
4064         * config/ip2k/ip2k.h: Remove target-independent comments.
4065
4066         * config.gcc: Explicitly mention elfos.h in ip2k entry.
4067         * config/ip2k/ip2k.h: Don't #include it here.
4068
4069 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4070
4071         * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
4072         config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
4073         dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
4074         function.c, gcc.c, genoutput.c, gensupport.c, global.c,
4075         haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
4076         loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
4077         read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
4078         stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
4079         the PTR macro.
4080
4081         * gengtype.c: Don't use UNION_INIT_ZERO.
4082         * system.h (UNION_INIT_ZERO): Delete.
4083
4084 2003-06-16  Richard Henderson  <rth@redhat.com>
4085
4086         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
4087         GET_MODE_UNIT_SIZE when simplifying constant vectors.
4088
4089 2003-06-16  Andreas Jaeger  <aj@suse.de>
4090
4091         * timevar.c (get_run_time): Remove function provided also by
4092         libiberty.
4093         * timevar.h: Remove get_run_time declaration.
4094
4095 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
4096
4097         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
4098         unreachable code.
4099
4100 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4101
4102         * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
4103         cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
4104         use macros from "symcat.h", instead rely on ISO C.
4105
4106         * system.h: Don't include "symcat.h".
4107         * configure.in (AC_C_STRINGIZE): Delete.
4108         * config.in, configure: Regenerate.
4109
4110 2003-06-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4111
4112         * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
4113
4114         * tree.h (STMT_CHECK): New macro.
4115         Also upper-case argument names on all checking macros and
4116         fix some whitespace problems; assume CODE argument does not
4117         have side-effects.
4118
4119 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4120
4121         * scan.h: Convert to ISO C.
4122         * system.h: Likewise.
4123
4124         * c-format.c (dynamic_format_types): New pointer for dynamic data.
4125         (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
4126         New functions split out of...
4127         (handle_format_attribute): ...here.
4128
4129 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
4130
4131         * sh.h (REG_CLASS_FROM_LETTER): Change to:
4132         (REG_CLASS_FROM_CONSTRAINT).
4133         (CONST_OK_FOR_I): Rename to:
4134         (CONST_OK_FOR_I08).  Changed all users.
4135         (CONST_OK_FOR_J): Rename to:
4136         (CONST_OK_FOR_I16).  Changed all users.
4137         (CONST_OK_FOR_K): Rename to:
4138         (CONST_OK_FOR_P27).  Changed all users.
4139         (CONST_OK_FOR_L): Rename to:
4140         (CONST_OK_FOR_K08).  Changed all users.
4141         (CONST_OK_FOR_O): Rename to:
4142         (CONST_OK_FOR_I06).  Changed all users.
4143         (CONST_OK_FOR_P): Rename to:
4144         (CONST_OK_FOR_I10).  Changed all users.
4145         (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
4146         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
4147         (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
4148         (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
4149         (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
4150         (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
4151         (CONST_OK_FOR_LETTER_P): Replace with
4152         (CONST_OK_FOR_CONSTRAINT_P).
4153         (EXTRA_CONSTRAINT_S): Rename to:
4154         (EXTRA_CONSTRAINT_C16).  Changed all users.
4155         (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
4156         (EXTRA_CONSTRAINT_T): Rename to:
4157         (EXTRA_CONSTRAINT_Csy).  Changed all users.
4158         (EXTRA_CONSTRAINT_Z): Remove.
4159         (EXTRA_CONSTRAINT): Replace with:
4160         (EXTRA_CONSTRAINT_STR).
4161         (EXTRA_CONSTRAINT_U): Rename to:
4162          (EXTRA_CONSTRAINT_Z).  Changed all users.
4163         * sh.c (and_operand): Use CONST_OK_FOR_J16.
4164         * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
4165         (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
4166         (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
4167         (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
4168         (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
4169         (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
4170         (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
4171         (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
4172         (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
4173         (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
4174         (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
4175         (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
4176         (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
4177         (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
4178         (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
4179         (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
4180         (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
4181         (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
4182         (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
4183         (sssubv4hi3): Likewise.
4184         (movsf_i): Change I[08]/r to G/r.
4185         (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
4186
4187         * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
4188
4189 2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>
4190
4191         * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
4192
4193 2003-06-16  Andreas Jaeger  <aj@suse.de>
4194
4195         * basic-block.h: Remove duplicate prototype of
4196         note_prediction_to_br_prob.
4197
4198         * tree.h: Remove duplicate prototype of strip_float_extensions.
4199
4200 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4201
4202         * config/c4x/c4x.c: Don't include "c-tree.h".
4203         * config/pa/pa.c: Likewise.
4204         * langhooks.c: Likewise.
4205         * tree.h (poplevel): Declare.
4206
4207 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
4208
4209         * config/h8300/h8300.c (const_costs): Move this to ...
4210         (h8300_rtx_costs): ... here.
4211
4212 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4213
4214         * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
4215         (tan_optab, atan_optab): Define corresponding macros.
4216         * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
4217         * genopinit.c (optabs): Implement tan_optab and atan_optab
4218         using tan?f2 and atan?f2 patterns.
4219         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
4220         using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
4221         Change the default value of errno_set to false.
4222         (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
4223         using expand_builtin_mathfn.
4224
4225         * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
4226         expander patterns implemented using existing atan2?f3 patterns.
4227
4228 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4229
4230         * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
4231         both operands of the addition equal, reuse the expanded RTL.
4232         (expand_expr <MULT_EXPR>): Likewise for multiplication.
4233
4234 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4235             Jeff Law  <law@redhat.com>
4236
4237         * fold-const.c (operand_equal_p): Consider two calls to "const"
4238         functions with identical non-volatile arguments to be equal.
4239         Consider the FUNCTION_DECL for the "__builtin_foo" form of a
4240         built-in function to be equal to the "foo" form.
4241
4242 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4243
4244         * config/rs6000/sysv4le.h: Remove target-independent comment.
4245         Replace "GNU compiler" with "GCC" in comment.
4246
4247 2003-06-16  Andreas Jaeger  <aj@suse.de>
4248
4249         * tracer.c: Remove duplicate declaration.
4250
4251         * toplev.c: Remove extra declaration of decode_d_option.
4252
4253         * ssa.c: Remove duplicate declaration.
4254
4255         * sreal.c: Remove extra declaration of dump_sreal.
4256
4257         * reload1.c: Remove duplicate declarations.
4258
4259         * integrate.c: Remove extra declaration of
4260         set_decl_abstract_flags.
4261
4262         * flow.c: Remove extra declaration of dump_flow_info.
4263
4264         * alias.c: Remove extra declaration of get_addr.
4265
4266 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4267
4268         * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
4269         config/vxworks.h: GNU CC -> GCC.
4270
4271         * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
4272         lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
4273         stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
4274         ssa.h, tree.def: Replace overly specific references to "GNU C"
4275         and "GNU C Compiler" with references to "GCC".
4276
4277 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
4278
4279         * sh.c (prepare_move_operand): Check if operand 0 is an invalid
4280         memory reference.  Fix test that checks if operand 1 is using r0.
4281         * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
4282
4283         * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
4284         defined.
4285
4286 2003-06-15  Nathan Sidwell  <nathan@codesourcery.com>
4287
4288         * function.h (struct emit_status): Remove x_last_linenum,
4289         x_last_filename. Add x_last_location.
4290         * rtl.h: #include "input.h".
4291         (NOTE_DATA): New.
4292         * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
4293         number notes.
4294         * emit-rtl.c (last_linenum, last_filename): Remove.
4295         (last_location): New.
4296         (emit_line_note_after): LINE must always be >= 0.
4297         (emit_line_note): Likewise. Check not duplicate here...
4298         (emit_note): ... rather than here.
4299         (emit_line_note_force, force_next_line_note, init_emit): Adjust.
4300         * integrate.c (expand_inline_function): Use emit_line_note for
4301         line number notes.
4302         (copy_insn_list): Likewise.
4303         * unroll.c (copy_loop_body): Likewise.
4304         * Makefile.in (RTL_H): Add input.h.
4305
4306 2003-06-16  Richard Sandiford  <rsandifo@redhat.com>
4307
4308         * optabs.c (emit_libcall_block): Don't hoist insns past a label.
4309
4310 2003-06-16  Richard Henderson  <rth@redhat.com>
4311
4312         * config/alpha/alpha-protos.h, config/alpha/elf.h,
4313         config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
4314         config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
4315         * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
4316         Remove unneeded static function decls.
4317
4318 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
4319
4320         * c-opts.c (c_common_handle_option): s/on/value/.
4321         (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
4322         directly rather than converting the argument.
4323         * c.opt: Update docs.  Use UInteger where appropriate.
4324         * common.opt: Use UInteger where appropriate.
4325         * opts.c (integral_argument): New.
4326         (handle_argument): Handle integral arguments, and optional
4327         joined arguments.
4328         (common_handle_option): Update.
4329         * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
4330         * opts.sh: Handle JoinedOrMissing and UInteger flags.
4331
4332 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
4333
4334         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
4335         unnecessary extern declaration.
4336
4337 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
4338
4339         * config/gofast.h, config/interix.h, config/interix3.h,
4340         config/libgloss.h, config/linux-aout.h, config/linux.h,
4341         config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
4342         * config/kaos.h: "GNU compiler" -> GCC.
4343         * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
4344
4345         * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
4346         config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
4347         GNU CC -> GCC.
4348
4349         * config/svr3.h: Remove #if 0 code, misleading comments.
4350         GNU CC -> GCC.
4351
4352 2003-06-15  Zack Weinberg  <zack@codesourcery.com>
4353
4354         * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
4355         main_input_filename to avoid conflict with input_filename macro.
4356
4357 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4358
4359         * config/mips/mips.h (asm_file_name, g_switch_set,
4360         g_switch_value): Remove.
4361         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4362         unnecessary extern declarations.
4363
4364 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4365
4366         * config/frv/frv.h: Remove declaration of g_switch_value.
4367         * config/m32r/m32r.h: Remove declaration of g_switch_value.
4368         * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
4369
4370 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4371
4372         * opts.sh: Quote '+' in regex.
4373
4374 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
4375
4376         * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
4377         * config/rs6000/rs6000.c: Include cfglayout.h.
4378         * config/alpha/alpha.c: Likewise.
4379         * config/ia64/ia64.c: Likewise.
4380         * config/sparc/sparc.c: Likewise.
4381         * config/sh/sh.c: Likewise.
4382
4383 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4384
4385         * opts.sh: Quote '+' in regex.
4386
4387 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4388
4389         * c-opts.c (lang_flags): Update for new spelling of flags.
4390         (write_langs): Similarly.
4391         * c.opt: Specify languages.
4392         * opts.h: Remove languages.
4393         * opts.sh: Recognise front-end defined languages.
4394         * doc/sourcebuild.texi: Update.
4395
4396 2003-06-15  Andreas Jaeger  <aj@suse.de>
4397
4398         * alloc-pool.c: Convert to ISO C90 prototypes.
4399         * alloc-pool.h: Likewise.
4400         * alias.c: Likewise.
4401         * attribs.c: Likewise.
4402         * bb-reorder.c: Likewise.
4403         * bitmap.h: Likewise.
4404         * bitmap.c: Likewise.
4405         * builtins.c: Likewise.
4406
4407         * tree.h: Convert prototypes of attribs.c to ISO C90.
4408         * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
4409         * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
4410         * expr.h: Convert prototypes of builtins.c to ISO C90.
4411
4412 2003-06-15  Roger Sayle  <roger@eyesopen.com>
4413
4414         * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
4415         implement exp, expf and expl built-ins as inline x87 intrinsics.
4416         (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
4417         represent x87's fscale, frndint and f2xm1 insns respectively.
4418         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
4419         to encode x87's "fscale" instruction followed by a pop.
4420         (*frndintxf2): New insn pattern for "frndint".
4421         (*f2xm1xf2): New insn pattern for "f2xm1".
4422
4423         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
4424         UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
4425         UNSPEC_FPATAN.
4426
4427 2003-06-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4428
4429         * gencheck.c (main): Avoid generating duplicate macros.
4430
4431         * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
4432         knowing names of language subdirectories.
4433
4434 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4435
4436         * c-pch.c (asm_file_name): Remove.
4437         * common.opt: Add more switches.
4438         * flags.h (g_switch_set): Boolify.
4439         * opts.c (g_switch_value, g_switch_set, exit_after_options,
4440         version_flag): Move from toplev.c.
4441         (common_handle_option): Handle more switches from toplev.c.
4442         * toplev.c (display_help, display_target_options, decode_d_option,
4443         print_version): Make non-static, remove prototypes.
4444         (aux_base_name, asm_file_name, aux_info_file_name): Constify.
4445         (version_flag, g_switch_value, g_switch_set, exit_after_options):
4446         Remove.
4447         (independent_decode_option): Move some handlers to opts.c.
4448         * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
4449         exit_after_options, version_flag, display_help, display_target_options,
4450         print_version, decode_d_option): New.
4451
4452 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
4453
4454         * config/alpha/alpha.md: Follow spelling conventions.
4455         * config/arm/arm.c: Likewise.
4456         * config/arm/arm.h: Likewise.
4457         * config/arm/arm.md: Likewise.
4458         * config/arm/crtn.asm: Likewise.
4459         * config/m32r/m32r.c: Likewise.
4460         * config/m32r/m32r.md: Likewise.
4461         * config/rs6000/rs6000.c: Likewise.
4462
4463 2003-06-15  Richard Henderson  <rth@redhat.com>
4464
4465         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
4466         insn_locators_initialize.
4467         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4468         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4469         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4470         * config/sh/sh.c (sh_output_mi_thunk): Do it later.
4471
4472 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
4473
4474         * builtins.c (expand_builtin_expect_jump): Remove redundant
4475         tests that are also in any_condjump_p().
4476
4477 2003-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4478
4479         * libgcc2.c: Delete sysV68 L_trampoline section.
4480         * config/m68k/mot3300-crt0.S: Delete file.
4481         * config/m68k/mot3300Mcrt0.S: Likewise.
4482
4483 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
4484
4485         * config/aoutos.h: Remove.
4486         * config.gcc: Remove reference to aoutos.h.
4487         * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
4488
4489 2003-06-14  Kazu Hirata  <kazu@cs.umass.edu>
4490
4491         * doc/install.texi: Follow spelling conventions.
4492         * doc/tm.texi: Likewise.
4493         * config/fp-bit.c: Likewise.
4494         * config/arm/arm.c: Likewise.
4495         * config/frv/frv.c: Likewise.
4496         * config/ns32k/NOTES: Likewise.
4497         * config/ns32k/STATUS: Likewise.
4498
4499 2003-06-14  Roger Sayle  <roger@eyesopen.com>
4500             Zack Weinberg  <zack@codesourcery.com>
4501
4502         * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
4503         * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
4504         * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
4505
4506         * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
4507         * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
4508         * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
4509         * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
4510         * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
4511         * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
4512         * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
4513         * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
4514         * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
4515         * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
4516         * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
4517         * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
4518         * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
4519         * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
4520         * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
4521         * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
4522         * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
4523         * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
4524         * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
4525         * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
4526
4527 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
4528
4529         * opts.sh (POSIXLY_CORRECT): Unset it.
4530
4531         * tree.h (init_function_start): Remove filename and line paramters.
4532         * function.c (init_function_start): Remove filename and line
4533         parameters. Use DECL_SOURCE_LOCATION.
4534         * c-decl.c (store_parm_decls): Adjust init_function_start call.
4535         (c_expand_body_1): Likewise.
4536         * coverage.c (create_coverage): Likewise.
4537         * objc/objc-act.c (build_tmp_function_decl): Set line number to
4538         zero.
4539         (hack_method_prototype): Adjust init_function_start call.
4540
4541 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
4542
4543         PR target/3724
4544         * arm/linux-elf.h (PROFILE_HOOK): Define.
4545
4546 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
4547
4548         PR target/11183
4549         * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
4550
4551 2003-06-14  Roger Sayle  <roger@eyesopen.com>
4552
4553         * opts.sh: Work around a mysterious feature in cygwin's gawk
4554         where specifying the input files explicitly has a different
4555         behavior to piping them via stdin.
4556
4557 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
4558
4559         * doc/sourcebuild.texi: Update.
4560
4561 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
4562
4563         PR target/11183
4564         * arm.c (output_move_double): Pass SImode to adjust_address.
4565
4566 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
4567
4568         * Makefile.in: Update to use common.opt and lang_opt_files.
4569         (c-options.c, c-options.h): Remove.
4570         (options.c, options.h): Add.
4571         * c-opts.c: Include options.h not c-options.h.
4572         * common.opt: New file.
4573         * configure, configure.in: Add lang_opt_files.
4574         * opts.c: Include flags.h and diagnostic.h.
4575         (common_handle_option): New.
4576         (handle_option): Update to recognize common options and all
4577         language-dependent options.
4578         * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
4579         (struct cl_option): Make flags of type int.
4580         * opts.h: Flag option with front ends to which it applies.
4581         Handle duplicate options.
4582         * toplev.c (filename): Remove.
4583         (independent_decode_option): Don't handle filenames and -quiet.
4584         (process_options, do_compile): Update.
4585
4586 2003-06-14  Nick Clifton  <nickc@redhat.com>
4587
4588         * doc/install.texi (Specific): Add description of different
4589         ARM supported file format targets.
4590
4591 Sat Jun 14 11:12:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
4592
4593         * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
4594         inside delay slots.
4595
4596 2003-06-13  Matt Kraai  <kraai@alumni.cmu.edu>
4597
4598         * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
4599         * unwind-pe.h (size_of_encoded_value): Do not define if
4600         NO_SIZE_OF_ENCODED_VALUE is defined.
4601
4602 2003-06-13  Roger Sayle  <roger@eyesopen.com>
4603
4604         * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
4605         expanding a complex constant into a CONCAT target.
4606
4607 2003-06-13  Zack Weinberg  <zack@codesourcery.com>
4608
4609         * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
4610         (ASM_FILE_START_1): Delete.
4611         * config/i386/att.h, config/i386/sco5.h,
4612         config/i386/sysv3.h
4613         (ASM_FILE_START_1): Delete.
4614
4615 2003-06-13  Kelley Cook  <kelleycook@wideopenwest.com>
4616
4617         * config/i386/bsd.h: Remove ASM_FILE_START.
4618         * config/i386/djgpp.h: Likewise.
4619         * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
4620
4621         * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
4622         * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
4623
4624 2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>
4625
4626         PR bootstrap/10835
4627         * haifa-sched.c (max_lookahead_tries,
4628         cached_first_cycle_multipass_dfa_lookahead,
4629         cached_issue_rate): New variables.
4630         (max_issue): Check the number of tries.
4631         (choose_ready): Calculate max_lookahead_tries.
4632         (sched_init): Check cached_issue_rate.
4633
4634 2003-06-13  Richard Henderson  <rth@redhat.com>
4635
4636         * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
4637         * cfgrtl.c (purge_dead_edges): Expect it too.
4638
4639 2003-06-13  Jim Wilson  <wilson@tuliptree.org>
4640             Eric Botcazou  <ebotcazou@libertysurf.fr>
4641
4642         PR bootstrap/10983
4643         * combine.c (make_extraction): Use gen_lowpart_for_combine
4644         when extracting from a REG and not in the destination of a SET.
4645
4646 2003-06-13  Doug Evans  <dje@sebabeach.org>
4647
4648         * tsystem.h (abort): Declare in inhibit_libc case to remove build
4649         warnings for addvsi3, et.al.
4650
4651 2003-06-13  Aldy Hernandez  <aldyh@redhat.com>
4652
4653         * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
4654
4655         * simplify-rtx.c (simplify_subreg): Same.
4656
4657         * emit-rtl.c (gen_lowpart_common): Same.
4658
4659 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
4660
4661         * builtins.c: Fix comment typos.
4662         * fold-const.c: Likewise.
4663
4664 2003-06-13  Doug Evans  <dje@sebabeach.org>
4665             Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4666
4667         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
4668         * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
4669         (m32r_va_arg): Use it.
4670         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
4671         (RETURN_IN_MEMORY): Ditto.
4672
4673 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4674
4675         * c-typeck.c: Remove #if 0 clauses.
4676
4677         PR other/1494
4678         * config/alpha/openbsd.h, config/i386/openbsd.h,
4679         config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
4680         residual reference to EGCS.
4681
4682 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
4683
4684         * arm.c (output_call_mem): If the address references the link-register
4685         use an instruction sequence that avoids early-clobbering IP.
4686         (eliminate_lr2ip): Delete.
4687
4688 2003-06-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4689
4690         * c-format.c (format_types_orig): Disallow '*' width/precision in
4691         asm_fprintf format checks.
4692
4693 2003-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
4694
4695         * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
4696         non-integral types from integer register save area slots.
4697
4698 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4699
4700         * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
4701
4702 2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
4703
4704         * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
4705
4706 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4707
4708         * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
4709         to file_end_indicate_exec_stack.
4710
4711 2003-06-12  Richard Henderson  <rth@redhat.com>
4712
4713         PR target/11089
4714         * config/i386/i386.md (sse_movaps): Use an expander to force
4715         one operand to be a register.
4716         (sse_movups): Likewise.
4717
4718 2003-06-13  Doug Evans  <dje@sebabeach.org>
4719
4720         Remove some build warnings.
4721         * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
4722         (__do_global_ctors,__do_global_dtors): Ditto.
4723
4724 2003-06-12  Richard Henderson  <rth@redhat.com>
4725
4726         PR middle-end/10557
4727         * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
4728
4729 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
4730
4731         * config/m32r/m32r.md: Fix a comment typo.
4732
4733 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4734             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
4735
4736         PR target/10142
4737         * config/sparc/sparc.c (function_arg_record_value_parms): Add
4738         new 'stack' field.
4739         (function_arg_record_value_1): Set 'stack' to 1 if we run out of
4740         integer slots for an integer field.
4741         (function_arg_record_value_3): Shift vector index.
4742         (function_arg_record_value_2): Likewise.
4743         (function_arg_record_value): Initialize 'stack' to 0.
4744         Set 'stack' to 1 if we run out of integer slots for an integer field.
4745         Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
4746
4747 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4748
4749         PR optimization/10955
4750         * unroll.c (unroll_loop): Fix off-by-one bug.
4751
4752 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
4753
4754         * config/rs6000/rs6000.c (function_arg): Remove typo.
4755
4756 2003-06-12  Richard Henderson  <rth@redhat.com>
4757
4758         * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
4759         and UNSPEC_DTPOFF.
4760
4761 2003-06-12  Richard Henderson  <rth@redhat.com>
4762
4763         PR middle-end/10475
4764         * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
4765         for extracting sub-words.
4766
4767 2003-06-12  Richard Henderson  <rth@redhat.com>
4768
4769         PR target/7594
4770         * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
4771         (zero_extendqihi2, zero_extendqisi2): Likewise.
4772
4773 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
4774
4775         * config/rs6000/rs6000.c (function_arg): Always split vectors for
4776         e500 if it's a stdarg function.
4777         (function_arg_advance): Advance 2 registers for vectors in a
4778         stdarg function.
4779         (init_cumulative_args): Initialize stdarg.
4780         (rs6000_spe_function_arg): New.
4781
4782         * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
4783
4784 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
4785
4786         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
4787
4788 2003-06-12  Roger Sayle  <roger@eyesopen.com>
4789
4790         PR middle-end/168
4791         * fold-const.c (tree_expr_nonnegative_p):  Handle addition
4792         and multiplication of zero extensions, floating point division,
4793         and integer<->fp, fp<->fp and zero extension conversions.
4794         The built-in ceil and floor functions preserve signedness.
4795
4796 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
4797
4798         * ChangeLog: Follow spelling conventions.
4799         * ChangeLog.2: Likewise.
4800         * c-decl.c: Likewise.
4801         * cfgloop.h: Likewise.
4802         * cgraph.c: Likewise.
4803         * coverage.c: Likewise.
4804         * cppcharset.c: Likewise.
4805         * cpphash.h: Likewise.
4806         * cpplex.c: Likewise.
4807         * cpplib.c: Likewise.
4808         * dbxout.c: Likewise.
4809         * df.c: Likewise.
4810         * dwarf2out.c: Likewise.
4811         * dwarfout.c: Likewise.
4812         * emit-rtl.c: Likewise.
4813         * explow.c: Likewise.
4814         * gcov-io.c: Likewise.
4815         * gcov-io.h: Likewise.
4816         * gcov.c: Likewise.
4817         * gengtype.c: Likewise.
4818         * ggc.h: Likewise.
4819         * opts.c: Likewise.
4820         * real.c: Likewise.
4821         * reload.c: Likewise.
4822         * stmt.c: Likewise.
4823
4824 2003-06-12  Janis Johnson  <janis187@us.ibm.com>
4825
4826         * doc/install.texi (m32r-*-elf): Change company to Renesas.
4827
4828 Thu Jun 12 20:00:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
4829
4830         * basic-block.h (flow_delete_block_noexpunge): Kill.
4831         * cfgrtl.c (flow_delete_block_noexpunge): Merge to
4832         rtl_delete_block.
4833
4834 2003-06-10  Richard Henderson  <rth@redhat.com>
4835
4836         PR inline-asm/4823
4837         * reg-stack.c (any_malformed_asm): New.
4838         (check_asm_stack_operands): Set it.
4839         (convert_regs_1): Check it before aborting.
4840
4841 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
4842
4843         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
4844
4845 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
4846
4847         * c-opts.c (complain_wrong_lang): Add on argument.
4848         Print no- switch if on is false.
4849         (c_common_decode_option): Adjust caller.
4850
4851 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
4852
4853         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
4854         to initialize GOT register.
4855
4856 2003-06-12  Roger Sayle  <roger@eyesopen.com>
4857
4858         * fold-const.c (tree_expr_nonnegative_p): Add support for
4859         floating point constants, addition and multiplication.
4860
4861 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
4862
4863         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
4864         constraint modifier for operand 0.
4865
4866 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
4867
4868         Don't warn on dollars in builtin macro definitions,
4869         e.g. __REGISTER_PREFIX__.
4870         * cpphash.h (struct cpp_reader): Move member warn_dollars...
4871         * cpplib.h (struct cpp_options): ...to here.  Change type to
4872         unsigned char.
4873         * cppinit.c (cpp_create_reader): Set it to 1 here.
4874         (post_options): Don't set it here.
4875         * c-opts.c (c_common_init_options): Reset it to 0 here.
4876         (finish_options): Set it here.
4877         * cpplex.c (forms_identifier_p): Tweak for new location of
4878         warn_dollars.
4879
4880         * configure.in (assembler dwarf2 debug_line support): Define insn
4881         for cris-*-* and mmix-*-*.
4882         * configure: Regenerate.
4883
4884 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
4885
4886         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
4887         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
4888         (sh-*-elf*): Add sh*-*-kaos* support.
4889         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
4890         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
4891         config/sh/kaos-sh.h: New files.
4892
4893 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
4894
4895         * gcse.c (fis_get_condition): Make it a global function.
4896         * reload1.c (reload_cse_move2add): Detect implicit sets.
4897         * rtl.h: Add a prototype for fis_get_condition.
4898
4899 2003-06-11  Richard Henderson  <rth@redhat.com>
4900
4901         * stmt.c (expand_asm_operands): Don't warn for memories with
4902         queued addresses.
4903
4904 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4905
4906         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
4907         brackets.
4908
4909 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
4910
4911         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
4912         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
4913         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
4914         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
4915         * langhooks.c (lhd_decode_option): Remove.
4916         * langhooks.h (struct lang_hooks): Remove decode_option.
4917         * opts.c (handle_option): No longer use decode_option.
4918
4919 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4920
4921         * cfgloopanal.c (variable_initial_value): Update the set of altered
4922         registers correctly.
4923
4924 2003-06-11  Roger Sayle  <roger@eyesopen.com>
4925             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4926
4927         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
4928         * config/i386/netbsd-elf.h: Likewise.
4929         * config/m32r/m32r.h: Likewise.
4930         * config/mn10300/mn10300.h: Likewise.
4931         * config/stormy16/stormy16.h: Likewise.
4932         * config/v850/v850.h: Likewise.
4933         * config/vax/netbsd-elf.h: Likewise.
4934         * config/xtensa/elf.h: Likewise.
4935         * config/xtensa/linux.h: Likewise.
4936
4937 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4938
4939         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
4940         DWARF 2 default.
4941
4942         * config/mips/dbxmdebug.h: New file.
4943         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
4944         gas and --with-stabs.
4945
4946 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
4947
4948         * expr.c (can_move_by_pieces): align argument may be unused.
4949
4950 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
4951
4952         * expr.c (convert_move): Handle moves between two CONCATs.
4953
4954 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
4955
4956         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
4957         !TARGET_H8300.
4958
4959 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
4960
4961         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
4962         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
4963         (TARGET_RTL_DUMP): Likewise.
4964         (TARGET_SWITHCES): Remove -mrtl-dump.
4965
4966 2003-06-10  Richard Henderson  <rth@redhat.com>
4967
4968         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
4969
4970 2003-06-10  Richard Henderson  <rth@redhat.com>
4971
4972         * config/ia64/ia64.md (call_gp): Fix memory mode.
4973
4974 2003-06-10  James E Wilson  <wilson@tuliptree.org>
4975
4976         PR target/8812
4977         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
4978         hard regs for reload_reg_used_at_all and reg_class_contents checks.
4979
4980 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
4981
4982         * config/h8300/h8300.c (print_operand): Remove support for
4983         operand character 'b'.
4984         Add the AND case to operand character 'c'.
4985         * config/h8300/h8300.md (two anonymous patterns): Replace
4986         operand character 'b' with 'c'.
4987
4988 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
4989
4990         * config/h8300/h8300.c (print_operand): Remove support for
4991         operand character 'u'.
4992
4993 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
4994
4995         * configure.in: Fix typo.
4996         * configure: Regenerate.
4997
4998 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
4999
5000         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
5001         compilation guard.
5002
5003 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
5004
5005         * sh-protos.h (function_symbol): Declare.
5006         * sh.c (expand_block_move, expand_ashiftrt): Use it.
5007         (sh_expand_prologue, sh_expand_epilogue): Likewise.
5008         (sh_initialize_trampoline): Likewise.
5009         (function_symbol): New function.
5010         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
5011         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
5012         (call_value_pop, shcompact_return_tramp): Likewise.
5013
5014         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
5015
5016         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
5017         target register.
5018
5019 2003-06-10  DJ Delorie  <dj@redhat.com>
5020
5021         * doc/md.texi (Machine Constraints): Document stormy's Z
5022         constraint.
5023
5024 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
5025
5026         * except.c (call_site_base): Mark with GTY.
5027
5028 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
5029
5030         * arm-proto.h: Convert to ISO C90 prototypes.
5031         * arm.c: Likewise.
5032
5033 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
5034
5035         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
5036
5037 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
5038
5039         * calls.c (expand_call): Convert structure_value_addr to Pmode if
5040         necessary.
5041
5042 2003-06-10  Andrew Haley  <aph@redhat.com>
5043
5044         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
5045         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
5046         (lhd_decl_ok_for_sibcall): New.
5047         * langhooks.c (lhd_decl_ok_for_sibcall): New.
5048         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
5049         * calls.c (expand_call): Check lang_hook before generating a
5050         sibcall.
5051
5052 2003-06-10  DJ Delorie  <dj@redhat.com>
5053
5054         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
5055         which matches (const_int 0) for addhi3.
5056         * config/stormy16/stormy16.md: Document known constraints.
5057         (addhi3): Handle adding zero.
5058
5059 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5060
5061         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
5062         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
5063         * config/m32r/m32r-protos.h: Prototype it.
5064
5065 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
5066
5067         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
5068         common to rs6000 sysv targets.
5069         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
5070         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
5071
5072 2003-06-10  Nick Clifton  <nickc@redhat.com>
5073
5074         * config.gcc: Add arm-wince-pe target.
5075         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
5076         Add comment about default apcs26 support.
5077         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
5078         multilib.
5079         (MULTILIB_DIRNAMES): Add 'apcs32'.
5080         * config/arm/t-wince-pe: New makefile fragment.
5081         * config/arm/wince-pe.h: New file.  Overrides a few definitions
5082         in arm/pe.h
5083
5084 2003-06-10  Roger Sayle  <roger@eyesopen.com>
5085
5086         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
5087         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
5088         when x is easily negated and f is sin, tan or atan.
5089         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
5090         sin(x) with flag_unsafe_math_optimizations.
5091         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
5092         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
5093
5094 2003-06-10  Roger Sayle  <roger@eyesopen.com>
5095
5096         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
5097         is a floating point type *and* we currently honor NaNs.
5098         (fold <NE_EXPR>): Likewise.
5099
5100 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
5101
5102         PR c++/11131
5103         * tree-inline.c (inlinable_function_p): Call the language-specific
5104         hook early.
5105
5106 2003-06-09  David Taylor  <dtaylor@emc.com>
5107
5108         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
5109         the f_res field.
5110
5111 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
5112
5113         * configure.in: Remove references to host_truncate_target.
5114         * configure: Regenerate.
5115         * config.gcc: Remove references to truncate_target,
5116         host_truncate_target.
5117
5118         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
5119         Replace "build_canonical" with build, "host_canonical" with host.
5120         * configure.in: Use GCC_TOPLEV_SUBDIRS.
5121         * aclocal.m4: Include ../config/acx.m4.
5122         * configure: Regenerate.
5123
5124 2003-06-09  David Taylor  <dtaylor@emc.com>
5125
5126         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
5127         bytes of padding in the __va_list_tag structure a name (reserved).
5128
5129 2003-06-09  Jason Merrill  <jason@redhat.com>
5130
5131         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
5132
5133 2003-06-09  Osku Salerma  <osku@iki.fi>
5134
5135         * c-format.c (check_format_string, get_constant): New.
5136         (handle_format_attribute, handle_format_arg_attribute,
5137         decode_format_attr): Change to use above functions.
5138
5139 2003-06-09  Richard Henderson  <rth@redhat.com>
5140
5141         * stmt.c (expand_asm_operands): Re-word warning.
5142
5143 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
5144
5145         PR target/8787
5146         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
5147         if -masm=intel.
5148
5149 2003-06-09  James E Wilson  <wilson@tuliptree.org>
5150
5151         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
5152         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
5153         Add libgcc exception.
5154
5155 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
5156             Ayal Zaks  <gcchaifa@us.ibm.com>
5157
5158         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
5159         (insvsi*): Add insert_word attribute.
5160         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
5161         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
5162         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
5163
5164 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
5165
5166         * fold-const.c (fold): Fix a comment typo.
5167
5168 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
5169
5170         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
5171         removed.
5172
5173 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
5174
5175         * sh.c (gen_block_redirect): Use locators.
5176
5177 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
5178
5179         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
5180         cast to int.
5181
5182 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5183
5184         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
5185         operators.
5186         * configure: Regenerated.
5187
5188 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5189             Alexandre Oliva  <aoliva@redhat.com>
5190
5191         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
5192         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
5193         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
5194         n32/64 PIC.
5195         (MUST_SAVE_REGISTERS): Delete.
5196         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
5197         (machine_function): Add global_pointer field.
5198         (mips_classify_constant): Check for (const $gp) using pointer equality
5199         with pic_offset_table_rtx.
5200         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
5201         (mips_restore_gp): Use current_function_outgoing_args_size.
5202         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
5203         GP_REG_FIRST + 28.  Handle relocation strings that have
5204         more than one '('.
5205         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
5206         (mips_global_pointer): New function.
5207         (mips_save_reg_p): New function, mostly split out from...
5208         (compute_frame_size): ...here.  Remove handling of extra_size.
5209         Reclaim args_size if no variables depend on it.  Don't treat gp
5210         as a special case: handle it in the main GPR loop.
5211         (mips_initial_elimination_offset): Fix comment.
5212         (save_restore_insns): Save every register in the GPR mask,
5213         removing distinction between mask and real_mask.
5214         (mips_output_function_prologue): Update .frame psuedo-op after
5215         the removal of extra_size.  Move the SVR4 PIC stack allocation
5216         and cprestore instructions to mips_expand_prologue.
5217         (mips_gp_insn): New function.
5218         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
5219         the chosen global pointer.  Handle SVR4 PIC stack allocation
5220         in the same way as other ABIs.  Adjust varargs code accordingly.
5221         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
5222         to emit the loadgp sequence.  Follow it with a loadgp_blockage
5223         if not using explicit relocs.
5224         (mips_output_function_epilogue): Reinstate the default gp register.
5225         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
5226         (mips16_optimize_gp): Likewise.
5227         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
5228         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
5229         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
5230         (loadgp): Remove.
5231         (loadgp_blockage, cprestore): New instructions.
5232         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
5233         pic_offset_table_rtx.
5234         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
5235         (builtin_longjmp): Use gen_raw_REG to force use of $28.
5236
5237 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5238
5239         * config/mips/mips-protos.h (mips_output_division): Declare.
5240         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
5241         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
5242         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
5243         (TARGET_CHECK_ZERO_DIV): New macro.
5244         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
5245         * config/mips/mips.c (mips_output_division): New function.
5246         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
5247         account when calculating the default length of a division.
5248         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
5249         Enable regardless of optimization level.  Use mips_output_division.
5250         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
5251         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
5252         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
5253         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
5254         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
5255         umoddi3_internal): Remove.
5256
5257 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5258
5259         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
5260         (mips_sw_reg_names): Likewise.
5261         (mips_regno_to_class): Change hilo entry to NO_REGS.
5262         (hilo_operand): Use MD_REG_P.
5263         (extend_operator): New predicate.
5264         (override_options): Remove 'a' constraint.
5265         (mips_secondary_reload_class): Remove hilo handling.  Also remove
5266         handling of (plus sp reg) reloads for mips16.
5267         (mips_register_move_cost): Remove hilo handling.
5268         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
5269         (MD_REG_LAST): Remove hilo from range.
5270         (HILO_REGNUM): Delete.
5271         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
5272         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
5273         (PREDICATE_CODES): Add entry for extend_operator.
5274         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
5275         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
5276         Remove constraints from multiplication define_expands.  Remove
5277         clobbers from "decorative" define_expand patterns.
5278         (UNSPEC_HILO_DELAY): Delete.
5279         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
5280         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
5281         Adjust C code to just emit insns for !TARGET_64BIT.
5282         (mulsidi3_internal): Rename to mulsidi3_32bit.
5283         (mulsidi3_64bit): Use a "d" constraint for the destination.
5284         Use extend_operator so that the pattern can handle umulsidi3 as well.
5285         Split the instruction after reload.
5286         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
5287         (umulsidi3_internal): Rename to umulsidi3_32bit.
5288         (umulsidi3_64bit): Remove.
5289         (*smsac_di, *umsac_di): Line-wrap fixes.
5290         (udivsi3_internal): Don't allow operand 2 to be constant.
5291         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
5292         (movdi_internal2, movsi_internal): Remove hilo alternatives.
5293         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
5294
5295 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5296
5297         PR target/10913
5298         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
5299         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
5300         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
5301         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
5302         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
5303         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
5304         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
5305         asm_out_text_file with asm_out_file.
5306         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
5307         * config/mips/elf.h (TEXT_SECTION): Undefine.
5308         * config/mips/elf64.h (TEXT_SECION): Undefine.
5309         * config/mips/openbsd.h (TEXT_SECION): Undefine.
5310         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
5311         (override_options): Disable small-data optimizations unless using
5312         gas or explicit relocations.
5313         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
5314         iris6_asm_named_section, iris6_asm_file_start): Remove code for
5315         handling TARGET_FILE_SWITCHING.
5316         (copy_file_data): Move into TARGET_IRIX6 block.
5317
5318 2003-06-08  Richard Henderson  <rth@redhat.com>
5319
5320         * expr.h (EXPAND_MEMORY): New.
5321         * expr.c (expand_expr): Check it.
5322         * stmt.c (expand_asm_operands): Provide it when the constraint
5323         requires a memory.  Warn for memory input constraints without
5324         a memory operand.
5325
5326 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5327
5328         * varasm.c: Don't include c-tree.h.
5329
5330 2003-06-08  Andreas Jaeger  <aj@suse.de>
5331
5332         * predict.h: Convert to ISO C90 prototypes.
5333         * predict.c: Likewise.
5334         * tree-dump.h: Likewise.
5335         * tree-dump.c: Likewise.
5336         * diagnostic.h: Likewise.
5337         * diagnostic.c: Likewise.
5338         * combine.c: Likewise.
5339
5340         * rtl.h: Convert prototypes of combine.c to ISO C90.
5341
5342 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
5343
5344         * cfglayout.c (insn_scope): New static function
5345         (block_locators_*, line_locators*, file_locators*): New static varrays.
5346         (scope_to_insns_initialize): Use them.
5347         (insn_line, insn_file): New functions.
5348         (scope_to_insns_finalize): Use insn_scope.
5349         (prologue_locator, epilogue_locator): New global variables.
5350         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
5351         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
5352         (emit_insn_after_scope, emit_insn_before_scope
5353         emit_jump_insn_after_scope, emit_jump_insn_before_scope
5354         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
5355         (emit_insn_after_setloc, emit_insn_before_setloc
5356         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
5357         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
5358         use locators.
5359         * final.c (notice_source_line): Use locators.
5360         (final_start_function): Set initial source file and line.
5361         (final_scan_insn): Use locators.
5362         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
5363         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
5364         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
5365         noce_process_if_block, find_cond_trap): Likewise.
5366         * integrate.c (copy_insn_list): Likewise.
5367         * jump.c (duplicate_loop_exit_test): LIkewise.
5368         * print-rtl.c (print_rtx): Print locators.
5369         * recog.c (peephole2_optimize): Likewise.
5370         * rtl.h (INSN_SCOPE): Remove.
5371         (emit_insn_after_scope, emit_insn_before_scope
5372         emit_jump_insn_after_scope, emit_jump_insn_before_scope
5373         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
5374         (emit_insn_after_setloc, emit_insn_before_setloc
5375         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
5376         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
5377         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
5378         * unroll.c (copy_loop_body): Use locators.
5379         * function.c (set_insn_locators): New function.
5380         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
5381
5382 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
5383
5384         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
5385         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
5386         _fixsfdi _fixunssfdi.
5387         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
5388         popcounthi2.
5389         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
5390         * config/h8300/clzhi2.c: New.
5391         * config/h8300/ctzhi2.c: Likewise.
5392         * config/h8300/parityhi2.c: Likewise.
5393         * config/h8300/popcounthi2.c: Likewise.
5394
5395 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
5396
5397         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
5398         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
5399
5400         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
5401         (dump_bb): New based on old dump_bb in cfgrtl.c
5402         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
5403         * cfghooks.h (cfgh_verify_flow_info): Return status.
5404         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
5405         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
5406         (dump_bb): Remove generic parts.
5407         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
5408         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
5409
5410 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
5411
5412         * Makefile.in: Rename options.c and options.h to c-options.c and
5413         c-options.h.
5414         (OBJS): Remove options.o.
5415         * c-opts.c: Don'tInclude c-options.h instead of options.h.
5416         * opts.c: Don't include options.h.
5417         (find_opt): Can't use enum opt_code or N_OPTS.
5418         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
5419         * opts.sh: ... here.
5420
5421 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5422             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5423
5424         PR pch/9830
5425         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
5426         if HAVE_MINCORE is defined.
5427         (MAP_FAILED): Define if not defined.
5428         (gt_pch_save): Test against MAP_FAILED.
5429         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
5430         the mapping address to the preferred base after checking it
5431         is possible to do so. Test against MAP_FAILED.
5432         * configure.in: Test for the presence of mincore in libc.
5433         * config.in: Regenerate.
5434         * configure: Regenerate.
5435
5436 2003-06-07  Richard Henderson  <rth@redhat.com>
5437
5438         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
5439         conditional compilation guard.
5440
5441 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
5442
5443         * optabs.c (expand_abs): Set result_unsignedp to 1 if
5444         flag_trav is zero.
5445
5446 2003-06-07  Richard Henderson  <rth@redhat.com>
5447
5448         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
5449
5450 2003-06-07  Richard Henderson  <rth@redhat.com>
5451
5452         * basic-block.h (EDGE_SIBCALL): New.
5453         (EDGE_ALL_FLAGS): Update.
5454         * cfg.c (dump_edge_info): Add sibcall name.
5455         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
5456         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
5457
5458 2003-06-07  Andreas Jaeger  <aj@suse.de>
5459
5460         * mklibgcc.in (lib2funcs): Remove _exit.
5461         * libgcc2.c: Remove L_exit.
5462         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
5463
5464         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
5465
5466         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
5467
5468         * ggc.h: Convert to ISO C90 prototypes.
5469         * ggc-none.c: Likewise.
5470         * ggc-common.c: Likewise.
5471         * ggc-page.c: Likewise.
5472         * ggc-simple.c: Likewise.
5473
5474         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
5475
5476         * system.h: Poison INIT_SECTION_PREAMBLE.
5477
5478 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
5479
5480         * config.gcc (with_cpu handling): Translate sparc64 in
5481         $machine to --with-cpu=v9.
5482         * config/alpha/alpha.c
5483         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
5484         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
5485
5486         * target.h: New hook asm_out.file_end.
5487         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
5488         * toplev.c (compile_file): Use targetm.asm_out.file_end.
5489         * system.h: Poison ASM_FILE_END.
5490         * varasm.c (file_end_indicate_exec_stack): New.
5491         * output.h: Prototype it.
5492         * doc/tm.texi: Document TARGET_ASM_FILE_END and
5493         file_end_indicate_exec_stack.  Delete references to attasm.h.
5494
5495         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
5496         (ASM_FILE_END): Delete; move code...
5497         * config/darwin.c (darwin_file_end): Here; new function.
5498         * config/darwin-protos.h: Prototype it.
5499         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
5500         rename unicosmk_file_end.
5501         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
5502         * config/arm/arm.c (aof_file_end): ... here; new static function.
5503         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
5504         Make aof_dump_imports and aof_dump_pic_table static.
5505         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
5506         Set TARGET_ASM_FILE_END to avr_file_end.
5507         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
5508         Set TARGET_ASM_FILE_END to c4x_file_end.
5509         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
5510         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
5511         h8300_file_end.
5512         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
5513         * config/i370/i370.c (i370_file_end): ... here; new static function.
5514         Set TARGET_ASM_FILE_END to i370_file_end.
5515          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
5516          Take no arguments.  Call file_end_indicate_exec_stack if
5517          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
5518         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
5519         Define NEED_INDICATE_EXEC_STACK to 0.
5520         * config/i386/linux.h, config/i386/linux64.h: Redefine
5521         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
5522         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
5523         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
5524         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
5525         ia64_hpux_file_end, make static.  Take no arguments.
5526         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
5527         commands_in_prologues, commands_in_epilogues): Delete.
5528         (function_epilogue): Update to match.
5529         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
5530         make static.  Take no arguments.
5531         (iris6_asm_file_end): Rename iris6_file_end, make static, use
5532         mips_file_end, take no arguments.
5533         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
5534         appropriate.
5535         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
5536         make static, take no arguments. Set TARGET_ASM_FILE_END to
5537         mmix_file_end.
5538         * config/pa/pa.c (output_deferred_plabels): Make static, take
5539         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
5540         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
5541         (ASM_FILE_END): Delete; move code...
5542         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
5543         new static function.
5544
5545         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
5546         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
5547         Don't set ASM_FILE_END.
5548         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
5549         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
5550         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
5551         file_end_indicate_exec_stack; don't set ASM_FILE_END.
5552         * config/alpha/unicosmk.h, config/i386/cygming.h
5553         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
5554         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
5555         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
5556         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
5557         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
5558         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
5559
5560 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
5561
5562         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
5563         specified.
5564
5565 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
5566
5567         * Makefile.in (stageprofile_build): Kill redundant target.
5568         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
5569
5570 2003-06-07  Andreas Jaeger  <aj@suse.de>
5571
5572         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
5573
5574         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
5575         * config/dsp16xx/dsp16xx.h: Likewise.
5576         * config/i386/i386.h: Likewise.
5577         * config/ip2k/ip2k.h: Likewise.
5578
5579 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
5580
5581         * Makefile.in (OJBS, c-opts.o): Update.
5582         (c-options.c, c-options.h): Rename options.h and options.c.
5583         (options.h): Rename options_.h.
5584         (opts.o): New.
5585         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
5586         (c_common_init_options): Update prototype.
5587         * c-lang.c (c_init_options): Update prototype.
5588         (LANG_HOOKS_HANDLE_OPTION): Override.
5589         (LANG_HOOKS_DECODE_OPTION): Drop.
5590         * c-opts.c: Include opts.h and options.h instead of c-options.h
5591         and c-options.c.
5592         (lang_flags): Move to file scope.
5593         (find_opt, c_common_decode_option): Remove.
5594         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
5595         CL_REJECT_NEGATIVE): Move to opts.h.
5596         (missing_arg): Update prototype.
5597         (c_common_init_options): Update for new prototype.
5598         (c_common_handle_options): Filenames are passed as N_OPTS.
5599         * hooks.c (hook_int_void_0): New.
5600         * hooks.h (hook_int_void_0): New.
5601         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
5602         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
5603         (LANG_HOOKS_INITIALIZER): Update.
5604         * langhooks.h (init_options): Update.
5605         (handle_option): New.
5606         * opts.c, opts.h: New files.
5607         * opts.sh: Update c file to include opts.h and options.h.
5608         * toplev.c: Include opts.h; change options.h to options_.h.
5609         (parse_options_and_default_flags): Get lang_mask, use
5610         handle_option for language-specific handling.
5611         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
5612         (LANG_HOOKS_HANDLE_OPTION): Override.
5613         (objc_init_options): Update.
5614
5615 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
5616             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
5617
5618         PR other/7031
5619         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
5620         gcov.
5621
5622 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
5623
5624         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
5625         section names.
5626         * configure: Regenerate.
5627
5628 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
5629
5630         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
5631
5632 2003-06-06  James E Wilson  <wilson@tuliptree.org>
5633
5634         PR inline-asm/10890
5635         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
5636         different in fields.
5637
5638 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
5639
5640         * configure.in: Make $(target_subdir) correspond with top level usage.
5641         * Makefile.in: Likewise.
5642         * configure: Regenerate.
5643
5644 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5645
5646         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
5647         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
5648         unsigned HOST_WIDE_INT.
5649         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
5650         Likewise.
5651         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
5652         Likewise.
5653
5654 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5655
5656         * doc/install.texi (Prerequisites): New section documenting
5657         tools and packages necessary prior to building and/or
5658         modifying GCC.
5659         * doc/install.texi2html: Also generate prerequisites.html.
5660
5661 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
5662
5663         PR target/11052
5664         * ifcvt.c (noce_process_if_block): Fail if the destination has
5665         side-effects.
5666
5667 2003-06-06  Jason Merrill  <jason@redhat.com>
5668
5669         * stmt.c (resolve_asm_operand_names): Rename from
5670         resolve_operand_names.  No longer static.  Avoid needless copying.
5671         Don't build array of constraints.
5672         (expand_asm_operands): Build it here.
5673         * tree.h: Declare resolve_asm_operand_names.
5674
5675         * stmt.c (expand_decl): Put artificial vars into registers even
5676         when not optimizing, and don't mark the regs as user vars.
5677
5678 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
5679
5680         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
5681         of the generated register.
5682
5683 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
5684
5685         * config.gcc: Add a missing sparc64 case.
5686
5687 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
5688
5689         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
5690         the .hidden assembly stubs.
5691
5692 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
5693
5694         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
5695         and x86_64-*-*.
5696
5697         * config/i386/mmintrin.h: Update version and add alternate
5698         intrinsic names.
5699         * config/i386/xmmintrin.h: Likewise.
5700
5701         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
5702         intrinsics to ...
5703         * config/i386/emmintrin.h: Here. New file.
5704
5705 2003-06-06  Roger Sayle  <roger@eyesopen.com>
5706
5707         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
5708         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
5709         when the ABS_EXPR (fabs or abs) is not required.
5710         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
5711         always nonnegative from fold to here.  Additionally, cabs and fabs
5712         are always non-negative, and pow and atan are non-negative if
5713         their first argument is non-negative.
5714
5715         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
5716         Evaluate cabs of a constant at compile-time.  Convert cabs of a
5717         non-complex argument into fabs.  Convert cabs(z) into
5718         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
5719         -funsafe-math-optimizations or -ffast-math.
5720         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
5721         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
5722
5723 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
5724
5725         * sourcebuild.texi (Front End Directory): Document new hooks.
5726
5727 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
5728
5729         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
5730         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
5731         stack frames.
5732         (pro_epilogue_adjust_stack_rex64_2): New pattern
5733
5734 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
5735                                Pop Sebastian
5736                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5737
5738         * cfghooks.h, cfghooks.c: New files.
5739         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
5740         (OBJS): Add cfghooks.o.
5741         (cfghooks.o): New rule.
5742         * basic-block.h (split_edge): Rename to rtl_split_edge.
5743         (verify_flow_info): Rename to rtl_verify_flow_info.
5744         (cfghooks.h): Included here.
5745         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
5746         (verify_flow_info): Renamed rtl_verify_flow_info.
5747         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
5748
5749         * basic-block.h (split_block, split_edge, flow_delete_block,
5750         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
5751         (flow_delete_block_noexpunge):  Return void.
5752         * cfg.c (verify_flow_info): New function.
5753         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
5754         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
5755         Use delete_block.
5756         * cfglayout.c (function_footer): Rename to...
5757         (cfg_layout_function_footer): ... this variable
5758         (unlink_insn_chain): Make global.
5759         (fixup_reorder_chain, record_effective_endpoints): Update.
5760         (cleanup_unconditional_jumps): Use delete_block.
5761         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
5762         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
5763         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
5764         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
5765         (cfg_layout_function_footer): Declare.
5766         * cfgloopmanip (split_loop_bb): Do not update RBI.
5767         (remove_bbs): Use delete_block.
5768         (loop_reidrect_edge, loop_delete_branch_edge): Use
5769         redirect_edge_and_branch.
5770         (create_preheader): Use split_block and redirect_edge_and_branch_force.
5771         (split_edge_with): Likewise.
5772         * cfgrtl.c: Include cfglayout.h
5773         (split_edge): Rename to ...
5774         (rtl_split_edge) ... this one; make local.
5775         (redirect_edge_and_branch): Rename to ...
5776         (rtl_redirect_edge_and_branch) ... this one; make local.
5777         (redirect_edge_and_branch_force): Rename to ...
5778         (rtl_redirect_edge_and_branch_force) ... this one; make local.
5779         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
5780         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
5781         cfglayout.c; update to directly call RTL counterparts.
5782         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
5783         * ifcvt.c (find_cond_trap): Use delete_block.
5784         (find_if_case_1): Use delete_block.
5785         (find_if_case_2): Use delete_block.
5786         * rtl.h (unlink_insn_chain): Declare.
5787         * toplev.c (rtl_reigster_cfg_hooks): New.
5788
5789 2003-06-05  Richard Henderson  <rth@redhat.com>
5790
5791         * recog.c (peephole2_optimize): Revert last change.
5792
5793 2003-06-05  Richard Henderson  <rth@redhat.com>
5794
5795         * recog.c (peephole2_optimize): Don't split block unless
5796         can_throw_internal.
5797
5798 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
5799
5800         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
5801         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
5802
5803 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
5804
5805         PR optimization/4490
5806         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
5807         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
5808         documentation to accurately reflect what these options do.
5809
5810 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
5811
5812         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
5813         (ENDFILE_SPEC): Redefine to handle -pie.
5814
5815 2003-06-05  Phil Edwards <phil@jaj.com>
5816
5817         * Makefile.in (qmtest-g++): Use target_alias, not target.
5818
5819 2003-06-05  Per Bothner  <pbothner@apple.com>
5820
5821         * toplev.c (push_srcloc):  Simplify behavior to save current location
5822         and set current location to parameters.
5823         (pop_srcloc):  Simplify semantics.
5824         (lang_dependent_init):  Remove now-useless initial push_srcloc.
5825
5826 2003-05-06  Richard Henderson  <rth@redhat.com>
5827
5828         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
5829         language-specific tree codes.
5830
5831 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5832
5833         PR middle-end/9986
5834         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
5835         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
5836
5837 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
5838
5839         * install.tex: Document profiledbootstrap.
5840
5841         * configure.in:  Add support for lang.stageprofile and
5842         lang.stagefeedback
5843         * Makefile.in (clean, distclean): Kill new stages
5844         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
5845         (STAGE2_FLAGS_TO_PASS): ... this one.
5846         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
5847         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
5848         (stageprofile_build, stageprofile_copy, stagefeedback_build,
5849         stagefeedback_copy): New.
5850         (restageprofile, restagefeedback, stageprofile-start,
5851         stageprofile, stagefeedback-start): Likewise.
5852
5853 2003-06-05  David Miller  <davem@redhat.com>
5854             Richard Henderson  <rth@redhat.com>
5855
5856         * optabs.c (HAVE_conditional_trap): Provide default.
5857         (gen_conditional_trap): Likewise.
5858         (init_optabs): Merge init_traps.
5859         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
5860
5861 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
5862
5863         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
5864         is REG for nonzero_bits (REG) == 8.
5865
5866 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
5867
5868         * i386.md (align): Fix warning; clarify what to do when no p2align
5869         is available.
5870
5871 2003-06-05  Nick Clifton  <nickc@redhat.com>
5872
5873         * config.gcc (m32r-elf): Revert previous delta.
5874         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
5875         multilibs.  Remove m32rx specific version.
5876         (crtfini.o): Likewise.
5877         (EXTRA_MULTILIB_PARTS): Define.
5878
5879 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
5880
5881         * doc/md.texi (Machine Constraints): Correct the meaning of
5882         constraints related to floating-point registers on SPARC.
5883
5884 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
5885             Paolo Bonzini  <bonzini@gnu.org>
5886
5887         PR target/10663
5888         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
5889         assembler and linker output to /dev/null.
5890         Use a 'sed' construct instead of 'grep -A1'.
5891         * configure: Regenerate.
5892
5893 2003-06-04  Richard Henderson  <rth@redhat.com>
5894
5895         * config/i386/i386.c (struct ix86_address): Add seg.
5896         (no_seg_address_operand): New.
5897         (ix86_decompose_address): Restructure PLUS loop.  Accept one
5898         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
5899         to test for a regnum, not stack_pointer_rtx.
5900         (ix86_address_cost): Reduce cost if non-default segment.
5901         (legitimate_address_p): Remove UNSPEC_TP check.
5902         (get_thread_pointer): Add to_reg argument.  Don't represent
5903         the thread pointer as a memory load.
5904         (legitimize_tls_address): Split out of ...
5905         (legitimize_address): ... here.
5906         (print_operand_address): Handle parts.seg.
5907         (ix86_expand_move): Use legitimize_tls_address.
5908         (ix86_rtx_costs): Handle UNSPEC_TP.
5909         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
5910         (TARGET_TLS_DIRECT_SEG_REFS): New.
5911         (TARGET_SWITCHES): Add tls-direct-seg-refs.
5912         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
5913         (PREDICATE_CODES): Add no_seg_address_operand.
5914         * config/i386/i386.md (lea_1): Use it.
5915         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
5916         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
5917         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5918         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5919         * doc/invoke.texi: Add -mtls-direct-seg-refs.
5920
5921 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
5922
5923         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
5924         (QMTEST_GPP_TESTS): Use "g++" by default.
5925         (stamp-qmtest): Tweak database creation.
5926         (QMTEST_DIR/context): Update context file format.
5927         (qmtest-g++): Tweak command-line.
5928
5929 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5930
5931         * Makefile.in (varasm.o): Don't set -Wno-error.
5932         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
5933
5934 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
5935
5936         PR bootstrap/3163
5937         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
5938         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
5939         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
5940         and AC_CHECK_FUNCS lists, respectively.  Use
5941         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
5942         AC_FUNC_MMAP_FILE.
5943         * configure, config.in: Regenerate.
5944
5945 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5946
5947         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
5948         * arm.c (arm_output_function_prologue): Fix format specifiers.
5949         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5950         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
5951         HOST_WIDE_INT_PRINT_DEC.
5952         * vax.c (vax_output_function_prologue): Fix format specifiers.
5953
5954 2003-06-04  Richard Henderson  <rth@redhat.com>
5955
5956         * cse.c (find_best_addr): Consider binary operators even if second
5957         argument is not CONST_INT.
5958
5959 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5960
5961         * doc/invoke.texi (max-cse-path-length): Document.
5962
5963 2003-06-04  Richard Henderson  <rth@redhat.com>
5964
5965         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
5966
5967 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
5968
5969         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
5970         Remove semi-colon at the end of the expression.
5971
5972 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5973
5974         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
5975         * i370.h (mvs_function_name_length): Likewise.
5976         * i960.h (CONSTANT_ALIGNMENT): Likewise.
5977         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5978         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5979         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5980         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
5981         variable.
5982
5983 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
5984
5985         * config.gcc: Reorganize --with-cpu logic.  Set
5986         configure_default_options according to the default CPU, --with-cpu,
5987         --with-arch, --with-tune, --with-schedule, --with-abi, and
5988         --with-float.  Check for legal values of various options.
5989         * configure.in: Define configure_default_options in configargs.h.
5990         * configure: Regenerated.
5991         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
5992         (TARGET_DEFAULT_FLOAT_P): New macros.
5993         * gcc.c (do_option_spec): New function.
5994         (struct default_spec, option_default_specs): New.
5995         (main): Call do_option_spec.
5996         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
5997         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
5998         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
5999
6000         * doc/install.texi: Update --with-cpu documentation.  Mention
6001         --with-arch, --with-schedule, --with-tune, --with-abi, and
6002         --with-float.
6003         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
6004
6005 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6006
6007         * config.gcc: Only process --with-cpu logic in the third pass.
6008
6009 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6010
6011         * config.gcc: Reorganize --with-cpu section.  Remove an
6012         obsolete comment about the default CPU for x86-64.  Fix
6013         a typo for the ep9312.  Update the list of supported PowerPC
6014         CPUs.  Support a limited set of new --with-cpu options
6015         for i386.
6016
6017 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
6018
6019         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
6020         complex numbers <= 32 bits into two registers.
6021
6022 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6023
6024         * alpha.c (print_operand_address): Fix format specifier warnings.
6025         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6026         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6027         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6028         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
6029         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
6030         ASM_OUTPUT_SKIP): Likewise.
6031         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6032         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6033         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
6034         Likewise.
6035         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6036         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
6037         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
6038         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6039         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
6040         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6041         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6042         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6043         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6044         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
6045
6046 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
6047
6048         * c-decl.c (c_init_decl_processing): Clear input_file_name
6049         while building common nodes.
6050         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
6051         Don't add working directory for strings like <built-in> .
6052
6053 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
6054
6055         * doc/install.texi (*-ibm-aix*): Native as and ld required
6056         to bootstrap on AIX 5L.
6057
6058 2003-06-04  Richard Henderson  <rth@redhat.com>
6059
6060         * c-common.c (handle_cleanup_attribute): New.
6061         (c_common_attributes): Add it.
6062         * c-decl.c (finish_decl): Honor the cleanup attribute.
6063         * doc/extend.texi (Variable Attributes): Document it.
6064
6065         * unwind-c.c: New file.
6066         * Makefile.in (LIB2ADDEH): Add it.
6067         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
6068         config/ia64/t-ia64: Likewise.
6069
6070 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
6071
6072         * function.c (trampolines_created): New variable.
6073         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
6074         * function.h (trampolines_created): Add.
6075         * config/s390/linux.h (ASM_FILE_END): Define.
6076         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
6077         * config/m68k/linux.h (ASM_FILE_END): Define.
6078         * config/rs6000/linux.h (ASM_FILE_END): Define.
6079         * config/rs6000/linux64.h (ASM_FILE_END): Define.
6080         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
6081         * config/sparc/linux.h (ASM_FILE_END): Define.
6082         * config/sparc/linux64.h (ASM_FILE_END): Define.
6083         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
6084         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
6085         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
6086
6087 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
6088
6089         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
6090         (ix86_reorg): Use it.
6091         * i386.md (align): New insn pattern.
6092
6093 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6094
6095         * toplev.c (rest_of_type_compilation): Fix typo.
6096
6097 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
6098             Alan Modra  <amodra@bigpond.net.au>
6099
6100         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
6101         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
6102         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
6103         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
6104         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
6105         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
6106         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
6107         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
6108
6109         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
6110         Pass it to $gcc_cv_as.
6111         * configure: Rebuilt.
6112
6113         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
6114         (print_operand): Allow TARGET_AIX to be non-constant.
6115         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
6116         Define unconditionally.
6117         (rs6000_elf_declare_function_name): New function.
6118         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
6119         non-constant.
6120         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
6121         to 1.
6122         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
6123         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
6124         is defined.
6125         (TARGET_AIX): Define to 1 if TARGET_64BIT.
6126         (PROCESSOR_DEFAULT): Remove.
6127         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
6128         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6129         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
6130         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
6131         -m32 and -m64.
6132         (MULTILIB_DEFAULTS): Define.
6133         (SUBSUBTARGET_EXTRA_SPECS): Define.
6134         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
6135         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
6136         (TARGET_NO_TOC): Remove.
6137         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
6138         TARGET_PROTOTYPE): Define to 0.
6139         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
6140         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
6141         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
6142         if !TARGET_64BIT.
6143         (USER_LABEL_PREFIX): Remove.
6144         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
6145         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
6146         if TARGET_64BIT.
6147         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
6148         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
6149         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
6150         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
6151         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6152         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
6153         TARGET_64BIT.
6154         (RS6000_CALL_GLUE): Likewise.
6155         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
6156         RESTORE_FP_SUFFIX): Likewise.
6157         (ASM_DECLARE_FUNCTION_NAME): Remove.
6158         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
6159         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
6160         name if TARGET_64BIT.
6161         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
6162         !TARGET_64BIT.
6163         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
6164         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
6165         (DRAFT_V4_STRUCT_RET): Define.
6166         (SIGNAL_FRAMESIZE): New enum value.
6167         (MD_FALLBACK_FRAME_STATE_FOR): Define.
6168         * config/rs6000/default64.h: New file.
6169         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
6170         options.
6171         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
6172         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
6173         if !TARGET_64BIT.
6174         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6175         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
6176         function.
6177         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
6178         (TARGET_OS_CPP_BUILTINS): Use it.
6179         (CPP_SYSV_SPEC): Remove.
6180         (CPP_SPEC): Remove cpp_sysv.
6181         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
6182         Add SUBSUBTARGET_EXTRA_SPECS.
6183         (SUBSUBTARGET_EXTRA_SPECS): Define.
6184         * config/rs6000/biarch64.h: New file.
6185         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
6186         New prototype.
6187         * config/rs6000/x-linux64: New file.
6188         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
6189         multilibs.
6190         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
6191         * config/rs6000/eabi-cn.asm: Likewise.
6192         * config/rs6000/tramp.asm: Likewise.
6193         * config/rs6000/sol-ci.asm: Likewise.
6194         * config/rs6000/sol-cn.asm: Likewise.
6195         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
6196         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
6197         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
6198         _CALL_AIXDESC section.
6199         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
6200         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
6201         or default32.
6202
6203 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6204
6205         * config.gcc: Revert accidentally committed ARM changes.
6206
6207 2003-06-04  Roger Sayle  <roger@eyesopen.com>
6208
6209         * builtins.c (dconstpi, dconste): New mathematical constants.
6210         (init_builtin_dconsts): New function to initialize dconstpi
6211         and dconste.
6212         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
6213         compile time with -ffast-math when x is an integer constant.
6214         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
6215         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
6216
6217 2003-06-04  Roger Sayle  <roger@eyesopen.com>
6218
6219         * calls.c (expand_call): Avoid calling pure or const functions
6220         when the result is ignored (or void) and none of the arguments
6221         are volatile.  Move warning diagnostic earlier in function.
6222
6223 2003-06-04  Andreas Jaeger  <aj@suse.de>
6224
6225         * system.h: Do not poison TDESC_SECTION_ASM_OP,
6226         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
6227
6228 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6229
6230         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
6231         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
6232         handle %ll, optimize regular character case.
6233
6234 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6235
6236         * Makefile.in (cse.o): Add params.h dependency.
6237         * cse.c: Include params.h.
6238         (PATHLENGTH): Removed.
6239         (struct cse_basic_block_data): Make path array dynamic.
6240         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
6241         of PATHLENGTH.
6242         (cse_main, cse_basic_block): Allocate path array.
6243         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
6244
6245 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
6246
6247         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
6248         * i386.md (UNSPEC_REP): New constant.
6249         (return_internal_long): New pattern.
6250
6251 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6252
6253         PR optimization/11018
6254         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
6255         consistently to decide whether the scratch register is really
6256         required.
6257
6258 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6259
6260         PR optimization/10876
6261         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
6262         new 'O' constraint for constant 4096.
6263         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
6264         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
6265         Do not transform into MINUS insn for constant 4096.
6266         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
6267         for constant 4096 as third operand.
6268         (addsi3 expander): Remove.
6269         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
6270         new alternative for constant 4096 as third operand.
6271         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
6272         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
6273         operand.
6274         (subsi3 expander): Remove.
6275         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
6276         constant 4096 as third operand.
6277         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
6278         the SPARC port.
6279
6280 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
6281
6282         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
6283
6284 2003-06-04  Andreas Jaeger  <aj@suse.de>
6285
6286         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
6287
6288         * config/i386/i386.c (ix86_expand_prologue): Do not use
6289         SUBTARGET_PROLOGUE.
6290
6291         * system.h: Poision SUBTARGET_PROLOGUE.
6292
6293         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
6294
6295         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
6296         dependend code.
6297
6298         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
6299
6300         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
6301         INSN_CACHE_LINE_WIDTH.
6302
6303         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
6304         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
6305         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
6306
6307         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
6308         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
6309
6310         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
6311         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
6312         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
6313         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
6314         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
6315         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
6316
6317         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
6318         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
6319         DBX_WORKING_DIRECTORY.
6320
6321         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
6322         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
6323
6324         * config/frv/frv-protos.h: Remove unused const_section
6325         declaration.
6326         * config/vax/vax-protos.h: Likewise.
6327
6328         * output.h: Remove CONST_SECTION_ASM_OP usage.
6329
6330         * system.h: Poison CONST_SECTION_ASM_OP.
6331
6332         * crtstuff.c (__do_global_dtors_aux): Remove usage of
6333         CRT_GET_RFIB_TEXT.
6334         (frame_dummy): Likewise.
6335         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
6336         * system.h: Poison CRT_GET_RFIB_TEXT.
6337
6338         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
6339
6340         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
6341         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
6342         (recognized_function): Likewise.
6343         (read_scan_file): Likewise.
6344
6345 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6346
6347         * optabs.c (expand_binop): Optimize complex multiplication for
6348         the case of squaring a complex argument.
6349
6350 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6351
6352         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
6353         non-volatile operands of binary operations.
6354         (prepare_cmp_insn): Likewise.
6355
6356 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6357
6358         * varasm.c (force_const_mem): Handle alignment of constants not
6359         representable as a type in the front-end language.
6360
6361 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
6362
6363         * flow.c (initialize_uninitialized_subregs): Use
6364         emit_move_insn instead of emitting a hardcoded move.
6365
6366 2003-06-03  Richard Henderson  <rth@redhat.com>
6367
6368         * optabs.c (expand_abs_nojump): Split out from ...
6369         (expand_abs): ... here.
6370         * optabs.h (expand_abs_nojump): Declare.
6371         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
6372         * Makefile.in (ifcvt.o): Depend on optabs.h.
6373
6374 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
6375
6376         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
6377
6378 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
6379
6380         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
6381         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
6382         to yes.
6383         * configure.in: Allow default_use_cxa_atexit to determine the
6384         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
6385         disabled.
6386         * configure: Regenerate.
6387
6388 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
6389
6390         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
6391         * doc/gcc.texi: Remove vms.texi section.
6392         * doc/vms.texi: Remove obsolete file.
6393
6394 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
6395
6396         * configure.in (inhibit_libc): Don't define when configuring
6397         with --with-newlib --with-headers.
6398         * configure: Regenerate.
6399
6400         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
6401
6402 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6403
6404         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
6405         IRIX 6 without GNU ld.
6406         * configure: Regenerate.
6407
6408 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6409
6410         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
6411         of a complex number rather than invoke mov_optab directly.
6412
6413 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
6414
6415         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
6416         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
6417
6418 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
6419
6420         * config/i386/x86-64.h: Remove two target-independent comments;
6421          replace "GNU CC" with "GCC".
6422
6423 2003-06-03  Anthony Green  <green@redhat.com>
6424
6425         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
6426
6427 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6428
6429         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
6430         New builtins representing ISO C99's cabs, cabsf and cabsl.
6431         * builtins.c (expand_builtin_fabs): New function.
6432         (expand_builtin_cabs): New function.
6433         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
6434         using expand_builtin_fabs and expand_builtin_cabs respectively.
6435
6436         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
6437
6438 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
6439
6440         * function.c (assign_parms): Split complex arguments.
6441
6442         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
6443
6444         * expr.h (SPLIT_COMPLEX_ARGS): Define.
6445         (split_complex_types): Protoize.
6446         (split_complex_values): Protoize.
6447
6448         * calls.c (expand_call): Split complex arguments on architectures
6449         that require it.
6450         (split_complex_values): New.
6451         (split_complex_types): New.
6452
6453         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
6454         (rs6000_function_value): Handle complex values on AIX.
6455         (rs6000_complex_function_value): New.
6456
6457         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
6458
6459         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
6460         (SPLIT_COMPLEX_ARGS): New.
6461
6462 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
6463
6464         * configure.in (HAVE_LD_PIE): Check for ld -pie.
6465         * config.in: Rebuilt.
6466         * configure: Rebuilt.
6467         * toplev.c (flag_pie, flag_shlib): New variables.
6468         (f_options): Add -fpie and -fPIE.
6469         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
6470         Set flag_shlib if flag_pic and not -fpie/-fPIE.
6471         * flags.h (flag_pic, flag_shlib): Add.
6472         * varasm.c (default_binds_local_p): Use flag_shlib instead of
6473         flag_pic.
6474         * gcc.c (LINK_PIE_SPEC): Define.
6475         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
6476         (option_map): Add --pie -> -pie mapping.
6477         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
6478         and -fPIE the same way as -fPIC.
6479         * config/openbsd.h (ASM_SPEC): Likewise.
6480         * config/frv/frv.h (ASM_SPEC): Likewise.
6481         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
6482         * config/arm/semi.h (ASM_SPEC): Likewise.
6483         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6484         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
6485         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
6486         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
6487         * config/m68k/linux.h (CPP_SPEC): Likewise.
6488         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
6489         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
6490         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
6491         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
6492         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
6493         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
6494         * config/netbsd-aout.h (ASM_SPEC): Likewise.
6495         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
6496         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
6497         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
6498         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
6499         * config/sparc/sparc.h (ASM_SPEC): Likewise.
6500         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
6501         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
6502         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
6503         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
6504         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
6505         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
6506         Simplify.
6507         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6508         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6509         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6510         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6511         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6512         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6513         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6514         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
6515
6516 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
6517
6518         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
6519         != 0 handling.  Pass 0 to store_by_pieces.
6520         (expand_builtin_mempcpy): Add endp argument.  Don't call
6521         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
6522         directly.  If ignoring result, only do expand_call.
6523         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
6524         otherwise.
6525         (expand_builtin_strncpy, expand_builtin_memset): Adjust
6526         store_by_pices callers.
6527         (expand_builtin): Adjust expand_builtin_memcpy and
6528         expand_builtin_mempcpy callers.
6529         * expr.c (can_move_by_pieces): New function.
6530         (move_by_pieces): Add endp argument, return to resp. memory at end
6531         or one byte earlier depending on endp.
6532         (store_by_pieces): Likewise.
6533         (emit_block_move): Adjust call to move_by_pieces.
6534         (emit_push_insn): Adjust move_by_pieces caller.
6535         * expr.h (can_move_by_pieces): New prototype.
6536         (store_by_pieces): Adjust prototypes.
6537         * rtl.h (move_by_pieces): Adjust prototype.
6538         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
6539         caller.
6540
6541 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
6542
6543         * doc/md.texi (Processor pipeline description): Improve wording.
6544
6545 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
6546
6547         * c-opts.c (c_common_handle_option): New, pulled out of
6548         c_common_decode_option.  Substitute uses of argv.
6549         (c_common_decode_option): Broken into two.
6550
6551 2003-06-02  Roger Sayle  <roger@eyesopen.com>
6552             Zack Weinberg  <zack@codesourcery.com>
6553
6554         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
6555         test of TREE_CONSTANT_POOL_ADDRESS_P.
6556
6557 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6558
6559         * mips.c: Don't include output.h twice.
6560         * stormy16.c: Likewise.
6561         * xtensa.c: Likewise.
6562         * output.h: Protect against multiple inclusion.
6563
6564 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
6565
6566         * sh.h (OLD_ARG_MODE): New macro.
6567         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
6568         (FUNCTION_ARG_1): Break out of:
6569         (FUNCTION_ARG).  Use OLD_ARG_MODE.
6570
6571 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
6572
6573         * gcc/config.gcc Add support multilib parts for m32rx processor.
6574
6575 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6576
6577         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
6578         (mostlyclean): Delete c-options.c and c-options.h.
6579
6580 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
6581
6582         * c-opts.c (CL_REJECT_NEGATIVE): New.
6583         (c_common_decode_option): Update to use it.
6584         * c.opt: Update documentation; use RejectNegative.
6585         * opts.sh: Handle RejectNegative.
6586
6587 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
6588
6589         * ggc-page.c (init_ggc): Give better diagnostics on failure to
6590         open /dev/zero.
6591         * toplev.c (crash_signal): Reset handling for received signal
6592         to SIG_DFL.
6593
6594 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
6595
6596         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
6597         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
6598         (arm_use_dfa_pipeline_interface): Implement.
6599         * config/arm/arm.md (arm): New automaton.
6600         (write_buf): Remove function units; new cpu unit.
6601         (write_blockage): Remove function units; new cpu unit.
6602         (core): Remove function units; new cpu unit.
6603         (r_mem_f_wbuf): New instruction reservation.
6604         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
6605         (store1_ldsched, store2, store3, store4): Likewise.
6606         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
6607         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
6608         (multi_cycle, single_cycle): Likewise.
6609         * config/arm/fpa.md (armfp): New automaton.
6610         (fpa): Remove function units; new cpu unit.
6611         (fpa_mem): Remove function unit; new cpu unit.
6612         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
6613         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
6614
6615 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6616
6617         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
6618         * c-format.c (enum format_type): Add asm_fprintf_format_type.
6619         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
6620         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
6621         (format_types_orig): Renamed from format_types.  Add new data.
6622         (format_types): Declare as pointer.
6623         (handle_format_attribute): Move later in file so we have all
6624         necessary declarations.  Add section to capture HOST_WIDE_INT.
6625         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
6626         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
6627
6628 2003-06-01  Andreas Jaeger  <aj@suse.de>
6629
6630         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
6631         ROUND_TYPE_SIZE_UNIT.
6632
6633         * stor-layout.c (finalize_record_size): Remove usages of
6634         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
6635         (finalize_type_size): Likewise.
6636         (layout_type): Likewise.
6637
6638         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
6639
6640         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
6641
6642         * config/d30v/d30v.h: Remove text copied from the manual.
6643
6644 2003-06-01  Roger Sayle  <roger@eyesopen.com>
6645             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6646             Geoffrey Keating  <geoffk@apple.com>
6647
6648         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
6649         constants as condition code values.
6650
6651 2003-06-01  DJ Delorie  <dj@redhat.com>
6652
6653         * cppmacro.c (warn_of_redefinition): Handle cases where the two
6654         definitions have different numbers of tokens.
6655
6656 2003-06-01  Andreas Jaeger  <aj@suse.de>
6657
6658         * gen-protos.c (main): Readd unused attribute for argc.
6659
6660 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
6661
6662         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
6663         * c.opt: End in blank line.
6664         * opts.sh: Take AWK from environment if available; use C locale.
6665
6666 2003-06-01  Andreas Schwab  <schwab@suse.de>
6667
6668         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
6669
6670 2003-06-01  Andreas Jaeger  <aj@suse.de>
6671
6672         * gen-protos.c (main): Revert patch to check for argument.
6673
6674 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
6675
6676         PR target/11044
6677         * config/i386/i386.md (length attribute): Set length to 4
6678         for instructions of type "fcmp".
6679
6680 2003-06-01  Andreas Jaeger  <aj@suse.de>
6681
6682         * toplev.c: Use ISO C90 prototypes.
6683
6684         * toplev.h: Use ISO C90 prototypes.
6685
6686         * genrecog.c: Use ISO C90 prototypes.
6687         (nodes_identical): Correct declaration to match prototype.
6688         (maybe_both_true): Likewise.
6689         (merge_trees): Likewise.
6690
6691         * genpeep.c (gen_peephole): Remove #if 0 code.
6692         Use ISO C90 prototypes.
6693
6694         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
6695         Remove #if 0'ed function simplify_by_alternatives.
6696         (optimize_attrs): Remove #if 0'ed code.
6697         Remove ^L.
6698         Use ISO C90 prototypes.
6699         (make_canonical): Remove #if 0'ed code.
6700         (convert_const_symbol_ref): Remove #if 0'ed function.
6701
6702         * gen-protos.c (main): Check for argument.
6703
6704         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
6705
6706         * params.h: Use ISO C90 prototypes.
6707         * params.c: Likewise.
6708         * intl.c: Likewise.
6709         * intl.h: Likewise.
6710         * lists.c: Likewise.
6711         * errors.c: Likewise.
6712         * errors.h: Likewise.
6713         * gencodes.c: Likewise.
6714         * genpreds.c: Likewise.
6715         * genattr.c: Likewise.
6716         * gen-protos.c: Likewise.
6717         * genflags.c: Likewise
6718         * genconditions.c: Likewise.
6719         * genautomata.c: Likewise.
6720         * gencheck.c: Likewise.
6721         * genconfig.c: Likewise.
6722         * genconstants.c: Likewise.
6723         * genemit.c: Likewise.
6724         * genextract.c: Likewise.
6725         * gengenrtl.c: Likewise.
6726         * gengtype.c: Likewise.
6727         * gengtype.h: Likewise.
6728         * genopinit.c: Likewise.
6729         * genoutput.c: Likewise.
6730         * gensupport.c: Likewise.
6731         * gensupport.h: Likewise.
6732
6733         * sdbout.h: Use ISO C90 prototypes.
6734
6735         * sdbout.c (CONTIN): Removed empty macro.
6736         (sdbout_one_type): Remove CONTIN usages.
6737         Remove ^Ls.
6738         (tag_of_ru_type): Remove #if 0'ed function.
6739         (sdbout_symbol): Remove #if 0'ed code.
6740         (sdbout_one_type): Remove a #if 1.
6741         (sdbout_one_type): Remove #if 0'ed code.
6742         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
6743         Remove PARAMS, use ISO C90 prototypes for all functions.
6744
6745 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
6746
6747         * rtl.def (CONST_DOUBLE): Update comment.
6748
6749 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
6750
6751         * opts.sh: Remove path from sort.
6752
6753 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
6754
6755         PR/9680
6756         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
6757         TARGET_SPE for SPE_VECTOR_MODE.
6758
6759 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
6760
6761         * toplev.c (botch): Remove.
6762         (do_abort): Remove.
6763         (set_Wunused): Comment.
6764         (set_Wextra): Comment.
6765         Remove ^L's.
6766         (rest_of_compilation): Factor out common code into functions.
6767         (rest_of_handle_inlining): New.
6768         (rest_of_handle_ssa): New.
6769         (rest_of_handle_cse): New.
6770         (rest_of_handle_gcse): New.
6771         (rest_of_handle_loop_optimize): New.
6772         (rest_of_handle_jump_bypass): New.
6773         (rest_of_handle_sibling_calls): New.
6774         (rest_of_handle_null_pointer): New.
6775         (rest_of_handle_addresof): New.
6776         (rest_of_handle_flow): New.
6777         (rest_of_handle_branch_prob): New.
6778         (rest_of_handle_if_conversion): New.
6779         (rest_of_handle_tracer): New.
6780         (rest_of_handle_loop2): New.
6781         (rest_of_handle_cse2): New.
6782         (rest_of_handle_life): New.
6783         (rest_of_handle_combine): New.
6784         (rest_of_handle_if_after_combine): New.
6785         (rest_of_handle_regmove): New.
6786         (rest_of_handle_sched): New.
6787         (rest_of_handle_old_regalloc): New.
6788         (rest_of_handle_new_regalloc): New.
6789         (rest_of_handle_regrename): New.
6790         (rest_of_handle_reorder_blocks): New.
6791         (rest_of_handle_sched2): New.
6792         (rest_of_handle_new_regalloc): New.
6793         (rest_of_handle_old_regalloc): New.
6794         (rest_of_handle_regrename): New.
6795         (rest_of_handle_reorder_blocks): New.
6796         (rest_of_handle_stack_regs): New.
6797         (rest_of_handle_machine_reorg): New.
6798         (rest_of_handle_delay_slots): New.
6799         (rest_of_handle_final): New.
6800
6801         * toplev.h (botch): Remove prototype.
6802         (do_abort): Same.
6803
6804 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
6805
6806         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
6807         * c-opts.c: Include c-options.h and c-options.c.
6808         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
6809         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
6810         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
6811         OPT, opt_comp): Remove.
6812         (missing_arg, c_common_init_options, c_common_decode_option,
6813         write_langs): Update for macro redefinitions and enumeration
6814         name changes.
6815         * c.opt, opts.sh: New files.
6816         * doc/passes.texi: Update.
6817
6818 2003-05-31  Andreas Jaeger  <aj@suse.de>
6819
6820         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
6821         usage.
6822
6823         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
6824
6825         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
6826
6827         * system.h: Poison ALLOCATE_TRAMPOLINE.
6828
6829         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
6830         * system.h: Poison HANDLE_PRAGMA.
6831
6832 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
6833
6834         * doc/invoke.texi: Update dump file names.
6835
6836 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6837
6838         * c-format.c (format_length_info, format_char_info,
6839         format_flag_spec, format_flag_pair, format_kind_info):
6840         De-const-ify structure members.
6841
6842 2003-05-31  Roger Sayle  <roger@eyesopen.com>
6843
6844         * flags.h (flag_wrapv): New flag controlling overflow semantics.
6845         * toplev.c (flag_wrapv): Declare the variable with default false.
6846         (lang_independent_options): New option "-fwrapv" to set the above.
6847
6848         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
6849         as x, when signed arithmetic overflow wraps around.
6850         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
6851         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
6852         overflow when flag_wrapv is true.
6853
6854         * doc/invoke.texi: Document new -fwrapv command line option.
6855         * doc/c-tree.texi: Mention that the overflow semantics of
6856         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
6857         upon both flag_wrapv and flag_trapv.
6858
6859 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6860
6861         * doc/install.texi (mips-sgi-irix5): Add missing
6862         HTML <hr> marker.
6863
6864 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6865
6866         * doc/md.texi (Machine Constraints): Document
6867         missing SPARC constraints.
6868
6869 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6870
6871         * doc/md.texi (Automaton pipeline description): Use
6872         "type" instead of "cpu" as the attribute in the examples.
6873
6874 2003-05-30  Stan Shebs  <shebs@apple.com>
6875
6876         * system.h: Poison OBJC_PROLOGUE.
6877
6878 2003-05-30  Roger Sayle  <roger@eyesopen.com>
6879
6880         * emit-rtl.c (gen_complex_constant_part): New function for getting
6881         the constant real or imaginary part of a complex constant.
6882         (gen_realpart): Use it.
6883         (gen_imagpart): Likewise.
6884
6885 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
6886
6887         * doc/invoke.texi: Fix typos.
6888         * doc/rtl.texi: Likewise.
6889
6890 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
6891
6892         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
6893         mode.
6894         * config/h8300/crtn.asm: Likewise.
6895         * config/h8300/lib1funcs.asm: Likewise.
6896         * config/h8300/h8300.c (asm_file_start): Likewise.
6897         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
6898         h8300snelf emulations for normal mode.
6899         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
6900         emulations for normal mode.
6901
6902 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
6903
6904         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
6905         true if TARGET_NORMAL_MODE.
6906
6907 2003-05-30  Roger Sayle  <roger@eyesopen.com>
6908
6909         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
6910         making a substitution.
6911         (dead_libcall_p): If directly replacing a libcall with a
6912         constant value produces an invalid instruction, also try forcing
6913         the constant into the constant pool.
6914         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
6915         obvious that the source is a constant.
6916         (compress_float_constant): Use set_unique_reg_note to place
6917         REG_EQUAL notes on instructions.
6918
6919 2003-05-30  Eric Christopher  <echristo@redhat.com>
6920
6921         * config/mips/mips.c (extern_list): Add GTY marker.
6922         (extern_head): Separate out definition. Add marker.
6923         (mips_output_external): Use ggc_alloc for extern_list
6924         allocation.
6925         (mips_output_external_libcall): Ditto.
6926
6927 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
6928
6929         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
6930         later.
6931
6932 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6933
6934         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
6935         warnings.
6936         (PRINT_OPERAND): Likewise.
6937
6938 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6939
6940         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
6941         -mdebug/-no-mdebug switches ...
6942         (MDEBUG_ASM_SPEC): ... here.
6943         Use only with gas.
6944         (EXTRA_SPECS): Initialize mdebug_asm_spec.
6945
6946 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
6947
6948         * gthr-gnat.c: Remove #undef UNUSED.
6949         (__gnat_default_lock, __gnat_default_unlock): Prototype.
6950         (__gnat_task_lock, __gnat_task_unlock): Make declarations
6951         prototypes.
6952         (__gnat_install_locks): Convert declaration to ISO C90, make
6953         parameter declarations prototypes, and remove blank line.
6954         * gthr-gnat.h (__gnat_install_locks): Make parameter
6955         declarations prototypes.
6956
6957 2003-05-29  Jason Merrill  <jason@redhat.com>
6958
6959         * Makefile.in (unstrap): Remove stage_last after make unstage1.
6960
6961 2003-05-29  Roger Sayle  <roger@eyesopen.com>
6962
6963         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
6964
6965 2003-05-29  Roger Sayle  <roger@eyesopen.com>
6966             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
6967
6968         PR bootstrap/10169
6969         * mips-tfile.c (main): Use getopt_long instead of getopt.
6970         Add new command line option --version to display version.
6971         Treat --verbose like -v to report a single line version.
6972         (options): New global variable for getopt_long.
6973         * mips-tdump.c (main): Use getopt_long instead of getopt.
6974         New command line options -v, --version and -verbose to display
6975         the program version number (to match mips-tfile's behavior).
6976         (options): New global variable for getopt_long.
6977
6978         * gcov.c (options): Zero-terminate getopt_long array.
6979         * gcov-dump.c (options): Likewise.
6980
6981         * Makefile.in (mips-tdump.o): Add dependency on version.h.
6982
6983 2003-05-29  Stan Shebs  <shebs@apple.com>
6984
6985         Remove OBJC_PROLOGUE everywhere.
6986         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
6987         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
6988         * config/d30v/d30v.h: Similarly.
6989         * config/ip2k/ip2k.h: Similarly.
6990         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
6991
6992 2003-05-29  Roger Sayle  <roger@eyesopen.com>
6993
6994         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
6995         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
6996         (expand_unreachable_stmt): Expand unreachable while statements
6997         using genrtl_do_stmt_1.
6998
6999 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
7000
7001         * config/mips/mips-protos.h (mips_output_load_label): Declare.
7002         * config/mips/mips.c (mips_output_load_label): New function.
7003         (mips_output_conditional_branch): Use it.
7004         * config/mips/mips.md (jump): And here.
7005
7006 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
7007
7008         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
7009         (xtensa_split_operand_pair): New proto.
7010         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
7011         (smalloffset_double_mem_p): Delete.
7012         (gen_float_relational, printx, print_operand, xtensa_va_arg):
7013         Fix whitespace.
7014         (xtensa_split_operand_pair): New.
7015         (xtensa_dbx_register_number): Fix formatting.
7016         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
7017         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
7018         instead of splitting them into single-word moves.  Remove unnecessary
7019         checks for reload_in_progress and reload_completed.
7020         (movdi_internal, movdf_internal): Change to post-reload split patterns.
7021         Add constraints to allow constant operands.
7022         (movsf_internal): Allow CONST_INT operands.
7023
7024 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
7025
7026         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
7027         fragment i386/x-mingw32.
7028         * config/i386/x-mingw32: New file. Make local_includedir
7029         relative to EXEC_PREFIX.
7030
7031 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
7032
7033         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
7034         (MD_STARTFILE_PREFIX): Define.
7035
7036 2003-05-27  Denis Chertykov  <denisc@overta.ru>
7037
7038         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
7039         VOIDmode.
7040         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
7041         call of cselib_invalidate_regno.
7042
7043 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
7044
7045         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
7046         -lthread to -lpthread.
7047
7048 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
7049             Bruce Korb  <bkorb@gnu.org>
7050             Arno Klaassen  <arno@heho.snv.jussieu.fr>
7051
7052         * fixinc/inclhack.def: Add missing declaration of getpagesize()
7053         to unistd.h on Solaris 2.5.1.
7054         Fix prototype of recv() and send() in sys/socket.h on
7055         Solaris 2.5.1 and 2.6.
7056         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
7057         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
7058         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
7059         * fixinc/fixincl.x: Regenerate.
7060
7061 2003-05-27  Jason Merrill  <jason@redhat.com>
7062
7063         * tree.c (expr_first, expr_length): New fns.
7064         * tree.h: Declare them.
7065
7066         * tree.c (iterative_hash_expr): Hash commutative expressions
7067         consistently.
7068
7069 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7070
7071         * tree.h (contains_placeholder_p): Now returns bool.
7072         (CONTAINS_PLACEHOLDER_P): New macro.
7073         (type_contains_placeholder_p): New function.
7074         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
7075         (contains_placeholder_p): Now returns bool.
7076         Rework to use CONTAINS_PLACEHOLDER_P macro.
7077         (type_contains_placeholder_p): New function.
7078         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
7079         type_contains_placeholder_p.
7080         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
7081         Use CONTAINS_PLACEHOLDER_P macro.
7082         * builtins.c (fold_builtin): Likewise.
7083         * calls.c (initialize_argument_information): Likewise.
7084         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7085         * explow.c (expr_size): Likewise.
7086         * expr.c (store_constructor, get_inner_reference): Likewise.
7087         * function.c (assign_parms): Likewise.
7088         * stor-layout.c (variable_size): Likewise.
7089
7090 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
7091
7092         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
7093         attribute.
7094
7095 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7096
7097         * doc/contrib.texi (Contributors): Update Kean Johnston.
7098
7099 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
7100
7101         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
7102
7103 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
7104
7105         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
7106         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
7107         Replace "GNU CC" with "GCC".
7108
7109 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
7110
7111         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
7112         intermediate computation.
7113
7114 2003-05-23  Eric Christopher  <echristo@redhat.com>
7115
7116         * config/mips/mips.md (clzsi, clzdi): New patterns.
7117
7118 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
7119
7120         * gcc.c (default_compilers): Use -o to specify preprocessor's output
7121         file.  Make -no-integrated-cpp work when building PCH files.
7122         * objc/lang-specs.h: Likewise.
7123
7124 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
7125
7126         * fixinc/Makefile.in: Correct description.
7127         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
7128         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
7129         fixinc/genfixes: Replace "GNU CC" with "GCC".
7130
7131 2003-05-23  Roger Sayle  <roger@eyesopen.com>
7132
7133         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
7134         builtin functions (and their __builtin_* variants).
7135         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
7136         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
7137         optimizing.
7138
7139         * doc/extend.texi: Document new tan and atan builtins, and
7140         their float and long double variants.
7141
7142 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7143
7144         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
7145         __sparcv9 in the TARGET_ARCH64 case.
7146
7147 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
7148
7149         * i386.c (ix86_reorg): Calls are also jumps.
7150
7151 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
7152
7153         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
7154         note containing an EXPR_LIST, process all the arguments.
7155
7156 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
7157                                Andreas Jaeger  <aj@suse.de>
7158
7159         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
7160         do not use assertion.
7161
7162 2003-05-23  Mike Stump  <mrs@apple.com>
7163
7164         * tlink.c (scan_linker_output): Add support for darwin linker, as it
7165         emits unresolved symbols one per line, consuming the entire line.
7166
7167 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
7168             Zack Weinberg <zack@codesourcery.com>
7169
7170         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
7171         * config/m68k/m68k.c (m68k_output_function_prologue):
7172         Remove code under #if NEED_PROBE.
7173         * config/m68k/m68k.h: Don't define NEED_PROBE.
7174         * config/m68k/m68k.md: Remove "probe" insn.
7175         * doc/md.texi: Remove documentation of "probe" pattern.
7176
7177 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
7178
7179         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
7180
7181 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7182
7183         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
7184         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
7185
7186 2003-05-22  Roger Sayle  <roger@eyesopen.com>
7187
7188         * real.c (real_maxval): New function to return the largest finite
7189         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
7190         * real.h (real_maxval): Prototype here.
7191         * fold-const.c (fold_inf_compare): Transform comparisons against
7192         +-Infinity into comparisons against DBL_MAX (or equivalent).
7193
7194 2003-05-22  Mike Stump  <mrs@apple.com>
7195
7196         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
7197         default.
7198
7199 2003-05-22  DJ Delorie  <dj@redhat.com>
7200
7201         * calls.c (expand_call): If the arg block is going to grow
7202         downward, we need argblock to point to the top of the block,
7203         not the bottom.
7204
7205 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7206
7207         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
7208
7209         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
7210         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
7211
7212 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7213
7214         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
7215         * m68k.c: Likewise.
7216         * m68k.h: Likewise.
7217
7218 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
7219
7220         PR other/2873
7221         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
7222         expressions to prevent triggering on recent curses.h,
7223         linux/nls.h, or X11/Xlib.h.
7224         (stdio_va_list): Add _G_va_list to bypass pattern.
7225         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
7226         * fixinc/fixincl.x: Regenerate.
7227
7228 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
7229
7230         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
7231         switches when --target-help option is specified.
7232
7233 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
7234
7235         PR bootstrap/10805
7236         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
7237         failure with Sun assembler 5.0 Alpha 03/27/98.
7238
7239 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
7240
7241         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
7242         to match system compiler convention.
7243
7244 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
7245
7246         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
7247         value, not just if defined.
7248         Update copyright year.
7249
7250 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7251
7252         PR target/6428
7253         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
7254         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
7255         option is used without `-static'.
7256         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
7257         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
7258
7259 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
7260
7261         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
7262         TARGET_SERIALIZE_VOLATILE): Delete.
7263         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
7264         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
7265         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
7266         "-mno-serialize-volatile".
7267         * config/xtensa/xtensa.c (print_operand): Remove checks of
7268         TARGET_SERIALIZE_VOLATILE.
7269         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
7270         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
7271         "-mserialize-volatile" and "-mno-serialize-volatile" options.
7272
7273 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
7274
7275         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
7276         (nested_function): Likewise.
7277         (notype_nested_function): Likewise.
7278
7279 2003-05-21  Nick Clifton  <nickc@redhat.com>
7280
7281         * config/stormy16/stormy-abi: Update overflow type for
7282         R_XSTORMY16_16 reloc.
7283
7284 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
7285
7286         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
7287         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
7288         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
7289         * print-tree.c (print_node): Remove ambient-boundedness.
7290         * tree.h (tree_common): Remove bounded_flag.
7291         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
7292         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
7293         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
7294         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
7295         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
7296         Remove.
7297         (TYPE_QUALS): Remove BOUNDED.
7298         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
7299         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
7300         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
7301         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
7302         VA_LIST_POINTER_DEPTH): Remove.
7303         (struct tree_type): Remove pointer_depth.
7304
7305 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7306
7307         * c-pretty-print.c (pp_c_integer_literal): Use
7308         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
7309
7310 2003-05-20  Roger Sayle  <roger@eyesopen.com>
7311             Kazu Hirata  <kazu@cs.umass.edu>
7312             Joern Rennecke  <joern.rennecke@superh.com>
7313
7314         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
7315         setcc and jump, if they exist.  If substituted instruction
7316         fails to validate, store current effort in a REG_EQUAL note.
7317         (cprop_insn): Don't attempt further substitutions if the
7318         current instruction has been deleted.
7319         (local_cprop_pass): Likewise.
7320
7321         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
7322         one is attached to the jump instruction.
7323         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
7324
7325 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
7326
7327         PR c++/9738
7328         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
7329         even if not first.
7330
7331 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7332
7333         * genautomata.c (output_description, output_automaton_units,
7334         output_state_arcs): Add missing specifiers.
7335
7336 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
7337
7338         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
7339         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
7340         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
7341         (nsau): Rename to do_nsau.  Provide alternate version for use when
7342         the NSAU instruction is available.
7343         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
7344         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
7345         * config/xtensa/xtensa-config.h: Update comments to match binutils.
7346         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
7347         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
7348         (TARGET_ABS, TARGET_ADDX): Define.
7349         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
7350         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
7351         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
7352         *subx8): Set predicate condition to TARGET_ADDX.
7353         (abssi2): Set predicate condition to TARGET_ABS.
7354         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
7355         "-maddx", and "-mno-addx" options.
7356         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
7357
7358 2003-05-20  Kevin Ryde <user42@zip.com.au>
7359             Wolfgang Bangerth <bangerth@dealii.org>
7360
7361         PR/10355
7362         * doc/extend.texi: Put a warning into the documentation
7363         of attribute regparm.
7364
7365 2003-05-20  Jason Merrill  <jason@redhat.com>
7366
7367         * tree.c (expr_last): New fn.
7368         * tree.h: Declare it.
7369         * objc/objc-act (expr_last): Rename to objc_expr_last.
7370
7371 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
7372
7373         * sh.c (sh_register_move_cost): Add clase for moving between
7374         FP registers and MAC registers.
7375
7376 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
7377
7378         * pa/milli64.S ($$mulI): Fix typo.
7379
7380 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
7381
7382         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
7383         (nonlocal_set_p): Remove initial blank line.
7384         * dwarf2out.c (simple_type_size_in_bits): Likewise.
7385         * et-forest.c (et_forest_create): Likewise.
7386         * explow.c (stabilize): Likewise.
7387         * fix-header.c (write_lbrac): Likewise.
7388         * graph.c (start_fct, node_data): Likewise.
7389         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
7390         * rtlanal.c (global_reg_mentioned_p): Likewise.
7391         * tree.c (bit_position): Likewise.
7392
7393 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
7394
7395         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
7396         -lthread to -lpthread.
7397
7398 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
7399
7400         * c-opts.c (c_common_decode_option): Don't accept dollars
7401         as identifier characters in assembly.
7402         * doc/cpp.texi: Document this.
7403
7404 2003-05-19  Seth Arnold  <sarnold@wirex.com>
7405             Aldy Hernandez  <aldyh@redhat.com>
7406
7407         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
7408         vrsave_size twice.
7409
7410 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
7411
7412         * doc/tm.texi (function_arg): Fix typo.
7413
7414 2003-05-19  Matt Austern  <austern@apple.com>
7415
7416         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
7417         * c-common.h (warn_invalid_offsetof): Declare.
7418         * c-common.c (warn_invalid_offsetof): Define.
7419         * doc/invoke.texi: Document -Winvalid-offsetof.
7420         * testsuite/g++.dg/other/offsetof3.C: New.
7421         * testsuite/g++.dg/other/offsetof4.C: New.
7422
7423 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
7424             David Edelsohn  <edelsohn@gnu.org>
7425
7426         * config/rs6000/rs6000.c (rs6000_alignment_string,
7427         rs6000_alignment_flags): New variables.
7428         (rs6000_parse_alignment_option): New function.
7429         (rs6000_override_options): Call it.
7430         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
7431         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
7432         macros.
7433         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
7434         natural alignment if TARGET_NATURAL_ALIGNMENT
7435         (ROUND_TYPE_ALIGN): Always use default record alignment if
7436         TAGET_NATURAL_ALIGNMENT.
7437         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
7438         (ROUND_TYPE_ALIGN): Same.
7439         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
7440         (ROUND_TYPE_ALIGN): Same.
7441         * doc/invoke.texi (Option Summary, PowerPC Options): Document
7442         new options.
7443
7444 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
7445
7446         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
7447         of a function using ASMSPEC, prepend a star.
7448
7449 2003-05-19  Jason Merrill  <jason@redhat.com>
7450
7451         * tree-inline.c (copy_body_r): Avoid generating &* during inline
7452         substitution.
7453
7454 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
7455
7456         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
7457         not mark assignments to the hard frame pointer as being stack
7458         frame related.
7459         (xstormy16_expand_epilogue): Mark adjustments to the stack
7460         pointer as being stack frame related.
7461
7462 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
7463
7464         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
7465         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
7466         (PREDICATE_CODES): Add hilo_operand.
7467         * config/mips/mips.c (hilo_operand): New predicate.
7468         (mips_adjust_insn_length): Account for the number nops that might
7469         be needed to avoid hardware hazards.
7470         * config/mips/mips.md (dslot): Remove attribute.
7471         (hazard): New attribute.
7472         (can_delay): Use it.  Check for calls, branches & jumps.
7473         (muldi3): Use the standard dmult pattern for mips16 code.
7474         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
7475
7476 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
7477
7478         * config/mips/mips-protos.h (final_prescan_insn,
7479         mips_count_memory_refs, mips_fill_delay_slot): Remove.
7480         * config/mips/mips.h (delay_type, dslots_load_total,
7481         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
7482         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
7483         mips_load_reg3, mips_load_reg4): Remove.
7484         (MASK_STATS): Remove.
7485         (MASK_EXPLICIT_RELOCS): Reuse its value.
7486         (TARGET_STATS): Remove.
7487         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
7488         Warn that -mstats is now ignored.
7489         (FINAL_PRESCAN_INSN): Undefine.
7490         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
7491         (ASM_OUTPUT_REG_POP): Likewise.
7492         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
7493         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
7494         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
7495         mips_fill_delay_slot, mips_count_memory_refs,
7496         final_prescan_insn): Remove.
7497         (output_block_move): Remove calls to mips_count_memory_refs.
7498         (print_operand): Remove printing of #nop for TARGET_STATS.
7499         (mips_output_function_epilogue): Remove TARGET_STATS code.
7500         Reorganize setting of fnnmae.
7501         * config/mips/mips.md: Remove handling of dslot statistics
7502         throughout file.  Change all fcmp patterns into normal asm
7503         templates, removing calls to mips_fill_delay_slot.
7504         * doc/invoke.texi: Remove documentation of -mstats.
7505
7506 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
7507
7508         * config/mips/mips.c (mips_class_max_nregs): Return the number of
7509         words in the mode.
7510
7511 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
7512
7513         * config/mips/mips.c (override_options): Disable explicit
7514         relocs for old ABIs unless using gas.
7515
7516 2003-05-18  Eric Christopher  <echristo@redhat.com>
7517
7518         * config/mips/mips.h: Remove definition of g_switch_value.
7519
7520 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
7521
7522         * flags.h (g_switch_value): Change to an unsigned
7523         HOST_WIDE_INT.
7524         * toplev.c (g_switch_value): Likewise.
7525
7526         * config/alpha/alpha.c (small_symbolic_operand): Remove
7527         g_switch_value cast.
7528         (alpha_in_small_data_p): Cast size to an unsigned
7529         HOST_WIDE_INT.
7530
7531         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
7532         unsigned HOST_WIDE_INT.
7533         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
7534         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
7535
7536         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
7537         unsigned HOST_WIDE_INT.
7538         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
7539         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
7540         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
7541
7542         * config/rs6000/rs6000.c (rs6000_file_start): Use
7543         HOST_WIDE_INT_PRINT_UNSIGNED.
7544         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
7545         (rs6000_elf_in_small_data_p): Cast size to unsigned
7546         HOST_WIDE_INT.
7547         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
7548         Remove.
7549         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
7550         g_switch_set.
7551         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
7552         g_switch_value cast.
7553
7554 2003-05-18  Roger Sayle  <roger@eyesopen.com>
7555             Zack Weinberg  <zack@codesourcery.com>
7556
7557         PR middle-end/10472
7558         * builtins.c (expand_builtin_memcpy):  Call force_operand on
7559         expressions and use simplify_gen_binary to create the addition.
7560
7561 2003-05-18  Andreas Schwab  <schwab@suse.de>
7562
7563         * config/m68k/m68k.md: Use define_constants for unspec numbers.
7564
7565 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
7566
7567         * config/sparc/sparc.h: Define sparc for now.
7568
7569 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
7570
7571         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
7572
7573         * config/stormy16/stormy16.h: Remove about 3000 lines of
7574         target-independent comments.  Update copyright notice.
7575
7576         * doc/collect2.texi: GNU CC -> GCC.
7577         * doc/headerdirs.texi: GNU CC -> GCC.
7578
7579 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
7580
7581         * hashtable.h (struct ht_identifier): Add data member "hash_value".
7582         * hashtable.c (ht_lookup): Use it when searching, remember.
7583         (ht_expand): Do not recompute.
7584         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
7585
7586 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
7587
7588         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
7589
7590 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
7591
7592         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
7593         Default here.
7594         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
7595         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
7596         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
7597         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
7598         config/arm/linux-elf.h, config/arm/rtems-elf.h,
7599         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
7600         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
7601         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
7602         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
7603         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
7604         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
7605         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
7606         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
7607         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
7608         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
7609         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
7610         Don't define __ELF__.
7611         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
7612         Define __ELF__.
7613         * doc/cpp.texi: Document __ELF__.
7614         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
7615
7616 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7617
7618         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
7619         always use stdarg.
7620         * c-errors.c (pedwarn_c99): Likewise.
7621         * c-format.c (status_warning): Likewise.
7622         * c-semantics.c (build_stmt): Likewise.
7623         * calls.c (emit_library_call, emit_library_call_value): Likewise.
7624         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
7625         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
7626         * diagnostic.c (build_message_string, output_printf,
7627         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
7628         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
7629         error_with_decl, fnotice): Likewise.
7630         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
7631         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
7632         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
7633         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
7634         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
7635         dw2_asm_output_encoded_addr_rtx): Likewise.
7636         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
7637         * errors.c (warning, error, fatal, internal_error): Likewise.
7638         * final.c (output_operand_lossage, asm_fprintf): Likewise.
7639         * fix-header.c (fatal): Likewise.
7640         * gcc.c (fatal, error, notice): Likewise.
7641         * gcov.c (fnotice): Likewise.
7642         * genattrtab.c (attr_rtx, attr_printf): Likewise.
7643         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
7644         * gensupport.c (message_with_line): Likewise.
7645         * mips-tfile.c (fatal, error): Likewise.
7646         * protoize.c (notice): Likewise.
7647         * ra-debug.c (ra_debug_msg): Likewise.
7648         * read-rtl.c (fatal_with_file_and_line): Likewise.
7649         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
7650         * tree.c (build, build_nt, build_function_type_list): Likewise.
7651
7652 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
7653
7654         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
7655         * gcc.c (cpp_predefines): Remove.
7656         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
7657         (static_specs): Remove predefines.
7658         * system.h: Poison CPP_PREDEFINES.
7659         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
7660         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
7661
7662 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
7663
7664         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
7665         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
7666         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
7667         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
7668
7669 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
7670
7671         PR c/9209
7672         * c-common.c, c-common.h (dollars_in_ident): Remove.
7673         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
7674         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
7675         * cpphash.h (warned_dollar): Rename warn_dollars.
7676         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
7677         Permit dollars regardless of -std=.
7678         (post_options): Set warn_dollars.
7679         * cpplex.c (forms_identifier_p): Use warn_dollars.
7680         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
7681         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
7682         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
7683         Update documentation.
7684
7685 2003-05-17  Andreas Schwab  <schwab@suse.de>
7686
7687         * config/m68k/m68k.c (m68k_output_function_prologue): Use
7688         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
7689         formatting a HOST_WIDE_INT.
7690         (m68k_output_function_epilogue): Likewise.
7691
7692 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
7693
7694         * doc/install.texi: Remove information about desupported targets.
7695
7696 2003-05-17  Andreas Schwab  <schwab@suse.de>
7697
7698         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
7699         * config/m68k/linux.h: Likewise.
7700         * config/m68k/m68k-none.h: Likewise.
7701         * config/m68k/netbsd-elf.h: Likewise.
7702         * config/m68k/sgs.h: Likewise.
7703         * config/m68k/m68k.h: Likewise.
7704         * config/m68k/m68k.md: Likewise.
7705         * config/m68k/m68k.c: Likewise.
7706         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
7707         constraints.
7708         * doc/invoke.texi (Option Summary): Remove -mfpa.
7709         (M680x0 Options): Likewise.
7710
7711 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
7712
7713         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
7714
7715 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
7716
7717         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
7718         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
7719         config/sparc/rtemself.h, config/sparc/sol2-64.h,
7720         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
7721         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
7722
7723 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
7724
7725         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
7726         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
7727
7728 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
7729
7730         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
7731         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
7732         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
7733         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
7734         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
7735         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
7736         sparc/sysv4.h,
7737         * sparc/sysv4-only.h: New.
7738
7739 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
7740
7741         * function.c (assign_parms): Check for zero size args.
7742
7743 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7744
7745         * cfgloopanal.c (test_for_iteration): Use string concatentation on
7746         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
7747         function calls into one.
7748         * dbxout.c (dbxout_symbol): Likewise.
7749         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
7750         * dwarf2asm.c (dw2_asm_output_data_uleb128,
7751         dw2_asm_output_data_sleb128): Likewise.
7752         * genrecog.c (debug_decision_2): Likewise.
7753         * loop.c (emit_prefetch_instructions): Likewise.
7754         * print-rtl.c (print_rtx): Likewise.
7755         * print-tree.c (print_node_brief, print_node): Likewise.
7756         * ra-debug.c (dump_igraph, dump_graph_cost,
7757         dump_static_insn_cost): Likewise.
7758         * ra-rewrite.c (dump_cost): Likewise.
7759         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
7760         * sreal.c (dump_sreal): Likewise.
7761         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
7762         * varasm.c (assemble_vtable_entry): Likewise.
7763
7764         * avr.c (avr_output_function_prologue,
7765         avr_output_function_epilogue, print_operand): Fix format specifier
7766         warnings.
7767         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
7768         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
7769
7770 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
7771
7772         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
7773         and ! TARGET_STRING cases.
7774
7775         * doc/cppopts.texi (-undef): Fix texinfo warning.
7776
7777         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
7778         * cppfiles.c (validate_pch): When -H is used, print some information
7779         about PCH files found.
7780
7781 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7782
7783         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
7784         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
7785         * config/mips/t-sr71k: Likewise.
7786
7787 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7788
7789         * arc.c (arc_output_function_prologue,
7790         arc_output_function_epilogue): Fix format specifier warnings.
7791         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
7792
7793         * v850.c (print_operand): Fix format specifier warnings.
7794
7795         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
7796         specifier warnings.
7797
7798         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
7799         format specifier warnings.
7800
7801         * ip2k.c (function_prologue, function_epilogue, print_operand):
7802         Fix format specifier warnings.
7803         * ip2k.md: Likewise.
7804
7805         * i960.c (i960_output_function_prologue, i960_print_operand,
7806         i960_print_operand_addr): Fix format specifier warnings.
7807
7808         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
7809         (i370_output_function_prologue): Fix format specifier warnings.
7810         * i370.h (PRINT_OPERAND): Likewise.
7811
7812         * fr30.c (fr30_print_operand): Fix format specifier warnings.
7813
7814         * dsp16xx.c (print_operand_address): Fix format specifier warning.
7815         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
7816
7817         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
7818         specifier warnings.
7819
7820         * alpha.c (print_operand_address, alpha_start_function,
7821         unicosmk_output_ssib): Use string concatentation on
7822         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
7823         function calls into one.
7824         * arm.c (arm_print_operand): Likewise.
7825         * cris.c (cris_asm_output_mi_thunk): Likewise.
7826         * frv.c (frv_asm_output_mi_thunk): Likewise.
7827         * ia64.c (ia64_print_operand, process_set): Likewise.
7828         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
7829         Likewise.
7830         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
7831         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
7832         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
7833         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
7834         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
7835         * s390.c (s390_assemble_integer): Likewise.
7836         * sparc.c (sparc_flat_function_prologue,
7837         sparc_flat_function_epilogue): Likewise.
7838         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
7839         * vax.c (vax_output_mi_thunk): Likewise.
7840
7841         * frv.c (frv_print_operand_memory_reference): Fix format specifier
7842         warning.
7843         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
7844
7845         * m68k.c (m68k_output_function_epilogue): Fix format specifier
7846         warnings.
7847
7848         * stormy16-protos.h (xs_hi_general_operand,
7849         xs_hi_nonmemory_operand): Prototype.
7850         * stormy16.c (xstormy16_output_shift): Fix format specifier
7851         warnings.
7852
7853         * cris.c: Fix format specifier warnings.
7854
7855 2003-05-16  Nick Clifton  <nickc@redhat.com>
7856
7857         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
7858
7859 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
7860
7861         * doc/bugreport.texi: Remove most of the of the preface of the
7862         bugs section.
7863
7864 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
7865
7866         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
7867         .save XX, r0.
7868
7869 2003-05-15  Roger Sayle  <roger@eyesopen.com>
7870
7871         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
7872
7873 2003-05-15  Eric Christopher  <echristo@redhat.com>
7874
7875         * cfgcleanup.c (merge_blocks): Fix return value.
7876
7877 2003-05-15 Eric Christopher <echristo@redhat.com>
7878
7879         * combine.c (expand_compound_operation): Make sure
7880         that zero_extend operation is profitable.
7881
7882 2003-05-15  Richard Henderson  <rth@redhat.com>
7883
7884         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
7885         code protected by USE_GNULIBC_1.
7886
7887 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
7888
7889         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
7890         remove hppa*-*-mpeix* which could not be built, and prune
7891         files from tmake_file= or tm_file= lists that don't exist.
7892
7893         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
7894         * config/alpha/t-interix, config/arm/conix-elf.h
7895         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
7896         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
7897         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
7898         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
7899         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
7900         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
7901         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
7902         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
7903         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
7904         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
7905         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
7906         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
7907         * config/m68k/tower-as.h, config/m68k/tower.h
7908         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
7909         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
7910         * config/m88k/m88k-protos.h, config/m88k/m88k.c
7911         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
7912         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
7913         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
7914         * config/mips/rtems64.h, config/mips/sni-gas.h
7915         * config/mips/sni-svr4.h, config/mips/t-ecoff
7916         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
7917         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
7918         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
7919         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
7920         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
7921         * config/romp/romp-protos.h, config/romp/romp.c
7922         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
7923         * config/rs6000/aix3newas.h, config/rs6000/mach.h
7924         * config/sparc/bsd.h, config/sparc/hal.h
7925         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
7926         * config/sparc/lynx.h, config/sparc/netbsd.h
7927         * config/sparc/sp86x-aout.h, config/sparc/splet.h
7928         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
7929         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
7930         * config/sparc/t-halos, config/sparc/t-sparcbare
7931         * config/sparc/t-splet, config/sparc/t-sunos41
7932         * config/v850/rtems.h: Delete file.
7933
7934 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
7935
7936         * config/rs6000/rs6000-protos.h (function_value): Protoize.
7937
7938         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
7939
7940         * config/rs6000/rs6000.c (rs6000_function_value): New.
7941
7942 2003-05-15  Philip Blundell  <philb@gnu.org>
7943
7944         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
7945         All uses updated.
7946         (arm_tune_xscale): New variable.
7947         (arm_override_options): Set it.
7948         (arm_adjust_cost): Use it in place of arm_arch_xscale.
7949         (arm_gen_load_multiple): Likewise.
7950         (arm_gen_store_multiple): Likewise.
7951         * config/arm/arm.md (is_xscale): Likewise.
7952         * config/arm/arm.h (arm_tune_xscale): Declare.
7953
7954 2003-05-15  Philip Blundell  <philb@gnu.org>
7955
7956         PR target/10730
7957         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
7958         involving invalid constants.
7959
7960 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7961
7962         * pa.c (hppa_expand_prologue): Remove blockage.
7963
7964 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
7965
7966         * doc/bugreport.texi: Remove most of the bug reporting
7967         instructions and merge them into bugs.html.
7968
7969 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
7970
7971         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7972         g_switch_value to unsigned HOST_WIDE_INT.
7973
7974 2003-05-14  Eric Christopher  <echristo@redhat.com>
7975
7976         * combine.c: Fix header comments.
7977         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
7978         to all calls and prototype.
7979
7980 2003-05-14  Roger Sayle  <roger@eyesopen.com>
7981
7982         PR optimization/10764
7983         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
7984         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
7985         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
7986         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
7987         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
7988         the corresponding *fyl2x_?fxf3 instructions.
7989
7990 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
7991
7992         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
7993         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
7994         XCHAL_HAVE_L32R): New.
7995         * config/xtensa/xtensa-protos.h (non_const_move_operand,
7996         xtensa_load_constant, xtensa_function_prologue,
7997         xtensa_function_epilogue): Delete prototypes.
7998         (xtensa_expand_prologue): New.
7999         * config/xtensa/xtensa.c (frame_size_const,
8000         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
8001         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
8002         xtensa_function_prologue): Delete.
8003         (add_operand, xtensa_mem_offset): Formatting.
8004         (move_operand): If the const16 option is available, allow any SFmode
8005         and SImode constants.
8006         (xtensa_emit_move_sequence): Inline the former contents of
8007         xtensa_load_constant with modifications to handle the const16 option.
8008         (override_options): Add xtensa_char_to_class['W'] and set it to
8009         the general register class only if the const16 option is enabled.
8010         Fix formatting.  Disallow PIC when using the const16 option.
8011         (print_operand): Reorganize to switch on "letter" instead of the
8012         RTL code.  Add output_operand_lossage calls for invalid cases.
8013         Add support for 't' and 'b' letters.
8014         (xtensa_expand_prologue): New function to replace
8015         xtensa_function_prologue and xtensa_reorg.
8016         (xtensa_function_epilogue): Declare this as static.  Delete code
8017         to print the retw.n or retw instruction.
8018         (xtensa_return_addr): Use A0_REG instead of 0.
8019         (xtensa_rtx_costs): Add costs for using the const16 option.
8020         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
8021         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
8022         (TARGET_SWITCHES): Add "const16" and "no-const16".
8023         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
8024         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
8025         using the const16 option.
8026         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
8027         (TRAMPOLINE_SIZE): Change from 49 to 59.
8028         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
8029         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
8030         when using the const16 option.
8031         (PREDICATE_CODES): Delete non_const_move_operand.
8032         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
8033         UNSPECV_ENTRY.
8034         (movdi, movdf): If the source is a constant, always expand to a
8035         sequence of movsi insns.
8036         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
8037         (movsi_internal, movsf_internal): Add alternative using const16 insns.
8038         (movsf): Add const16 support.
8039         (entry, prologue, epilogue): New.
8040         (set_frame_ptr): Add missing mode for unspec_volatile operation.
8041         Likewise for subsequent split pattern.
8042         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
8043         "-mconst16" and "-mno-const16" options.
8044
8045 2003-05-14  Richard Henderson  <rth@redhat.com>
8046
8047         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
8048         to be DImode register.  Merge load_symptr.
8049         * config/ia64/ia64.md (load_symptr): Remove.
8050
8051 2003-05-14  Richard Henderson  <rth@redhat.com>
8052
8053         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
8054         DEFERRED_CONSTANT_P.
8055         * integrate.c (copy_rtx_and_substitute): Update use.
8056         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
8057         to the copy generated.
8058         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
8059         of the constant to see if we should emit.
8060         (mark_constant): Similarly.
8061         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
8062
8063 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
8064
8065         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
8066         move record condition.
8067         (movdi_internal2): Same.
8068
8069 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
8070
8071         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
8072         (GCOV_TAG_*) Force type to gcov_unsigned_t.
8073         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
8074         (struct gcov_var): Remove modified. Add start, length, offset,
8075         overread. Have buffer array for libgcov.
8076         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
8077         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
8078         * gcov-io.c (gcov_open): Set mode, do not read anything.
8079         (gcov_close): Write final block.
8080          (gcov_write_block, gcov_allocate): New.
8081         (gcov_write_bytes): Make static. Write or allocate buffer.
8082         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
8083         null.
8084         (gcov_write_string): Adjust.
8085         (gcov_write_tag)
8086         (gcov_write_length): Adjust. Flush the block.
8087         (gcov_write_tag_length): Buffer can never be null.
8088         (gcov_read_bytes): Make static. Read in block.
8089         (gcov_sync): Moved here. Adjust.
8090         (gcov_seek): Moved here. Adjust.
8091         * coverage.c (read_counts_file): Adjust.
8092         * gcov-dump.c (print_prefix): Add position parameter.
8093         (flag_dump_positions): New flag.
8094         (options, main, print_usage): Add it.
8095         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
8096         tag_summary): Adjust.
8097         * gcov.c (read_graph_file, read_count_file): Adjust.
8098         * libgcov.c (gcov_exit): Adjust.
8099
8100         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
8101         (libgcov.a): Depend on libgcc.a.
8102         (gcov.o, gcov-dump.o): Add gcov-io.c.
8103         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
8104
8105         * loop.c (check_dbra_loop): Factor common test.
8106
8107 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
8108
8109         * doc/md.texi (Automaton pipeline description): Grammar fixes.
8110
8111 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
8112
8113         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
8114         (TARGET_INITIALIZER): Include it.
8115         * target.h (struct gcc_target): Add machine_dependent_reorg field.
8116         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
8117         * system.h: Poison MACHINE_DEPENDENT_REORG.
8118
8119         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
8120         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
8121         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8122         (alpha_handle_trap_shadows): Remove "first insn" parameter.
8123         (alpha_align_insns): Likewise.
8124         (alpha_reorg): Likewise.  Make static.  Update calls to above
8125         functions.
8126
8127         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
8128         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
8129         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8130         (arm_reorg): Remove parameter.  Make static.
8131
8132         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
8133         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
8134         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8135         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
8136         Remove parameter.
8137
8138         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
8139         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
8140         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8141         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
8142         Remove parameter.
8143
8144         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
8145         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
8146         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
8147
8148         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
8149         * config/frv/frv.c: Remove orphaned comment.
8150
8151         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
8152         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
8153         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8154         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
8155         Remove parameter.
8156
8157         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
8158         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
8159         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8160         (emit_insn_group_barriers): Remove "first insn" parameter.
8161         (emit_all_insn_group_barriers): Likewise.
8162         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
8163         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
8164
8165         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
8166         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
8167         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8168         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
8169         Remove parameter.
8170
8171         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
8172         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
8173         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8174         (m68hc11_reorg): Make static.  Remove parameter.
8175
8176         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
8177         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
8178         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8179         (conditionalize_optimization): Remove parameter.
8180         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
8181         Make static.  Update call to conditionalize_optimization.
8182
8183         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
8184         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
8185         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8186         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
8187         Make static.
8188
8189         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
8190         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
8191         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8192         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
8193         Remove parameter.
8194
8195         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
8196         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
8197         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8198         (pa_combine_instructions): Remove "first insn" parameter.
8199         (remove_useless_addtr_insns): Likewise.
8200         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
8201
8202         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
8203         commented-out definition.
8204
8205         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
8206         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
8207         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8208         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
8209         Remove parameter.
8210
8211         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
8212         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
8213         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8214         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
8215         Remove parameter.
8216         (sh_output_mi_thunk): Call sh_reorg directly.
8217         * config/sh/sh.md: Update comment.
8218
8219         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
8220         commented-out definition.
8221
8222         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
8223         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
8224         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8225         (v850_reorg): Make static.  Remove parameter.
8226
8227         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
8228         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
8229         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8230         (xtensa_reorg): Make static.  Remove parameter.
8231
8232         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
8233         (TARGET_MACHINE_DEPENDENT_REORG): Document.
8234
8235 2003-05-13  Richard Henderson  <rth@redhat.com>
8236
8237         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
8238         the old decl had instantiated DECL_RTL.
8239
8240 2003-05-13  Mike Stump  <mrs@apple.com>
8241
8242         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
8243
8244 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
8245
8246         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
8247         HOST_WIDE_INT argument.
8248
8249 2003-05-13  Jason Merrill  <jason@redhat.com>
8250
8251         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
8252
8253         * tree.c (iterative_hash_expr): New fn.
8254
8255         * c-semantics.c (emit_local_var): Don't mess with temp slots if
8256         there's no initializer.
8257
8258 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
8259
8260         * final.c (final_scan_insn): Apply the effects of frame-related
8261         delay slot insns before emitting a delayed branch.
8262
8263 2003-05-13  Nick Clifton  <nickc@redhat.com>
8264
8265         * config/mcore/mcore.md (jump): Use emit_jump_insn.
8266
8267 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8268
8269         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
8270         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
8271
8272 2003-05-12  DJ Delorie  <dj@redhat.com>
8273
8274         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
8275         (emit_push_insn): Don't use push when the source alignment is less
8276         than the stack's push rounding.
8277
8278 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
8279
8280         * diagnostic.c (output_format): Add support for %m.
8281         (output_printf, output_verbatim, diagnostic_set_info,
8282         verbatim): Set err_no field of the text_info structure being
8283         initialized.
8284         (fatal_io_error): Delete function.
8285         * diagnostic.h (text_info): Add err_no field.
8286         * toplev.h (fatal_io_error): Delete prototype.
8287
8288         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
8289         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
8290         * objc/objc-act.c: Replace all calls to fatal_io_error with
8291         calls to fatal_error; add ": %m" to the end of all the affected
8292         error messages.
8293
8294 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
8295
8296         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
8297         * rtl.h: Prototype it.
8298         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
8299         when appropriate.
8300
8301 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8302
8303         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
8304         ("*iorsi3_oi"): Likewise.
8305
8306 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
8307
8308         * arm.md (compare_scc): Use shorter sequence for EQ case.
8309         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
8310         (and_scc_scc): Ensure split only applies when there is a dominance
8311         of the comparisons.
8312         (and_scc_scc_nodom): New insn-and-split pattern.
8313
8314 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
8315
8316         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
8317         to _Unwind_SetGRPtr().
8318
8319 2003-05-13  Michael Eager <eager@mvista.com>
8320
8321         * Makefile.in: Initialize program_transform_cross_name from
8322         @program_transform_name@ instead of target_alias.
8323
8324 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
8325             Alan Modra  <amodra@bigpond.net.au>
8326             Jakub Jelinek  <jakub@redhat.com>
8327
8328         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
8329         * configure: Rebuild.
8330         * config/rs6000/rs6000-protos.h: Update.
8331         * config/rs6000/rs6000.c (rs6000_tls_size): New.
8332         (rs6000_tls_size_string): New.
8333         (rs6000_parse_tls_size_option): New.
8334         (rs6000_legitimize_tls_address): New.
8335         (rs6000_tls_get_addr): New.
8336         (rs6000_got_sym): New.
8337         (rs6000_tls_symbol_ref): New.
8338         (rs6000_tls_symbol_ref_1): New.
8339         (rs6000_get_some_local_dynamic_name): New.
8340         (rs6000_get_some_local_dynamic_name_1): New.
8341         (TARGET_HAVE_TLS): New.
8342         (TARGET_CANNOT_FORCE_CONST_MEM): New.
8343         (rs6000_override_options): Handle -mtls-size option.
8344         (constant_pool_expr_1): Handle TLS symbols.
8345         (rs6000_legitimize_address): Handle TLS symbols.
8346         (rs6000_tls_referenced_p): New.
8347         (rs6000_legitimate_address): Handle TLS symbols.
8348         (rs6000_emit_move): Handle TLS symbols.
8349         (print_operand): Handle TLS symbols.
8350         (uses_TOC): Handle TLS symbols.
8351         (rs6000_emit_prologue): Use symbol for unspec constant.
8352         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
8353         (some_ld_name): New.
8354         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
8355         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
8356         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
8357         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
8358         Support TLS.
8359         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
8360         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
8361         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
8362         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
8363         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
8364         tls_tls_64): New.
8365         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
8366
8367 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
8368
8369         * Makefile.in (stage2_build, stage3_build, stage4_build):
8370         Set BUILD_CC to the same as CC.
8371
8372 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
8373
8374         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
8375
8376 2003-05-12  Andreas Schwab  <schwab@suse.de>
8377
8378         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
8379         as unused.
8380         (bundling): Initialize 'pos'.
8381         (ia64_expand_builtin): Initialize 'rmode'.
8382
8383 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
8384
8385         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
8386         (ASM_OUTPUT_ALIGNED_COMMON): Same.
8387         (ASM_OUTPUT_LOCAL): Same.
8388
8389 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
8390
8391         * varasm.c (output_constant):  Fix underflow.
8392
8393 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
8394
8395         PR other/10745
8396         * configure.in: Correct detection of GNU ld version number.
8397         * configure: Regenerated.
8398
8399 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
8400
8401         * diagnostic.c (diagnostic_for_decl): Take a
8402         diagnostic_context argument.  Restructure to be consistent
8403         with diagnostic_report_diagnostic.
8404         (diagnostic_count_diagnostic): Now static.  Take a
8405         diagnostic_info argument, not just a diagnostic_t.  Some code
8406         moved here from internal_error.  Move a case label for
8407         clarity.
8408         (diagnostic_action_after_output): New function.  Code moved
8409         here from internal_error and fatal_error.
8410         (bug_report_request): New #define so that this text appears in
8411         only one place.
8412         (diagnostic_report_diagnostic): Update to match changes to
8413         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
8414         (diagnostic_set_info): Call gettext here.
8415
8416         (pedwarn): Update comment.  Don't call gettext here.
8417         (sorry): Use report_diagnostic.  Don't call gettext here.
8418         (fatal_error): Remove final fnotice and exit, but call
8419         real_abort to prevent warnings about noreturn function returning.
8420         (internal_error): Likewise.  Don't do ICE suppression here nor
8421         call context->internal_error.
8422         (warning_with_decl): Suppress for decls in system headers.
8423         Adjust call to diagnostic_for_decl.
8424         (pedwarn_with_decl): Likewise.
8425         (error_with_decl): Adjust call to diagnostic_for_decl.
8426         (error_recursion): Use bug_report_request.
8427
8428         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
8429         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
8430         diagnostic_count_diagnostic.
8431
8432 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8433
8434         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
8435
8436 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
8437
8438         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
8439         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
8440         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
8441
8442 2003-05-12  Roger Sayle  <roger@eyesopen.com>
8443
8444         * doc/rtl.texi: Document zero_extract as a valid destination
8445         of a set insn.
8446
8447 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
8448
8449         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
8450         '.'.  Change all local symbol definitions and references to use LSYM.
8451
8452 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
8453
8454         * expr.h (assemble_static_space): Update prototype.
8455         * output.h (assemble_zeros, output_constant): Likewise.
8456         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
8457         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
8458         it 64bit clean.
8459         * elf.h (ASM_OTUPUT_SKIP): Likewise.
8460         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
8461         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8462         Expect HOST_WIDE_INT operand.
8463         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8464         Expect HOST_WIDE_INT operand.
8465         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8466         Expect HOST_WIDE_INT operand.
8467         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
8468         HOST_WIDE_INT operand.
8469         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
8470         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
8471         * aout.h (ASM_OTUPUT_SKIP): Likewise.
8472         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
8473         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
8474         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
8475         * frv.h (ASM_OTUPUT_SKIP): Likewise.
8476         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
8477         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
8478         Make it 64bit
8479         clean.
8480         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
8481         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
8482         Make it 64bit clean.
8483         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
8484         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
8485         HOST_WIDE_INT operand
8486         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
8487         Expect HOST_WIDE_INT operand
8488         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
8489         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
8490         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
8491         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8492         Likewise.
8493         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
8494         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8495         Likewise.
8496         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8497         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8498         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
8499         ASM_OUTPUT_SKIP): Likewise.
8500         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8501         Likewise.
8502         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
8503         ASM_OUTPUT_SKIP): Likewise.
8504         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
8505         ASM_OUTPUT_SKIP): Likewise.
8506         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
8507         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
8508         ASM_OUTPUT_SKIP): Likewise.
8509         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
8510         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
8511         ASM_OUTPUT_SKIP): Likewise.
8512         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
8513         Likewise.
8514         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
8515         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
8516         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
8517         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
8518         ASM_OUTPUT_SKIP): Make it 64bit clean.
8519         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
8520         Make it 64bit clean.
8521         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
8522         ASM_OUTPUT_SKIP): Make it 64bit clean.
8523         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
8524         64bit clean.
8525         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
8526         HOST_WIDE_INT argument
8527         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
8528         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
8529         HOST_WIDE_INT argument
8530         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
8531         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
8532         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
8533         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
8534         HOST_WIDE_INT argument
8535         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
8536         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
8537         * varasm.c (asm_output_bss, asm_output_aligned_bss,
8538         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
8539         HOST_WIDE_INT argument
8540
8541 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
8542
8543         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
8544         favor of walk_tree_without_duplicates.  Add comments.
8545
8546 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
8547
8548         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
8549         (struct alloc_pool_def): New element 'id'.
8550         * alloc-pool.c (fancy_abort): Extern function prototype.
8551         (abort): Macro which uses fancy_abort.
8552         (struct allocation_object_def): New structure.
8553         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
8554         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
8555         (last_id): New variable.
8556         (create_alloc_pool): Add the offset of u.data to size of element,
8557         increase and use last_id.
8558         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
8559         (pool_alloc): Likewise. Set ID for elements.
8560         (pool_free): Check whether the PTR was allocated from POOL.
8561
8562 2003-05-11  Richard Henderson  <rth@redhat.com>
8563
8564         PR c/10675
8565         * c-decl.c: Include hashtab.h.
8566         (detect_field_duplicates): New.
8567         (finish_struct): Use it.
8568         * Makefile.in (c-decl.o): Update.
8569         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
8570         (component_decl_list, component_decl_list2,
8571         components, components_notype): Build list in reverse order.
8572         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
8573
8574         * tree.c (chainon): Special case op2 null as well.
8575         Reorg for clarity.
8576
8577 2003-05-11  Roger Sayle  <roger@eyesopen.com>
8578
8579         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
8580         to implement log, logf and logl built-ins as inline x87 intrinsics.
8581         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
8582         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
8583         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
8584
8585         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
8586         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
8587
8588 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8589
8590         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
8591
8592         * sparc.c (print_operand): Fix uninitialized warning.
8593
8594 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8595
8596         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
8597         real insns.
8598         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
8599         condition.
8600
8601 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
8602
8603         * doc/cpp.texi: Fix typos.
8604
8605 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
8606
8607         * config/s390/s390.c (s390_function_arg_float): New function.
8608         (s390_function_arg_pass_by_reference): Use it.
8609         (s390_function_arg_advance): Likewise.
8610         (s390_function_arg): Likewise.
8611         (s390_va_arg): Likewise
8612
8613 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
8614
8615         * coverage.h (coverage_counter_alloc): New function.
8616         * function.h (struct function): Remove arc_profile flag.
8617         * coverage.c (fn_ident): Remove.
8618         (fn_b_ctrs, no_coverage): New.
8619         (get_coverage_counts): Use current_function_funcdef_no.
8620         (coverage_counter_alloc): New.
8621         (coverage_counter_ref): Adjust.
8622         (coverage_begin_output): Check no_coverage. Use
8623         current_function_funcdef_no.
8624         (coverage_end_function): Likewise.
8625         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
8626         than clearing flag_inline_functions. Do not clear arc_profile
8627         flag.
8628         * function.c (prepare_function_start): Do not set arc_profile
8629         flag.
8630         * profile.c (instrument_edges): Return number of instrumented
8631         edges. Use a for loop.
8632         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
8633         local to here and simplify. Use profile_arc_flag not arc_profile
8634         flag.
8635         (find_spanning_tree): Reformat.
8636         * toplev.c (rest_of_compilation): Use profile_arc_flags and
8637         flag_test_coverage rather than arc_profile flag.
8638
8639 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
8640
8641         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
8642
8643 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8644
8645         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
8646
8647 2003-05-11  Bruno Haible  <bruno@clisp.org>
8648
8649         * cppfiles.c (find_or_create_entry): Preserve errno.
8650
8651 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
8652
8653         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
8654         cpplib as it's a Standard Predefined Macro.
8655         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
8656         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
8657         __STDC_HOSTED__ appropriately.
8658         * cpplib.h (_cpp_init_builtins): Update.
8659         * fix-header.c (read_scan_file): Update.
8660         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
8661
8662 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8663
8664         PR C++/689
8665         PR C++/9257
8666         * c-opts.c (c_common_decode_option): Don't set
8667         warn_ctor_dtor_privacy wen -Wall.
8668         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
8669
8670 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
8671
8672         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
8673         patch.
8674
8675 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
8676
8677         * diagnostic.c: Reorder functions for clarity, putting all the
8678         functions in the "error" family next to each other, and
8679         likewise all the functions in the "error_with_decl" family.
8680         Some other routines were moved too.  Add comments.
8681         (vbuild_message_string): Fold into sole caller.
8682
8683
8684 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
8685
8686         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
8687         (EH_RETURN_HANDLER_RTX): Likewise.
8688         (expand_builtin_eh_return): Do not copy stack adjustment
8689         if EH_RETURN_STACKADJ_RTX is not defined.
8690         (expand_eh_return): Likewise.  Also, do not pass stack
8691         adjustment as argument to the eh_return pattern.
8692         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
8693         because EH_RETURN_STACKADJ_RTX is not defined.
8694         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
8695         is not defined, treat stack pointer like a regular register.
8696         (uw_init_context_1): Set up fake initial stack pointer register.
8697         (uw_install_context_1): Do not compute stack adjustment if
8698         EH_RETURN_STACKADJ_RTX is not defined.
8699
8700         * config/i386/i386.md ("eh_return"): Remove first argument.
8701         * config/mips/mips.md ("eh_return"): Likewise.
8702         * config/rs6000/rs6000.md ("eh_return"): Likewise.
8703         * config/sh/sh.md ("eh_return"): Likewise.
8704
8705         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
8706
8707 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
8708
8709         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
8710
8711 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
8712
8713         * defaults.h (GCOV_TYPE_SIZE): Remove.
8714         * gcov-io.h (gcov_type): Set to specific mode int on target.
8715         (gcov_unsigned_t, gcov_position_t): New.
8716         (GCOV_TYPE_NODE): New.
8717         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
8718         (GCOV_COUNTERS_SUMMABLE): New.
8719         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
8720         gcov_ctr_info, gcov_info): Adjust types.
8721         (gcov_var): Adjust types.
8722         (gcov_write_unsigned, gcov_write_tag,
8723         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
8724         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
8725         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
8726         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
8727         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
8728         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
8729         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
8730         __gcov_init, __gcov_merge_add): Adjust gcov types.
8731         * coverage.c (ctr_merge_functions): Constify.
8732         (ctr_names): New.
8733         (read_counts_file): Adjust gcov types. Only summarize & merge
8734         summable counters.
8735         (coverage_counter_ref): Use GCOV_TYPE_NODE.
8736         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
8737         build_ctr_info_value, build_gcov_info): Adjust types.
8738         * profile.c (branch_prob): Adjust gcov types.
8739         * gcov_dump (dump_file): Adjust gcov types.
8740
8741 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
8742
8743         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
8744         constants.
8745         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
8746         * arm.c (arm_select_dominance_cc_mode): Renamed from
8747         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
8748         Callers updated.
8749         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
8750
8751 2003-05-09  Roger Sayle  <roger@eyesopen.com>
8752
8753         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
8754         as unsigned to avoid signed/unsigned comparison warnings.
8755
8756 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
8757
8758         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
8759         instruction if the Xtensa density option is enabled.
8760
8761 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
8762
8763        * mklibgcc.in: Remove extra quotes.
8764
8765 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
8766
8767         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
8768         of int_ftype_void.
8769
8770 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
8771
8772         * reload1.c (reload_cse_move2add): Don't turn an implicit
8773         truncation into a self-set in the narrow mode.
8774
8775 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
8776
8777         * arm.md (clzsi2): The CLZ instruction is predicable.
8778
8779 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
8780
8781         * config/xtensa/xtensa.c: Formatting.
8782
8783 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
8784
8785         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
8786         instead of TREE_OPERAND to access the operand of a
8787         CONSTRUCTOR node.
8788
8789 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
8790
8791         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
8792         one operand.
8793
8794 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
8795
8796         * toplev.h (warning_with_file_and_line): Don't declare.
8797         (error_with_file_and_line): Likewise.
8798         * diagnostic.c (error_with_file_and_line): Remove.
8799         (warning_with_file_and_line): Likewise.
8800
8801 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
8802
8803         * c-parse.in (if_stmt_locus): New object.
8804         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
8805         (select_or_iter_stmt rule): Likewise.
8806         (if_stmt_file): Remove.
8807         (if_stmt_line): Likewise.
8808         * jump.c: include "diagnostic.h"
8809         (never_reached_warning): Don't use warning_with_file_and_line.
8810         * Makefile.in (jump.o): Add dependce on diagnostic.h
8811
8812 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
8813
8814         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
8815         Move code handling pieces not larger than a word to..
8816         * function.c (assign_parms): ..here, but use change_address instead
8817         of adjust_address and operand_subword, and expand_binop instead of
8818         expand_shift.  Adjust calls to move_block_from_reg.
8819         * expr.h (move_block_from_reg): Update declaration.
8820         (copy_blkmode_from_reg): Formatting.
8821         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
8822         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
8823         move_block_from_reg calls.
8824         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
8825         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
8826         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8827         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
8828         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
8829         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
8830         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
8831         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
8832         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
8833
8834 2003-05-08  DJ Delorie  <dj@redhat.com>
8835
8836         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
8837         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
8838         variable-sized types).
8839         (xstormy16_function_arg): New.  Pass them that way too.
8840         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
8841         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
8842
8843 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
8844
8845         * mklibgcc.in: Use mkinstalldirs when installing multilib
8846         directories.
8847
8848 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
8849
8850         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
8851         instead of CODE_FOR_jump
8852
8853 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
8854
8855         * objc/objc-act.c (error_with_ivar): Don't use
8856         error_with_file_and_line.
8857         (warn_with_method): Don't use warning_with_file_and_line.
8858
8859 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8860
8861         * stmt.c (emit_locus): New macro.
8862         (emit_filename): Remove.
8863         (emit_lineno): Likewise.
8864         (struct stmt_status): Replace members x_emit_filename and
8865         x_emit_lineno with x_emit_locus.
8866         (set_file_and_line_for_stmt): Adjust.
8867         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
8868         (warn_if_unused_value): Likewise.
8869         (check_seenlabel): Likewise.
8870
8871 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8872
8873         * c-decl.c (define_label): Tidy.  Don't use any of
8874         error_with_file_and_line or warning_with_file_and_file.
8875         (pending_xref_error): Likewise.
8876         (store_parm_decls): Likewise.
8877         (current_function_prototype_locus): New object.  Package from
8878         current_function_prototype_file and current_function_prototype_line.
8879         (start_function): Use it.
8880         (current_function_prototype_file): Remove.
8881         (current_function_prototype_line): Remove;
8882
8883 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8884
8885         * builtins.c (readonly_data_expr): New function.
8886         (expand_builtin_memmove): Optimize any rodata source, not just
8887         strings.
8888
8889 2003-05-07  David Mosberger <davidm@hpl.hp.com>
8890
8891         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
8892
8893 2003-05-07  Richard Henderson  <rth@redhat.com>
8894
8895         * config/i386/i386.c (ix86_split_long_move): Fix base register
8896         mode for XFmode splits for TARGET_64BIT.
8897
8898 2003-05-07  Richard Henderson  <rth@redhat.com>
8899
8900         * sched-ebb.c (schedule_ebb): Supply the correct starting
8901         block number to save_line_notes.
8902
8903 2003-05-07  Richard Henderson  <rth@redhat.com>
8904
8905         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
8906         (dump_file): Likewise.
8907
8908 2003-05-07  David Mosberger <davidm@hpl.hp.com>
8909
8910         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
8911         forget to preserve gp.
8912         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
8913
8914         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
8915         .prologue directive.
8916         Use .skip instead of data8 for .bss section to make Intel
8917         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
8918         explicit in the .mib bundles and remove the unnecessary stop
8919         bits.  Replace local labels with normal labels, to make ias
8920         happy.  Don't register __do_global_ctors_aux here, do it in
8921         crtend.asm instead.
8922
8923         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
8924         __do_global_ctors_aux in .init_array section instead of
8925         declaring it as a hidden global.  Replace local labels with
8926         ordinary labels to make ias happy.
8927
8928 2003-05-07  Richard Henderson  <rth@redhat.com>
8929
8930         PR c++/10570
8931         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
8932         * flags.h, toplev.c, doc/invoke.texi: Likewise.
8933
8934         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
8935         * unwind.inc (_Unwind_DeleteException): Check for null
8936         exception_cleanup.
8937
8938         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
8939         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
8940         * unwind.h: Declare them.
8941         * libgcc-std.ver (GCC_3.3): Export them.
8942
8943 2003-05-07  Richard Henderson  <rth@redhat.com>
8944
8945         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
8946         not _Unwind_Word.
8947
8948 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
8949
8950         * stmt.c (force_label_rtx): New function, based on logic
8951         formerly found in expand_expr.
8952         * expr.h: Prototype it.
8953         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
8954         appropriate.
8955         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
8956
8957         * print-tree.c (debug_tree): Free the table after we're done
8958         with it.  Use putc.
8959
8960 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
8961
8962         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
8963         Unreverse arguments for __ev_subw.
8964
8965         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
8966
8967 2003-05-07  Nick Clifton  <nickc@redhat.com>
8968
8969         * config/stormy16/stormy-abi: Update to include
8970         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
8971         R_XSTORMY16_12 relocs.
8972
8973 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
8974
8975         * function.c (assign_parms): Correct reversed reg_parm_stack_space
8976         test.  Add partial in-regs size to stack_args_size.
8977
8978 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8979
8980         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
8981         as a C only option.
8982
8983 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
8984
8985         * gcov-io.h (GCOV_LOCKED): New #define.
8986         (GCOV_LINKAGE): Make sure it is #defined.
8987         (gcov_write_string, gcov_write_tag, gcov_write_length,
8988         gcov_read_string, gcov_time): Poison in libgcov.
8989         (gcov_seek_end): Remove.
8990         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
8991         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
8992         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
8993         GCOV_TAG_SUMMARY_LENGTH): New #defines.
8994         (gcov_write_tag, gcov_write_length): Not in libgcov.
8995         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
8996         (gcov_write_tag, gcov_write_length): Not in libgcov.
8997         (gcov_write_tag_length): New.
8998         (gcov_write_summary): Use gcov_write_tag_length.
8999         * libgcov.c: Always #include gcov-io.h.
9000         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
9001         (GCOV_LINKAGE): Define to nothing for L_gcov.
9002         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
9003         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
9004         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
9005         (read_count_file): Likewise.
9006         * gcov-dump.c (dump_file): Likewise.
9007         * coverag.c (read_counts_file): Likewise.
9008
9009 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
9010
9011         PR other/10658
9012         * gcc.c (process_command): Update copyright date.
9013
9014 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
9015
9016         * doc/install.texi (mips-*-*):  Add note about libstdc++.
9017
9018 2003-05-06  DJ Delorie  <dj@redhat.com>
9019
9020         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
9021         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
9022         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
9023
9024 2003-05-06    <neil@cat.daikokuya.co.uk>
9025
9026         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
9027         and -Wstrict-prototypes if C++.
9028
9029 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
9030
9031         * config/rs6000/linuxspe.h: New file.
9032
9033         * config.gcc: Add powerpc-*-linux-gnuspe* target.
9034
9035 2003-05-06  Richard Henderson  <rth@redhat.com>
9036
9037         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
9038         previous frame didn't save sp.  Clear sp for next frame.
9039         (uw_install_context_1): Honor saved sp from frame.
9040
9041 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
9042
9043         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
9044         (mips_move_1word, mips_move_2words): Remove declaration.
9045         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
9046         (mips_restore_gp): Remove insn argument.
9047         * config/mips/mips.h (FP_REG_RTX_P): New macro.
9048         * config/mips/mips.c (volatile_buffer): Remove.
9049         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
9050         (mips_move_1word, mips_move_2words): Remove, replacing with...
9051         (mips_output_move): ...this new function.
9052         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
9053         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
9054         handling of floating-point constants.  Handle zero CONST_DOUBLE
9055         arguments.
9056         (mips_annotate_frame_insn): Replace with...
9057         (mips_set_frame_expr): ...this, which just takes one argument.
9058         (mips_frame_set): Change the register argument to an rtx.
9059         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
9060         check whether moves should be split.  Use mips_split_64bit_move
9061         to split them.  Use mips_subword to generate the high and low
9062         parts of a paired FPR.  Adjust calls to frame_set and
9063         mips_set_frame_expr.
9064         (mips_expand_prologue): Simplify due to above changes.
9065         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
9066         targets, replacing xisting register-only versions.
9067         (UNSPEC_STORE_DF_HIGH): New unspec.
9068         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
9069         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
9070         (*paradoxical_extendhidi2): Remove.
9071         (movdi_internal, movdi_internal2): Use mips_output_move.
9072         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
9073         (movsf_internal1, movsf_internal2): Likewise.
9074         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
9075         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
9076         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
9077         Add m <- G alternative.
9078         (load_df_low, load_df_high, store_df_low): New patterns.
9079         (movhi_internal): Use @ template instead of calling a function.
9080         Remove unnecessary 'z' alternatives.
9081         (movqi_internal): Likewise.
9082         (exception_receiver): Update call to mips_restore_gp.
9083
9084 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
9085
9086         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
9087         (mips_delegitimize_address): Declare.
9088         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
9089         (FIND_BASE_TERM): Define.
9090         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Defi~e.
9091         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
9092         Handle small-data addresses.
9093
9094 2003-05-05  Roger Sayle  <roger@eyesopen.com>
9095
9096         * real.c (real_powi): New function to calculate the value of
9097         a real raised to an integer power, i.e. pow(x,n) for int n.
9098         (real_sqrt): Convert to using the faster do_add, do_multiply
9099         and do_divide API for consistency with the rest of real.c.
9100         * real.h (real_powi): Prototype here.
9101         * builtins.c (fold_builtin):  Avoid local variable mode when
9102         evaluating sqrt at compile time.  Attempt to evaluate pow at
9103         compile-time, by checking for an integral exponent.
9104
9105 2003-05-05  Richard Henderson  <rth@redhat.com>
9106
9107         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
9108
9109 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
9110
9111         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
9112         other FreeBSD ports.
9113         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
9114         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
9115
9116 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
9117
9118         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
9119         expanded variables.
9120         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
9121
9122 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
9123
9124         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
9125         * varasm.c (struct varasm_status): Add deferred_constants field.
9126         (n_deferred_strings): Delete variable.
9127         (n_deferred_constants): New #define.
9128         (struct constant_descriptor_tree): Kill next and label fields.
9129         (const_hash_table, MAX_HASH_TABLE): Delete.
9130         (const_desc_htab): New static variable.
9131         (const_hash): Rename const_desc_hash, and make it fit the
9132         hashtab.h interface.
9133         (const_desc_eq): New.
9134         (const_hash_1, compare_constant): Const-ify arguments.
9135         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
9136         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
9137         (output_constant_def): Do the lookup/insert using the
9138         hashtab.h interface.  Don't muck with n_deferred_constants or
9139         DEFERRED_CONSTANT_P here.
9140         Always call maybe_output_constant_def_contents.
9141         (maybe_output_constant_def_contents): Take a pointer to the
9142         descriptor, not the EXP and RTL separately.  Return
9143         immediately if this constant is not deferred.  Defer output of
9144         everything, except writable string constants.  Update
9145         n_deferred_constants here.
9146         (output_constant_def_contents): Now takes just one argument,
9147         an rtx.  Clear DEFERRED_CONSTANT_P here.
9148         (mark_constant_pool): Update for rename of n_deferred_strings.
9149         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
9150
9151         (init_varasm_status): Clear p->deferred_constants.
9152         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
9153
9154 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9155
9156         * builtins.c (expand_builtin_stpcpy): Only expand when the length
9157         of the source string can be evaluated at compile-time.
9158
9159 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9160
9161         * testsuite/gcc.c-torture/compile/simd-6.c: New.
9162
9163         * c-typeck.c (digest_init): Handle arrays of vector constants.
9164
9165 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
9166
9167         * builtins.c (expand_builtin_mempcpy): New function.
9168         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
9169         ignored into strcpy no matter what arguments it has.
9170         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
9171         expand_builtin_mempcpy.
9172
9173 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9174
9175         * testsuite/gcc.dg/20030505.c: New.
9176
9177         * c-typeck.c (convert_for_assignment): Opaque pointers can
9178         interconvert.
9179
9180         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
9181         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
9182         (spe_init_builtins): Rename all pv2si_type_node to
9183         opaque_p_V2SI_type_node.
9184         Remove declaration of pv2si_type_node.
9185         (is_ev64_opaque_type): Accept opaque pointers.
9186
9187 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
9188
9189         * config/rs6000/rs6000.c (validate_condition_mode): Use
9190         flag_finite_math_only.
9191         (rs6000_reverse_condition): Never return UNKNOWN; use
9192         flag_finite_math_only.
9193         (rs6000_generate_compare): Use flag_finite_math_only.
9194         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
9195         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
9196         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
9197
9198         * toplev.c (check_global_declarations): Suppress not-used warning
9199         for volatile variables.
9200
9201 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
9202
9203         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
9204         usage of bitfield instructions for mode1 != BLKmode, only ignoring
9205         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
9206         (store_field): Likewise.
9207
9208 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9209
9210         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
9211         evsubifw to builtins accepting 5-bit unsigned constants.
9212         (easy_vector_constant): Return if V1DImode.  Fix typo.
9213
9214 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9215
9216         * config/rs6000/spe.h: Revert licensing change from last patch.
9217
9218 2003-05-05  DJ Delorie  <dj@redhat.com>
9219
9220         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
9221         before reload, but defer the split until after.
9222         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
9223         to match.
9224
9225 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
9226
9227         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
9228         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
9229
9230 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9231
9232         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
9233         is defined.
9234
9235 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9236
9237         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
9238         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
9239         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
9240
9241         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
9242         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
9243         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
9244         New.
9245
9246         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
9247         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
9248
9249         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
9250         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
9251         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
9252         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
9253         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
9254         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
9255         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
9256         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
9257         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
9258         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
9259         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
9260         BUILT_IN_STRDUP): Add "nonnull" attribute.
9261
9262 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9263
9264         * expr.c (store_field): Don't clobber TEMP in shift: it might be
9265         a variable.
9266         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
9267         whose purpose is to step up the alignment.
9268         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
9269
9270         * stor-layout.c (compute_record_mode): Relax restriction
9271         on fields crossing word boundaries forcing BLKmode.
9272
9273 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
9274
9275         * cppinit.c (cpp_create_reader, post_options): Warn about
9276         trigraphs unless explicity set or -trigraphs.
9277         * cpplex.c (warn_in_comment): New.
9278         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
9279         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
9280         * doc/cppopts.texi, doc/cpp.texi: Update.
9281
9282 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9283
9284         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
9285         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
9286         namespace clash.
9287         (GCOV_MERGE_FUNCTIONS): New.
9288         (gcov_merge_fn): Declare.
9289         (struct gcov_ctr_info): New field "merge".
9290         (__gcov_merge_add): Declare.
9291         * coverage.c (ctr_merge_functions): New.
9292         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
9293         of gcov_ctr_info type.
9294         * libgcov.c (__gcov_merge_add): New.
9295         (gcov_exit): Call a hook to merge values of counters.
9296
9297 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
9298
9299         * toplev.h (pedwarn_with_file_and_line): Don't declare.
9300         * diagnostic.c (pedwarn_with_file_and_line): Remove.
9301
9302 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9303
9304         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
9305
9306 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9307
9308         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
9309         expand_builtin_frame_address): Update prototypes.
9310         (expand_builtin_constant_p, expand_builtin_strlen,
9311         expand_builtin_strcpy, expand_builtin_memset,
9312         expand_builtin_bzero, expand_builtin_args_info,
9313         expand_builtin_frame_address): Pass in just the argument(s)
9314         needed, not the entire expression `exp'.
9315         (expand_builtin): Update all calls to these functions.
9316
9317 2003-05-03  Richard Henderson  <rth@redhat.com>
9318
9319         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
9320         <BUILT_IN_DWARF_SP_COLUMN>: New.
9321         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
9322         (BUILT_IN_DWARF_SP_COLUMN): New.
9323         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
9324         (expand_builtin_dwarf_sp_column): New.
9325         * except.h: Update to match.
9326         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
9327         (execute_cfa_program): Record location expression address
9328         before extracting length.
9329         (uw_update_context_1): Install old CFA into stack pointer column.
9330         (uw_init_context_1): Set cfa_reg to stack pointer column.
9331
9332 2003-05-03  Richard Henderson  <rth@redhat.com>
9333
9334         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
9335         return bool.
9336         (toc_relative_expr_p): Likewise.
9337         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
9338         (legitimate_constant_pool_address_p): Move from rs6000.h, change
9339         into a function, downcase all users.
9340         (legitimate_small_data_p): Likewise.
9341         (legitimate_offset_address_p): Likewise.
9342         (legitimate_indexed_address_p): Likewise.
9343         (legitimate_indirect_address_p): Likewise.
9344         (legitimate_lo_sum_address_p): Likewise.
9345         (rs6000_mode_dependent_address): Likewise.
9346         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
9347         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
9348         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
9349         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
9350         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
9351         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
9352         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
9353         * config/rs6000/rs6000-protos.h: Update.
9354
9355 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
9356
9357         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
9358         (REVERSE_CONDITION): Define.
9359
9360         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
9361         to branch_positive_comparison_operator.
9362         (ccr_bit): Check that sCOND conditions are actually a positive bit.
9363         (print_operand): Remove %D substitution.
9364         (rs6000_emit_sCOND): Generate complement operation to ensure that
9365         sCOND input is a positive bit.
9366         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
9367         same order as bCOND, and add the missing ones.  Remove the %D
9368         substitutions from the scc patterns.
9369
9370         * simplify-rtx.c (simplify_relational_operation): Add case for
9371         ! (fabs(x) < 0.0).
9372
9373 2003-05-03  Bruce Korb  <bkorb@gnu.org>
9374
9375         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
9376         in fixincl.x
9377         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
9378
9379 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
9380
9381         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
9382
9383 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
9384
9385         PR c/10604
9386         * c-common.c (warn_sign_compare): Initialize to -1.
9387         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
9388         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
9389         for C++ only.
9390         (c_common_post_options): Set warn_sign_compare from extra_warnings
9391         if it's still -1 at this point.
9392
9393         * toplev.c (maybe_warn_unused_parameter): New static variable.
9394         (set_Wextra): New static function.
9395         (W_options): Remove "extra".
9396         (decode_W_option): Call set_Wextra.
9397         (independent_decode_option): Likewise.
9398         (set_Wunused): Cooperate with set_Wextra in setting
9399         warn_unused_parameter.
9400         (rest_of_compilation): No need to check extra_warnings as
9401         well as warn_uninitialized.
9402
9403         * c-typeck.c (build_binary_op, build_conditional_expr):
9404         No need to check extra_warnings as well as warn_sign_compare.
9405         (internal_build_compound_expr): No need to check extra_warnings
9406         as well as warn_unused_value.
9407         * function.c (expand_function_end): No need to check extra_warnings
9408         as well as warn_unused_parameter.
9409         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
9410         as well as warn_unused_value.
9411
9412         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
9413
9414         * Makefile.in: Disable -Werror for gengtype-lex.o.
9415
9416 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
9417
9418         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
9419         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
9420         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
9421         * calls.c (emit_call_1): Likewise.
9422         (expand_call): For calls initializing constant memory, replace
9423         emission of standalone mem /u clobber with function usage entry.
9424         * expr.c (emit_block_move_via_libcall): Likewise.
9425         * cse.c (count_reg_usage, case EXPR_LIST): New case.
9426         * flow.c (propagate_one_insn): Pass entire operand of
9427         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
9428         * integrate.c (try_constants): For CALL_INSNs, substitute constants
9429         within the FUNCTION_USAGE also.
9430         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
9431         FUNCTION_USAGE lists.
9432         * reload1.c (replace_pseudos_in): Renamed.
9433         (reload): Use it for clobbers surviving until the end of the reload.
9434
9435 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9436
9437         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
9438         gen_lowpart on non-integer modes.
9439
9440         * stor-layout.c (place_field): When adjusting offset_align, use
9441         desired_align, not DECL_ALIGN.
9442
9443 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
9444
9445         * c-decl.c (pending_invalid_xref_file): Remove.
9446         (pending_invalid_xref_line): Remove.
9447         (pending_invalid_xref_location): New.
9448         (lookup_label): Use location_t and input_location directly.
9449         (lookup_tag): Likewise.
9450         (pending_xref_error): Likewise.
9451         (c_expand_body_1): Likewise.
9452         * c-common.c (x_expand_start_cond): Likewise.
9453         * c-semantics.c (genrtl_for_stmt): Likewise.
9454         (find_reachable_label): Likewise.
9455         * expr.c (expand_expr): Likewise.
9456         * integrate.c (output_inline_function): Likewise.
9457         * tree-inline.c (find_alloca_call): Likewise.
9458         (find_builtin_longjmp_call): Likewise.
9459         * gcc.c (input_filename): Make static.
9460
9461 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
9462
9463         * config/mips/mips.md: Fix comment typo.
9464
9465         * config/mips/mips.c (mips_integer_op): New structure.
9466         (MIPS_MAX_INTEGER_OPS): Define.
9467         (mips_const_insns): Use mips_build_integer to determine the number
9468         of instructions needed to load a CONST_INT.
9469         (move_operand): Reject compound CONST_INTs.
9470         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
9471         (mips_move_integer): New fn.
9472         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
9473         (mips_legitimize_move): Only legitimize constants when moving
9474         word or subword values.
9475
9476 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
9477
9478         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
9479
9480 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9481
9482         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
9483         modifying it.
9484
9485 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
9486             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9487
9488         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
9489         Hernandez, and Kazu Hirata.  Update Richard Henderson.
9490
9491 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
9492
9493         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
9494         to tentative declaration.
9495
9496         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
9497         (SYMBOL_FLAG_SMALL_V4): Delete.
9498         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
9499         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
9500         (rs6000_elf_in_small_data_p): Add extra section names.  Add
9501         comment about TREE_PUBLIC test.
9502
9503         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
9504         expand_stmt on result of expand_unreachable_stmt.
9505
9506 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9507
9508         * doc/contrib.texi (Contributors): Add Daniel Berlin.
9509
9510 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
9511
9512         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
9513         number of automata.
9514
9515         * config/rs6000/rs6000.c (symbol_ref_operand): Check
9516         SYMBOL_REF_FUNCTION_P on AIX.
9517         (current_file_function_operand): Same.
9518         * config/rs6000/rs6000.md (call,call_value): Force non-function
9519         symbol_ref into register on AIX.
9520
9521 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
9522
9523         * calls.c (struct arg_data): Move offset, slot_offset, size and
9524         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
9525         (initialize_argument_information): Adjust call to locate_and_pad_parm.
9526         Delete alignment_pad var.  Don't calculate slot_offset here.
9527         (emit_library_call_value_1): Delete alignment_pad, offset and size
9528         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
9529         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
9530         partial in-regs here.  Formatting fixes.
9531         * expr.h (struct locate_and_pad_arg_data): New struct.
9532         (locate_and_pad_parm): Adjust declaration.
9533         * function.c (assign_parms): Localize vars.  Use "locate" instead of
9534         other arg location vars.  Don't invoke FUNCTION_ARG or
9535         FUNCTION_INCOMING_ARG unless pretend_named is different from
9536         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
9537         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
9538         Use slot_offset for stack home of reg parms.  Correct test for
9539         parm passed in memory.  Formatting fixes.
9540         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
9541         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
9542         Correct initial_offset_ptr handling.  Localize vars.  Always pad
9543         locate->offset even when in_regs.
9544
9545 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
9546
9547         * Makefile.in (TREE_H): Replace location.h with input.h.
9548         (GTFILES) Remove location.h
9549         (gt-lists.h): Replace gt-location.h with gt-input.h
9550         * input.h (input_filename, input_line): Remove variables.
9551         (location_s, location_t): Move from location.h.
9552         (input_location): New.
9553         (input_filename, input_line): New #defines.
9554         * location.h: Remove.
9555         * tree.h: Replace location.h with input.h.
9556         (input_filename, input_line): Remove.
9557         * diagnostic.h: Replace location.h with input.h.
9558         * gcc.h (input_filename, input_filename_length): Remove declarations.
9559         * toplev.c (input_filename, input_line): Remove.
9560         (input_location): Define.
9561         (push_srcloc, pop_srcloc): Adjust.
9562         * diagnostic.c (diagnostic_report_current_module): Adjust.
9563
9564 2003-05-02  Nick Clifton  <nickc@redhat.com>
9565
9566         * configure.in: Add xstormy16 to list of targets that has a nop
9567         instruction and hence which can be tested to see if the
9568         assembler supports the --gdwarf2 switch.
9569         * configure: Regenerate.
9570
9571 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
9572
9573         PR target/8257
9574         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
9575         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
9576         Avoid undefined shifts by making the shift operand unsigned.
9577
9578 2003-05-01  DJ Delorie  <dj@redhat.com>
9579
9580         * reload.c (find_reloads): Also check that all of a multi-reg
9581         value is in the class.
9582
9583 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
9584
9585         * scan.h (lineno): Revert the rename here.
9586
9587 2003-05-01  Stan Shebs  <shebs@apple.com>
9588
9589         * config/darwin.c (darwin_encode_section_info): Call
9590         default_encode_section_info.
9591
9592 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
9593
9594         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
9595         (movsi_internal1): Use new mfjmpr attribute.
9596         (movhi_internal): Same.
9597         (movqi_internal): Same.
9598         (movcc_internal1): Same.
9599         (movdi_internal64): Same.
9600         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
9601         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
9602         * config/rs6000/40x.md: Add fpu_405.
9603         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
9604         into power4misc automata.  Remove extraneous parentheses.
9605         * config/rs6000/440.md: New file.
9606         * config/rs6000/rs6000.c (processor_target_table): Add 440,
9607         440fp.  Rename 405f to 405fp.
9608         (function_arg_padding): Correct formatting.
9609         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
9610
9611 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
9612
9613         * input.h (lineno): Rename to ...
9614         (input_line): ... here.
9615         * tree.h (lineno): Rename to ...
9616         (input_line): ... here.
9617         * scan.h (lineno): Rename to ...
9618         (input_line): ... here.
9619         * toplev.c (lineno): Rename to ...
9620         (input_line): ... here.
9621         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
9622         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
9623         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
9624         store_parm_decls, c_expand_body_1): Likewise.
9625         * c-errors.c (pedwarn_c99): Likewise.
9626         * c-format.c (status_warning): Likewise.
9627         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
9628         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
9629         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
9630         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
9631         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
9632         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
9633         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
9634         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
9635         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
9636         * coverage.c (create_coverage): Likewise.
9637         * diagnostic.c (pedwarn, sorry, error, fatal_error,
9638         internal_error, warning, diagnostic_report_current_module,
9639         inform): Likewise.
9640         * expr.c (expand_expr): Likewise.
9641         * integrate.c (expand_inline_function,
9642         output_inline_function): Likewise.
9643         * rtl-error.c (file_and_line_for_asm): Likewise.
9644         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
9645         walk_tree): Likewise.
9646         * tree.c (make_node): Likewise.
9647         * ada, cp, f, java, objc, treelang: Likewise.
9648         * objc/objc-act.c (objc_init): Rename lineno to input_line.
9649         (build_module_descriptor, build_selector_translation_table,
9650         build_protocol_template, build_method_prototype_list_template,
9651         build_category_template, build_selector_table,
9652         build_class_template, build_super_template, build_ivar_template,
9653         build_ivar_list_template, build_method_list_template,
9654         build_method_template, add_instance_variable): Likewise.
9655
9656         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
9657         name from input_filename.
9658
9659 2003-04-30  Eric Christopher  <echristo@redhat.com>
9660             Richard Sandiford <rsandifo@redhat.com>
9661
9662         * configure: Regenerate from patches below.
9663         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
9664         for all symbolic operands.
9665         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
9666         to function.
9667         * config/mips/linux.h: Fix typo.
9668         * Merge from mips-3_4-rewrite branch:
9669
9670         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
9671
9672                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
9673                 handling local labels when TARGET_ABICALLS.
9674
9675         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
9676
9677                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
9678                 integer argument.
9679                 (mips_expand_call): Likewise.
9680                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
9681                 (FIXED_REGISTERS): Clear $31 entry.
9682                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
9683                 (EPILOGUE_USES): Define.
9684                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
9685                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
9686                 (override_options): Add a 'j' register class.
9687                 (mips_expand_call): Handle sibcalls
9688                 (mips_expand_epilogue): Handle epilogues for sibcalls.
9689                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
9690                 (sibcall_epilogue): New pattern.
9691                 (call, call_value): Adjust calls to mips_expand_call.
9692                 (sibcall, sibcall_value): New expanders.
9693                 (sibcall_internal, sibcall_value_internal): New patterns.
9694                 (sibcall_value_multiple_internal): New pattern.
9695
9696         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
9697
9698                 * config/mips/mips.md (extended_mips16): New attribute.
9699                 (define_attr length): Default to 8 if extended_mips16 == yes.
9700                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
9701                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
9702                 (call_internal): Set extended_mips16 to yes for direct jumps.
9703                 Remove redundant mode attribute.
9704                 (call_value_internal, call_value_multiple_internal): Likewise.
9705                 (call_split): Remove redundant mode attribute.
9706                 (call_value_split, call_value_multiple_split): Likewise.
9707
9708                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
9709                 of unaligned offsets.
9710
9711                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
9712                 of SYMBOL_GENERAL.
9713
9714         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
9715
9716                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
9717                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
9718                 for mips16 code.
9719
9720         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
9721
9722                 * config/mips/mips.h (ADDRESS_COST): Define.
9723
9724         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
9725
9726                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
9727                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
9728                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
9729
9730         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
9731
9732                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
9733                 of a two-instruction sequence.  Add register->memory alternative.
9734                 (truncdihi2, truncdiqi2): Likewise.
9735                 Rework shift/truncate instructions so that they only handle right
9736                 shifts of 32 (or more, in the case of arithmetic shifts).
9737                 Add patterns for truncate/sign-extend.
9738
9739         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9740
9741                 * configure.in (mips*-*-*): Check for explicit relocation support.
9742                 * configure: Regenerate.
9743
9744         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9745
9746                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
9747                 and -mno-explicit-relocs.
9748                 (MASK_EXPLICIT_RELOCS): Define.
9749                 (TARGET_EXPLICIT_RELOCS): Use it.
9750                 (mips_split_addresses): Remove declaration.
9751                 * config/mips/mips.c (override_options): Update comment for
9752                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
9753
9754         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9755
9756                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
9757                 a CONST as identity.  Check the return value of gen_lowpart_common.
9758
9759         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9760
9761                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
9762                 references for TARGET_EXPLICIT_RELOCS.
9763                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
9764                 !TARGET_MIPS16.
9765
9766         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9767
9768                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
9769                 (addsi3): Remove redundant constraints.
9770                 (addsi3_internal): Use separate register & constant alternatives.
9771                 Use a 'Q' constraint and "addiu" insn for the latter.
9772                 (adddi3_internal_3, addsi3_internal_2): Likewise.
9773
9774         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9775
9776                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
9777                 (mips_expand_unaligned_store): Declare.
9778                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
9779                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
9780                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
9781                 (UNSPEC_ULD, UNSPEC_USD): Remove.
9782                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
9783                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
9784                 (extv, extzv): Use mips_expand_unaligned_load.
9785                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
9786                 predicate for operand 3.
9787                 (movsi_ulw, movsi_usw): Replace with...
9788                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
9789                 (movdi_uld, movdi_usd): Likewise replace with...
9790                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
9791
9792         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
9793
9794                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
9795                 * config/mips/mips.h (LEA_REGS): New register class.
9796                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
9797                 (GR_REG_CLASS_P): Include LEA_REGS.
9798                 (DANGEROUS_FOR_LA25_P): New macro.
9799                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
9800                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
9801                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
9802                 entries to LEA_REGS.
9803                 (mips_global_pic_constant_p): New function.
9804                 (override_options): Add 'e' register constraint.
9805                 (mips_secondary_reload_class): Return LEA_REGS when reloading
9806                 a dangerous constant into a class containing $25.
9807                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
9808                 (movsi_internal): Likewise.
9809
9810         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
9811
9812                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
9813                 * config/mips/mips.md (call_split): New insn.
9814                 (call_value_split, call_value_multiple_split): New insns.
9815                 (call_internal): Turn into a define_insn_and_split.  Split the
9816                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
9817                 (call_value_internal, call_value_multiple_internal): Likewise.
9818
9819         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
9820
9821                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
9822                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
9823                 (mips_encode_section_info): Don't take symbol visibility into
9824                 account if TARGET_ABICALLS.  Add more commentary.
9825                 * config/mips/mips.md: Add commentary above reloc constants.
9826
9827         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
9828
9829                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
9830                 from mips_legitimize_move.  Legitimize constant pool references.
9831                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
9832                 a REG_EQUAL note to the last instruction.
9833
9834         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
9835
9836                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
9837                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
9838                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
9839                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
9840                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
9841                 (UNSPEC_RELOC_GPREL16): Rename to...
9842                 (RELOC_GPREL16): ...this.
9843                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
9844                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
9845                 (macro_calls): New attribute.
9846                 (length): Use it to set the default length of calls.  Don't allow
9847                 calls to have delay slots if macro_calls is "yes".
9848                 (luisi, luidi): New patterns.
9849                 (lowsi, lowdi): Use '%R' to print the relocation.
9850                 (lowdi_extend): Remove.
9851                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
9852                 (call_internal): Merge alternatives.  Always use "jal".
9853                 (call_value_internal, call_value_multiple_internal): Likewise.
9854                 (reloc_gprel16): Remove.
9855                 * config/mips/mips.c (mips_got_alias_set): New variable.
9856                 (mips_classify_constant): Handle the new relocation constants.
9857                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
9858                 (mips_symbolic_address_p): Return false if generating explicit relocs.
9859                 Otherwise allow local PIC symbols to have an offset.
9860                 (mips_splittable_symbol_p): New function.
9861                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
9862                 (mips_const_insns): Always accept HIGH.
9863                 (call_insn_operand): Don't accept global symbols if using explicit
9864                 relocs.
9865                 (move_operand): Don't accept HIGH when generating PIC.
9866                 (mips_reloc, mips_lui_reloc): New functions.
9867                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
9868                 be a valid right-hand-side for a SET pattern.
9869                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
9870                 (mips_emit_high): New function.
9871                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
9872                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
9873                 address should be used.  Use mips_emit_high to generate the
9874                 high part of such an address.  Adjust the global symbol + offset
9875                 case to match the change to mips_force_temprorary.
9876                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
9877                 If generating explicit-reloc PIC, load the address of global
9878                 symbols from the GOT.  Use mips_emit_high to emit the high part
9879                 of an address.
9880                 (mips_simplify_dwarf_addr): New function.
9881                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
9882                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
9883                 (mips_expand_call): Load the addresses of global functions using
9884                 %call* relocs if generating explicit-reloc PIC.  Don't generate
9885                 an exception_receiver pattern.
9886                 (override_options): Initialize mips_got_alias_set.
9887                 (print_relocation): Remove in favor of...
9888                 (mips_reloc_string): ...this new function.
9889                 (print_operand): Handle '%R'.  Use mips_reloc_string.
9890                 (print_operand_address): Use print_operand to print the symbolic
9891                 part of a LO_SUM address.
9892                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
9893                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
9894                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
9895                 for local symbols.
9896
9897         2003-02-02  Eric Christopher  <echristo@redhat.com>
9898
9899                 * config/mips/mips.c (mips_sign_extend): Remove.
9900                 * config/mips/mips-protos.h: Ditto.
9901                 * config/mips/mips.md (movdi_internal2_extend): Remove.
9902                 (extendsidi2): Fix mode of convert_memory_address.
9903
9904         2003-01-24  Eric Christopher  <echristo@redhat.com>
9905
9906                 * config/mips/mips.md: Rewrite zero_extend* and extend*
9907                 patterns. Use explicit instructions and split after reload
9908                 for register extensions.
9909                 (ashlsi3_internal1_extend): New combiner pattern for
9910                 shift and extend combinations.
9911                 * config/mips/mips.h: Change Pmode back to ptr_mode
9912                 for performance enhancement.
9913                 * combine.c (expand_compound_operation): Make sure
9914                 that zero_extend operation is profitable.
9915
9916         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
9917
9918                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
9919                 addresses depend on ptr_mode rather than Pmode.
9920                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
9921                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
9922                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
9923                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
9924                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
9925                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
9926                 (tablejump_internal1): Remove condition.
9927                 (tablejump_internal2): Change condition to TARGET_64BIT.
9928                 (cpaddsi): Rename to...
9929                 (cpadd): ...this.
9930                 (cpadddi): Remove.
9931
9932         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
9933
9934                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
9935                 mips_address_cost, mips_check_split, double_memory_operand,
9936                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
9937                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
9938                 (mips_legitimate_address_p): Return bool.
9939                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
9940                 mips_legitimize_address, mips_legitimize_move,
9941                 mips_expand_call): Declare.
9942                 (mips_return_addr): Move outside #ifdef RTX_CODE.
9943
9944                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
9945                 (PIC_FN_ADDR_REG): New reg_class.
9946                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
9947                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
9948                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
9949                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
9950                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
9951                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
9952                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
9953                 (LEGITIMATE_PIC_OPERAND): Undefine.
9954                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
9955                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
9956                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
9957                 (FUNCTION_MODE): Change to SImode.
9958                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
9959                 most constants.  Treat const_artih_operands specially if they
9960                 occur in a PLUS or MINUS.
9961                 (CONSTANT_POOL_COST): New macro.
9962                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
9963                 Add LO_SUM handling.
9964                 (ADDRESS_COST): Undefine.
9965                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
9966                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
9967                 to call_insn_operand and remove CONST_INT.
9968
9969                 * config/mips/mips.c: Include integrate.h.
9970                 (SINGLE_WORD_MODE_P): New macro.
9971                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
9972                 (mips_constant_info, mips_address_info): New structs.
9973                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
9974                 (mips_classify_constant, mips_classify_symbol,
9975                 mips_valid_base_register_p, mips_symbolic_address_p,
9976                 mips_classify_address, mips_symbol_insns,
9977                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
9978                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
9979                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
9980                 mips_print_relocation): New functions.
9981                 (const_arith_operand): New operand predicate.
9982                 (arith_operand): Use it.
9983                 (mips_const_double_ok, mips16_simple_memory_operand,
9984                 simple_memory_operand, double_memory_operand, mips_check_split,
9985                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
9986                 mips16_gp_offset_p, mips16_output_gp_offset,
9987                 mips16_constant_after_function_p, mips16_constant): Remove.
9988                 (call_insn_operand): Be more fussy about symbolic constants.
9989                 Use register_operand.
9990                 (move_operand): Use mips_symbolic_address_p to check symbolic
9991                 operands and general_operand to check the rest.
9992                 (symbolic_operand): Use mips_classify_constant.
9993                 (mips_legitimate_address_p): Use mips_classify_address.
9994                 (mips_move_1word): Combine handling of symbolic addresses.
9995                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
9996                 (move_move_2words): Likewise.  Assume addresses are offsettable
9997                 if they need to refer to more than one word.  Add HIGH handling.
9998                 (mips_restore_gp): Use ptr_mode for the GP save slot.
9999                 (mips_expand_call): New function, combining the old mips.md
10000                 call and call_internal define_expands.  If the address isn't
10001                 a call_insn_operand, force it into a register.  For SVR4 PIC,
10002                 emit an exception_receiver instruction after the call.
10003                 (override_options): Only override flag_pic for TARGET_ABICALLS
10004                 if it is currently zero.  Allow mips_split_addresses when
10005                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
10006                 Add new register class letter, 'c'.
10007                 (print_operand): Use mips_classify_constant for constant operands.
10008                 (print_operand_address): Use mips_classify_address.
10009                 (mips_output_function_prologue): Don't use .cprestore.
10010                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
10011                 via the frame pointer if current_function_calls_eh_return.
10012                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
10013                 to mark whether a symbol is local or global.
10014                 (build_mips16_call_stub): Expect the address of the function rather
10015                 than a MEM reference to it.  Update call generation sequences.
10016                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
10017                 small-data adjustments.
10018
10019                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
10020                 length for loads and stores.
10021                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
10022                 (define_attr type): Add const and prefetch.
10023                 (define_attr length): Use mips_const_insns for const instructions.
10024                 Use mips_fetch_insns for load and store instructions.
10025                 (define_attr single_insn): New.
10026                 (define_attr can_delay): Use it.
10027                 (define_attr abicalls): Remove.
10028                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
10029                 (addsi3_internal_2): Add 'Q' constraint.
10030                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
10031                 (high): Remove.
10032                 (lowsi): Renamed from low.
10033                 (lowdi): New pattern.
10034                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
10035                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
10036                 (loadgp): Change operand 0 to an immediate_operand.
10037                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
10038                 beforehand.
10039                 (cpaddsi, cpadddi): New patterns.
10040                 (tablejump_internal3, tablejump_internal4): Remove define_expands
10041                 and associated define_splits.
10042                 (call, call_value): Use mips_expand_call.
10043                 (call_internal): New, replacing all existing call_internal* insns.
10044                 (call_value_internal): Likewise call_value_internal*.
10045                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
10046                 (untyped_call): Remove if (operands[0]) magic.
10047                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
10048                 (prefetch_di_address, prefetch_di): Likewise.
10049                 (leasi, leadi): Remove.
10050                 (reloc_gprel16): New.
10051
10052                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
10053                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
10054                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
10055
10056         2003-01-08  Eric Christopher  <echristo@redhat.com>
10057
10058                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
10059                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
10060                 configure check for libgloss.
10061                 * config/mips/elf64.h: Ditto.
10062                 * config/mips/mips.c: Remove ABI_MEABI.
10063                 * config/mips/mips.h: Ditto.
10064
10065         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
10066
10067                 Fix merge fallout.
10068                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
10069                 (muldi3_internal): Remove outdated comment.
10070                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
10071                 (*smsac_di, *umsac_di): Likewise.  Reformat.
10072                 (umulsi3_highpart): Minor formatting tweaks.
10073                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
10074                 redundant scratch operand.  Minor formatting tweak.
10075                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
10076                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
10077                 (smulsi3_highpart): As for the unsigned version.
10078                 (smulsi3_highpart_internal): Likewise.
10079                 (smulsi3_highpart_mulhi_internal): Likewise.
10080                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
10081                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
10082                 (*smul_acc_di): Remove duplicated pattern.
10083                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
10084                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
10085                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
10086
10087         2002-10-22  Eric Christopher  <echristo@redhat.com>
10088
10089                 * config/mips/mips-protos.h (mips_return_addr): New.
10090                 * config/mips/mips.c (mips_return_addr): New.
10091                 (movdi_operand): Remove.
10092                 (se_register_operand): Ditto.
10093                 (se_reg_or_0_operand): Ditto.
10094                 (se_uns_arith_operand): Ditto.
10095                 (se_arith_operand): Ditto.
10096                 (se_nonmemory_operand): Ditto.
10097                 (extend_operator): Ditto.
10098                 (highpart_shift_operator): Ditto.
10099                 (mips_initial_elimination_offset): Remove return address pointer
10100                 elimination.
10101                 (mips_reg_names): Remove $ra.
10102                 (mips_regno_to_class): Ditto.
10103                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
10104                 and TARGET_64BIT.
10105                 (POINTER_BOUNDARY): Remove.
10106                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
10107                 (PROMOTE_MODE): Promote to Pmode.
10108                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
10109                 (Pmode): Define to TARGET_64BIT.
10110                 (FUNCTION_MODE): Define as Pmode.
10111                 (mips_args): Remove deleted functions.
10112                 (SIZE_TYPE): Depend on POINTER_SIZE.
10113                 (PTRDIFF_TYPE): Ditto.
10114                 (FIXED_REGISTERS): Fix extra registers.
10115                 (CALL_USED_REGISTERS): Ditto.
10116                 (CALL_REALLY_USED_REGISTERS): Ditto.
10117                 (RAP_REG_NUM): Remove.
10118                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
10119                 (RETURN_ADDR_RTX): Define to mips_return_addr.
10120                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10121                 (CAN_ELIMINATE): Ditto.
10122                 * config/mips/mips.md: For DImode patterns, take into account
10123                 deletions above. Split mulsidi patterns into sign_extend and
10124                 zero_extend.
10125
10126         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
10127                     Michael Meissner  <meissner@redhat.com>
10128
10129                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
10130                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
10131                 mop up unnecessarly moves through LO.
10132                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
10133                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
10134                 change mtlo/macc sequences into mul/add sequences when a three-
10135                 address mul is available.
10136                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
10137                 (*mul_sub_si): Fix contraint for operand 5.
10138                 (*muls): Use in 32-bit code as well.
10139                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
10140                 if the destination is LO.  Remove duplicate define_split.
10141                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
10142                 (*msac_di): Likewise.  Fix formatting.
10143                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
10144                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
10145                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
10146                 (*xmulsi3_neg_highpart_mulhi): Likewise.
10147                 (*mul_acc_64bit_di): Remove.
10148                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
10149
10150         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
10151
10152                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
10153                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
10154                 (MULTILIB_DIRNAMES): Remove long32.
10155                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
10156                 (MULTILIB_REDUNDANT_DIRS): Remove.
10157
10158         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
10159
10160                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
10161                 * gcc.c (driver_self_specs): New variable.
10162                 (do_self_spec): New function.
10163                 (main): Use it to process driver_self_specs.
10164
10165         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
10166
10167                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
10168                 Remove DImode define_split for !TARGET_64BIT.
10169                 (anddi3): Remove !TARGET_64BIT support from here as well.
10170                 Change operand 2's predicate to se_uns_arith_operand.
10171                 Add constant alternatives to define_insn.
10172                 (iordi3, xordi3, *nordi3): Likewise.
10173                 (anddi3_internal1, xordi3_immed): Remove.
10174
10175         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10176
10177                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
10178                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
10179                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
10180                 * config/mips/mips.md: Apply same renaming here.
10181
10182         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10183
10184                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
10185                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
10186                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
10187                 * config/mips/mips.md (define_attr cpu): Remove r4320.
10188                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
10189
10190         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10191
10192                 * config/mips/mips.c (mips16_strings): New variable.
10193                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
10194                 symbol in mips16_strings.  Free the list.
10195                 (mips_encode_section_info): Keep track of local strings.
10196
10197         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10198
10199                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
10200                 (sordered_df, sordered_sf): Remove.
10201                 * config/mips/mips.c (get_float_compare_codes): New fn.
10202                 (gen_int_relational, gen_conditional_move): Use it.
10203
10204         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10205
10206                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
10207                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
10208                 * config/mips/mips.c (fcc_register_operand): New function.
10209                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
10210                 (override_options): Allow TFmode values in float registers
10211                 if ISA_HAS_8CC.
10212                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
10213                 to fcc_register_operand.  Remove misleading source constraint.
10214                 Use mips_emit_fcc_reload.
10215                 (reload_outcc): Duplicate reload_incc.
10216
10217
10218 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
10219
10220         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
10221
10222 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
10223
10224         * tree-inline.c (inlinable_function_p): Back out last change, it's
10225         unnecessary.
10226
10227 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10228
10229         * ggc-page.c (TREE_EXP_SIZE): Define.
10230         (extra_order_size_table): New entry for expr trees with
10231         two operands.
10232
10233 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10234
10235         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
10236         (c_expand_start_cond): Adjust.
10237         (c_expand_end_cond): Don't use warning_with_file_and_file.
10238         (shadow_warning): Likewise.
10239
10240 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
10241
10242         * tree.h (DECL_POINTER_DEPTH): Remove.
10243         (struct tree_decl): Remove pointer_depth.
10244
10245 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
10246
10247         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
10248         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
10249         (rs6000_xcoff_encode_section_info): Remove.
10250         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
10251         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
10252         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
10253         Use SYMBOL_REF_FLAGS.
10254         (rs6000_elf_encode_section_info): Call default_encode_section_info for
10255         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
10256         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
10257         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
10258         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
10259         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
10260
10261 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10262
10263         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
10264
10265 2003-04-30  Andreas Schwab  <schwab@suse.de>
10266
10267         * doc/extend.texi (Other Builtins): Enclose multiple word data
10268         type in braces for @deftypefn.
10269
10270 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10271
10272         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
10273
10274         * doc/install.texi (--enable-threads): Document "gnat" option.
10275
10276 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10277
10278         * diagnostic.h (output_formatted_scalar): Tweak.
10279         * diagnostic.c (output_long_decimal): Likewise.
10280         (output_unsigned_decimal): Likewise.
10281         (output_long_unsigned_decimal): Likewise.
10282         (output_octal): Likewise.
10283         (output_long_octal): Likewise.
10284         (output_hexadecimal): Likewise.
10285         (output_long_hexadecimal): Likewise.
10286         (output_pointer): New function.
10287         (output_format): Use it.  Recognize "%p" format specifier.
10288
10289 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10290
10291         * function.c (purge_addressof_1): Postpone insn in fewer cases.
10292
10293 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
10294
10295         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
10296         call abort() after running out of stack space.
10297
10298         * c-typeck.c (function_types_compatible_p): Ignore incompatible
10299         'volatile' qualifiers on a function's return type in GNU mode.
10300
10301 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
10302
10303         * expr.c (emit_group_load): Dump parallels of simd types to
10304         memory.
10305
10306 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
10307
10308         * genautomata.c (add_vect): Check undefined value for range type
10309         too.
10310
10311 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
10312
10313         * configure.in:  More general test for cmp --ignore-initial.
10314         * configure:  Regenerate.
10315
10316 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10317
10318         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
10319         (layout_decl, place_field): Likewise.
10320         Also make minor type and whitespace changes.
10321
10322         * tree.c (save_expr): Don't fold a COMPONENT_REF.
10323
10324 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
10325
10326         * calls.c (expand_call): When modes of target and valreg match, force
10327         sibcall failure when target is a MEM.
10328
10329 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
10330
10331         * tree-inline.c (inlinable_function_p): Don't support inlining
10332         functions using varargs.
10333
10334         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
10335
10336         * dwarf2out.c (output_call_frame_info): No need to output EH
10337         unwind information if all_throwers_are_sibcalls.
10338
10339         * c-semantics.c (expand_unreachable_stmt): Return a tree.
10340         (expand_stmt): Update for change to expand_unreachable_stmt.
10341         (expand_unreachable_if_stmt): Likewise.
10342
10343         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
10344
10345 2003-04-29  Jason Merrill  <jason@redhat.com>
10346
10347         PR middle-end/10336
10348         * jump.c (never_reached_warning): Really stop looking if we reach
10349         the beginning of the function.
10350
10351 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
10352
10353         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
10354         Remove redundant macros.
10355         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
10356         (LOCAL_LABEL_PREFIX): Define unconditionally.
10357         (NO_DOT_IN_LABEL): Clarify comment.
10358         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
10359         definition to "long int".
10360
10361 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
10362
10363         bootstrap/10452
10364         * gengtype-yacc.y: Improve portability.
10365
10366 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
10367
10368         * config.gcc: Install obsolete target list for GCC 3.3.
10369         * doc/install.texi: Mention in specific-target instructions
10370         that certain configurations are deprecated.
10371
10372 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
10373
10374         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
10375
10376 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
10377
10378         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
10379         * gcc.c (display_help): Likewise.
10380         * toplev.c (f_options): Likewise.
10381         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
10382         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
10383         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
10384         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
10385         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
10386
10387 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
10388
10389         * varasm.c (default_assemble_visibility): Use assemble_name.
10390
10391 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
10392
10393         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
10394         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
10395         (SIZE_TYPE): New macro.
10396         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
10397         (SET_ASM_OP): New macro.
10398         (HANDLE_SYSV_PRAGMA): New macro.
10399         (ASM_WEAKEN_LABEL): New macro.
10400
10401 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
10402
10403         PR c++/10180
10404         * tree-inline.c (expand_call_inline): Call push_srcloc when
10405         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
10406
10407 2003-04-28  Mike Stump  <mrs@apple.com>
10408
10409         * gdbinit.in: Update to reflect new identifier structure.
10410
10411 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
10412
10413         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
10414         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
10415         struct tree_complex, struct tree_vector): Remove RTL field.
10416         (CONSTRUCTOR_ELTS): Use elt 0.
10417         * tree.def (CONSTRUCTOR): Delete first of its two operands.
10418         * varasm.c (output_constant_def): Remove early exit if
10419         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
10420         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
10421         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
10422         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
10423
10424 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
10425
10426         * c-decl.c (finish_decl): When prototype with asmspec is found
10427         for built-in, adjust built_in_decls as well as expr.c decls.
10428         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
10429         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
10430         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
10431
10432 2003-04-28  Richard Henderson  <rth@redhat.com>
10433
10434         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
10435         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
10436         integral constant mult operand.
10437         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
10438         (const_smulsi3_highpart_v8plus): Likewise.
10439         (const_smulsi3_highpart): Likewise.
10440         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
10441         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
10442         (const_umulsi3_highpart_v8plus): Likewise.
10443         (const_umulsi3_highpart): Likewise.
10444
10445 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
10446
10447         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
10448         Define as 1.
10449
10450 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
10451
10452         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
10453
10454 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
10455
10456         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
10457         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
10458         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
10459         functions.
10460         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
10461
10462 2003-04-28  Nick Clifton  <nickc@redhat.com>
10463
10464         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
10465
10466 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
10467
10468         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
10469         output_constant_def, use its result instead of TREE_CST_RTL (exp).
10470         Can assume it has the form (mem (symbol_ref ".LCxxx")).
10471         (expand_expr <COMPONENT_REF>): Can always just extract the
10472         relevant field of a CONSTRUCTOR.
10473         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
10474         ARRAY_RANGE_REF>): Make control flow explicit.
10475         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
10476         an INTEGER_CST.
10477
10478 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
10479
10480         * reload1.c (reg_set_luid): Fix a comment typo.
10481
10482 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
10483
10484         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
10485         struct deferred_string, const_str_htab): Kill.
10486         (n_deferred_strings): New static variable.
10487         (build_constant_desc): Set SYMBOL_REF_DECL of the new
10488         symbol_ref to point to the constant.
10489         (output_constant_def): When a deferred string is forced out,
10490         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
10491         (mark_constant): Likewise.
10492         (maybe_output_constant_def_contents): When deferring a string
10493         constant, just set STRING_POOL_ADDRESS_P and increment
10494         n_deferred_strings.
10495         (mark_constant_pool): Check n_deferred_strings, not the size
10496         of const_str_htab.
10497         (init_varasm_once): No need to create const_str_htab.
10498
10499         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
10500         SYMBOL_REF_DECL points to a constant.
10501
10502 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
10503
10504         * varasm.c (output_constant_def): Split out two new static
10505         functions, build_constant_desc and maybe_output_constant_def_contents.
10506         Restructure for comprehensibility.  Don't call
10507         output_addressed_constants.  Treat defstr being non-NULL for
10508         STRING_POOL_ADDRESS_P constants as an invariant.
10509         (struct deferred_string): Remove labelno field.
10510         (output_constant_def_contents): Kill labelno argument. Call
10511         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
10512         asm_out.internal_label.
10513         (mark_constant): Update call to output_constant_def_contents.
10514         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
10515         constants as an invariant.
10516
10517 2003-04-26  Richard Henderson  <rth@redhat.com>
10518
10519         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
10520         (ix86_expand_call, ix86_rtx_consts): Likewise.
10521
10522 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10523
10524         * doc/md.texi (cmpstr): Document additional restrictions.
10525
10526 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
10527
10528         * flags.h (time_report): Remove.
10529         * timevar.c (timevar_enable): New.
10530         (TIMEVAR_ENABLE): Remove, use timevar_enable.
10531         (timevar_init): Rename from init_timevar.
10532         * timevar.h (timevar_init): Rename from init_timevar.
10533         * toplev.c (time_report): Make static.
10534         (do_compile): Conditionally call init_timevar first.
10535         (preprocess_options): Move some code to do_compile.
10536
10537 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
10538
10539         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
10540
10541 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
10542
10543         * _cpp_lex_direct: Remove pointless code.
10544
10545 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
10546
10547         * doc/extend.texi (Function Attributes): Document "near" and "far"
10548         for 68HC11 and 68HC12.
10549
10550 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10551
10552         * expr.c (store_field): When making temporary for store, don't
10553         make it TYPE_QUAL_CONST.
10554
10555 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
10556
10557         * toplev.c (read_integral_parameter):  Use "argument" in error
10558         message to distinguish it from actual invalid options.
10559
10560 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
10561
10562         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
10563         addition of __PIC__ and __pic__ macros.
10564         * config/xtensa/xtensa.h: Clean up indentation.
10565
10566 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
10567
10568         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
10569         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
10570         (SUBTARGET_CPP_SPEC): Define.
10571         (LIB_SPEC): Delete.
10572         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
10573         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
10574         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
10575         Define.
10576         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
10577         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
10578
10579 2003-04-25  H.J. Lu <hjl@gnu.org>
10580
10581         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
10582         for return mode.
10583         (ia64_expand_builtin): Set rmode to SImode for
10584         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
10585         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
10586         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
10587         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
10588
10589 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
10590
10591         * configure.in (make_compare_target):  Test for GNU cmp and set this
10592         variable appropriately.
10593         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
10594         compare4-lean): Rename actual targets to slowcompare*.  New compare*
10595         targets depend on names based on make_compare_target.
10596         * configure:  Regenerated.
10597
10598 2003-04-25  Richard Henderson  <rth@redhat.com>
10599
10600         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
10601         to clobber ar.pfs and ar.unat.
10602         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
10603         fix test for spilling ar.pfs to the stack.
10604
10605 2003-04-25  Richard Henderson  <rth@redhat.com>
10606
10607         PR opt/10315
10608         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
10609         checks during reload; use validize_mem instead of adjust_address.
10610
10611 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
10612
10613         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
10614         return values from recog_memoized().
10615
10616 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10617
10618         PR opt/8705
10619         * gcse.c (try_replace_reg): On a successful substitution of a constant
10620         into a single set, try to simplify the source of the set.
10621         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
10622         constant source.
10623
10624 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
10625
10626         * cpplex.c (cpp_token_len): Tighten up.
10627         (cpp_token_as_text): Need extra byte now.
10628         * cpplib.c (glue_header_name): Need extra 2 bytes.
10629         * cppmacro.c (cpp_macro_definition): Need extra byte.
10630
10631 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
10632
10633         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
10634         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
10635         where they might be not present. Use their _sp64 equivalent
10636         instead.
10637
10638 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
10639
10640         * i386.md (cvtsi2sdq): Fix typo in previous patch.
10641
10642 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
10643
10644         * configure.in: Check whether mbstowcs works.
10645         * configure, config.in: Regenerate.
10646         * intl.c: Use HAVE_WORKING_MBSTOWCS.
10647
10648 2003-04-24  H.J. Lu <hjl@gnu.org>
10649
10650         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
10651         for __sync_bool_compare_and_swap_di for int return type.
10652
10653         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
10654         Change return type to int.
10655         (__sync_bool_compare_and_swap): Likewise.
10656
10657 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
10658
10659         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
10660         looking for fallthru edge.
10661
10662         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
10663         Fix.
10664         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
10665         athlon-fvector): New.
10666         (athlon_*): Revisit to match new optimization guide.
10667         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
10668         * i386.md (cvt??2?? patterns): Fix modes.
10669         (fistp patterns): Set modes.
10670
10671         Accidentaly commited with my earlier reload patch:
10672         PR c/10308
10673         * reload.c (find_reloads_address_1): Reload plus at the place of
10674         index register.
10675
10676 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
10677
10678         New GCOV_TAG_FUNCTION layout
10679         * coverage.c (struct function_list): Replace name with ident.
10680         (struct counts_entry): Likewise.
10681         (fn_ident): New.
10682         (htab_counts_entry_hash, htab_counts_entry_eq,
10683         htab_counts_entry_del): Adjust.
10684         (reads_count_file, get_coverage_counts,
10685         coverage_begin_output, coverage_end_function): Adjust.
10686         (build_fn_info_type, build_fn_info_value): Likewise.
10687         * gcov-dump.c (tag_function): Adjust.
10688         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
10689         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
10690         * gcov.c (struct function_info): Add ident.
10691         (read_graph_file, read_count_file): Adjust.
10692         * libgcov.c (gcov_exit): Adjust.
10693
10694 2003-04-23  Richard Henderson  <rth@redhat.com>
10695
10696         PR opt/8300
10697         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
10698         after initialize_uninitialized_subregs; update reg info assuming
10699         new pseudos were created.
10700
10701 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
10702
10703         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
10704         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
10705         (lex_string): Take cpp_string with full spelling.
10706         (cb_ident): Update.
10707         (c_lex): Update diagnostics.
10708         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
10709         (create_literal): New.
10710         (lex_string): Unterminated literals have type CPP_OTHER.
10711         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
10712         for CPP_OTHER.
10713         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
10714         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
10715         * cpplib.c (parse_include, do_line, do_linemarker,
10716         destringize_and_run): Update for token storing full spelling.
10717         * cpplib.h: Update token spelling types.
10718         * cppmacro.c (stringify_arg, check_trad_stringification):
10719         Update for token storing full spelling.
10720
10721 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
10722
10723         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
10724
10725 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
10726
10727         * arm.h (TARGET_OPTIONS): Add value field.
10728
10729 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
10730
10731         * doc/extend.texi: Remove duplicate 2003 copyright date.
10732
10733 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
10734
10735         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
10736         (libgcov.a): Depends on LIBGCC_DEPS.
10737         * basic-block.h (profile_info): Moved here from coverage.h. Made
10738         a pointer.
10739         * coverage.c (struct function_list): Fixed array of counter types.
10740         (struct counts_entry): Keyed by counter type, contains summary.
10741         (profile_info): Moved to profile.c.
10742         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
10743         vars.
10744         (profiler_label): Remove.
10745         (ctr_labels): New.
10746         (set_purpose, label_for_tag, build_counter_section_fields,
10747         build_counter_section_value, build_counter_section_data_fields,
10748         build_counter_section_data_values, build_function_info_fields,
10749         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
10750         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
10751         build_ctr_info_value, build_gcov_info): New.
10752         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
10753         (reads_counts_file): Adjust.
10754         (get_coverage_counts): Takes counter number. Add summary
10755         parameter. Adjust.
10756         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
10757         create counter array labels.
10758         (coverage_end_function): Adjust.
10759         (create_coverage): Adjust.
10760         (find_counters_section): Remove.
10761         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
10762         (struct section_info, struct profile_info): Remove.
10763         (profile_info): Moved to basic-block.h.
10764         (coverage_counter_ref): Takes a counter number.
10765         (get_coverage_counts): Takes a counter number. Added summary
10766         parameter.
10767         (find_counters_section): Remove.
10768         * gcov-dump.c (tag_arc_counts): Rename to ...
10769         (tag_counters): ... here. Adjust.
10770         (tag_table): Move tag_counters to 3rd entry. Remove
10771         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
10772         (dump_file): Check for counter tag values here.
10773         (tag_summary): Adjust.
10774         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
10775         * gcov-io.h (GCOV_LOCKED): New.
10776         (GCOV_TAG_ARC_COUNTS): Rename to ...
10777         (GCOV_TAG_COUNTS_BASE): ... here.
10778         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
10779         Remove.
10780         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
10781         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
10782         GCOV_TAG_IS_COUNTER): New.
10783         (struct gcov_ctr_summary): New.
10784         (struct gcov_summary): Adjust.
10785         (struct gcov_counter_section): Remove.
10786         struct gcov_counter_section_data): Remove.
10787         (struct gcov_function_info): Rename to ...
10788         (struct gcov_fn_info): ... here. Adjust.
10789         (struct gcov_ctr_info): New.
10790         (struct gcov_info): Adjust.
10791         * gcov.c (read_count_file): Adjust.
10792         (output_lines): Adjust.
10793         * libgcov.c (gcov_exit): Adjust.
10794         (__gcov_flush): Adjust.
10795         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
10796         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
10797         probably_never_executed_bb_p, compute_frequency_function): Adjust
10798         profile_info use.
10799         * profile.c (struct counts_entry): Remove.
10800         (profile_info): Define here.
10801         (get_exec_counts): Adjust get_coverage_counts call.
10802         (compute_branch_probablilities): Remove find_counters_section
10803         call.
10804         (gen_edge_profiler): Adjust coverage_counter_ref call.
10805         * tracer.c (tail_duplicate): Adjust profile_info use.
10806
10807 2003-04-23  Roger Sayle  <roger@eyesopen.com>
10808
10809         PR optimization/10339
10810         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
10811         directly instead of unsafely transforming call into a memcmp.
10812         (expand_builtin_strncmp): Likewise.
10813
10814 2003-04-22  Roger Sayle  <roger@eyesopen.com>
10815
10816         * alias.c (mark_constant_function):  Check for constancy and
10817         purity even of void functions.  Update both the function decl
10818         and the cgraph RTL info with the results.
10819
10820 2003-04-22  Roger Sayle  <roger@eyesopen.com>
10821
10822         * real.c (do_add): Change to return a bool indicating that the
10823         result of the operation may be inexact due to loss of precision.
10824         (do_multiply): Likewise.
10825         (do_divide): Likewise.
10826
10827 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
10828             Loren James Rittle  <ljrittle@acm.org>
10829
10830         * dwarf2out.c (fde_table_allocated): Mark with GTY.
10831         (decl_die_table_allocated): Likewise.
10832         (abbrev_die_table_allocated): Likewise.
10833         (line_info_table_allocated): Likewise.
10834         (separate_line_info_table_allocated): Likewise.
10835         (pubname_table_allocated): Likewise.
10836         (arange_table_allocated): Likewise.
10837         (ranges_table_allocated): Likewise.
10838         (decl_die_table_in_use): Unconditionalize; mark with GTY.
10839         (abbrev_die_table_in_use): Likewise.
10840         (line_info_table_in_use): Likewise.
10841         (separate_line_info_table_in_use): Likewise.
10842         (pubname_table_in_use): Likewise.
10843         (arange_table_in_use): Likewise.
10844         (ranges_table_in_use): Likewise.
10845         (have_location_lists): Likewise.
10846         (emitcount): New GTY-marked static, moved...
10847         (maybe_emit_file): ...from here.
10848         (label_num): New GTY-marked static, moved...
10849         (gen_internal_sym): ...from here.
10850
10851 2003-04-22  Richard Henderson  <rth@redhat.com>
10852
10853         PR 8866
10854         * rtl.h (MEM_NOTRAP_P): New.
10855         (MEM_COPY_ATTRIBUTES): Copy it.
10856         * rtlanal.c (may_trap_p): Check it.
10857         * expr.c (do_tablejump): Set it.
10858         * doc/rtl.texi (Flags): Document it.
10859
10860         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
10861
10862 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
10863
10864         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
10865         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
10866
10867 2003-04-22  Vincent Celier <celier@gnat.com>
10868
10869         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
10870         --enable-threads=gnat.
10871         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
10872         * configure.in: Add gnat to the list of thread packages
10873         * configure: Rebuild.
10874         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
10875
10876 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
10877
10878         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
10879
10880 2003-04-22  Devang Patel  <dpatel@apple.com>
10881
10882         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
10883         parameter count.
10884         (_cpp_copy_replacement_text): Same.
10885
10886 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
10887
10888         * c-lex.c (c_lex): Handle CPP_OTHER differently.
10889         * cppexp.c (_cpp_parse_expr): Similarly.
10890         * cpplex.c (SPELL_CHAR): Remove.
10891         (_cpp_lex_direct): Stray chars are saved as byte strings.
10892         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
10893         handle SPELL_CHAR.
10894         (cpp_avoid_paste): Update handling of CPP_OTHER.
10895         * cpplib.h: Spell CPP_OTHER like a number.
10896         (struct cpp_token): Remove member c.
10897         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
10898
10899 2003-04-22  David Turner <novalis@gnu.org>
10900
10901         * gbl-ctors.h: Add special license exception.
10902         * libgcc2.h: Likewise.
10903         * tsystem.h: Likewise.
10904         * gcov-io.h: Likewise.
10905
10906 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
10907
10908         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
10909         macro defaulting to original BRANCH_COST heuristic.
10910         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
10911
10912         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
10913
10914 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
10915
10916         * config/rs6000/t-spe: Merge in t-fprules into file.
10917
10918         * config.gcc: Add t-spe to powerpc-eabispe.
10919
10920 2003-04-22  Kean Johnston  <jkj@sco.com>
10921
10922         * tlink.c (recompile_files): Add missing '=' to putenv calls
10923
10924 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
10925
10926         * ginclude/stddef.h: Provide C++ safe offsetof.
10927
10928 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
10929
10930         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
10931         for reg notes, if there are no substitutions, just use a SUBREG.
10932
10933 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
10934
10935         * Makefile.in (calls.o): Depend on except.h.
10936         * calls.c: Include except.h.
10937         (emit_call_1): Call note_eh_region_may_contain_throw if
10938         appropriate.
10939         * except.c (eh_region): Add may_contain_throw.
10940         (expand_eh_region_end_cleanup): Do not include handler code when
10941         it cannot be reached.
10942         (note_eh_region_may_contain_throw): New function.
10943         * except.h (note_eh_region_may_contain_throw): New function.
10944
10945 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
10946
10947         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
10948         changes.
10949
10950 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
10951
10952         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
10953         64-bit long doubles.
10954
10955 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
10956
10957         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
10958         a number of conversions required for type consistency and previously
10959         stripped off by STRIP_NOPS.
10960
10961         * calls.c (expand_call): Prevent sibcall optimization for calls to
10962         nested subprograms.
10963
10964         * expmed.c (extract_bit_field): Reverse operands of && condition to
10965         prevent a potential division by zero in the previously first branch.
10966         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
10967
10968 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
10969
10970         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
10971         (subrange_type_die): Likewise.
10972         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
10973         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
10974
10975 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
10976
10977         Break out coverage routines to new file.
10978         * Makefile.in (COVERAGE_H): New variable
10979         (C_OBJS): Add coverage.o
10980         (coverage.o): New target.
10981         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
10982         dependencies.
10983         (GTFILES): Adjust.
10984         (gt-coverage.h): New target.
10985         (gt-profile.h): Remove.
10986         * profile.h: Remove. Move to ...
10987         * coverage.h: ... here. New. #include gcov-io.h.
10988         * gcov-io.h: Move function definitions to ...
10989         * gcov-io.c: ... here. New.
10990         * profile.c: Move coverage routines to coverage.c.
10991         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
10992         end_branch_prob): Adjust.
10993         * coverage.c: New. Coverage routines from profile.c
10994         (coverage_counter_ref, coverage_init, coverage_finish,
10995         coverage_end_function, coverage_begin_output,
10996         coverage_counter_ref, get_coverage_counts): Define.
10997         * gcov-dump.c, gcov.c: #include gcov-io.c.
10998         * libgcov.c: Likewise. Adjust.
10999         * loop-init.c: Don't #include profile.h
11000         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
11001         * rtl.h: Add coverage prototypes.
11002         * toplev.c (compile_file): Init coverage, not branch_prob.
11003         Always call coverage_finish.
11004         (rest_of_compilation): Call coverage_end_function.
11005
11006 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
11007
11008         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
11009
11010 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
11011
11012         * c-ppoutput.c (cb_include): Don't take a cpp_token.
11013         * cppfiles.c: Don't undef strcmp.
11014         (find_include_file): Don't take a cpp_token.  Check for empty
11015         file names.
11016         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
11017         (cpp_push_include): Simplify.
11018         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
11019         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
11020         (parse_include): Similary.  Don't check for zero-length filenames.
11021         (do_include_common, do_pragma_dependency): Update accordingly.
11022         * cpplib.h (struct cpp_callbacks): Change prototype of include.
11023
11024 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11025
11026         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
11027         details of conflict handling.
11028
11029         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
11030         when conversion overflows.
11031
11032         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
11033
11034         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
11035         before clearing.
11036
11037 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
11038
11039         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
11040         have the same form as the old RTL.
11041
11042 2003-04-21  Andreas Jaeger  <aj@suse.de>
11043
11044         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
11045
11046 2003-04-20  Chris Lattner  <sabre@nondot.org>
11047             Zack Weinberg  <zack@codesourcery.com>
11048
11049         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
11050         genrtl_cleanup_stmt.  Correct comment at head of
11051         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
11052
11053         * stmt.c (struct nesting): Kill n_function_calls.
11054         (expand_start_bindings): Don't set
11055         thisblock->data.block.n_function_calls.
11056         (expand_end_bindings): Compare function_call_count against 0.
11057         (expand_cleanups): Kill DONT_DO argument; all callers passed
11058         NULL_TREE. All callers updated to match.
11059
11060 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
11061
11062         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
11063         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
11064         (output_constant_def): Remove code predicated on
11065         defer_addressed_constants_flag.
11066
11067         * output.h: Remove prototypes of deleted functions.
11068         * c-typeck.c (constructor_subconstants_deferred): Kill.
11069         (struct initializer_stack): Remove 'deferred' field.
11070         (start_init): Remove all references to the above.
11071         (finish_init): Likewise. Also remove never-executed call to
11072         output_deferred_addressed_constants.  Pull assignment to
11073         defstr out of if expression.
11074
11075 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
11076
11077         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
11078         NOTE_NEWLINE): Remove.
11079         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
11080         to handle new form of line note type.
11081
11082 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
11083
11084         * target.h (encode_section_info): Add new argument carrying
11085         the RTL to be modified by the hook.
11086
11087         * varasm.c (make_decl_rtl, output_constant_def): Update calls
11088         to encode_section_info.
11089         (default_encode_section_info): Take and use RTL argument,
11090         don't use TREE_CST_RTL or DECL_RTL.
11091         * output.h: Update prototype of default_encode_section_info.
11092         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
11093         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
11094         Update calls to encode_section_info.
11095
11096         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
11097         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
11098         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
11099         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
11100         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
11101         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
11102         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
11103         except for PE dllimport/dllexport.  Update calls to
11104         default_encode_section_info.
11105
11106         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
11107         Update prototypes.
11108
11109         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
11110
11111 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11112
11113         PR/8705
11114         * pa.md (movccfp): New expander.
11115         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
11116         Reverse fcmp conditions.
11117
11118 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11119
11120         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
11121         of operand 1 correctly.
11122
11123 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11124
11125         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
11126         * gcov.c (output_lines): Don't be so fussy about going past EOF.
11127
11128 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
11129
11130         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
11131         (cppcharset.o): New target.
11132         * c-lex.c (is_extended_char): Move to cppcharset.c.
11133         (utf8_extend_token): Delete.
11134         * cppcharset.c: New file.
11135         * cpphash.h (_cpp_valid_ucn): New.
11136         * cpplex.c (lex_identifier): Update prototype.
11137         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
11138         escapes.
11139         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
11140         in cppcharset.c.
11141         (lex_number, lex_identifier, cpp_parse_escape): Update.
11142         (_cpp_lex_direct): Update to handle UCNs.
11143         (cpp_avoid_paste): Don't paste to form a UCN.
11144
11145 2003-04-19  Roger Sayle  <roger@eyesopen.com>
11146
11147         * builtins.c (expand_builtin):  Don't expand a pure or const
11148         built-in function if the result will be ignored and none of
11149         its arguments are volatile.
11150
11151 2003-04-19  Kean Johnston  <jkj@sco.com>
11152
11153         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
11154         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
11155         target fragment now: t-sco5; dont compile crti.o.
11156         * config/i386/sco5.h: major overhaul to remove all COFF remnants
11157         and to use elfos.h for most definitions.
11158         (BSS_SECTION_ASM_OP): set correct segment attributes.
11159         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
11160         (DWARF2_UNWIND_INFO): Always set to 1.
11161         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
11162         (MD_STARTFILE_PREFIX_1): Define.
11163         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
11164         (DEFAULT_LINKER): Define if not specified to configure.
11165         (CTORS_SECTION_ASM_OP): Remove COFF crud.
11166         (DTORS_SECTION_ASM_OP): Remove COFF crud.
11167         (WINT_TYPE): Define.
11168         (SDB_DEBUGGING_INFO): Remove.
11169         (EXTRA_SECTIONS): Likewise.
11170         (EXTRA_SECTION_FUNCTIONS): Likewise.
11171         (CTOR_LIST_BEGIN): Likewise.
11172         (CTOR_LIST_END): Likewise.
11173         (INIT_SECTION_FUNCTION): Likewise.
11174         (FINI_SECTION_FUNCTION): Likewise.
11175         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
11176         (LOCAL_LABEL_PREFIX): Likewise.
11177         (NON_SAVING_SETJMP): Likewise.
11178         (RETURN_POPS_ARGS): Likewise.
11179         (ASM_OUTPUT_SKIP): Likewise.
11180         (TARGET_ASM_NAMED_SECTION): Likewise.
11181         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11182         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11183         (ASM_OUTPUT_IDENT): Likewise.
11184         (ASM_OUTPUT_CASE_LABEL): Likewise.
11185         (ASM_OUTPUT_ASCII): Likewise.
11186         (ASM_OUTPUT_LIMITED_STRING): Likewise.
11187         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
11188         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11189         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11190         (ASM_FINISH_DECLARE_OBJECT): Likewise.
11191         (ASM_DECLARE_OBJECT_NAME): Likewise.
11192         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11193         (ASM_DECLARE_FUNCTION_NAME): Likewise.
11194         (ASM_DECLARE_RESULT): Likewise.
11195         (ASM_WEAKEN_LABEL): Likewise.
11196         (SUPPORTS_WEAK): Likewise.
11197         (APPLY_RESULT_SIZE): Likewise.
11198         (LPREFIX): Likewise.
11199         (ALIGN_ASM_OP): Likewise.
11200         (ASCII_DATA_ASM_OP): Likewise.
11201         (IDENT_ASM_OP): Likewise.
11202         (ASM_SHORT): Likewise.
11203         (ASM_LONG): Likewise.
11204         (TYPE_ASM_OP): Likewise.
11205         (SIZE_ASM_OP): Likewise.
11206         (STRING_ASM_OP): Likewise.
11207         (SKIP_ASM_OP): Likewise.
11208         (EH_FRAME_SECTION_ASM_OP): Likewise.
11209         (READONLY_DATA_SECTION_ASM_OP): Likewise.
11210         (INIT_SECTION_ASM_OP): Likewise.
11211         (FINI_SECTION_ASM_OP): Likewise.
11212         (TEXT_SECTION_ASM_OP): Likewise.
11213         (DATA_SECTION_ASM_OP): Likewise.
11214         (TYPE_OPERANT_FORMAT): Likewise.
11215         (ASM_SPEC): Remove COFF code.
11216         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
11217         cause -pg to emit an error; use pcrt1elf.o with -pp
11218         (ENDFILE_SPEC): Likewise.
11219         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
11220         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
11221         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
11222         add -z alt_resolve to support weak symbols the way GCC wants them.
11223         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
11224         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
11225         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
11226         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
11227         (CRTSTUFF_T_CFLAGS_S): Define.
11228         (MULTILIB_OPTIONS): Likewise.
11229         (MULTILIB_DIRNAMES): Likewise.
11230         (MULTILIB_MATCHES): Likewise.
11231         (MULTILIB_EXTRA_OPTS): Likewise.
11232         (LIBGCC): Likewise.
11233         (INSTALL_LIBGCC): Likewise.
11234         (crti.o): Remove.
11235         * config/i386/t-sco5gas: Remove.
11236         * doc/install.texi: Updated for new OpenServer instructions.
11237         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
11238
11239 2003-04-19  Kean Johnston  <jkj@sco.com>
11240
11241         * fixinc/check.tpl: Allow user to over-ride diff program.
11242         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
11243         (sco_math): Added test for SCO math header files.
11244         (sco_regset): Added check for conflicts with ieeefp.h.
11245         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
11246         * fixinc/fixincl.x: Regenerated
11247         * fixinc/tests/base/math.h: Added sco_math tests.
11248         * fixinc/tests/base/string.h: New file.
11249         * fixinc/tests/base/sys/regset.h: New file.
11250
11251 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11252
11253         * cpphash.h (struct cpp_buffer): Remove backup_to.
11254         * cpplex.c (BACKUP, get_effective_char): Die.
11255         (_cpp_skip_block_comment): Assume '*' is location on entry.
11256         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
11257         (IF_NEXT_IS): Update.
11258         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
11259
11260 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
11261
11262         * README.Portability: Move to a new section and obsolete K+R
11263         portability issues.
11264
11265 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
11266
11267         * rtlanal.c (subreg_offset_representable_p):  Fix call of
11268         subreg_lowpart.
11269
11270 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11271
11272         * cpphash.h (struct cpp_reader): New member warned_dollar.
11273         * cpplex.c (continues_identifier_p): New function.
11274         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
11275         lex_number and lex_string, and simplify.
11276         (parse_slow, unescaped_terminator_p): Die.
11277         (_cpp_lex_direct): Update.
11278
11279 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11280
11281         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
11282
11283 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
11284
11285         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
11286         fork behavior.
11287
11288 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11289
11290         * cppexp.c (eval_token): Permit true and false even if pedantic.
11291
11292 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11293
11294         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
11295
11296 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11297
11298         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
11299         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
11300         (struct include_file): Remove fefcnt, mapped members.
11301         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
11302         (read_include_file): Don't use mmap, terminate buffers in '\r'.
11303         (purge_cache): Don't use munmap.
11304         * cpphash.h (CPP_BUF_COLUMN): Update.
11305         (lexer_state): Remove lexing_comment.
11306         (struct _cpp_line_note): New.
11307         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
11308         next_line and need_line.  Remove col_adjust and saved_flags.
11309         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
11310         _cpp_skip_block_comment, scan_out_logical_line): New.
11311         (_cpp_init_mbchar): Remove.
11312         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
11313         (cpp_read_main_file): Set line to 1 earlier.
11314         (post_options): -traditional-cpp doesn't want trigraphs.
11315         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
11316         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
11317         _cpp_get_fresh_line): New.
11318         (handle_newline, skip_escaped_newlines, trigraph_p,
11319         continue_after_nul, _cpp_init_mbchar): Remove.
11320         (get_effective_char): Update.
11321         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
11322         (skip_line_comment): Simplify.
11323         (skip_whitespace, parse_identifier, parse_slow, parse_number,
11324         parse_string): Update.
11325         (cpp_lex_direct): Use clean lines and process line notes.  Update.
11326         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
11327         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
11328         directly.
11329         (_cpp_handle_directive): Don't set saved_flags.
11330         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
11331         cpp_undef, handle_assertion, cpp_push_buffer): Update.
11332         (_cpp_pop_buffer): Free notes.
11333         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
11334         * cpppch.c (cpp_read_state): \n terminate buffer.
11335         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
11336         (copy_comment): Use _cpp_skip_block_comment.
11337         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
11338         Simplify.
11339         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
11340         save_replacement_text): Update.
11341         (scan_out_logical_line): Update to use clean lines and process
11342         line notes.
11343         * fix-header.c (read_scan_file): Update.
11344
11345 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
11346
11347         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
11348         null begin parameter (as well as pointer to null).
11349         (__deregister_frame_info_bases): Likewise.
11350
11351 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11352
11353         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
11354         hard or virtual register and copy into pseudo if replacement fails.
11355
11356         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
11357
11358         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
11359
11360 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
11361
11362         * calls.c (expand_call): Move special case for constructor calls
11363         to right place. Ensures constructor calls used to initialize
11364         arguments get a clean outgoing argument block for themselves.
11365         Move check for stack deallocation completeness until after last
11366         deallocation.  Add stack_pointer_delta to set of state
11367         variables saved and restored along with current stack_level.
11368
11369         * integrate.c (expand_inline_function): Ensure non-const actuals
11370         don't end up const in the caller's flow after conversion to possibly
11371         const formal type.
11372
11373 2003-04-18  Vincent Celier  <celier@gnat.com>
11374
11375         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
11376         and *_DIV_EXPR as TRUNC_*_EXPR.
11377
11378 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
11379
11380         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
11381         for orphaned jump tables.
11382
11383 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
11384
11385         * reload1.c: Revert my previous patch on 2002-04-17.
11386
11387 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11388
11389         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
11390         Add Segher Boessenkool.
11391
11392 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
11393
11394         PR c/9177
11395         * c-decl.c (c_expand_body): Don't garbage collect the function
11396         body if we are going to dump it later.
11397
11398 2003-04-18  Richard Henderson  <rth@redhat.com>
11399
11400         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
11401         (alpha_end_function): Don't set them.
11402         (decl_in_text_section): Remove.
11403         (alpha_encode_section_info): Remove.
11404         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
11405         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
11406         sections, rather than decl_in_text_section results.
11407
11408 2003-04-18  Roger Sayle  <roger@eyesopen.com>
11409
11410         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
11411         and SIGN_EXTRACT.
11412
11413 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
11414
11415         PR optimization/7675
11416         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
11417         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
11418         nested functions if they refer to declarations from parent functions.
11419         * stmt.c (expand_decl): Don't put automatic variables in registers
11420         if the DECL_NONLOCAL flag is set.
11421
11422 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
11423
11424         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
11425         consider those to be movable where the source matches
11426         want_to_gcse_p.
11427         (update_ld_motion_stores): In comment, refer to
11428         compute_ld_motion_mems for validity of replacement.
11429
11430 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
11431
11432         * gcov-dump.c (tag_summary): Remove max_sum
11433         * gcov-io.h (gcov_summary, gcov_write_summary,
11434         gcov_read_summary): Kill max_sum.
11435         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
11436         message more verbose.
11437
11438         * emit-rtl.c (subreg_hard_regno):  Check that register is
11439         representable.
11440
11441         * reload.c (reload_inner_reg_of_subreg):  When register is not
11442         representable, reload the whole thing.
11443         (find_reloads): Likewsie.
11444         * rtlanal.c (subreg_representable_p):  New function.
11445
11446         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
11447         allow negative probabilities for edges from the call to exit.
11448         (branch_prob): Do not add fake edges for functions that may return
11449         twice.
11450
11451 2003-04-17  DJ Delorie  <dj@redhat.com>
11452
11453         * toplev.c (target_options): Add value field.
11454         (set_target_switch): Handle target options with values.
11455         * doc/tm.texi: Document how fixed vs variable target
11456         options work.
11457         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
11458         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
11459         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11460         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
11461         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11462         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11463         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
11464         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
11465         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
11466         Add value initializer to target options.
11467
11468 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
11469
11470         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
11471
11472 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
11473
11474         * reload1.c (move2add_last_cc0): New.
11475         (reload_cse_move2add): Detect implicit sets.
11476         (move2add_note_store): Notice a store into cc0.
11477
11478 2003-04-17  Roger Sayle  <roger@eyesopen.com>
11479
11480         PR c/10375
11481         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
11482         function attributes.
11483
11484 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
11485
11486         * doc/sourcebuild.texi (Test Suites): Document support for testing
11487         binary compatibility (moved from testsuite/README.compat).
11488
11489 2003-04-17  Richard Henderson  <rth@redhat.com>
11490
11491         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
11492
11493 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
11494
11495         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
11496         the one provided by the FSF.
11497
11498 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11499
11500         * doc/install.texi (Binaries): Update URL and list of platforms
11501         provided by ftp.thewrittenword.com.
11502
11503 2003-04-17  Richard Henderson  <rth@redhat.com>
11504
11505         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
11506         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
11507         * config/xtensa/xtensa.md (call, call_value): Likewise.
11508
11509 2003-04-17  Richard Henderson  <rth@redhat.com>
11510
11511         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
11512         (print_operand_address): Likewise.
11513         (ep_memory_operand): Likewise.
11514         (special_symbolref_operand): Likewise.
11515         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
11516         (v850_encode_section_info): Call default_encode_section_info.
11517         (v850_strip_name_encoding): Remove.
11518         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
11519         (ASM_OUTPUT_LABELREF): Remove.
11520         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
11521         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
11522         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
11523         (ENCODED_NAME_P): Remove.
11524         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
11525         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
11526         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
11527
11528 2003-04-17  Richard Henderson  <rth@redhat.com>
11529
11530         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
11531         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
11532         SYMBOL_REF_FUNCTION_P.
11533
11534 2003-04-17  Richard Henderson  <rth@redhat.com>
11535
11536         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
11537         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
11538         (text_segment_operand): Likewise.
11539
11540 2003-04-17  Richard Henderson  <rth@redhat.com>
11541
11542         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
11543         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11544         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
11545         (sh_encode_section_info): Remove.
11546         (sh_strip_name_encoding): Remove.
11547         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
11548         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
11549         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
11550         (ASM_OUTPUT_LABELREF): Remove.
11551         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
11552         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
11553
11554 2003-04-17  Richard Henderson  <rth@redhat.com>
11555
11556         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
11557         (tls_model_chars): Remove.
11558         (larl_operand): Use SYMBOL_REF_FLAGS.
11559         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11560         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
11561         (s390_output_mi_thunk): Likewise.
11562         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
11563         (s390_function_profiler): Likewise.
11564         (s390_encode_section_info): Use default_encode_section_info
11565         and SYMBOL_FLAG_ALIGN1.
11566         (s390_strip_name_encoding): Remove.
11567         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
11568         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
11569         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
11570
11571 2003-04-17  Richard Henderson  <rth@redhat.com>
11572
11573         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
11574         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
11575         (print_operand_address): Likewise.
11576
11577         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
11578         * config/ns32k/ns32k.c (expand_block_move): Don't check
11579         flag_unroll_loops.
11580
11581 2003-04-17  Richard Henderson  <rth@redhat.com>
11582
11583         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
11584         SYMBOL_REF_FLAG.
11585
11586 2003-04-17  Richard Henderson  <rth@redhat.com>
11587
11588         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
11589
11590         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
11591         (SYMBOL_REF_MODEL): New.
11592         (LIT_NAME_P): Move from m32r.h.
11593         (m32r_select_section): Remove.
11594         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
11595         (m32r_strip_name_encoding): Remove.
11596         (m32r_in_small_data_p): New.
11597         (small_data_operand): Use SYMBOL_REF_SMALL_P.
11598         (addr24_operand): Use SYMBOL_REF_MODEL.
11599         (call26_operand): Likewise.
11600         (addr32_operand): Tidy.
11601         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
11602         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
11603         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
11604         (READONLY_DATA_SECTION_ASM_OP): Remove.
11605         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
11606         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
11607         (TARGET_ASM_SELECT_SECTION): Remove.
11608         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
11609         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
11610         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
11611         (ASM_OUTPUT_LABELREF): Remove.
11612
11613 2003-04-17  Richard Henderson  <rth@redhat.com>
11614
11615         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
11616         (encode_section_info): Remove.
11617         * config/ip2k/ip2k-protos.h: Update.
11618
11619 2003-04-17  Richard Henderson  <rth@redhat.com>
11620
11621         * varasm.c (default_encode_section_info): Don't set
11622         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
11623         * config/i370/i370.c (i370_encode_section_info): Remove.
11624         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
11625         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
11626         * config/i370/i370.md (movsi): Likewise.
11627
11628         * config/i370/t-i370: Add missing backslash.
11629
11630 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11631
11632         * doc/invoke.texi (inline-limit): Fix pasto.
11633
11634 2003-04-17  Richard Henderson  <rth@redhat.com>
11635
11636         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
11637         (small_call_insn_operand): Use it.
11638         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
11639         (h8300_eightbit_constant_address_p): Use it.
11640         (SYMBOL_FLAG_TINY_DATA): New.
11641         (h8300_tiny_constant_address_p): Use it.
11642         (h8300_encode_label, h8300_strip_name_encoding): Remove.
11643         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
11644         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
11645         (ASM_OUTPUT_LABELREF): Remove.
11646
11647 2003-04-16  Richard Henderson  <rth@redhat.com>
11648
11649         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
11650         all users with SYMBOL_REF_SMALL_P.
11651         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
11652         (frv_encode_section_info): Remove.
11653         (frv_strip_name_encoding): Remove.
11654         (frv_in_small_data_p): Merge tests from encode_section_info.
11655         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
11656         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
11657         (SDATA_NAME_P): Remove.
11658         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
11659         (ASM_OUTPUT_LABELREF): Remove.
11660         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
11661
11662         * config/frv/frv.c (frv_asm_out_constructor): New.
11663         (frv_asm_out_destructor): New.
11664         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
11665         (DTORS_SECTION_ASM_OP): New.
11666         (ASM_OUTPUT_CONSTRUCTOR): Remove.
11667         (ASM_OUTPUT_DESTRUCTOR): Remove.
11668
11669 2003-04-16  Richard Henderson  <rth@redhat.com>
11670
11671         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
11672         SYMBOL_REF_LOCAL_P; abort if not pic.
11673         (cris_encode_section_info): Remove.
11674
11675 2003-04-16  Richard Henderson  <rth@redhat.com>
11676
11677         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
11678         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
11679
11680         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
11681         flag_inline_trees.
11682
11683 2003-04-16  Richard Henderson  <rth@redhat.com>
11684
11685         * config/avr/avr.c (avr_encode_section_info): Remove.
11686         (avr_insert_attributes): New.
11687         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
11688         (avr_assemble_integer): Likewise.
11689
11690 2003-04-16  Richard Henderson  <rth@redhat.com>
11691
11692         * arc.c (arc_encode_section_info): Remove.
11693         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
11694         (arc_print_operand, arc_print_operand_address): Likewise.
11695         * arc.h (EXTRA_CONSTRAINT): Likewise.
11696
11697 2003-04-16  Roger Sayle  <roger@eyesopen.com>
11698
11699         * c-semantics.c (find_reachable_label): New function to find a
11700         potentially reachable label in an expression.
11701         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
11702         assumes the start of the IF_STMT is unreachable (dead) code.
11703         (expand_unreachable_stmt): Similar to expand_stmt but assumes
11704         the start of the statement list is unreachable (dead) code.
11705         (genrtl_if_stmt):  If the controlling expression of the IF
11706         is constant, use expand_unreachable_stmt for the THEN or ELSE
11707         clause as appropriate.
11708         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
11709         the body of a SWITCH statement.
11710         (expand_stmt): The code immediately following a "return",
11711         "break", "continue" or "goto" is unreachable.
11712         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
11713
11714 2003-04-16  Richard Henderson  <rth@redhat.com>
11715
11716         * rtl.h (MEM_ALIAS_SET): Update documentation.
11717         * doc/rtl.texi (Special Accessors): New node.
11718         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
11719
11720 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
11721
11722         * reload1.c (reload_cse_noop_set_p): Return false if mode of
11723         SET_DEST is not the same as that returned by...
11724         * cselib.h (cselib_reg_set_mode): ... new function.
11725         * cselib.c (cselib_reg_set_mode): Define it.
11726         (REG_VALUES): Document semantics of first element as set mode.
11727         (cselib_subst_to_values): Skip first element if ELT is NULL.
11728         (cselib_lookup): Likewise.  Insert past the first element.
11729         (cselib_invalidate_regno): NULLify first element.
11730         (cselib_record_set): Set first element.
11731
11732 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
11733
11734         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
11735         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
11736         * tree.h: Add prototypes for the two new functions.
11737         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
11738         updates introduced in the previous revision by call to saved_expr_p.
11739         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
11740
11741         * expr.c (store_field): Force usage of bitfield instructions when
11742         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
11743         (expand_expr, case BIT_FIELD_REF): likewise.
11744
11745 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
11746
11747         PR middle-end/8866
11748         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
11749         jumptables.
11750
11751 2003-04-16  Richard Henderson  <rth@redhat.com>
11752
11753         * config/ia64/ia64.c (sdata_symbolic_operand): Use
11754         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
11755         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11756         (function_operand): Use SYMBOL_REF_FUNCTION_P.
11757         (ia64_expand_load_address): Likewise.
11758         (ia64_assemble_integer): Likewise.
11759         (ia64_encode_section_info): Remove.
11760         (ia64_strip_name_encoding): Remove.
11761         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
11762         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
11763
11764 2003-04-16  Richard Henderson  <rth@redhat.com>
11765
11766         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
11767         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
11768         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
11769         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11770         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
11771         (global_symbolic_operand): Similarly.
11772         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
11773         (tls_symbolic_operand_type): Likewise.
11774         (alpha_encode_section_info): Use default_encode_section_info.
11775         (alpha_strip_name_encoding): Remove.
11776         (get_tls_get_addr): Split out from ...
11777         (alpha_legitimize_address): ... here.
11778         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
11779         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
11780         (alpha_initialize_trampoline): Use init_one_libfunc.
11781         (alpha_setup_incoming_varargs): Mark unused parameters.
11782         (alpha_initial_elimination_offset): Likewise.
11783         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
11784         (unicosmk_unique_section): Use default_strip_name_encoding.
11785         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
11786
11787 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
11788
11789         * config.gcc: Add t-spe for eabispe.
11790
11791         * config/rs6000/t-spe: New.
11792
11793 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
11794
11795         Re-apply this patch:
11796
11797         2002-05-16  Dale Johannesen  <dalej@apple.com>
11798           * combine.c (cant_combine_insn_p):  Reenable combinations
11799           involving hard regs unless CLASS_LIKELY_SPILLED_P.
11800
11801 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11802
11803         PR/10271
11804         * pa-protos.h (function_arg): Remove last argument.
11805         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
11806         * pa.h (struct hppa_args): Add member incoming.
11807         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
11808         member incoming.
11809         (FUNCTION_ARG): Revise call to function_arg.
11810         (FUNCTION_INCOMING_ARG): Delete.
11811
11812 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
11813
11814         * configure.in: Unify the code which creates symlinks to a
11815         just-built as, ld, objdump, and nm with the code that detects
11816         their presence for purposes of feature tests.
11817         * configure: Regenerate.
11818
11819 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
11820
11821         * varasm.c (output_constant_def): Do not consult
11822         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
11823         (after_function_constants, output_after_function_constants): Delete.
11824         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
11825         * config/mips/mips-protos.h, config/mips/mips.c
11826         (mips16_constant_after_function_p): Delete.
11827         * config/mips/mips.h: Delete #if-0-ed definition of
11828         CONSTANT_AFTER_FUNCTION_P.
11829         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
11830         mention of CONSTANT_AFTER_FUNCTION_P in comment.
11831
11832 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
11833
11834         * tree.c (next_decl_uid): Mark with GTY.
11835         (next_type_uid): Likewise.
11836
11837 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
11838
11839         PR target/9594:
11840         * sh.c (barrier_align): Also recognize stuff_delay_slot as
11841         an indicator that a barrier was created by branch splitting.
11842
11843 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
11844
11845         * c-decl.c (implicitly_declare): Copy declarations that are going
11846         to be placed in a local scope.
11847
11848 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
11849
11850         * invoke.texi (Spec Files): Wrap if-exists-else example.
11851         (MCore): Remove duplicate @itemx entries and @opindex entries.
11852
11853 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
11854
11855         * unwind.inc (_Unwind_Backtrace): New function.
11856         * unwind.h (_Unwind_Backtrace): Declare it.
11857         * libgcc-std.ver (_Unwind_Backtrace): Export it.
11858
11859 2003-04-14  Jason Merrill  <jason@redhat.com>
11860
11861         PR middle-end/10336, c++/10401
11862         * jump.c (never_reached_warning): Also stop looking if we reach the
11863         beginning of the function.
11864
11865 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11866
11867         PR target/10338
11868         PR bootstrap/10198
11869         PR bootstrap/10140
11870         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
11871
11872 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
11873
11874         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
11875
11876 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11877
11878         * optabs.c (expand_binop): In multi-word add cases, ensure
11879         XTARGET is copied to TARGET if they are different.
11880
11881 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
11882
11883         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
11884         to region, possible after integration of function with unreachable
11885         regions that were optimized away.
11886
11887 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
11888
11889         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
11890         instead of TOC_REGISTER in epilogue in
11891         current_function_calls_eh_return functions.
11892
11893 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
11894
11895         * doc/extend.texi (Empty Structures): Correct description of G++'s
11896         handling of these structures.
11897
11898         * c-decl.c (grokdeclarator): Reject extern redeclarations of
11899         static variables.
11900
11901 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
11902
11903         * config/rs6000/rs6000.md (define_constants): Define constants for
11904         all UNSPEC usage, including new values for TLS support.
11905         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
11906         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
11907         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
11908         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
11909         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
11910         eh_set_lr_di): Use them.
11911         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
11912         rs6000_emit_epilogue) Use them.
11913
11914         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
11915
11916 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
11917
11918         * Makefile.in (c-opts.o): Use custom action.
11919
11920 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
11921
11922         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
11923
11924 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11925
11926         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
11927         handle "superflat arrays" in Ada.
11928
11929         * integrate.c (expand_inline_function): Don't inline if would
11930         lose /u on a BLKmode TARGET.
11931
11932 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
11933
11934         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
11935         extracted from dbxout_type.
11936         (dbxout_range_type): print large bounds in octal format.
11937         (dbxout_type): Replace extracted code by call to
11938         print_int_cst_bounds_in_octal_p.
11939
11940         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
11941         of DW_LANG_Ada83 for Ada units.
11942
11943 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
11944
11945         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
11946         temporary used to round CONST_INT sizes.
11947
11948         * tree.c (int_fits_type_p): Extract generic checks from the case
11949         of constant type bounds. Refine the checks against constant type
11950         bounds to allow for possible decisions against each of these bounds
11951         without requiring both bounds to be constant.
11952         (tree_int_cst_msb): Put back.
11953         * tree.h (tree_int_cst_msb): Likewise.
11954
11955         * global.c (global_conflicts): Prevent allocation of call clobbered
11956         hard regs to pseudos live across abnormal edges, as later passes are
11957         not ready to handle them.
11958
11959         * fold-const.c (fold): Reorder tests for conditional expressions.
11960
11961         * expr.c (highest_pow2_factor): Return unsigned.
11962         * expr.h (offset_address): Likewise.
11963         * emit-rtl.c (offset_address): POW2 argument now unsigned.
11964
11965 2003-04-14  Roger Sayle  <roger@eyesopen.com>
11966
11967         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
11968         string literals at compile-time.
11969
11970 2003-04-14  Roger Sayle  <roger@eyesopen.com>
11971
11972         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
11973         comparison operation and c1/c2 are floating point constants into
11974         x swap(cmp) (c1 - c2).
11975
11976 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
11977
11978         * genautomata.c (output_translate_vect): Fix a typo in loop
11979         condition.
11980
11981 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
11982
11983         PR target/10377
11984         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
11985         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
11986         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
11987         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
11988         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
11989         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
11990         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
11991         ("*extopqihi_swap_side", "*extopqisi_swap_side")
11992         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
11993         When next to constraint R, replace constraint i with n.
11994
11995 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
11996
11997         PR opt/10024
11998         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
11999
12000 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
12001
12002         * doc/contrib.texi (Contributors): Correct my entry.
12003
12004 2003-04-13  Roger Sayle  <roger@eyesopen.com>
12005
12006         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
12007         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
12008         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
12009         implies DECL_BUILT_IN to simplify logic.
12010         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
12011
12012 2003-04-13  Roger Sayle  <roger@eyesopen.com>
12013
12014         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
12015         (BT_FN_PTR_SIZE_SIZE): Likewise.
12016         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
12017         New built-in functions for malloc, calloc and strdup respectively.
12018         * calls.c (special_function_p): No need to handle malloc-like
12019         functions any longer.  ECF_MALLOC is set via built-in attributes.
12020
12021         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
12022
12023         * doc/extend.texi: Document these new built-in functions.
12024
12025 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12026
12027         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
12028         (expand_builtin_stpcpy): New.
12029         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
12030         * builtins.def: Add mempcpy & stpcpy support.
12031         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
12032
12033 2003-04-13  Nick Clifton  <nickc@redhat.com>
12034
12035         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
12036         "GCC".
12037         * config/rs6000/40x.md, config/rs6000/603.md,
12038         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
12039         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
12040         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
12041         config/rs6000/aix43.h, config/rs6000/aix51.h,
12042         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
12043         config/rs6000/altivec.h, config/rs6000/altivec.md,
12044         config/rs6000/beos.h, config/rs6000/darwin.h,
12045         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
12046         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
12047         config/rs6000/freebsd.h, config/rs6000/gnu.h,
12048         config/rs6000/host-darwin.c, config/rs6000/linux.h,
12049         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
12050         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
12051         config/rs6000/netbsd.h, config/rs6000/power4.md,
12052         config/rs6000/rios1.md, config/rs6000/rios2.md,
12053         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
12054         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12055         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
12056         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
12057         config/rs6000/spe.md, config/rs6000/sysv4.h,
12058         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
12059         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
12060
12061 2003-04-13  Nick Clifton  <nickc@redhat.com>
12062
12063         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
12064         support for -mcall-aix switch.
12065         * config/rs6000/eabiaix.h: Delete.
12066         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
12067         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
12068         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
12069         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
12070         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
12071         debug_stack_info, output_function_profiler,
12072         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
12073         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
12074         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
12075         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
12076         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
12077         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
12078         multilibs.
12079         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
12080         (MULTILIB_EXCEPTIONS): Delete.
12081         (MULTILIB_MATCHES): Remove mcall-aix matches.
12082
12083         * doc/fragments.texi: Replace -mcall-aix example with an ARM
12084         one.
12085         * doc/install.texi: Delete powerpc-*-eabiaix target.
12086         * doc/invoke.texi: Remove documentation of mcall-aix switch.
12087         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
12088         * config.gcc: Delete powerpc-*-eabiaix target.
12089
12090 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
12091
12092         * doc/invoke.texi: Fix typos.
12093         * doc/tm.texi: Likewise.
12094
12095 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12096
12097         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
12098
12099 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12100
12101         * tree.c (build_constructor): New function.
12102         * tree.h: Prototype it.
12103
12104         * c-typeck.c (build_c_cast, pop_init_level)
12105         * profile.c (build_function_info_value, build_gcov_info_value)
12106         (create_profiler):
12107         Use build_constructor.
12108
12109         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
12110
12111         * objc/objc-act.c (build_constructor):
12112         Rename objc_build_constructor. Use build_constructor.
12113         (build_objc_string_object, objc_add_static_instance)
12114         (init_def_list, init_objc_symtab, init_module_descriptor)
12115         (generate_static_references, build_selector_translation_table)
12116         (build_descriptor_table_initializer, generate_descriptor_table)
12117         (build_protocol_initializer, build_ivar_list_initializer)
12118         (generate_ivars_list, build_dispatch_table_initializer)
12119         (generate_dispatch_table, generate_protocol_list)
12120         (build_category_initializer, build_shared_structure_initializer):
12121         Update to match.
12122
12123 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12124
12125         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
12126
12127 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12128
12129         * config/m68hc11/m68hc11-protos.h
12130         (m68hc11_eq_compare_operator): Declare
12131         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
12132         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
12133         (d_register_operand): Check the operand mode.
12134         (hard_addr_reg_operand): Likewise.
12135
12136 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12137
12138         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
12139         pattern for dbcc/ibcc generation for 68HC12.
12140         ("doloop_end"): New pattern.
12141         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
12142         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
12143         ("m68hc12_dbcc_dec_qi"): New pattern.
12144         ("m68hc12_dbcc_inc_qi"): New pattern.
12145         (split): Add split for the above when we can't use dbcc/ibcc due to
12146         reloading.
12147         (peephole2): Add peephole2 to generate the above when possible.
12148
12149 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12150
12151         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
12152         mode of operand 0.
12153         (peephole2 optimize const load): Likewise for operand 2.
12154         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
12155         clobbers CC_REGNUM.
12156         ("*rotrhi3_with_carry"): Likewise.
12157         (ashift:DI 1 split): Update pattern to create the above rotate.
12158         (lshiftrt:DI 1 split): Likewise.
12159
12160 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12161
12162         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
12163         ("tstqi_z_used" split): Use it.
12164         ("cmphi_z_used"): Likewise.
12165         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
12166         ("cmpqi_z_used"): Likewise.
12167
12168 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
12169
12170         PR c++/7910
12171         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
12172
12173 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12174
12175         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
12176         * configure, config.in: Regenerate.
12177         * intl.c (gcc_gettext_width): New function.
12178         * intl.h: Prototype it.
12179
12180 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12181
12182         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
12183         recognize -mnorelax.
12184         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
12185         (REG_CLASS_NAMES): Add its name.
12186         (REG_CLASS_CONTENTS): Define its content.
12187
12188 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12189
12190         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
12191         parameters so that offsets are valid for far definition.
12192         (__mulsi3): Likewise and use ret to return.
12193         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
12194
12195 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
12196
12197         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
12198
12199 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
12200
12201         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
12202         containing a libgcc.a, move lib* to the corresponding stage dir.
12203
12204         * Makefile.in (stage1-start, stage2-start, stage3-start,
12205         stage4-start): Move $(SPECS) to specs in stage dir.
12206         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
12207         back as $(SPECS).
12208
12209         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
12210         object files from the non-libgcc/ multilib directories as well.
12211
12212 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
12213
12214         * profile.c (read_counts_file): Initialise 'checksum'.
12215
12216         * emit-rtl.c (gen_rtx): Really correct typo.
12217
12218         PR c++/9393
12219         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
12220         * configure.in: Check for gettimeofday.
12221         * tree.c (flag_random_seed): Define.
12222         (default_flag_random_seed): New.
12223         (append_random_chars): Use flag_random_seed rather than trying
12224         to acquire randomness here.
12225         * tree.h (default_flag_random_seed): Declare.
12226         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
12227         descriptions.
12228         (decode_f_option): Handle -frandom-seed.
12229         (print_switch_values): Call default_flag_random_seed.
12230         * flags.h (flag_random_seed): Declare.
12231         * configure: Regenerate.
12232         * config.in: Regenerate.
12233         * config/alpha/t-crtfm: Use -frandom-seed.
12234
12235         * doc/extend.texi (Empty Structures): New.
12236
12237         * c-pch.c: Include flags.h.  Add comments to routines.
12238         (struct c_pch_validity): New.
12239         (get_ident): Update PCH file version number.
12240         (pch_init): Output current debugging type.
12241         (c_common_valid_pch): Check debugging type.
12242         * Makefile.in (c-pch.o): Update dependencies.
12243         * flags.h (debug_type_names): Declare.
12244         * toplev.c (debug_type_names): Move out of decode_g_option.
12245
12246 2003-04-11  Eric Christopher  <echristo@redhat.com>
12247
12248         * emit-rtl.c (gen_rtx): Fix typos.
12249
12250 2003-04-11  Richard Henderson  <rth@redhat.com>
12251
12252         * emit-rtl.c (gen_rtx): Zero '0' fields.
12253
12254 2003-04-11  Richard Henderson  <rth@redhat.com>
12255
12256         PR c++/10202
12257         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
12258         not COMPLETE_TYPE_P for re-invoking layout_decl.
12259
12260 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
12261
12262         * doc/bugreport.texi: Fix paragraph breaking between sections
12263         in preparation for TeXinfo's paragraph indentation fixes.
12264         * doc/extend.texi: Ditto.
12265         * doc/invoke.texi: Ditto.
12266         * doc/objc.texi: Ditto.
12267         * doc/gcov.texi: Wrap 'gcov' in @command{}.
12268         * doc/invoke.texi (Darwin Options): Add a preamble.
12269
12270 2003-04-11  Richard Henderson  <rth@redhat.com>
12271
12272         * config/i386/i386.c (tls_model_chars): Remove.
12273         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
12274         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
12275         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12276         (tls_symbolic_operand_1): Likewise.
12277         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
12278         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
12279         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
12280         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
12281         bits "copied from i386.h" with default_encode_section_info.
12282
12283 2003-04-11  Richard Henderson  <rth@redhat.com>
12284
12285         * rtl.def (SYMBOL_REF): Add two 0 fields.
12286         * gengtype.c (adjust_field_rtx_def): Handle them.
12287         * print-rtl.c (print_rtx): Print them.
12288         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
12289         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
12290         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
12291         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
12292         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
12293         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
12294         (SYMBOL_FLAG_MACH_DEP): New.
12295         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
12296         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
12297         (assemble_static_space): Set SYMBOL_REF_FLAGS.
12298         (assemble_trampoline_template): Likewise.
12299         (output_constant_def, force_const_mem): Likewise.
12300         (default_encode_section_info): New.
12301         * output.h: Declare it.
12302         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
12303
12304 2003-04-11  Richard Henderson  <rth@redhat.com>
12305
12306         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
12307         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
12308         * optabs.c (init_optabs): Initialize them.
12309         (init_libfuncs): Use init_one_libfunc.
12310         * calls.c (expand_call): Use gcov_flush_libfunc.
12311         * expr.c (store_constructor): Use setbits_libfunc.
12312         * function.c (expand_main_function): Use init_one_libfunc.
12313         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
12314
12315 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
12316
12317         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
12318         documentation; add DECL_FRIEND_CONTEXT.
12319
12320 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12321
12322         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
12323         notes on linker selection and configuration for 64-bit HP-UX port.
12324         * doc/invoke.texi (hppa): Remove hppa text from description for
12325         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
12326         and -threads options.
12327
12328         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
12329         libc.a on libdld.sl when -static is specified and -nolibdld is not
12330         specified.
12331         * pa64-hpux.h (LIB_SPEC): Likewise.
12332         * pa-hpux11.h (LIB_SPEC): Likewise.
12333         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
12334         is not specified.
12335
12336 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
12337
12338         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
12339         not IDENTIFIER_LOCAL_VALUE.
12340
12341 2003-04-11  Richard Henderson  <rth@redhat.com>
12342
12343         PR c/10201
12344         * expr.c (expand_expr): Move DECL_RTL frobbing ...
12345         * stor-layout.c (layout_decl): ... here.
12346
12347 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
12348
12349         * doc/invoke.texi: Eliminate extra white-space caused by
12350         @gccoptlist{ on its own line.
12351         * doc/invoke.texi: Ensured there are two spaces between each option.
12352         * doc/invoke.texi: Re-wrapped option lines that were too wide.
12353         Added @gol to options that didn't have them.
12354
12355 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
12356
12357         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
12358         gcov-iov.h.
12359
12360         Simplify interface to gcov reading and writing.
12361         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
12362         gcov_alloc, gcov_modified, gcov_errored): Move into ...
12363         (struct gcov_var gcov_var): ... this static structure.
12364         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
12365         Return void.
12366         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
12367         read object.
12368         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
12369         (gcov_reserve_length): Remove.
12370         (gcov_write_tag): New.
12371         (gcov_write_length): Adjust.
12372         (gcov_read_summary, gcov_write_summary): Adjust.
12373         (gcov_eof, gcov_ok): Rename to ...
12374         (gcov_is_eof, gcov_is_error): ... here. Return error code.
12375         (gcov_save_position, gcov_resync): Rename to ...
12376         (gcov_position, gcov_seek): ... here.
12377         (gcov_skip, gcov_skip_string): Remove.
12378         (gcov_error): Remove.
12379         (gcov_open, gcov_close): Adjust.
12380         * gcov.c (find_source): Take const char *, copy it on allocation.
12381         (read_graph_file): Adjust.
12382         (read_count_file): Adjust.
12383         * libgcov.c (gcov_exit): Adjust.
12384         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
12385         tag_arc_counts, tag_summary): Return void. Adjust.
12386         (struct tag_format): Adjust proc member.
12387         (dump_file): Adjust gcov calls.
12388
12389 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
12390
12391         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
12392         mkfixinc.sh.
12393         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
12394         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
12395         build != host sysrooted builds.
12396         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
12397         TARGET_SYSTEM_ROOT even on sysrooted natives.
12398         * configure: Rebuilt.
12399
12400 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
12401
12402         * c-decl.c (struct binding_level): Add shadowed_tags and
12403         function_body; remove this_block, tag_transparent, and
12404         subblocks_tag_transparent; update comments.
12405         (clear_binding_level, lookup_tag_reverse): Kill.
12406         (make_binding_level): Use ggc_alloc_cleared or memset.
12407         (lookup_tag): Remove struct binding_level* parameter.  All
12408         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
12409         current_binding_level->tags if asked for thislevel_only or if
12410         we might have to diagnose "struct foo; union foo;"
12411         (pushlevel): Ignore argument.  Do not push another binding
12412         level on the transition from the parameters to the top level
12413         of the function body; just tweak the flags and proceed.
12414         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
12415         a function body, separate the parameter list from the
12416         top-level local variables.
12417         (set_block): Do nothing.
12418         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
12419         shadowed_tags if necessary.
12420         (warn_if_shadowing): Nuke the special case for local shadowing
12421         parameter.
12422         (pushdecl): Do not create a shadow entry if we are replacing
12423         an older decl in the same binding level.
12424         (pushdecl_function_level): Tweak for new way of indicating
12425         function scope.
12426         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
12427         (start_function): Don't set subblocks_tag_transparent.
12428         (finish_function): Fix up the binding_level stack for totally
12429         empty functions.  Otherwise, don't call poplevel.
12430
12431         * c-common.c (shadow_warning): MANDATORY argument is no longer
12432         necessary.  Always use plain warning.
12433         * c-common.h: Update to match.
12434
12435         * cfglayout.c (scope_to_insns_initialize): Clear block when we
12436         hit the FUNCTION_DECL.
12437         * function.c: Do not create cyclic tree structure.
12438
12439 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
12440
12441         * c-tree.h (struct lang_identifier): Replace global_value,
12442         local_value members with symbol_value, tag_value.  Kill
12443         implicit_decl and limbo_value.
12444         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
12445         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
12446         C_MISSING_PROTOTYPE_WARNED): Kill.
12447         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
12448         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
12449         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
12450         (implicit_decl_warning, lookup_name_current_level,
12451         record_function_scope_shadow): Don't prototype.
12452         (pushdecl_function_level): Prototype.
12453
12454         * c-decl.c (truly_local_externals): New variable.
12455         (struct binding_level): Adjust commentary.
12456         (get_function_binding_level, clear_limbo_values,
12457         record_function_scope_shadow): Kill.
12458         (lookup_name_current_level, implicit_decl_warning): Are now static.
12459         (any_external_decl, record_external_decl): New static functions.
12460         (clone_underlying type): Split out of pushdecl.
12461         (c_print_identifier): Update to match changes to struct
12462         lang_identifier.
12463         (poplevel): Delete #if 0 block.  Make externals invisible
12464         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
12465         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
12466         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
12467         (duplicate-decls): For real parm decl after a forward decl,
12468         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
12469         foo(...) { } with only a warning.  Say whether a previous
12470         declaration was implicit.
12471         (warn_if_shadowing): Now handles all shadowing, not just
12472         local-over-local.  Clarify comments.
12473         (pushdecl): Rewritten.  There is no longer a distinction
12474         between global and local symbol values; they're all
12475         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
12476         DECL_EXTERNAL decls, and use any_external_decl to check
12477         against previous externals.  Kill #if 0 blocks.  Don't
12478         tolerate error_mark_node being NULL.
12479         (pushdecl_top_level): Handle only those cases which
12480         Objective C (the only user) needs.
12481         (pushdecl_function_level): New function.
12482         (implicitly_declare): Create ordinary decls with
12483         C_DECL_IMPLICIT set.  Recycle old decls, however they got
12484         created.
12485         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
12486         for C_DECL_INVISIBLE symbols.
12487         (lookup_name_current_level): Likewise.  Use chain_member.
12488         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
12489         Use pushdecl_function_level.
12490         (builtin_function): Use C_DECL_INVISIBLE.
12491         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
12492         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
12493         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
12494         (identifier_global_value): Same.  Must scan
12495         global_binding_level in extremis.
12496
12497         * c-typeck.c (undeclared_variable): New static function, split
12498         from build_external_ref.
12499         (build_external_ref): Use DECL_CONTEXT, not
12500         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
12501         an instance variable.  Restructure for clarity.
12502         * objc/objc-act.c: Use identifier_global_value, not
12503         IDENTIFIER_GLOBAL_VALUE.
12504
12505 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
12506
12507         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
12508         not Working Paper.
12509         * doc/invoke.texi (C++ Dialect Options): Same.
12510
12511 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
12512
12513         * tree.c (tree_operand_check_failed): New function.
12514         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
12515         TREE_RTL_OPERAND_CHECK): New checking macros.
12516         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
12517         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
12518         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
12519         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
12520         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
12521         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
12522         checking macros.
12523
12524 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
12525
12526         PR inline-asm/8803
12527         * function.c (instantate_virtual_regs):  Verify that all ASM statements
12528         match after the virutal regs instantiation.
12529
12530 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
12531
12532         * ia64-protos.h (addp4_optimize_ok): New.
12533         * ia64.c (addp4_optimize_ok): New.
12534         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
12535         (*ptr_extend_plus_2): Ditto.
12536
12537 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
12538
12539         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
12540         not with convert_memory_address.
12541         (store_constructor): Ditto, and same for copy_size_rtx.
12542         (expand_expr): Ditto.
12543
12544 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
12545
12546         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
12547
12548 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
12549
12550         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
12551         even if it is configured to be write-through.
12552
12553 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
12554
12555         * config/s390/s390.c (larl_operand): Do not allow symbols
12556         marked with '@'.
12557         (s390_encode_section_info): Mark symbols with forced 1-byte
12558         alignment with '@'.
12559         (s390_strip_name_encoding): Strip '@'.
12560         (legitimize_pic_address): Handle symbols that are not valid
12561         LARL operands in 64-bit mode.
12562
12563 2003-04-10  Andrew Haley  <aph@redhat.com>
12564
12565         * tree-inline.c (inlinable_function_p): Disable inlining for
12566         synchronized methods.
12567
12568 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
12569
12570         * c-common.h (lang_statement_code_p): Remove declaration.
12571         (statement_code_p): Ditto.
12572         (c_common_stmt_codes): Define; list of c-common statement codes.
12573         (statement_code_p): New extern declaration.
12574         (STATEMENT_CODE_P): Define.
12575         (INIT_STATEMENT_CODES): Define.
12576         * c-common.c (statement_code_p): Kill the function, declare
12577         as an array of bools instead.
12578         (lang_statement_code_p): Remove.
12579         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
12580         (c_safe_from_p): Ditto.
12581         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
12582         to initialize the statement_code_p array.
12583         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
12584         statement_code_p.
12585         (copy_tree_r): Ditto.
12586         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
12587         statement tree codes.
12588         * cp/lex.c (cxx_init): Add missing print line break.  Use
12589         INIT_STATEMENT_CODES to initialize the statement_code_p array.
12590         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
12591         instead of statement_code_p.
12592         * cp/pt.c (tsubst_expr): Ditto.
12593         * cp/tree.c (verify_stmt_tree_r): Ditto.
12594         (cp_statement_code_p): Remove.
12595         (init_tree): Don't set lang_statement_code_p, it's gone.
12596
12597 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
12598             Zack Weinberg  <zack@codesourcery.com>
12599
12600         * regrename.c (struct du_chain): Use a bitfield for reg_class.
12601         * cse.c (struct qty_table_elem, struct table_elt, struct set):
12602         Use bitfields for fields holding enum rtx_code or
12603         enum machine_mode values.  Add comments explaining size choices.
12604
12605 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
12606
12607         * config/fp-bit.c (unpack_d): Handle pair of doubles with
12608         different signs correctly.
12609
12610 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
12611
12612         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
12613         (reg_pending_barrier): Make it of the enumeration type.
12614         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
12615         TRUE_BARRIER.
12616         (sched_analyze): Ditto.
12617         (sched_analyze_insn): Ditto.  Use anti-dependencies for
12618         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
12619         (init_deps_global): Initialize the barrier as NO_BARRIER.
12620
12621 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
12622
12623         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
12624         Check that asm insn starts on a new cycle.  Add nops after asm
12625         insn to end bundle.
12626         (bundling): Move insn type evaluation from the loop.  Call
12627         issue_nops_and_insn with the new parameter.  Ignore changing
12628         position for nops after asm insn.
12629
12630 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
12631
12632         * optabs.c: Comment that gen_add2_insn and others may actually
12633         return emitted insns, if the gen functions turn out to return
12634         emitted insns.
12635         * reload1.c (reload_cse_move2add): Cope with emitted insns from
12636         gen_add2_insn.
12637
12638 2003-04-09  Richard Henderson  <rth@redhat.com>
12639
12640         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
12641         but not tls_symbolic_operand.
12642         (ia64_expand_load_address): Remove scratch operand.
12643         (ia64_expand_tls_address): Split out from ia64_expand_move.
12644         (ia64_expand_move): Split symbolics only after reload.
12645         (ia64_emit_cond_move): New.
12646         * config/ia64/ia64-protos.h: Update.
12647         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
12648         (symbolic splitter): Accept SImode operands too.
12649         (cmove splitter): Use ia64_emit_cond_move.
12650
12651 2003-04-09  Nick Clifton  <nickc@redhat.com>
12652
12653         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
12654         newer.
12655         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
12656         instead of -mno-fpu.
12657         * config/arm/semi.h (ASM_SPEC): Likewise.
12658         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
12659         but only if -msoft-float is specified pass.  Otherwise pass
12660         -mfpu=softvfp.
12661
12662 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12663
12664         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
12665         free_EXPR_LIST_node.
12666
12667 2003-04-08  Roger Sayle  <roger@eyesopen.com>
12668
12669         * fold-const.c (fold):  Use "fold" following build in more places.
12670         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
12671         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
12672
12673 2003-04-08  Roger Sayle  <roger@eyesopen.com>
12674
12675         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
12676         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
12677         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
12678         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
12679         Delete function scope "fcode" variable to avoid shadowing.
12680
12681 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
12682
12683         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
12684         Take into account DWARF_INITIAL_LENGTH_SIZE.
12685
12686 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
12687
12688         * reorg.c (fill_slots_from_thread): When considering changing the
12689         insn following a reg-to-reg copy insn to use the source reg of the
12690         copy, bail out if there's overlap between the registers.
12691
12692 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12693
12694         * function.c (postponed_insns): New.
12695         (purge_addressof_1): Postpone processing of insns if addressofs
12696         are not put into stack.
12697         (purge_addressof): Process postponed insns.
12698
12699 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
12700
12701         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
12702         this is FP_MODE_DOUBLE .
12703         * sh.c (ra.h): #include.
12704         (push_regs): Add second parameter.  Changed all callers.
12705         If necessary, set fpscr before saving floating point registers.
12706         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
12707         do saves / restores with SZ == 1.
12708         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
12709         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
12710         registers are being restored, restore FPSCR only after restoring them.
12711
12712 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
12713
12714         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
12715         regardless of architecture.
12716         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
12717
12718 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
12719
12720         * sh.c (push_regs, calc_live_regs): Return int.  Take single
12721         HARD_REG_SET * parameter.  Changed all callers.
12722
12723 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
12724
12725         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
12726         GOTOFF operand.
12727         (legitimize_pic_address): Move plus outside the unspec.
12728         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
12729         for validity.
12730
12731 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
12732
12733         * gcov-io.h (gcov_save_position): Remove __inline__ from
12734         declaration.
12735
12736 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
12737
12738         * doc/install.texi: Use @command and @samp for single- and
12739         multi-word commands respectively.
12740         * doc/makefile.texi: Likewise.
12741         * doc/sourcebuild.texi: Likewise.
12742
12743 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
12744             Richard Henderson  <rth@redhat.com>
12745
12746         PR c/9516
12747         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
12748         favor of looping and tail recursion for TREE_LIST and binops.
12749
12750 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12751
12752         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
12753         for insns without luid.
12754
12755 2003-04-07  Glen Nakamura  <glen@imodulo.com>
12756
12757         PR opt/8634
12758         * explow.c (maybe_set_unchanging): Don't flag non-static const
12759         aggregate type initializers with RTX_UNCHANGING_P.
12760
12761 2003-04-07  Richard Henderson  <rth@redhat.com>
12762
12763         PR opt/8634
12764         * function.c (purge_addressof_1): Don't try arithmetics for
12765         unchanging memories.
12766
12767 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
12768
12769         * doc/sourcebuild.texi (Test Suites): Document testing support for
12770         gcov and profile-directed optimizations; describe gcc.misc-tests.
12771
12772 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
12773
12774         PR target/10077
12775         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
12776
12777 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
12778
12779         * doc/rtl.texi (Comparison operations): Update to
12780         record the allowed comparison modes.
12781
12782 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
12783
12784         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
12785         V2SI_type_node to opaque_V2SI_type_node.  Rename all
12786         V2SF_type_node to opaque_V2SF_type_node.
12787         (rs6000_init_builtins): Define opaque_V2SI_type_node and
12788         opaque_V2SF_type_node.
12789         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
12790         opaque_V2SF_type_node are opaque types.
12791
12792 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
12793
12794         * gcse.c (replace_store_insn): Use single_set.
12795
12796 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
12797
12798         Change gcov file interface to single file at a time.
12799         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
12800         Convert to C89 prototypes.
12801         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
12802         gcov_error, gcov_modified): New static variables.
12803         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
12804         functions.
12805         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
12806         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
12807         (gcov_read_summary, gcov_write_summary): Adjust.
12808         (gcov_save_position, gcov_reserve_length, gcov_write_length):
12809         Adjust.
12810         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
12811         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
12812         (da_file_position, da_file_seek, da_file_write, da_file_read):
12813         Remove.
12814         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
12815         * gcov.c (gcov_type): Don't typedef here.
12816         (IN_GCOV): #define
12817         (read_graph_file, read_count_file): Adjust.
12818         * gcov-dump.c (gcov_type): Don't typedef here.
12819         (IN_GCOV): #define.
12820         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
12821         Remove FILE parameter, adjust.
12822         (struct tag_format): Adjust proc member.
12823         (dump_file): Adjust.
12824         * libgcov.c (IN_LIBGCOV): #define.
12825         (gcov_exit): Adjust.
12826         * loop-init.c: Don't #include gcov-io.h
12827         * profile.c (struct counts_entry): New structure to hold counter
12828         values.
12829         (struct section_reference, struct da_index_entry): Remove.
12830         (bbg_file, da_file): Remove.
12831         (htab_counts_index_hash, htab_counts_index_eq,
12832         htab_counts_index_del): Replace with ...
12833         (htab_counts_entry_hash, htab_counts_entry_eq,
12834         htab_counts_entry_del): ... these.
12835         (cleanup_counts_index, index_counts_file): Remove.
12836         (read_counts_file): New function.
12837         (get_exec_counts): Adjust.
12838         (compute_branch_probabilities): Don't free the exec counts here.
12839         (branch_prob): Adjust.
12840         (init_branch_prob): Adjust.
12841         (end_branch_prob): Adjust.
12842
12843 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
12844
12845         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12846         -mfloat-gprs.
12847
12848         * config/rs6000/rs6000.c: Delete rs6000_fprs.
12849         Declare rs6000_float_gprs.
12850         Declare rs6000_float_gprs_string.
12851         (rs6000_parse_float_gprs_option): New.
12852         (rs6000_override_options): Genericize rs6000_parse_* calls to use
12853         rs6000_parse_yes_no_option.
12854         Change check for cpu=8540, to use TARGET_E500.
12855         (rs6000_parse_isel_option): Delete.
12856         (rs6000_parse_spe_option): Delete.
12857         (rs6000_parse_vrsave_option): Delete.
12858
12859         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
12860         Define rs6000_float_gprs_string.
12861         (TARGET_OPTIONS): Add rs6000_float_gprs option.
12862
12863         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
12864
12865         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
12866
12867 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
12868
12869         PR opt/10024
12870         * cfglayout.c (cfg_layout_redirect_edge):
12871         Redirect any branch edges unified with the fallthru one.
12872         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
12873         case fallthru edges when called via cfglayout.c
12874
12875 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
12876
12877         * c-typeck.c (output_init_element): Check for type == error_mark_node.
12878
12879 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
12880
12881         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
12882         split.
12883         (a splitter): Do zero-extension via HImode.
12884
12885 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
12886
12887         * doc/invoke.texi: Eliminate extra white-space caused by
12888         @gccoptlist{ on its own line.
12889         * doc/invoke.texi: Ensured there are two spaces between each option.
12890         * doc/invoke.texi: Re-wrapped option lines that were too wide.
12891         Added @gol to options that didn't have them.
12892
12893 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
12894
12895         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
12896
12897 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
12898
12899         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
12900         at the sizes of the relevant structures, rather than relying
12901         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
12902         sizes of any such we don't know about.  Use
12903         lang_hooks.identifier_size for IDENTIFIER_NODE.
12904
12905         (initializer_zerop): Use CONSTRUCTOR_ELTS.
12906         * tree.def: Update commentary.  Make fourth element of
12907         the definition for all 'c' and 'x' nodes zero.
12908
12909         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
12910         * langhooks-def.h: Update to match.
12911         * langhooks.c: New default, lhd_tree_size.
12912
12913         * c-common.def (SRCLOC): Kill.
12914         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
12915         Remove entirely - was already #if-ed out.
12916
12917
12918 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
12919
12920         * mklibgcc.in: Use a here document to avoid running afoul of
12921         shells that generate control-A from "echo \1".
12922
12923 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
12924
12925         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
12926         option.
12927
12928         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12929         rs6000_spe.
12930
12931         * config/rs6000/eabi.h (TARGET_E500): Define.
12932
12933         * config/rs6000/rs6000.h (TARGET_E500): Define.
12934         (TARGET_OPTIONS): Add spe= option.
12935         Declare rs6000_spe and rs6000_spe_string extern.
12936
12937         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
12938         Change TARGET_SPE to TARGET_E500.
12939         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
12940         !TARGET_FPRS.
12941         (print_operand): Same.
12942         (rs6000_generate_compare): Same.
12943         (output_cbranch): Same.
12944         (rs6000_spe): Declare.
12945         (rs6000_spe_string): Declare.
12946         (rs6000_override_options): Call rs6000_parse_spe_option.
12947         (rs6000_parse_spe_option): New.
12948
12949 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
12950
12951         * hashtable.c (gcc_obstack_init): Delete this function
12952         and everything related to it.
12953         * hashtable.h: Remove prototype.
12954         * bitmap.c (bitmap_element_allocate): Cleanup redundant
12955         defines.  Cleanup some unnecessary whitespace.
12956         * defaults.h (obstack_chunk_alloc): Redefine with
12957         appropriate casts for libiberty obstacks.
12958         (obstack_chunk_free): Ditto.
12959         (OBSTACK_CHUNK_SIZE): Define, default to 0.
12960         (gcc_obstack_init): Define as a call to _obstack_begin.
12961         * tree.c (print_obstack_statistics): Delete this unused
12962         function.
12963         * tree.h (obstack): Don't forward-declare.
12964         (print_obstack_statistics): Delete prototype.
12965         (print_obstack_name): Ditto.
12966         (gcc_obstack_init): Ditto.
12967         * rtl.h (gcc_obstack_init): Ditto.
12968         * java/jv-scan.c (gcc_obstack_init): Delete this
12969         function, its prototype and related defines.
12970         * java/jvgenmain.c (gcc_obstack_init): Delete this
12971         function, and related defines.
12972         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
12973         (obstack_chunk_free): Ditto
12974
12975 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
12976
12977         * dbxout.c (dbxout_handle_pch): Move prototype out from
12978         #if defined DBX_DEBUGGING_INFO.
12979
12980 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
12981
12982         * gcov.c (struct arc_info): Replace local_span with cycle.
12983         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
12984         (solve_flow_graph): Set is_call_return.
12985         (add_line_counts): Adjust. In block mode, blocks attach to last line.
12986         (accumulate_line_counts): Find graph cycles, not spanning tree.
12987         (output_branch_count): Adjust.
12988         (output_lines): Adjust.
12989         * doc/gcov.texi: Update.
12990
12991 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
12992
12993         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
12994         the second alternative to "#".
12995
12996 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
12997
12998         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
12999         (single_zero_operand): Likewise.
13000
13001 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
13002
13003         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
13004         * df.c: Include alloc-pool.h, not obstack.h.
13005         (df_ref_obstack): Remove.
13006         (df_ref_pool, df_link_pool): Add pools.
13007         (df_alloc): Init the new pools.
13008         (df_free): And free them.
13009         (df_link_create): Use the pools.
13010         (df_ref_create): Ditto.
13011
13012 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
13013
13014         * simplify-rtx.c: Fix formatting.
13015
13016 2003-04-05  Andrew Pinski  <apinski@apple.com>
13017
13018         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
13019         reg with reg1 == reg2 and offset1 = -8.
13020
13021 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
13022
13023         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
13024         multiply costs.  Correct Power4 divide costs.
13025         * config/rs6000/power4.md: Restore multiply and FP latency.
13026
13027 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13028
13029         * alias.c (find_base_term): Export.
13030         * rtl.h (find_base_term): Declare.
13031         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
13032         instead of flag_exceptions.  Move test for parameter passing ...
13033         (store_killed_in_insn): ... here.
13034
13035 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13036
13037         PR bootstrap/10267
13038         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
13039         for configuring.
13040
13041 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
13042
13043         * dbxout.c (scope_labelno): Add GTY.
13044         (have_used_extensions): Add GTY.
13045         (source_label_number): Add GTY.
13046         (lastfile): Add GTY.
13047         (lastfile_is_base): New.
13048         (base_input_file): New.
13049         (dbxout_handle_pch): New.
13050         (dbx_debug_hooks): Add handle_pch.
13051         (xcoff_debug_hooks): Likewise.
13052         (dbxout_function_end): Remove scope_labelno.
13053         (dbxout_init): Set base_input_file.
13054         (dbxout_handle_pch): New.
13055         (dbxout_source_file): Honour lastfile_is_base.
13056         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
13057         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
13058         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
13059         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
13060         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
13061         * debug.h (struct gcc_debug_hooks): Add handle_pch.
13062         * c-pch.c (pch_init): Don't call start_source_file, but do call
13063         handle_pch.
13064         (c_common_write_pch): Call handle_pch.
13065         (c_common_read_pch): Don't call start_source_file,
13066         or end_source_file.
13067
13068 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
13069
13070         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
13071         use of default attributes to agree MEM_ALIGN macro.
13072
13073 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
13074
13075         * dbxout.c (dbxout_type): When printing type index of range type
13076         whose bounds are printed in octal format, print type of parent type if
13077         it exists so enumerated type descriptions are not transformed
13078         into unsigned types.
13079
13080 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
13081
13082         * config/h8300/h8300-protos.h: Add a prototype for
13083         compute_a_shift_cc.
13084         * config/h8300/h8300.c (shift_one): Update the CC status.
13085         (shift_two): Likewise.
13086         (output_a_shift_cc): Set cc_inline and cc_special.
13087         (compute_a_shift_cc): New.
13088         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
13089
13090 2003-04-04  Richard Henderson  <rth@redhat.com>
13091
13092         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
13093
13094 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
13095
13096         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
13097         * fixinc/fixincl.x: Rebuilt.
13098         * fixinc/tests/base/stdio.h: Regenerated.
13099
13100 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
13101
13102         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
13103
13104 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
13105
13106         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
13107         (NORMAL_MODE).
13108         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
13109
13110 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13111
13112         * doc/contrib.texi (Contributors): Add entries for Wolfgang
13113         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
13114         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
13115         Danny Smith, and Ulrich Weigand.
13116         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
13117         entry.
13118
13119 2003-04-04  Nick Clifton  <nickc@redhat.com>
13120
13121         * config/sparc/sol2-bi.h: Revert previous delta.
13122         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
13123
13124 2003-04-04  Nick Clifton  <nickc@redhat.com>
13125
13126         * config/v850/v850.c (expand_prologue): Only use register save
13127         helper functions if long calls are not being used.
13128         Add a clobber of r11 id using long calls.
13129         (pattern_is_ok_for_prologue): Account for the extra clobber.
13130         (construct_save_jarl): Likewise.
13131         * config/v850/v850.md (prolog pattern): Do not use this pattern
13132         for v850e's.
13133
13134 2003-04-04  Andreas Schwab  <schwab@suse.de>
13135
13136         * stor-layout.c (layout_decl): Avoid syntax error in last change
13137         when PCC_BITFIELD_TYPE_MATTERS is defined but not
13138         EMPTY_FIELD_BOUNDARY.
13139
13140 2003-04-03  Jason Merrill  <jason@redhat.com>
13141
13142         PR c/10175
13143         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
13144         Look backwards for a line note.
13145
13146 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
13147
13148         * fix-header.c (read_scan_file): Defer switch processing.
13149
13150 2003-04-03  Matt Austern  <austern@apple.com>
13151
13152         * cpppch.c (reset_ht): Remove.
13153         (cpp_read_state): Remove loop to reset hashtable identifiers.
13154         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
13155         after pch file is written.
13156         * ggc.h (gt_pch_fixup_stringpool): Declare.
13157         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
13158         hashnode's value to another hashtable, then clear the original.
13159         (saved_ident_hash): Define.
13160         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
13161         store definitions in ident_hash, and clear ident_hash.
13162         (gt_pch_fixup_stringpool): Define.  Restore definitions from
13163         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
13164
13165 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
13166
13167         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
13168
13169 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13170
13171         PR optimization/10157
13172         * gcse.c (can_copy_p): Rename it to can_copy.
13173         (can_copy_init_p): Remove.
13174         (compute_can_copy): Use can_copy instead of can_copy_p.
13175         (can_copy_p): New exported function. Call compute_can_copy.
13176         (hash_scan_set): Use it.
13177         (gcse_main): Don't call compute_can_copy.
13178         (bypass_jumps): Don't call compute_can_copy.
13179         * rtl.h (can_copy_p): Declare.
13180         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
13181         copy if the mode doesn't support copy operations.
13182
13183 2003-04-03  Jason Merrill  <jason@redhat.com>
13184
13185         * Makefile.in (unstrap): Also remove stage_last.
13186
13187         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
13188         (dwarf2out_source_line): Don't do anything if line==0.
13189
13190         * stor-layout.c (do_type_align): New fn, split out from...
13191         (layout_decl): ...here.  Do all alignment calculations for
13192         FIELD_DECLs here.
13193         (update_alignment_for_field): Not here.
13194         (start_record_layout, debug_rli): Remove unpadded_align.
13195         * tree.h (struct record_layout_info_s): Remove unpadded_align.
13196         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
13197         or DECL_MODE on the CONST_DECLs.
13198         (finish_struct): Don't mess with DECL_ALIGN.
13199
13200 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
13201
13202         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
13203
13204 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
13205
13206         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
13207         function is an interrupt handler.
13208
13209         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
13210         restoring target registers with EH_RETURN_STACKADJ_RTX; use
13211         multiple registers in round-robin fashion.
13212
13213 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13214
13215         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
13216         * system.h (CHAR_BITFIELD): New.
13217
13218 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
13219
13220         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
13221         and LE.
13222         (another peephole2): Likewise.
13223
13224 2003-04-03  Nick Clifton  <nickc@redhat.com>
13225
13226         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
13227         (DEF_ARCH64_SPEC): Likewise.
13228
13229 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
13230
13231         * i386.c (constant_address_p): Use legitimate_constant_p.
13232         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
13233
13234 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13235
13236         * config/h8300/h8300-protos.h: Add a prototype for
13237         gtle_operator.
13238         * config/h8300/h8300.c (gtle_operator): New.
13239         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
13240         gtle_operator.
13241         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
13242         and LE.
13243
13244 2003-04-02  Richard Henderson  <rth@redhat.com>
13245
13246         * libgcc-std.ver (_Unwind_GetCFA): New.
13247         * unwind-dw2.c (_Unwind_GetCFA): New.
13248         * unwind-libunwind.c (_Unwind_GetCFA): New.
13249         * unwind-sjlj.c (_Unwind_GetCFA): New.
13250         * unwind.h: Declare it.
13251
13252 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
13253
13254         PR inline-asm/8088
13255         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
13256         when MMX/SSE is not available.
13257
13258 2003-04-02  Mike Stump  <mrs@apple.com>
13259
13260         * doc/install.texi (Specific): Update pointers to apple.com.
13261
13262 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
13263
13264         * i386.c (override_options):  Disable red zone by default on i386.
13265         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
13266         Do not test TARGET_64BIT together with TARGET_RED_ZONE
13267
13268 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13269
13270         * config/h8300/h8300.md (a peephole2): Tighten the condition.
13271
13272 2003-04-02  Richard Henderson  <rth@redhat.com>
13273
13274         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
13275
13276 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13277
13278         * config/h8300/h8300.md (a peephole2): New.
13279
13280 2003-04-02  Richard Henderson  <rth@redhat.com>
13281
13282         * except.c (sjlj_find_directly_reachable_regions): Recognize when
13283         must-not-throw region has been deleted.
13284
13285 2003-04-02  Richard Henderson  <rth@redhat.com>
13286
13287         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
13288         optimization when flag_exceptions not enabled.
13289
13290 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
13291
13292         * config/rs6000/rs6000.c
13293         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
13294         macros.
13295         (rs6000_issue_rate): Add case for 8540.
13296         (rs6000_use_sched_lookahead): New function.
13297
13298         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
13299         units into MU ones.
13300         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
13301         reservation before retirement.
13302         (ppc8540_multiply, ppc8540_load, ppc8540_store,
13303         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
13304         Remove additional cycle in the reservation before retirement.
13305         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
13306         reservation of ppc8540_issue.
13307
13308 2003-04-02  Andreas Schwab  <schwab@suse.de>
13309
13310         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
13311
13312 2003-04-01  Richard Henderson  <rth@redhat.com>
13313
13314         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
13315         notes for nothrow calls if flag_forced_unwind_exceptions.
13316         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
13317         (sjlj_find_directly_reachable_regions): Likewise.
13318         (reachable_handlers): Likewise.
13319         (can_throw_external): Likewise.
13320         (collect_one_action_chain): Record cleanups after catch-all and
13321         must-not-throw if flag_forced_unwind_exceptions.
13322         * flags.h (flag_forced_unwind_exceptions): Declare.
13323         * toplev.c (flag_forced_unwind_exceptions): New.
13324         (lang_independent_options): Add it.
13325         * doc/invoke.text: Add it.
13326
13327 2003-04-01  David Mosberger <davidm@hpl.hp.com>
13328
13329         * config/ia64/crti.asm: Clean up trailing whitespace.
13330         Remove trailing hashes (#) from identifiers.
13331
13332         * config/ia64/crtn.asm: Ditto.
13333
13334         * config/ia64/crtend.asm: Remove trailing hashes (#) from
13335         identifiers.
13336         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
13337         directives.  Drop explicit bundling---it just makes the code
13338         harder to read.  Don't save/restore gp needlessly.
13339
13340         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
13341         identifiers (they're only needed if the identifier would clash
13342         with a register name otherwise).
13343         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
13344         directives.  Drop explicit bundling---it just makes the code
13345         harder to read.
13346         (__do_jv_register_classes): Ditto.
13347         (.fini_array): Remove "progbits" (newer
13348         assemblers don't like wrong section-types).
13349         (.init_array): Ditto.
13350
13351 2003-04-01  Roger Sayle  <roger@eyesopen.com>
13352
13353         PR fortran/9974
13354         * gcse.c (reg_killed_on_edge): New function to test whether the
13355         given reg is overwritten by any instruction queued on an edge.
13356         (bypass_block): Ignore substitutions killed on incoming edges.
13357         Don't bypass outgoing edges that have queued instructions.
13358
13359 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
13360
13361         * real.h (EXP_BITS): Make room for...
13362         (struct real_value): ... added canonical bit.
13363         (struct real_format): Added pnan.
13364         (mips_single_format, mips_double_format, mips_extended_format,
13365         mips_quad_format): New.
13366         * real.c: Copy p to pnan in all formats.
13367         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
13368         (real_nan): Use pnan to compute significand's shift.
13369         (real_identical): Disregard significand in canonical
13370         NaNs.
13371         (real_hash): Likewise.  Take signalling into account.
13372         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
13373         Disregard significand bits in canonical NaNs.  Set all bits of
13374         canonical NaN if !qnan_msb_set.
13375         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
13376         qnan_msb_set to tell the base double format.
13377         (ibm_extended_format): Use 53 as pnan.
13378         (mips_single_format, mips_double_format, mips_extended_format,
13379         mips_quad_format): Copied from the corresponding ieee/ibm
13380         formats, with qnan_msb_set false.
13381         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
13382         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
13383         * config/mips/mips.c (override_options): Use mips_single_format
13384         and mips_double_format.  Default TFmode to mips_quad_format.
13385         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
13386         * config/mips/t-irix6: Likewise.
13387         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
13388         * config/fp-bit.c (pack_d, unpack_d): Obey it.
13389
13390 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
13391
13392         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
13393         (live_image_destructor): Reset image to initial state.
13394         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
13395
13396 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
13397
13398         * config/sparc/sparc.c (input_operand): Accept bare
13399         CONSTANT_P_RTX operands.
13400
13401 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13402
13403         * gcse.c (struct ls_expr): Added pattern_regs field.
13404         (ldst_entry): Initialize it.
13405         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
13406         (store_ops_ok): Use regs precomputed by them.
13407         (find_loads, store_killed_in_insn, load_kills_store): Change return
13408         type to bool.
13409         (store_killed_before, store_killed_after): Take position of register
13410         set in account.
13411         (reg_set_info): Store position of the setter.
13412         (gcse_main): Enable store motion.
13413         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
13414         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
13415         sharing.
13416         (simple_mem): Enable store motion of non-symbol mems.
13417         (regvec): Type changed.
13418         (LAST_AVAIL_CHECK_FAILURE): New.
13419         (compute_store_table_current_insn): New.
13420         (build_store_vectors): Computation of availability and anticipatability
13421         moved ...
13422         (compute_store_table, find_moveable_store): ... here.
13423         (delete_store): Remove senseless comment.
13424         (store_motion): Reorganize.
13425
13426 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
13427
13428         * config/mips/mips.c (override_options): Provide mappings for
13429         HI_REGNUM and LO_REGNUM.
13430         * config/mips/mips.h (MD_DBX_FIRST): Define.
13431
13432 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13433
13434         * combine.c (merge_outer_ops): Fix typo.
13435
13436         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
13437
13438 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
13439
13440         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
13441         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
13442         imul_compare.  Add lmul_compare.
13443         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
13444         in second pair of dispatch slots.  Model stores more accurately.
13445         Tweak multiply model.  Add bypasses for CR instructions dependent
13446         on complicated compares.
13447         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
13448         (muldi3): Add lmul_compare patterns.
13449         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
13450         and FPSTORE_UX to split instructions and add COMPARE,
13451         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
13452         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
13453         (rs6000_rtx_costs): Separate POWER4 multiply case.
13454
13455 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
13456
13457         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
13458         Do nothing if __builtin_return_address was not used.
13459
13460 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
13461
13462         * i386.md (test patterns):  Allow memory operand in operand1.
13463
13464 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
13465
13466         * testsuite/gcc.c-torture/execute/simd-3.c: New.
13467
13468         * expr.c (expand_expr): Handle VECTOR_CST.
13469         (const_vector_from_tree): New.
13470
13471         * varasm.c (output_constant): Handle VECTOR_CST.
13472
13473         * c-typeck.c (digest_init): Build a vector constant from a
13474         VECTOR_TYPE.
13475
13476         * config/rs6000/rs6000.c: Remove prototype for
13477         easy_vector_constant.
13478         (easy_vector_constant): Add mode parameter.  Rewrite to handle
13479         more easy constants.
13480         (rs6000_emit_move): Pass mode to easy_vector_constant.
13481         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
13482         (emit_easy_vector_insn): New.
13483         (easy_vector_same): New.
13484         (EASY_VECTOR_15): New macro.
13485         (EASY_VECTOR_15_ADD_SELF): New macro.
13486         (bdesc_2arg): Rename to xorv2si3.
13487         (easy_vector_constant_add_self): New.
13488         (input_operand): Allow vector constants.
13489
13490         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
13491         easy_vector_constant, easy_vector_constant_add_self.
13492         (EXTRA_CONSTRAINT): Add 'W'.
13493
13494         * config/rs6000/rs6000-protos.h: Add prototype for
13495         easy_vector_constant, emit_easy_vector_insn.
13496
13497         * config/rs6000/altivec.md (xorv8hi3): New.
13498         (xorv16qi3): New.
13499         Remove all _const0 patterns.
13500         (movv4si_internal): Rewrite to use code.  Add vector constant to
13501         vector alternative.  Add splitter.
13502         (movv8hi_internal): Same.
13503         (movv16qi_internal): Same.
13504         (movv4sf_internal): Same.
13505         Change the unspecs for vspltis* to use constants.
13506
13507         * config/rs6000/spe.md ("xorv4hi3"): New.
13508         ("spe_evxor"): Rename to xorv2si3.
13509         ("xorv1di3"): New.
13510         Remove all _const0 patterns.
13511         (movv2si_internal): Rewrite to use code.  Add vector constant to
13512         alternatives.  Add splitter.
13513         (movv4hi_internal): Add vector constant to alternatives.
13514         (movv1di_internal): Same.
13515         (movv2sf_internal): Same.
13516
13517 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
13518
13519         PR c/9936
13520         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
13521         variably-sized arrays in parameters.
13522         (set_save_expr_context): New function.
13523         (c_expand_body): Use it, via walk_tree.
13524
13525 2003-03-31  Eric Christopher  <echristo@redhat.com>
13526
13527         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
13528         (combinable_i3pat): Remove call to expand_field_assignment and
13529         #if 0'd code.
13530
13531 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
13532
13533         PR c++/10278
13534         * c-common.c (finish_label_address_expr): Handle the
13535         error_mark_node.
13536
13537 2003-03-31  Richard Henderson  <rth@redhat.com>
13538
13539         * real.c (real_identical): Reorg so as to not compare
13540         signalling for normals.
13541
13542 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
13543
13544         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
13545
13546 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
13547
13548         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
13549         notes as they are boggus.
13550         (m68hc11_gen_movqi): Likewise.
13551
13552 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
13553
13554         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
13555         save the soft registers after the frame pointer so that gdb can unwind
13556         the frame more easily.
13557         (expand_epilogue): Likewise in opposite order; allow to use X register
13558         as scratch if the return value is by reference.
13559
13560 2003-03-31  Jason Merrill  <jason@redhat.com>
13561
13562         PR java/10145
13563         * stor-layout.c (update_alignment_for_field): Respect
13564         DECL_USER_ALIGN for zero-length bitfields, too.
13565         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
13566         fields.
13567
13568 2003-03-31  Matt Austern  <austern@apple.com>
13569
13570         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
13571         (count_defs): Keep track of number of defs as well as total size.
13572         (write_defs): Put every definition in cpp_savedstate's defs array.
13573         (comp_hashnode): Define.  Comparison function for qsort.
13574         (cpp_write_pch_deps): Sort definitions before writing them.
13575         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
13576         (collect_ht_nodes): Define.
13577         (cpp_valid_state): When verifying that undefined identifiers in
13578         the pch file are still undefined, read a sorted list of undefined
13579         identifiers, collect all defined identifiers into a sorted list,
13580         and walk through both lists to make sure there's no match.
13581
13582 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13583
13584         * config/h8300/h8300.md (a peephole2): New.
13585
13586 2003-03-31  Michael Matz  <matz@suse.de>
13587
13588         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
13589
13590 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
13591
13592         PR target/10177
13593         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
13594         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
13595         all call-clobbered registers as used.
13596
13597 2003-03-31  Michael Matz  <matz@suse.de>
13598
13599         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
13600         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
13601
13602 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
13603
13604         * gcov.c: Add -a & -u options.
13605         (struct arc_info): Add local_span, is_call_non_return,
13606         is_nonlocal_return, is_unconditional flags, remove is_call flag.
13607         (struct block_info): Add flags, is_call_site, is_nonlocal_return
13608         members. Make encodings a union with span member.
13609         (struct function_info): Add blocks_executed, line, src, line_next
13610         members.
13611         (struct coverage_info): Make branches a union with blocks member.
13612         (struct source_info): Add functions member.
13613         (object_summary, program_count): New global variables.
13614         (flag_all_blocks, flag_unconditional): New flags.
13615         (find_source, output_branch_count): New functions.
13616         (print_usage): Adjust.
13617         (options): Adjust.
13618         (process_args): Adjust.
13619         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
13620         <GCOV_TAG_BLOCKS>: Read flags.
13621         <GCOV_TAG_LINES>: Adjust.
13622         (read_count_file): Process SUMMARY tags.
13623         (solve_flow_graph): Set is_unconditional and clear is_call_site
13624         appropriately.
13625         (add_branch_counts): Adjust. Don't count unconditional branches.
13626         (add_line_counts): Deal with all-blocks mode, accumulate block
13627         coverage.
13628         (accumulate_line_counts): Adjust, generate local spanning tree for
13629         all-blocks mode.
13630         (output_lines): Adjust.
13631         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
13632         * doc/gcov.texi: Document.
13633
13634 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13635
13636         * config/h8300/h8300.md: Organize peephole2's that transform
13637         (compare (reg:HI) (const_int)).
13638
13639 2003-03-31  Roger Sayle  <roger@eyesopen.com>
13640
13641         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
13642         (init_emit_once): Initialize dconstm2 and dconsthalf here.
13643         * real.h (dconstm2, dconsthalf): Add prototypes here.
13644         * real.c (real_sqrt): Use dconsthalf rather than local copy.
13645         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
13646         exp(x/2.0) remember to fold the division if possible.
13647         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
13648         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
13649         1.0/(x*x) and pow(x,0.5) as sqrt(x).
13650
13651 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13652
13653         * config/h8300/h8300.md (a new peephole2): New.
13654
13655 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
13656
13657         * gcse.c (simple_mem): Return false for floating-point accesses
13658         if flag_float_store is true.
13659
13660 2003-03-30  Roger Sayle  <roger@eyesopen.com>
13661
13662         * gcse.c (gcse_constant_p): New function to identify constants
13663         suitable for constant propagation, including COMPARE with two
13664         integer constant arguments.
13665         (hash_scan_set): Use gcse_constant_p.
13666         (find_avail_set): Likewise.
13667         (cprop_insn): Likewise.
13668         (do_local_cprop): Likewise.
13669         (find_implicit_sets): Likewise.
13670         (find_bypass_set): Likewise.
13671
13672 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
13673
13674         * except.h: Remove definition of varray_type.
13675
13676 2003-03-30  Richard Henderson  <rth@redhat.com>
13677
13678         PR opt/10011, opt/10252:
13679         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
13680         before post-gcse cse pass.
13681
13682 2003-03-30  Roger Sayle  <roger@eyesopen.com>
13683
13684         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
13685
13686 2003-03-30  DJ Delorie  <dj@redhat.com>
13687
13688         * profile.c (instrument_edges): Make sure any newly created
13689         jump insns have correct jump label info.
13690
13691 2003-03-30  Richard Henderson  <rth@redhat.com>
13692
13693         * cfgbuild.c (make_edges): Use tablejump_p.
13694         * cfgcleanup.c (label_is_jump_target_p): Likewise.
13695         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
13696         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
13697         (try_redirect_by_replacing_jump): Likewise.
13698         (redirect_edge_and_branch): Likewise.
13699         * cse.c (fold_rtx): Likewise.
13700         * jump.c (delete_related_insns): Likewise.
13701         * rtlanal.c (get_jump_table_offset): Likewise.
13702         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
13703
13704 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13705
13706         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
13707         (STRICT2_WARN): Likewise.
13708
13709 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13710
13711         PR other/6955
13712         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
13713         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
13714
13715 2003-03-30  Richard Henderson  <rth@redhat.com>
13716
13717         PR c/10083
13718         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
13719         don't zero_extend const inputs.
13720
13721 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
13722
13723         * reload1.c (reload_cse_move2add): Fix a comment typo.
13724
13725 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
13726
13727         * config/h8300/h8300.md (a peephole2): Remove useless code.
13728
13729 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
13730
13731         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
13732         (*iorsi3_and_lshiftrt): Likewise.
13733         (*iorsi3_zero_extract): Likewise.
13734
13735 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
13736
13737         * config/h8300/h8300.md (*insv_si_8_8): New.
13738         (*insv_si_8_8_lshiftrt_8): Likewise.
13739         (a peephole2): Likewise.
13740
13741 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13742
13743         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
13744         Uniformly use bugfix instead of bug fix.
13745
13746 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13747
13748         PR doc/895
13749         * ONEWS: Remove those items that already appear in the EGCS
13750         release notes on our web pages.
13751
13752 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
13753
13754         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
13755         TARGET_HARD_FLOAT.  Reformat.
13756         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
13757
13758 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
13759
13760         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
13761         work on Solaris 2.5.1.
13762
13763 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
13764
13765         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
13766         section of h8300.md
13767         (*addsi3_and_nor_r_1): Likewise.
13768
13769 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
13770
13771         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
13772         set up before any trapping memory access if flag_non_call_exceptions.
13773
13774 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
13775
13776         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
13777
13778         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
13779
13780 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
13781
13782         * configure.in: Clarify comments.
13783         * configure: Regenerate.
13784
13785 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
13786
13787         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
13788         label even if pool empty when generating PIC.
13789         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
13790
13791 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
13792             Dhananjay Deshpande  <dhananjayd@kpit.com>
13793
13794         PR target/10205
13795         * config/h8300/h8300.c (h8300_initial_elimination_offset):
13796         Correct the offset computation when TARGET_NORMAL.
13797
13798 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
13799
13800         PR target/10067
13801         * config/sparc/sparc.md (jump pattern): Correct order
13802         when issuing the annuling marker.
13803
13804 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
13805
13806         PR c/8281
13807         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
13808         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
13809
13810 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
13811
13812         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13813         globalize_label.
13814         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13815         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13816         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13817         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13818         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13819         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13820         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
13821
13822 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
13823
13824         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
13825         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
13826         notes after hoisting.
13827         (load_mems): Adjust replace_loop_mems call.
13828
13829 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
13830             Richard Henderson  <rth@redhat.com>
13831
13832         PR target/10114 and PR target/10084
13833         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
13834
13835 2003-03-27  Richard Henderson  <rth@redhat.com>
13836
13837         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
13838
13839 2003-03-27  Roger Sayle  <roger@eyesopen.com>
13840
13841         * fold-const.c (fold_inf_compare):  New function to simplify FP
13842         comparisons against +Infinity or -Infinity.
13843         (fold):  Optimize floating point comparisons against Infs and NaNs.
13844
13845 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
13846
13847         * libgcov.c: Provide only dummy functions if libc is not available.
13848
13849 2003-03-27  Richard Henderson  <rth@redhat.com>
13850
13851         * real.h (struct real_value): Add signalling.
13852         (EXP_BITS): Decrement.
13853         * real.c (get_canonical_qnan): Don't set MSB-1.
13854         (get_canonical_snan): Likewise.  Set signalling.
13855         (real_identical): Compare signalling.
13856         (round_for_format): Remove force-one-bit on code.
13857         (real_nan): Likewise.  Set signalling.
13858         (encode_ieee_single): Add force-one-bit code; honor signalling.
13859         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
13860         (decode_ieee_single): Set signalling.
13861         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
13862
13863 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
13864
13865         PR ada/9953
13866         * ada/Makefile.in (gnatlib configuration for HPUX): Split
13867         the general section for HPUX into specific sections for
13868         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
13869         11 case.
13870
13871 2003-03-27  Glen Nakamura  <glen@imodulo.com>
13872
13873         PR opt/10087
13874         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
13875         while incrementing giv.
13876         (record_biv): Check for duplicate biv locations and
13877         set (struct induction *) v->same if found.
13878
13879 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
13880
13881         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
13882         v0.9 API change: replace read of UNW_REG_HANDLER with
13883         unw_get_proc_info().
13884         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
13885         with unw_get_proc_info().
13886         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
13887         unw_get_proc_info().
13888
13889 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
13890
13891         * config/rs6000/8540.md: Use presence_set instead of absence_set.
13892
13893 2003-03-26  Richard Henderson  <rth@redhat.com>
13894
13895         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
13896
13897 2003-03-26  Roger Sayle  <roger@eyesopen.com>
13898
13899         PR bootstrap/10051, PR bootstrap/10169.
13900         * mips-tfile.c (init_file): Don't provide a static initializer.
13901         (initialize_init_file): Initialize the contents of init_file.
13902         (add_file): Call initialize_init_file if not already initialized.
13903
13904 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
13905
13906         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
13907         registers used for global asm variables.
13908         (s390_frame_info, s390_arg_frame_offset): Likewise.
13909         (s390_emit_prologue, s390_emit_epilogue): Likewise.
13910
13911 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
13912
13913         * config/rs6000/8540.md: New file.
13914
13915         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
13916         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
13917         reservations for imul.
13918
13919         * config/rs6000/rs6000.md: Include 8540.md.  Change
13920         delayed_compare onto mult_compare for insns generating
13921         multiplication.
13922         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
13923         New type attribute values.
13924
13925         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
13926         fpsimple instead of fp.
13927         (*divsf3_gpr): Use type vecfdiv instead of fp.
13928         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
13929         instead of vecfloat.
13930         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
13931         (spe_brinc): Use type brinc instead of veccomplex.
13932         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
13933         veccomplex.
13934         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
13935         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
13936         *movv2sf_internal): Define type attribute values for all
13937         alternatives.
13938         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
13939         of fpcompare.
13940         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
13941         instead of fpcompare.
13942
13943 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
13944
13945         * config/rs6000/power4.md: Allow delay between dispatch and
13946         function units for simple instructions.  Correct store units.
13947         Allow branch to occupy as many dispatch slots as necessary.
13948
13949 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
13950
13951         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
13952         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
13953         zero extend old to it.
13954         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
13955         operand.
13956
13957 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
13958
13959         PR target/7784
13960         * reload.c (find_reloads_address): Handle
13961         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
13962         all base registers.
13963
13964 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
13965
13966         PR other/10203
13967         * version.c: Reference the GCC web site in the URL.
13968
13969 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
13970
13971         * c-incpath.c (add_standard_paths): Add both "translated" and
13972         non-translated header paths.
13973
13974 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
13975
13976         * doc/install.texi (*-*-freebsd*): Update with known status.
13977
13978 2003-03-21  Jason Merrill  <jason@redhat.com>
13979
13980         PR optimization/10171
13981         * unroll.c (unroll_loop): Don't delete the jump at the end unless
13982         we also delete a jump at the beginning.
13983
13984 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
13985
13986         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
13987         contributor.
13988
13989 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
13990
13991         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
13992         constants are not expensive.
13993
13994 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
13995
13996         PR opt/10056
13997         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
13998         jump jumping to the next instruction.
13999         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
14000
14001 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14002
14003         * doc/passes.texi (Passes): Properly document that we do not
14004         perform jump2 any longer; remove command-line option -dJ.
14005
14006 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
14007
14008         PR optimization/8746
14009         * config/i386/i386.md (and promoting splitters): Disable HImode to
14010         SImode promoting when the sign bit matters and is not preserved, or
14011         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
14012         for size.
14013
14014 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
14015
14016         * config/h8300/h8300.md (a peephole2): Extend to support loads
14017         in QImode and HImode.
14018
14019 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
14020
14021         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
14022         _return_far
14023         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
14024         (MULTILIB_EXCEPTIONS): Likewise.
14025         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
14026         by calling some board support routine.
14027         ("call_value"): Likewise.
14028         ("*return_void"): Likewise for return.
14029         ("*return_16bit"): Likewise.
14030         ("*return_32bit"): Likewise.
14031         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
14032         for 68HC11 too.
14033         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
14034         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
14035         -mlong-calls for 68HC11.
14036         * config/m68hc11/larith.asm (declare_near): New macro.
14037         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
14038         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
14039         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
14040         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
14041         (__mulhi32): Likewise.
14042         (ret): Update macro for 68HC11.
14043         (__far_trampoline): Implement for 68HC11.
14044         (__call_a16, __call_a32, __return_void, __return_16): New support
14045         routines for 68HC11 memory bank switching calling support.
14046         (__return_32): Likewise.
14047
14048 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
14049
14050         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
14051
14052 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
14053
14054         * doc/install.texi (Testing): Mention test result links from build
14055         status pages.
14056
14057 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
14058
14059         * function.c (put_var_into_stack): Change bool parameter to int.
14060         (gen_mem_addressof): Likewise.
14061         * rtl.h (gen_mem_addressof): Likewise.
14062         * tree.h (put_var_into_stack): Likewise.
14063         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
14064         gen_mem_addressof or put_var_into_stack.
14065         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
14066         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
14067
14068 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
14069
14070         * config/h8300/h8300.md (a peephole2): New.
14071
14072 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
14073
14074         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
14075
14076 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14077
14078         * doc/contrib.texi (Contributors): Update Janis Johnson.
14079
14080 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
14081
14082         PR target/10072
14083         * combine.c (simplify_if_then_else): Check that the mode
14084         has MODE_INT class before applying the (OP Z (mult COND C2))
14085         transformation.
14086
14087 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
14088
14089         PR optimization/9414
14090         * config/sparc/sparc.md (widening peepholes): Use
14091         widen_memory_access instead of change_address.
14092
14093 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
14094
14095         PR c++/7086
14096         * c-typeck.c (c_mark_addressable): Adjust calls to
14097         put_var_into_stack.
14098         * expr.c (expand_expr): Likewise.
14099         * function.c (put_var_into_stack): Add rescan parameter.  Do not
14100         call fixup_var_refs when rescan is false.
14101         (gen_mem_addressof): Likewise.
14102         (assign_parms): Adjust calls to put_var_into_stack.
14103         (setjmp_protect): Likewise.
14104         (setjmp_protect_args): Likewise.
14105         * rtl.h (gen_mem_addressof): Change prototype.
14106         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
14107         * tree.h (put_var_into_stack): Change prototype.
14108
14109 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
14110
14111         PR middle-end/9967
14112         * builtins.c (expand_builtin_fputs): When optimizing for size,
14113         don't transform fputs into fwrite.
14114
14115 2003-03-23  Glen Nakamura <glen@imodulo.com>
14116
14117         PR c/8224
14118         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
14119         when signedness changes for division or modulus.
14120
14121 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
14122
14123         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
14124         globalize_label.
14125
14126 2003-03-23  Roger Sayle  <roger@eyesopen.com>
14127
14128         PR c/10178
14129         * stmt.c (expand_end_case_type): Check for overflow in range when
14130         determining whether to use a bit-test implementation.
14131
14132 2003-03-23  Richard Henderson  <rth@redhat.com>
14133
14134         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
14135         before flow2.
14136         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
14137
14138 2003-03-23  Richard Henderson  <rth@redhat.com>
14139
14140         PR opt/10116
14141         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
14142         from then_bb or else_bb after flow2.
14143
14144 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
14145
14146         * configure.in: Check whether it is necessary to link against
14147         libm to use ldexp.
14148         * configure: Regenerate.
14149         * Makefile.in: Add LDEXP_LIB substitution variable.
14150
14151 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
14152
14153         * config/h8300/h8300.md: Fix comment typos.
14154
14155 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14156
14157         * pa.c (output_cbranch): Fix typo in comment.
14158
14159 2003-03-22  Richard Henderson <rth@redhat.com>
14160
14161         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
14162         after reload.
14163
14164 2003-03-22  DJ Delorie  <dj at redhat dot com>,
14165         Bruce Korb  <bkorb at gnu dot org>
14166
14167         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
14168         buggy Solaris 2.6 mutex/cond initializers.
14169         (solaris_mutex_init): Rename to solaris_mutex_init_2.
14170         * fixinc/fixincl.x: Regenerate.
14171         * fixinc/tests/base/pthread.h: Update.
14172         * fixinc/fixincl.c(initialize): be explicit about the default case
14173         and indicate verbose level when being very, very verbose.
14174         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
14175
14176 2003-03-22  Andreas Jaeger  <aj@suse.de>
14177
14178         * config/i386/i386.c (ix86_init_machine_status): Return value.
14179
14180 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14181
14182         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
14183         conditional branch to the following instruction.  Use next_real_insn
14184         instead of next_active_insn.
14185         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
14186         instead of next_active_insn.
14187
14188 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
14189
14190         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
14191         instead of 'm' constraint in forced-split alternatives.
14192         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
14193         VALIDATE_ADDRESS parameter to operand_subword.
14194
14195 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14196
14197         * config/h8300/h8300.c (notice_update_cc): Correctly handle
14198         the case where the set destination is STRICT_LOW_PART.
14199
14200 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
14201
14202         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
14203         c30 instead of a c40 processor.
14204
14205 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
14206
14207         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
14208
14209 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
14210
14211         * c-common.c: Include intl.h.
14212         (shadow_warning): Rewrite to allow better diagnostic translations.
14213         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
14214         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
14215         use it throughout.
14216         * Makefile.in (c-common.o): Add intl.h.
14217
14218 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
14219
14220         * config.gcc: Remove 'float_format'.
14221
14222         * fixproto: Define NULL and size_t in generated stdlib.h and
14223         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
14224         Rearrange file generation loop for readability.  Generate time.h,
14225         string.h if missing.
14226         * tsystem.h: Include <string.h>, <time.h> unconditionally.
14227         * config.gcc: Blow away POSIX defines.
14228
14229 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
14230
14231         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
14232
14233 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
14234
14235         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
14236         writing .interrupt command.
14237         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
14238         if it's a far or near function.
14239         ("call_value"): Likewise.
14240         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
14241         near attributes.
14242         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
14243         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
14244         (m68hc11_initial_elimination_offset): Set current_function_far
14245         according to attributes.
14246         (expand_prologue): Likewise.
14247         (trap_handler_symbol): New global to keep track of trap handlers.
14248         (m68hc11_encode_section_info): Mark symbol as far if needed; set
14249         trap symbol.
14250         (m68hc11_is_far_symbol): New function.
14251         (m68hc11_is_trap_symbol): New function.
14252         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
14253         (m68hc11_is_trap_symbol): Declare.
14254
14255 2003-03-21  Jan Hubicka  <jh@suse.cz>
14256
14257         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
14258         only when amount of saved regs changed.
14259         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
14260         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
14261
14262 2003-03-21  Jan Hubicka  <jh@suse.cz>
14263
14264         PR inline-asm/7916
14265         * function.c (instantiate_virtual_regs_lossage): New function.
14266         (instantiate_virtual_regs_1): Use it.
14267         (instantiate_virtual_regs): Do not continue in substition when insn has
14268         been deleted.
14269
14270 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14271
14272         * combine.c (make_field_assignment): Fix a warning.
14273
14274 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14275
14276         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
14277
14278 2003-03-21  Dale Johannesen  <dalej@apple.com>
14279
14280         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
14281         priority for R2 on Darwin.
14282         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
14283
14284 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14285
14286         * combine.c (make_field_assignment): Remove unnecessary AND
14287         when storing into zero_extract.
14288
14289 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
14290
14291         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
14292         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
14293         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
14294         in comment.
14295
14296 2003-03-21  DJ Delorie  <dj@redhat.com>
14297
14298         * optabs.c (init_integral_libfuncs): Make sure we init at least up
14299         to "long long" size words.
14300
14301 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
14302
14303         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
14304         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
14305         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
14306
14307 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14308
14309         PR doc-bug/9813
14310         * doc/extend.texi: Move misplaced paragraph about underscores in
14311         variables in macros.
14312
14313 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
14314             Richard Henderson  <rth@redhat.com>
14315
14316         PR optimization/8366
14317         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
14318         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
14319         PIC+SYMBOLIC_CONST in other modes than Pmode.
14320         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
14321         the form PIC+SYMBOLIC_CONST as mode dependent.
14322
14323 2003-03-21  DJ Delorie  <dj@redhat.com>
14324
14325         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
14326         sure we always emit at least one insn.
14327
14328 2003-03-21  Christopher Faylor  <cgf@redhat.com>
14329
14330         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
14331         stub t-cygming. Use common target header cygming.h. Add extra
14332         c_target_obj and cxx_target_obj file. Default cygwin to posix
14333         threading. Enforce i386 as float format.
14334         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
14335         Remove cygwin.h as target header. Use common target header
14336         cygming.h  Enforce i386 as float format. Correct typo.
14337         * config/i386/cygming.h: New file, containing definitions
14338         common to mingw32 and cygwin.
14339         * config/i386/cygwin.h: Remove definitions common to cygwin and
14340         mingw.  Simplify special spec logic.  Define "wrappers" around
14341         certain include path defines to accommodate -mno-cygwin.
14342         Remove some #if 0'ed code.
14343         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
14344         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
14345         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
14346         * config/i386/mingw32.h: Remove definitions common to cygwin and
14347         mingw.
14348         (EXTRA_OS_CPP_BUILTINS): Adjust.
14349         (TARGET_VERSION): Define.
14350         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
14351         mingw32.h definitions.
14352         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
14353         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
14354         Add compilation rules for cygwin1.o cygwin2.o.
14355         * config/i386/cygwin1.c: New file.
14356         * config/i386/cygwin2.c: New file.
14357         * config/i386/t-cygming: New makefile stub.
14358
14359 2003-03-20  Richard Henderson  <rth@redhat.com>
14360
14361         * fold-const.c (extract_muldiv_1): Revert changing order of
14362         operands in case MULT_EXPR of 2003-02-16 patch.
14363
14364 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
14365         Merge changes from new-regalloc-branch
14366
14367         From Michael Matz  <matz@suse.de>
14368         * df.c (df_ref_record_1): Move init of loc to safe point.
14369         Only recurse on interesting things in parallels.
14370         Handle CLASS_CANNOT_CHANGE_MODE smarter.
14371         (df_uses_record): Ditto.
14372
14373         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
14374         it's already okay to use memory operands in (IE doesn't require
14375         adding another insn or anything).
14376
14377 2003-03-20  Richard Henderson  <rth@redhat.com>
14378
14379         PR middle-end/6348
14380         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
14381         different from word_mode.
14382
14383 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
14384
14385         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
14386         source operand to those that can be extracted with bld.
14387
14388 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
14389
14390         PR 10066
14391         * arm.md (UNSPEC_PIC_BASE): New constant.
14392         (pic_add_dot_plus_four): Wrap with unspec.
14393         (pic_add_dot_plus_eight): Likewise.
14394
14395 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
14396
14397         * config/h8300/h8300.md (*insv_si_1_n): New.
14398         (*insv_si_1_n_lshiftrt): Likewise.
14399
14400 2003-03-20  Roger Sayle  <roger@eyesopen.com>
14401
14402         * fold-const.c (fold_mathfn_compare): New function to simplify
14403         comparisons against built-in math functions.  Fold comparisons
14404         of sqrt against constants.
14405         (fold): Call fold_mathfn_compare when appropriate.
14406
14407 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
14408
14409         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
14410         information.
14411
14412 2003-03-20  Per Bothner  <pbothner@apple.com>
14413
14414         Various cleanups to help compile server.
14415
14416         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
14417         and pass that to _cpp_init_hashtable.
14418         (cpp_read_main_file):  Drop hash_table* argument; don't call
14419         _cpp_init_hashtable.
14420         * cpplib.h:  Update declarations to match.
14421         * c-opts.c (c_common_init_options):  Pass ident_hash to
14422         cpp_create_reader.
14423         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
14424         * fix-header.c (read_scan_file):  Likewise pass NULL table to
14425         cpp_create_reader rather than cpp_read_main_file.
14426
14427         * cppfiles.c (cpp_rename_file):  Generalized and renamed
14428         to cpp_change_file.
14429         * cpplib.h:  Update declaration to match.
14430         * c-opts.c (push_command_line_line, finish_options):  Change
14431         cpp_rename_file calls to cpp_change_file.
14432
14433         * line-map.c (add_line_map):  Allow leaving the outermost file.
14434         Allowing entering an outermost-file after the initial time.
14435
14436         * toplev.c (pop_srcloc):  Allow popping from initial file.
14437
14438 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
14439
14440         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
14441
14442 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
14443
14444         * config/h8300/h8300.md (a peephole2): New.
14445
14446 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
14447
14448         * config/h8300/h8300.md (*addsi3_and_r_1): New.
14449         (*addsi3_and_not_r_1): Likewise.
14450
14451 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
14452
14453         * Makefile.in (STRICT2_WARN): Add @WERROR@.
14454         (GCC_WARN_CFLAGS): Remove $(WERROR).
14455         (fixinc.sh-warn): New.
14456         * ada/Make-lang.in (ada-warn): Add $(WERROR).
14457         * cp/Make-lang.in (cp-warn): Add $(WERROR).
14458         * f/Make-lang.in (f-warn): Add $(WERROR).
14459         * java/Make-lang.in (java-warn): Add $(WERROR).
14460         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
14461
14462 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
14463
14464         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
14465         langhooks-def.h (lhd_tree_dump_dump_tree),
14466         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
14467         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
14468         true and false in return statements.
14469
14470 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
14471
14472         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
14473         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
14474         DWARF_INITIAL_LENGTH_SIZE.
14475         (output_compilation_unit_header, output_pubnames, output_aranges)
14476         (output_line_info): Output 0xffffffff escape value for 64-bit
14477         DWARF extension.
14478         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
14479
14480 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
14481
14482         * config/s390/s390.c (s390_preferred_reload_class): Do not
14483         force constants to the pool unless necessary.
14484         (s390_decompose_address): Prefer to use pointer as base,
14485         not index register.
14486         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
14487         Q alternative.
14488         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
14489         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
14490         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
14491         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
14492         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
14493
14494 2003-03-19  Jan Hubicka  <jh@suse.cz>
14495
14496         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
14497         * i386.c (use_fast_prologue_epilogue): Remove.
14498         (ix86_frame): New field save_regs-using_mov;
14499         (ix86_compute_frame_layout):  Decide on fast prologues;
14500         allocate saved registers in red zone.
14501         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
14502
14503 2003-03-19  Nick Clifton  <nickc@redhat.com>
14504
14505         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
14506
14507 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14508
14509         PR 10062
14510         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
14511         * pa-protos.h (output_lbranch): New prototype.
14512         * pa.c (compute_frame_size): Change size of the frame marker on the
14513         64-bit ports to 48 bytes.
14514         (pa_output_function_prologue): Document why SAVE_SP is set.
14515         (hppa_expand_prologue): Save previous stack pointer into frame marker
14516         on targets which use the hpux unwind library.
14517         (output_cbranch): Use output_lbranch.
14518         (output_lbranch): New function to output long unconditional branches.
14519         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
14520         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
14521         64-bit ports.
14522         * pa.md (jump): Use output_lbranch.
14523         (allocate_stack): New expander for dynamic stack allocation.
14524
14525 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
14526
14527         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
14528         when debugging on XCOFF targets.  Delete "abi" temp.
14529
14530         PR target/10073
14531         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
14532
14533 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
14534
14535         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
14536         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
14537         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
14538
14539         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
14540         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
14541         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
14542
14543 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
14544
14545         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
14546         the result of machopic_function_base_name.
14547         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
14548         string rather than a static array.
14549
14550         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
14551
14552         * gengtype.c: Include rtl.h.
14553         (enum rtx_code): Don't define.
14554         (rtx_format): Make declaration match rtl.h.
14555         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
14556         users.
14557         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
14558         * Makefile.in (gengtype.o): Update dependencies.
14559
14560 2003-03-18  Andreas Schwab  <schwab@suse.de>
14561
14562         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
14563         martin@blom.org.
14564
14565 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
14566
14567         * function.c (next_block_index): Mark with GTY.
14568
14569         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
14570
14571 2003-03-18  Richard Henderson  <rth@redhat.com>
14572
14573         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
14574         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
14575         until after reload.
14576
14577 2003-03-18  Richard Henderson  <rth@redhat.com>
14578
14579         * builtins.c (expand_builtin_unop): New target_mode operand;
14580         use it to convert the result to the correct mode.
14581         (expand_builtin): Update all callers.
14582
14583 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
14584
14585         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
14586
14587 2003-03-18  Jan Hubicka  <jh@suse.cz>
14588
14589         * i386.md:  Fix previous commit that mistakely applied the patch
14590         twice.
14591
14592         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
14593         canonicalized.
14594         (memrefs_conflict_p): Likewise.
14595         (addr_side_effect_eval): Canonicalize the constructed address.
14596
14597 2003-03-18  Jan Hubicka  <jh@suse.cz>
14598
14599         * i386.md (cvtts?2si peep2): New.
14600
14601 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
14602
14603         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
14604
14605 2003-03-18  Andreas Schwab  <schwab@suse.de>
14606
14607         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
14608         for format.
14609
14610 2003-03-17  Jason Merrill  <jason@redhat.com>
14611
14612         PR c++/10091
14613         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
14614         an unaligned member of TREE_ADDRESSABLE type.
14615
14616 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
14617
14618         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
14619         (TARGET_PROFILE_KERNEL): Define.
14620         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
14621         (PROFILE_BEFORE_PROLOGUE): Don't define.
14622         (PROFILE_KERNEL): Remove hacks.
14623         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
14624         (rs6000_stack_info): No need to save lr if just for profiling when
14625         TARGET_PROFILE_KERNEL.
14626         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
14627         (output_function_profiler): Localize label generation.  Emit code
14628         for kernel profiling.
14629
14630 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
14631
14632         * config/h8300/h8300-protos.h: Add a prototype for
14633         byte_accesses_mergeable_p.
14634         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
14635         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
14636         (a splitter): Likewise.
14637         (*iorsi3_ashift_16_ashift_24): Likewise.
14638         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
14639
14640 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14641
14642         * dwarf2asm.h: Delete obsolete comment.
14643         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
14644         dw2_asm_output_pcrel, dw2_asm_output_addr,
14645         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
14646         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
14647         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
14648         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
14649
14650 2003-03-17  Zack Weinberg <zack@codesourcery.com>
14651
14652         * c-tree.h (struct lang_identifier): Remove error_locus field.
14653         (IDENTIFIER_ERROR_LOCUS): Kill.
14654         (record_function_scope_shadow): New prototype.
14655         * c-typeck.c (build_external_ref): Don't complain if
14656         decl is error_mark_node.  When not at file scope, bind the
14657         decl's local value to error_mark_node to suppress further
14658         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
14659
14660         * c-decl.c (get_function_binding_level): New static function.
14661         (record_function_scope_shadow): New exported function.
14662         (c_make_fname_decl): Use get_function_binding_level.
14663
14664 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
14665
14666         * stmt.c (tail_recursion_args): Call promote_mode to set
14667         unsignedp flag correctly before calling convert_move.
14668
14669 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14670
14671         * loop-unroll.c (decide_peel_completely,
14672         decide_unroll_constant_iterations, decide_unroll_stupid,
14673         decide_unroll_runtime_iterations, decide_peel_simple): Set
14674         loop->has_desc.
14675
14676 2003-03-17  Jan Hubicka  <jh@suse.cz>
14677
14678         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
14679
14680 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
14681
14682         * function.c (assign_parms): For a struct value address passed as
14683         first argument, delay the function's result RTL setup code until
14684         after the emission of parameter conversions.
14685
14686 2003-03-17  Dave Love  <fx@gnu.org>
14687             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14688
14689         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
14690         __arch64__ to match Compaq cc.
14691
14692 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
14693
14694         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
14695         (c_common_init): Set EBCDIC in cpp options.
14696         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
14697         not conditional compilation.
14698         * cpplib.h (struct cpp_options): New entry EBCDIC.
14699
14700 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
14701
14702         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
14703
14704 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14705
14706         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
14707         argument to 0 for redirect_jump.
14708
14709 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
14710
14711         PR c++/8805
14712         * except.c (eh_region_u_cleanup): Add prev_try.
14713         (expand_eh_region_end_cleanup): Set it.
14714         (reachable_handlers): Use it to skip over cleanup blocks.
14715
14716 2003-03-17  Andreas Jaeger  <aj@suse.de>
14717
14718         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
14719
14720 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
14721
14722         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
14723         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
14724         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
14725         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
14726
14727 2003-03-16  Richard Henderson  <rth@redhat.com>
14728
14729         * simplify-rtx (simplify_binary_operation): Don't abort for
14730         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
14731
14732 2003-03-16  Richard Henderson  <rth@redhat.com>
14733
14734         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
14735         optimize_size as well.
14736
14737 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
14738
14739         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
14740         for D register to specify the low part of it, aka B.
14741         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
14742         the register if we are loading 1 or -1 to it; avoid using temp
14743         register when moving X/Y to Y/X.
14744         (m68hc11_gen_movqi): Likewise.
14745         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
14746
14747 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
14748
14749         PR optimization/9016
14750         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
14751         into the constant pool.
14752
14753 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14754
14755         PR target/9164
14756         * tree.c (get_narrower): For extensions with unchanged bit number,
14757         return the unsignedness of the outer mode.
14758
14759 2003-03-16  Roger Sayle  <roger@eyesopen.com>
14760
14761         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
14762         to avoid "may be used uninitialized" warning on ia64-hpux.
14763         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
14764
14765 2003-03-16  Andreas Jaeger  <aj@suse.de>
14766
14767         * configure.in: Improve check for memcheck.h.
14768         * configure: Regenerated.
14769
14770 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
14771
14772         * doc/cppopts.texi: Remove documentation of -A-.
14773
14774 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
14775
14776         * doc/libgcc.texi: Remove @tie.
14777
14778 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
14779
14780         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
14781         (rtx_pair): Added new element update_label_nuses, renamed to
14782         replace_label_data.
14783         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
14784         replace_label_data instead of rtx_pair.
14785         * loop.c (load_mems): Likewise.
14786         * rtlanal.c (replace_label): Replace label in pool constants and in
14787         INSN_LIST (in REG_LABEL note).
14788         (subrtx_p): Renamed to rtx_referenced_p.
14789         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
14790         LABEL_REF with CODE_LABEL, traverse constants from pool.
14791
14792 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
14793             Zack Weinberg  <zack@codesourcery.com>
14794
14795         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
14796         * doc/libgcc.texi: New file.
14797         * doc/interface.texi: Delete paragraph about libgcc interface.
14798         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
14799
14800 2003-03-15  Jason Merrill  <jason@redhat.com>
14801
14802         PR debug/9039
14803         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
14804
14805         PR debug/6387
14806         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
14807         function DIEs at toplevel.
14808         (decls_for_scope): At -g1, don't descend into subblocks.
14809
14810 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
14811
14812         * varasm.c (struct rtx_const): Change type of un.addr member
14813         to struct holding an additional 'symbol' member.
14814         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
14815         with equal string addresses as equal.
14816         (simplify_subtraction): Adapt to struct rtx_const change.
14817
14818 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
14819
14820         * fix-header.c (read_scan_file): Read main file before handling -D.
14821
14822 2003-03-15  Roger Sayle  <roger@eyesopen.com>
14823
14824         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
14825         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
14826         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
14827         (find_sub_basic_blocks): Likewise.
14828         * cgraphunit.c (cgraph_expand_functions): Likewise.
14829         * dwarf2out.c (prune_unused_types): Likewise.
14830         * expr.c (store_field): Likewise.
14831         * genextract.c (print_path): Likewise.
14832         * haifa-sched.c (schedule_insn): Likewise.
14833         * lcm.c (compute_antinout_edge): Likewise.
14834         * loop-unroll.c (decide_peel_once_rolling): Likewise.
14835         * ra-colorize.c (ra_colorize_free_all): Likewise.
14836         * ra-debug.c (dump_igraph): Likewise.
14837         (debug_hard_reg_set): Likewise.
14838         * reg-stack.c (reg_to_stack): Likewise.
14839         * rtlanal.c (refers_to_regno_p): Likewise.
14840         * tracer.c (layout_superblocks): Likewise.
14841
14842 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
14843
14844         * fix-header.c (read_scan_file): Fix thinko.
14845
14846 2003-03-15  Glen Nakamura  <glen@imodulo.com>
14847
14848         * reload1.c (choose_reload_regs): Use && instead of ||
14849         with REG_CANNOT_CHANGE_MODE_P condition.
14850
14851 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
14852
14853         * Makefile.in: Update.
14854         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
14855         * c-lex.c (init_c_lex): Register builtins hook is dead.
14856         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
14857         (c_common_decode_option): Don't call cpp_handle_option.
14858         Handle -A, -D and -U.
14859         (handle_deferred_opts): Simplify.
14860         (finish_options): Define builtins and command line macros.
14861         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
14862         * cppinit.c: Don't include intl.h.
14863         (init_builtins): Rename cpp_init_builtins.  No hook to call.
14864         (init_library): Don't need to sort options.
14865         (cpp_create_reader): Don't set pending.
14866         (cpp_destroy): Don't free pending.
14867         (struct pending_option, cl_directive_handler, struct cpp_pending,
14868         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
14869         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
14870         cl_options, cpp_handle_option): Remove.
14871         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
14872         cpp_finish_options): Remove.
14873         (cpp_init_builtins): New.
14874         * fix-header.c (read_scan_file): Update to handle -D.  Fix
14875         handling of -I.  Replace call to cpp_finish_options.
14876
14877 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14878
14879         PR optimization/9387
14880         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
14881         for conditional returns.
14882
14883 2003-03-14  Jason Merrill  <jason@redhat.com>
14884
14885         PR optimization/6871
14886         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
14887
14888 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
14889
14890         * c-opts.c (finish_options): New.
14891         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
14892         (missing_arg): Handle OPT_include and OPT_imacros.
14893         (c_common_init, c_common_parse_file): Use finish_options.
14894         (handle_deferred_opts): Update.
14895         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
14896         (cpp_finish_options): Don't handle -imacros here.
14897         (no_fil): Remove.
14898         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
14899
14900 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
14901
14902         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
14903         rs6000_maybe_dead if !fromprolog.
14904
14905 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
14906
14907         * Makefile.in: Update.
14908         * c-common.h (fe_file_change, pp_file_change): New.
14909         * c-lex.c (init_c_lex): Don't set cb_file_change.
14910         (c_common_parse_file): Move to c-opts.c.
14911         (cb_file_change): Rename fe_file_change.
14912         * c-opts.c: Include debug.h.
14913         (warn_unused_macros, include_cursor): New.
14914         (push_command_line_include, cb_file_change): New.
14915         (COMMAND_LINE_OPTIONS): Handle -include.
14916         (c_common_decode_option): Use local warn_unused_macros.
14917         Handle OPT_include.
14918         (c_common_post_options): Set file change callback.
14919         (handle_deferred_opts): Skip -include.  Don't free the array.
14920         (c_common_init): Call cpp_finish_options here, and push an
14921         initial -include file.
14922         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
14923         (preprocess_file): Don't call cpp_finish_options.
14924         (init_pp_output): Don't set the file change callback.
14925         (pp_file_change): Return if no line commands or no output.
14926         * cpphash.h (next_include_file, first_unused_line): Remove.
14927         * cppinit.c (include_head, include_tail): Remove.
14928         (cpp_destroy): Don't free -include chain.
14929         (cpp_finish_options): Don't handle -include, or worry about
14930         -Wunused-macros.
14931         (_cpp_maybe_push_include_file): Remove.
14932         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
14933         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
14934         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
14935         Used flag is set based upon the state of the warn_unused_macros
14936         flag, and so use of first_unused_line is unnecessary.
14937
14938 2003-03-13  Jan Hubicka  <jh@suse.cz>
14939
14940         * cselib.c (clear_table): Do not take argument; always clear just
14941         used slots.
14942         (cselib_process_insn):  Update call of clear_table
14943         (cselib_init): Do not call clear_table.
14944         (cselib_finish): Clear table.
14945
14946         * cse.c (count_reg_usage): Do not check side_effects_p.
14947         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
14948         like noop.
14949         (find_reg_equal_equiv_note): Do not use find_reg_note.
14950
14951 2003-03-14  Richard Henderson  <rth@redhat.com>
14952
14953         PR target/9700
14954         * config/alpha/alpha.c (alpha_va_start): Account for
14955         current_function_pretend_args_size in the AP offset.
14956
14957         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
14958         (INITIAL_ELIMINATION_OFFSET): Move out of line.
14959         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
14960         (alpha_initial_elimination_offset) New.
14961         * config/alpha/alpha-protos.h: Update.
14962
14963 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
14964
14965         * stmt.c (expand_start_case): Call emit_queue ().
14966
14967 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
14968             Alexandre Oliva  <aoliva@redhat.com>
14969
14970         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
14971         words in new abis.
14972
14973 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
14974
14975         PR optimization/8396
14976         * tree-inline.c (initialize_inlined_parameters): Make sure the value
14977         of read-only constant arguments is passed with the right type.
14978
14979 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
14980
14981         * doc/extend.texi (Function Names): Make the example compilable.
14982
14983 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
14984
14985         * config/rs6000/rs6000.c (processor_target_table): Really allow
14986         GP optional instructions on Power4.
14987
14988 2003-03-13  Roger Sayle  <roger@eyesopen.com>
14989
14990         * calls.c (flags_from_decl_or_type): Factor and remove redundant
14991         conditional tests.
14992
14993 2003-03-13  Mike Stump  <mrs@apple.com>
14994
14995         * ggc-page.c (struct page_entry): Remove varray.h header.
14996         Add index_by_depth field.
14997         Remove save_in_use_p field.
14998         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
14999         by_depth_max, by_depth, and save_in_use fields.
15000         (INITIAL_PTE_COUNT): Add.
15001         (save_in_use_p_i): Add.
15002         (save_in_use_p): Add.
15003         (adjust_depth): Add.
15004         (move_ptes_to_front): Add.
15005         (push_depth): Add.
15006         (push_by_depth): Add.
15007         (prefetch): Add.
15008         (free_page): Add support for and use faster data structures.
15009         (ggc_alloc): Likewise.
15010         (init_ggc): Likewise.
15011         (ggc_recalculate_in_use_p): Likewise.
15012         (ggc_pop_context): Likewise.
15013         (clear_marks): Likewise.
15014         (ggc_pch_read): Likewise.
15015         * Makefile.in (ggc-page.o): Remove varray.h.
15016
15017 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
15018
15019         * ChangeLog: Rotated last year's entries to...
15020         * ChangeLog.8: New.
15021
15022         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
15023         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
15024         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
15025         config/ia64/ia64-protos.h, config/ia64/ia64.c,
15026         config/ia64/ia64.h, config/ia64/ia64.md,
15027         config/ia64/itanium1.md, config/ia64/itanium2.md,
15028         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
15029         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
15030
15031 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
15032
15033         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
15034         Differentiate endianness.
15035         (s6000_override_options): Use cpu type instead of TARGET_SPE.
15036
15037 2003-03-13  Nick Clifton  <nickc@redhat.com>
15038
15039         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
15040         LDM instructions with writeback enabled.
15041         (output_return_instruction): Likewise.
15042
15043         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
15044         (CALL_USED_REGISTERS): Remove definition.
15045         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
15046
15047 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
15048
15049         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
15050         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
15051         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
15052         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
15053         (rs6000_legitimize_address): Formatting.
15054         (rs6000_emit_move): Likewise.
15055         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
15056         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
15057         (rs6000_elf_select_section): Comment reason for shlib being
15058         set for ABI_AIX.
15059         (rs6000_elf_unique_section): Likewise.
15060         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
15061         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
15062         as well as flag_pic.
15063         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
15064         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15065         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
15066
15067 2003-03-13  Richard Henderson  <rth@redhat.com>
15068
15069         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
15070
15071         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
15072         (ia64_gp_save_reg): Remove.
15073         (struct ia64_frame_info): Move to the beginning of the file;
15074         add reg_save_gp.
15075         (ia64_expand_call): Rearrange for new call patterns.
15076         (ia64_reload_gp): New.
15077         (ia64_split_call): New.
15078         (ia64_compute_frame_size): Allocate reg_save_gp.
15079         (ia64_expand_prologue): Save reg_save_gp.
15080         (ia64_expand_epilogue): Don't restore gp.
15081         (ia64_hard_regno_rename_ok): Remove R4 hack.
15082         (ia64_function_ok_for_sibcall): New.
15083         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
15084         call try_split on sibcall pattern.
15085         * config/ia64/ia64-protos.h: Update.
15086         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
15087         Rename from nopic versions.  Confiscate 2nd argument to call as
15088         a marker.
15089         (call_pic, call_value_pic, sibcall_pic): Remove.
15090         (call_gp, call_value_gp, sibcall_gp): New.
15091         (builtin_setjmp_setup): Remove.
15092         (builtin_setjmp_receiver): Call ia64_reload_gp.
15093
15094 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15095
15096         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15097         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
15098         "GNU CC" with "GCC".
15099
15100         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
15101         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15102         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
15103         GCC, not GNU CC.
15104
15105         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
15106         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
15107
15108         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
15109         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
15110         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
15111         "GNU CC" with "GCC".
15112
15113         * config/v850/lib1funcs.asm, config/v850/rtems.h,
15114         config/v850/v850-c.c, config/v850/v850-protos.h,
15115         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
15116         GCC, not GNU CC.
15117
15118         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
15119         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
15120         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
15121         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
15122         GNU CC.
15123
15124 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
15125
15126         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
15127
15128 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15129
15130         * fixinc/fixinc.interix: Remove dead code (most of it).
15131         * fixinc/fixinc.dgux: Remove.
15132
15133         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
15134         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
15135
15136 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15137
15138         * pa.c (pa_init_builtins): Fix warning.
15139
15140 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
15141
15142         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
15143         (ASM_OUTPUT_XDATA_SHORT): Remove.
15144         (ASM_OUTPUT_XDATA_INT): Remove.
15145         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
15146         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
15147         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
15148         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
15149
15150 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
15151
15152         PR c++/7050
15153         * expr.c (store_expr): Don't attempt to store void-typed trees,
15154         just evaluate them for side effects.
15155
15156 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15157
15158         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
15159         * cppinit.c (push_include): Move with changes to cppfiles.c.
15160         (cpp_read_main_file): Mark named operators here...
15161         (cpp_finish_options): ...not here.  Update.
15162         (_cpp_maybe_push_include_file): Update.
15163         * cpplib.h (cpp_push_include, cpp_rename_file): New.
15164
15165 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15166
15167         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
15168         _gcc_COMPUTE_GAS_VERSION.
15169         * configure.in: Use them.
15170         * configure: Regenerate.
15171
15172 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
15173
15174         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
15175         to detect carry.
15176         (subdi3): Reorder emitted instructions.
15177
15178 2003-03-12  Andreas Jaeger  <aj@suse.de>
15179
15180         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
15181         NETBSD_OS_CPP_BUILTINS_LP64.
15182
15183 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15184
15185         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
15186         Rearrange.  Reorganize.
15187         * configure.in: Rearrange.
15188         * configure: Regenerate.
15189
15190 2003-03-12  Andreas Jaeger  <aj@suse.de>
15191
15192         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
15193         LP64 targets.
15194
15195         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
15196         _LP64.
15197
15198         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
15199         _LP64 macros here.
15200         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15201
15202         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
15203         NETBSD_OS_CPP_BUILTINS_LP64.
15204         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
15205         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
15206
15207         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
15208
15209 2003-03-12  Jan Hubicka  <jh@suse.cz>
15210
15211         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
15212
15213 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
15214
15215         Fix PR target/9797 and PR c/9853.
15216         * stmt.c (expand_decl_init): Call push_temp_slots () and
15217         pop_temp_slots ().
15218
15219 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
15220
15221         * sh.c: Include basic-block.h.
15222         (sh_output_mi_thunk, emit_load_ptr): New functions.
15223         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
15224
15225 2003-03-12  Nick Clifton  <nickc@redhat.com>
15226
15227         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
15228         (CALL_USED_REGISTERS): Likewise.
15229         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
15230         describing how this value is calculated.
15231
15232 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
15233
15234         * configure.in (rlim_t): Define to long if no valid definition
15235         found in sys/resource.h.
15236         * config.in, configure: Regenerate.
15237
15238 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15239
15240         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
15241         TARGET_OS_CPP_BUILTINS.
15242         * config/mcore/mcore-pe.h: Similarly.
15243         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
15244         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
15245
15246 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15247
15248         PR c/9928
15249         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
15250         only if it is a VAR_DECL.
15251
15252 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15253
15254         PR optimization/9888
15255         * config/i386/i386.md (jcc_1): Fix range.
15256         (jcc_2): Likewise.
15257         (jump): LIkewise.
15258         (doloop_end_internal): Likewise.
15259
15260 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
15261
15262         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
15263         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
15264         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
15265         DLL_IMPORT_EXPORT_PREFIX and "i."
15266         (i386_pe_dllexport_name_p): Here.
15267         (i386_pe_dllimport_name_p): Here.
15268         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
15269         not 9 chars when getting identifier name.
15270         (i386_pe_mark_dllimport): Here.
15271         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
15272         not 9 chars when getting identifier name. Correct comment.
15273         (i386_pe_strip_name_encoding): Here. Add comments for different
15274         cases.
15275         (gen_fastcall_suffix): Break down xmalloc() argument to
15276         components.
15277         (gen_stdcall_suffix): Likewise.
15278         Update copyright year.
15279
15280 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15281
15282         PR optimization/9888
15283         * config/i386/i386.md (movsi_1): Remove special alternatives
15284         for %eax register.
15285         (movsi_1_nointernunit): Likewise.
15286         (movhi_1): Likewise.
15287         * config/i386/i386.c (memory_address_length): Do not use
15288         short displacement when there is no base.
15289         (ix86_attr_length_address_default): Handle LEA instructions.
15290
15291 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15292
15293         * c-cppbuiltin.c (builtin_define_std): Make non-static.
15294
15295 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
15296
15297         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
15298         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
15299         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
15300         * config/freebsd.h (CPP_PREDEFINES): Remove.
15301         (TARGET_OS_CPP_BUILTINS): New.
15302         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
15303         instead of TARGET_OS_CPP_BUILTINS.
15304         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
15305
15306 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
15307
15308         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
15309
15310 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15311
15312         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
15313         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
15314
15315         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
15316
15317 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
15318
15319         * toplev.c (independent_decode_option): Return success for --help,
15320         --target-help and --version.
15321
15322 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
15323
15324         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
15325         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
15326         specified.
15327         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
15328         DRIVER_SELF_SPECS.
15329         (LINK_SPEC): Let endian options affect the linker emulation name.
15330
15331 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
15332
15333         * sh.md (reload_inqi): Fix mode for source in second set.
15334
15335 2003-03-11  Jan Hubicka  <jh@suse.cz>
15336
15337         * cselib.c (cselib_invalidate_mem_1): Move too ...
15338         (cselib_invalidate_mem): ... here; use new list
15339         (dummy_val, first_containing_mem): New static variables.
15340         (clear_table): Initialize first_containing_mem.
15341         (discard_useless_values):  Compact the containing_mem list.
15342         (add_mem_for_addr): Add to the list.
15343         * cselib.h (cselib_val): Add next_containing_mem.
15344
15345 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15346
15347         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
15348         instructions for e500.
15349
15350 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
15351
15352         * Makefile.in: Update.
15353         * c-cppbuiltin.c: Include tm_p.h.
15354
15355 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15356
15357         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
15358
15359         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
15360         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
15361         (_Unwind_SetGR): Same.
15362         (_Unwind_GetGRPtr): New.
15363         (_Unwind_SetGRPtr): New.
15364         (uw_update_context_1): Use accesor functions instead of accessing
15365         context->reg[] directly.
15366         (uw_install_context_1): Same.
15367         (execute_cfa_program): Same.
15368         (__frame_state_for): Same.
15369
15370         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
15371         the synthetic register offset.
15372
15373         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
15374
15375 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
15376
15377         * config/cris/cris.md: Remove lingering EGCS reference.
15378         ("*extopqihi_side_biap"): For HI operation, match
15379         cris_additive_operand_extend_operator, not
15380         cris_operand_extend_operator.  Adjust condition.
15381         ("*extopqihi_side", "*extopqihi"): Ditto.
15382         ("*extopqisi_side_biap"): Correct operand numbers in condition.
15383         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
15384         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
15385         ("*extophisi_swap"): Ditto.
15386         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
15387         PLUS, not cris_operand_extend_operator.  Adjust condition and
15388         output template.
15389         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
15390         * config/cris/cris.h (PREDICATE_CODES): Add
15391         cris_additive_operand_extend_operator.
15392         * config/cris/cris.c (cris_additive_operand_extend_operator):
15393         New predicate.
15394
15395 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
15396
15397         * df.c (read_modify_subreg_p): Change from static to global.
15398         * df.h (read_modify_subreg_p): Add prototype.
15399         * sched-deps.c (sched_analyze_1): Generate true dependency for
15400         strict_low_part, certain subregs and zero/sign_extract.
15401
15402 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
15403
15404         * Makefile.in: Update.
15405         * c-common.c: Don't include real.h or except.h.
15406         (REGISTER_PREFIX): Remove.
15407         (builtin_define_std, builtin_define_with_value,
15408         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
15409         builtin_define_type_max, builtin_define_type_precision,
15410         builtin_define_float_constants): Move to c-cppbuiltin.c.
15411         (c_stddef_cpp_builtins): New.
15412         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
15413         * c-cppbuiltin.c: New, extracted from c-common.c.
15414         (define__GNUC__): New.
15415         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
15416         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
15417         (cpp_unique_options): Don't support no-gcc.
15418         (do_spec_1): Remove support of version specs.
15419         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
15420         * doc/passes.texi: Update.
15421         * doc/tm.texi: Update.
15422
15423 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
15424
15425         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
15426
15427 2003-03-10  Andrew Pinski  <apinski@apple.com>
15428
15429         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
15430         is on should not get here.
15431         (machopic_indirect_data_reference): If dynamic-no-pic is on just
15432         generate high/low parts of the address.
15433         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
15434         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
15435         symbol and labels with a new reg.  Dynamic-no-pic does not have a
15436         pic_offset_table_rtx.
15437         (machopic_select_section): Change references of flag_pic to
15438         MACHOPIC_INDIRECT.
15439         (machopic_asm_out_destructor): Likewise.
15440         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
15441         reference of flag_pic to MACHOPIC_INDIRECT.
15442         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
15443         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
15444         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
15445         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
15446         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
15447         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
15448         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
15449         (TARGET_DYNAMIC_NO_PIC): Define.
15450         (SUBTARGET_SWITCHES): Define, have sub-target switches for
15451         dynamic-no-pic.
15452         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
15453         rs6000_override_options to here. Dynamic-no-pic overrides
15454         pic.
15455         (CC1_SPEC): Change from not static then pic to not static and not
15456         dynamic-no-pic then pic.
15457         * config/rs6000/rs6000.c (rs6000_override_options): Move the
15458         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
15459         (rs6000_legitimize_reload_address): Add case for loading floating in
15460         dynamic-no-pic.
15461         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
15462         of flag_pic to MACHOPIC_INDIRECT.
15463         (secondary_reload_class): Conditional change the reference of
15464         flag_pic to MACHOPIC_INDIRECT.
15465         (rs6000_output_mi_thunk): Change reference of flag_pic to
15466         MACHOPIC_INDIRECT.
15467         (output_profile_hook): Likewise.
15468         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
15469         * config/rs6000/rs6000.md (movdf_low): Add the case for
15470         MACHO_DYNAMIC_NO_PIC_P.
15471         (call): Change references for flag_pic in TARGET_MACHO to
15472         MACHOPIC_INDIRECT.
15473         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
15474         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
15475         * doc/invoke.texi (-mdynamic-no-pic): Document.
15476
15477 2003-03-10  Devang Patel  <dpatel@apple.com>
15478
15479         PR c++/9394
15480         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
15481         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
15482         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
15483         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
15484         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
15485         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
15486
15487 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
15488
15489         PR optimization/7189
15490         * toplev.c (rest_of_compilation):  Move
15491         check_function_return_warnings up to just after
15492         delete_unreachable_blocks.
15493
15494 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
15495
15496         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
15497         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
15498         Declare.
15499         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
15500         for reg rename optimization to avoid using Z and Y registers.
15501
15502 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
15503
15504         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
15505         when adding to X and Y since leax/leay are fast.
15506         ("*addhi3"): Accept 'I' constraint when adding to address register.
15507         ("rotlhi3"): Operand 1 must be a register_operand.
15508         (peephole2): New peephole to optimize some adds.
15509         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
15510         to represent -2 .. 2 small integer range.
15511
15512 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
15513
15514         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
15515         each 16-bit rotation.
15516
15517 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
15518
15519         * c-opts.c (add_prefixed_path): Don't use concat.  When
15520         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
15521         cpp_GCC_INCLUDE_DIR_len characters.
15522
15523 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
15524
15525         * testsuite/gcc.dg/altivec-9.c: New file.
15526
15527         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
15528         (rs6000_emit_prologue): Use rs6000_frame_related instead.
15529
15530 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
15531
15532         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
15533         vectors.
15534         (__ev_convert_u64): Remove macro.  Define as inline.
15535         (__ev_convert_s64): Same.
15536
15537 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
15538
15539         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
15540         (rs6000_stack_t): Add spe_64bit_regs_used.
15541
15542         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
15543         spe_64bit_regs_used, and use it to determine the size of the
15544         frame.
15545         (spe_func_has_64bit_regs_p): New.
15546         (spe_synthesize_frame_save): New.
15547         (rs6000_frame_related): Handle SPE synthetic registers.
15548         (rs6000_emit_prologue): Only save in 64-bits if the function used
15549         any registers in 64-bit mode.
15550         (rs6000_emit_epilogue): Same, but for restore.
15551
15552 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
15553
15554         * arm.h (enum floating_point_type): Delete.  Replace with...
15555         (enum fputype): ... new.
15556         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
15557         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
15558         * arm.md (attr fpu): Reworked for new underlying enum values.
15559         * arm.c (arm_fpu_arch): Now enum fputype.
15560         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
15561         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
15562         Update uses of arm_fpu_arch and arm_fpu_tune.
15563
15564 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
15565
15566         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
15567         (try_crossjump_to_edge): Replace refereces to one jump table by
15568         references to identical jump table.
15569         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
15570         (replace_label): Moved to rtlanal.c.
15571         (struct rtx_pair): Moved to rtl.h.
15572         * rtl.h (struct rtx_pair): Moved from loop.c.
15573         (replace_label): New extern function.
15574         (subrtx_p): New extern function.
15575         (tablejump_p): New extern function.
15576         * rtlanal.c (replace_label): Moved from loop.c.
15577         (subrtx_p_1): New static function.
15578         (subrtx_p): New function.
15579         (tablejump_p): New function.
15580
15581 2003-03-10  Jan Hubicka  <jh@suse.cz>
15582
15583         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
15584
15585         * cfgcleanup.c (merge_blocks): Return where to iterate next.
15586         (try_optimize_cfg): Use return value of merge_blocks
15587
15588 2003-03-10  Michael Matz  <matz@suse.de>
15589
15590         * cfg.c (unchecked_make_edge): New.
15591         (cached_make_edge): Use it.
15592         * basic-block.h (unchecked_make_edge): Declare.
15593         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
15594
15595 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
15596
15597         * fpa.md: New file.  Move all patterns relating to FPA co-processor
15598         to here...
15599         * arm.md: ... from here.
15600         (cirrus.md, fpa.md): Include at end of description.
15601         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
15602         (pic_load_addr_based): Remove register constraint from expander.
15603         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
15604         (sordered, sungt, sunle, sunge, sunlt): Likewise.
15605         (eh_epilogue, tablejump): Likewise.
15606
15607 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15608
15609         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
15610         on operands if it has a PLACEHOLDER_EXPR.
15611
15612 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
15613             Mostafa Hagog
15614
15615         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
15616         condition.
15617
15618 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
15619
15620         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
15621         * config/ip2k/ip2k.h: Similarly.
15622         * config/m32r/m32r.h: Similarly.
15623         * config/m68hc11/m68hc11.h: Similarly.
15624         * config/mn10200/mn10200.h: Similarly.
15625         * config/mn10300/mn10300.h: Similarly.
15626         * config/pdp11/pdp11.h: Similarly.
15627         * config/v850/v850.h: Similarly.
15628         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
15629         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
15630         * config/mips/iris3.h: Remove #if 0 block.
15631
15632 2003-03-09  Roger Sayle  <roger@eyesopen.com>
15633             Joern Rennecke <joern.rennecke@superh.com>
15634
15635         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
15636         pending argument upon return from handle_braces here.
15637         (do_spec_2): Instead handle it upon return from do_spec_1 here.
15638
15639 2003-03-09  Roger Sayle  <roger@eyesopen.com>
15640             Joern Rennecke <joern.rennecke@superh.com>
15641
15642         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
15643         pending argument upon return from handle_braces here.
15644         (do_spec_2): Instead handle it upon return from do_spec_1 here.
15645
15646 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15647
15648         * varasm.c (make_decl_one_only): Use declare_weak().
15649
15650 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15651
15652         PR middle-end/9986
15653         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
15654         after the common builtins.
15655         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
15656         * pa.c (TARGET_INIT_BUILTINS): Define.
15657         (pa_init_builtins): New function.
15658
15659         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
15660         space has been allocated for the outgoing arguments, set the arg
15661         pointer for a call emitted after virtuals have been instantiated
15662         using the stack pointer offset, otherwise abort.
15663
15664 2003-03-09  DJ Delorie  <dj@redhat.com>
15665
15666         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
15667
15668 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
15669
15670         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
15671         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
15672         conversion to integer.
15673         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
15674
15675 2003-03-09  Roger Sayle  <roger@eyesopen.com>
15676
15677         * builtins.def: Fix typo and improve grammar.
15678         * loop-unroll.c (decide_peel_completely): Tidy log message.
15679
15680 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
15681
15682         * config/h8300/h8300.md (*tstsi_upper_bit): New.
15683         (*iorsi3_e2f): Likewise.
15684
15685 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
15686
15687         * config/h8300/h8300.c (h8300_and_costs): Return the number of
15688         assembly instructions needed.
15689         (h8300_shift_costs): Likewise.
15690
15691 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
15692
15693         * config/cris/aout.h (ENDFILE_SPEC): Undef.
15694
15695         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
15696         moves from here ...
15697         * expr.c (emit_move_insn_1): ... to here.
15698
15699         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
15700         (TARGET_OS_CPP_BUILTINS): New macro.
15701         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
15702         (TARGET_OS_CPP_BUILTINS): New macro.
15703         (CPP_PREDEFINES): Don't define.  Move old definitions and...
15704         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
15705         (TARGET_CPU_CPP_BUILTINS): New macro.
15706         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
15707         definitions and the optional __PIC__, __pic__ and
15708         __NO_UNDERSCORES__ definitions to...
15709         (TARGET_OS_CPP_BUILTINS): New macro.
15710
15711         * flags.h (flag_leading_underscore): Declare.
15712
15713         * c-opts.c (c_common_post_options): On fopen failure, return
15714         false, not NULL.
15715
15716 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
15717
15718         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
15719         config.h.
15720         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
15721         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
15722
15723 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
15724
15725         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
15726         CPP_PREDEFINES.
15727         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
15728         CPP_PREDEFINES.
15729
15730 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
15731
15732         * c-common.h (c_common_init, c_common_post_options): Update.
15733         * c-objc-common.c (c_objc_common_init): Update for new prototype.
15734         * c-opts.c (saved_lineno): New.
15735         (c_common_post_options, c_common_init): Update prototypes,
15736         move call to cpp_read_main_file from latter to former.
15737         * c-tree.h (c_ojbc_common_init): Update.
15738         * langhooks-def.h (lhd_post_options): New.
15739         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
15740         * langhooks.c (lhd_post_options): New.
15741         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
15742         * toplev.c (no_backend): New.
15743         (process_options): Call post_options hook and set main_input_filename
15744         and input_filename here.
15745         (lang_dependent_init, do_compile): post_options hook moved to
15746         process_options.
15747         * objc/objc-act.c (objc_init): Update prototype.
15748         * objc/objc-act.h (objc_init): Update prototype.
15749
15750 2003-03-08  Roger Sayle  <roger@eyesopen.com>
15751
15752         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
15753         a complex or vector type, using a load in the original mode.
15754
15755 2003-03-08  Jan Hubicka  <jh@suse.cz>
15756
15757         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
15758         * gt-cgraph.h: New GC file.
15759         * cgraph.c (known_fns): New static variable.
15760         (cgraph_node): Add the decl into varray.
15761
15762 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
15763
15764         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
15765
15766 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
15767
15768         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
15769         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
15770         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
15771         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
15772         All callers changed.
15773         * arm.md, arm.h, arm-protos.h: Updated.
15774
15775         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
15776         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
15777         * arm.c (arm_regno_class, f_register_operand): Updated.
15778
15779 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
15780
15781         * config/cris/cris.h: Remove EGCS references.
15782         (CPP_SPEC): Remove "-$".
15783         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
15784
15785 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
15786
15787         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
15788         preference to CPP_PREDEFINES.
15789
15790 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
15791
15792         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
15793
15794 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
15795
15796         * config/h8300/h8300.md (*extzv_16_8): New.
15797
15798 2003-03-08  Jan Hubicka  <jh@suse.cz>
15799
15800         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
15801         * cgraph.h: (cgraph_local_info): Add can_inline_once
15802         (cgraph_global_info): Add inline_once.
15803         (cgraph_node): Add previous.
15804         (cgraph_remove_node): New.
15805         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
15806         function.
15807         (cgraph_optimize): Call it.
15808         (cgraph_finalize_function):  Set inlinable flags.
15809         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
15810         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
15811         (cgraph_expand_function): Likewise.
15812         * cgraph.c
15813         (cgraph_node): Put nodes into doubly linked chain.
15814         (cgraph_remove_node): New function.
15815         * flags.h (flag_inline_functions_called_once): Declare.
15816         * tree-inline.c: Include cgraph.h
15817         (inlinable_functions_p): Add extra argument to bypass limits.
15818         (expand_call_inline):  Obey cgraph flag.
15819         * tree-inline.h (tree_inlinable_function_p): Update prototype.
15820
15821 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15822
15823         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
15824         irreducible loops.
15825
15826         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
15827         loops info correctly.
15828
15829 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15830
15831         PR middle-end/7796
15832         * unroll.c (calculate_giv_inc): Handle constants being
15833         loaded with LSHIFTRT.
15834
15835 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
15836
15837         * config/rs6000/rs6000.c (processor_target_table): Do not disable
15838         GP optional instructions on Power3, Power4, 620, and 630.
15839
15840 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
15841
15842         * calls.c: Fix comment formatting.
15843         * cfgloopanal.c: Likewise.
15844         * cfgloopmanip.c: Likewise.
15845         * combine.c: Likewise.
15846         * dwarf2out.c: Likewise.
15847         * ggc-common.c: Likewise.
15848         * langhooks.c: Likewise.
15849         * loop-unroll.c: Likewise.
15850         * loop.c: Likewise.
15851         * ra-build.c: Likewise.
15852         * sbitmap.c: Likewise.
15853         * toplev.c: Likewise.
15854
15855 2003-03-07  James E Wilson  <wilson@tuliptree.org>
15856
15857         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
15858
15859 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
15860
15861         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
15862         support -no-integrated-cpp.
15863
15864         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
15865         than langhooks.name.
15866
15867 2003-03-07  Michael Matz  <matz@suse.de>
15868
15869         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
15870         (DF_FOR_REGALLOC): New.
15871         * df.c (df_ref_record): Set DF_REF_STRIPPED.
15872         (read_modify_subreg_p): Simplify.
15873         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
15874         Use DF_FOR_REGALLOC.
15875         * ra.h (struct web): New member subreg_stripped.
15876         (invalid_mode_change_regs): Declare.
15877         * ra.c (invalid_mode_change_regs): New.
15878         (init_ra): Initialize it.
15879         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
15880         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15881         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
15882         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
15883         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15884
15885 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
15886
15887         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
15888         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
15889         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
15890         machine description file from ...
15891         * cirrus.md: ... here.
15892
15893 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
15894
15895         * config/h8300/h8300.md (a peephole2): Don't use
15896         reg_overlap_mentioned_p.
15897
15898 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
15899
15900         * c-pch.c: Include langhooks.h.
15901         (IDENT_LENGTH): New.
15902         (get_ident): New.
15903         (pch_ident): Delete.
15904         (pch_init): Use get_ident, IDENT_LENGTH.
15905         (c_common_valid_pch): Likewise.  Also, use actual language
15906         in warning message.
15907         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
15908
15909         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
15910         c-parse.in.
15911         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
15912         gt-objc-objc-act.h.
15913         (gt-objc-objc-act.h): New rule.
15914         * objc/lang-specs.h: Support PCH.
15915         * objc/objc-act.c: Include gt-objc-objc-act.h.
15916         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
15917         (build_selector_reference_decl): Move idx out, mark for PCH.
15918         (build_class_reference_decl): Likewise.
15919         (build_objc_string_decl): Move *_idx out, mark for PCH.
15920         (build_tmp_function_decl): Move xxx out, mark for PCH.
15921
15922 2003-03-06  Dale Johannesen  <dalej@apple.com>
15923
15924         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
15925         global functions for inlining on Darwin.
15926
15927 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
15928
15929         * haifa-sched.c (schedule_block): Don't call reorder when sorting
15930         is prohibited.
15931
15932 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
15933
15934         * Makefile.in (c-ppoutput.o): Update.
15935         * c-common.h (init_pp_output): New.
15936         (preprocess_file): Update.
15937         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
15938         Register builtins.
15939         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
15940         Make call to cpp_read_main_file common to whether preprocessing
15941         or not.  Don't register builtins.
15942         * c-ppoutput.c: Include c-pragma.h.
15943         (setup_callbacks): Rename init_pp_output.
15944         (preprocess_file): No longer setup callbacks or call
15945         cpp_read_main_file.
15946         * cpphash.h (_cpp_init_mbchar): New.
15947         * cppinit.c (init_library): Call _cpp_init_mbchar.
15948         * cpplex.c (_cpp_init_mbchar): New.
15949
15950 2003-03-06  Roger Sayle  <roger@eyesopen.com>
15951
15952         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
15953         MEM, try loading the MEM into a register and taking the low-part
15954         of that, to help CSE see the use of the MEM in its true mode.
15955
15956 2003-03-05  Tom Tromey  <tromey@redhat.com>
15957
15958         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
15959         Define.
15960
15961 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
15962
15963         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
15964         operand 2.
15965         ("*ineqbranchsi"): Likewise.
15966
15967 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
15968
15969         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
15970         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
15971         register store followed by a stack increment.
15972
15973 2003-03-05  Chris Moller  <cmoller@redhat.com>
15974
15975         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
15976         to inhibit saving CARRY_REGS.
15977
15978         * config/stormy16/stormy16.c (xs_hi_general_operand):
15979         added predicate to detect and error-out on out-of-range
15980         const_ints for movhi.
15981         * config/stormy16/stormy16.md (movhi): use
15982         xs_hi_general_operand.
15983
15984         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
15985         added a check for local vbl size overflow.
15986         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
15987         added predicate to detect and error-out on out-of-range
15988         const_ints for addhi and subhi.
15989         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
15990         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
15991
15992         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15993         add a term to accept PRE_MODIFY addresses.
15994         * config/stormy16/stormy16.c (xstormy16_expand_move):
15995         add code to expand PRE_MODIFY addresses to an add followed
15996         by a move.
15997
15998 2003-03-06  Jason Merrill  <jason@redhat.com>
15999
16000         * tree-inline.c (inlinable_function_p): Revert earlier change
16001         pending investigation.
16002
16003 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
16004
16005         * config/h8300/h8300.md (a new peephole2): New.
16006
16007 2003-03-06  Jan Hubicka  <jh@suse.cz>
16008
16009         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
16010
16011 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16012
16013         * dwarf2out.c (size_of_die): Compute size of external reference to
16014         die correctly.
16015
16016 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
16017
16018         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
16019         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
16020         expanders.
16021
16022 2003-03-05  Roger Sayle  <roger@eyesopen.com>
16023
16024         * expr.h (lang_expand_expr): Delete obsolete prototype.
16025
16026 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16027
16028         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
16029
16030 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16031
16032         * config/h8300/h8300.md (a peephole2): Generalize to
16033         accept a memory operand.
16034
16035 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
16036
16037         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
16038         * config/alpha/alpha.c (print_operand, case '+'): New.
16039         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
16040         (call_value_osf_1_noreturn): Likewise.
16041
16042 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16043
16044         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
16045         (expand_end_bindings): Likewise.
16046
16047 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16048
16049         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
16050         (epilogue): Don't generate return_external_pic when emitting PA 2.0
16051         code.
16052
16053 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
16054
16055         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
16056
16057         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
16058
16059         * hooks.c (hook_rtx_rtx_null): New.
16060
16061         * hooks.h (hook_rtx_rtx_null): Protoize.
16062
16063         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
16064         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
16065
16066         * target.h (struct gcc_target): Add dwarf_register_span.
16067
16068         * dwarf2out.c (multiple_reg_loc_descriptor): New.
16069         (one_reg_loc_descriptor): New.
16070         (reg_loc_descriptor): Add support for values that span more than
16071         one register.
16072
16073 2003-03-05  Jan Hubicka  <jh@suse.cz>
16074
16075         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
16076         * alias.c:  Include cgraph.h
16077         (mark_constant_function): Use cgraph_rtl_info.
16078         * calls.c:  Include cgraph.h
16079         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
16080         calls.
16081         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
16082         * cgraph.c (cgraph_rtl_info): New function.
16083         * cgraph.h (cgraph_rtl_info): Declare
16084         (cgraph_rtl_info): Likewise.
16085         * function.h (struct function): Add recursive_call_emit.
16086         * toplev.c: Include cgraph.h.
16087         (rest_of_compilation): Set preferred_incoming_stack_boundary.
16088
16089 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16090
16091         * config/h8300/h8300.c (output_simode_bld): Clear the
16092         destination first if possible.
16093         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
16094         alternative.
16095         (extzv_1_r_inv_h8300hs): Likewise.
16096
16097 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16098
16099         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
16100         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
16101         * cfgloop.c (flow_loop_free): Made global.
16102         (establish_preds): New static function.
16103         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
16104         (get_loop_exit_edges): New.
16105         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
16106         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
16107         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
16108         loops.
16109         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
16110         removability of an edge.
16111         (fix_irreducible_loops): New static function.
16112         (find_path, remove_path): Add ability to remove enclosing loops.
16113         (unloop): New.
16114         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
16115         flags.
16116         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
16117         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
16118         not neccessary.
16119         (decide_peel_completely, peel_loops_completely): Allow complete peeling
16120         of non-duplicable once rolling loops.
16121         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
16122
16123 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
16124
16125         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
16126         for align_jumps is 4.
16127
16128         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
16129         use GENERAL_REGS.
16130
16131 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
16132
16133         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
16134         according to va_arg type.
16135         (EXPAND_BUILTIN_VA_ARG): Remove.
16136         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
16137         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
16138
16139 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
16140
16141         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
16142         else clauses.
16143
16144 2003-03-05  Michael Matz  <matz@suse.de>
16145
16146         * i386/i386.c (ix86_save_reg): Also test
16147         current_function_uses_const_pool.
16148
16149 2003-03-05  Michael Matz  <matz@suse.de>
16150
16151         * unwind.h: Add the GPL exception.
16152         * Makefile.in (USER_H): Add unwind.h.
16153
16154 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
16155
16156         PR c/9799
16157         * c-typeck.c (push_init_level): Add sanity check.
16158
16159 2003-03-05  Jan Hubicka  <jh@suse.cz>
16160
16161         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
16162         RTL inlining is done.
16163
16164         * cgraphunit.c (cgraph_mark_local_functions): New local function.
16165         (cgraph_optimize): Mark local functions.
16166         * i386-protos.h (init_cumulative_args): Update prototype.
16167         * i386.c (init_cumulative_args): Use register passing convention for
16168         local functions.
16169
16170         * cgraph.c (cgraph_global_info_ready): New global variable
16171         (cgraph_local_info, cgraph_global_info): New functions.
16172         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
16173         structures.
16174         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
16175         Declare.
16176         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
16177         (cgraph_mark_functions_to_output): Use inline_many.
16178         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
16179         (cgraph_expand_functions): Expand inline functions last.
16180         (cgraph_optimize): Do not emit uneeded functions.
16181
16182 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
16183
16184         * expr.c (convert_modes): Check for legal hard register.
16185
16186 2003-03-04  Tom Tromey  <tromey@redhat.com>
16187
16188         * doc/sourcebuild.texi (Front End Directory): Document tags.
16189         * configure: Rebuilt.
16190         * configure.in (target_list): Added tags.
16191         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
16192         TAGS files by reference.
16193         * objc/Make-lang.in (objc.tags): New target.
16194
16195 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16196
16197         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
16198         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
16199         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
16200         gcov_read_string, gcov_write_length): Modified to enable reading/
16201         writing of whole .da file just once.
16202         (da_file_open, da_file_close, da_file_eof, da_file_error,
16203         da_file_position, da_file_seek, da_file_write, da_file_read): New
16204         functions.
16205         (actual_da_file, actual_da_file_position, actual_da_file_length,
16206         actual_da_file_buffer, actual_da_file_buffer_size): New static
16207         functions.
16208         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
16209         just once.
16210
16211
16212 2003-03-04  Andreas Schwab  <schwab@suse.de>
16213
16214         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
16215         offset without frame pointer.
16216
16217 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
16218
16219         * expr.c (expand_expr): Call promote_mode to set unsignedp.
16220
16221 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
16222
16223         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
16224         * configure: Regenerated.
16225         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
16226
16227 2003-03-04  Andreas Jaeger  <aj@suse.de>
16228
16229         * configure.in: Check for <memcheck.h>.
16230         * configure: Regenerated.
16231
16232         * config.in: Define HAVE_MEMCHECK_H.
16233
16234         * ggc-common.c: Use <memcheck.h> if available instead of
16235         <valgrind.h>.
16236         * ggc-page.c: Likewise.
16237         * cppfiles.c: Likewise.
16238
16239 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
16240
16241         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
16242
16243 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
16244
16245         PR c/9262
16246         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
16247         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
16248
16249 2003-03-04  Jan Hubicka  <jh@suse.cz>
16250
16251         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
16252         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
16253         for -O3.
16254
16255 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
16256
16257         * configure.in: Delete three unused variables.  Move a variable
16258         definition closer to its use.  Simplify use_collect2 logic.  Start to
16259         organize.  Simplify tests for in-tree gas and ld.
16260         * configure: Regenerate.
16261
16262 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
16263
16264         * Makefile.in: Update.
16265         * c-common.c (flag_no_line_commands, flag_no_output,
16266         flag_dump_macros, flag_dump_includes): New.
16267         * c-common.h (flag_no_line_commands, flag_no_output,
16268         flag_dump_macros, flag_dump_includes, preprocess_file): New.
16269         (init_c_lex): Update prototype.
16270         * c-lex.c (init_c_lex): Update prototype; move some code to
16271         c_common_init.
16272         * c-opts.c (preprocess_file): Subsume into c_common_init.
16273         (c_common_decode_option): Update flags.
16274         (c_common_init): Move code from preprocess_file and init_c_lex.
16275         (sanitize_cpp_opts): Update.
16276         * c-ppoutput.c: New, cppmain.c almost verbatim.
16277         * cpphash.h (struct printer): Remove.
16278         (struct cpp_reader): Remove print.
16279         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
16280         cpp_preprocess_file): Remove.
16281         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
16282         and dump_includes.
16283         * cppmain.c: Remove.
16284         * doc/passes.texi: Update.
16285
16286 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16287
16288         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
16289         (assign_stack_local_1): Perform overall stack alignment only when
16290         STACK_ALIGNMENT_NEEDED is nonzero.
16291         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
16292
16293         * pa.c (compute_frame_size): Rename fsize to size.  Account for
16294         alignment to a word boundary before general register save block.  Only
16295         account for double-word alignment before floating point register save
16296         block if one or more are saved.  Don't allocate space for %r3 when
16297         frame pointer is needed.
16298         (hppa_expand_prologue): Include alignment to word boundary in local
16299         frame size.
16300         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
16301         (STACK_ALIGNMENT_NEEDED): Define.
16302
16303 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
16304
16305         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
16306         global register variables.
16307
16308 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
16309
16310         * reload.c (reload_adjust_reg_for_mode): New function.
16311         (subst_reloads): Call it.
16312         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
16313         * reload.h (reload_adjust_reg_for_mode): Declare.
16314         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
16315         Call it.
16316
16317 2003-03-03  James E Wilson  <wilson@tuliptree.org>
16318
16319         * optabs.c (add_equal_note): Delete SUBREG_REG use.
16320         Fixes PR c/7872.
16321
16322 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16323
16324         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
16325         (*ixorsi3_lshiftrt_16): New.
16326         (*iorsi3_ashift_16): Remove.
16327
16328 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16329
16330         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
16331         pattern.
16332
16333 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
16334
16335         * doc/install.texi (Specific): Update entry for powerpc-darwin.
16336
16337 2003-03-03  Richard Henderson  <rth@redhat.com>
16338
16339         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
16340
16341 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
16342
16343         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
16344         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
16345         (rs6000_variable_issue): Do not return negative value.
16346         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
16347         scheduling pass.
16348
16349 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16350
16351         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
16352         prune_unused_types calls.
16353
16354 2003-03-03  Jason Merrill  <jason@redhat.com>
16355
16356         * tree-inline.c (find_builtin_longjmp_call): Save and restore
16357         lineno and input_filename.
16358         (find_alloca_call): Likewise.
16359         (inlinable_function_p): Run the langhook earlier.
16360
16361         * calls.c (compute_argument_addresses): Give the new MEMs a
16362         minimum alignment of PARM_BOUNDARY.
16363
16364 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
16365
16366         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
16367         subtarget_asm_isa_spec.
16368         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
16369         (ASM_SPEC): Define as SH_ASM_SPEC.
16370         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
16371         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
16372         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
16373         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
16374
16375         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
16376         and align_jumps if not set.
16377         Force align_jumps to be at least 2.
16378         When relaxing, force align_functions to be at least the maximum of
16379         align_loops, align_jumps and 4.
16380         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
16381         (sh_loop_align): Honour align_loops_log.
16382
16383         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
16384         to check for indirect_jump_scratch.
16385         (indirect_jump_scratch): Add second set.
16386         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
16387         when looking for indirect_jump_scratch.
16388         Extract scratch register taking new structure of indirect_jump_scratch
16389         into account.
16390         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
16391
16392 2003-03-03  Jan Hubicka  <jh@suse.cz>
16393
16394         * calls.c (rtx_for_function_call): Take the address as an argument
16395         (expand_call): Do not modify the expression.
16396
16397         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
16398         optimizing.
16399
16400 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16401
16402         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
16403         TARGET_H8300H and TARGET_H8300S.
16404
16405 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16406
16407         * config/h8300/h8300.md (a peephole2): New.
16408
16409 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16410
16411         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
16412         operands[0] and operands[1] are different.
16413
16414 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16415
16416         * reload1.c (reload_cse_move2add): Remove variable success.
16417
16418 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16419
16420         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
16421         warnings.
16422
16423 2003-03-02  Richard Henderson  <rth@redhat.com>
16424
16425         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
16426         * config.in, configure: Rebuild.
16427         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
16428         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
16429         paired ldtoffx and ldxmov annotations.
16430         (load_symptr_internal1): Remove.
16431         (load_symptr_high, load_symptr_low): New.
16432
16433 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
16434
16435         * c-incpath.c (add_path): Fix sysp assignment.
16436
16437 2003-03-02  Kurt Garloff  <garloff@suse.de>
16438
16439         * params.def: Introduce parameter max-inline-insns-rtl for
16440         a separate limit for the RTL inliner.
16441         * params.h: Likewise.
16442         * integrate.c (function_cannot_inline_p): Use it.
16443         * toplev.c (decode_f_option): Set multiple parameters
16444         controlling inlining with -finline-limit.
16445         * params.def: Fix orthographic and typographic errors.
16446         * doc/invoke.texi: Document parameters controlling inlining
16447         and the way -finline-limit sets multiple of them.
16448
16449         * tree.h (struct tree_decl): Introduce inlined_function_flag,
16450         recording whether the function became eligible for inlining
16451         by a compiler flag rather than the declaration.
16452         Provide DID_INLINE_FUNC macro to access it.
16453         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
16454         * cp/decl.c (grokfndecl): Likewise.
16455         * toplev.c (rest_of_compilation): Likewise.
16456         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
16457         * print-tree.c (print_node): Report it.
16458         * params.def: Introduce new max-inline-insns-auto limit.
16459         * params.h: Likewise.
16460         * tree-inline.c (inlinable_function_p): Apply it to functions
16461         with DID_INLINE_FUNC set.
16462         * toplev.c (decode_f_option): Initialize it from -finline-limit
16463         value.
16464         * doc/invoke.texi: Document new parameter.
16465
16466 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
16467
16468         * fix-header.c (read_scan_file): Don't reference simplify_path.
16469
16470 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
16471
16472         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
16473         min/max instructions by default as may result in reload errors.
16474
16475 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
16476
16477         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
16478         avoid reload problems; define split for it.
16479
16480 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
16481
16482         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
16483         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
16484         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
16485         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
16486         rotatert and rotate.
16487         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
16488         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
16489         ("*rotrhi3_addr"): New split for shift insns on address register.
16490         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
16491         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
16492         (___rotrhi3): Likewise.
16493         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
16494
16495 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
16496
16497         * toplev.c (aux_base_name): Moved from toplev.h.
16498         (filename): Constify.
16499         (lang_dependent_init): Don't duplicate name.
16500         (process_options): Set aux_base_name here, not...
16501         (do_compile): ...here.  Change protoype.
16502         (toplev_main): Move some code from do_compile.
16503         * toplev.h: Remove aux_base_name.
16504
16505 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
16506
16507         * config/h8300/h8300-protos.h: Add a prototype for
16508         iorxor_operator.
16509         * config/h8300/h8300.c (print_operand): Handle 'c'.
16510         (iorxor_operator): New.
16511         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
16512         * config/h8300/h8300.md (*iorhi3_zext): Remove.
16513         (*iorsi3_zexthi): Likewise.
16514         (*iorsi3_zextsi): Likewise.
16515         (*xorhi3_zextqi): Likewise.
16516         (*xorsi3_zexthi): Likewise.
16517         (*xorsi3_zextsi): Likewise.
16518         (*ixorhi3_zext): New.
16519         (*ixorsi3_zext_qi): Likewise.
16520         (*ixorsi3_zext_hi): Likewise.
16521
16522 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
16523
16524         * c-incpath.c (remove_component_p, simplify_path): Move back to
16525         cppfiles.c.
16526         (remove_duplicates): Use cpp_simplify_path.
16527         * c-incpath.h (simplify_path): Remove.
16528         * c-lex.c: Don't include c-incpath.h.
16529         (init_c_lex): Remove simplify_path.
16530         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
16531         (find_or_create_entry, validate_pch): Revert.
16532
16533 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
16534
16535         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
16536           an external cpp during compilation.
16537         (option_map): Likewise.
16538         * objc/lang-specs.h (default_compilers): Similarly.
16539         * doc/invoke.texi: Document -no-integrated-cpp flag.
16540
16541 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
16542
16543         * config/h8300/h8300.md (zero_extendqisi2): Change to an
16544         expander.
16545         (*zero_extendqisi2_h8300): New.
16546         (*zero_extendqisi2_h8300hs): New.
16547         (two splitters): New.
16548
16549 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16550
16551         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
16552
16553 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
16554
16555         * config/h8300/h8300.md (a peephole2): Remove dead code.
16556
16557 2003-03-01  Roger Sayle  <roger@eyesopen.com>
16558
16559         PR c++/9367
16560         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
16561         (BT_FN_INT_CONST_STRING_VALIST_ARG,
16562         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
16563         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
16564         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
16565         BT_FN_INT_STRING_CONST_STRING_VAR,
16566         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
16567         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
16568         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
16569         ATTR_NONNULL_3): Also include the nothrow attribute.
16570         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
16571         vsnprintf, vscanf, vsscanf): Don't define attributes here.
16572         * builtins.def (putchar, puts): Make full C89 built-ins.
16573         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
16574         vsscanf, vsnprintf, vsprintf): New built-ins.
16575         * c-common.c (c_common_nodes_and_builtins): Handle new macro
16576         DEF_FUNCTION_TYPE_VAR_3.
16577
16578         * doc/extend.texi: Document these new built-in functions.
16579
16580 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
16581
16582         * config/h8300/h8300.md (a peephole2): New.
16583
16584 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
16585
16586         * predict.c (estimate_bb_frequencies): Correctly set
16587         real_values_initialized after initialization.
16588
16589 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
16590
16591         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
16592         cppinit.o, cppdefault.o, fix-header): Update.
16593         * c-incpath.c: New file.
16594         * c-incpath.h: New file.
16595         * c-lex.c: Include c-incpath.h.
16596         (init_c_lex): Register path simplifier.
16597         * c-opts.c: Include cppdefault.h and c-incpath.h.
16598         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
16599         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
16600         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
16601         (missing_arg, c_common_decode_option): Handle them.
16602         (c_common_post_options): Register include chains.
16603         (print_help): Update.
16604         * cppdefault.h (struct default include): Update.
16605         Move some macros to ...
16606         * cppdefault.c: ... here.
16607         (cpp_include_defaults): Add extra field add_sysroot.
16608         * cppfiles.c (include_file, search_from, find_or_create_entry,
16609         cpp_included, find_include_file, remap_filename): Update for
16610         renaming of search_path to cpp_path, and of the chain headers.
16611         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
16612         * cpphash.h (struct search_path): Move to cpplib.h.
16613         (struct cpp_buffer, struct cpp_reader): Update.
16614         (_cpp_simplify_pathname): Remove.
16615         * cppinit.c: Don't include prefix.h and cppdefault.h.
16616         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
16617         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
16618         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
16619         no_pth, cpp_handle_options): Remove.
16620         (struct pending_option): Remove chain members.
16621         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
16622         cpp_handle_option): Update.
16623         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
16624         (struct cpp_options): Remove quote_include, bracket_include,
16625         include_prefix, include_prefix_len, verbose, ignore_srcdir,
16626         no_standard_includes, no_standard_cplusplus_includes.
16627         (struct cpp_callbacks): Add simplify_path.
16628         (cpp_handle_options): Remove.
16629         * fix-header.c: Include c-incpath.h.
16630         (read_scan_file): Update to use c-incpath functionality.
16631         * doc/passes.texi: Update.
16632
16633 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
16634
16635         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
16636         satisfies EXTRA_CONSTRAINT 'U'.
16637
16638 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
16639
16640         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
16641         register.
16642         (*tst_extzv_memqi_1_n): Change to a splitter.
16643         (a peephole2): Update.
16644
16645 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
16646
16647         * predict.c (estimate_bb_frequencies): Initialize the sreal
16648         constants once per compilation.
16649
16650 2003-02-28  Richard Henderson  <rth@redhat.com>
16651
16652         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
16653
16654 2003-02-28  scott snyder  <snyder@fnal.gov>
16655
16656         * flags.h: Add flag_eliminate_unused_debug_types.
16657         * toplev.c: Add flag_eliminate_unused_debug_types.
16658         (f_options): Add -feliminate-unused-debug-types.
16659         * dwarf2out.c (struct file_table): Add emitted member.
16660         (splice_child_die): Fix the parent pointer for the child being
16661         spliced.
16662         (lookup_filename): Maintain file_table.emitted array.  Don't
16663         output .file directive here.
16664         (maybe_emit_file): (new)
16665         (init_file_table): Set up file_table.emitted.
16666         (dwarf2out_source_line): Use maybe_emit_file.
16667         (dwarf2out_start_source_file): Use maybe_emit_file.
16668         (dwarf2out_init): Use maybe_emit_file.
16669         (prune_unused_types_walk_attribs): (new)
16670         (prune_unused_types_mark): (new)
16671         (prune_unused_types_walk): (new)
16672         (prune_unused_types_prune): (new)
16673         (prune_unused_types): (new)
16674         (dwarf2out_finish): Call prune_unused_types if
16675         flag_eliminate_unused_debug_types is set.
16676         * doc/invoke.texi (Option Summary): Add
16677         -feliminate-unused-debug-types.
16678         (Debugging Options): Likewise.
16679
16680 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
16681
16682         * doc/invoke.texi: Change .pch to .gch.
16683         * cppfiles.c (open_file_pch): Likewise.
16684         * gcc.c (default_compilers): Likewise.
16685
16686 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
16687
16688         * floatlib.c: Remove.
16689
16690 2003-02-28  Jason Merrill  <jason@redhat.com>
16691
16692         * stor-layout.c (variable_size): Leave a "minus 1" outside the
16693         SAVE_EXPR.
16694
16695 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
16696
16697         * config/rs6000/power4.md: Add compare bypass.
16698
16699 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
16700
16701         * config/netbsd.h: Update copyright years.
16702         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
16703         -pthread is specified on the command line.
16704
16705 2003-02-28  Dale Johannesen <dalej@apple.com>
16706
16707         * loop.c (struct movable): Add insert_temp, shrink savemode.
16708         (scan_loop): Accept invariants that require copying; mark as
16709         insert_temp.
16710         (combine_movables): Don't combine insert_temp movables.
16711         (move_movables): Insert copies for insert_temp movables.
16712         Don't record the info based on regno for insert_temp's.
16713
16714 2003-02-28  Joel Sherrill <joel@OARcorp.com>
16715
16716         PR 9638/other
16717         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
16718         this constant defaults to 1.
16719
16720 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
16721
16722         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
16723
16724 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
16725
16726         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
16727         ARMv5e processor, not just for XScale.  Instructions are predicable.
16728         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
16729
16730 2003-02-28  Nick Clifton  <nickc@redhat.com>
16731
16732         * config/arm/arm.c (note_invalid_constants): Change parameter type
16733         from bool to int.
16734
16735 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
16736
16737         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
16738         test of bit 7.
16739         (*tst_extzv_memqi_1_n): Likewise.
16740         (a peephole2): New.
16741
16742 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
16743
16744         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
16745         #ifndef __mips16.
16746
16747 2003-02-28  Jan Hubicka  <jh@suse.cz>
16748
16749         * combine.c (gen_lowpart_for_combine): Update handling of
16750         subregs_of_mode
16751         * flow.c (life_analysis, mark_used_regs): Likewise.
16752         * regclass.c (subregs_of_mode): Turn into single bitmap.
16753         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
16754         dealing with subregs_of_mode
16755         * regs.h (subregs_of_mode): Update prototype.
16756
16757 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
16758
16759         * emit-rtl.c (set_reg_attrs_for_parm): New function.
16760         * rtl.h (set_reg_attrs_for_parm): New exported function.
16761         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
16762         set_reg_attrs_from_mem.
16763
16764 2003-02-27  Roger Sayle  <roger@eyesopen.com>
16765             Zack Weinberg <zack@codesourcery.com>
16766
16767         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
16768
16769 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
16770
16771         * reload1.c (sext_for_mode): Remove.
16772         (reload_cse_move2add): Use trunc_int_for_mode instead of
16773         sext_for_mode.
16774         (move2add_note_store): Likewise.
16775         Reset register information if we see a set in non-integer
16776         mode.
16777
16778 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
16779
16780         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
16781         option.
16782         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
16783         * config/rs6000/aix51.h: Same.
16784         * config/rs6000/aix52.h: Same.
16785         * config/rs6000/power4.md: Additional VMX bypasses.
16786
16787 2003-02-27   Geert Bosch <bosch@gnat.com>
16788
16789         * toplev.c (print_version): Add indentation for GGC heuristics and
16790         output after printing version information.
16791
16792 2003-02-27  James E Wilson  <wilson@tuliptree.org>
16793
16794         * combine.c (simplify_comparison): Require integral mode when
16795         permuting SUBREG with AND.
16796
16797 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
16798
16799         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
16800
16801 2003-02-27  Nick Clifton  <nickc@redhat.com>
16802
16803         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
16804         deleted when cirrus instructions were added.
16805
16806 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
16807
16808         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
16809         POSIX thread support by default.
16810
16811 2003-02-27  Roger Sayle  <roger@eyesopen.com>
16812
16813         * config/i386/cygwin.h: Don't include any other files directly.
16814         * config/i386/mingw32.h: Don't include cygwin.h directly.
16815         * config.gcc (cygwin, mingw32, uwin): Instead make these files
16816         explicit in the tm_files variable.
16817
16818 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
16819
16820         * config/rs6000/rs6000.md: Add TI constant splitter.
16821
16822 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
16823
16824         * builtins.c (purge_builtin_constant_p): Handle subreg of
16825         constant_p_rtx too.
16826
16827         * function.c (assign_stack_local_1): Truncate constant added to
16828         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
16829
16830 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
16831
16832         * config.gcc: Add power4 to PowerPC with_cpu list.
16833
16834 2003-02-26  Jan Hubicka  <jh@suse.cz>
16835
16836         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
16837
16838 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16839
16840         * gcov-dump.c (print_prefix): Fix signedness warning.
16841         * gcov-io.h (struct counter_section, struct counter_section_data): New.
16842         (struct function_info): n_arc_counts field removed, n_counter_sections,
16843         counter_sections fields added.
16844         (struct gcov_info): arc_counts, n_arc_counts fields removed,
16845         n_counter_sections, counter_sections fields added.
16846         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
16847         profile sections.
16848         * profile.h (MAX_COUNTER_SECTIONS): New.
16849         (struct section_info): New.
16850         (struct profile_info): count_instrumented_edges,
16851         count_edges_instrumented_now fields removed, n_sections, section_info
16852         fields added.
16853         (find_counters_section): Declare.
16854         * profile.c (struct function_list): count_edges field removed,
16855         n_counter_sections, counter_sections fields added.
16856         (set_purpose, label_for_tag, build_counter_section_fields,
16857         build_counter_section_value, build_counter_section_data_fields,
16858         build_counter_section_data_value, build_function_info_fields,
16859         build_function_info_value, build_gcov_info_fields,
16860         build_gcov_info_value): New static functions.
16861         (find_counters_section): New function.
16862         (instrument_edges, get_exec_counts, compute_branch_probabilities,
16863         branch_prob, create_profiler): Modified to support multiple profile
16864         sections.
16865
16866 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16867
16868         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
16869         is 8 * STACK_BOUNDARY.
16870         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
16871
16872 2003-02-26  Michael Matz  <matz@suse.de>
16873
16874         * ra-colorize.c (merge_moves): Fix list handling.
16875
16876 2003-02-26  Nick Clifton  <nickc@redhat.com>
16877
16878         * config/arm/arm.c (is_load_address): Rename to...
16879         (arm_memory_load_p) ... this and make it check for SUBREGs and
16880         constant loads that will be converted into loads from the
16881         minipool.
16882         (is_cirrus_insn): Rename to ...
16883         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
16884         of CIRRUS_NO with CIRRUS_NOT.
16885         (cirrus_reorg): Use renamed functions.
16886         (note_invalid_constants): Change from a void function to bool.
16887         Add an extra parameter, saying whether the fixups should be
16888         pushed.  Return true if fixups are needed.
16889         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
16890         of CIRRUS_NO with CIRRUS_NOT.
16891         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
16892         other floating point co-processors can also affect this.
16893         * config/arm/arm.md ("type" attribute): Add mav_farith and
16894         mav_dmult.  Replace references to "cirrus_type" attribute with
16895         "type".
16896         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
16897         ("cirrus_type" attribute): Delete - use "type" instead.
16898         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
16899         'normal'.
16900
16901 2003-02-25  Jan Hubicka  <jh@suse.cz>
16902
16903         * objc-act.c: Include cgraph.h
16904         (mark_referenced_methods): New function.
16905         (objc_init): Call it.
16906         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
16907
16908         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
16909         mode.
16910
16911         * optabs.c (expand_fix): Do not widen the input operand.
16912
16913         * expr.c (emit_group_store):  Fix crash when converting single
16914         register into complex register.
16915
16916         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
16917         * alias.c: Include timevar.h
16918         (init_alias_analysis):  Set timevar
16919         * jump.c: Include timevar.h
16920         (rebuild_jump_labels):  Set timevar
16921         * regcalss.c: Include timevar.h
16922         (reg_scan):  Set timevar
16923         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
16924
16925 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16926
16927         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
16928
16929         * Makefile.in (loop-unroll.o): New.
16930         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
16931         (unroll_and_peel_loops): Declare.
16932         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
16933         flag_old_unroll_loops.
16934         * loop.c (loop_invariant_p): Ditto.
16935         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
16936         flag_old_unroll_all_loops.
16937         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
16938         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
16939         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
16940         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
16941         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
16942         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
16943         PARAM_MAX_ONCE_PEELED_INSNS): New.
16944         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
16945         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
16946         instead of old one.
16947         (flag_peel_loops): New.
16948         (lang_independent_options): The new flags added.
16949         (rest_of_compilation): Call new unroller.
16950         (process_options): Setup flags for coexistence of old and new unroller.
16951         * doc/invoke.texi: Document new options.
16952         * doc/passes.texi: Document new unroller pass.
16953
16954 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
16955
16956         * fixinc/fixincl.x: Regenerate
16957
16958 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
16959
16960         * function.c (assign_parms): Set reg_attrs for parameters passed in
16961         registers.
16962
16963 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
16964
16965         PR target/9681
16966         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
16967
16968 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
16969
16970         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
16971         pseudo-op.
16972
16973 2003-02-25  Roger Sayle  <roger@eyesopen.com>
16974
16975         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
16976         * cse.c (invalidate_skipped_set):  Likewise.
16977         * integrate.c (subst_constants):  Likewise.
16978         * jump.c (reversed_comparison_code_parts):  Likewise.
16979         * loop.c (canonicalize_condition):  Likewise.
16980         * simplify-rtx.c (simplify_relational_operation):  Likewise.
16981
16982 2003-02-25  Roger Sayle  <roger@eyesopen.com>
16983
16984         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
16985         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
16986         the appropriate macro to define built-in function.
16987         (fmod,fmodf,fmodl): New built-in functions.
16988
16989         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
16990
16991 2003-02-25  Richard Henderson  <rth@redhat.com>
16992
16993         * config/i386/i386.c (function_arg): Pass variable sized
16994         structures correctly on the stack.
16995
16996 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
16997
16998         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
16999         does not reduce the cost of SET.
17000
17001 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17002
17003         PR target/9732
17004         * config/rs6000/rs6000.c (first_reg_to_save): Handle
17005         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
17006         (rs6000_emit_prologue): Likewise.
17007         (rs6000_emit_epilogue): Likewise.
17008         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
17009         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
17010
17011 2003-02-25  Richard Henderson  <rth@redhat.com>
17012
17013         * real.c (real_to_integer2): Force overflow result only for
17014         unsigned overflow.
17015
17016 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
17017
17018         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
17019
17020 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
17021             Richard Henderson  <rth@redhat.com>
17022
17023         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
17024         there is no similar load.
17025
17026 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
17027             Richard Henderson  <rth@redhat.com>
17028
17029         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
17030         sched-rgn.c.
17031         (add_forward_dependence): New function prototype.
17032
17033         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
17034         sched-init.h.
17035         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
17036         them to haifa-sched.c.
17037
17038         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
17039         haifa_classify_insn): Move them from sched-rgn.c.
17040
17041         * sched-deps.c (add_dependence): Return flag of creating a new
17042         entry.
17043         (add_forward_dependence): New function.
17044         (compute_forward_dependences): Use the function.
17045
17046         * sched-ebb.c (earliest_block_with_similiar_load): New function.
17047         (add_deps_for_risky_insns): New function.
17048         (schedule_ebb): Call the function.
17049
17050 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
17051
17052         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
17053         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
17054
17055         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
17056         opaque types fail.
17057
17058         * c-typeck.c (comptypes): Change call to vector_types_compatible
17059         to vector_opaque_p.
17060         (convert_for_assignment): Call vector_opaque_p instead of
17061         vector_types_compatible.
17062         (really_start_incremental_init): Disallow initialization of opaque
17063         types.
17064
17065         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
17066         Define TARGET_VECTOR_OPAQUE_P.
17067         (TARGET_INITIALIZER): Same.
17068
17069         * target.h (struct gcc_target): Remove vector_types_compatible.
17070         Add vector_opaque_p.
17071
17072         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
17073         Remove.
17074         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
17075         a vector type.  Change return type to bool.
17076         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
17077         (TARGET_VECTOR_OPAQUE_P): Define.
17078
17079         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
17080         target hook.
17081         Include target.h.
17082         (cp_parser_init_declarator): Fix typo in function comments.
17083
17084 2003-02-25  Jan Hubicka  <jh@suse.cz>
17085
17086         * Makefile.in (lcm.o):  Add dependency on function.h
17087         * lcm.c (function.h): Include.
17088         * i386.c (machine_function, ix86_stack_locals,
17089         * ix86_save_varrargs_registers) : Move to
17090         ...
17091         * i386.h (machine_function, ix86_stack_locals,
17092         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
17093         (ix86_optimize_mode_switching): New.
17094         * i386.md (fix patterns): Set ix86_optimize_mode_switching
17095
17096 2003-02-25  Nick Clifton  <nickc@redhat.com>
17097
17098         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
17099         of fourth arg is 'fndecl' not 'indirect'.  Update comment
17100         describing the function's parameters.
17101
17102 2003-02-24  Jan Hubicka  <jh@suse.cz>
17103
17104         * combine.c (simplify_shift_const):  Fix previous patch.
17105
17106 2003-02-24  Jeff Law  <law@redhat.com>
17107
17108         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
17109         alternative.
17110         (testsi_1, testhi_1, testqi_1): Likewise.
17111
17112 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17113
17114         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
17115         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
17116         * doc/extend.texi (Tru64 Pragmas): Reflect this.
17117
17118         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
17119         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
17120         * fixinc/fixincl.x: Regenerate.
17121         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
17122         testcase.
17123         Fixes PR c/5059, c/6126, other/9671.
17124
17125 2003-02-24  Roger Sayle  <roger@eyesopen.com>
17126
17127         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
17128         from handle_braces in "%{...}".
17129
17130 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17131
17132         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
17133         (prepare_move_operands): Handle TLS operands.
17134         (tls_symbolic_operand): New.
17135         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
17136         (legitimize_pic_address): Do nothing for the TLS symbol.
17137         (sh_encode_section_info): Handle TLS case.
17138         (sh_strip_name_encoding): Drop TLS encoding.
17139         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
17140         * config/sh/sh.h (SH_TLS_ENCODING): Define.
17141         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
17142         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
17143         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
17144         * config/sh/sh.md: Define TLS UNSPEC constants.
17145         (type): Add tls_load.
17146         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
17147         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
17148         ("tls_initial_exec"): New insn.
17149         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
17150         ("load_gbr"): New insn.
17151
17152         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
17153         * configure: Regenerate.
17154
17155 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
17156
17157         PR 9297, PR 9722
17158         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
17159         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
17160         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
17161         (enum block_op_methods): Reorder for better store_expr optimization.
17162         * expr.c (store_expr): Test bit 1 of "want_value" for call param
17163         stores, test bit 0 for original want_value meaning.  Pass
17164         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
17165         recursive calls, and calls to expand_param.
17166         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
17167         expected, set target to 0 rather than to subtarget.  Formatting.
17168
17169 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
17170
17171         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
17172
17173 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17174
17175         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
17176         new default behavior.
17177         * ggc-common.c: Include sys/resource.h.
17178         (ggc_rlimit_bound): New function.
17179         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
17180         defaults to account for rlimits.
17181
17182 2003-02-22  Richard Henderson  <rth@redhat.com>
17183
17184         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
17185
17186 2003-02-22  Kelley Cook <kelley@dwhoops.info>
17187
17188         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
17189         (ix86_tune_string): Rename from ix86_cpu_string.
17190
17191 2003-02-22  Kelley Cook <kelleycook@comcast.net>
17192
17193         * config/i386/i386.c: Replace "mcpu" with "mtune".
17194         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
17195         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
17196         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
17197         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
17198
17199 2003-02-23  Andreas Schwab  <schwab@suse.de>
17200
17201         * config.gcc: Delete references to m68k/t-linux and
17202         m68k/t-linux-aout.
17203         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
17204
17205 2003-02-22  Jan Hubicka  <jh@suse.cz>
17206
17207         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
17208         of track scheduling patch.
17209
17210 2003-02-22  Jan Hubicka  <jh@suse.cz>
17211
17212         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
17213         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
17214
17215 2003-02-22  Jan Hubicka  <jh@suse.cz>
17216
17217         * c-decl.c (c_expand_body_1): Fix.
17218
17219 2003-02-22  Jan Hubicka  <jh@suse.cz>
17220
17221         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
17222
17223         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
17224         when not optimizing.
17225         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
17226         when not expensive.
17227         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
17228         optimizing;  Delete trivially dead insns early; fix optimize check.
17229
17230         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
17231         dependency on cgraph.h
17232         * c-decl.c: Include cgraph.h
17233         (finish_function): Update call of tree_inlinable_function_p.
17234         * c-objc-common.c: Include cgraph.h
17235         * cgraph.h: New file.
17236         * cgraphunit.c: New file.
17237         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
17238         (cgraph_nodes, cgraph_n_nodes): Globalize.
17239         (cgraph_finalize_function, cgraph_finalize_compilation_unit
17240         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
17241         Move into cgraphunit.c
17242         * tree-inline.c: Include cgraph.h
17243         * tree-inline.c: Include cgraph.h
17244
17245 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
17246
17247         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
17248         for copying a register.
17249
17250 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
17251
17252         PR other/3782
17253         * toplev.c (process_options): If flag_detailed_statistics is set,
17254         then set time_report as well.
17255
17256         PR c/8828
17257         * jump.c (never_reached_warning): Don't fall through BARRRIER
17258         insns.  Update comments to reflect what the function really does.
17259
17260 2003-02-21  Roger Sayle  <roger@eyesopen.com>
17261
17262         * fold-const.c (omit_one_operand): No longer static.
17263         * tree.h (omit_one_operand): Prototype here.
17264         (div_and_round_double): Keep fold-const.c prototypes together.
17265         * builtins.c (builtin_mathfn_code): Handle binary built-in
17266         funtions, such as "pow" and "atan2".
17267         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
17268         Simplify optimizations using "type" the builtin's return type.
17269
17270 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
17271
17272         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
17273         Fix functionalization typo.
17274
17275         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
17276         in an asm.
17277
17278 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17279
17280         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
17281         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
17282         documentation.
17283         * ggc-common.c: Include params.h
17284         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
17285         init_ggc_heuristics): New functions.
17286         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
17287         init_ggc_heuristics): Prototype.
17288         * toplev.c (print_version):  Output GGC heuristics.
17289         (parse_options_and_default_flags): Call init_ggc_heuristics.
17290
17291 2003-02-22  Jan Hubicka  <jh@suse.cz>
17292
17293         * i386.c (def_builtin):  Special case 64bit builtins.
17294         (MASK_SSE164, MASK_SSE264): New constants.
17295         (builtin_description): Add 64bit builtins.
17296         (ix86_init_mmx_sse_builtins): Likewise.
17297         * i386.h (enum ix86_builtins): Likewise.
17298         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
17299         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
17300         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
17301         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
17302         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
17303         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
17304         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
17305
17306 2003-02-22  Jan Hubicka  <jh@suse.cz>
17307
17308         * i386.c (builtin_description): Add __builtin_ia32_paddq and
17309         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
17310          and __builtin_ia32_psubq128.
17311         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
17312         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
17313         (mmx_adddi3, mmx_subdi3): New.
17314         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
17315         * xmmintrin.h (_mm_movepi64_pi64): New.
17316         (_mm_add_epi64, _mm_sub_epi64): fix.
17317         (_mm_mul_pu16): Rename to...
17318         (_mm_mul_su32): ... this one.
17319
17320         * builtins.c (expand_builtin_expect):  Do not predict
17321         flag_guess_branch_prob is not set.
17322         * c-semantics.c (expand_stmt): Likewise.
17323         * predict.c (predict_insn): Likewise.
17324         * stmt.c (expand_continue_loop): Likewise.
17325         * toplev.c (rest_of_compilation): Do not call
17326         note_prediction_to_br_prob and note_prediction_to_br_prob
17327         when not optimizing.
17328
17329 2003-02-21  Jan Hubicka  <jh@suse.cz>
17330
17331         * cfgrtl.c (commit_edge_insertions):  Call
17332         find_many_sub_basic_block only when some code has been emitted.
17333         (commit_edge_insertions_watch_calls): Bring into sync with
17334         commit_edge_insertions
17335
17336 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
17337
17338         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
17339
17340         * sh.md (binary_sf_op): Use extra constant operand instead of
17341         negating constant operand 4.
17342         * sh.c (sh_expand_binop_v2sf): Supply it.
17343
17344 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
17345
17346         * cpphash.h (struct lexer_state): Add directive_wants_padding.
17347         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
17348         for directives of type INCL.
17349         (glue_header_name, parse_include): Use get_token_no_padding.
17350         * cppmacro.c (replace_args): If directive_wants_padding,
17351         provide padding tokens.
17352
17353 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
17354
17355         * config/h8300/h8300.md (a peephole2): New.
17356
17357 2003-02-21  Jan Hubicka  <jh@suse.cz>
17358
17359         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
17360         (commit_edge_insertions): Call find_many_sub_basic_blocks
17361
17362         * reg-stack.c (convert_regs): Cleax aux for blocks.
17363
17364 2003-02-21  Jan Hubicka  <jh@suse.cz>
17365
17366         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
17367
17368 2003-02-21  Glen Nakamura  <glen@imodulo.com>
17369
17370         PR optimization/8613
17371         * builtins.c (expand_builtin): Emit postincrements before expanding
17372         builtin functions.
17373
17374 2003-02-21  Ben Elliston  <bje@redhat.com>
17375
17376         PR other/5634
17377         * doc/install.texi (Configuration): Explain using $HOME instead of
17378         the ~ metacharacter when referring to home directories.
17379
17380 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
17381
17382         * configure.in (TARGET_SYSTEM_ROOT): Set default to
17383         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
17384         '${exec_prefix}' (in addition to the expansion thereof) as
17385         relocatable.
17386         * configure: Rebuilt.
17387
17388 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
17389
17390         * config/h8300/h8300.md (addhi3_incdec): Change the name to
17391         *addhi3_incdec.
17392         (addsi3_incdec): Change the name to *addsi3_incdec.
17393
17394 2003-02-20  Roger Sayle  <roger@eyesopen.com>
17395
17396         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
17397
17398 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
17399
17400         PR fortran/9038
17401         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
17402         options to be ignored.
17403         (c_common_decode_option): Ignore them when preprocessing.
17404
17405 2003-02-20  Jan Hubicka  <jh@suse.cz>
17406
17407         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
17408         global variables.
17409         (lang_independent_options):  Add -fsched2-use-superblocks
17410         -fsced2-use-traces.
17411         (rest_of_compilation): Deal with it.
17412         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
17413         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
17414         Declare.
17415         * rtl.h (reg_to_stack):  Update prototype.
17416         * reg-stack.c (reg_to_stack): Return when something has changed;
17417         update liveness when executing after superblock scheduling.
17418
17419         * combine.c (simplify_shift_const):  Simplify few special cases
17420         into constants.
17421
17422 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
17423
17424         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
17425         (add.,subf.,neg.): Change attribute to fast_compare.
17426         All DFA descriptions updated.
17427
17428 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
17429
17430         Change base class access representation.
17431         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
17432         TREE_VIA_PRIVATE): Remove.
17433         (BINFO_BASEACCESSES): New binfo elt.
17434         (BINFO_BASEACCESS): New accessor.
17435         (BINFO_ELTS): Increase.
17436         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
17437         (access_public_node, access_protected_node,
17438         access_private_node): New global nodes.
17439         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
17440         * dbxout.c (dbxout_type): Adjust.
17441         * dwarf2out.c (gen_inheritance_die): Add access parameter.
17442         (gen_member_die): Adjust.
17443         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
17444         (output_type): Adjust.
17445         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
17446
17447         Change base class access representation. Share virtual base
17448         binfos.
17449         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
17450         call.
17451         * cp/class.c (build_base_path): Likewise.
17452         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
17453         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
17454         (make_new_vtable): Adjust.
17455         (force_canonical_binfo_r): Delete.
17456         (force_canonical_binfo): Delete.
17457         (mark_primary_virtual_base): Delete.
17458         (dfs_unshared_virtual_bases): Delete.
17459         (mark_primary_bases): Adjust.
17460         (maybe_warn_about_overly_private_class): Adjust.
17461         (dfs_base_derived_from): Delete.
17462         (base_derived_from): Follow the inheritance chain.
17463         (struct find_final_overrider_data): Add vpath member.
17464         (dfs_find_final_overrider): Adjust.
17465         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
17466         (find_final_overrider): Adjust.
17467         (update_vtable_entry_for_fn): Adjust.
17468         (modify_all_vtables): Adjust.
17469         (walk_subobject_offsets): Adjust.
17470         (layout_nonempty_base_or_field): Adjust.
17471         (layout_empty_base): Remove last parameter. Adjust.
17472         (build_base_field): Adjust.
17473         (build_base_fields): Adjust.
17474         (propagate_binfo_offsets): Remove last parameter. Adjust.
17475         (dfs_set_offset_for_unshared_vbases): Delete.
17476         (layout_virtual_bases): Adjust.
17477         (finish_struct_1): Adjust.
17478         (init_class_processing): Don't init access nodes.
17479         (dfs_get_primary_binfo): Delete.
17480         (get_primary_binfo): Adjust.
17481         (dump_class_hierarchy_r): Remove most derived arg, add IGO
17482         parameter. Adjust.
17483         (dump_class_hierarchy): Adjust.
17484         (finish_vtbls): Adjust.
17485         (get_original_base): Delete.
17486         (build_vtt_inits): Adjust.
17487         (dfs_build_secondary_vptr_vtt_inits): Adjust.
17488         (dfs_ctor_vtable_bases_queue_p): Adjust.
17489         (build_ctor_vtbl_group): Adjust.
17490         (dfs_accumulate_vtbl_inits): Adjust.
17491         (build_vtbl_initializer): Adjust.
17492         (build_vbase_offset_vtbl_entries): Adjust.
17493         (add_vcall_offset_vtbl_entries_1): Adjust.
17494         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
17495         (access_*_node): Remove.
17496         (CANONICAL_BINFO): Delete.
17497         (BINFO_UNSHARED_MARKED): Remove.
17498         (BINFO_MARKED): Set LANG_FLAG_0 directly.
17499         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
17500         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
17501         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
17502         Delete.
17503         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
17504         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
17505         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
17506         Delete.
17507         (BINFO_DEPENDENT_BASE_P): New.
17508         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
17509         index.
17510         (markedp, unmarkedp): Adjust.
17511         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
17512         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
17513         find_vbase_instance, binfo_for_vbase): Delete.
17514         (copied_binfo, original_binfo): Declare.
17515         (finish_base_specifier): Add virtual_p arg.
17516         (unshare_base_binfos): Delete.
17517         (copy_base_binfos): Declare.
17518         (reverse_path): Delete.
17519         * cp/decl.c (xref_basetypes): Access and virtuality passed
17520         differently. Don't copy direct base binfos here. Call
17521         copy_base_binfos.
17522         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
17523         (initialize_vtbl_ptrs): Adjust.
17524         (expand_member_init): Adjust.
17525         * cp/parser.c (cp_parser_base_specifier): Adjust.
17526         * cp/pt.c (instantiate_class_template): Adjust.
17527         (get_template_base_recursive): Adjust.
17528         * cp/rtti.c (get_pseudo_ti_init): Adjust.
17529         (get_pseudo_ti_desc): Adjust.
17530         * cp/tree.c (unshare_base_binfos): Rename to ...
17531         (copy_base_binfos): ... here, reimplement.
17532         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
17533         (reverse_path): Remove.
17534         * cp/typeck.c (get_delta_difference): Adjust error messages.
17535         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
17536         * cp/search.c (lookup_base_r): Adjust.
17537         (dynamic_cast_base_recurse): Adjust.
17538         (canonical_binfo): Remove.
17539         (dfs_canonical_queue): Remove.
17540         (dfs_assert_unmarked_p): Remove.
17541         (assert_canonical_unmarked): Remove.
17542         (shared_marked_p, shared_unmarked_p): Remove.
17543         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
17544         (dfs_access_in_type): Adjust.
17545         (access_in_type): Adjust.
17546         (dfs_accessible_queue_p): Adjust.
17547         (dfs_accessible_p): Adjust.
17548         (is_subobject_of_p_1, is_subobject_of_p): Remove.
17549         (struct lookup_field_info): Remove from_dep_base_p field.
17550         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
17551         (lookup_field_r): Remove dependent base code.
17552         (lookup_member): Likewise.
17553         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
17554         (dfs_unmarked_real_bases_queue_p): Remove.
17555         (dfs_marked_real_bases_queue_p): Remove.
17556         (dfs_skip_vbases): Remove.
17557         (dfs_get_pure_virtuals): Adjust.
17558         (markedp, unmarkedp): Adjust.
17559         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
17560         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
17561         (dfs_unmark): Adjust.
17562         (dfs_get_vbase_types):Remove.
17563         (dfs_build_inheritance_graph_order): Remove.
17564         (get_vbase_types): Remove
17565         (dfs_find_vbase_instance): Remove.
17566         (find_vbase_instance): Remove.
17567         (dfs_debug_unmarkedp): Adjust.
17568         (dependent_base_p): Remove.
17569         (dfs_push_type_decls): Adjust.
17570         (dfs_push_decls): Adjust.
17571         (dfs_no_overlap_yet): Adjust.
17572         (copied_binfo): New function.
17573         (original_binfo): New function.
17574         (binfo_for_vbase): Remove.
17575
17576         Change base class access representation.
17577         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
17578         (add_interface_do): Likewise.
17579
17580 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
17581
17582         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17583         * config/rs6000/power4.md (power4-store,power4-vecstore): New
17584         insn reservations.
17585         (power4-fpstore): Compact.
17586
17587 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
17588
17589         * config/h8300/h8300.md (*iorsi3_w): New.
17590
17591 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
17592
17593         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
17594         * rtl.c (reg_note_name): Likewise.
17595         * rtl.h (enum reg_note): Likewise.
17596         * doc/invoke.texi: Likewise.
17597         * doc/rtl.texi: Likewise.
17598
17599 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
17600
17601         * bb-reorder.c (find_traces_1_round): Fix comment typo.
17602
17603 2003-02-19  Roger Sayle  <roger@eyesopen.com>
17604
17605         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
17606         addition in the presence of signaling NaNs.
17607
17608 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
17609
17610         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
17611
17612 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
17613
17614         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
17615         ORing with 0xffff??00 with the highest bit of the ?? part set.
17616         (compute_logical_op_length): Update.
17617         (compute_logical_op_cc): Likewise.
17618
17619 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
17620
17621         * bb-reorder.c (find_traces_1_round): Fixed condition for small
17622         destination block with multiple predecessors.
17623         (connect_traces): Check whether the block is a start of trace.
17624
17625 2003-02-19  Jan Hubicka  <jh@suse.cz>
17626
17627         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
17628         * function.c (assign_params): Likewise.
17629         * arm-protos.h (arm_init_cumulative_args): Update prototype.
17630         * arm.c (arm_init_cumulative_args): Update function.
17631         * arm.h (INIT_CUMULATIVE_ARGS): Update.
17632         * avr-protos.h (init_cumulative_args): Update prototype.
17633         * avr.c (init_cumulative_args): Update function.
17634         * avr.h (INIT_CUMULATIVE_ARGS): Update.
17635         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
17636         * d30v.c (d30v_init_cumulative_args): Update function.
17637         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
17638         * frv-protos.h (frv_init_cumulative_args): Update prototype.
17639         * frv.c (frv_init_cumulative_args): Update function.
17640         * frv.h (INIT_CUMULATIVE_ARGS): Update.
17641         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
17642         * pa.h (INIT_CUMULATIVE_ARGS): Update.
17643         * sparc-protos.h (init_cumulative_args): Update prototype.
17644         * sparc.c (init_cumulative_args): Update function.
17645         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
17646         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
17647
17648 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
17649
17650         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
17651         (*ashiftsi_sextqi_7): Likewise.
17652
17653 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17654
17655         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
17656         ISO C99 and C++.
17657
17658         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
17659         for C++ on IRIX 6.5.1[89].
17660         * fixinc/tests/base/internal/sgimacros.h: New file.
17661
17662         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
17663         * fixinc/tests/base/internal/wchar_core.h: New file.
17664
17665         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
17666         socklen_t definition.
17667         * fixinc/fixincl.x: Regenerate.
17668         * fixinc/tests/base/sys/socket.h: New file.
17669         Fixes PR libgcj/9652.
17670
17671 2003-02-19  Jan Hubicka  <jh@suse.cz>
17672
17673         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
17674
17675 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
17676
17677         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
17678         align_jumps_max_skip and align_loops_max_skip.
17679
17680 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
17681
17682         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
17683         test size if named section.
17684
17685 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
17686
17687         * expr.c (expand_expr): Use gen_int_mode for the argument
17688         to gen_rtx_MULT.
17689
17690 2003-02-19  Jan Hubicka  <jh@suse.cz>
17691
17692         * i386.md (cosxf2):  Fix conditional.
17693
17694 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
17695
17696         * config/h8300/h8300.md (extendqisi2): Change to an expander.
17697         (*extendqisi2_h8300): New.
17698         (*extendqisi2_h8300hs): Likewise.
17699
17700 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
17701
17702         * config/h8300/h8300-protos.h: Update the prototype for
17703         split_adds_subs.  Remove the prototypes for
17704         const_int_le_2_operand and const_int_le_6_operand.
17705         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
17706         (const_int_le_2_operand): Remove.
17707         (const_int_le_6_operand): Likewise.
17708         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
17709         for const_int_le_2_operand and const_int_le_6_operand.
17710         * config/h8300/h8300.md: Update all uses of split_adds_subs.
17711         (a peephole2): New.
17712
17713 2003-02-18  Jan Hubicka  <jh@suse.cz>
17714
17715         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
17716         (cgraph_expand_function): Rewrite.
17717
17718 2003-02-18  Matt Austern <austern@apple.com>
17719
17720         * toplev.c, langhooks.c, langhooks-def.h: Move
17721         write_global_declarations from toplev.c to langhooks.c.
17722
17723 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
17724
17725         * config/h8300/h8300.c (general_operand_src): Always check
17726         MODE.
17727         (general_operand_dst): Likewise.
17728
17729 2003-02-18  Roger Sayle  <roger@eyesopen.com>
17730
17731         * convert.c (convert_to_real): Also optimize (float)log(x) into
17732         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
17733
17734 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17735
17736         * config/sh/sh.c (unspec_caller_rtx_p): New.
17737         (sh_cannot_copy_insn_p): New.
17738         (TARGET_CANNOT_COPY_INSN_P): New.
17739
17740 2003-02-18  Richard Henderson  <rth@redhat.com>
17741
17742         * c-common.c (handle_used_attribute): Accept static data too.
17743
17744 2003-02-18  Nick Clifton  <nickc@redhat.com>
17745             Aldy Hernandez  <aldyh@redhat.com>
17746
17747         * testsuite/gcc.dg/20030218-1.c: New.
17748
17749         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
17750
17751         * target-def.h (TARGET_INITIALIZER): Add
17752         TARGET_VECTOR_TYPES_COMPATIBLE.
17753         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
17754
17755         * target.h (struct gcc_target): Add field vector_types_compatible.
17756
17757         * c-typeck.c (comptypes): Take into account
17758         TARGET_VECTOR_TYPES_COMPATIBLE.
17759         (convert_for_assignment): Same.
17760
17761         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
17762         (rs6000_spe_vector_types_compatible): New.
17763         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
17764
17765 2003-02-19  Andreas Schwab  <schwab@suse.de>
17766
17767         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
17768         * toplev.c: Include langhooks-def.h.
17769
17770 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
17771
17772         * config/mips/mips.h (enum processor_type): Sort entries
17773         alphabetically.
17774         * config/mips/mips.md (define_attr cpu): Sync with processor_type
17775         enum values, including adding entries that were missing.
17776
17777 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
17778
17779         * sh.c (calc_live_regs): Also check GET_CODE when checking if
17780         initial value for PR_REG is still the PR_REG register.
17781
17782 2003-02-18  Jim Wilson  <wilson@redhat.com>
17783
17784         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
17785         instruction in output template.
17786         (bsp_value): Change output template from string to C code, add %,
17787         before actual instruction.
17788         (flushrs): Mark as not predicable.
17789
17790 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
17791
17792         * inclhack.def (netbsd_bogus_semicolon): New fix.
17793         * fixincl.x: Rebuilt.
17794         * tests/base/ctype.h: Update.
17795
17796 2003-02-18  Roger Sayle  <roger@eyesopen.com>
17797
17798         * fold-const.c (negate_expr_p): New function to determine whether
17799         an expression can be negated cheaply.
17800         (fold) [MINUS_EXPR]: Use it to determine whether to transform
17801         -A - B into -B - A for floating point types.
17802
17803 2003-02-18  Roger Sayle  <roger@eyesopen.com>
17804
17805         * sbitmap.c (sbitmap_resize): New function.
17806         * sbitmap.h (sbitmap_resize): Prototype here.
17807         * recog.c (split_all_insns): Use sbitmap_resize.
17808
17809 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
17810
17811         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
17812         insn length.
17813         (extendqisi2): Likewise.
17814         (*extendhisi2_h8300): Likewise.
17815
17816 2003-02-18  Matt Austern <austern@apple.com>
17817
17818         * langhooks.h, langhooks-def.h: introduce new langhook,
17819         final_write_globals, with write_global_declarations as default.
17820         * toplev.c: Move invocation of wrapup_global_declarations from
17821         compile_file to new function, write_global_declarations.  Change
17822         compile_file to use final_write_globals hook.  Change
17823         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
17824         conditional.
17825
17826 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17827
17828         * pa.md: Correct and enhance comment.
17829
17830 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
17831
17832         * gcc.c (validate_switches): Don't scan past closing '}'.
17833
17834 2003-02-18  Ben Elliston  <bje@redhat.com>
17835
17836         PR c++/1607
17837         * doc/extend.texi (Function Attributes): Document the effect of
17838         the C++ "this" parameter on the counting of arguments for the
17839         "format" and "format_arg" attributes.
17840
17841 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
17842
17843         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
17844         (__ev_stdw): Same.
17845         (__ev_stdh): Same.
17846
17847 2003-02-17  Jan Hubicka  <jh@suse.cz>
17848
17849         * recog.c (split_all_insns):  Fix memory overflow.
17850
17851 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
17852
17853         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
17854         (cmphi): Likewise.
17855         (*cmphi_h8300): Likewise.
17856         (*cmphi_h8300hs): Likewise.
17857         (cmpsi): Likewise.
17858         (7 peephole2): Likewise.
17859
17860 2003-02-16  Jan Hubicka  <jh@suse.cz>
17861
17862         * c-typeck.c (build_c_cast):  Fold constant variables into
17863         initial values.
17864
17865 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17866
17867         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
17868         (Binaries): Ditto for Sinix/Reliant Unix.
17869
17870 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
17871
17872         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
17873         not overlap the final result register.
17874
17875 2003-02-16 Arend Bayer <arend.bayer@web.de>
17876            Richard Henderson  <rth@redhat.com>
17877
17878         PR c/8068
17879         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
17880         rearrange mult arguments for less recursion.
17881         (extract_muldiv): New.  Prevent runaway recursion.
17882
17883 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
17884
17885         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
17886         MASK_ALIGN_DOUBLE.
17887
17888 2003-02-15  Roger Sayle  <roger@eyesopen.com>
17889
17890         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
17891         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
17892         (ext_80387_constants_table): Global table of 80387 special constants
17893         guarded by ext_80387_constants_init flag when not initialized.
17894         (init_ext_80387_constants): New function to initialize this table.
17895         (standard_80387_constant_p): Extend to recognize extra 80387
17896         constants, in XFmode, on processors where this is a win.
17897         (standard_80387_constant_opcode): New function to return the
17898         opcode associated with standard_80387_constant_p.
17899         (standard_80387_constant_rtx): New function to return the XFmode
17900         CONST_DOUBLE associated with standard_80387_constant_p.
17901         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
17902
17903         * config/i386/i386-protos.h (standard_80387_constant_opcode):
17904         Prototype here.
17905         (standard_80387_constant_rtx): Likewise.
17906
17907         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
17908         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
17909         *movtf_integer): Simplify using new standard_80387_constant_opcode.
17910
17911 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
17912
17913         * doc/invoke.texi (Optimize Options): Correct @option syntax.
17914
17915 2003-02-15  Richard Henderson  <rth@redhat.com>
17916
17917         * Makefile.in (cfglayout.o): Depend on TARGET_H.
17918         * cfglayout.c: Include target.h.
17919         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
17920         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
17921         * target.h (struct gcc_target): Add cannot_copy_insn_p.
17922
17923         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
17924         (TARGET_CANNOT_COPY_INSN_P): New.
17925         (override_options): Revert 2003-02-08 hack.
17926
17927 2003-02-15  Richard Henderson  <rth@redhat.com>
17928
17929         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
17930         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
17931
17932 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
17933
17934         * config/rs6000/rs6000.h (processor_type): Add PPC440.
17935         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
17936         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
17937         TARGET_SCHED_VARIABLE_ISSUE): Define.
17938         (rs6000_use_dfa_pipeline_interface): New function.
17939         (rs6000_multipass_dfa_lookahead): New Function.
17940         (rs6000_variable_issue): New function.
17941         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
17942         (rs6000_issue_rate): Add PPC440.
17943         * config/rs6000/rs6000.md (unspec list): Correct typo.
17944         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
17945         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
17946         cmp, delayed_cr, mfcr, mtcr.
17947         (automata_option): Set "ndfa".
17948         (extendMMNN2): Update attributes.
17949         (movcc_internal1): Discourage move to non-cr0.  Update
17950         attributes.
17951         (movMM_update): Update attributes.
17952         (cmpMM_internal): Update attributes.
17953         (sCC CR materialization): Update attributes.
17954         (branch patterns): Do not discourage non-cr0.
17955         (cr logical patterns): Prefer destructive register allocation.
17956         Update attributes.
17957         (movesi_from_cr): Update attribute.
17958         (mtcrf_operation): Update attribute.
17959         (mtcrfsi): Update attribute.
17960         * config/rs6000/40x.md: New file.
17961         * config/rs6000/603.md: New file.
17962         * config/rs6000/6xx.md: New file.
17963         * config/rs6000/7450.md: New file.
17964         * config/rs6000/7xx.md: New file.
17965         * config/rs6000/mpc.md: New file.
17966         * config/rs6000/power4.md: New file.
17967         * config/rs6000/rios1.md: New file.
17968         * config/rs6000/rios2.md: New file.
17969         * config/rs6000/rs64.md: New file.
17970         [Some DFA descriptions based on work by Michael Hayes]
17971
17972 2003-02-15  Richard Henderson  <rth@redhat.com>
17973
17974         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
17975         successors with multiple predecessors.
17976         (connect_traces): Try harder to copy traces of length 1.
17977
17978         * function.h (struct function): Add computed_goto_common_label,
17979         computed_goto_common_reg.
17980         * function.c (free_after_compilation): Zap them.
17981         * stmt.c (expand_computed_goto): Use them to produce one
17982         indirect branch per function.
17983
17984 2003-02-15  Richard Henderson  <rth@redhat.com>
17985
17986         * cfgcleanup.c: Include params.h.
17987         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
17988         too many outgoing edges from a block.
17989         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
17990         * params.def (max-crossjump-edges): New.
17991         * doc/invoke.texi: Document it.
17992
17993 2003-02-15  Richard Henderson  <rth@redhat.com>
17994
17995         * recog.c (split_all_insns): Include new blocks in life update;
17996         do a global life update.
17997
17998 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
17999
18000         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
18001         Update copyright.
18002         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
18003         -mno-cygwin case.
18004
18005 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18006
18007         PR optimization/7702
18008         * reload1.c (reload_cse_simplify_set): Honor
18009         CANNOT_CHANGE_MODE_CLASS.
18010
18011 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
18012
18013         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
18014         function.
18015         * config/mn10300/mn10300-protos.h: Declare it.
18016         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
18017         attribute cc of instructions that may use clr.
18018
18019 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18020
18021         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
18022         (x - (x & y)) is found.
18023
18024 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18025
18026         * configure.in: Fix typo.
18027         * configure: Regenerate.
18028
18029 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18030
18031         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
18032
18033 2003-02-13  Adam Nemet  <anemet@lnxw.com>
18034
18035         PR opt/2391
18036         * combine.c: Fix spelling in comment.
18037         (cached_nonzero_bits): New function.
18038         (cached_num_sign_bit_copies): New function.
18039         (nonzero_bits_with_known): New macro.
18040         (num_sign_bit_copies_with_known): New macro.
18041         (nonzero_bits1): Rename from nonzero_bits.  Add three new
18042         arguments.  Change calls from nonzero_bits to
18043         nonzero_bits_with_known.
18044         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
18045         three new arguments.  Change calls from num_sign_bit_copies to
18046         num_sign_bit_copies_with_known.
18047         (nonzero_bits): New macro.
18048         (num_sign_bit_copies): New macro.
18049         (update_table_tick): Don't traverse identical subexpression more
18050         than once.
18051         (get_last_value_validate): Likewise.
18052
18053 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
18054
18055         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
18056         * function.h (struct emit_status): Length of regno_pointer_align
18057         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
18058         not regno_pointer_align_length (i.e. length actually used, not
18059         length as allocated)
18060
18061         * config/i386/i386.c (struct stack_local_entry): New.
18062         (struct machine_function): Replace huge array with alist.
18063         (assign_386_stack_local): Change to match.
18064
18065 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
18066
18067         * inclhack.def (hpux_long_double): Tighten select and add bypass
18068         regexp.
18069         * fixincl.x: Rebuilt.
18070
18071 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
18072
18073         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
18074         edge and block ends with a jump insn it must be simple jump.
18075
18076 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
18077
18078         * Makefile.in (PREPROCESSOR_DEFINES): Add
18079         @TARGET_SYSTEM_ROOT_DEFINE@.
18080         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
18081         is specified or if building a cross compiler.
18082         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
18083         if the sysroot is under $exec_prefix.
18084         * configure: Regenerated.
18085         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
18086         defined.
18087         (struct default_include): Add add_sysroot field.
18088         (cpp_SYSROOT): Declare.
18089         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
18090         field.
18091         (cpp_SYSROOT): New variable.
18092         * cppinit.c (cpp_create_reader): Initialize
18093         CPP_OPTION (pfile, sysroot).
18094         (init_standard_includes): Handle add_sysroot.  Do not
18095         add unrelocated copies of relocated directories.
18096         (COMMAND_LINE_OPTIONS): Add -isysroot.
18097         (cpp_handle_option): Handle -isysroot.
18098         * cpplib.h (struct cpp_options): Add sysroot member.
18099         * gcc.c (The Specs Language): Update description of %I.
18100         (target_system_root_changed): New variable.
18101         (process_command): Conditionalize make_relative_prefix call
18102         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
18103         target_system_root_changed.
18104         (do_spec_1): Add -isysroot to %I.
18105         * doc/invoke.texi (Spec Files): Update description of %I.
18106         * doc/install.texi (--with-sysroot): Update comment about
18107         relocation.
18108
18109 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
18110
18111         * config/h8300/h8300.md (a peephole2): New.
18112
18113 2003-02-13  Robert Lipe <robertlipe@usa.net>
18114             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18115
18116         * doc/install.texi (Specific): Update three SCO-related URLs.
18117
18118 2003-02-13  Andreas Schwab  <schwab@suse.de>
18119
18120         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
18121         Parenthesize properly.
18122         (NPREDECESORS): Parenthesize properly.
18123
18124 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18125
18126         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
18127
18128 2003-02-12  Roger Sayle  <roger@eyesopen.com>
18129
18130         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
18131         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
18132
18133         * reg-stack.c (subst_stack_regs_pat): Add support for binary
18134         UNSPEC instructions (e.g. "fpatan").
18135
18136 2003-02-12  Mike Stump  <mrs@apple.com>
18137
18138         * varray.c (element_size): Remove.
18139         (uses_ggc): Remove.
18140         (element): Add.
18141         (varray_init): Use new interface.
18142         (varray_grow): Use new interface.
18143         (varray_clear): Use new interface.
18144
18145 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
18146
18147         * config/rs6000/spe.h: Add casts to the arguments of the following
18148         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
18149         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
18150         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
18151         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
18152         __ev_get_u16, __ev_get_s16.
18153
18154 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18155
18156         * config/h8300/h8300.md (a peephole2): New.
18157
18158 2003-02-12  Jan Hubicka  <jh@suse.cz>
18159
18160         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
18161         (OBJS): Add callgraph.o
18162         (callgraph.o): New.
18163         * c-decl.c (expand_body_1): Break out from ...
18164         (expand_body): This one;  change calling convention
18165         (finish_function): Move some of expand_body logic here.
18166         (c_expand_deferred_function): Update call of expand_body
18167         (c_expand_stmt): Use c_expand_body_1.
18168         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
18169         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
18170         * c-tree.h (c_expand_body): Declare.
18171         * callgraph.c: New file.
18172         * flags.h (flag_unit_at_a_time): Declare.
18173         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
18174         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
18175         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
18176         * langhooks.h (struct lang_hooks_for_callgraph): New.
18177         (struct lang_hooks): Add callgraph field.
18178         * toplev.c (flag_unit_at_a_time): New.
18179         (lang_independent_options): Add flag_unit_at_a_time.
18180         (process_options): Disable unit-at-a-time mode for frontends not
18181         supporting callgraph.
18182         * tree-inline.c (typedef struct inline_data): Add "decl"
18183         (expand_call_inline): Update callgraph.
18184         (optimize_inline_calls): Set id.decl.
18185         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
18186         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
18187         cgraph_calls_p): Declare.
18188         * invoke.texi (-funit-at-a-time): Document
18189
18190 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
18191
18192         * config/rs6000/spe.h: Fix misc formatting.
18193         (__ev_create_ufix32_fs): Cast ev argument.
18194         (__ev_create_sfix32_fs): Same.
18195         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
18196         (__ev_get_ufix32_fs_internal): Same.
18197
18198 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
18199
18200         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
18201         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
18202
18203 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
18204
18205         * cpplib.c (do_include_common): Move warnings for
18206         #include_next and #import out to callers.  Use early-return
18207         instead of nested ifs.  Don't do check_eol here.
18208         (parse_include): Do check_eol here with the rest of the
18209         parsing stuff.
18210         (do_include_next, do_import): Now handle warnings.
18211
18212 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18213
18214         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
18215
18216 2003-02-12  Jan Hubicka  <jh@suse.cz>
18217
18218         * predict.c (estimate_probability):  Fix roundoff error.
18219
18220 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18221
18222         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
18223         (two peephole2): New.
18224
18225 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18226
18227         * config/h8300/h8300.md (several peephole2): Replace
18228         find_regno_note with peep2_reg_dead_p.
18229
18230 2003-02-11  Richard Henderson  <rth@redhat.com>
18231
18232         * gcse.c (lookup_set): Remove unused argument PAT.  Update
18233         both callers.
18234
18235 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
18236
18237         * diagnostic.c (real_abort): New.
18238         (diagnostic_report_diagnostic): Call real_abort on error.
18239         * diagnostic.h (diagnostic_abort_on_error): New.
18240         (struct diagnostic_context): Add abort_on_error field.
18241         * toplev.c (setup_core_dumping): New.
18242         (decode_d_option): Handle 'H' case.
18243         * doc/invoke.texi (Debugging Options): Document -dH.
18244
18245 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
18246
18247         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
18248         which refers to obsolete directories.
18249
18250 2003-02-11  Richard Henderson  <rth@redhat.com>
18251
18252         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
18253
18254 2002-10-21  Jan Hubicka  <jh@suse.cz>
18255
18256         * i386.c (contains_128bit_aligned_vector_p): New function.
18257         (ix86_function_arg_boundary): Properly align vector modes.
18258
18259 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
18260
18261         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
18262         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
18263         as a SET pattern.
18264
18265 2003-02-11  Roger Sayle  <roger@eyesopen.com>
18266
18267         * builtins.c:  Fix failure caused by commiting wrong patch.
18268
18269 2003-02-11  Dale Johannesen  <dalej@apple.com>
18270         * ra-build.c (compare_and_free_webs):  Relax checking.
18271         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
18272         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
18273
18274 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18275
18276         PR optimization/9651
18277         * rtlanal.c (may_trap_p): Handle FIX.
18278
18279 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
18280
18281         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
18282         * doc/invoke.texi: Extra alias.
18283
18284 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
18285
18286         * config/rs6000/host-darwin.c: Fix comment.
18287
18288 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
18289
18290         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
18291         predicate for mod result.
18292
18293 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18294
18295         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
18296         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
18297         * fixincl.x: Rebuilt.
18298         * tests/base/stdlib.h: Update.
18299         * tests/base/ctype.h: New file.
18300
18301 2003-02-11  Jan Hubicka  <jh@suse.cz>
18302
18303         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
18304
18305 2003-02-11  Richard Henderson  <rth@redhat.com>
18306
18307         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
18308         appropriated as globals.
18309         (ix86_expand_clrstr): Similarly.
18310         * config/i386/i386.md (cmpstrsi): Similarly.
18311
18312 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18313
18314         * config/h8300/h8300.md (a peephole2): Add a case of 255.
18315
18316 2003-02-11  Roger Sayle  <roger@eyesopen.com>
18317
18318         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
18319         (pow_optab, atan2_optab): Define corresponding macros.
18320         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
18321         * genopinit.c (optabs): Implement pow_optab and atan2_optab
18322         using pow?f3 and atan2?f3 patterns.
18323         * builtins.c (expand_errno_check): New function to update errno
18324         if necessary, split out from expand_builtin_mathfn.
18325         (expand_builtin_mathfn): Use expand_errno_check.
18326         (expand_builtin_mathfn_2): New function to handle expanding binary
18327         math functions, reusing the code in expand_errno_check.
18328         (expand_builtin): Handle the pow and atan2 math built-ins,
18329         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
18330         expand_builtin_mathfn_2.
18331
18332         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
18333
18334 2003-02-11  Jan Hubicka  <jh@suse.cz>
18335
18336         * combine.c (combine_simplify_rtx): Fix folding of
18337         nested float_truncates.
18338
18339 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18340
18341         * config/h8300/h8300.md (a peephole2): Fix a typo.
18342
18343 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
18344
18345         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
18346         register number.
18347
18348 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18349
18350         * config/h8300/h8300-protos.h: Add a prototype for
18351         gtuleu_operator.
18352         * config/h8300/h8300.c (gtuleu_operator): New.
18353         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
18354         * config/h8300/h8300.md (a peephole2): New.
18355
18356 2003-02-11  Jan Hubicka  <jh@suse.cz>
18357
18358         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
18359
18360 2003-02-11  Jan Hubicka  <jh@suse.cz>
18361
18362         * predict.c (choose_function_section): Choose sections correctly.
18363
18364 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18365
18366         * reload1.c (first_label_num): New.
18367         (reload): Index offsets_known_at and offsets_at using difference of
18368         label number and first label number.  Don't use offset pointers.
18369         (set_label_offsets, set_initial_label_offsets): Likewise.
18370
18371 2003-02-10  Roger Sayle  <roger@eyesopen.com>
18372
18373         * mips-tfile.c (init_file): Add missing initializers in the
18374         "#ifdef __alpha" case.
18375         (file_offset, max_file_offset): Declare as unsigned long.
18376         (write_varray): Cast to "unsigned long" in comparisons against
18377         either file_offset or max_file_offset.
18378         (write_object): Likewise.
18379         (read_seek): Likewise.
18380         (copy_object): Likewise. Declare "ifd" as int to match its use
18381         in add_ext_symbol, and avoid signed/unsigned conditional warning.
18382
18383 2003-02-10  Nick Clifton  <nickc@redhat.com>
18384             Aldy Hernandez  <aldyh@redhat.com>
18385
18386         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
18387         override options which have been specified on the command line.
18388
18389 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
18390
18391         * config/h8300/h8300.md (abssf2): New.
18392         (*abssf2_h8300): Likewise.
18393         (*abssf2_h8300hs): Likewise.
18394
18395 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
18396
18397         * tree.c (build_tree_list):  Fix parameter names in comment.
18398
18399 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
18400
18401         * config/rs6000/ppc64-fp.c: New file.
18402         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
18403
18404 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
18405
18406         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
18407         * bb-reorder.c (make_reorder_chain): Deleted.
18408         (make_reorder_chain_1): Deleted.
18409         (find_traces): New function.
18410         (rotate_loop): New function.
18411         (mark_bb_visited): New function.
18412         (find_traces_1_round): New function.
18413         (copy_bb): New function.
18414         (bb_to_key): New function.
18415         (better_edge_p): New function.
18416         (connect_traces): New function.
18417         (copy_bb_p): New function.
18418         (get_uncond_jump_length): New function.
18419         (reorder_basic_blocks): Use new functions (Software Trace Cache).
18420         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
18421         boundaries.
18422
18423 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
18424
18425         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
18426
18427 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
18428
18429         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
18430         (DECL_LIVE_RANGE_RTL): Remove.
18431
18432 2003-02-10  Nick Clifton  <nickc@redhat.com>
18433
18434         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
18435         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
18436         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
18437         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
18438         config/arm/freebsd.h, config/arm/linux-elf.h,
18439         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
18440         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
18441         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
18442         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
18443         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
18444         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
18445         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
18446         and reformat as appropriate.
18447
18448 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
18449
18450         * config/h8300/clzsi2.c: Remove.
18451         * config/h8300/ctzsi2.c: Likewise.
18452         * config/h8300/paritysi2.c: Likewise.
18453         * config/h8300/popcountsi2.c: Likewise.
18454         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
18455         ctzsi2, paritysi2, and popcountsi2.
18456
18457 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
18458             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
18459
18460         PR c/7741
18461         * c-decl.c (duplicate_decls): Discard the initializer of the
18462         new decl when the types are conflicting.
18463
18464 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
18465
18466         * Makefile.in (sreal.o): Added.
18467         (predict.o): Depends on sreal.h instead of real.h.
18468         * sreal.c: New file.
18469         * sreal.h: New file.
18470         * predict.c: Use sreal.c instead of real.c.
18471
18472 2003-02-10  Nick Clifton  <nickc@redhat.com>
18473
18474         * Contributed support for the Cirrus EP9312 "Maverick"
18475         floating point co-processor.  Written by Aldy Hernandez
18476         <aldyh@redhat.com>.
18477         (config/arm/arm.c): Add Cirrus support.
18478         (config/arm/arm.h): Likewise.
18479         (config/arm/aout.h): Likewise.
18480         (config/arm/arm.md): Likewise.
18481         (config/arm/arm-protos.h): Likewise.
18482         (config.gcc): Likewise.
18483         (doc/invoke.texi): Describe new -mcpu value and new
18484         -mcirrus-fix-invalid-insns switch,
18485         (cirrus.md): New file.
18486
18487 2003-02-10  Jan Hubicka  <jh@suse.cz>
18488
18489         * combine.c (combine_simplify_rtx): Simplify using
18490         (float_truncate (float x)) is (float x)
18491         (float_extend (float_extend x)) is (float_extend x).
18492
18493 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
18494
18495         * calls.c (try_to_integrate): Tidy stack_usage_map access.
18496         (emit_library_call_value_1): Likewise.  Formatting.
18497         (store_one_arg): Likewise.
18498
18499 2003-02-09  Nick Clifton  <nickc@redhat.com>
18500             Aldy Hernandez  <aldyh@redhat.com>
18501
18502         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
18503         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
18504         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
18505         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
18506         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
18507         docs.  Add range test for immediate value.
18508
18509 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
18510
18511         Rename spe_evxor to xorv2si3.
18512         (xorv4hi3): New.
18513         (xorv1di3): New.
18514
18515 2003-02-10  Glen Nakamura  <glen@imodulo.com>
18516
18517         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
18518         tag.
18519
18520 2003-02-10  Jan Hubicka  <jh@suse.cz>
18521
18522         * i386.c (vector_move_operand): New predicate.
18523         (ix86_expand_vector_move): Be happy about 0.
18524         * i386.h (PREDICATE_CODES): Add sse-move_operand.
18525         * i386.md (mov*_internal): Add 'C' alternative.
18526
18527 2003-02-09  Jan Hubicka  <jh@suse.cz>
18528
18529         * i386.md (floathi*): Deal with SSE.
18530
18531 2003-02-09  Jan Hubicka  <jh@suse.cz>
18532
18533         * simplify-rtx.c (simplify_unary_operation,
18534         simplify_binary_operation):  Deal with vector modes
18535         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
18536
18537 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
18538
18539         * toplev.c (rest_of_compilation): Recompute register usage after
18540         split_all_insns.
18541
18542 2003-02-09  Richard Henderson  <rth@redhat.com>
18543
18544         * libgcc-std.ver (__clztf2): New.
18545         (__ctztf2, __popcounttf2, __paritytf2): New.
18546         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
18547         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
18548         adjust code to match the different type sizes.
18549         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
18550         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
18551
18552         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
18553         TImode; select word_mode and twice that.
18554         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
18555         select the modes from float, double, and long double.
18556         (init_optabs): Remove duplicate initializations.
18557
18558 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
18559
18560         * doc/install.texi: Squeeze and streamline section on
18561         testing and regression checking.
18562
18563 2003-02-09  Jan Hubicka  <jh@suse.cz>
18564
18565         * i386.md (ahi?v*3): Set third operand type to TImode.
18566         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
18567
18568         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
18569         integer mode.
18570
18571         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
18572         Change code so they are arithmetic expressions now.
18573         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
18574         simplify_ternary_operation): Deal with VEC_* expressions.
18575
18576         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
18577
18578 2003-02-08  Jan Hubicka  <jh@suse.cz>
18579
18580         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
18581         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
18582         possibly got duplicated.
18583
18584 2003-02-08  Richard Henderson  <rth@redhat.com>
18585
18586         * config/alpha/alpha.c (override_options): Turn off explicit
18587         relocs until post-peep2 code duplication resolved.
18588
18589 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
18590
18591         * optabs.c (expand_unop): Widen clz properly when clz is done
18592         via libcall.
18593
18594 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
18595
18596         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
18597         * config/h8300/crti.asm: Likewise.
18598         * config/h8300/crtn.asm: Likewise.
18599         * config/h8300/ctzsi2.c: Likewise.
18600         * config/h8300/fixunssfsi.c: Likewise.
18601         * config/h8300/h8300-protos.h: Likewise.
18602         * config/h8300/h8300.c: Likewise.
18603         * config/h8300/h8300.h: Likewise.
18604         * config/h8300/h8300.md: Likewise.
18605         * config/h8300/paritysi2.c: Likewise.
18606         * config/h8300/popcountsi2.c: Likewise.
18607         * config/h8300/rtems.h: Likewise.
18608
18609 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18610
18611         * doc/invoke.texi: Documentation for my previous commit.
18612         * doc/passes.texi: Ditto.
18613
18614 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18615
18616         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
18617         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
18618         Declare.
18619         (DLTHE_FLAG_UPDATE_FREQ): New.
18620         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
18621         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
18622         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
18623         fix_bb_placement, fix_bb_placements, place_new_loop,
18624         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
18625         New static functions.
18626         (fix_loop_placement, can_duplicate_loop_p,
18627         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
18628         New functions.
18629
18630         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
18631         unswitch_loops): Declare.
18632         * loop-init.c: New file.
18633         * loop-unswitch.c: New file.
18634         * Makefile.in (loop-init.o, loop-unswitch.o): New.
18635         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
18636         * toplev.c (DFI_loop2): New dump.
18637         (flag_unswitch_loops): New.
18638         (lang_independent_options): Add it.
18639         (rest_of_compilation): Call new loop optimizer.
18640         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
18641
18642 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
18643
18644         * config/h8300/clzsi2.c: New.
18645         * config/h8300/ctzsi2.c: Likewise.
18646         * config/h8300/paritysi2.c: Likewise.
18647         * config/h8300/popcountsi2.c: Likewise.
18648         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
18649
18650 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
18651
18652         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
18653         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
18654         (ctzsi2): New pattern.
18655         (ffssi2): Use clz instead of unspec.
18656         (clzdi2): Rename from cntlzd2.
18657         (ctzdi2): New pattern.
18658         (ffsdi2): Use clz instead of unspec.
18659
18660 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
18661
18662         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
18663         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
18664         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
18665         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
18666
18667 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
18668
18669         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
18670
18671 2003-02-07  Richard Henderson  <rth@redhat.com>
18672
18673         PR 9226
18674         * gcse.c (local_cprop_find_used_regs): New.
18675         (local_cprop_pass): Use it.
18676
18677 2003-02-07  Fred Fish  <fnf@intrinsity.com>
18678
18679         * mips-tfile.c (parse_def): Parenthesize assignments to fix
18680         precedence bugs.
18681
18682 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
18683
18684         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
18685
18686 2003-02-07  Roger Sayle  <roger@eyesopen.com>
18687
18688         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
18689         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
18690         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
18691         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
18692         builtin functions (and their __builtin_* variants).
18693         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
18694         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
18695         when not optimizing.
18696
18697         * doc/extend.texi: Document new pow and atan2 builtins, and
18698         their float and long double variants.  Realphabetize builtins.
18699
18700 2003-02-07  Jan Hubicka  <jh@suse.cz>
18701
18702         * i386.md (sse2_nandv2di3): Fix.
18703
18704 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
18705
18706         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
18707         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
18708         definition.
18709         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
18710         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
18711
18712 2003-02-07  Jan Hubicka  <jh@suse.cz>
18713
18714         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
18715
18716 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
18717
18718         * cfg.c (dump_flow_info): Add back accidently deleted line.
18719
18720 2003-02-07  Andrey Petrov <petrov@netbsd.org>
18721
18722         * optabs.c (expand_float): Search wider integer modes first.
18723
18724 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
18725
18726         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
18727         based on preprocessor flag.
18728
18729 2003-02-07  Roger Sayle  <roger@eyesopen.com>
18730             Richard Henderson  <rth@redhat.com>
18731
18732         * gcse.c (implicit_sets): New.
18733         (compute_hash_table_work): Include them in hash table.
18734         (find_implicit_sets, fis_get_condition): New.
18735         (one_cprop_pass): Allocate and free implicit_sets; call
18736         find_implicit_sets before building hash table.
18737
18738 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
18739
18740         * config/t-netbsd (USER_H): Revert previous change.
18741
18742 2003-02-07  Gabor Greif  <ggreif@lucent.com>
18743
18744         * doc/c-tree.texi (Namespaces): Fix typo.
18745
18746 2003-02-07  Jan Hubicka  <jh@suse.cz>
18747
18748         * regrename.c (do_replace, find_oldest_value_reg,
18749         copyprop_hardreg_forward_1): Update register attributes.
18750
18751 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
18752
18753         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
18754         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
18755         variables starting with underscore.
18756         (struct unit_usage): New structure.
18757         (unit_usages, cycle_alt_unit_usages): New global variables.
18758         (check_unit_distribution_in_reserv): Remove it.
18759         (store_alt_unit_usage): New function.
18760         (check_regexp_units_distribution): Rewrite it.
18761
18762 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18763
18764         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
18765         target_cpu_default.
18766         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
18767         if not MASK_NO_SPACE_REGS.
18768         (output_call): Adjust return pointer, don't load new space register
18769         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
18770         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
18771         TARGET_NO_SPACE_REGS is true.
18772         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
18773         conditions.
18774         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
18775         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
18776         true.  Use bve when TARGET_64BIT is true.
18777
18778 2003-02-06  Richard Henderson  <rth@redhat.com>
18779
18780         * combine.c (nonzero_bits): Fix double break.
18781
18782 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
18783             Richard Henderson <rth@redhat.com>
18784
18785         PR c/9530
18786         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
18787         from functions that return a float to functions that don't.
18788
18789 2003-02-06  Jan Hubicka  <jh@suse.cz>
18790
18791         * i386.c (x86_inter_unit_moves): New variable.
18792         (ix86_secondary_memory_needed): Fix 64bit case, honor
18793         TARGET_INTER_UNIT_MOVES
18794         * i386.h (x86_inter_unit_moves): Declare.
18795         (TARGET_INTER_UNIT_MOVES): New macro.
18796         * i386.md (movsi_1): Cleanup constraints; disable
18797         when not doing inter-unit moves.
18798         (movsi_1_nointernunit): New.
18799         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
18800         (movdi_1_rex64_nointerunit): New.
18801         (mivsf_1): disable when not doing inter-unit moves.
18802         (movsf_1_nointerunit): New.
18803
18804         * basic-block.h (inside_basic_block_p):  Declare.
18805         * cfgbuild.c (inside_basic_block_p): Make global.
18806         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
18807         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
18808         update CFG.
18809         (fix_basic_block_boundaries, add_missing_bbs): New.
18810         (rank): Use profile.
18811         (scheudle_ebbs): Rely on CFG; update coments.
18812
18813 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
18814
18815         * Makefile.in (host_hook_obj): New.
18816         (OBJS): Add $(host_hook_obj).
18817         (host_default.o): New rule.
18818         * config.gcc (host_hook_obj): New, default to host-default.o.
18819         (powerpc-*-darwin*): Use host-darwin.o.
18820         (out_host_hook_obj): New.
18821         * configure: Regenerate.
18822         * configure.in: Print information about out_host_hook_obj, substitute
18823         into output files.
18824         * host-default.c: New file.
18825         * hosthooks.h: New file.
18826         * toplev.c (general_init): Call host_hooks.extra_signals.
18827         * config/rs6000/host-darwin.c: New file.
18828         * config/rs6000/x-darwin: New file.
18829         * doc/hostconfig.texi: Add documentation for new host hook.
18830         Rearrange existing documentation.
18831
18832 2003-02-05  Roger Sayle  <roger@eyesopen.com>
18833
18834         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
18835         with *targetm.delegitimize_address.
18836         (rtl_for_decl_location): Likewise.
18837         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
18838         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
18839
18840         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18841         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
18842         prototype.
18843         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
18844         i386_simplify_dwarf_addr.  Made static.  Prototyped.
18845         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
18846         i386_simplify_dwarf_addr to ix86_delegitimize_address.
18847         (ix86_find_base_term): Likewise.
18848         (maybe_get_pool_constant): Likewise.
18849
18850         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18851         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
18852         prototype.
18853         * config/s390/s390.c (s390_delegitimize_address): Renamed from
18854         s390_simplify_dwarf_addr.  Made static.  Prototyped.
18855         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
18856
18857 2003-02-05  Richard Henderson  <rth@redhat.com>
18858
18859         PR c/8602
18860         * integrate.c (output_inline_function): Reset input_filename
18861         and lineno from the decl before rest_of_compilation.
18862
18863 2003-02-05  Richard Henderson  <rth@redhat.com>
18864
18865         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18866         (CTZ_DEFINED_VALUE_AT_ZERO): New.
18867         * doc/rtl.texi, doc/tm.texi: Document them.
18868
18869         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
18870         of the value at zero properly.
18871         * fold-const.c (tree_expr_nonnegative_p): Likewise.
18872         * simplify-rtx.c (simplify_unary_operation): Likewise.
18873
18874         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18875         (CTZ_DEFINED_VALUE_AT_ZERO): New.
18876
18877         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
18878         (TARGET_EXPAND_BUILTIN): Remove.
18879         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
18880         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18881         (enum arm_builtins): Remove.
18882         * config/arm/arm.md (UNSPEC_CLZ): Remove.
18883         (clzsi2): Rename from clz; use clz instead of unspec.
18884         (ctzsi2): New.
18885         * config/arm/arm-protos.h: Update.
18886
18887 2003-02-05  Jan Hubicka  <jh@suse.cz>
18888
18889         * i386-protos.h (x86_emit_floatuns):  Declare.
18890         * i386.c (x86_emit_floatuns): New global function.
18891         * i386.md (floatunssisf2, floatunsdisf2,
18892         floatunsdidf2):  New patterns.
18893
18894 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18895
18896         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
18897
18898 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
18899
18900         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
18901           config/ia64/linux.h
18902
18903 2003-02-05  Roger Sayle  <roger@eyesopen.com>
18904
18905         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
18906
18907 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
18908
18909         PR optimization/8555
18910         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
18911         instead of aborting.
18912
18913 2003-02-04  Richard Henderson  <rth@redhat.com>
18914
18915         * config/i386/i386.md (UNSPEC_BSF): Remove.
18916         (ffssi2): Split into cmove and no_cmove insns and splitters;
18917         lose pentium float trick for now.
18918         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
18919         (ctzsi2, clzsi2, bsr): New.
18920
18921 2003-02-04  Richard Henderson  <rth@redhat.com>
18922
18923         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
18924         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
18925         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
18926         (ffsdi2): Use popcount instead of unspec.
18927         (popcountdi2): Rename from *popcnt.
18928         (ctzdi2, clzdi2, getf_exp_tf): New.
18929
18930 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
18931
18932         * genconfig.c (main): Generate CC0_P.
18933         * rtl.h (CC0_P): Remove.
18934
18935 2003-02-04  Richard Henderson  <rth@redhat.com>
18936
18937         * libgcc2.h, libgcc2.c (__ffsSI2): New.
18938         (__ffsDI2): Rename from __ffsdi2.
18939         * mklibgcc.in (lib2funcs): Add _ffssi2.
18940
18941 2003-02-04  Richard Henderson  <rth@redhat.com>
18942
18943         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
18944         rounds with a "bit table" lookup.
18945
18946 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18947
18948         * reload.c (find_reloads): Do not use the mode specified in the insn
18949         pattern as reload mode for address operands.  Do not generate optional
18950         reloads for operands where a mandatory reload was already pushed.
18951
18952 2003-02-04  Richard Henderson  <rth@redhat.com>
18953
18954         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
18955         builtins instead of inline assembly.
18956
18957 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18958
18959         PR c/9376
18960         * libgcc2.c (__subvdi3): Fix typo.
18961
18962 2003-02-04  Jan Hubicka  <jh@suse.cz>
18963
18964         * i386.md (movti_rex64):  Fix constraint.
18965
18966 2003-02-04  Jan Hubicka  <jh@suse.cz>
18967
18968         * i386.md (vector push splitters):  Fix typo in resolving conflict.
18969
18970 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
18971
18972         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
18973
18974 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
18975
18976         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
18977         for recent libstdc++.  Remove formatting cruft.
18978
18979 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
18980
18981         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
18982         attribute even if input file name is absolute, but one of the
18983         includes is relative.
18984
18985 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
18986
18987         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
18988         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
18989         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
18990
18991 2003-02-03  Richard Henderson  <rth@redhat.com>
18992
18993         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18994         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
18995         return type to "int".  Shuffle declarations and undef int trap.
18996         * libgcc2.h: Remove their declarations.
18997         * optabs.c (expand_unop): Force outmode to int for bitops.
18998
18999 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
19000
19001         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
19002         coprocessor registers before floating-point registers.
19003         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
19004         to account for a previously removed register.
19005         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
19006         Delete unused macros.
19007
19008 2003-02-03  Jan Hubicka  <jh@suse.cz>
19009
19010         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
19011         (mov*_internal): Fix predicates; require one of operands to not be
19012         memory.
19013         (SSE?MMX move expanders):  Fix predicates; force one of operands to
19014         register.
19015         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
19016         (movups/movupd/movdqu patterns): Force one of operands to not be
19017         memory.
19018
19019 2003-02-03  Roger Sayle  <roger@eyesopen.com>
19020
19021         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
19022         takes a single rtx and returns it unmodified.
19023         * hooks.h (hook_rtx_rtx_identity): Prototype here.
19024         * target.h (struct gcc_target): Add "delegitimize_address"
19025         field to target structure.
19026         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
19027         for delegitimize_address target using hook_rtx_rtx_identity.
19028         (TARGET_INITIALIZER): Initialize delegitimize_address field
19029         using TARGET_DELEGITIMIZE_ADDRESS macro.
19030         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
19031         extensions of constant pool references.  Use delegitimize_address
19032         to undo the obfuscation of "-fpic".
19033         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
19034
19035         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
19036         i386_simplify_dwarf_addr.
19037         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
19038         (maybe_get_pool_constant): Likewise.
19039
19040 2003-02-03  Jan Hubicka  <jh@suse.cz>
19041
19042         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
19043
19044 2003-02-03  Jan Hubicka  <jh@suse.cz>
19045
19046         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
19047
19048 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19049
19050         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
19051         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
19052
19053 2003-02-02  Andreas Schwab  <schwab@suse.de>
19054
19055         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
19056
19057 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
19058
19059         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
19060         (epilogue_insns): Likewise.
19061
19062 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19063
19064         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
19065
19066 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19067
19068         * pa-protos.h (attr_length_millicode_call): Remove second argument.
19069         (attr_length_indirect_call, attr_length_indirect_call,
19070         attr_length_save_restore_dltp): New prototypes.
19071         * pa.c (attr_length_millicode_call): Remove second argument.  Check
19072         INSN_ADDRESSES_SET_P in distance calculation.
19073         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
19074         INSN_ADDRESSES.
19075         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
19076         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
19077         Call attr_length_call directly.
19078         (attr_length_indirect_call, output_indirect_call,
19079         attr_length_save_restore_dltp): New functions.
19080         * pa.md (attr_length_millicode_call): Drop second argument from all
19081         patterns.
19082         (return_internal_pic): Delete.
19083         (return_external_pic): Remove use of PIC register and pic operand and
19084         flag checks.
19085         (epilogue): Use return_internal for both normal and pic code.
19086         (call, call_value): Emit new 32-bit pic patterns for symref and
19087         indirect calls.  Remove uses for arg pointer and pic register.
19088         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
19089         call_reg_pic_post_reload, call_val_symref_pic,
19090         call_val_symref_pic_post_reload, call_val_reg_pic,
19091         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
19092         Implement define_split and define_peephole2 patterns for pre reload
19093         patterns.
19094         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
19095         call_value_internal_reg_64bit): Shorten names.
19096         (all call patterns): Explicitly indicate registers used and clobbered.
19097         Use attr_length_indirect_call and attr_length_save_restore_dltp for
19098         attribute length calculation.  Move code generation for indirect calls
19099         to output_indirect_call.
19100         (sibcall, sibcall_value): Don't restore PIC register.
19101         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
19102         register retore.
19103
19104 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19105
19106         * doc/install.texi (Testing): Simplify and compress instructions
19107         concerning Dejagnu.
19108
19109 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19110
19111         * collect2.c (pexecute_pid): Rename to pid.
19112         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
19113         pid.
19114
19115 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
19116
19117         * doc/extend.texi (Function Attributes): Remove documentation
19118         for PowerPC Windows NT function attributes..
19119
19120 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
19121
19122         * dwarf2out.c (gen_type_die): Check for typedefs before calling
19123         for TYPE_MAIN_VARIANT.
19124
19125 2003-02-01  Richard Henderson  <rth@redhat.com>
19126
19127         * libgcc2.c: Include auto-host.h.
19128         (ATTRIBUTE_HIDDEN): New.
19129         (__clz_tab): Don't declare here for clz and ctz.
19130         (__clzsi2, __clzdi2): Use count_leading_zeros.
19131         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
19132         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
19133         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
19134         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
19135
19136 2003-02-01  Richard Henderson  <rth@redhat.com>
19137
19138         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
19139         to the conditional.
19140         (ashlsi3_1_zext splitter): Likewise.
19141
19142 2003-02-01  Richard Henderson  <rth@redhat.com>
19143
19144         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
19145         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
19146         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
19147         return type to Wtype.
19148
19149         * libgcc-std.ver (GCC_3.4): Fix inheritance.
19150
19151         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
19152         expander input constraint.
19153
19154 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
19155
19156         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
19157         OTI_parity.
19158         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
19159         * optabs.c (widen_clz, expand_parity): New.
19160         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
19161         for libcalls to clz, ctz, popcount, and parity.
19162         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
19163         parity_optab, and set up libfunc handlers.
19164         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
19165         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
19166         __popcount_tab): New.
19167         * libgcc2.h: Declare them.
19168         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
19169         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
19170         and parity_optab.
19171         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
19172         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
19173         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
19174         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
19175         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
19176         BUILT_IN_PARITYLL): New.
19177         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
19178         and add optab argument.
19179         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
19180         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
19181         * expr.c (expand_expr): Handle them.
19182         * fold-const.c (tree_expr_nonnegative_p): Likewise.
19183         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
19184         * reload1.c (eliminate_regs): Handle them.
19185         (elimination_effects): Likewise.
19186         * function.c (instantiate_virtual_regs_1): Likewise
19187         * genattrtab.c (check_attr_value): Likewise.
19188         * simplify-rtx.c (simplify_unary_operation): Likewise.
19189         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
19190         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
19191         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
19192         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
19193         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
19194         __builtin_arm_clz.
19195         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
19196         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
19197         * doc/extend.texi (Other Builtins): Add new builtins.
19198         * doc/md.texi (Standard Names): Add new patterns.
19199
19200 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
19201
19202         * reload.c: Revert 2003-01-31 change.
19203
19204 2003-02-01  Jan Hubicka  <jh@suse.cz>
19205
19206         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
19207
19208 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
19209
19210         * flags.h (flag_volatile): Remove declaration.
19211         (flag_volatile_global, flag_volatile_static): Likewise.
19212         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
19213         * toplev.c (flag_volatile): Remove definition.
19214         (flag_volatile_global, flag_volatile_static): Likewise.
19215         (f_options): Remove corresponding entries here.
19216         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
19217         or flag_volatile_static.
19218         * doc/invoke.texi: Remove documentation of -fvolatile,
19219         -fvolatile-global and -fvolatile-static.
19220
19221 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19222
19223         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
19224         updating of total_code_bytes from prologue to epilogue.
19225
19226 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
19227
19228         * reload.c (find_reloads): Do not use the mode specified in the insn
19229         pattern as reload mode for address operands.  Do not generate optional
19230         reloads for operands where a mandatory reload was already pushed.
19231         Generate optional reloads only in the final pass though find_reloads.
19232         (have_replacement_p): New function.
19233
19234 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19235
19236         * doc/install.texi (Testing): Remove a reference to our obsolete
19237         /testresults web pages and strip redundant information concerning
19238         test results.
19239         (Binaries): Refer to Microsoft Windows instead of listing all
19240         possible variants.
19241
19242 2003-02-01  Jan Hubicka  <jh@suse.cz>
19243
19244         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
19245         RTL chain.
19246
19247         * combine.c (simplify_set): Reverse order of ragumetns to
19248         REG_CANNOT_CHANGE_MODE_P
19249         * df.c (df_def_record_1): Likewise.
19250         * recog.c (register_operand): Likewise.
19251         * simplify-rtx.c (simplify_subreg): Likewise.
19252         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
19253         CANNOT_CHANGE_MODE_CLASS.
19254         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
19255         Likewise.
19256         * reload.c (push_reload): Likewise.
19257         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19258         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19259         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19260         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
19261         * mips.c (mips_cannot_change_mode_class): Update.
19262         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19263         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19264         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19265         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19266         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
19267         * sh.c (sh_cannot_change_mode_class): Update.
19268         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
19269         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
19270
19271 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
19272
19273         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
19274         change to LINK_COMMAND_SPEC in gcc.c.
19275
19276 2003-01-31  Jan Hubicka  <jh@suse.cz>
19277
19278         PR c/9506
19279         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
19280
19281 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19282
19283         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
19284         duplicated code.
19285
19286 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
19287
19288         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
19289         (BINFO_ELTS): New #define.
19290         * stor-layout.c (finalize_record_size): Don't set them.
19291         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
19292         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
19293         (BINFO_LANG_ELTS): New #define.
19294         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
19295         * java/class.c (make_class): Use BINFO_ELTS.
19296         (set_super_info): Likewse.
19297         (add_interface_do): Likewise.
19298         * objc/objc-act.c (start_class): Use BINFO_ELTS.
19299
19300 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
19301
19302         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
19303         (times): Don't ever declare if not HAVE_TIMES.
19304         (clock): Don't ever declare if not HAVE_CLOCK.
19305
19306 2003-01-30  Richard Henderson  <rth@redhat.com>
19307
19308         * flow.c (update_life_info): Zap life info after cleanup_cfg.
19309         (regno_uninitialized): Use correct live at function entry set.
19310         (regno_clobbered_at_setjmp): Likewise.
19311
19312         * expr.c (store_expr): Promote all MEM intermediates to regs.
19313
19314 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19315
19316         * config/arm/arm.c: Fix comment typos.
19317         * config/arm/arm.h: Likewise.
19318         * config/arm/netbsd-elf.h: Likewise.
19319         * config/arm/netbsd.h: Likewise.
19320
19321 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
19322
19323         * gengtype.c (struct walk_type_data): Add needs_cast_p.
19324         (walk_type): Set needs_cast_p in walk_type_data.
19325         (write_types_process_field): Supply casts when required to suppress
19326         warnings.
19327         (write_root): Cast gt_pch_n_S to suppress warning.
19328         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
19329         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
19330         when they might exist.
19331         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
19332         insn-conditions.o, and rs6000.o.
19333
19334 2003-01-30  Richard Henderson  <rth@redhat.com>
19335
19336         * ggc-page.c (G.context_depth_allocations): New.
19337         (G.context_depth_collections): New.
19338         (alloc_page): Set G.context_depth_allocations.
19339         (ggc_collect): Set G.context_depth_collections.
19340         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
19341         (ggc_pop_context): Early exit for no allocations or collections.
19342
19343 2003-01-30  Richard Henderson  <rth@redhat.com>
19344
19345         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
19346
19347 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
19348
19349         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
19350         size, the link register is always saved if any other register is
19351         saved.
19352
19353 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19354
19355         * config/h8300/h8300-protos.h: Update the prototype for
19356         compute_plussi_cc.
19357         (cpp_reader): Declare before it is used.
19358         * config/h8300/h8300.c (compute_plussi_cc): Change the return
19359         type to int.
19360         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
19361         see an unknown H8 variant.
19362
19363 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
19364
19365         PR target/9316
19366         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
19367         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
19368         * config/rs6000/t-rtems: New file. multilib variants to match OS.
19369         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
19370         rs6000/t-ppcgas so we get the desired multilibs.
19371
19372 2003-01-30  Nick Clifton  <nickc@redhat.com>
19373
19374         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
19375         when popping saved IP register off the stack.
19376
19377 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19378
19379         * config/rs6000/aix43.h: Fix comment typos.
19380         * config/rs6000/aix51.h: Likewise.
19381         * config/rs6000/aix52.h: Likewise.
19382         * config/rs6000/altivec.h: Likewise.
19383         * config/rs6000/rs6000.c: Likewise.
19384         * config/rs6000/rs6000.h: Likewise.
19385         * config/rs6000/rs6000.md: Likewise.
19386         * config/rs6000/spe.md: Likewise.
19387
19388 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
19389
19390         * c-common.c (builtin_define_float_constants): Define
19391         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
19392
19393 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19394
19395         * config/sh/lib1funcs.asm: Fix comment typos.
19396         * config/sh/linux.h: Likewise.
19397         * config/sh/sh.c: Likewise.
19398         * config/sh/sh.md: Likewise.
19399
19400 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
19401
19402         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
19403
19404 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
19405
19406         * config/fp-bit.h (__make_dp): Declare if TMODES.
19407
19408 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
19409
19410         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
19411         general_operand_src and general_operand_dst.
19412
19413 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
19414
19415         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
19416         Return true for variable sized types.
19417         (rs6000_va_arg): Handle variable sized types passed by reference
19418         on non-SVR4 ABI.
19419
19420 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
19421
19422         * arm.c (arm_legtimize_address): New function.
19423         * arm-protos.h (arm_legtimize_address): Add prototype.
19424         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
19425         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
19426         do ... while (0)
19427
19428 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
19429
19430         PR bootstrap/9296
19431         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
19432         depended on it being defined until now.
19433
19434 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
19435
19436         PR target/9295
19437         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
19438         RTEMS code knows which C++ initialization style the toolset
19439         configuration is using.
19440
19441 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
19442
19443         PR bootstrap/9293
19444         * config/m68k/t-crtstuff: Replace spaces with tabs, add
19445          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
19446
19447 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
19448
19449         PR bootstrap/9292
19450         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
19451         RTEMS threads.
19452         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
19453
19454 2003-01-29  Nick Clifton  <nickc@redhat.com>
19455
19456         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
19457         not $(srcdir).
19458
19459 2003-01-29  Andrew Haley  <aph@redhat.com>
19460
19461         * tree-inline.c (walk_tree): Add CHAR_TYPE.
19462
19463 2003-01-29  Jan Hubicka  <jh@suse.cz>
19464
19465         * i386.md (subdi3_carry_rex64): Fix typo.
19466
19467 2003-01-28  Stan Shebs  <shebs@apple.com>
19468
19469         * coretypes.h (cpp_reader): Forward declare struct.
19470         * c-pragma.h (cpp_reader): Remove forward declaration.
19471         * hashtable.h (cpp_reader): Likewise.
19472         * scan.h (cpp_reader): Likewise.
19473         * tree.h (cpp_reader): Likewise.
19474         * config/darwin-protos.h (cpp_reader): Likewise.
19475         * config/arm/arm-protos.h (cpp_reader): Likewise.
19476         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
19477         struct cpp_reader in prototypes.
19478
19479 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
19480
19481         * doc/install.texi: Add documentation for installation into
19482         tooldirs and with DESTDIR.
19483
19484 2003-01-28  Richard Henderson  <rth@redhat.com>
19485
19486         * config.gcc (ia64*-*-aix*): Remove.
19487         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
19488         * config/ia64/unwind-aix.c: Remove file.
19489
19490 2003-01-28  Andreas Schwab  <schwab@suse.de>
19491
19492         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
19493         register.
19494         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
19495         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
19496         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
19497         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
19498         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
19499         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
19500         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
19501
19502 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
19503
19504         * combine.c (nonzero_bits): Fix check for negative divide operands.
19505
19506 2003-01-28  Richard Henderson  <rth@redhat.com>
19507
19508         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
19509         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
19510
19511 2003-01-28  Richard Henderson  <rth@redhat.com>
19512
19513         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
19514
19515         * config/cris/cris.c (cris_address_cost): Make static.
19516         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
19517         * config/cris/cris.h (ADDRESS_COST): Remove.
19518         * config/cris/cris-protos.h: Update.
19519
19520 2003-01-23  Mike Stump  <mrs@apple.com>
19521
19522         * regclass.c (init_reg_autoinc): New function.
19523         (regclass): Move initialization of forbidden_inc_dec_class from
19524         here...
19525         (init_regs): to here.  Avoids reinitialization for each function,
19526         saving compilation time.
19527
19528 2003-01-28  Jason Merrill  <jason@redhat.com>
19529
19530         * cpplib.h (struct cpp_options): Add warn_deprecated field.
19531         * cppinit.c (cpp_create_reader): Turn it on by default.
19532         * c-opts.c (c_common_decode_option): Set it.
19533         * cpplib.c (do_pragma_once): Only complain about #pragma once
19534         if warn_deprecated is set.
19535
19536 2003-01-28  Dale Johannesen  <dalej@apple.com>
19537
19538         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
19539         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
19540         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
19541
19542 2003-01-28  Richard Henderson  <rth@redhat.com>
19543
19544         * target.h (targetm.address_cost): New.
19545         * target-def.h (TARGET_ADDRESS_COST): New.
19546         (TARGET_RTX_COSTS): Uncomment.  Oops.
19547         * cse.c (address_cost): Use new target hook.
19548         (default_address_cost): New.
19549         * output.h (default_address_cost): Declare.
19550         * hooks.c (hook_int_rtx_0): New.
19551         * hooks.h (hook_int_rtx_0): Declare.
19552         * loop.c (combine_givs_p): Remove if 0 code.
19553         * system.h (ADDRESS_COST): Poison.
19554
19555         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
19556         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
19557         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
19558         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
19559         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
19560         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
19561         config/xtensa/xtensa.c, config/xtensa/xtensa.h
19562         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
19563         (ADDRESS_COST): Remove.
19564
19565         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
19566         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
19567         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
19568         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
19569         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
19570         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
19571         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
19572         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
19573         config/mips/mips.c, config/mips/mips.h,
19574         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
19575         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
19576         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
19577         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
19578         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
19579         config/vax/vax.c, config/vax/vax.h
19580         (foo_address_cost): Make static.
19581         (TARGET_ADDRESS_COST): New.
19582         (ADDRESS_COST): Remove.
19583
19584         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
19585         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
19586         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
19587         config/stormy16/stormy16.h
19588         (ADDRESS_COST): Move code ...
19589         (foo_address_cost): ... here.
19590         (TARGET_ADDRESS_COST): New.
19591
19592         * config/m32r/m32r.c (m32r_address_cost): Remove.
19593         * config/m32r/m32r-protos.h: Update.
19594
19595         * config/mmix/mmix.c (mmix_address_cost): Remove.
19596         * config/mmix/mmix-protos.h: Update.
19597
19598         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
19599         mn10300_address_cost; move unsig allocation ...
19600         (mn10300_address_cost): ... here.
19601         (TARGET_ADDRESS_COST): New.
19602         * config/mn10300/mn10300-protos.h: Update.
19603         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
19604
19605         * doc/tm.texi: Update.
19606
19607 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
19608
19609         * haifa-sched.c (schedule_insn): Return necessary cycle advance
19610         after issuing the insn.
19611         (rank_for_schedule): Make a insn with /S the highest priority
19612         insn.
19613         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
19614         (choose_ready): Check SCHED_GROUP_P.
19615         (schedule_block): Advance cycle after issuing insn if it is
19616         necessary.  Don't reorder insns if there is an insn with /S.
19617         (set_priorities): Ignore schedule groups.
19618
19619         * sched-deps.c (remove_dependence, group_leader): Remove the
19620         functions.
19621         (add_dependence): Ignore schedule groups.
19622         (set_sched_group_p): Don't make copy of dependencies from previous
19623         insn of the schedule group.  Add anti-dependency to the previous
19624         insn of the schedule group.
19625         (compute_forward_dependences): Ignore schedule groups.
19626
19627         * sched-ebb.c (init_ready_list): Ignore schedule groups.
19628
19629         * sched-rgn.c (init_ready_list): Ditto.
19630         (can_schedule_ready_p): Ditto.
19631
19632 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
19633
19634         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
19635         register to another one.
19636
19637 2003-01-28  Richard Henderson  <rth@redhat.com>
19638
19639         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
19640
19641 2003-01-28  Roger Sayle  <roger@eyesopen.com>
19642
19643         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
19644
19645 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
19646
19647         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
19648         class contains a floating-point register, return the size of the
19649         mode in half words.
19650
19651 2003-01-28  Jan Hubicka  <jh@suse.cz>
19652
19653         * i386.c (ix86_carry_flag_operator):  New predicate.
19654         (fcmov_operator): Fix whitespace.
19655         (ix86_expand_carry_flag_compare):  Deal with floating point.
19656         (ix86_expand_int_movcc): Deal with fp; update insn expansion
19657         (ix86_expand_int_addcc): Likewise.
19658         (ix86_expand_strlensi_unroll_1): likewsie.
19659         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
19660         * i386.md (add?i_carry_rex64): Use new predicate.
19661         (sub?i3_carry_rex64): Likewise.
19662         (x86_mov?icc_0_m1*): Likewise.
19663
19664 2003-01-28  Andreas Schwab  <schwab@suse.de>
19665
19666         * cfgloopmanip.c (create_preheader): Initialize src to avoid
19667         warning.
19668
19669         * expmed.c (emit_store_flag): Fix cast to avoid sign
19670         comparison warning.
19671
19672         * combine.c (force_to_mode): Add cast to fix warning when
19673         STORE_FLAG_VALUE is negative.
19674
19675 2003-01-27  Richard Henderson  <rth@redhat.com>
19676
19677         * Makefile.in (cse.o): Depend on TARGET_H.
19678         * cse.c (rtx_cost): Use targetm.rtx_costs.
19679         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
19680         * doc/tm.texi: Update.
19681
19682         * target.h (targetm.rtx_costs): New.
19683         * target-def.h (TARGET_RTX_COSTS): New.
19684         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
19685         * hooks.h: Update.
19686
19687         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
19688         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
19689         * config/alpha/alpha.h (PROCESSOR_MAX): New.
19690         (CONST_COSTS, RTX_COSTS): Remove.
19691
19692         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
19693         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
19694         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
19695         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
19696         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
19697         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
19698         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
19699         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
19700         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
19701         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
19702         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
19703         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
19704         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
19705         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
19706         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
19707         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
19708         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
19709         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
19710         config/v850/v850.c, config/v850/v850.h,
19711         config/xtensa/xtensa.c, config/xtensa/xtensa.h
19712         (CONST_COSTS, RTX_COSTS): Move code ...
19713         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
19714
19715         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
19716         (arm_rtx_costs, TARGET_RTX_COSTS): New.
19717         * config/arm/arm-protos.h: Update.
19718         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
19719
19720         * config/avr/avr.h (CONST_COSTS): Move code ...
19721         * config/avr/avr.c (avr_rtx_costs): ... here.
19722         (default_rtx_costs): Make static.
19723         * config/avr/avr-protos.h: Update.
19724
19725         * config/h8300/h8300.c (const_costs): Make static.
19726         (h8300_and_costs, h8300_shift_costs): Likewise.
19727         * config/h8300/h8300-protos.h: Update.
19728
19729         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
19730         (CONST_COSTS): Move code ...
19731         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
19732         default_rtx_costs; update for signature change.
19733         * config/ip2k/ip2k-protos.h: Update.
19734
19735         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
19736         (CONST_COSTS): Move code ...
19737         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
19738         (TARGET_RTX_COSTS): New.
19739         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
19740         * config/m68hc11/m68hc11-protos.h: Update.
19741
19742         * config/m68k/m68k.c (const_int_cost): Make static.
19743         * config/m68k/m68k-protos.h: Update.
19744
19745         * config/mcore/mcore.c (mcore_const_costs): Make static.
19746         (mcore_and_cost, mcore_ior_cost): Likewise.
19747         * config/mcore/mcore-protos.h: Update.
19748
19749         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
19750         (mmix_rtx_cost_recalculated): Remove.
19751         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
19752         * config/mmix/mmix-protos.h: Update.
19753
19754         * config/sh/sh.c (shiftcosts): Make static.
19755         (addsubcosts, andcosts, multcosts): Likewise.
19756         * config/sh/sh-protos.h: Update.
19757
19758         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
19759         (sparc_rtx_costs): Make static; update for change in signature.
19760         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
19761         * config/sparc/sparc-protos.h: Update.
19762
19763         * config/v850/v850.c (const_costs): Make static.
19764         * config/v850/v850-protos.h: Update.
19765
19766         * config/vax/vax.h (RTX_COSTS): Remove.
19767         (CONST_COSTS): Move code ...
19768         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
19769         from vax_rtx_cost.
19770         (vax_rtx_costs, TARGET_RTX_COSTS): New.
19771
19772 2003-01-27  Richard Henderson  <rth@redhat.com>
19773
19774         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
19775         * config/vax/vax-protos.h: Update.  Really.
19776
19777 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
19778
19779         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
19780         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
19781         zero if no hardware floating point.
19782         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
19783         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
19784         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
19785         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
19786         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
19787         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
19788         even FP registers on N32 and N64.
19789         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
19790         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
19791         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
19792         even-register-like alignment to 128-bit arguments.
19793         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
19794         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
19795         on N32 or N64.
19796         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
19797         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
19798         (TPBIT): Set to tp-bit.c.
19799         (tp-bit.c): Create out of fp-bit.c.
19800
19801 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19802
19803         * c-parse.in: Remove '%expect 32' directive in objc mode.
19804
19805 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
19806
19807         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
19808         (LIBGCOV): New variable.
19809         (libgcc.mk): Add LIBGCOV.
19810         (LIBGCC_DEPS): Add libgcov.c.
19811         (libgcov.a): New target.
19812         (clean): Remove libgcov.a.
19813         (install-libgcc): Do libgcov too.
19814         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
19815         with libgcov.a.
19816         * libgcc2.c (L_gcov): Move into ...
19817         * libgcov.c: ... here. New file.
19818         * mklibgcc.in: Add libgcov rules.
19819         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
19820
19821         * doc/invoke.texi (profile-arcs, test-coverage): Update and
19822         clarify.
19823
19824         * profile.c (index_counts_file): Remove duplicate check for open file.
19825
19826 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
19827
19828         * gcc/doc/invoke.texi (Optimization Options): Group together
19829         optional and experimental flags.  Move trapv and bounds-check
19830         out of this section.  Group floating point flags together.
19831         (Code Gen Options): Move trapv and bounds-check to here.
19832
19833 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
19834
19835         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
19836
19837 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
19838
19839         PR optimization/9090
19840         * function.c (purge_addressof_1): After pushing an addressed register
19841         onto the stack, simplify the result.
19842
19843 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19844
19845         * doc/extend.texi: Fix typo.
19846
19847 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19848
19849         * doc/cppopts.texi: Fix typo.
19850         * doc/objc.texi: Likewise.
19851         * doc/passes.texi: Likewise.
19852
19853 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
19854
19855         * real.c (ibm_extended_format): Add 53 to minimum exponent.
19856         (encode_ibm_extended): Adjust.
19857
19858 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
19859
19860         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
19861         timevar_id enumerations.
19862
19863 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19864
19865         * combine.c: Fix formatting.
19866
19867 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19868
19869         * doc/gccint.texi: Update the copyright.
19870
19871 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19872
19873         * doc/cpp.texi: Fix typos.
19874         * doc/extend.texi: Likewise.
19875         * doc/gty.texi: Likewise.
19876         * doc/install.texi: Likewise.
19877         * doc/passes.texi: Likewise.
19878         * doc/rtl.texi: Likewise.
19879         * doc/tm.texi: Likewise.
19880
19881 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19882
19883         * config/ia64/fde-glibc.c: Fix comment typos.
19884         * config/ia64/hpux.h: Likewise.
19885         * config/ia64/ia64.c: Likewise.
19886         * config/ia64/ia64.h: Likewise.
19887         * config/ia64/unwind-ia64.c: Likewise.
19888
19889 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19890
19891         * config/i386/i386-modes.def: Fix comment typos.
19892         * config/i386/i386.c: Likewise.
19893         * config/i386/i386.md: Likewise.
19894
19895 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
19896
19897         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
19898         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
19899         ASM_FINISH_DECLARE_OBJECT before defining it.
19900         * toplev.c (rest_of_decl_compilation):  Don't define
19901         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
19902         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
19903         parameters for DWARF2 targets because they _are_ used.
19904
19905 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
19906
19907         * fp-bit.h: Define macros for TFmode floating-point constants
19908         in IBM-extended TFmode types.
19909         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
19910         widths.
19911         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
19912         TFmode type.
19913
19914         * config/fp-bit.h: Define macros for TFmode floating-point
19915         constants in IEEE quad TFmode type.  Declare functions according
19916         to L_ macros.
19917         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
19918         (TFtype, TItype, UTItype): Define if TMODES is defined.
19919         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
19920         (F_T_BITOFF, D_T_BITOFF): Define.
19921         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
19922         guaranteed to be wide enough.
19923         * config/fp-bit.c: Check for L_ macros for tf functions.
19924         (__thenan_tf): New.
19925         (nan): Adjust.
19926         (pack_d, unpack_d): Support IEEE 854 quad type.
19927         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
19928         from FRAC_NBITS, FRAC_BITS and NGARDS.
19929         (usi_to_float): Cast constants to be shifted to fractype
19930         instead of assuming long long is wide enough.
19931         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
19932
19933 2003-01-26  Andreas Jaeger  <aj@suse.de>
19934
19935         * df.c: Remove prototype of unused function df_regno_rtl_debug.
19936
19937 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
19938
19939         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
19940         (DBBIT_FUNCS): Added _df_to_tf.
19941         (TPBIT_FUNCS): New.
19942         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
19943         (LIBGCC_DEPS): Added TPBIT.
19944         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
19945
19946         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
19947         been able to move the result to target.
19948
19949         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
19950         for the appropriate mode.
19951
19952         * calls.c (emit_library_call_value_1): Handle return values
19953         in a PARALLEL.
19954
19955         * rtl.c (get_mode_alignment): Moved to...
19956         * stor-layout.c: ... here.
19957
19958         * print-rtl.c (print_rtx): Don't print MEM details in
19959         GENERATOR_FILEs.
19960
19961 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
19962
19963         * df.h: Update comments, tidy formatting.
19964         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
19965         REVERSE, UNION, INTERSECTION.  All uses updated.
19966         (OLD_DF_INTERFACE): Remove.
19967         (struct insn_info): Remove commented out insn field.
19968         * df.c: Update comments, tidy formatting.
19969         (df_def_table_realloc): Remove.
19970
19971
19972 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
19973
19974         * calls.c (save_fixed_argument_area): Tidy.
19975         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
19976         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
19977         call chain loop at 1 if !try_tail_call.  Formatting.
19978         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
19979         Use save_fixed_argument_area and restore_fixed_argument_area.
19980
19981 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19982
19983         * df.c (df_uses_record): Handle CC0.
19984
19985 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
19986
19987         * reload.c (maybe_memory_address_p): New function.
19988         (find_reloads_address): Use it instead of memory_address_p.
19989
19990 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
19991
19992         * final.c (shorten_branches): Align the address of code label
19993         when computing initial lengths and addresses.
19994
19995 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
19996
19997         * config/m68hc11/m68hc11.md: Fix a comment typo.
19998
19999 2003-01-25  Andreas Jaeger  <aj@suse.de>
20000
20001         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
20002         TARGET_MACHO.
20003
20004 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20005
20006         * gcse.c (bypass_last_basic_block): New global variable.
20007         (bypass_block):  Use redirect_edge_and_branch_force to redirect
20008         fall-through edges.  Use bypass_last_basic_block to determine
20009         which blocks have valid PRE information.
20010         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
20011
20012 2003-01-25  Jan Hubicka  <jh@suse.cz>
20013
20014         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
20015
20016 2003-01-25  Jan Hubicka  <jh@suse.cz>
20017                               Eric Botcazou <ebotcazou@libertysurf.fr>
20018         PR opt/8492
20019         * gcse.c (one_cprop_pass): Delete unreachable blocks.
20020
20021 2003-01-25  Richard Henderson  <rth@redhat.com>
20022
20023         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
20024         from ia64_aix_select_rtx_section.
20025         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
20026         instead of saving and restoring flag_pic.
20027         (ia64_rwreloc_unique_section): Similarly.
20028         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
20029         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
20030         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
20031         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
20032
20033 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20034
20035         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
20036         comment.
20037
20038 2003-01-25  Richard Henderson  <rth@redhat.com>
20039
20040         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
20041
20042 2003-01-25  Kelley Cook <kelleycook@comcast.net>
20043
20044         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
20045
20046 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
20047
20048         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
20049         type for bitmaps.  Use unsigned long.
20050         (nBITMAP_WORD_BITS): New macro.
20051         (BITMAP_WORD_BITS): New macro.
20052         (rest of file): Use it.
20053         * bitmap.c: Use it.
20054
20055 2003-01-25  Richard Henderson  <rth@redhat.com>
20056
20057         2002-02-19  Robert Lipe  <robertlipe@usa.net>
20058         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
20059
20060 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20061
20062         * builtins.c (purge_builtin_constant_p): Scan insn stream
20063         sequentially rather than by basic block.
20064         * function.c (purge_addressof): Simplify test with INSN_P.
20065
20066 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20067
20068         * combine.c (simplify_comparison, case AND): Remove a redundant test.
20069
20070 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20071
20072         * function.h (struct function): New field calls_constant_p.
20073         (current_function_calls_constant_p): New macro for above.
20074         * function.c (prepare_function_start): Initialize calls_eh_return
20075         and calls_constant_p.
20076         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
20077         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
20078         when the current_function_calls_constant_p.
20079         * integrate.c (expand_inline_function): Set calls_constant_p if
20080         the function being inlined has calls_constant_p set.
20081
20082 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20083
20084         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
20085         optimizing, even if flag_gcse is true.
20086         * toplev.c (rest_of_compilation): purge_builtin_constant_p
20087         only needs to be called when "optimize > 0 && flag_gcse".
20088
20089 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20090
20091         * stmt.c (emit_case_bit_tests): New routine to implement suitable
20092         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
20093         (case_bit_test_cmp): New comparison function for "qsort" to order
20094         case_bit_tests by decreasing number of destination nodes.
20095         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
20096         (expand_end_case_type): Use emit_case_bit_tests to implement
20097         suitable switch statments.
20098         (CASE_USE_BIT_TESTS): New target macro to disable the above.
20099         * Makefile.in (stmt.o): Add dependency on optab.h.
20100         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
20101
20102 2003-01-23  Andreas Schwab  <schwab@suse.de>
20103
20104         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
20105         __do_global_ctors_aux hidden global and don't put it in
20106         .init_array.
20107         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
20108         instead so that it comes first.
20109
20110 2003-01-25  Jan Hubicka  <jh@suse.cz>
20111
20112         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
20113         subreg is read/modify.
20114
20115 2003-01-25  Jan Hubicka  <jh@suse.cz>
20116
20117         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
20118         do libcall for large blocks.
20119         * i386.md (comi patterns): Set type to ssecomi.
20120         (sse2_unpck?pd): Fix mode of vec_select.
20121
20122         * cse.c: Include except.h
20123         (cse_set_around_loop):  Do not create new basic blocks.
20124         * Makefile.in (cse.o): Add dependnecy on except.h
20125
20126 2003-01-25  Jan Hubicka  <jh@suse.cz>
20127
20128         * builtins.c (fold_trunc_transparent_mathfn): New function.
20129         (fold_builtin): Use it.
20130         * convert.c (convert_to_real): Re-enable code to convert
20131         math functions; add support for floor familly functions.
20132
20133 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20134
20135         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
20136         dependencies on coretypes.h and $(TM_H).
20137
20138 2003-01-25  Jan Hubicka  <jh@suse.cz>
20139
20140         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
20141
20142 2003-01-24  Stuart Hastings  <stuart@apple.com>
20143
20144         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
20145
20146 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20147
20148         * config/c4x/c4x.md (UNSPEC_BU): New constants.
20149         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
20150         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
20151         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
20152         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
20153         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
20154         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
20155         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
20156
20157 2003-01-24  Jan Hubicka  <jh@suse.cz>
20158
20159         * emit-rtl.c (reg_attrs_htab): New static variable.
20160         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
20161         functions.
20162         (reg_rtx): Do not maintain regno_decl.
20163         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
20164         set_mem_attrs_from_reg): New global function.
20165         (init_emit): Do not initialize regno_decl.
20166         (init_emit_once): initialize reg_attrs_htab.
20167         * final.c (alter_subreg): Do not replace REG by SUBREG.
20168         (gen_mem_expr_from_op): Improve output.
20169         (output_asm_operands): Likewise.
20170         * function.c (assign_params): Do not set REGNO_DECL.
20171         * function.h (struct function): Kill regno_decl.
20172         (REGNO_DECL): Kill.
20173         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
20174         * print_rtl.c (print_rtx): Output REG information.
20175         * regclass.c (reg_scan_mark_refs): Update attrs.
20176         * reload1.c (alter_reg): Likewise.
20177         * simplify_rtx.c (simplify_subreg): Likewise.
20178         * stmt.c (expand_decl): Likewise.
20179         * rtl.def (REG): Add new field.
20180         * rtl.h (struct reg_attrs): New.
20181         (rtunion_def): At rtreg.
20182         (X0MEMATTR): Add checking.
20183         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
20184         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
20185         Declare.
20186         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
20187
20188 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
20189
20190         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
20191         (xtensa_emit_call, print_operand): Fix printf format strings
20192         to avoid compile warnings.
20193         (xtensa_function_prologue, xtensa_function_epilogue): Change type
20194         of "size" argument to HOST_WIDE_INT to fix compile warnings.
20195         * config/xtensa/xtensa-protos.h
20196         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
20197
20198 2003-01-24  Jan Hubicka  <jh@suse.cz>
20199
20200         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
20201         (implicit_built_in_decls): New global array.
20202         (mathfn_built_in): New global function.
20203         (fold_trunc_transparent_mathfn): New static function
20204         (expand_builtin_strstr, expand_bultin_strchr,
20205         expand_builtin_strpbrk, expand_builtin_strcpy,
20206         expand_builtin_strncpy, expand_bultin_strcmp,
20207         expand_bultin_strncat, expand_builtin_fputs): Use
20208         implicint_built_in_decls.
20209         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
20210         * builtins.def: Fix comments.
20211         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
20212         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
20213         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
20214         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
20215         (DEF_C99_C90RES_BULTIN): New.
20216         (*f, *l builtins): Update.
20217         * c-common.c (DEF_BUILTIN): Initialize implicit array.
20218         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
20219         * convert.c (strip_float_extensions): New global function.
20220         * tree.h (DEF_BUILTIN): Accept 10 arguments.
20221         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
20222         Declare.
20223         * java/builtins.c (define_builtin): Handle implicit.
20224         (DEF_BUILTIN): Update.
20225         * tm.texi (TARGET_C99_FUNCTIONS): Document.
20226         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
20227         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
20228         when using glibc2.
20229
20230 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
20231
20232         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
20233         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
20234         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
20235         * config/xtensa/crti.asm: New file.
20236         * config/xtensa/crtn.asm: New file.
20237         * config/xtensa/t-elf: New file.
20238         * config/xtensa/t-linux: New file.
20239         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
20240         Move various CFLAGS settings to new t-elf file.
20241
20242 2003-01-24  Richard Henderson  <rth@redhat.com>
20243
20244         PR optimization/4382
20245         * tree-inline.c (find_builtin_longjmp_call_1): New.
20246         (find_builtin_longjmp_call): New.
20247         (inlinable_function_p): Use it.
20248
20249 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20250
20251         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
20252         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
20253         * config/i386/i386.c (function_arg_pass_by_reference): New.
20254         (ix86_va_arg): Support arguments passed by reference.
20255
20256 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20257
20258         * cfgloopanal.c: New file.
20259         * cfgloopmanip.c: New file.
20260         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
20261         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
20262         cfglayout.o): Add dependency on cfgloop.h.
20263         (cfgloop.o): Add flags.h dependency.
20264         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
20265         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
20266         (struct loop, struct loops, flow_loops_find, flow_loops_update,
20267         flow_loops_free, flow_loops_dump, flow_loop_dump,
20268         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
20269         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
20270         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
20271         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
20272         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
20273         find_common_loop, verify_loop_structure): Declarations moved to ...
20274         * cfgloop.h: New file.
20275         * bb-reorder.c (reorder_basic_blocks): Modified.
20276         * cfglayout.c: Include cfgloop.h.
20277         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
20278         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
20279         (break_superblocks): New static function.
20280         (cfg_layout_finalize): Use it.
20281         (cfg_layout_split_block): New function.
20282         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
20283         fields.
20284         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
20285         changed.
20286         (cfg_layout_split_block): Declare.
20287         * cfgloop.c: Include cfgloop.h and flags.h.
20288         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
20289         get_loop_body): Avoid signed versus unsigned comparison warnings.
20290         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
20291         loop_latch_edge): Modified.
20292         (verify_loop_structure): Modified to use flags stored in loop structure;
20293         check irreducible loops.
20294         (cancel_loop, cancel_loop_tree): New functions.
20295         (estimate_probability): Use loop analysis code for predictions.
20296         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
20297         warnings.
20298         * doloop.c: Include cfgloop.h.
20299         * loop.c: Include cfgloop.h.
20300         * predict.c: Include cfgloop.h.
20301         * toplev.c: Include cfgloop.h.
20302         * unroll.c: Include cfgloop.h.
20303         * tracer.c (tracer): Modified.
20304
20305 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20306
20307         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
20308
20309 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
20310
20311         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
20312         * configure: Regenerate.
20313
20314         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
20315         (tls_symbolic_reference_mentioned_p): Add prototype.
20316         (s390_tls_get_offset): Add prototype.
20317         (emit_pic_move): Remove prototype, replace by ...
20318         (emit_symbolic_move): .. this new prototype.
20319
20320         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
20321         (tls_model_chars): New global variable.
20322         (s390_encode_section_info): Encode TLS model.
20323         Use targetm.binds_local_p to check for local symbols.
20324         (s390_strip_name_encoding): New function.
20325         (TARGET_STRIP_NAME_ENCODING): Define.
20326
20327         (get_thread_pointer): New function.
20328         (legitimize_tls_address): New function.
20329         (legitimize_address): Call it.
20330         (emit_pic_move): Remove, replace by ...
20331         (emit_symbolic_move): ... this new function.
20332
20333         (larl_operand): Handle TLS operands.
20334         (legitimate_constant_p): Likewise.
20335         (s390_decompose_address): Likewise.
20336         (s390_cannot_force_const_mem): New function.
20337         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20338
20339         (s390_output_symbolic_const): Handle TLS unspecs.
20340         (print_operand): New code 'J'.
20341         (machine_function): Add struct member 'some_ld_name'.
20342         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
20343
20344         (enum s390_builtin): New type.
20345         (code_for_builtin_64, code_for_builtin_31): New global variables.
20346         (s390_init_builtins, s390_expand_builtin): New functions.
20347         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20348
20349         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
20350         (ASM_OUTPUT_LABELREF): Define.
20351         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
20352
20353         * config/s390/s390.md: Define TLS UNSPEC constants.
20354         ("movdi", "movsi"): Handle TLS operands.
20355         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
20356         ("*tls_load_64", "*tls_load_31"): New insns.
20357         ("call_value_tls", "call_value_tls_exp"): New expanders.
20358         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
20359         "bas_tls_64", "bas_tls_31"): New insns.
20360
20361 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
20362
20363         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
20364         spe ABI is configured, if requested.
20365
20366 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20367
20368         * doc/passes.texi: Fix typo.
20369
20370 2003-01-24  Andreas Schwab  <schwab@suse.de>
20371
20372         * stor-layout.c (excess_unit_span): Only define if used.
20373
20374 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
20375
20376         * gcc/doc/invoke.texi (Optimization Options): List -O levels
20377         for each optimization flag.
20378
20379 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20380
20381         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
20382
20383 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20384
20385         * doc/bugreport.texi: Use @command instead of @code for commands.
20386         * doc/collect2.texi: Likewise.
20387         * doc/headerdirs.texi: Likewise.
20388         * doc/invoke.texi: Likewise.
20389         * doc/standards.texi: Likewise.
20390         * doc/tm.texi: Likewise.
20391         * doc/trouble.texi: Likewise.
20392
20393 2003-01-24  Nick Clifton  <nickc@redhat.com>
20394
20395         * config/arm/arm.c (use_return_insn): Do not use a single return
20396         instruction for interrupt handelrs which have to create a stack
20397         frame.
20398         (arm_expand_prologue): Do not pre-bias the return address of
20399         interrupt handlers which create a stack frame.
20400
20401 2003-01-24  Nick Clifton  <nickc@redhat.com>
20402
20403         * Add sh2e support:
20404
20405         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
20406
20407                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
20408                 med_cbranches.  Fix logic in short_cbranches.
20409
20410         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
20411
20412                 * config/sh/sh.md (delay for cbranch): Don't annul delay
20413                 slots on SH2e.
20414                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
20415                 cbranch with unfilled delay slot on SH2e.
20416                 (output_branch): Fill with a nop the delay slot of a
20417                 branch that required a delay slot but didn't get one.
20418
20419         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
20420
20421                 * doc/invoke.texi (SH options): Document -m2e.
20422                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
20423                 * config/sh/lib1funcs.asm: Likewise.
20424                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
20425                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
20426                 not __sh1__.
20427                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
20428                 SH2E up.
20429                 (SH3E_BIT): Renamed to...
20430                 (SH_E_BIT): ... this.  Replace all uses.
20431                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
20432                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
20433                 (TARGET_SWITCHES): Added 2e.
20434                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
20435                 (processor_type): Added PROCESSOR_SH2E.
20436                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
20437                 TARGET_SH2E, except in sqrtsf2_i.
20438                 (attribute cpu): Added sh2e.
20439                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
20440                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
20441                 * config.gcc: Add sh2e target support.
20442
20443 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
20444
20445         Rename -W to -Wextra.
20446         * c-decl.c:  Update comments.
20447         * c-typeck.c:  Likewise.
20448         * flags.h:  Likewise.
20449         * function.c:  Likewise.
20450         * stmt.c:  Likewise.
20451         * toplev.c:  Update comments.
20452         (W_options):  Add 'extra'.
20453         (display_help):  Remove '-W'.
20454         (decode_W_option):  Special warn_uninitialized treatment in the case
20455         of -Wextra.
20456         * doc/invoke.texi:  Update with new entries.
20457
20458 2003-01-23  Richard Henderson  <rth@redhat.com>
20459
20460         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
20461         in no-else-block case.  Add commentary.
20462
20463 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20464
20465         * configure.in: Revert last change.
20466
20467 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20468
20469         * configure.in: Don't include ansidecl.h in tconfig.h.
20470         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
20471         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
20472         ATTRIBUTE_UNUSED.
20473
20474         * configure: Regenerate.
20475
20476 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
20477
20478         PR java/6748
20479         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
20480         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
20481         kernels.
20482
20483 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20484
20485         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
20486
20487 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
20488
20489         * genattrtab.c (write_attr_get): Mark 'insn' paramter
20490         as ATTRIBUTE_UNUSED.
20491
20492 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
20493
20494         * arm.c (thumb_base_register_rtx_p): New function.
20495         (thumb_index_register_rtx_p): New function.
20496         (thumb_legitimate_address_p): New function.
20497         (thumb_legitimate_offset_p): New function.
20498         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
20499         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
20500         definitions.
20501         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
20502         (THUMB_LEGITIMATE_OFFSET): Delte.
20503         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
20504         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
20505         (thumb_legitimate_offset_p): Likewise.
20506
20507 2003-01-23  Andreas Schwab  <schwab@suse.de>
20508
20509         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
20510
20511 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20512
20513         * fixinc/Makefile.in (FL_LIST): Revert last change.
20514
20515 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20516
20517         PR other/7341
20518         * invoke.texi (ftest-coverage): Fix broken cross-reference.
20519         Change @code to @command for gcov command.
20520
20521         * gcc.texi: Adjust title of gcov section.
20522         Adjust copyright.
20523         * gcov.texi: Likewise.
20524
20525 2003-01-22  Roger Sayle  <roger@eyesopen.com>
20526
20527         PR optimization/8423
20528         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
20529         its argument is constant, or 0 if !flag_gcse.
20530         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
20531         if it's argument is constant.
20532         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
20533         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
20534         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
20535         * builtins.c (purge_builtin_constant_p): New function to force
20536         instantiation of any remaining CONSTANT_P_RTX nodes.
20537         * rtl.h (purge_builtin_constant_p): Prototype here.
20538         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
20539         pass after GCSE and before loop.
20540         (flag_gcse): No longer static.
20541         * flags.h (flag_gcse): Prototype here.
20542
20543 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
20544
20545         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
20546         introduced by last change.
20547
20548 2003-01-22  Andreas Schwab  <schwab@suse.de>
20549
20550         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
20551
20552 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
20553
20554         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
20555         request a scratch reg on H8S when the shift count is 8.
20556
20557 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
20558
20559         * config/s390/s390-protos.h (preferred_la_operand_p):
20560         Remove second parameter.
20561         * config/s390/s390.c (preferred_la_operand_p): Likewise.
20562         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
20563         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
20564         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
20565         Add peepholes to transform ADD to LOAD ADDRESS.
20566
20567 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
20568
20569         * arm.c (arm_address_register_rtx_p): New function.
20570         (arm_legitimate_address_p): New function.
20571         (arm_legitimate_index_p): New function.
20572         (legitimize_pic_address): Use arm_legitimate_index_p.
20573         * arm-protos.h (arm_legtimate_address_p): Add prototype.
20574         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
20575         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
20576
20577 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
20578
20579         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
20580         * config/s390/2064.md (define_bypass): Correct 'Load' and
20581         'Load-address' bypass values.
20582
20583 2003-01-22  Andreas Schwab  <schwab@suse.de>
20584
20585         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
20586
20587 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
20588
20589         * genautomata.c (output_internal_insn_latency_func,
20590         output_print_reservation_func): Short circuit when there is no
20591         automaton to generate code for.
20592
20593 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20594
20595         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
20596         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
20597
20598 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
20599
20600         * config/rs6000/rs6000.md: Remove warning.
20601         (builtin_setjmp_receiver): Likewise.
20602         * config/darwin.c (update_stubs): Slightly improve terrible hack
20603         with identifiers.  Add comment pointing out problems with it.
20604         (update_non_lazy_ptrs): Likewise.
20605
20606 2003-01-21  Richard Henderson  <rth@redhat.com>
20607
20608         * dwarf2out.c (lookup_filename): Fix printf format warning.
20609         * system.h (fread_unlocked, fwrite_unlocked): Undef.
20610
20611         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
20612         (fixincl.o-warn, gnu-regex.o-warn): New.
20613         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
20614         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
20615         * fixinc/fixincl.c (process): Fix printf format warning.
20616
20617 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
20618
20619         * dwarf2out (output_file_names): Don't crash if called
20620         with empty file_table.
20621
20622 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
20623
20624         * genautomata.c (output_internal_insn_latency_func): Add
20625         missing break statement to generated code.
20626
20627 2003-01-21  Roger Sayle  <roger@eyesopen.com>
20628
20629         * stmt.c (same_case_target_p): New function to determine whether
20630         two case labels branch to the same target.  Split out from...
20631         (group_case_nodes): ... here.  Use same_case_target_p instead.
20632         (strip_default_case_nodes): Remove explicit case nodes
20633         that branch to the default destination.
20634         (expand_end_case_type): Call strip_default_case_nodes after
20635         group_case_nodes, to simplify the case-list before we count it.
20636         Only generate table_label RTX when actually needed.  Try to share
20637         thiscase->exit_label and thiscase->data.case_stmt.default_label
20638         when a switch has no explicit default case.  Simplify test for
20639         constant index.
20640
20641 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
20642
20643         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
20644         \t.
20645         (*negsf2_h8300hs): Likewise.
20646         (*addsi3_lshiftrt_16_zexthi): Likewise.
20647         (*iorhi3_lshiftrt_8): Likewise.
20648
20649 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
20650
20651         * dwarf2out.c (fde_table_in_use): Mark GTY.
20652         (dwarf2out_cfi_label_num): New variable, marked GTY.
20653         (dwarf2out_cfi_label): Use it instead of static label_num.
20654         * emit-rtl.c (label_num): Mark GTY.
20655
20656 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
20657
20658         * config/h8300/h8300.c (output_plussi): Support H8/300.
20659         (compute_plussi_length): Likewise.
20660         (compute_plussi_cc): Likewise.
20661         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
20662         output assembly instructions.
20663
20664 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20665
20666         * calls.c (fix_unsafe_tree): Prototype.
20667
20668         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
20669         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
20670         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
20671         c-parse.o-warn): Add -Wno-error.
20672         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
20673
20674         * configure.in (--enable-werror): Add new flag.
20675         * doc/install.texi (--enable-werror): Document.
20676         * configure: Regenerate.
20677
20678         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
20679
20680 2003-01-21  Andreas Schwab  <schwab@suse.de>
20681
20682         * genautomata.c (output_internal_insn_latency_func): Fix missing
20683         close paren in output.
20684
20685 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
20686
20687         * genautomata.c: Space savings in generated code:
20688         (output_dfa_insn_code_func): Split out the table-enlargement
20689         path to an out-of-line static function, dfa_insn_code_enlarge.
20690         (output_internal_insn_latency_func): Use a lookup table for the
20691         default latencies.
20692         (output_print_reservation_func): Use a lookup table for the
20693         strings.
20694
20695 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
20696
20697         PR opt/7507
20698         * calls.c (fix_unsafe_tree): Split out from ...
20699         (expand_call): ... here.  Use it on the function address too.
20700
20701 2003-01-20  Richard Henderson  <rth@redhat.com>
20702
20703         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
20704
20705 2003-01-20  Richard Henderson  <rth@redhat.com>
20706
20707         PR opt/7154
20708         * stmt.c (expand_asm_operands): Validize memory operands.
20709
20710 2003-01-20  Richard Henderson  <rth@redhat.com>
20711
20712         PR opt/8848
20713         * ifcvt.c (noce_process_if_block): Correct arguments to
20714         modified_between_p for no-else-block case.
20715
20716 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
20717
20718         * config/h8300/h8300.c (const_costs): Remove a warning.
20719         (output_plussi): Likewise.
20720         (compute_plussi_length): Likewise.
20721         (compute_plussi_cc): Likewise.
20722
20723 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
20724
20725         * config/h8300/h8300.md (addsi_h8300): Remove the last
20726         alternative.
20727
20728 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
20729
20730         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
20731
20732 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20733
20734         * system.h (__NO_STRING_INLINES): Define.
20735
20736 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20737
20738         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
20739         is not a scalar int mode.
20740
20741 2003-01-20  Roger Sayle  <roger@eyesopen.com>
20742
20743         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
20744         insn's notes following a substitution inside a libcall.
20745
20746 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
20747
20748         * configure.in: Check for system-provided 'uchar' type.
20749         * configure, config.in: Regenerate.
20750         * cpphash.h: Only typedef 'uchar' if the system doesn't.
20751
20752 2003-01-20  Richard Henderson  <rth@redhat.com>
20753
20754         * expr.h (MUST_PASS_IN_STACK): Move implementation...
20755         * calls.c (default_must_pass_in_stack): ... here.
20756
20757 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
20758
20759         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
20760
20761         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
20762
20763         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
20764         Wrap up definition of `insn_alts'.
20765
20766         * genattrtab.c (main): Wrap up `insn_alts'.
20767
20768 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20769
20770         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
20771         prototyping.
20772         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
20773
20774         * config.in, configure: Regenerate.
20775
20776 2003-01-20  Nick Clifton  <nickc@redhat.com>
20777
20778         * config/arm/arm.md (sibcall_epilogue): Add an
20779         UNSPEC_PROLOGUE_USE to prevent the link register from being
20780         considered dead.
20781
20782 2003-01-20  Jan Hubicka  <jh@suse.cz>
20783
20784         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
20785
20786 2003-01-20  Andreas Schwab  <schwab@suse.de>
20787
20788         * system.h: Don't declare strsignal if the decl test hasn't been
20789         run yet.
20790
20791 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
20792
20793         * config/h8300/h8300.c (notice_update_cc): Don't assume that
20794         recog_data.operands[0] is always associated with cc0.
20795
20796 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
20797
20798         * collect2.c (ldgetname): Expand declaration to prototype.
20799         * read-rtl.c (atoll): Add prototype.
20800         * system.h (strsignal): Also declare if no declaration found.
20801
20802 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
20803
20804         * config.gcc (mips64*-*-linux*): Added.
20805         * config/mips/linux64.h, config/mips/t-linux64: New file.
20806         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
20807         * config/mips/mips.c (override_options): Use it.
20808         * config/mips/mips.h (TARGET_SWITCHES): Added...
20809         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
20810         * Makefile.in (SPECS): New.
20811         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
20812         * gcc.c (process_command): Move self-spec processing past spec
20813         file loading.
20814         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
20815         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
20816         CRTSTUFF_T_CFLAGS.
20817         (SPECS): Document.
20818         * doc/invoke.texi (-mabi-fake-default): Document.
20819
20820 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
20821
20822         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
20823         z_reg, z_reg_qi): Declare static and GTY().
20824         (da_reg): Remove.
20825         (create_regs_rtx): Don't create da_reg.
20826         ("gt-m68hc11.h"): Include for GTY roots.
20827         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
20828         and GTY() here.
20829         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
20830         (m68hc11_soft_tmp_reg): Likewise.
20831         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
20832
20833 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
20834
20835         * basic-block.h: Fix comment formatting.
20836         * calls.c: Likewise.
20837         * combine.c: Likewise.
20838         * convert.c: Likewise.
20839         * gcov.c: Likewise.
20840         * haifa-sched.c: Likewise.
20841         * libgcc2.c: Likewise.
20842         * loop.c: Likewise.
20843         * profile.c: Likewise.
20844         * system.h: Likewise.
20845
20846 2003-01-18  Roger Sayle  <roger@eyesopen.com>
20847
20848         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
20849
20850 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20851
20852         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
20853
20854 2003-01-17  Dale Johannesen  <dalej@apple.com>
20855
20856         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
20857           (*floatunssidf2_internal):  Ditto.
20858
20859 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
20860
20861         * alias.c: Fix comment typos.
20862         * basic-block.h: Likewise.
20863         * c-common.c: Likewise.
20864         * c-common.h: Likewise.
20865         * c-decl.c: Likewise.
20866         * c-opts.c: Likewise.
20867         * c-pragma.c: Likewise.
20868         * c-pretty-print.h: Likewise.
20869         * cfg.c: Likewise.
20870         * cfganal.c: Likewise.
20871         * cfgbuild.c: Likewise.
20872         * cfgcleanup.c: Likewise.
20873         * cfglayout.c: Likewise.
20874         * cfgrtl.c: Likewise.
20875         * convert.c: Likewise.
20876         * cpphash.h: Likewise.
20877         * cpplex.c: Likewise.
20878         * cpplib.h: Likewise.
20879         * df.h: Likewise.
20880         * diagnostic.c: Likewise.
20881         * diagnostic.h: Likewise.
20882         * dwarf2.h: Likewise.
20883
20884 2003-01-17  Stan Shebs  <shebs@apple.com>
20885
20886         * config/darwin-protos.h: Forward-declare struct cpp_reader.
20887
20888 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
20889
20890         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
20891         mistake in last checkin.
20892
20893 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
20894
20895         * et-forest.c: Fix comment typos.
20896         * et-forest.h: Likewise.
20897         * except.c: Likewise.
20898         * expr.c: Likewise.
20899         * flags.h: Likewise.
20900         * flow.c: Likewise.
20901         * gcc.c: Likewise.
20902         * gcse.c: Likewise.
20903         * genattrtab.c: Likewise.
20904         * genautomata.c: Likewise.
20905         * gengtype.c: Likewise.
20906         * genrecog.c: Likewise.
20907         * global.c: Likewise.
20908         * gthr-rtems.h: Likewise.
20909
20910 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20911
20912         * i386.c (x86_function_profiler): Fix format specifier.
20913
20914 2003-01-17  Richard Henderson  <rth@redhat.com>
20915
20916         * gengtype.c (walk_type): Allow paramN_is.
20917
20918 2003-01-17  Nick Clifton  <nickc@redhat.com>
20919
20920         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
20921
20922 2003-01-16  Richard Henderson  <rth@redhat.com>
20923
20924         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
20925
20926 2003-01-16  Richard Henderson  <rth@redhat.com>
20927
20928         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
20929         (alpha_next_sequence_number): Likewise.
20930         (alpha_this_literal_sequence_number): Likewise.
20931         (alpha_this_gpdisp_sequence_number): Likewise.
20932         (struct alpha_funcs, alpha_funcs_num): Likewise.
20933         (struct alpha_links): Fix branch merge error.
20934         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
20935
20936 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
20937
20938         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
20939         R. Ghazi.
20940
20941 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
20942
20943         * ifcvt.c: Fix comment typos.
20944         * lcm.c: Likewise.
20945         * libgcc2.c: Likewise.
20946         * local-alloc.c: Likewise.
20947         * loop.c: Likewise.
20948         * predict.c: Likewise.
20949         * ra-build.c: Likewise.
20950         * ra.c: Likewise.
20951         * ra-colorize.c: Likewise.
20952         * ra.h: Likewise.
20953         * ra-rewrite.c: Likewise.
20954         * regmove.c: Likewise.
20955         * reload.h: Likewise.
20956         * rtlanal.c: Likewise.
20957         * toplev.c: Likewise.
20958         * tree.h: Likewise.
20959         * unwind-dw2-fde-glibc.c: Likewise.
20960         * vmsdbgout.c: Likewise.
20961
20962 2003-01-16  Richard Henderson  <rth@redhat.com>
20963
20964         * dwarf2out.c (struct file_table): Remove.
20965         (FILE_TABLE_INCREMENT): Remove.
20966         (file_table): Make a varray; mark for GC.  Update all users.
20967         (file_table_last_lookup_index): Extract from struct file_table.
20968         (output_file_names): Fix unsigned compare warnings.
20969         (add_name_attribute): Remove inline marker.
20970         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
20971         (lookup_filename): Don't manage size of file_table.
20972         (init_file_table): Allocate file_table with GC.
20973         (dwarf2out_init): Don't record main_input_filename here.
20974         (dwarf2out_finish): Do it here instead.
20975
20976 2003-01-16  Bruce Korb  <bkorb@gnu.org>
20977
20978         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
20979
20980 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
20981
20982         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
20983         instead of rotldi3_mextr.
20984
20985 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
20986
20987         * haifa-sched.c (move_insn): Restore moving all schedule group.
20988         (set_priorities): Restore taking SCHED_GROUP_P into account.
20989
20990         * sched-deps.c (add_dependence): Restore processing the last group
20991         insn.
20992         (remove_dependence, group_leader): Restore the functions.
20993         (set_sched_group_p): Restore adding dependencies from previous insn
20994         in the group.
20995         (compute_forward_dependences): Restore usage of group_leader.
20996
20997         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
20998         account.
20999
21000         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
21001         account.
21002         (can_schedule_ready_p): Ditto.
21003         (add_branch_dependences): Restore skipping over the group insns.
21004
21005 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21006
21007         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
21008         68HC12 pre/post inc/dec side effects.
21009
21010 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21011
21012         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
21013
21014 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
21015
21016         * sh.md (mshflo_w_x): Fix description of operation.
21017
21018 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
21019
21020         * config/rs6000/rs6000.h: Mention Altivec registers in
21021         commentary.  Fix typo.
21022
21023 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
21024
21025         * config/rs6000/rs6000.md (movti_string): Remove clobber.
21026         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
21027         generate PARALLEL with clobber for TARGET_POWER.
21028
21029 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21030
21031         * ra-colorize.c (colorize_one_web): Initialize variable.
21032         * regmove.c (fixup_match_1): Likewise.
21033         * reload1.c (reload_as_needed): Likewise.
21034         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
21035
21036 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
21037
21038         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
21039
21040 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21041
21042         * dbxout.c (lastfile, cwd): Fix `unused' warning.
21043         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
21044         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
21045         is_main_source, file_table, decl_die_table_in_use,
21046         abbrev_die_table_in_use, line_info_table_in_use,
21047         separate_line_info_table_in_use, pubname_table_in_use,
21048         arange_table_in_use, ranges_table_in_use,
21049         current_function_has_inlines): Likewise.
21050         * flow.c (life_analysis): Likewise.
21051         * genemit.c (gen_insn): Likewise.
21052         * protoize.c (cplus_suffix): Likewise.
21053
21054         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
21055         * arm.h (ROUND_UP_WORD): Likewise.
21056
21057         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
21058         warning.
21059         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
21060         init_emit_once): Likewise.
21061         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
21062         Likewise.
21063         * function.c (assign_stack_temp_for_type): Likewise.
21064         * loop.c (loop_invariant_p): Likewise.
21065         * recog.c (push_operand): Likewise.
21066         * regclass.c (init_reg_sets_1): Likewise.
21067         * reload.c (update_auto_inc_notes): Likewise.
21068         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
21069         * stmt.c (expand_asm_operands): Likewise.
21070         * stor-layout.c (start_record_layout): Likewise.
21071
21072 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
21073
21074         * config/c4x/c4x.md (epilogue): Correct last patch.
21075
21076 2003-01-15  Richard Henderson  <rth@redhat.com>
21077
21078         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
21079         also check that GP is being used.
21080         (alpha_find_lo_sum_using_gp): New.
21081         (alpha_does_function_need_gp): Use get_attr_usegp.
21082         * config/alpha/alpha-protos.h: Update.
21083         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
21084         as needed.
21085
21086 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21087
21088         * gcse.c (one_cprop_pass): Change function arguments to take both
21089         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
21090         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
21091         (bypass_jumps): New function to perform separate jump bypassing pass.
21092         * rtl.h (bypass_jumps): Add function prototype.
21093         * timevar.def (TV_BYPASS): New timing variable.
21094         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
21095         (dump_file): New entry for the bypass RTL dump file.
21096         (rest_of_compilation): Insert new jump bypassing optimization
21097         pass after loop.
21098         * doc/passes.texi: Document new pass.
21099
21100 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21101
21102         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
21103         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
21104         * pa.h (TARGET_SOM_SDEF): Define.
21105         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
21106
21107 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21108
21109         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
21110         allocate 4-bytes of locals on 68HC11.
21111         (expand_epilogue): Likewise.
21112         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
21113
21114 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
21115
21116         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
21117         and -mshort-double to the assembler to specify the ABI.
21118         (LINK_SPEC): Likewise.
21119         (CPP_SPEC): Pass HCS12 specific define.
21120         (MASK_M68S12): New define.
21121         (TARGET_M68S12): Likewise.
21122         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
21123         (TARGET_VERSION): Update.
21124         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
21125         (LINK_SPEC): Update.
21126         (ASM_SPEC): Update.
21127         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
21128         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
21129
21130 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
21131
21132         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
21133         the return code.
21134
21135 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
21136
21137         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
21138         flag before setting it.
21139
21140 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21141
21142         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
21143         when loop condition is known true, i.e.  "while (1) { ... }".
21144         (genrtl_for_stmt): Similarly for "for" statements.
21145
21146 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21147
21148         * real.c (real_sqrt): Return a bool result indicating whether
21149         a floating point exception or trap should be raised.
21150         * real.h (real_sqrt): Update function prototype.
21151         * builtins.c (fold_builtin): Only fold non-trapping square
21152         roots unless we're ignoring errno and trapping math.
21153
21154 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
21155
21156         * expr.h (emit_conditional_add): Add PARAMS to declaration.
21157         * gengtype-lex.l (malloc, realloc): Move defines after include of
21158         system.h.  Remove duplicate include of system.h.
21159
21160 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21161
21162         PR middle-end/9009
21163         * optabs.c (expand_unop):  When manipulating the FP sign bit
21164         using integer operations, account for targets with different
21165         integer and FP word orders.
21166         (expand_abs): Likewise.
21167
21168 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
21169
21170         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
21171         file extension in section name.
21172
21173 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
21174
21175         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
21176         constant offset.
21177
21178 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
21179
21180         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
21181         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
21182         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
21183         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
21184
21185 2003-01-15  Jan Hubicka  <jh@suse.cz>
21186
21187         PR f/9258
21188         * global.c (struct allocno): Add no_stack_reg.
21189         (global_conflicts): Set no_stack_reg.
21190         (find_reg): Use it.
21191
21192         * convert.c (convert_to_real): Fold - and abs only when profitable.
21193         * fold-const.c (fold): Fold truncates in - and abs.
21194
21195 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
21196
21197         Segher Boessenkool  <segher@koffie.nl>
21198
21199         * predict.c (real_inv_br_prob_base): New variable.
21200         (propagate_freq): Use multiply by reciprocal instead of
21201         division.  Don't divide by 1.0 at all.
21202         (estimate_bb_frequencies): Similar.
21203
21204 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
21205
21206         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
21207         * configure: Rebuilt.
21208
21209 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
21210
21211         * config/s390/s390.c (s390_safe_attr_type): New function.
21212         (s390_use_dfa_pipeline_interface): New function, return true for z900.
21213         (s390_issue_rate): New function.
21214         (s390_agen_dep_p): New function.
21215         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
21216         (s390_adjust_cost): Return 'cost' if new DFA is used.
21217         (s390_adjust_priority): Delete function.
21218         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
21219         * config/s390/s390.md (atype attribute): Attribute 'atype' default
21220         determined by 'op_type'.
21221         (type attribute): Added more type attributes.
21222         * config/s390/2064.md: New DFA description for z900 pipeline.
21223
21224 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
21225
21226         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
21227         forced to memory.  Fixes PR bootstrap/9036.
21228
21229         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
21230         to set $gp before the call.
21231
21232 2003-01-14  Richard Henderson  <rth@redhat.com>
21233
21234         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
21235         for force_const_mem.
21236
21237 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21238
21239         * genattr.c (main): Rearrange output to avoid prototype warning.
21240         * genautomata.c (transform_3): Fix ambiguous-else warning.
21241         * local-alloc.c (requires_inout): Add parentheses around
21242         assignment used as truth-value.
21243         * timevar.c: Move system includes above local includes.  Include
21244         toplev.h
21245         * Makefile.in (timevar.o): Depend on toplev.h.
21246
21247 2003-01-14  Denis Chertykov  <denisc@overta.ru>
21248
21249         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
21250         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
21251
21252         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
21253         attributes.
21254         (TARGET_ATTRIBUTE_TABLE): New macro.
21255         (valid_machine_type_attribute): Remove.
21256         (valid_machine_decl_attribute): Remove.
21257         (ip2k_handle_progmem_attribute): New function.
21258         (ip2k_handle_fndecl_attribute): New function.
21259
21260 2003-01-10  Andrew Haley  <aph@redhat.com>
21261
21262         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
21263         registers to be in correct order.  Add rip.
21264
21265 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
21266
21267         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
21268         (*iorsi3_and_lshiftrt_9_sb): Likewise.
21269
21270 2003-01-14  Jan Hubicka  <jh@suse.cz>
21271
21272         * convert.c (strip_float_extensions):  Look for narrowest type handling
21273         FP constants.
21274
21275         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
21276         float1 CMP float2.
21277         * convert.c (strip_float_extensions): Make global.
21278         * tree.h (strip_float_extensions): Declare.
21279
21280 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21281
21282         * timevar.def: define TV_NAME_LOOKUP.
21283         * timevar.c (timevar_pop): Be verbose when aborting.
21284
21285 2003-01-13  Andreas Schwab  <schwab@suse.de>
21286
21287         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
21288         $(parsedir), just move the temporary file at the end.
21289         ($(parsedir)/gengtype-yacc.c): Likewise.
21290
21291 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
21292
21293         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
21294         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
21295         splitting.
21296         * configure: Rebuilt.
21297
21298 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21299
21300         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
21301         internal_mcount): Don't use PARAMS.
21302         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
21303         ISO C style.
21304         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
21305
21306 2003-01-13  Andreas Schwab  <schwab@suse.de>
21307
21308         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
21309         directive.
21310
21311 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
21312
21313         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
21314         (*iorsi3_and_lshiftrt_n_sb): Likewise.
21315
21316 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
21317
21318         PR c++/9264
21319         * c-lex.c (c_lex): Set the token value to error_mark_node for
21320         invalid numeric constants.
21321
21322 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21323
21324         * c-pch.c (asm_file_startpos): Change to `long'.
21325         (pch_init): Use ftell, not ftello.
21326         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
21327         Use `long' instead of `off_t'.
21328         (c_common_read_pch): Likewise.
21329         * ggc-common.c (gt_pch_save): Use long/ftell instead of
21330         off_t/ftello.
21331
21332 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
21333
21334         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
21335
21336 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
21337
21338         * arm-protos.h (struct cpp_reader): Add declaration.
21339
21340 2003-01-11  Jan Hubicka  <jh@suse.cz>
21341
21342         PR target/9068
21343         * i386.c (output_fp_compare): Fix typo.
21344
21345 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
21346
21347         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
21348
21349 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
21350
21351         * Makefile.in (parsedir): New variable.
21352         (docobjdir): New variable.
21353         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
21354         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
21355         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
21356         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
21357         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
21358         Use docobjdir.
21359         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
21360         objc.maintainer-clean): Use parsedir.
21361
21362         * varasm.c (struct constant_descriptor_rtx): Remove unused
21363         `label' field.
21364
21365         * toplev.c (documented_lang_options): Document -Winvalid-pch.
21366
21367 2003-01-10  Richard Henderson  <rth@redhat.com>
21368
21369         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
21370         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
21371
21372 2003-01-10  Richard Henderson  <rth@redhat.com>
21373
21374         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
21375         not INTEGRAL_MODE_P when widening extensions.
21376
21377 2003-01-10  Richard Henderson  <rth@redhat.com>
21378
21379         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
21380
21381 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
21382
21383         * ggc-page.c (ggc_collect): Avoid overflow computing
21384         min_expand.
21385
21386         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
21387         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
21388         Remove calls.
21389         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
21390
21391 2003-01-10  Jan Hubicka  <jh@suse.cz>
21392
21393         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
21394         with weird operands.
21395
21396 2003-01-10  Dale Johannesen <dalej@apple.com>
21397
21398         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
21399         parameters.  Call check_sibcall_argument_overlap if indicated.
21400         (check_sibcall_argument_overlap):  Add mark_stored_args_map
21401         parameter.  Don't mark parameter area as clobbered if not set.
21402         (expand_call):  Adjust calls to above.
21403
21404 2003-01-10 Kelley Cook <kelleycook@comcast.net>
21405
21406         * configure.in (linker read-only and read-write section mixing):
21407         Squelch some assembler warnings.
21408         * configure: Likewise.
21409
21410 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
21411
21412         * doc/invoke.texi: Document -mtune, delete -mcpu
21413         option for S/390 and zSeries.
21414         * config/s390/s390.c (s390_tune_string) New variable.
21415         (s390_cpu_string) Delete variable.
21416         (override_options): Use s390_tune_string instead of
21417         s390_cpu_string.
21418         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
21419
21420 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
21421
21422         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
21423
21424 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
21425
21426         * jump.c (next_nonnote_insn_in_loop): New function.
21427         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
21428         next_nonnote_insn.
21429         (duplicate_loop_exit_test). Likewise.
21430
21431 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
21432
21433         Merge from pch-branch:
21434
21435         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
21436
21437         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
21438         load.
21439
21440         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
21441
21442         * cpplib.c (count_registered_pragmas): New function.
21443         (save_registered_pragmas): New function.
21444         (_cpp_save_pragma_names): New function.
21445         (restore_registered_pragmas): New function.
21446         (_cpp_restore_pragma_names): New function.
21447         * cpphash.h (_cpp_save_pragma_names): Prototype.
21448         (_cpp_restore_pragma_names): Likewise.
21449         * cpppch.c (struct save_macro_item): Split from save_macro_data.
21450         (struct save_macro_data): New field 'saved_pragmas'.
21451         (save_macros): Update for changes to struct save_macro_data.
21452         (cpp_prepare_state): Call _cpp_save_pragma_names, update
21453         for changes to struct save_macro_data.
21454         (cpp_read_state): Call _cpp_restore_pragma_names, update
21455         for changes to struct save_macro_data.
21456
21457         * cpppch.c (cpp_read_state): Restore the hashtable references
21458         in the cpp_reader.
21459
21460         * tree.h (built_in_decls): Mark for PCH.
21461
21462         * dbxout.c (lastfile): Don't mark for PCH.
21463
21464         * ggc.h: Document PCH calls into memory managers.
21465
21466         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
21467
21468         * doc/invoke.texi (Precompiled Headers): Document the
21469         directory form of PCH.
21470         * cppfiles.c (validate_pch): New function.
21471         (open_file_pch): Search suitably-named directories for PCH files.
21472
21473         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
21474
21475         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
21476         reorder options.
21477         (Type Information): Mention that the information is also
21478         used to implement PCH.
21479         * doc/passes.texi (Passes): Improve documentation of
21480         language-specific files.
21481
21482         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
21483
21484         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
21485         (struct walk_type_data): Add reorder_fn field.
21486         (walk_type): Process 'reorder' option.
21487         (write_types_process_field): Reorder parameters to gt_pch_note_object,
21488         call reorder_note_routine.
21489         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
21490         (ggc_wtd): Update for change to struct write_types_data.
21491         (pch_wtd): Likewise.
21492         * ggc.h (gt_pch_note_object): Reorder parameters.
21493         (gt_handle_reorder): New definition.
21494         (gt_pch_note_reorder): New prototype.
21495         * ggc-common.c (struct ptr_data): Add reorder_fn.
21496         (gt_pch_note_object): Reorder parameters.
21497         (gt_pch_note_reorder): New.
21498         (gt_pch_save): Call reorder_fn.
21499         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
21500
21501         * dbxout.c (cwd): Don't mark for PCH.
21502
21503         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
21504
21505         * gengtype.c (finish_root_table): Fix some warnings.
21506         (write_root): Handle TYPE_STRING.
21507         * ggc.h (gt_ggc_m_S): Add prototype.
21508         * stringpool.c (gt_ggc_m_S): New function.
21509
21510         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
21511
21512         * dwarf2out.c (dw2_string_counter): New.
21513         (AT_string_form): Use it.
21514         (same_dw_val_p): Update for removal of hashtable.h hash tables.
21515
21516         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
21517
21518         * dbxout.c: Include gt-dbxout.h.
21519         (lastfile): Mark for PCH/GGC.
21520         (cwd): Likewise.
21521         (struct typeinfo): Likewise.
21522         (typevec): Likewise.
21523         (typevec_len): Likewise.
21524         (next_type_number): Likewise.
21525         (struct dbx_file): Likewise.
21526         (current_file): Likewise.
21527         (next_file_number): Likewise.
21528         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
21529         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
21530         (dbxout_end_source_file): Don't free struct dbx_file.
21531         (dbxout_type): Use GGC to allocate typevec.
21532         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
21533         (GTFILES): Add dbxout.c.
21534         (gt-dbxout.h): New rule.
21535
21536         * Makefile.in (c-pch.o): Add debug.h as dependency.
21537         * c-pch.c: Include debug.h.
21538         (pch_init): Call start_source_file to keep nesting right.
21539         (c_common_read_pch): Add orig_name parameter.  Call
21540         start_source_file debug hook.  Call end_source_file debug hook.
21541         * c-common.h (c_common_read_pch): Update prototype.
21542         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
21543         callback.
21544         * cppfiles.c (struct include_file): Add new field `header_name'.
21545         (find_or_create_entry): Default it to `name'.
21546         (open_file_pch): Set it to the original header file searched for.
21547         (stack_include_file): Don't stack an empty buffer, just handle
21548         PCH files immediately.  Pass header_name field to read_pch callback.
21549
21550         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
21551
21552         * function.c (funcdef_no): Mark to be saved in a PCH.
21553
21554         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
21555
21556         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
21557
21558         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
21559
21560         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
21561
21562         * optabs.h (code_to_optab): Add GTY marker.
21563
21564         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
21565
21566         * Makefile.in (GTFILES): Add cpplib.h.
21567         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
21568         * c-decl.c (build_compound_literal): Don't use var_labelno.
21569         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
21570         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
21571         * varasm.c (const_labelno): Use gengtype to mark.
21572         (var_labelno): Likewise.
21573         (in_section): Likewise.
21574         (in_named_name): Likewise.
21575         (struct in_named_entry): Likewise.
21576         (in_named_htab): Likewise.
21577         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
21578         (init_varasm_once): Use GGC to allocate in_named_htab.
21579         * config/darwin.c (current_pic_label_num): Mark for PCH.
21580
21581         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
21582
21583         * ggc-simple.c (init_ggc_pch): New stub procedure.
21584         (ggc_pch_count_object): Likewise.
21585         (ggc_pch_total_size): Likewise.
21586         (ggc_pch_this_base): Likewise.
21587         (ggc_pch_alloc_object): Likewise.
21588         (ggc_pch_prepare_write): Likewise.
21589         (ggc_pch_write_object): Likewise
21590         (ggc_pch_finish): Likewise.
21591         (ggc_pch_read): Likewise.
21592
21593         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
21594
21595         * c-pch.c (c_common_write_pch): Write the macro definitions after
21596         the GCed data.
21597         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
21598         definitions after the GCed data.
21599         * cpplib.c (save_macros): New.
21600         (reset_ht): New.
21601         (cpp_write_pch_deps): Split out of cpp_write_pch.
21602         (cpp_write_pch_state): Split out of cpp_write_pch.
21603         (cpp_write_pch): Delete.
21604         (struct save_macro_data): Delete.
21605         (cpp_prepare_state): New.
21606         (cpp_read_state): Erase and restore initial macro definitions.
21607         * cpplib.h (struct save_macro_data): Forward-declare.
21608         (cpp_write_pch_deps): Prototype.
21609         (cpp_write_pch_state): Prototype.
21610         (cpp_write_pch): Delete prototype.
21611         (cpp_prepare_state): Prototype.
21612         (cpp_read_state): Add fourth argument.
21613
21614         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
21615
21616         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
21617         (write_array): Remove warning.
21618
21619         * gengtype.c (contains_scalar_p): New.
21620         (finish_root_table): Add the table to all languages, even if it's
21621         empty.
21622         (write_roots): Output gt_pch_scalar_rtab.
21623         * ggc-common.c (gt_pch_save): Write out scalars.
21624         (gt_pch_restore): Read scalars back.
21625
21626         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
21627         (struct page_entry): Delete pch_page field.
21628         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
21629         (clear_marks): Likewise.
21630         (sweep_pages): Likewise.
21631         (poison_pages): Likewise.
21632         (ggc_print_statistics): Likewise.
21633         (ggc_pch_read): Don't free objects read from a PCH.
21634         Properly set up in_use_p and page_tails.
21635
21636         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
21637
21638         * gengtype.c (struct write_types_data): New.
21639         (struct walk_type_data): Make `cookie' const; add extra
21640         prev_val item; add `orig_s' field.
21641         (walk_type): Update prev_val[3].
21642         (write_types_process_field): New.
21643         (write_func_for_structure): Take write_types_data structure.
21644         (write_types): New.
21645         (ggc_wtd): New.
21646         (pch_wtd): New.
21647         (write_types_local_process_field): New.
21648         (gc_mark_process_field): Delete.
21649         (write_local_func_for_structure): New.
21650         (gc_mark_func_name): Delete.
21651         (write_gc_types): Delete.
21652         (write_local): New.
21653         (finish_root_table): Don't include 'ggc_' in PFX.
21654         (write_root): Rename from write_root.  Fill pchw field of structures.
21655         (write_array): New.
21656         (write_roots): Rename from write_gc_roots.  Split out to write_array.
21657         Update to changes to other routines.  Write gt_pch_cache_rtab table.
21658         (main): Write PCH walking routines.
21659         * ggc-common.c: Include toplev.h, sys/mman.h.
21660         (ggc_mark_roots): For cache hashtables, also mark the hash table
21661         and the array of entries.
21662         (saving_htab): New.
21663         (struct ptr_data): New.
21664         (POINTER_HASH): New.
21665         (gt_pch_note_object): New.
21666         (saving_htab_hash): New.
21667         (saving_htab_eq): New.
21668         (struct traversal_state): New.
21669         (call_count): New.
21670         (call_alloc): New.
21671         (compare_ptr_data): New.
21672         (relocate_ptrs): New.
21673         (write_pch_globals): New.
21674         (struct mmap_info): New.
21675         (gt_pch_save): New.
21676         (gt_pch_restore): New.
21677         * ggc-page.c (ROUND_UP_VALUE): New.
21678         (ROUND_UP): New.
21679         (struct page_entry): Add field `pch_page'.
21680         (init_ggc): Use ROUND_UP.
21681         (struct ggc_pch_data): Declare.
21682         (init_ggc_pch): New.
21683         (ggc_pch_count_object): New.
21684         (ggc_pch_total_size): New.
21685         (ggc_pch_this_base): New.
21686         (ggc_pch_alloc_object): New.
21687         (ggc_pch_prepare_write): New.
21688         (ggc_pch_write_object): New.
21689         (ggc_pch_finish): New.
21690         (ggc_pch_read): New.
21691         * ggc.h (gt_pointer_operator): New.
21692         (gt_note_pointers): New.
21693         (gt_pch_note_object): New prototype.
21694         (gt_pointer_walker): New.
21695         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
21696         (LAST_GGC_ROOT_TAB): Update.
21697         (gt_pch_cache_rtab): Declare.
21698         (gt_pch_scalar_rtab): Declare.
21699         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
21700         (LAST_GGC_CACHE_TAB): Update.
21701         (gt_pch_save_stringpool): Declare.
21702         (gt_pch_restore_stringpool): Declare.
21703         (gt_pch_p_S): Declare.
21704         (gt_pch_n_S): Declare.
21705         (struct ggc_pch_data): Forward-declare.
21706         (init_ggc_pch): Declare.
21707         (ggc_pch_count_object): Declare.
21708         (ggc_pch_total_size): Declare.
21709         (ggc_pch_this_base): Declare.
21710         (ggc_pch_alloc_object): Declare.
21711         (ggc_pch_prepare_write): Declare.
21712         (ggc_pch_write_object): Declare.
21713         (ggc_pch_finish): Declare.
21714         (ggc_pch_read): Declare.
21715         (gt_pch_save): Declare.
21716         (gt_pch_restore): Declare.
21717         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
21718         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
21719         const_double_htab, mem_attrs_htab using GGC.
21720         * c-pch.c: Include ggc.h.
21721         (pch_init): Allow reading PCH file back.
21722         (c_common_write_pch): Call gt_pch_save.
21723         (c_common_read_pch): Call gt_pch_restore.
21724         * c-parse.in (init_reswords): Delete now-untrue comment.
21725         Allocate ridpointers using GGC.
21726         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
21727         calling expand_deferred_fns.
21728         * c-common.h (ridpointers): Mark for GTY machinery.
21729         * Makefile.in (stringpool.o): Update dependencies.
21730         (c-pch.o): Update dependencies.
21731         (ggc-common.o): Update dependencies.
21732         * stringpool.c: Include gt-stringpool.h.
21733         (gt_pch_p_S): New.
21734         (gt_pch_n_S): New.
21735         (struct string_pool_data): New.
21736         (spd): New.
21737         (gt_pch_save_stringpool): New.
21738         (gt_pch_restore_stringpool): New.
21739         * tree.c (init_ttree): Make type_hash_table allocated using GC.
21740
21741         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
21742
21743         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
21744         (output_mangled_typename): Don't pass size_t to printf.
21745
21746         * tree.h (union tree_type_symtab): Add tag to `address' field.
21747         (union tree_decl_u2): Add tag to 'i' field.
21748         * varasm.c (union rtx_const_un): Add tags to all fields.
21749         * gengtype.c (struct walk_type_data): New.
21750         (output_escaped_param): Take struct walk_type_data parameter.
21751         (write_gc_structure_fields): Delete.
21752         (walk_type): New.
21753         (write_gc_marker_routine_for_structure): Delete.
21754         (write_func_for_structure): New.
21755         (gc_mark_process_field): New.
21756         (gc_mark_func_name): New.
21757         (gc_counter): Delete.
21758         (write_gc_types): Use write_func_for_structure.
21759         (write_gc_roots): Use walk_type.
21760
21761         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
21762
21763         * ggc-common.c (ggc_mark_roots): Delete 'x'.
21764         (ggc_splay_dont_free): Fix warning about unused 'x'.
21765         (ggc_print_common_statistics): Remove warnings.
21766
21767         2002-10-01  Mike Stump  <mrs@apple.com>
21768
21769         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
21770         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
21771
21772         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
21773             Catherine Moore  <clm@redhat.com>
21774
21775         * Makefile (c-pch.o): Update dependencies.
21776         (LIBCPP_OBJS): Add cpppch.o.
21777         (cpppch.o): New.
21778         * c-common.c (c_common_init): Don't call pch_init here.
21779         * c-common.h (c_common_read_pch): Update prototype.
21780         * c-lex.c (c_common_parse_file): Call pch_init here.
21781         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
21782         (c_common_decode_option): Handle them.
21783         * c-pch.c: Include c-pragma.h.
21784         (save_asm_offset): Delete.
21785         (pch_init): Move contents of save_asm_offset into here, call
21786         cpp_save_state.
21787         (c_common_write_pch): Call cpp_write_pch.
21788         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
21789         cpp_valid_state.
21790         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
21791         * cppfiles.c (stack_include_file): Update for change to
21792         parameters of cb.read_pch.
21793         * cpphash.h (struct cpp_reader): Add `savedstate' field.
21794         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
21795         `restore_pch_deps' fields.
21796         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
21797         (cpp_save_state): Prototype.
21798         (cpp_write_pch): Prototype.
21799         (cpp_valid_state): Prototype.
21800         (cpp_read_state): Prototype.
21801         * cpppch.c: New file.
21802         * flags.h (version_flag): Remove prototype.
21803         * mkdeps.c (deps_save): New.
21804         (deps_restore): New.
21805         * mkdeps.h (deps_save): Prototype.
21806         (deps_restore): Prototype.
21807         * toplev.c (late_init_hook): Delete.
21808         (version_flag): Make static again.
21809         (compile_file): Don't call late_init_hook.
21810         * toplev.h (late_init_hook): Delete.
21811         * doc/cppopts.texi: Document -fpch-deps.
21812         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
21813
21814         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
21815
21816         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
21817         callers.
21818         (c_common_valid_pch): Rename from c_valid_pch, change callers.
21819         (c_common_read_pch): Rename from c_read_pch, change callers.
21820
21821         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
21822         a space between it and its argument.
21823
21824         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
21825
21826         * c-pch.c: New file.
21827         * toplev.h (late_init_hook): Declare.
21828         * toplev.c (late_init_hook): Define.
21829         (version_flag): Make globally visible.
21830         (compile_file): Call late_init_hook.
21831         (init_asm_output): Make output file seekable.
21832         * gcc.c (default_compilers): Update c-header rule.
21833         * flags.h (version_flag): Declare.
21834         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
21835         fields.
21836         * cppfiles.c (struct include_file): Add 'pch' field.
21837         (INCLUDE_PCH_P): New.
21838         (open_file_pch): New.
21839         (stack_include_file): Handle PCH files specially.
21840         (find_include_file): Call open_file_pch instead of open_file.
21841         (_cpp_read_file): Explain why open_file is used instead of
21842         open_file_pch.
21843         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
21844         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
21845         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
21846         in cpplib callbacks.
21847         * c-common.c (pch_file): Correct comment.
21848         (allow_pch): Define.
21849         (c_common_init): Call pch_init.
21850         * c-common.h (allow_pch): Declare.
21851         (pch_init): Declare.
21852         (c_valid_pch): Declare.
21853         (c_read_pch): Declare.
21854         (c_write_pch): Declare.
21855         * Makefile.in (c-pch.o): New.
21856         (C_AND_OBJC_OBJS): Add c-pch.o.
21857         * doc/invoke.texi (Precompiled Headers): Add index entries,
21858         complete truncated paragraph.
21859
21860         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
21861
21862         * c-common.c: (pch_file): Define.
21863         * c-common.h (pch_file): Declare.
21864         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
21865         (missing_arg): Require --output-pch= to have an argument.
21866         (c_common_decode_option): Handle --output-pch=.
21867         * gcc.c: Document new %V.
21868         (default_compilers): Handle compiling C header files.
21869         (do_spec_1): Implement %V.
21870         (main): Handle "gcc foo.h" without trying to run linker.
21871         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
21872         (Overall Options): Document what the driver does with header files,
21873         document new -x option possibilities.
21874         (Invoking G++): More documentation for PCH.
21875         (Precompiled Headers): New.
21876
21877         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
21878
21879         * ggc.h: Don't include varray.h.  Rearrange functions to be more
21880         organized.
21881         (ggc_add_root): Delete.
21882         (ggc_mark_rtx): Delete.
21883         (ggc_mark_tree): Delete.
21884         (struct ggc_statistics): Remove contents.
21885         * ggc-common.c: Remove unneeded includes.
21886         (struct ggc_root): Delete.
21887         (roots): Delete.
21888         (ggc_add_root): Delete.
21889         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
21890         (ggc_print_common_statistics): Remove most of the contents.
21891         * Makefile.in (GGC_H): No longer uses varray.h.
21892         (ggc-common.o): Update dependencies.
21893         (c-parse.o): Add varray.h to dependencies.
21894         (c-common.o): Add varray.h.
21895         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
21896         (mark_ident_hash): Rename to ggc_mark_stringpool.
21897         (init_stringpool): Don't use ggc_add_root.
21898         * c-parse.in: Include varray.h.
21899         * c-common.c: Include varray.h.
21900         * objc/Make-lang.in (objc-act.o): Add varray.h.
21901         * objc/objc-act.c: Include varray.h.
21902
21903         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
21904
21905         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
21906         (dw_cfi_oprnd1_desc): Likewise.
21907
21908         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
21909
21910         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
21911         move out of ifdef.
21912         (alpha_links): Use gengtype to mark; move out of ifdef.
21913         (mark_alpha_links_node): Delete.
21914         (mark_alpha_links): Delete.
21915         (alpha_need_linkage): Use GGC to allocate splay tree, struct
21916         alpha_links, strings.  Don't use ggc_add_root.
21917         * ggc-common.c (ggc_splay_alloc): New.
21918         (ggc_splay_dont_free): New.
21919         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
21920         (ggc_mark_tree): Likewise.
21921         (splay_tree_new_ggc): New.
21922         (ggc_splay_alloc): Declare.
21923         (ggc_splay_dont_free): Declare.
21924         * dwarf2asm.c: Include gt-dwarf2asm.h.
21925         (mark_indirect_pool_entry): Delete.
21926         (mark_indirect_pool): Delete.
21927         (indirect_pool): Use gengtype to mark.
21928         (dw2_force_const_mem): Don't use ggc_add_root.
21929         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
21930         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
21931         (gt-dwarf2asm.h): Depend on s-gtype.
21932
21933         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
21934
21935         * tree.h (union tree_type_symtab): Mark `die' field.
21936         * Makefile.in (dwarf2out.o): Update dependencies.
21937         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
21938         hash tables.
21939         (dw_cfi_oprnd1_desc): New function.
21940         (dw_cfi_oprnd2_desc): New function.
21941         (indirect_string_alloc): Delete.
21942         (debug_str_do_hash): New function.
21943         (debug_str_eq): New function.
21944         (mark_limbo_die_list): Delete.
21945         (dwarf2out_init): Don't call ggc_add_root.
21946
21947 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
21948
21949         The following changes are merged from itanium-sched-branch:
21950
21951         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
21952
21953         * doc/md.texi: Clarify assignment of units to automata description.
21954
21955         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
21956
21957         * genautomata.c (unit_decl): Remove members
21958         `the_same_automaton_unit' and
21959         `the_same_automaton_message_reported_p'.
21960         (process_unit_to_form_the_same_automaton_unit_lists,
21961         form_the_same_automaton_unit_lists_from_regexp,
21962         form_the_same_automaton_unit_lists, the_same_automaton_lists):
21963         Remove them.
21964         (annotation_message_reported_p): New global variable.
21965         (check_unit_distribution_in_reserv,
21966         check_regexp_units_distribution): New functions.
21967         (check_unit_distributions_to_automata): Rewrite it.
21968
21969         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
21970
21971         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
21972         Use continue instead of break if cycle is too big.
21973
21974         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
21975
21976         * genautomata.c (check_unit_distributions_to_automata): Output at
21977         most one message for a unit.
21978         (process_unit_to_form_the_same_automaton_unit_lists): Check
21979         automaton of units instead of units themself.
21980
21981         * doc/md.texi: Describe the constraint about assigning unit to
21982         automata.
21983
21984         2002-12-20  Jan Hubicka  <jH@suse.cz>
21985                     Vladimir Makarov  <vmakarov@redhat.com>
21986
21987         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
21988         and `in_set_p'.
21989         (gen_cpu_unit): Initialize the new members.
21990         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
21991         up `min_occ_cycle_num'.
21992         (evaluate_max_reserv_cycles): Change the function call.
21993         (CLEAR_BIT): New macro.
21994         (states_union, state_shift): Use the mask.
21995         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
21996         (form_reservs_matter): New function.
21997         (make_automaton): Call the function and use the mask.
21998         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
21999         account.
22000
22001         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22002
22003         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
22004
22005         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22006
22007         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
22008         for Itanium.
22009
22010         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22011
22012         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
22013         default cpu.
22014
22015         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22016                 2002-10-31  Dale Johannesen <dalej@apple.com>
22017
22018         * haifa-sched.c (find_set_reg_weight): New function.
22019         (find_insn_reg_weight): Use the new function.
22020         (schedule_block): Do sorting ready queue always
22021         after insn issue.
22022
22023         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
22024
22025         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
22026
22027         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
22028
22029         * haifa-sched.c (choice_entry): New structure.
22030         (choice_stack, cycle_issued_insns): New variables.
22031         (max_issue): Rewrite it.
22032         (choose_ready): Set up ready_try for unknown insns too.
22033         (schedule_block): Allocate and free choice_stack.  Set up
22034         and modify cycle_issued_insns.
22035
22036         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
22037         with and without filling the bundle.
22038         (bundling): Combine calls of issue_nops_and_insn.
22039
22040         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
22041
22042         * config/ia64/itanium1.md: New file.
22043
22044         * config/ia64/itanium2.md: New file.
22045
22046         * config/ia64/ia64.md: Move DFA descriptions into the new files.
22047         Remove the old pipeline description.
22048
22049         * config/ia64/ia64.c (ia64_override_options): Add aliases of
22050         itanium processor names.
22051
22052         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
22053
22054         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
22055         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
22056
22057         * config/ia64/ia64.md: Add descriptions for Itanium2.
22058
22059         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
22060
22061         * config/ia64/ia64.h (processor_type): New enumeration.
22062         (ia64_tune, ia64_tune_string): New external declarations.
22063         (TARGET_OPTIONS): Add option `tune='.
22064
22065         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
22066         variables.
22067         (ia64_override_options): Set up `ia64_tune'.
22068         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
22069         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
22070         (bundling): Add nops for MM-insns only for Itanium.
22071         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
22072         Itanium.
22073
22074         * config/ia64/ia64.md (cpu): New attribute.
22075         (DFA description): Enable it only for Itanium.
22076
22077         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
22078                     Richard Henderson  <rth@redhat.com>
22079
22080         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
22081         MASK_EARLY_STOP_BITS.
22082         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
22083         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
22084         `early-stop-bits'.
22085
22086         * config/ia64/ia64.c (ia64_dfa_new_cycle,
22087         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
22088         instead of TARGET_TUNE_STOP_BITS.
22089
22090         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
22091         `-mearly-stop-bits'.
22092
22093         * config/ia64/ia64.c (automata_option "v"): Comment it.
22094
22095         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
22096
22097         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
22098         New macros.
22099         (TARGET_SWITCHES): Add entries for the new option.
22100
22101         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
22102         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
22103         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
22104         global variables.
22105         (ia64_sched_reorder2): Set up `clocks'.
22106         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
22107         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
22108         queue when TARGET_TUNE_STOP_BITS.
22109         (bundling): Insert additional nops for MM-insns.
22110         (final_emit_insn_group_barriers): Add insertion of stop bits
22111         according `stops_p'.
22112         (ia64_reorg): Initiate the new varibales.
22113
22114         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
22115
22116         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
22117
22118         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
22119         insns at the end of block insn scheduling.
22120
22121         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
22122
22123         * sched-deps.c (remove_dependence, group_leader): Remove it.
22124         (add_dependence): Add dependence to group leader to.
22125         (set_sched_group_p): Add dependence to the first insn of the
22126         schedule group too.
22127         (sched_analyze_insn): Make dependence to jump as anti-dependence.
22128         Change true dependence by anti-dependence when
22129         `reg_pending_barrier'.
22130
22131         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
22132         add_branch_dependences): Ignore schedule groups.
22133
22134         * sched-ebb.c (init_ready_list): Ditto.
22135
22136         * (move_insn, set_priorities): Ditto.
22137
22138         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
22139         flag is clear after reload.
22140         (adjust_cost): Change cost only for output dependencies.
22141
22142         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
22143
22144         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
22145
22146         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
22147
22148         * target.h (gcc_target): Add member
22149         `dependencies_evaluation_hook'.
22150
22151         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
22152         macro.
22153         (TARGET_SCHED): Add initiatialization of the new member.
22154
22155         * sched-ebb.c: Include `target.h'.
22156         (schedule_ebb): Call `dependencies_evaluation_hook'.
22157
22158         * sched-rgn.c (schedule_region): Call
22159         `dependencies_evaluation_hook'.
22160
22161         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
22162         New macro.
22163         (ia64_dependencies_evaluation_hook): New function.
22164
22165         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
22166         Describe the new hook.
22167
22168         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
22169
22170         * target.h (gcc_target): Add members
22171         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
22172
22173         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
22174         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
22175         macros.
22176         (TARGET_SCHED): Add initiatialization of the new members.
22177
22178         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
22179         insn scheduling too.
22180         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
22181         initialize `ready_try'.
22182         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
22183         `dfa_new_cycle' says not to do it.
22184
22185         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
22186         bundling.
22187
22188         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
22189
22190         * config/ia64/ia64.c: Include `hashtab.h'.
22191         (ia64_first_cycle_multipass_dfa_lookahead_guard,
22192         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
22193         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
22194         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
22195         bundle_state_eq_p, insert_bundle_state,
22196         initiate_bundle_state_table, finish_bundle_state_table,
22197         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
22198         get_template, get_next_important_insn, bundling): New functions.
22199         (ia64_internal_sched_reorder): Remove it.
22200         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
22201         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
22202         (ia64_safe_itanium_requires_unit0): Remove it.
22203         (group_barrier_needed_p): Place group barrier right before a real
22204         insn.
22205         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
22206         Remove them.
22207         (bundle_name): New variable.
22208         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
22209         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
22210         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
22211         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
22212         temp_dfa_state, prev_cycle_state): New global variables.
22213         (insn_matches_slot, maybe_rotate, finish_last_head,
22214         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
22215         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
22216         find_best_packet, itanium_reorder, dump_current_packet,
22217         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
22218         (sched_data, sched_ready, sched_types): Remove them.
22219         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
22220         `init_insn_group_barriers'.
22221         (ia64_sched_reorder, ia64_sched_reorder2): Call
22222         ia64_dfa_sched_reorder.
22223         (ia64_variable_issue): Rewrite it.
22224         (bundle_state): New structure.
22225         (index_to_bundle_states, bundle_states_num,
22226         allocated_bundle_states_chain, free_bundle_state_chain): New
22227         global variables.
22228         (ia64_sched_finish): Add stop bits and call `bundling' after the
22229         2nd insn scheduling.
22230         (ia64_use_dfa_pipeline_interface): Return zero always.
22231         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
22232         insn scheduling.
22233         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
22234         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
22235         (ia64_reorg): Add bundling insns.
22236
22237         * doc/tm.texi
22238         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
22239         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
22240
22241         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
22242
22243         * config/ia64/ia64.md: Add Itanium1 DFA description.
22244         (itanium_class): Add `nop' and `pre_cycle'.  Add
22245         define_function_unit for `nop'.
22246         (nop): Change attribute `itanium_class'.
22247         (pre_cycle): New define_insn.
22248
22249         * config/ia64/ia64-protos.h (bundling_p): New external variable.
22250         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
22251         ia64_produce_address_p): New function prototypes.
22252
22253         * config/ia64/ia64.c (bundling_p): New global variable.
22254         (ia64_use_dfa_pipeline_interface,
22255         ia64_first_cycle_multipass_dfa_lookahead,
22256         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
22257         functions.
22258         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
22259         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
22260         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
22261         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
22262         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
22263         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
22264         (dfa_pre_cycle_insn): New variable.
22265
22266         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22267
22268         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
22269         constructions.
22270
22271         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
22272         New function prototypes.
22273
22274         * genattrtab.c (main): Process the new constructions.
22275
22276         * genautomata.c (gen_presence_absence_set,
22277         process_presence_absence_names, process_presence_absence_patterns,
22278         add_presence_absence, check_absence_pattern_sets): Add parameter
22279         `final_p'.
22280         (unit_decl): Add new members `final_presence_list' and
22281         `final_absence_list'.
22282         (unit_pattern_rel_decl): Add new member `final_p'.
22283         (gen_final_presence_set, gen_final_absence_set): New functions.
22284         (process_decls): Use member `final_p'.
22285         (temp_reserv): New global variable.
22286         (reserv_sets_are_intersected): Add processing `final_presence_set'
22287         and `final_absence_set'.
22288         (initiate_states): Allocate `temp_reserv'.
22289         (unit_final_presence_set_table, unit_final_absence_set_table): New
22290         gloabal variables.
22291         (initiate_presence_absence_pattern_sets): Initiate them.
22292         (NDFA_to_DFA): Fix typo.
22293         (output_description): Output `final_presence_set' and
22294         `final_absence_set'.
22295
22296         * doc/md.texi (final_presence_set, final_absence_set): Describe
22297         them.
22298
22299         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22300
22301         * genautomata.c (transform_3): Process a missing case (nothing on
22302         unit place).
22303
22304         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22305
22306         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
22307         comments about queried units and the minimization.
22308
22309         * doc/md.texi: Ditto.
22310
22311         * genautomata.c (create_composed_state): Return nonzero if the new
22312         state has been created.
22313         (first_cycle_unit_presence): New function.
22314         (state_is_differed): Add new parameter.  Use the new function.
22315         Take queried units into account.
22316         (partition_equiv_class): Pass additional parameter to
22317         `state_is_differed'.
22318         (merge_states): Process composed states too.
22319         (build_automaton, create_automata, output_min_issue_delay_table,
22320         output_tables, output_statistics): Output more information.
22321         (output_reserved_units_table): Use function
22322         `first_cycle_unit_presence'.
22323         (output_tables): Output table of queried units even if the
22324         minimization is switched on.
22325         (write_automata): Output code for querying units even if the
22326         minimization is switched on.
22327
22328         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
22329
22330         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
22331         syntax of the constructions.
22332
22333         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
22334         extended syntax of the constructions.
22335
22336         * genautomata.c (unit_rel_decl): Rename it to
22337         `unit_pattern_rel_decl'.
22338         (pattern_set_el, pattern_reserv): New structures.
22339         (pattern_set_el_t, pattern_reserv_t): New types.
22340         (gen_presence_absence_set): New function.
22341         (process_presence_absence): Remove it.
22342         (process_presence_absence_names,
22343         process_presence_absence_patterns): New functions.
22344         (get_presence_absence_set): Remove it.
22345         (initiate_presence_absence_sets): Rename it on
22346         `initiate_presence_absence_pattern_sets'.  Use new function
22347         `form_reserv_sets_list'.
22348         (form_reserv_sets_list, check_presence_pattern_sets,
22349         check_absence_pattern_sets, output_pattern_set_el_list): New
22350         functions.
22351         (unit_decl): Change types of members `presence_list' and
22352         `absence_list'.
22353         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
22354         (decl): Change types of members `excl', `presence', and `absence'.
22355         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
22356         at the end of the vector.
22357         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
22358         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
22359         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
22360         (gen_presence_set, gen_absence_set): Use new function
22361         `gen_presence_absence_set'.
22362         (add_presence_absence): Process `pattern_list' instead of
22363         `source_list'.
22364         (process_decls): USe new functions
22365         `process_presence_absence_names' and
22366         `process_presence_absence_patterns'.
22367         (reserv_sets_are_intersected): Use new function
22368         `check_presence_pattern_sets'.
22369         (presence_set, absence_set): Remove them.
22370         (unit_presence_set_table, unit_absence_set_table): New global
22371         variables.
22372         (output_description): Use new function
22373         `output_pattern_set_el_list'.
22374         (generate): Use `initiate_presence_absence_pattern_sets'.
22375
22376         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
22377
22378         * genattr.c (main): Add output of prototype of new interface
22379         function `dfa_clean_insn_cache'.
22380
22381         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
22382         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
22383         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
22384         the generated code.
22385         (write_automata): Call the new function.
22386
22387 2003-01-09  Jan Hubicka  <jh@suse.cz>
22388
22389         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
22390         correctly.
22391
22392 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
22393
22394         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
22395
22396 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
22397
22398         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
22399         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
22400         (CONSTRAINT_LEN): Provide default definition.
22401         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
22402         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
22403         (EXTRA_CONSTRAINT_STR): Likewise.
22404         (REG_CLASS_FROM_CONSTRAINT): Define.
22405         * genoutput.c (check_constraint_len, constraint_len): New functions.
22406         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
22407         constraint / modifier.
22408         (gen_insn): Call check_constraint_len.
22409         * local-alloc.c (block_alloc): Update to use new macros / pass
22410         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
22411         * ra-build.c (handle_asm_insn): Likewise.
22412         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22413         (constrain_operands, peep2_find_free_register): Likewise.
22414         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
22415         * regmove.c (find_matches): Likewise.
22416         * reload.c (push_secondary_reload, find_reloads): Likewise.
22417         (alternative_allows_memconst): Likewise.
22418         * reload1.c (maybe_fix_stack_asms): Likewise.
22419         (reload_cse_simplify_operands): Likewise.
22420         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
22421         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
22422         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
22423         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
22424         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
22425         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
22426
22427         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
22428
22429 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
22430
22431         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
22432         length.
22433         (*extzv_1_r_h8300hs): Likewise.
22434         (*extzv_1_r_inv_h8300): Likewise.
22435         (*extzv_1_r_inv_h8300hs): Likewise.
22436
22437 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
22438
22439         * config/h8300/h8300.h (PREDICATE_CODES): New.
22440
22441 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
22442
22443         * config/h8300/h8300.md (*addsi3_upper): New.
22444         (*iorsi3_shift): Likewise.
22445         (two splitters): Likewise.
22446         (*addsi3_shift): Likewise.
22447         (two splitters): Likewise.
22448
22449 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
22450
22451         * Makefile.in (optabs.o): Add dependency on basic-block.h.
22452         * basic-block.h (control_flow_insn_p): Fuction was exported.
22453         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
22454         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
22455         notes only when the region is contained in a single basic block.
22456
22457 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
22458
22459         PR inline-asm/8832
22460         * tree.h (expand_asm): New prototype.
22461         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
22462         to do so.
22463         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
22464         down to expand_asm.
22465         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
22466         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
22467         (volatile_refs_p) [ASM_INPUT]: Likewise.
22468         (side_effects_p) [ASM_INPUT]: Likewise.
22469
22470 2003-01-09  Jan Hubicka  <jh@suse.cz>
22471
22472         * i386.md (*mul*): FIx constraints; remove confused comment; fix
22473         athlon_decode attributes
22474         (imul/k8 optimization peep2s): New.
22475
22476         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
22477         * i386.md (type attribute): Add ssecomi.
22478         (unit, memory, prefix attributes): Handle ssecomi.
22479         (cvt?2? patterns): Fix athlon_decode attribute
22480         (comi patterns): Set attribute to ssecomi.
22481
22482         PR target/8343
22483         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
22484
22485 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
22486
22487         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
22488         that match register_operands.
22489         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
22490         register_operand the default case.
22491
22492 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
22493
22494         PR c/8032
22495         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
22496         an empty element, do not advance the pointer to unfilled
22497         fields if there are pending initializers.
22498
22499 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
22500
22501         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
22502         (install-gcc-tooldir, install-cpp, installdirs,
22503         install-common, install-driver, install-info, install-man,
22504         install-headers, install-include-dir, install-headers-tar,
22505         install-headers-cpio, install-headers-cp, install-mkheaders,
22506         install-collect2, uninstall): Prepend $(DESTDIR) to
22507         destination paths in all (un)installation commands.
22508         (install-driver): Rewrite $(LN) commands to support DESTDIR
22509         with "ln" as well as with "ln -s".
22510         (installdirs): Simply use mkinstalldirs.
22511         (install-libgcc, install-multilib): Also pass DESTDIR.
22512         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
22513         installation destination variable ldir.
22514         * config/alpha/t-osf4, config/arm/t-netbsd,
22515         config/ia64/t-hpux, config/mips/t-iris5-6,
22516         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
22517         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
22518         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
22519         in the definition of SHLIB_INSTALL.
22520         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
22521         $(libsubdir) in the installation commands.
22522
22523 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
22524
22525         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
22526         non-optimizing compile.
22527         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
22528         compile.
22529
22530 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
22531
22532         * config/i386/i386.c (ix86_attribute_table): Add new attributes
22533         ms_struct and gcc_struct.
22534         (ix86_handle_struct_attribute): New function.
22535         (ix86_ms_bitfield_layout_p): Update to take new attributes
22536         into account.
22537         * doc/extend.texi: Document new attributes.
22538         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
22539
22540 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
22541
22542         PR optimization/8750
22543         * config/i386/i386.c (ix86_expand_prologue): Don't allow
22544         scheduling pass to move insns across __alloca call.
22545
22546 2003-01-08  Dale Johannesen  <dalej@apple.com>
22547
22548         * config/rs6000/rs6000.md:  Replace *store_multiple_string
22549         with *stmsi[3-8].
22550
22551 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
22552
22553         PR target/9210
22554         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
22555         Set SYMBOL_REF_FLAG on local data sym_ref.
22556
22557 2003-01-08  Dale Johannesen  <dalej@apple.com>
22558
22559         * function.c (assign_parms):  Don't set pretend_args_size if
22560           REG_PARM_STACK_SPACE.
22561           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
22562           pretend_args_size.
22563
22564 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
22565
22566         * gcc.hlp: Delete.
22567
22568 2003-01-09  Jan Hubicka  <jh@suse.cz>
22569
22570         * i386.c  (ix86_expand_int_addcc): Fix thinko.
22571
22572 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
22573
22574         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
22575         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
22576         as hook_bool_tree_hwi_hwi_tree_true.
22577         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
22578         (rs6000_emit_epilogue): Same.
22579         (rs6000_output_mi_thunk): Re-implement as RTL.
22580         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
22581         xcoffout_declare_function if any debugging enabled.
22582
22583 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
22584
22585         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
22586         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
22587         * config/mips/mips.h (enum processor_type): Rename
22588         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
22589         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
22590         Add PROCESSOR_M4K.
22591         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
22592         (ISA_MIPS32R2): New define.
22593         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
22594         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
22595         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
22596         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
22597         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
22598         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
22599         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
22600         compiling MIPS16 code.
22601         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
22602         comment.
22603         (ISA_HAS_SEB_SEH): New define.
22604         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
22605         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
22606         processor_type value renaming.  Add support for MIPS32R2.
22607         Clean up comments, and move "sb1" entry with other MIPS64 CPU
22608         entries.
22609         (override_options): Reimplement -mipsN option handling so that
22610         it will work correctly for -mips32r2.  Avoid branch-likely
22611         instructions on MIPS32R2.
22612         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
22613         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
22614         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
22615         (extendhisi2_hw, extendqisi2_hw): New.
22616         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
22617         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
22618         MIPS32R2, and MIPS64.
22619         (LINK_SPEC): Pass -mips32r2 to linker.
22620         * config/mips/t-isa3264: Built -mips32r2 multilibs.
22621         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
22622         for mips32r2 in the -march description.  Alphabetically sort
22623         CPU names in the -march description.  Add long-missed -mips32
22624         and -mips64 to MIPS option summary.
22625
22626         * config.gcc: Update copyright years to include 2003.
22627         * config/mips/mips.c: Likewise.
22628         * config/mips/mips.h: Likewise.
22629         * config/mips/mips.md: Likewise.
22630         * config/mips/netbsd.h: Likewise.
22631         * doc/invoke.texi: Likewise.
22632
22633 2003-01-08  Andreas Schwab  <schwab@suse.de>
22634
22635         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
22636         variable.
22637         * configure: Regenerated.
22638
22639 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
22640
22641         * config/h8300/h8300.c (output_logical_op): Replace byte/word
22642         extraction of det with b0, b1, w0, w2, etc.
22643         (compute_logical_op_length): Likewise.
22644         (compute_logical_op_cc): Likewise.
22645
22646 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
22647
22648         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
22649         HIGH on all variants.
22650
22651 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
22652
22653         * Makefile.in (PARTITION_H): New.
22654         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
22655         * basic-block.h: Include hard-reg-set.h.
22656
22657 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
22658
22659         * arm.h (ENABLE_XF_PATTERNS): Delete.
22660         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
22661         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
22662         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
22663         (cmpxf_trap): Delete.
22664         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
22665
22666 2003-01-08  Jan Hubicka  <jh@suse.cz>
22667
22668         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
22669         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
22670         (add??cc): New expanders.
22671         * i386.c (expand_int_addcc): New function.
22672         * i386-protos.h (expand_int_addcc): Declare.
22673
22674         * alias.c (memory_modified_1): New static function.
22675         (memory_modified): New static varaible.
22676         (memory_modified_in_insn_p): New global function.
22677         * rtl.h (memory_modified_in_insn_p): Declare.
22678         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
22679         references.
22680
22681         * expr.h (emit_conditional_add): Declare.
22682
22683 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
22684
22685         PR other/8947
22686         * doc/invoke.texi (-malign-double): Explain that the option breaks
22687         binary compatibility.
22688
22689 2003-01-08  Andreas Schwab  <schwab@suse.de>
22690
22691         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
22692         should come from the generic *-*-linux* entry.
22693
22694 2003-01-07  Jan Hubicka  <jh@suse.cz>
22695
22696         * cselib.c (cselib_current_insn_in_libcall): New static variable.
22697         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
22698         we are inside libcall.
22699         * cselib.h (elt_loc_list): Add in_libcall.
22700         * gcse.c (do_local_cprop): Do not copy propagate using insns
22701         in libcalls.
22702
22703 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
22704
22705         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
22706         not normally affect to issue rate.
22707
22708 2003-01-07  Jan Hubicka  <jh@suse.cz>
22709
22710         * genopinit.c (optabs): Add addc_optab.
22711         * ifcvt.c (noce_try_store_flag): Rename to ...
22712         (noce_try_addcc): ... this one; handle generic conditional increment.
22713         (noce_process_if_block): Update noce_try_addcc call.
22714         * optabs.c (emit_conditional_add): New.
22715         (init_obtabs): Initialize addc_optab.
22716         * optabs.h (optab_index): Add OTI_addcc.
22717         (addcc_optab): New macro.
22718         * md.texi: Document addMcc
22719
22720         PR target/8322
22721         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
22722         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
22723         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
22724
22725         * reload1.c (delete_output_reload): Avoid repeated attempts
22726         to delete insn.
22727
22728 2003-01-07  Andreas Schwab  <schwab@suse.de>
22729
22730         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
22731         Move --enable-initfini-array check ...
22732         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
22733         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
22734         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
22735         * configure: Rebuild.
22736
22737 2003-01-07  Richard Henderson  <rth@redhat.com>
22738
22739         * alias.c (find_base_value): Only use new_reg_base_value shortcut
22740         if the register is set once.
22741
22742 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
22743
22744         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
22745         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
22746         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
22747
22748 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
22749             Sunil Davasam  <sunil.k.davasam@intel.com>
22750
22751         PR libstdc++/9076
22752         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
22753         DW_CFA_same_value, read next and ignore.
22754
22755 2003-01-07  Richard Henderson  <rth@redhat.com>
22756
22757         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
22758
22759 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
22760
22761         * cfg.c: Include alloc-pool.h
22762         (edge_pool): New pool.
22763         (bb_pool): New pool.
22764         (first_deleted_edge): Remove.
22765         (first_deleted_block): Remove.
22766         (init_flow): Alloc/free the pools.
22767         (free_edge): Use pools.
22768         (alloc_block): Ditto.
22769         (expunge_block): Ditto.
22770         (cached_make_edge): Ditto.
22771
22772         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
22773
22774 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
22775
22776         * et-forest.c: Include alloc-pool.h.
22777         (struct et_forest): Add node_pool and occur_pool.
22778         (et_forest_create): Create the new pools.
22779         (et_forest_delete): Delete them.
22780         (et_forest_add_node): Allocate and free using pools.
22781         (et_forest_add_edge): Ditto.
22782         (et_forest_remove_node): Ditto.
22783         (et_forest_remove_edge): Ditto.
22784
22785         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
22786
22787 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
22788
22789         * config/h8300/h8300.c (output_logical_op): Simplify and
22790         optimize the handling of SImode.
22791         * config/h8300/h8300.c (compute_logical_op_length): Update
22792         accordingly.
22793         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
22794
22795 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
22796
22797         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
22798         big-endian correction to indirect arguments too.
22799
22800 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
22801
22802         Segher Boessenkool  <segher@koffie.nl>
22803
22804         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
22805         (alt_reg_names): Ditto, fix formatting.
22806         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
22807
22808 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
22809
22810         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
22811         (output_logical_op): Constify intval and det.
22812         (compute_logical_length): Likewise.
22813         (compute_logical_cc): Likewise.
22814         (output_a_shift): Constify mask.
22815         (h8300_encode_label): Constify len.
22816
22817 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
22818
22819         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
22820         (h8300_expand_epilogue): Likewise.
22821
22822 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
22823
22824         Segher Boessenkool  <segher@koffie.nl>
22825
22826         * config/rs6000/altivec.md: Remove spaces from assembler
22827         instruction argument lists.
22828
22829 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
22830
22831         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
22832         c4x_assembler_function_p.
22833         (c4x_null_epilogue_p): Complement return value, all uses updated.
22834         (c4x_insert_attributes): Add naked.
22835         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
22836         * doc/extend.texi: Update C4x function attributes.
22837
22838 2003-01-06  Richard Henderson  <rth@redhat.com>
22839
22840         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
22841         properly when changing "local-ness".
22842         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
22843
22844 2003-01-06  Dale Johannesen  <dalej@apple.com>
22845
22846         * config/darwin-protos.h:  Add prototypes for new section functions.
22847
22848 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
22849
22850         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
22851         to EABI.
22852
22853 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
22854
22855         * hwint.h: If the current compiler has no 64-bit type at all,
22856         make HOST_WIDEST_INT 32 bits.
22857
22858 2003-01-06  Eric Christopher  <echristo@redhat.com>
22859
22860         * config/mips/mips.md (movdf_internal2): Fix constraints.
22861
22862 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
22863
22864         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
22865
22866 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
22867
22868         * config/mips/mips.md (leadi): Use dla rather than la.
22869
22870 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
22871
22872         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
22873         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
22874
22875 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
22876
22877         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
22878         redefinition.
22879
22880 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
22881
22882         * config/h8300/h8300.md (*extzv_8_23): New.
22883
22884 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22885
22886         * pa64-hpux.h (JCR_SECTION_NAME): Define.
22887         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
22888         USE_EH_FRAME_REGISTRY when defining.
22889
22890 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
22891
22892         * config/h8300/h8300.c (output_a_shift): Do not output a
22893         variable shift.
22894         * config/h8300/h8300.md (two splitters): New.
22895
22896 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
22897
22898         * config/mips/mips.md: Disable the movstrsi define_split.
22899
22900 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22901
22902         * alloc-pool.c: Don't include "libiberty.h".
22903         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
22904         * convert.c (convert_to_real): Hide unused variable.
22905
22906 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22907
22908         * Makefile.in (gtyp-gen.h): Const-ify.
22909         * gcov-dump.c (tag_table): Likewise.
22910
22911 2003-01-04  Bruce Korb  <bkorb@gnu.org>
22912
22913         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
22914         of *both* the file name and the fix name.
22915
22916 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
22917
22918         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
22919         collect2.
22920         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
22921         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
22922         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
22923         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
22924         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
22925         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
22926         elfos.h.
22927         (EH_FRAME_IN_DATA_SECTION): Delete define.
22928         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
22929         (STARTFILE_SPEC): Use crtbegin.o.
22930         (ENDFILE_SPEC): Use crtend.o.
22931         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
22932         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
22933         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
22934         DTOR_LIST_BEGIN): Define.
22935         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
22936         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
22937         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
22938
22939 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
22940
22941         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
22942         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
22943         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
22944         Cleanup handling of replacement text.
22945         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
22946
22947 2003-01-04  Bruce Korb  <bkorb@gnu.org>
22948
22949         * fixinc/tests/base/math.h: removed obsolete results
22950         * fixinc/tests/base/stdlib.h: ditto
22951         * fixinc/tests/base/sys/param.h: ditto
22952         * fixinc/tests/base/sys/stat.h: ditto
22953         * fixinc/tests/base/time.h: ditto
22954         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
22955         * fixinc/tests/base/sys/byteorder.h: ditto
22956         * fixinc/inclhack.def: Remove superfluous backslashes
22957
22958 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
22959
22960         * config/h8300/h8300-protos.h: Add prototypes for
22961         the new functions defined below.
22962         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
22963         define.
22964         (dosize): Emit RTL instead of assembly code.
22965         (push): Likewise.
22966         (pop): Likewise.
22967         (h8300_output_function_prologue): Remove.
22968         (h8300_expand_prologue): New.
22969         (h8300_expand_epilogue): New.
22970         (h8300_output_function_epilogue): Do only the reset of
22971         pragma_saveall.
22972         * config/h8300/h8300.md (push_h8300): New.
22973         (push_h8300hs): Likewise.
22974         (pop_h8300): Likewise.
22975         (pop_h8300hs): Likewise.
22976         (*stm_h8300s_2): Change the name to stm_h8300s_2.
22977         (*stm_h8300s_3): Change the name to stm_h8300s_3.
22978         (*stm_h8300s_4): Change the name to stm_h8300s_4.
22979         (*ldm_h8300s_2): New.
22980         (*ldm_h8300s_3): Likewise.
22981         (*ldm_h8300s_4): Likewise.
22982         (return): Likewise.
22983         (*return_1): Likewise.
22984         (prologue): Likewise.
22985         (epilogue): Likewise.
22986         (monitor_prologue): Likewise.
22987
22988 2003-01-03  Dale Johannesen  <dalej@apple.com>
22989
22990         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
22991           machopic_picsymbol_stub1.
22992           (EXTRA_SECTION_FUNCTIONS):  Ditto.
22993         * rs6000/rs6000.c:  Update copyright.
22994           (machopic_output_stub):  Use them.  Remove an insn from stub code.
22995
22996 2003-01-02  Jason Merrill  <jason@redhat.com>
22997
22998         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
22999
23000         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
23001         static/external decls.
23002
23003         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
23004         outermost scope.
23005         * c-decl.c (c_make_fname_decl): Push the decls there, too.
23006
23007 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
23008
23009         * config/h8300/h8300-protos.h: Add a prototype for
23010         h8300_current_function_interrupt_function_p.
23011         * config/h8300/h8300.c (interrupt_handler): Remove.
23012         (os_task): Likewise.
23013         (monitor): Likewise.
23014         (pragma_interrupt): New.
23015         (WORD_REG_USED): Use
23016         h8300_current_function_interrupt_function_p.
23017         (dosize): Likewise.
23018         (h8300_output_function_prologue): Likewise.
23019         Do not set interrupt_handler, os_task, monitor.
23020         (h8300_output_function_prologue): Use
23021         h8300_current_function_interrupt_function_p.
23022         Do not set interrupt_handler, os_task, monitor.
23023         (h8300_current_function_interrupt_function_p): New.
23024         (h8300_pr_interrupt): Set pragma_interrupt.
23025         (h8300_insert_attributes): Reset pragma_interrupt.
23026
23027 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
23028
23029         * doc/install.texi (Configuration): Fix markup for reference to
23030         gcc/config.gcc.
23031
23032 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
23033
23034         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
23035         (*iorhi3_two_qi): Likewise.
23036         (*iorsi3_zexthi): Likewise.
23037         (*xorhi3_zextqi): Likewise.
23038         (*xorsi3_zexthi): Likewise.
23039         (*xorsi3_zextqi): Likewise.
23040
23041 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
23042
23043         * config/h8300/h8300.c (stack_pointer_operand): New.
23044         (const_int_gt_2_operand): Likewise.
23045         (const_int_ge_8_operand): Likewise.
23046         * config/h8300/h8300.md (a splitter): Likewise.
23047         (a peephole2): Likewise.
23048         * config/h8300/h8300-protos.h: Add prototypes for the new
23049         functions above.
23050
23051 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
23052
23053         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
23054         objc/objc-act.h: Fix copyright years.
23055
23056 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
23057
23058         * doc/passes.texi: Fix documentation for -fssa-ccp
23059
23060 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
23061
23062         * gccbug.in: Update for new categories.
23063
23064 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23065
23066         * config/h8300/h8300.md: Reorder some patterns.
23067
23068 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23069
23070         * config/h8300/h8300.c (output_logical_op): Fix a warning.
23071
23072 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23073
23074         * config/darwin-protos.h, config/c4x/c4x-protos.h,
23075         config/cris/cris-protos.h, config/i370/i370-protos.h,
23076         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
23077         config/v850/v850-protos.h: Use struct, and don't conditionally
23078         compile on GCC_C_PRAGMA_H.
23079
23080 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23081
23082         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
23083         * config/h8300/h8300-protos.h: Likewise.
23084         * config/sh/sh-protos.h: Likewise.
23085
23086 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23087
23088         * config/arm/arm-protos.h: Use struct cpp_reader instead of
23089         cpp_reader.
23090         * config/h8300/h8300-protos.h: Likewise.
23091         * config/sh/sh-protos.h: Likewise.
23092
23093 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23094
23095         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
23096         arm_pr_long_calls_off): Use struct.
23097         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
23098         : Similarly.
23099         Don't include cpplib.h.
23100         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
23101         sh_pr_nosave_low_regs): Similarly.
23102
23103 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23104
23105         * config/h8300/h8300.c: Include cpplib.h.
23106
23107 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
23108
23109         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
23110           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
23111           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
23112           "GCC" in the copyright header.
23113
23114 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23115
23116         * c-pragma.c (c_register_pragma): New.
23117         (init_pragma): Use it.
23118         * c-pragma.h (cpp_register_pragma): Don't declare.
23119         (c_register_pragma): New.
23120         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
23121         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
23122         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
23123         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
23124         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
23125         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
23126         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
23127         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
23128         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
23129         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
23130         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
23131         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
23132
23133 See ChangeLog.8 for earlier changes.