OSDN Git Service

* gcc.c: Convert prototypes to ISO C90.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-07-06  Andreas Jaeger  <aj@suse.de>
2
3         * gcc.c: Convert prototypes to ISO C90.
4         * gcc.h: Likewise.
5         * gcov-dump.c: Likewise.
6         * gcov-iov.c: Likewise.
7         * gcse.c: Likewise.
8         * genattrtab.h: Likewise.
9         * ggc.h: Likewise.
10         * global.c: Likewise.
11         * graph.c: Likewise.
12         * graph.h: Likewise.
13         * hosthooks.h: Likewise.
14         * hooks.h: Likewise.
15         * hooks.c: Likewise.
16         * hashtable.h: Likewise.
17         * hashtable.c: Likewise.
18         * haifa-sched.c: Likewise.
19         * integrate.h: Likewise.
20         * integrate.c: Likewise.
21         * input.h: Likewise.
22         * ifcvt.c: Likewise.
23
24 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
25
26         * combine.c (nonzero_bits1): Fix a warning.
27
28 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
29
30         * config/h8300/h8300.c (compute_mov_length): Correct the
31         length of loading CONST0_RTX (SFmode).
32
33 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
34
35         * toplev.c (output_clean_symbol_name): Remove.
36         * toplev.h (output_clean_symbol_name): Remove.
37         * config/alpha/alpha.c (unicosmk_output_module_name): Use
38         lbasename & clean_symbol_name.
39
40 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
41
42         * ggc.h: Follow spelling conventions.
43         * config/i386/i386.c: Likewise.
44         * config/i386/winnt.c: Likewise.
45         * config/rs6000/rs6000.c: Likewise.
46
47 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
48
49         * bt-load.c: Fix comment typos.
50         * c-incpath.c: Likewise.
51         * cfg.c: Likewise.
52         * cfgcleanup.c: Likewise.
53         * cfgloop.h: Likewise.
54         * cfgloopmanip.c: Likewise.
55         * cfgrtl.c: Likewise.
56         * diagnostic.h: Likewise.
57         * dwarfout.c: Likewise.
58         * emit-rtl.c: Likewise.
59         * et-forest.c: Likewise.
60         * et-forest.h: Likewise.
61         * expr.c: Likewise.
62         * gcse.c: Likewise.
63         * genattr.c: Likewise.
64         * jump.c: Likewise.
65         * langhooks.h: Likewise.
66         * local-alloc.c: Likewise.
67         * loop-unroll.c: Likewise.
68         * loop-unswitch.c: Likewise.
69         * ra-build.c: Likewise.
70         * regclass.c: Likewise.
71         * regmove.c: Likewise.
72         * rtl.def: Likewise.
73         * rtlanal.c: Likewise.
74         * sched-ebb.c: Likewise.
75         * sched-rgn.c: Likewise.
76         * simplify-rtx.c: Likewise.
77         * ssa.c: Likewise.
78         * tracer.c: Likewise.
79         * tree.c: Likewise.
80
81 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
82
83         * cppcharset.c: Use the correct return type for the fallback iconv
84         macro.
85
86 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
87
88         Blame to Jan Hubicka  <jh@suse.cz>
89         * cfglayout.c (record_effective_endpoints): Split insns before
90         first basic block correctly.
91
92 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
93
94         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
95         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
96         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
97
98 2003-07-05  Andreas Jaeger  <aj@suse.de>
99
100         * genattrtab.c (write_attr_get): Revert part of last patch to
101         always write out a prototype.
102
103         * genemit.c (gen_split): Readd lost unused attributes in last
104         patch.
105
106 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
107
108         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
109         different from header.
110
111 2003-07-05  Andreas Schwab  <schwab@suse.de>
112
113         * config/m68k/m68k.c: Remove code protected by CRDS.
114         * config/m68k/m68k.md: Likewise.
115
116 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
117
118         PR driver/11417
119         * c-opts.c (permit_fortran_options): New.
120         (c_common_init_options): Accept fortran front end options if
121         it looks like we might be preprocessing Fortran.
122         (c_common_handle_option): Don't reject switch if permit_fotran_options.
123
124 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
125
126         * genattr.c (internal_dfa_insn_code): Output prototype.
127         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
128         * genautomata.c: Likewise.
129         * genconditions.c: Likewise.
130         * genemit.c: Likewise.
131         * genextract.c: Likewise.
132         * gengenrtl.c: Likewise.
133         * gengtype.c: Likewise.
134         * genopinit.c: Likewise.
135         * genoutput.c: Likewise.
136         * genpeep.c: Likewise.
137         * genrecog.c: Likewise.
138
139 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
140
141         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
142         (struct cpp_options): Add narrow_charset, wide_charset,
143         bytes_big_endian fields.  Remove EBCDIC field.
144         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
145
146         * cpphash.h: Include <iconv.h> if we have it, otherwise
147         provide a dummy definition of iconv_t.
148         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
149         (_cpp_valid_ucn): Update prototype.
150         (_cpp_destroy_iconv): New prototype.
151
152         * doc/cpp.texi: Document character set handling.
153         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
154         * doc/extend.texi: Delete entire section on multiline strings.
155         Rewrite section on __FUNCTION__ etc now that these are
156         variables in C.
157
158         * cppucnid.tab, cppucnid.pl: New files.
159         * cppucnid.h: New generated file.
160         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
161         (iconv_open, iconv, iconv_close): Provide dummy definitions
162         if !HAVE_ICONV.
163         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
164         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
165         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
166         cpp_interpret_string, narrow_str_to_charconst,
167         wide_str_to_charconst): New.
168         (ucn_valid_in_identifier): Use a binary search through the
169         ucnranges table defined in cppucnid.h, not a long chain of if
170         statements.
171         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
172         character names are only valid in C++ and C99" to a warning.
173         Issue the "meaning of \[uU] is different in traditional C"
174         warning here.  Take care not to let iconv see an invalid UCS
175         value if we get a malformed UCN.  Issue an error if we don't
176         have iconv.
177         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
178         cpp_interpret_string to do the heavy lifting.
179
180         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
181         narrow_charset, wide_charset fields of options structure.
182         (cpp_destroy): Call _cpp_destroy_iconv.
183         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
184         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
185         (cpp_interpret_charconst): Moved to cppcharset.c.
186         * cpplib.c (dequote_string): Delete.
187         (interpret_string_notranslate): New.
188         (do_line, do_linemarker): Use interpret_string_notranslate.
189
190         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
191
192         * c-common.c (fname_string, combine_strings): Delete.
193         * c-common.h (fname_string, combine_strings): Delete prototypes.
194         * c-lex.c (ignore_escape_flag): Delete.
195         (cb_ident): Use cpp_interpret_string, not lex_string.
196         (get_nonpadding_token): New function.
197         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
198         Adjust calls to lex_string.  Don't write *value twice.
199         (lex_string): Now handles string constant concatenation.
200         Most of the work handed off to cpp_interpret_string.
201         Call fix_string_type here.
202         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
203         FUNC_NAME, throughout.
204         (OBJC_STRING): New token type.
205         (primary:STRING): No need to call fix_string_type here.
206         (primary:objc_string): Make that OBJC_STRING.
207         (objc_string nonterminal): Delete.
208         (yylexname): Delete code to handle fake string constants.
209         (yylexstring): Delete entirely.
210         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
211         to handle CPP_ATSIGN.
212
213         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
214         * c-opts.c (missing_arg, c_common_handle_option): Handle
215         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
216         (c_common_init): Set cpp_opts->bytes_big_endian, not
217         cpp_opts->EBCDIC.  Call cpp_init_iconv.
218         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
219         (TARGET_EBCDIC): Delete default definition.
220
221         * objc/objc-act.c (build_objc_string_object): No need to
222         handle string constant concatenation.
223
224 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
225
226         * doc/install.texi: Fix typos.
227         * doc/invoke.texi: Likewise.
228         * doc/tm.texi: Likewise.
229
230 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
231
232         * config/pa/fptr.c: Fix comment typos.
233         * config/pa/pa-64.h: Likewise.
234         * config/pa/pa.c: Likewise.
235         * config/pa/pa.h: Likewise.
236         * config/rs6000/603.md: Likewise.
237         * config/rs6000/7xx.md: Likewise.
238         * config/rs6000/darwin.h: Likewise.
239         * config/rs6000/freebsd.h: Likewise.
240         * config/rs6000/rs6000.c: Likewise.
241         * config/rs6000/rs6000.md: Likewise.
242         * config/rs6000/spe.h: Likewise.
243
244 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
245
246         * config/s390/2064.md: Change GNU CC to GCC.
247         * config/s390/2084.md: Likewise.
248         * config/s390/fixdfdi.h: Likewise.
249         * config/s390/linux.h: Likewise.
250         * config/s390/s390-modes.def: Likewise.
251         * config/s390/s390-protos.h: Likewise.
252         * config/s390/s390.c: Likewise.
253         * config/s390/s390.h: Likewise.
254         * config/s390/s390.md: Likewise.
255         * config/s390/s390x.h: Likewise.
256
257 2003-07-04  Jeff Law  <law@redhat.com>
258
259         PR c/11428
260         * expr.c (do_store_flag): Pass in the correct result type
261         when calling fold_single_bit_test.
262         * fold-const.c (fold_single_bit_test): Use result_type for the
263         result when folding a sign bit test.
264
265 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
266
267         * opts.c (common_handle_options): Negate sense of -falign- switches.
268
269 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
270
271         * Makefile.in: Replace PWD with PWD_COMMAND.
272
273 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
274
275         * cfgloopanal.c (count_strange_loop_iterations): New static function.
276         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
277         Handle strange loops.
278
279 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
280
281         * install.texi: Even the g77 manpage is derived from
282         the full g77 manual.
283
284 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
285
286         * ABOUT-NLS: Delete.
287         * intl: Delete entire directory.
288         * aclocal.m4: Include ../config/gettext.m4.  Delete
289         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
290         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
291         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
292         Remove intl/Makefile from all_outputs.
293         * configure, config.in: Regenerate.
294         * Makefile.in: Expunge all references to intl subdirectory.
295         Add -I../intl to INCLUDES.
296         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
297
298 2003-07-04  Roger Sayle  <roger@eyesopen.com>
299
300         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
301         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
302
303 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
304
305         PR c++/5287, PR c++/7910, PR c++/11021
306         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
307         dllimport attribute if function is defined at declaration, but
308         report error instead. Likewise for dllimport'd variable
309         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
310         declared within functions, Report error if dllimport or dllexport
311         symbol is not global.
312         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
313         if defined after declaration or if inlined. Don't allow definition
314         of static data members of C++ classes. Don't dllimport virtual
315         methods.
316         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
317         (i386_pe_mark_dllimport): Remove unnecessary checks.
318         (i386_pe_encode_section_info): Warn if the dllimport attribute
319         and symbol prefix have been instantiated and then overridden.
320
321         * doc/extend.texi: Document dllimport and dllexport attributes.
322
323         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
324
325 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
326
327         * config/kaos.h (CPP_PREDEFINES): Delete.
328         (TARGET_OS_CPP_BUILTINS): New.
329
330 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
331
332         * c-aux-info.c: Include toplev.h after c-tree.h.
333         * c-common.c: Likewise.
334         (GCC_DIAG_STYLE): Undef.
335         * c-semantics.c (GCC_DIAG_STYLE): Define.
336         * c-tree.h (GCC_DIAG_STYLE): Likewise.
337         * diagnostic.h (inform): Move prototype to toplev.h.
338         * jump.c: Include diagnostic.h before toplev.h.
339         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
340         (warning, error, fatal_error, pedwarn, sorry, inform,
341         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
342
343 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
344
345         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
346         at all if edge is not specified.
347         (can_copy_bbs_p, copy_bbs): New.
348         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
349         * cfgloop.c (get_loop_body): Comment more precisely.
350         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
351         (scale_bbs_frequencies): Fix comment typo.
352         (can_duplicate_loop_p): Use can_copy_bbs_p.
353         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
354
355 2003-07-03  Devang Patel <dpatel@apple.com>
356
357         * c-opts.c (c_common_parse_file): Remove extra
358         debug_hooks->start_source_file call.
359
360 2003-07-03  Roger Sayle  <roger@eyesopen.com>
361
362         * real.c (real_trunc, real_floor, real_ceil): New functions
363         to implement trunc, floor and ceil respectively.
364         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
365         * builtins.c (integer_valued_real_p): New function to test if
366         a floating point expression has an integer valued result.
367         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
368         foo(x) where foo is an integer rounding function.  Similarly,
369         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
370         (double)(int)x when both foo and bar are integer rounding
371         functions and we don't need to honor errno.
372         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
373         New functions to fold trunc, floor and ceil.
374         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
375         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
376         to fold BUILT_IN_CEIL*.
377         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
378         the remaining integer rounding functions.
379
380 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
381
382         * config/sparc/sparc.c (function_arg_partial_nregs): Use
383         SPARC_INT_ARG_MAX to determine where to split unnamed
384         complex FP arguments.
385
386 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
387
388         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
389         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
390         (merge_blocks_move_predecessor_nojumps,
391          merge_blocks_move_successor_nojumps): Use merge_blocks.
392         (try_optimize_cfg): Use merge_blocks_move.
393         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
394         (merge_blocks_nomove): Rename to rtl_merge_blocks.
395         (cfg_layout_create_basic_block): New.
396         (rtl_can_merge_blocks): New.
397         (cfg_layout_split_block): Do not alloc aux by hand.
398         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
399         merge_blocks.
400         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
401         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
402         * cfgloopmanip.c (loop_split_edge_with): Likewise.
403         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
404
405         * basic-block.h (basic_block_def): Add field 'rbi'.
406         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
407         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
408         * cfg.c (entry_exit_blocks): Add new field.
409         * cfglayout.c: Include alloc-pool.h;
410         (cfg_layout_pool): New.
411         (record_effective_endpoints, fixup_reorder_chain,
412         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
413         of rbi.
414         (cfg_layout_initialize_rbi): New function.
415         (cfg_layout_initialize): Use it.
416         (cfg_layout_finalize): Clear rbi fields.
417         * cfglayout.h (RBI): Kill.
418         (cfg_layout_initialize_rbi): Declare.
419         * cfgloopmanip.c (copy_bbs): Use rbi.
420         (record_exit_edges): Likewise.
421         (duplicate_loop_to_header_edge): Likewise.
422         * cfgrtl.c (cfg_layout_create_basic_block): Use
423         cfg_layout_initialize_rbi.
424         (cfg_layout_split_block): Use rbi.
425         (cfg_layout_delete_block): Likewise.
426         * loop-init.c (loop_optimizer_finalize): Likewise.
427         * loop-unswitch.c (unswitch_loop): Likewise.
428         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
429
430         * cfgrtl.c: Update comments.
431         (try_redirect_by_replacing_jump): New argument.
432         (redirect_branch_edge): Break out from ...
433         (rtl_redirect_edge_and_branch): ... this one.
434         (update_cfg_after_block_merging): Break out from ...
435         (rtl_merge_blocks): ... this one.
436         (cfg_layout_split_edge): New.
437         (cfg_layout_merge_blocks): New.
438         (cfg_layout_can_merge_blocks_p): New.
439         (cfg_layout_redirect_edge_and_branch): Reorganize.
440         (cfg_layout_rtl_cfg_hooks): Fill in.
441         (cfg_layout_delete_block): Kill barriers.
442         * cfganal.c (can_fallthru): Deal with exit blocks
443         * cfglayout.c (cfg_layout_function_header): New function
444         (record_effective_endpoints): Record function header.
445         (fixup_reorder_chain): Fixup dead jumptables; place header
446
447         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
448         * bb-reorder.c (cfg_layout_initialize): Update call.
449         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
450         edges in cfglayout mode.
451         * cfglayout.c (cleanup_unconditional_jumps): Kill.
452         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
453         * cfglayout.h (cfg_layout_initialize): Update prototype.
454         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
455         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
456         * flow.c (propagate_block): Do not crash when basic block ends
457         by first insn in the chain.
458         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
459         do loop discovery.
460         * tracer.c (tracer): Update call of cfg_layout_initialize.
461
462 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
463
464         * Makefile.in: Use dependency variables in lieu of explicit
465         files throughout.
466
467 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
468
469         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
470         * tree.h: ...to here.
471
472 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
473
474         * config/s390/2064.md: Fix comment typos.
475         * config/s390/2084.md: Likewise.
476         * config/s390/s390.c: Likewise.
477         * config/s390/s390.md: Likewise.
478         * config/sh/sh.c: Likewise.
479         * config/sh/sh.h: Likewise.
480         * config/sh/sh.md: Likewise.
481         * config/sparc/sparc.c: Likewise.
482         * config/sparc/sparc.h: Likewise.
483         * config/sparc/sparc.md: Likewise.
484         * config/stormy16/stormy16.c: Likewise.
485         * config/stormy16/stormy16.h: Likewise.
486         * config/stormy16/stormy-abi: Fix a typo.
487
488 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
489
490         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
491
492 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
493
494         * config/mips/mips.h (save_argv): Delete.
495
496 2003-07-03  Roger Sayle  <roger@eyesopen.com>
497
498         PR target/10700
499         * fold-const.c (extract_muldiv_1): There's nothing that can be done
500         if the expression is a SAVE_EXPR.
501
502 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
503
504         * config/m32r/m32r.c: Fix comment typos.
505         * config/m68hc11/m68hc11.c: Likewise.
506         * config/m68hc11/m68hc11.h: Likewise.
507         * config/m68k/m68k.c: Likewise.
508         * config/mcore/mcore.c: Likewise.
509         * config/mcore/mcore.h: Likewise.
510         * config/mcore/mcore.md: Likewise.
511         * config/mips/mips.c: Likewise.
512         * config/mips/mips.h: Likewise.
513         * config/mips/mips.md: Likewise.
514         * config/mips/netbsd.h: Likewise.
515         * config/mn10300/mn10300.c: Likewise.
516
517 2003-07-03  Andreas Schwab  <schwab@suse.de>
518
519         * dbxout.c (pending_bincls): Move decl down inside
520         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
521
522 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
523
524         * rtl.h (NOTE_DATA): Refer to whole union.
525         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
526
527 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
528
529         PR optimization/11381
530         * simplify-rtx.c (simplify_relational_operation): Check that
531         two equal operands have no side-effects before simplifying
532         the comparison.
533
534 2003-07-02  Jeff Law  <law@redhat.com>
535
536         * expr.c (do_store_flag): Remove special case folding for
537         single bit tests.  Instead call back into the commonized folder
538         routine.
539         * fold-const.c (fold_single_bit_test): New function, mostly
540         extracted from do_store_flag, with an additional case extracted
541         from fold.
542         (fold): Call fold_single_bit_test appropriately.
543         * tree.h (fold_single_bit_test): Prototype.
544
545 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
546
547         * system.h: Include filenames.h.
548         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
549         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
550         define based on HAVE_DOS_BASED_FILE_SYSTEM.
551         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
552         * config/i386/xm-mingw32.h: Don't define
553         HAVE_DOS_BASED_FILE_SYSTEM,
554         DIR_SEPARATOR, or DIR_SEPARATOR_2.
555         * doc/hostconfig.texi: Update to match.
556
557         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
558         config/i386/cygwin.h:
559         Use IS_ABSOLUTE_PATH throughout.
560         * gcc.c (DIR_UP): Delete, unused.
561         * protoize.c (IS_SAME_PATH): Define in terms of
562         FILENAME_CMP.
563         (is_abspath): Delete.
564
565 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
566
567         * config/i386/emmintrin.h: Fix comment typos.
568         * config/i386/i386.c: Likewise.
569         * config/i386/i386.h: Likewise.
570         * config/i386/sco5.h: Likewise.
571         * config/ia64/ia64.c: Likewise.
572         * config/ia64/itanium2.md: Likewise.
573
574 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
575
576         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
577         DBX_USE_BINCL.
578         (emit_bincl_stab): Same.
579         (emit_pending_bincls): Same.
580
581 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
582
583         * config/h8300/h8300.c (compute_mov_length): Fix the length of
584         loading CONST0_RTX (SFmode).
585         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
586         'G' to CONST0_RTX (SFmode).
587         * config/h8300/h8300.md (movsf_h8300): Change the first
588         constraint to 'G'.
589         (movsf_h8300h): Likewise.
590
591 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
592
593         * c-common.h (c_common_init_options): New prototype.
594         * c-opts.c (deferred_size): Remove.
595         (defer_opt): Array is now pre-allocated.
596         (c_common_init_options): Pre-allocate deferred_opts.  Make
597         lang_flags unsigned.
598         (push_command_line_options): Free deferred_opts.
599         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
600         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
601         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
602         * langhooks.h (struct lang_hooks): New prototype for init_options.
603         * main.c (main): Cast argv.
604         * opts.c (handle_option, handle_options): Update prototypes.
605         (decode_options): save_argc, save_argv are not global.  Constify.
606         * opts.h (decode_options): New prototype.
607         * toplev.c (general_init): New protoype.
608         (save_argv): Make static.
609         (save_argc): Remove.
610         (print_switch_values, general_init): Constify.
611         (toplev_main): Save argv.
612         * toplev.h (toplev_main): Update prototype.
613         (save_argc, save_argv): Remove.
614
615 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
616
617         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
618         (emit_bincl_stab): Same.
619         (emit_pending_bincls): Same.
620
621 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
622
623         PR c++/11072
624         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
625
626 2003-07-02  Andreas Schwab  <schwab@suse.de>
627
628         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
629
630 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
631
632         PR optimization/11210
633         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
634         about the behaviour with regard to bitfields.
635         * fold-const (decode_field_reference): Record outermost type in
636         case the expression is a NOP. Strip all NOPs. Set the signedness
637         to that of the outermost type (if any) when the bitsize is equal
638         to the size of the type.
639
640 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
641
642         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
643         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
644         (adddi3_internal_3, addsi3_internal_2): Likewise.
645
646 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
647
648         * config/mips/mips.c (machine_function): Add new fields:
649         ignore_hazard_length_p and all_noreorder_p.
650         (mips_flag_delayed_branch): New variable.
651         (override_options): Treat '/' as an operand punctuation character.
652         Set up mips_flag_delayed_branch.
653         (print_operand): Handle '/'.
654         (mips_output_function_prologue): Put the whole function in
655         .set noreorder and .set nomacro if all_noreorder_p is true.
656         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
657         (mips16_optimize_gp): Remove "first insn" parameter.
658         (mips16_lay_out_constants): New function, split out from mips_reorg.
659         (mips_avoid_hazard, mips_avoid_hazards): New functions.
660         (mips_reorg): For mips16 code, call mips16_lay_out_constant
661         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
662         do delayed-branch scheduling followed by hazard detection.
663         (mips_adjust_insn_length): Only account for hazards if
664         !ignore_hazard_length_p.
665         (mips_output_load_label): Add a nop to the o32 sequence if
666         the target suffers from load delays.
667         (mips_output_conditional_branch): Add %/ to the end of branches.
668         (mips_output_division): Fill the branch delay slot with %#.
669         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
670         instructions.  End all other %* branches with %/.
671         (ffssi2, ffsdi2): Fix lengths.
672         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
673         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
674         (fix_truncsfsi2_macro): Likewise.
675         (mov_lwl): Set hazard to "none".
676         (ashldi3_internal): Fill the branch delay slot with %#.
677         (ashrdi3_internal, lshrdi3_internal): Likewise.
678         (exception_receiver): Explicitly set $28.
679         (hazard_nop): New pattern.
680
681 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
682
683         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
684         before calling tree_inlinable_function_p.
685
686 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
687
688         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
689         <internal/stdio_core.h> too.
690         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
691         <internal/wchar_core.h> too.
692         Substitute va_list uses in inline definition.
693         * fixinc/fixincl.x: Regenerate.
694
695 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
696
697         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
698         Undef before redefinition.
699         (LABEL_AFTER_LOC): Likewise.
700         (DEFAULT_SIGNED_CHAR): Likewise.
701         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
702         Fix IRIX spelling.
703
704         * config/mips/iris3.h: Remove, unused.
705         * config/mips/iris4.h: Likewise.
706
707         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
708
709         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
710         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
711         target_cpu_default.
712
713         * config/mips/iris5.h: Move explicit includes ...
714         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
715
716         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
717         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
718         tm_defines.
719
720         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
721         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
722         target_cpu_default.
723
724         * config/mips/iris6.h: Fix IRIX spelling.
725         (MULTILIB_DEFAULTS): Undef before redefinition.
726
727         * config/mips/iris6.h: Move explicit includes ...
728         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
729
730 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
731
732         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
733         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
734         Use next_needed field instead of aux to maintain the queue.
735         * cgraph.h (cgraph_node): Add next_needed.
736         (cgraph_varpool_node): Add next_needed; remove aux.
737         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
738
739 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
740
741         * cgraphunit.c (cgraph_finalize_function): Set finalized.
742         (cgraph_finalize_function): Do not examine inlinablility.
743         (cgraph_finalize_compilation_unit): Do it here.
744         * cgraph.h (cgraph_local_info): Add finalized field.
745
746 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
747
748         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
749         (gt_pch_restore): Likewise.
750
751 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
752
753         * config/alpha/alpha.c: Fix comment typos.
754         * config/alpha/elf.h: Likewise.
755         * config/arm/arm.c: Likewise.
756         * config/arm/arm.h: Likewise.
757         * config/arm/arm.md: Likewise.
758         * config/arm/t-arm-coff: Likewise.
759         * config/arm/t-strongarm-pe: Likewise.
760         * config/arm/xscale-elf.h: Likewise.
761         * config/avr/avr.h: Likewise.
762
763 2003-07-01  Jeff Law  <law@redhat.com>
764
765         * stmt.c (any_pending_cleanups): Remove another redundant test.
766
767 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
768             J"orn Rennecke <joern.rennecke@superh.com>
769
770         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
771         for MEM case.
772
773 2003-07-01  Devang Patel  <dpatel@apple.com>
774
775         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
776         (binclstatus): New.
777         (struct dbx_file): New members - bincl_status, pending_bincl_name and
778         prev.
779         (pending_bincls): New.
780         (dbxout_init): Initialize new dbx_file members.
781         (dbxout_start_source_file): Same.
782         (emit_bincl_stab): New function.
783         (emit_pending_bincls): Same.
784         (emit_pending_bincls_if_required): Same.
785         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
786         processed.
787         (dbxout_begin_block): Emit pending BINCL stabs.
788         (dbxout_end_block): Same.
789         (dbxout_function_decl): Same.
790         (dbxout_continue): Same.
791         (dbxout_type): Same.
792         (dbxout_class_name_qualifiers): Same.
793         (dbxout_symbol): Same.
794         (dbxout_symbol_location): Same.
795         (dbxout_parms): Same.
796
797 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
798
799         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
800         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
801
802 2003-07-01  Andreas Jaeger  <aj@suse.de>
803
804         * fold-const.c: Convert prototypes to ISO C90.
805         * function.c: Likewise.
806         * function.h: Likewise.
807
808 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
809
810         * doc/contrib.texi: Fix typos.
811         * doc/invoke.texi: Likewise.
812         * doc/passes.texi: Likewise.
813         * doc/sourcebuild.texi: Likewise.
814         * doc/tm.texi: Likewise.
815
816 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
817
818         * basic-block.h: Fix comment typos.
819         * bb-reorder.c: Likewise.
820         * c-format.c: Likewise.
821         * cfgcleanup.c: Likewise.
822         * cfghooks.h: Likewise.
823         * cfgloop.c: Likewise.
824         * cfgloopmanip.c: Likewise.
825         * cfgrtl.c: Likewise.
826         * cgraph.h: Likewise.
827         * cgraphunit.c: Likewise.
828         * combine.c: Likewise.
829         * convert.c: Likewise.
830         * dbxout.c: Likewise.
831         * df.c: Likewise.
832         * df.h: Likewise.
833         * diagnostic.c: Likewise.
834         * dwarf2out.c: Likewise.
835         * et-forest.h: Likewise.
836         * flow.c: Likewise.
837         * fold-const.c: Likewise.
838         * function.h: Likewise.
839         * gcov-io.h: Likewise.
840         * gcov.c: Likewise.
841         * gcse.c: Likewise.
842         * genautomata.c: Likewise.
843         * ggc-common.c: Likewise.
844         * ggc-page.c: Likewise.
845         * loop-unroll.c: Likewise.
846         * loop-unswitch.c: Likewise.
847         * loop.c: Likewise.
848         * mips-tfile.c: Likewise.
849         * optabs.c: Likewise.
850         * ra-build.c: Likewise.
851         * ra-colorize.c: Likewise.
852         * ra-rewrite.c: Likewise.
853         * ra.h: Likewise.
854         * regmove.c: Likewise.
855         * reload.c: Likewise.
856         * rtlanal.c: Likewise.
857         * sched-ebb.c: Likewise.
858         * sched-int.h: Likewise.
859         * sched-vis.c: Likewise.
860         * sreal.c: Likewise.
861         * ssa-ccp.c: Likewise.
862         * ssa.c: Likewise.
863         * toplev.c: Likewise.
864         * tree-inline.c: Likewise.
865         * value-prof.c: Likewise.
866         * value-prof.h: Likewise.
867
868 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
869
870         * rtl.h (emit_line_note_after): Remove.
871         (emit_note_copy_after, emit_note_copy): New.
872         * emit-rtl.c (reorder_insns_with_line_notes): Replace
873         emit_line_note_after with emit_note_copy_after.
874         (emit_insn_after_with_line_notes): Likewise.
875         (emit_line_note_after): Kill.
876         (emit_note_copy_after): New.
877         (emit_note_copy): New.
878         * function.c (emit_return_into_block): Use emit_note_copy_after.
879         (thread_prologue_and_epilogue_insns): Likewise.
880         * integrate.c (expand_inline_function): Use emit_note_copy.
881         (copy_insn_list): Likewise.
882         * unroll.c (copy_loop_body): Likewise.
883         * cfglayout.c (duplicate_insn_chain): Likewise.
884
885 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
886
887         * c-tree.h (define_label): Replace filename and lineno arguments
888         with a location_t.
889         * c-decl.c (poplevel): Adjust define_label call.
890         (pop_label_level): Likewise.
891         (define_label): Replace filename and lineno arguments with a
892         location_t.
893         (store_parm_decls): Use DECL_SOURCE_LOCATION.
894         * c-parse.in (label): Adjust define_label call.
895
896 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
897
898         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
899         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
900         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
901         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
902         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
903
904 2003-07-01  Andreas Jaeger  <aj@suse.de>
905
906         * final.c: Convert prototypes to ISO C90.
907         * flow.c: Likewise.
908         * flags.h: Likewise.
909         * gcov-io.c: Likewise.
910         * gcov-io.h: Likewise.
911
912 2003-06-30  Bruno Haible  <bruno@clisp.org>
913
914         PR middle-end/6578
915         * libgcc2.c (__subvsi3): Remove simplification that would not work
916         when subtracting -0x80000000.
917         (__subvdi3): Remove simplification that would return a wrong result.
918         (__mulvsi3): Fix overflow check.
919         (__absvdi2): Fix simplification that would return a wrong result.
920         (__mulvdi3): Fix overflow check.
921
922 2003-06-30  Jeff Law  <law@redhat.com>
923
924         * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
925         was always passed in the value '1'.  Simplify body appropriately.
926         * tree.h (any_pending_cleanups): Corresponding changes.
927         * calls.c: (expand_call): Corresponding changes.
928
929 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
930
931         * combine.c (distribute_notes): Don't bother REG_WAS_0.
932         * cse.c (cse_insn): Likewise.
933         * final.c (final_scan_insn): Likewise.
934         * jump.c (duplicate_loop_exit_test): Likewise.
935         * rtl.c (reg_note_name): Remove REG_WAS_0.
936         * rtl.h (REG_WAS_0): Remove.
937         * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
938         * config/avr/avr.c (output_movqi): Don't use reg_was_0.
939         (output_movhi): Likewise.
940         (output_movsisf): Likewise.
941         (reg_was_0): Remove.
942         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
943         REG_WAS_0.
944         (m68hc11_gen_movqi): Likewise.
945         * config/vax/vax-protos.h: Remove the prototype for
946         reg_was_0_p.
947         * config/vax/vax.c (follows_p): Remove.
948         (reg_was_0_p): Likewise.
949         * config/vax/vax.md (movsi): Don't use reg_was_0_p.
950         (movhi): Likewise.
951         (movqi): Likewise.
952         * doc/rtl.texi (REG_WAS_0): Remove.
953
954 2003-06-30  Mark Mitchell  <mark@codesourcery.com>
955
956         * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
957
958 2003-06-30  Bob Wilson  <bob.wilson@acm.org>
959
960         * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
961         top-level include directory.
962         * config/xtensa/lib2funcs.S: Likewise.
963         * config/xtensa/xtensa.h: Likewise.
964         * config/xtensa/xtensa-config.h: Remove.
965         * doc/install.texi: Update location of "xtensa-config.h" header.
966
967 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
968
969         * config/s390/s390.c (s390_extra_constraint): New function.
970         * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
971         * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
972         * config/s390/s390.c (q_constraint): Remove.
973         * config/s390/s390-protos.h (q_constraint): Likewise.
974         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
975         (EXTRA_ADDRESS_CONSTRAINT): Define.
976
977         * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
978         (DISP_IN_RANGE, s390_short_displacement): New.
979         (legitimate_reload_operand_p): Support long displacements.
980         (s390_decompose_address): Likewise.
981         (legitimize_pic_address): Likewise.
982         (legitimize_address): Likewise.
983         (s390_fixup_clobbered_return_reg): Likewise.
984         (s390_emit_prologue, s390_emit_epilogue): Likewise.
985         (s390_output_mi_thunk): Likewise.
986
987         * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
988         (attr "atype", attr "length"): Add defaults for new op_types.
989         (all insns): Change op_type attribute where appropriate.
990
991         ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
992         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
993         "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
994         "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
995         "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
996         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
997         "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
998         "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
999         "*movdf_64", "*movdf_31", "*movsf",
1000         "*load_multiple_si", "*store_multiple_di",
1001         "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
1002         "*la_64", "*la_31", "*la_31_and", "force_la_31",
1003         "*addsi3_carry1_cc", *addsi3_carry1_cconly",
1004         "*addsi3_carry2_cc", *addsi3_carry2_cconly",
1005         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
1006         "*addsi3_sign", "*addsi3_sub", "addsi3",
1007         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
1008         "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
1009         "mulsi3"
1010         "*andsi3_cc", "*andsi3_cconly", "andsi3",
1011         "*andqi3_ss", "*andqi3_ss_inv",
1012         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
1013         "*iorqi3_ss", "*iorqi3_ss_inv",
1014         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
1015         "*xorqi3_ss", "*xorqi3_ss_inv",
1016         "*tls_load_31"): Add alternatives for long-displacement instructions.
1017
1018         ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
1019         "*load_multiple_di", "*store_multiple_di",
1020         "*sethighqidi_64", "*zero_extendhisi2_31",
1021         "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
1022         "adddf3", "*adddf3", "*adddf3_ibm",
1023         "addsf3", "*addsf3", "*addsf3_ibm",
1024         "subdf3", "*subdf3", "*subdf3_ibm",
1025         "subsf3", "*subsf3", "*subsf3_ibm",
1026         "mulsi_6432", "divmoddisi3",
1027         "muldf3", "*muldf3", "*muldf3_ibm",
1028         "mulsf3", "*mulsf3", "*mulsf3_ibm",
1029         "divdf3", "*divdf3", "*divdf3_ibm",
1030         "divsf3", "div*sf3", "*divsf3_ibm",
1031         "sqrtdf2", "sqrtsf2",
1032         "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
1033         "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
1034         "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
1035         and address constraints for instructions that do not accept long
1036         displacements.
1037
1038 2003-06-30  Hartmut Penner  <hpenner@de.ibm.com>
1039             Ulrich Weigand  <uweigand@de.ibm.com>
1040
1041         * config/s390/2084.md: New file.
1042         * config/s390/s390.md: Include it.
1043         * config/s390/s390.c (s390_adjust_priority): New function.
1044         (TARGET_SCHED_ADJUST_PRIORITY): Define.
1045         (s390_first_cycle_multipass_dfa_lookahead): New function.
1046         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1047         (s390_sched_reorder2): New function.
1048         (TARGET_SCHED_REORDER2): Define.
1049         (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
1050         (s390_issue_rate): Likewise.
1051
1052 Mon Jun 30 23:47:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
1053
1054         * Makefile.in (GTFILES): Add cgraph.h.
1055         * cgraph.c (known_decls): Remove.
1056         (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
1057         cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
1058         (cgraph_node): Do not allocate known_decls; use polutate hashtable.
1059         (cgraph_varpool_node): Likewise; add next pointer.
1060         (cgraph_varpool_nodes): New static variable.
1061         * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
1062         cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
1063         cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
1064         * gengtype.c (open_base_files): Include cgraph.h
1065
1066 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1067
1068         * Changelog: Remove ">>>>>>>" from previous change.
1069
1070 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1071
1072         * config/cris/cris.c: Fix spelling for "testcase".
1073         * config/cris/cris.h: Likewise.
1074         * config/cris/cris.md: Likewise.
1075         * config/mmix/crti.asm: Likewise.
1076         * config/mmix/mmix.h: Likewise.
1077         * config/mmix/mmix.md: Likewise.
1078
1079 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
1080
1081         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
1082         1.
1083
1084 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
1085
1086         * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
1087         --with-mode configure options.
1088         * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
1089         (DRIVER_SELF_SPECS): Define.
1090         * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
1091         architecture to assembler.
1092         (LINK_SPEC): Merge 31-bit and 64-bit variants.
1093         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
1094         * config/s390/s390.c (override_options): New default rules for
1095         architecture mode and cpu architecture selection.
1096         * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
1097         new default rules.
1098
1099         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
1100         * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
1101         * config/s390/s390.c (override_options): Add "z990" to
1102         processor_alias_table.
1103         * doc/invoke.texi (-march): Document "z990" processor type.
1104
1105         * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
1106         * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
1107         (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
1108         TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
1109         * config/s390/s390.c (override_options): Replace enum pta_flags by
1110         enum processor_flags.  Fill in s390_tune_flags and s390_arch_flags.
1111
1112         * config/s390/s390.c (s390_cpu): Rename to ...
1113         (s390_tune): ... this.
1114         * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
1115         * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
1116         * config/s390/s390.md (attr "cpu"): Likewise.
1117
1118 2003-06-30  Neil Booth  <neil@daikokuya.co.uk>
1119
1120         * c-common.c (enum c_language_kind, flag_objc): Remove.
1121         (fix_string_type, check_case_value, c_common_nodes_and_builtins,
1122         c_add_case_label, finish_label_addr_expr, boolean_increment):
1123         Use c_dialect_ macros.
1124         * c-common.h (enum c_language_kind): Extend.
1125         (c_dialect_cxx, c_dialect_objc): New.
1126         (flag_objc): Remove.
1127         (c_common_init_options): Update prototype.
1128         * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
1129         macros.
1130         * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
1131         macros.
1132         * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
1133         * c-lang.c (c_init_options): Remove.
1134         (c_language): Define.
1135         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1136         * c-lex.c (lex_charconst): Use c_dialect_ macros.
1137         * c-opts.c (lang_flags): Make function-local.
1138         (c_common_init_options): Use c_dialect_ macros.  Handle
1139         C++ diagnostic requirements.
1140         (c_common_handle_option, c_common_post_options): Use flag_cxx.
1141         * c-parse.in (init_reswords): Use c_dialect_objc ().
1142         * c-pch.c (get_ident): Use c_language.
1143         * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
1144         * c-typeck.c (comptypes, build_c_cast): Similarly.
1145         * objc/objc-lang.c (c_language): Define.
1146         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1147         (objc_init_options): Remove.
1148
1149 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
1150
1151         * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
1152         * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
1153
1154 2003-06-30  Wolfgang Bangerth  <bangerth@dealii.org>
1155
1156         * doc/sourcebuild.texi: Don't reference gnats.html any more.
1157
1158 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
1159
1160         * config/h8300/h8300.c (compute_mov_length): Fix length of
1161         mov:SF on H8/300.
1162
1163 2003-06-30  Nick Clifton  <nickc@redhat.com>
1164
1165         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
1166         constant.
1167
1168 Mon Jun 30 15:36:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
1169
1170         (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
1171
1172 2003-06-30 Hartmut Penner  <hpenner@de.ibm.com>
1173
1174         * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
1175         (altivec_in_gprs_p): New function.
1176
1177         * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
1178         prototype.
1179         (altivec_in_gprs_p): New prototype.
1180
1181         * config/rs6000/altivec.md (*movv4si_internal): Change
1182         multi-assembler alternative to '#'. Add postreload splitter to
1183         handle this cases.
1184         (*movv4hi_internal): Likewise.
1185         (*movv4qi_internal): Likewise.
1186         (*movv4sf_internal): Likewise.
1187
1188 2003-06-30  Jason Merrill  <jason@redhat.com>
1189
1190         * defaults.h (PUSH_ARGS_REVERSED): Define default here.
1191         * calls.c: Not here.
1192
1193 2003-06-30  Ben Elliston  <bje@wasabisystems.com>
1194
1195         * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
1196         (bad_signed_byte_operand): Likewise.
1197         (arm_output_epilogue): Likewise.
1198         (arm_final_prescan_insn): Likewise.
1199
1200 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1201
1202         * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
1203
1204 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1205
1206         * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
1207         subsequent writes.
1208
1209 Mon Jun 30 10:03:02 CEST 2003  Jan Hubicka  <jh@suse.cz>
1210
1211         * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
1212         in cfglayout mode.
1213
1214 Mon Jun 30 09:52:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
1215
1216         * i386.c (standard_80387_constant_p): Accept TFmode constants too.
1217         (init_ext_80387_constants): Likewise.
1218         (standard_80387_constant_rtx): Likewise.
1219         * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
1220         (atantf): Disable for !TARGET_128BIT_LONG_LONG
1221         (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
1222         (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
1223         (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
1224         (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
1225         (frndinttf2): New.
1226         (f2xm1tf2): New.
1227         (exp?f2): Use expsf2_tf when needed.
1228         (exp?f2_tf): New.
1229         (exptf): New.
1230
1231 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
1232
1233         * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
1234         statement from tmake_file set.
1235
1236 2003-06-29  James E Wilson  <wilson@tuliptree.org>
1237
1238         * reload.c (find_reloads): Change push_reloads to push_reload in
1239         comment.
1240         * reload1.c (eliminate_regs): Likewise.
1241         (dump_needs): Delete prototype for deleted function.
1242
1243 2003-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1244
1245         * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
1246         format attributes.
1247         * c-format.c (enum format_type): Add gcc_diag_format_type,
1248         gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
1249         (gcc_diag_length_specs, gcc_cdiag_length_specs,
1250         gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
1251         gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
1252         gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
1253         gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
1254         (format_types_orig): Add new data.
1255         (find_char_info_specifier_index, init_dynamic_diag_info): New
1256         functions.
1257         (handle_format_attribute): Update to handle new format attributes.
1258
1259 2003-06-29  Aaron W. LaFramboise  <awlaframboise@aol.com>
1260
1261         * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
1262
1263 2003-06-29  Dara Hazeghi  <dhazeghi@yahoo.com>
1264
1265         * doc/install.texi: Remove install documentation for obsoleted targets
1266         i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
1267         arm-*-aof.
1268         Update information about IA64 toolchain, AIX make requirements,
1269         and binutils for m68k-*-hpux and *-*-linuxaout targets.
1270
1271 Mon Jun 30 00:50:43 CEST 2003  Jan Hubicka  <jh@suse.cz>
1272
1273         * regmove.c (regmove_optimize): Don't try to make src and dst match
1274         when they are in different modes.
1275
1276 Sun Jun 29 23:06:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
1277
1278         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
1279         busy work when builtin is not supported by the backend.
1280
1281 2003-06-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1282
1283         * loop.c (count_one_set): Fix detection of registers set in more
1284         than one basic block.
1285
1286 2003-06-29  Andreas Jaeger  <aj@suse.de>
1287
1288         * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
1289         * system.h: Poison OBJ_FORMAT_ROSE.
1290         * doc/tm.texi (Macros for Initialization): Remove documentatin of
1291         OBJECT_FORMAT_ROSE.
1292         * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
1293         * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
1294
1295 2003-06-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1296
1297         * pa.c (update_total_code_bytes): New function.
1298         (last_address): Number of bytes output for a function and its
1299         associated thunks.
1300         (compute_frame_size): Use BITS_PER_UNIT.
1301         (pa_output_function_epilogue): Compute last_address.  Use
1302         update_total_code_bytes.
1303         (output_lbranch): Handle long branch on portable runtime.
1304         (attr_length_millicode_call, attr_length_call,
1305         attr_length_indirect_call): Only use total_code_bytes for calls in
1306         the text section.
1307         (output_call): Only use an indirect call sequence when the target is
1308         not local.
1309         (pa_asm_output_mi_thunk): Handle updating of total_code_bytes.  Improve
1310         test to determine when an IA-relative branch can be used.  Add various
1311         long branch sequences.  Avoid using an indirect branch on all ports
1312         except SOM.
1313
1314 2003-06-29  Ulrich Weigand  <uweigand@de.ibm.com>
1315
1316         * expr.c (clear_by_pieces): Fix prototype.
1317
1318 2003-06-29  Andreas Jaeger  <aj@suse.de>
1319
1320         * cse.c: Convert prototypes to ISO C90.
1321         * cselib.c: Likewise.
1322         * cselib.h: Likewise.
1323         * dbxout.c: Likewise.
1324         * debug.c: Likewise.
1325         * df.c: Likewise.
1326         * df.h: Likewise.
1327         * dojump.c: Likewise.
1328         * doloop.c: Likewise.
1329         * dominance.c: Likewise.
1330         * dwarf2asm.c: Likewise.
1331         * dwarf2out.c: Likewise.
1332         * dwarf2out.h: Likewise.
1333         * dwarfout.c: Likewise.
1334         * except.c: Likewise.
1335         * except.h: Likewise.
1336         * emit-rtl.c: Likewise.
1337         * et-forest.c: Likewise.
1338         * et-forest.h: Likewise.
1339         * except.c: Likewise.
1340         * explow.c: Likewise.
1341         * expmed.c: Likewise.
1342         * expr.c: Likewise.
1343         * expr.h: Likewise.
1344
1345 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
1346
1347         * alloc-pool.c: Fix comment formatting.
1348         * bitmap.c: Likewise.
1349         * bitmap.h: Likewise.
1350         * bt-load.c: Likewise.
1351         * builtins.c: Likewise.
1352         * caller-save.c: Likewise.
1353         * cfganal.c: Likewise.
1354         * cfgrtl.c: Likewise.
1355         * collect2.c: Likewise.
1356         * cse.c: Likewise.
1357         * df.c: Likewise.
1358         * diagnostic.c: Likewise.
1359         * dwarf2out.c: Likewise.
1360         * dwarfout.c: Likewise.
1361         * expmed.c: Likewise.
1362         * final.c: Likewise.
1363         * flags.h: Likewise.
1364         * fold-const.c: Likewise.
1365         * gcc.c: Likewise.
1366         * gcov-io.h: Likewise.
1367         * gcov.c: Likewise.
1368         * genattrtab.c: Likewise.
1369         * genautomata.c: Likewise.
1370         * libgcov.c: Likewise.
1371         * mips-tfile.c: Likewise.
1372         * optabs.c: Likewise.
1373         * prefix.c: Likewise.
1374         * rtlanal.c: Likewise.
1375         * stmt.c: Likewise.
1376         * stor-layout.c: Likewise.
1377         * toplev.c: Likewise.
1378         * varasm.c: Likewise.
1379         * vmsdbgout.c: Likewise.
1380
1381 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
1382
1383         * expr.c (emit_single_push_insn): If padding is needed
1384         downward, adjust the stack pointer first, and then store the
1385         data into the stack location using an offset.
1386
1387 2003-06-29  Andreas Jaeger  <aj@suse.de>
1388
1389         * collect2.h: Convert prototypes to ISO C90.
1390         * collect2.c: Likewise.
1391         * conflict.c: Likewise.
1392         * coverage.c: Likewise.
1393         * convert.h: Likewise.
1394         * convert.c: Likewise.
1395
1396 2003-06-29  Nathan Sidwell  <nathan@codesourcery.com>
1397
1398         * c-decl.c (c_init_decl_processing): Use a location_t. Set input
1399         filename to <internal>.
1400         * tree.c (make_node): Just copy the current location.
1401
1402 2003-06-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
1403
1404         PR optimization/11210
1405         * fold-const (decode_field_reference): Revert 2003-06-26 patch.
1406
1407 2003-06-29  Neil Booth  <neil@daikokuya.co.uk>
1408
1409         * toplev.c (flag_dummy): Remove.
1410         (f_options): Restore flag pointers.
1411
1412 2003-06-29  David Edelsohn  <edelsohn@gnu.org>
1413
1414         * config/rs6000/rs6000.c (processor_target_table): Add 970.
1415         * config.gcc: Add 970.
1416
1417 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
1418
1419         * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
1420         -1) with ggc_strdup.
1421         * stmt.c (expand_asm_operands): Likewise.
1422         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
1423
1424 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1425
1426         * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
1427         definition.
1428
1429 2003-06-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1430
1431         * opts.c: Include insn-attr.h.
1432         * Makefile.in (opts.o): Depend on INSN_ATTR_H.
1433
1434 2003-06-27  J"orn Rennecke <joern.rennecke@superh.com>
1435
1436         * flow.c (propagate_one_insn): Use proper test for a register
1437         being part of the return value.
1438
1439 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1440
1441         * config/avr/avr.c: Fix a comment typo.
1442
1443 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1444
1445         * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
1446         with avr_simplify_comparison_p.
1447         * config/avr/avr.c: Likewise.
1448
1449 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1450
1451         * builtins.c: Follow spelling conventions.
1452         * cgraph.c: Likewise.
1453         * cpplex.c: Likewise.
1454         * config/arm/arm.c: Likewise.
1455         * config/arm/iwmmxt.md: Likewise.
1456         * config/c4x/c4x-modes.def: Likewise.
1457         * config/c4x/c4x.c: Likewise.
1458         * config/c4x/c4x.h: Likewise.
1459         * config/c4x/c4x.md: Likewise.
1460         * config/i386/i386-interix.h: Likewise.
1461         * config/mips/mips.h: Likewise.
1462
1463 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
1464
1465         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
1466         __mc68020__ on TARGET_68020.
1467
1468 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1469
1470         * config/h8300/h8300.c: Fix a comment typo.
1471
1472 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
1473
1474         * c-parse.in (yylexstring): Use a location_t.
1475
1476         * diagnostic.h (diagnostic_set_info): Replace file and lineno
1477         parameters with a location_t.
1478         * diagnostic.c (diagnostic_set_info): Replace file and lineno
1479         parameters with a location_t.
1480         (inform, warning, pedwarn, error, sorry, fatal_error,
1481         internal_error, warning_with_decl, pedwarn_with_decl,
1482         error_with_decl): Adjust.
1483         * c-error.c (pedwarn_c99): Adjust.
1484         * c-format.c (status_warning): Adjust.
1485         * rtl-error.c (file_and_line_for_asm): Rename to ...
1486         (location_for_asm): Return a location_t.
1487         (diagnostic_for_asm): Adjust.
1488
1489 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
1490
1491         * cpptrad.c (skip_macro_block_comment): New.
1492         (copy_comment): Use it if appropriate.
1493
1494 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1495
1496         * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
1497         definition.
1498         (store_killed_in_insn): Likewise.
1499         * print-rtl.c (print_rtx): Likewise.
1500         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1501         * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
1502         (m68hc11_reassign_regs): Likewise.
1503         (m68hc11_reorg): Likewise.
1504
1505 2003-06-28  Gabriel Dos Reis <gdr@integrable-solutions.net>
1506
1507         * diagnostic.c (output_integer_with_precision): New macro.
1508         (output_format): Use it.  Handle more format specifiers.
1509         (output_long_decimal): Remove.
1510         (output_unsigned_decimal): Likewise.
1511         (output_long_unsigned_decimal): Likewise.
1512         (output_octal): Likewise.
1513         (output_long_octal): Likewise.
1514         (output_hexadecimal): Likewise.
1515         (output_long_hexadecimal): Likewise.
1516         (output_long_long_decimal): Likewise.
1517
1518 2003-06-28  Andreas Schwab  <schwab@suse.de>
1519
1520         * config/ia64/ia64.md: Follow recent emit_note API change.
1521
1522 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
1523
1524         * c-parse.in (%union): Replace filename & lineno with location.
1525         (save_filename, save_lineno): Remove.
1526         (save_location): New.
1527         (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
1528         nested_function, notype_nested_function, if_prefix, lineno_stmt,
1529         lineno_label, label): Adjust.
1530
1531 2003-06-28  Jakub Jelinek  <jakub@redhat.com>
1532
1533         * builtins.c (c_strlen): Add only_value argument.
1534         Handle COND_EXPR and COMPOUND_EXPR.
1535         (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
1536         Adjust c_strlen callers.
1537         (expand_builtin_strcpy, expand_builtin_strncpy,
1538         expand_builtin_strcmp, expand_builtin_strncmp,
1539         expand_builtin_fputs, expand_builtin_sprintf,
1540         fold_builtin): Adjust c_strlen callers.
1541
1542 2003-06-28  Josef Zlomek  <zlomekj@suse.cz>
1543
1544         * bb-reorder.c (find_traces_1_round): Do not send basic block
1545         to next round when we are in the last round.
1546
1547 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
1548
1549         * Makefile.in: Update.
1550         * opts.c: Include tm_p.h.
1551         (handle_options): Make static.
1552         (decode_options): Copied from toplev.c.
1553         * opts.h (decode_options): New.
1554         * toplev.c (parse_options_and_default_flags): Move most to opts.c,
1555         some to...
1556         (general_init): ...here.
1557         (toplev_main): Use decode_options instead.
1558         * toplev.h (save_argc, save_argv): New.
1559
1560 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
1561
1562         * explow.c (find_next_ref): Remove.
1563         * rtl.h: Remove the prototype for find_next_ref.
1564
1565 2003-06-27  Roger Sayle  <roger@eyesopen.com>
1566
1567         * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
1568         call to match recent API change.
1569
1570 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
1571
1572         * dbxout.c (flag_debug_only_used_symbols): Delete redundant
1573         declaration.
1574
1575         * c-format.c (check_format_string, get_constant)
1576         * cfgrtl.c (rtl_split_edge):
1577         Mark the definition static, matching the forward declaration.
1578
1579 2003-06-27  Gunther Nikl <gni@gecko.de>
1580
1581         * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
1582
1583         PR target/11014
1584         * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
1585         syntax for MIT / MOTOROLA.
1586
1587         PR other/10240
1588         * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
1589         * configure: Rebuilt.
1590
1591 2003-06-27  Chris Demetriou  <cgd@broadcom.com>
1592
1593         * config/mips/mips.c (mips_build_va_list): Make padding in
1594         va_list structure explicit to avoid -Wpadded warnings.
1595
1596 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
1597
1598         * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
1599         * config/s390/s390.c (s390_secondary_output_reload_class): New function.
1600         * config/s390/s390-protos.h (s390_secondary_output_reload_class):
1601         Declare it.
1602         * config/s390/s390.md ("reload_outti", "reload_outdi",
1603         "reload_outdf"): New expanders.
1604
1605         * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
1606         memory operands as source.
1607         ("movdi" + splitters): Likewise.
1608         ("movdf" + splitters): Likewise.
1609         * config/s390/s390.c (s390_split_ok_p): New function.
1610         * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
1611
1612 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1613
1614         * combine.c (force_to_mode): Replace the equality comparison
1615         of INTVALs with a pointer equality comparison.
1616         (simplify_comparison): Likewise.
1617
1618 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1619
1620         * jump.c (rtx_renumbered_equal_p): Replace an expression that
1621         is known to be 0 with 0.
1622
1623 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1624
1625         * gcse.c (expr_equiv_p): Replace expressions that are known to
1626         be 0 with 0.
1627
1628 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1629
1630         * cse.c (fold_rtx): Replace the equality comparison of INTVALs
1631         with a pointer equality comparison.
1632
1633 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1634
1635         * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
1636         are known to be not equivalent.
1637
1638 2003-06-27  Richard Henderson  <rth@redhat.com>
1639
1640         * config/alpha/alpha.c (function_arg): Don't pass small aggregates
1641         in floating point registers.  Validate that we don't receive complex
1642         values here.  Use #elif.
1643         (return_in_memory, function_value): New.
1644         (alpha_va_arg): Handle complex values as two arguments.
1645         * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
1646         (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
1647         (SPLIT_COMPLEX_ARGS): New.
1648         * config/alpha/alpha-protos.h: Update.
1649
1650 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
1651
1652         * ggc-page.c (inverse_table): Change type of mult to size_t.
1653         (compute_inverse): Compute inverse using size_t, not unsigned int.
1654         Compute inverse also for sizes larger than half a machine page.
1655
1656 Fri Jun 27 18:36:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
1657
1658         * toplev.c (rest_of_decl_compilation):  Only varpoolize argument
1659         when called before cgraph_optimize.
1660
1661 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
1662
1663         * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
1664         * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
1665         be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
1666
1667 Fri Jun 27 17:41:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
1668
1669         * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
1670         of known_decls.
1671
1672 2003-06-27  Hans-Peter Nilsson  <hp@axis.com>
1673
1674         * defaults.h (REGISTER_MOVE_COST): Define default here.
1675         * regclass.c: Don't define default REGISTER_MOVE_COST here.
1676         * reload.c, reload1.c: Ditto.
1677
1678 2003-06-27  Richard Earnshaw <rearnsha@arm.com>
1679
1680         * flags.h: Really install previous change.
1681
1682 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1683
1684         * rtl.h (emit_note): Remove FILE parameter.
1685         * emit-rtl.c (emit_line_note): Adjust emit_note call.
1686         (emit_note): Remove FILE parameter. Adjust.
1687         * builtins.c (expand_builtin_expect): Adjust emit_note call.
1688         * c-semantics.c (genrtl_scope_stmt): Likewise.
1689         (expand_stmt): Likewise.
1690         * cfglayout.c (reemit_insn_block_notes): Likewise.
1691         (duplicate_insn_chain): Likewise.
1692         * except.c (expand_eh_region_start, expand_eh_region_end,
1693         sjlj_emit_function_enter): Likewise.
1694         * explow.c (probe_stack_range): Likewise.
1695         * expr.c (emit_block_move_via_loop): Likewise.
1696         * function.c (init_function_start, expand_function_start,
1697         expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
1698         * integrate.c (expand_inline_function, copy_insn_list): Likewise.
1699         * reg-stack.c (compensate_edge): Likewise.
1700         * reload1.c (reload): Likewise.
1701         * rtlanal.c (hoist_insn_to_edge): Likewise.
1702         * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
1703         expand_loop_continue_here, expand_end_loop, expand_continue_loop,
1704         expand_exit_loop_top_cond, expand_value_return,
1705         expand_start_bindings_and_block, expand_end_bindings,
1706         expand_decl_cleanup, expand_start_case): Likewise.
1707         * unroll.c (copy_loop_body
1708         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
1709         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1710         * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
1711         rs6000_emit_allocate_stack, rs6000_output_function_prologue,
1712         rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
1713         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1714         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1715
1716 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1717
1718         * c-tree.h (grokfield): Remove unused filename and line parameters.
1719         * c-decl.c (grokfield): Remove unused filename and line parameters.
1720         * c-parse.in (component_decl): Adjust field grokking rules, adjust
1721         grokfield calls.
1722         (component_declarator): Likewise.
1723         (component_notype_declarator): Likewise.
1724         * objc/objc-act.c (build_module_descriptor): Adjust grokfield
1725         calls.
1726         (build_protocol_template, build_method_prototype_list_template,
1727         build_method_prototype_template, build_category_template,
1728         build_selector_template, build_class_template,
1729         build_super_template, build_ivar_template,
1730         build_ivar_list_template, build_method_list_template,
1731         build_method_template, add_instance_variable): Likewise.
1732
1733 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
1734
1735         * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
1736         OP2 are known to be not equivalent.
1737
1738 2003-06-26  Devang Patel <dpatel@apple.com>
1739
1740         * final.c (debug_flush_symbol_queue): New function.
1741         (debug_queue_symbol): New function.
1742         (debug_free_queue): New function.
1743         (debug_nesting): New variable.
1744         (symbol_queue): New variable.
1745         (symbol_queue_index): Same.
1746         (symbol_queue_size): Same.
1747         * debug.h (debug_flush_symbol_queue): New.
1748         (debug_queue_symbol): New.
1749         (debug_free_queue): New.
1750         (debug_nesting): New.
1751         (symbol_queue_index): New.
1752         * dbxout.c (DBXOUT_DECR_NESTING): New macro.
1753         (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
1754         (dbxout_init): Delay symbol output.
1755         (dbxout_global_decl): Save, set and reset TREE_USED bit around
1756         dbxout_symbol() call.
1757         (dbxout_begin_function): Same.
1758         (dbxout_finish): Free symbol queue.
1759         (dbxout_type): Put appropriate symbols in queue.
1760         (dbxout_symbol): Put info for symbol's type in queue.
1761         Decrement/Increment nesting counts flush symbol queue appropriately.
1762         (dbxout_parms): Increment dbxout nesting.
1763         (dbxout_reg_parms): Same.
1764         * flags.h (flag_debug_only_used_symbols): New.
1765         * toplev.c (flag_debug_only_used_symbols): New variable.
1766         (lang_independent_options): Add entries for new option
1767         -feliminate-unused-debug-symbols.
1768         * common.opt: Add entry for -feliminate-unused-debug-symbols.
1769         * opts.c (common_handle_options): Same.
1770         * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
1771         -feliminate-unused-debug-symbols.
1772         * doc/invoke.texi (Debugging Options): Document
1773         -feliminate-unused-debug-symbols.
1774
1775 2003-06-26  Roger Sayle  <roger@eyesopen.com>
1776             Jakub Jelinek  <jakub@redhat.com>
1777
1778         * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
1779         obtain the format string instead of using TREE_STRING_POINTER and
1780         TREE_STRING_LENGTH.  Only optimize sprintf(dst,"%s",src) when the
1781         return value is unused or the length of src is a known constant.
1782
1783 2003-06-26  Richard Henderson  <rth@redhat.com>
1784
1785         * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
1786
1787 2003-06-26  Richard Henderson  <rth@redhat.com>
1788
1789         * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
1790         (ia64_split_call): Only load descriptor for GP register inputs.
1791         (ia64_expand_epilogue): Check current_frame_info.mask not
1792         current_function_is_leaf to restore ar.pfs.
1793
1794 2003-06-26  Richard Henderson  <rth@redhat.com>
1795
1796         * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
1797         instead of replacing it.
1798
1799 2003-06-26  Richard Henderson  <rth@redhat.com>
1800
1801         * flow.c (propagate_one_insn): Kill function return value
1802         registers across tail calls.
1803
1804         * flow.c (propagate_one_insn): Preserve live-at-end registers
1805         across tail calls.
1806
1807 2003-06-26  J"orn Rennecke <joern.rennecke@superh.com>
1808
1809         * reload.c (can_reload_into): New function.
1810         (push_reload): Use it.
1811
1812 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1813
1814         * config/h8300/h8300.c (compute_a_rotate_length): Fix the
1815         references to the amount of a rotation.
1816
1817 2003-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1818
1819         * config/sh/coff.h: Don't include dbxcoff.h.
1820         * config.gcc: List it here.
1821
1822 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1823
1824         * postreload.c (reload_cse_simplify_set): Call cselib_lookup
1825         earlier.  Don't check if SRC is a constant.
1826
1827 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1828
1829         * Makefile.in (OBJS): Add postreload.o.
1830         Remove cselib.h from the dependency list for reload1.o.
1831         Add a dependency list for postreload.o.
1832         * reload.h: Change the comment for the prototype of
1833         reload_cse_regs.
1834         * reload1.c: Don't include cselib.h.
1835         (reload_cse_regs): Move to postreload.c
1836         (reload_cse_regs_1): Likewise.
1837         (reload_cse_noop_set_p): Likewise.
1838         (reload_cse_simplify_set): Likewise.
1839         (reload_cse_simplify_operands): Likewise.
1840         (RELOAD_COMBINE_MAX_USES): Likewise.
1841         (reload_combine_ruid): Likewise.
1842         (LABEL_LIVE): Likewise.
1843         (reload_combine): Likewise.
1844         (reload_combine_note_use): Likewise.
1845         (reload_combine_note_store): Likewise.
1846         (reg_set_luid): Likewise.
1847         (reg_offset): Likewise.
1848         (reg_base_reg): Likewise.
1849         (reg_mode): Likewise.
1850         (move2add_luid): Likewise.
1851         (move2add_last_label_luid): Likewise.
1852         (MODES_OK_FOR_MOVE2ADD): Likewise.
1853         (reload_cse_move2add): Likewise.
1854         (move2add_note_store): Likewise.
1855         (reload_cse_simplify): Likewise.
1856         * postreload.c: New.
1857
1858 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1859
1860         * config/avr/avr.c (final_prescan_insn): Remove support for
1861         -mrtl.
1862         * config/avr/avr.h (MASK_RTL_DUMP): Remove.
1863         (TARGET_RTL_DUMP): Likewise.
1864         (TARGET_SWITCHES): Remove -mrtl.
1865
1866 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
1867
1868         * config/h8300/h8300-protos.h: Change emit_a_rotate to
1869         output_a_rotate.  Add a prototype for compute_a_rotate_length.
1870         * config/h8300/h8300.c (emit_a_rotate): Change to
1871         output_a_rotate.
1872         (compute_a_rotate_length): New.
1873         (h8300_adjust_insn_length): Remove.
1874         * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
1875         * config/h8300/h8300.md (adjust_length): Remove.
1876         (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
1877         (*rotlhi3_1): Likewise.
1878         (*rotlsi3_1): Likewise.
1879
1880 2003-06-26  Roger Sayle  <roger@eyesopen.com>
1881             Richard Henderson  <rth@redhat.com>
1882
1883         * builtins.c (expand_builtin_mathfn): Always stabilize the argument
1884         list against re-evaluation.  If expand_unop fails, call expand_call
1885         with the stabilized argument list rather than return NULL_RTX.
1886         (expand_builtin_mathfn2): Likewise, always stabilize the argument
1887         list, and call expand_call ourselves if expand_binop fails.
1888
1889 2003-06-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
1890
1891         PR optimization/11210
1892         * fold-const (decode_field_reference): Strip only NOPs that
1893         don't affect the sign.
1894
1895 2003-06-26  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
1896
1897         * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
1898         (pop_fpscr, fpu_switch): Likewise.
1899
1900 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1901
1902         * value-prof.c: New.
1903         * value-prof.h: New.
1904         * Makefile.in (value-prof.o): New.
1905         (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
1906         (profile.o): Add value-prof.h and tree.h dependency.
1907         * flags.h (flag_profile_values): Declare.
1908         * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
1909         Add new counters.
1910         (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
1911         GCOV_COUNTER_V_DELTA): New counter sections.
1912         (__gcov_merge_single, __gcov_merge_delta): Declare.
1913         * flow.c (mark_used_regs): Set subregs_of_mode only when the
1914         structure is initialized.
1915         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
1916         * profile.c: Include value-prof.h and tree.h.
1917         (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
1918         gen_const_delta_profiler, instrument_values): New static functions.
1919         (get_exec_counts): Fix comment.
1920         (branch_prob): Invoke instrument_values.
1921         * toplev.c (flag_profile_values): New flag.
1922         * doc/invoke.texi (-fprofile-values): Document.
1923
1924 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1925
1926         * Makefile.in (cfgrtl.o): Add expr.h dependency.
1927         * cfgrtl.c: Include expr.h.
1928         (mark_killed_regs, safe_insert_insn_on_edge): New
1929         functions.
1930         * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
1931         * basic-block.h (safe_insert_insn_on_edge): Declare.
1932
1933 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
1934
1935         * c-opts.c (missing_arg): Make non-static.
1936         (c_common_handle_option): Don't check for missing arguments.
1937         * opts.c (handle_option): Check for missing arguments.
1938
1939 2003-06-26  David Edelsohn  <edelsohn@gnu.org>
1940
1941         * config/rs6000/power4.md (power4-veccomplex): Correct latency.
1942
1943 2003-06-25  Loren James Rittle  <ljrittle@acm.org>
1944
1945         * configure.in (ld_vers): Portability [sed].
1946         * configure: Regenerate with autoconf213.
1947
1948 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
1949
1950         * doc/extend.texi: Document new builtin functions for Intel
1951         Prescott New Intrunctions.
1952
1953         * doc/invoke.texi: Document new command-line options, -mpni and
1954         -mno-pni, for Intel Prescott New Intrunctions.
1955
1956         * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
1957
1958         * config/i386/i386.c (override_options): Turn on MASK_SSE2
1959         for -mpni. Turn on MASK_SSE for -msse2.
1960         (bdesc_2arg): Add PNI builtins with 2 args.
1961         (bdesc_1arg): Add PNI builtins with 1 arg.
1962         (ix86_init_mmx_sse_builtins): Handle PNI builtins.
1963         (ix86_expand_builtin): Likewise.
1964
1965         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
1966         MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
1967         MASK_TLS_DIRECT_SEG_REFS): Renumbered.
1968         (TARGET_PNI): New.
1969         (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
1970         -mpni and -mno-pni.
1971         (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
1972         (ix86_builtins): Add PNI builtins.
1973         (config/i386/i386.md): Add PNI patterns.
1974
1975         * config/i386/pmmintrin.h: New file.
1976
1977 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
1978
1979         * config/h8300/h8300.md (call): Fix the insn lengths.
1980         (call_value): Likewise.
1981
1982 Thu Jun 26 00:13:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
1983
1984         * c-common.c (handle_used_attribute): Use mark_referenced.
1985         * varasm.c (mark_referenced): Break out from ...
1986         (assemble_name): ... here.
1987         * tree.h (mark_referenced): Declare.
1988
1989 2003-06-25  Wolfgang Bangerth  <bangerth@dealii.org>
1990
1991         * gccbug.in: Add PCH to list of categories.
1992
1993 2003-06-25 Martin Schaffner <schaffner@gmx.li>
1994
1995         * cppfiles.c: Clarify comments.
1996         * cpphash.h: Likewise.
1997         * cpplib.h: Likewise.
1998         * cppmacro.c: Likewise.
1999         * mkdeps.h: Likewise.
2000
2001 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
2002
2003         * c-opts.c (complain_wrong_lang, write_langs): Remove.
2004         (c_common_handle_option): Complaints about wrong language are
2005         handled in opts.c now.
2006         * opts.c (complain_wrong_lang, write_langs, handle_options): New.
2007         (find_opt): Fix thinko.
2008         (handle_option): Update prototype.  Complain about switches for
2009         a different front end.
2010         * opts.h (lang_names, handle_options): New.
2011         (handle_option): Remove.
2012         * opts.sh: Write out language names array.
2013         * toplev.c (parse_options_and_default_flags): Use handle_options.
2014
2015 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
2016
2017         * config/i386/i386.c (MASK_SSE1): Removed.
2018         (MASK_SSE164): Removed.
2019         (MASK_SSE264): Removed.
2020         (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
2021         MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
2022         with MASK_SSE2 | MASK_64BIT.
2023         (bdesc_1arg): Likewise.
2024         (ix86_init_mmx_sse_builtins): Likewise.
2025
2026         * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
2027         (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
2028         -msse2.
2029
2030 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2031
2032         * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
2033         (HOST_WIDE_INT_PRINT_DEC_SPACE,
2034         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
2035         HOST_WIDEST_INT_PRINT_DEC_SPACE,
2036         HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
2037         (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
2038         HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
2039         terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
2040
2041         * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
2042         * ra-debug.c (dump_static_insn_cost): Likewise.
2043
2044 2003-06-26  Nick Clifton  <nickc@redhat.com>
2045
2046         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2047         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2048         Replace occurances of '???' with 'XXX' incase they are
2049         mistaken for trigraphs.
2050         (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
2051         does not have a register for the first operand.
2052
2053 2003-06-25      Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2054
2055         * config/sh/sh.c (sh_register_move_cost):
2056         Add case for moving between MAC_REGS.
2057
2058 2003-06-25  Zack Weinberg  <zack@codesourcery.com>
2059
2060         PR 10178
2061         * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
2062         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
2063         * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
2064         to true.
2065         * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
2066         return 0.
2067
2068 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2069
2070         * Makefile.in (bt-load.o): Depend on $(TM_P_H).
2071         * bt-load.c: Include "tm_p.h".
2072
2073 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
2074
2075         * config/h8300/h8300.c (compute_mov_length): Adjust for the
2076         new optimization.
2077         * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
2078         an SImode constant whose upper and lower are the same.
2079
2080 Wed Jun 25 11:31:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
2081
2082         * varasm.c (assemble_name): Mark needed variables even when
2083         global info is ready.
2084
2085 2003-06-24  Jerry Quinn  <jlquinn@optonline.net>
2086
2087         PR other/11280
2088         * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
2089         -freorder-functions description.
2090
2091 2003-06-25  Josef Zlomek  <zlomekj@suse.cz>
2092
2093         * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
2094
2095 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
2096
2097         * opts.c (common_handle_option): Add missing break;s.
2098
2099 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
2100
2101         * config/h8300/h8300-protos.h: Add a prototype for
2102         compute_mov_length.
2103         * config/h8300/h8300.c (compute_mov_length): New.
2104         * config/h8300/h8300.md (*movqi_h8300): Use it.
2105         (*movqi_h8300hs): Likewise.
2106         (movstrictqi): Likewise.
2107         (*movhi_h8300): Likewise.
2108         (*movhi_h8300hs): Likewise.
2109         (movstricthi): Likewise.
2110         (*movsi_h8300): Likewise.
2111         (*movsf_h8300): Likewise.
2112         (*movsi_h8300hs): Likewise.
2113         (*movsf_h8300hs): Likewise.
2114
2115 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
2116
2117         * jump.c (next_nondeleted_insn): Remove.
2118         * rtl.h: Remove the prototype for next_nondeleted_insn.
2119
2120 2003-06-24  Roger Sayle  <roger@eyesopen.com>
2121
2122         PR optimization/11311
2123         * builtins.c (powi_cost): Fix typo.  The number of multiplications
2124         required is the number to reduce the argument, result, plus the
2125         cost of calculating the residual, val [not n, the original value].
2126
2127 2003-06-24  Roger Sayle  <roger@eyesopen.com>
2128
2129         * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
2130
2131 2003-06-24  Richard Henderson  <rth@redhat.com>
2132             (blame to: Loren James Rittle  <ljrittle@acm.org>)
2133
2134         * real.h (ieee_extended_intel_96_round_53_format): New.
2135         * real.c (ieee_extended_intel_96_round_53_format): New.
2136         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
2137         for XFmode and TFmode.
2138
2139 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
2140
2141         * config/h8300/h8300.md (4 anonymous patterns): Give internal
2142         names.
2143         (movsi_h8300): Change the name to *movsi_h8300.
2144         (movsi_h8300hs): Change the name to *movsi_h8300hs.
2145         (movsf_h8300): Change the name to *movsf_h8300.
2146         (movsf_h8300hs): Change the name to *movsf_h8300hs.
2147
2148 2003-06-24  Jakub Jelinek  <jakub@redhat.com>
2149
2150         * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
2151         src twice.
2152
2153 2003-06-24  J"orn Rennecke <joern.rennecke@superh.com>
2154
2155         Back out these patches:
2156          2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
2157           * sh.h (OLD_ARG_MODE): New macro.
2158           (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
2159           (FUNCTION_ARG_1): Break out of:
2160           (FUNCTION_ARG).  Use OLD_ARG_MODE.
2161          2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
2162           * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
2163           of the generated register.
2164
2165         * sh.h (FUNCTION_ARG_SCmode_WART): Define.
2166         (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
2167         an even number of floating point regs are in use, use the same
2168         sequence of argument passing registers for SCmode as would be
2169         used for two SFmode values.
2170         * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
2171         swap real / imaginary parts in incoming SCmode values passed
2172         in registers.
2173
2174 2003-06-24  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2175
2176         PR target/11260
2177         * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
2178
2179 Tue Jun 24 18:49:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
2180
2181         * Makefile.in (cgraph.o): Depend on output.h, not depend on
2182         tree-inline.h
2183         * cgraph.c: Do not include tree-inline.h; include output.h
2184         (known_fns): Rename to ...
2185         (known_decls): ... this one; update all uses.
2186         (cgraph_varpool_hash): New static variable.
2187         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
2188         variables.
2189         (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
2190         cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
2191         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2192         New functions.
2193         * cgraph.h (cgraph_varpool_node): New structure.
2194         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
2195         (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
2196         cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
2197         cgraph_varpool_asemble_pending_decls): Declare.
2198         * cgraphunit.c (record_call_1): Notice variable references.
2199         (cgraph_finalize_compilation_unit): Assemble pending variables.
2200         * toplev.c (wrapup_global_declarations): Use varpool.
2201         (compile_file): Assemble pending declarations.
2202         (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
2203         * varasm.c (assemble_name): Notice varpool references.
2204
2205 Tue Jun 24 13:52:11 CEST 2003  Jan Hubicka  <jh@suse.cz>
2206
2207         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
2208         * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
2209         * varasm.c (assemble_variable): Call prepare_assemble_variable.
2210
2211 2003-06-23  Roger Sayle  <roger@eyesopen.com>
2212
2213         * builtins.c (expand_builtin): Use expand_builtin_pow to expand
2214         calls for pow, powf, powl and their __builtin_ variants.
2215         (expand_builtin_pow): If the second argument is a constant
2216         integer and compiling with -ffast-math, use expand_powi to
2217         generate RTL if powi_cost is less than POWI_MAX_MULTS.
2218         (powi_cost): New function to return the number of multiplications
2219         necessary to evaluate an Nth power, for integer constant N.
2220         (expand_powi): New function to expand the RTL for evaluating
2221         the Nth power of a floating point value, for integer constant N.
2222
2223         * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
2224
2225 Mon Jun 23 23:07:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
2226
2227         * cgraph.c (cgraph_nodes_queue): Declare.
2228         (eq_node): Take identifier as p2.
2229         (cgraph_node): Update htab_find_slot_with_hash call.
2230         (cgraph_node_for_identifier): New.
2231         (cgraph_mark_needed_node): Move here from cgraphunit.c.
2232         * cgraph.h (cgraph_nodes_queue): Declare.
2233         (cgraph_node_for_identifier): Declare.
2234         * cgraphunit.c (cgraph_finalize_function): Collect entry points here
2235         instead of in cgraph_finalize_compilation_unit; constructors and
2236         destructors are entry points.
2237         (cgraph_finalize_compilation_unit): Reorganize debug outout;
2238         examine nested functions after lowerng; call collect_functions hook.
2239         (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
2240         (cgraph_finalize_compilation_unit): Do not collect entry points.
2241         * varasm.c: Include cgraph.h
2242         (assemble_name): Mark referenced identifier as needed.
2243
2244         * cgraphunit.c (record_call_1): Use get_callee_fndecl.
2245
2246 2003-06-23  Jakub Jelinek  <jakub@redhat.com>
2247
2248         * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
2249         just SYMBOL_REF.
2250         * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
2251         mode, as it requires pic register loaded.
2252
2253         * varasm.c (resolve_unique_section): Remove prototype.  No longer
2254         static.
2255         * tree.h (resolve_unique_section): New prototype.
2256
2257 2003-06-23  Andreas Schwab  <schwab@suse.de>
2258
2259         PR debug/9905
2260         * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
2261         recursing through first argument.
2262
2263 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
2264
2265         * ChangeLog.1: Fix a typo.
2266         * cfgrtl.c: Fix comment typos.
2267         * dwarf2out.c: Likewise.
2268         * expmed.c: Likewise.
2269         * genrecog.c: Likewise.
2270         * jump.c: Likewise.
2271         * rtlanal.c: Likewise.
2272         * ssa-dce.c: Likewise.
2273         * toplev.c: Likewise.
2274
2275 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
2276
2277         * doc/extend.texi: Fix typos.
2278         * doc/md.texi: Likewise.
2279         * doc/tm.texi: Likewise.
2280
2281 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
2282
2283         * basic-block.h: Fix comment formatting.
2284         * bt-load.c: Likewise.
2285         * builtins.c: Likewise.
2286         * c-common.c: Likewise.
2287         * c-common.h: Likewise.
2288         * c-format.c: Likewise.
2289         * coverage.c: Likewise.
2290         * cpplib.h: Likewise.
2291         * cpppch.c: Likewise.
2292         * dbxout.c: Likewise.
2293         * diagnostic.c: Likewise.
2294         * dwarf2out.c: Likewise.
2295         * expr.c: Likewise.
2296         * fold-const.c: Likewise.
2297         * function.c: Likewise.
2298         * gcc.c: Likewise.
2299         * gcov-io.c: Likewise.
2300         * gcov-io.h: Likewise.
2301         * gcov.c: Likewise.
2302         * profile.c: Likewise.
2303         * real.h: Likewise.
2304         * sched-deps.c: Likewise.
2305
2306 2003-06-23  Roger Sayle  <roger@eyesopen.com>
2307             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2308
2309         * doc/contrib.texi (Contributors): Add a note on testing and
2310         remove duplicates from testers list.
2311
2312 2003-06-23  Nick Clifton  <nickc@redhat.com>
2313
2314         * read-rtl.c (read_braced_string): Check for EOF.  If
2315         encountered issue an error message.
2316
2317 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
2318
2319         * doc/invoke.texi: Document dump options, dT and dW.
2320
2321 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
2322
2323         * genrecog.c (pred_table): Remove the entry for
2324         mode_independent_operand.
2325         * recog.c (next_insns_test_no_inequality): Remove.
2326         (mode_independent_operand): Likewise.
2327         * recog.h: Remove the prototype for mode_independent_operand.
2328
2329 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2330
2331         * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
2332         store into bit 0.
2333         * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
2334         second alternative to set_znv.
2335         (*extzv_1_r_inv_h8300hs): Likewise.
2336
2337 2003-06-23  Hans-Peter Nilsson  <hp@bitrange.com>
2338
2339         * configure.in (in_tree_gas): Find out here whether GAS is ELF,
2340         set in_tree_gas_is_elf accordingly.
2341         (in_tree_ld): Find out whether LD emulation is ELF, set
2342         in_tree_ld_is_elf accordingly.
2343         (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
2344         (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
2345         (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
2346         (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
2347         grepping gas/Makefile.
2348         (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
2349         $in_tree_ld_is_elf instead of grepping ld/Makefile.
2350         * configure: Regenerate.
2351
2352 2003-06-22  Roger Sayle  <roger@eyesopen.com>
2353
2354         * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
2355         up the stabilized argument list, not build_tree_list.
2356         (expand_builtin_strcpy): Construct new argument list manually
2357         instead of using chainon to modify the original argument list.
2358         (expand_builtin_stpcpy): Construct new argument list manually
2359         instead of using copy_list and chainon.
2360         (expand_builtin_sprintf): New function.  Optimize calls to
2361         sprintf when the format is "%s" or doesn't contain a '%'.
2362         (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
2363         expand_builtin_sprintf.
2364
2365 2003-06-22  Andreas Schwab  <schwab@suse.de>
2366
2367         * function.c (set_insn_locators): Mark as unused.
2368
2369 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
2370
2371         * common.opt: Add -finline-limit.
2372         * opts.c (common_handle_options): Handle it.
2373         * opts.sh: Temporary kludge for -finline-limit.
2374         * toplev.c (decode_f_option, independent_decode_option): Die.
2375         (parse_options_and_default_flags): No independent_decode_option.
2376
2377 2003-06-22  Andreas Jaeger  <aj@suse.de>
2378
2379         * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
2380
2381 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2382
2383         * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
2384
2385 2003-06-22  Andreas Schwab  <schwab@suse.de>
2386
2387         * doc/invoke.texi: Remove leading `-' from options in index.
2388
2389 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2390
2391         * bt-load.c: Follow spelling conventions.
2392
2393 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2394
2395         * expr.c (emit_move_insn_1): Fix a comment typo.
2396
2397 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2398
2399         * doc/invoke.texi: Alphabetize dump options.
2400
2401 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2402
2403         * doc/invoke.texi: Remove a duplicate -dk.
2404
2405 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2406
2407         * doc/invoke.texi: Update dump file names.
2408
2409 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
2410
2411         * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
2412         and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
2413
2414 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
2415
2416         * doc/rtl.texi: Fix the @findex for pre_modify.
2417
2418 2003-06-22  Andreas Jaeger  <aj@suse.de>
2419
2420         * caller-save.c: Convert to ISO C90.
2421         * calls.c: Likewise.
2422         * cfg.c: Likewise.
2423         * cfganal.c: Likewise.
2424         * cfgbuild.c: Likewise.
2425         * cfgcleanup.c: Likewise.
2426         * cfghooks.c: Likewise.
2427         * cfglayout.c: Likewise.
2428         * cfglayout.h: Likewise.
2429         * cfgloop.c: Likewise.
2430         * cfgloop.h: Likewise.
2431         * cfgloopanal.c: Likewise.
2432         * cfgloopmainip.c: Likewise.
2433         * cfgrtl.c: Likewise.
2434
2435 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
2436
2437         * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
2438         64-bit alignment.
2439
2440 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
2441
2442         * arm.md (all call_value patterns): Remove register constraints on
2443         value operand.
2444
2445 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
2446
2447         * common.opt: More -f switches.
2448         * opts.c (common_handle_options): Handle them.
2449         * toplev.c (time_report): Make extern.
2450         (f_options): USe flag_dummy.
2451         (decode_f_option): No need to use f_options now.
2452         * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
2453         flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
2454
2455 2003-06-22  Andreas Jaeger  <aj@suse.de>
2456
2457         * c-lex.c: Convert to ISO C90.
2458         * c-objc-common.c: Likewise.
2459         * c-opts.c: Likewise.
2460         * c-pch.c: Likewise.
2461         * c-ppoutput.c: Likewise.
2462         * c-pragma.h: Likewise.
2463         * c-pretty-print.c: Likewise.
2464         * c-pretty-print.h: Likewise.
2465         * c-semantics.c: Likewise.
2466         * c-tree.h: Likewise.
2467         * c-typeck.c: Likewise.
2468
2469         * c-lang.c: Convert to ISO C90.
2470
2471 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
2472
2473         * opts.c (find_opt): Fix to always guarantee a find of a
2474         switch with joined parameter.
2475         * opts.h (struct cl_option): New member back_chain.
2476         * opts.sh: Update to calculate and add back_chain member.
2477
2478 2003-06-22  Gabriel Dos Reis <gdr@integrable-solutions.net>
2479
2480         * diagnostic.h (output_host_wide_integer): Declare.
2481         * diagnostic.c (output_long_long_decicaml): New function.
2482         (output_host_wide_integer): Likewise.
2483         (output_format): Use them.  Handle "%ll" and "%w".
2484
2485 2003-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
2486
2487         * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
2488
2489 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
2490
2491         * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
2492         * configure.in: Don't use gcc_AC_C_CHARSET.
2493         * configure, config.in: Regenerate.
2494         * config/i370/i370.c, config/i370/i370.h: Use
2495         (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
2496         instead of HOST_EBCDIC or !HOST_EBCDIC.  Clarify comments a tad.
2497
2498 2003-06-21  Neil Booth  <neil@daikokuya.co.uk>
2499
2500         * Makefile.in: Update.
2501         * common.opt: New switches.
2502         * opts.c: Include diagnostic.h.
2503         (common_handle_option): Handle new switches.
2504         * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2505         flag_if_conversion2, flag_delete_null_pointer_checks,
2506         flag_rerun_cse_after_loop): Make extern.
2507         (flag_dummy): New.
2508         (f_options): Update to use flag_dummy for moved options.
2509         (decode_f_option): Some switches moved to opts.c.
2510         * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2511         flag_if_conversion2, flag_delete_null_pointer_checks,
2512         flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
2513         flag_tracer, flag_thread_jumps, flag_unroll_loops,
2514         flag_unroll_all_loops, flag_unswitch_loops): New.
2515
2516 Sat Jun 21 13:41:00 CEST 2003  Jan Hubicka  <jh@suse.cz>
2517
2518         * i386.c (ix86_va_arg): Fix allocation of temporary slot.
2519
2520 2003-06-20  Kazu Hirata  <kazu@cs.umass.edu>
2521
2522         * config/h8300/h8300-protos.h: Add a prototype for
2523         same_cmp_preceding_p.
2524         * config/h8300/h8300.c (same_cmp_preceding): New.
2525         * config/h8300/h8300.md: Extend peephole2's that transform
2526         compare:SI into shorter sequences so that they can deal with
2527         signed comparisons.
2528
2529 2003-06-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2530
2531         * doc/contrib.texi (Contributors): Use Windows instead of Win32.
2532
2533         Update Andreas Jaeger's entry.
2534
2535         Merge the two entries of Kaveh Ghazi, David Edelsohn, and
2536         Loren J. Rittle.
2537
2538 2003-06-21  Nathanael Nerode  <neroden@gcc.gnu.org>
2539
2540         * mkconfig.sh: Add multiple inclusion guards to generated headers.
2541
2542 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
2543
2544         * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
2545         * common.opt: Add remaining -W options and -g.
2546         * diagnostic.c (warnings_are_errors): Remove.
2547         * flags.h: Make most warning flags boolean.
2548         * opts.c (common_handle_option): Handle remaining -W options, and -g.
2549         Move many warning flags from toplev.c, making them boolean.
2550         * toplev.c: Remove many warning flags.
2551         (decode_W_option): Remove.
2552         (decode_g_option): Make extern.  Error on unknown switch.
2553         (lang_independent_W_options): Use warn_dummy.
2554         (independent_decode_option): Just handle -f switches now.
2555         * toplev.h (decode_g_option): New.
2556
2557 2003-06-20  Aldy Hernandez  <aldyh@redhat.com>
2558
2559         PR/11092
2560         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
2561         vectors.
2562
2563 2003-06-20  Kelley Cook  <kelleycook@wideopenwest.com>
2564
2565         * opts.sh: Tweak awk script for portability.
2566
2567 2003-06-20  Mark Mitchell  <mark@codesourcery.com>
2568
2569         PR c++/10888
2570         * tree-inline.c (expand_call_inline): Do not warn about failing to
2571         inline functions declared in system headers.
2572         * doc/invoke.texi (-Winline): Expand on documentation.
2573
2574 2003-06-20  Richard Henderson  <rth@redhat.com>
2575
2576         * config/alpha/alpha.c (alpha_file_start): Disable
2577         file_start_file_directive for ELF and not MDEBUG.
2578
2579 2003-06-20  J"orn Rennecke <joern.rennecke@superh.com>
2580
2581         * sh.h (ROUND_TYPE_ALIGN): Remove.
2582
2583 2003-06-20  Richard Henderson  <rth@redhat.com>
2584
2585         * hooks.c (hook_int_void_no_regs): Rename from
2586         hook_reg_class_void_no_regs; change return type.
2587         * hooks.h: Update.
2588         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
2589         * target.h (branch_target_register_class): Change return type to int.
2590         Add documentation.
2591         * config/sh/sh.c (sh_target_reg_class): Change return type.
2592         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2593
2594 2003-06-20  Andreas Tobler <toa@pop.agri.ch>
2595
2596         * c-format.c: Change _Bool to bool reverting part of the last
2597         patch.
2598
2599 2003-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2600
2601         * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
2602         strip name encoding.
2603
2604 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2605
2606         * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
2607         * configure: Regenerate.
2608         Fixes PR driver/9362.
2609
2610 2003-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2611
2612         * config/alpha/alpha.c (alpha_file_start): Fix typo.
2613
2614 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2615
2616         * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
2617         to ASM_OUTPUT_SOURCE_LINE.
2618
2619 2003-06-20  Daniel Egger  <degger@fhm.edu>
2620             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2621
2622         * doc/install.texi (Building): Correct and improve statement
2623         about parallel builds.
2624
2625 2003-06-20  Andreas Jaeger  <aj@suse.de>
2626
2627         * c-common.c: Change _Bool to bool reverting part of the last
2628         patch.
2629
2630 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
2631
2632         * tree.h (expand_function_end): Remove all parameters.
2633         * function.c (expand_function_end): Remove all parameters.
2634         Use input_location. Never expand_end_bindings.
2635         * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
2636         * coverage.c (create_coverage): Likewise.
2637
2638 2003-06-20  Nick Clifton  <nickc@redhat.com>
2639
2640         * doc/extend.texi (ARM Built-in Functions): New node.  Document
2641         ARM builtin functions for iWMMXt support.
2642
2643 2003-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
2644
2645         * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
2646         SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
2647         (--with-as): Add @anchor.
2648         (--with-gnu-ld): Fix typo.
2649         (--with-ld): Add @uref to --with-as.
2650
2651 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
2652
2653         * doc/tm.texi: Uniformly use @defmac for macros, rather than
2654         @table items.  Minor formatting and editorial corrections.
2655
2656 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
2657
2658         * line-map.c, line-map.h: Convert to ISO prototypes.
2659
2660 2003-06-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2661
2662         * gcse.c (store_killed_in_insn): Fix.
2663
2664 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
2665
2666         * target.h (asm_out.file_start, file_start_app_off,
2667         file_start_file_directive): New hooks.
2668         * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2669         TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
2670         New hook-definition macros.
2671         * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
2672         * varasm.c (default_file_start): New.
2673         * output.h: Prototype it.
2674         * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
2675         * system.h: Poison ASM_FILE_START.
2676
2677         * config/alpha/alpha.c (alpha_write_verstamp): Delete.
2678         (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
2679         (unicosmk_asm_file_start): Rename unicosmk_file_start,
2680         make static, take no arguments.
2681         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
2682         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
2683         * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
2684         TARGET_ASM_FILE_END.  Remove reference to ASM_FILE_START in
2685         comment.
2686         * config/arc/arc.c (arc_asm_file_start): Rename
2687         arc_file_start, take no arguments, make static.
2688         (TARGET_ASM_FILE_START): Set it.
2689         * config/arm/arm.c (aof_file_start): New static function.
2690         (TARGET_ASM_FILE_START): Set it, when appropriate.
2691         * config/arm/coff.h, config/arm/elf.h:
2692         Set TARGET_ASM_FILE_START_APP_OFF to true.
2693         * config/avr/avr.c (asm_file_start): Rename avr_file_start,
2694         take no arguments, make static.
2695         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2696         Set them.
2697         * config/c4x/c4x.c (c4x_file_start): New static function.
2698         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2699         Set them.
2700         * config/cris/cris.c (cris_file_start): New static function.
2701         (TARGET_ASM_FILE_START): Set it.
2702         * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
2703         dsp16xx_file_start, make static.
2704         (luxworks_dsp16xx_file_start): Delete.
2705         (TARGET_ASM_FILE_START): Set it.
2706         * config/h8300/h8300.c (asm_file_start): Rename
2707         h8300_file_start, make static, take no arguments.
2708         (TARGET_ASM_FILE_START): Set it.
2709         * config/i370/i370.c (i370_file_start): New static function.
2710         (TARGET_ASM_FILE_START): Set it.
2711         * config/i386/i386.c (x86_file_start): New static function.
2712         (TARGET_ASM_FILE_START): Set it.
2713         * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
2714         X86_FILE_START_FLTUSED): New macros, default to false.
2715         * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
2716         * config/i386/sysv4.h, config/i386/sco5.h: Override
2717         X86_FILE_START_VERSION_DIRECTIVE to true.
2718         * config/ia64/ia64.c (ia64_file_start): New static function.
2719         (TARGET_ASM_FILE_START): Set it.
2720         (emit_safe_across_calls): Take no arguments.
2721         * config/ia64/ia64.md: Update to match.
2722         * config/m32r/m32r.c (m32r_asm_file_start): Rename
2723         m32r_file_start, make static, take no arguments.
2724         (TARGET_ASM_FILE_START): Set it.
2725         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
2726         m68hc11_file_start, make static, take no arguments.
2727         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2728         (print_options): Delete.
2729         * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
2730         (TARGET_ASM_FILE_START_APP_OFF): Set.
2731         * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
2732         m68k_hp320_file_start.
2733         * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
2734         Make static, take no arguments.
2735         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2736         * config/mmix/mmix.c (mmix_asm_file_start): Rename
2737         mmix_file_start, make static, take no arguments.
2738         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2739         * config/mn10300/mn10300.c (asm_file_start): Rename
2740         mn10300_file_start, make static, take no arguments.
2741         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2742         * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
2743         * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
2744         pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
2745         pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
2746         pa_hpux64_hpas_file_start): New static functions.
2747         * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
2748         * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
2749         pa_linux_file_start.
2750         * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
2751         pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
2752         appropriate.
2753         * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
2754         * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
2755         (rs6000_file_start): Make static, take no arguments.  Reset
2756         default_cpu under certain conditions.
2757         (rs6000_xcoff_file_start): New function.
2758         * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
2759         * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
2760         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
2761         * config/sh/sh.c (output_file_start): Rename
2762         sh_file_start, make static, take no arguments.  Merge in old
2763         code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
2764         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2765         * config/sh/sh.c (TARGET_ELF): Define to 0.
2766         * config/sh/elf.h (TARGET_ELF): Redefine to 1.
2767         * config/v850/v850.c (asm_file_start): Delete.
2768         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2769         * config/vax/vax.c (vax_file_start): New static function.
2770         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
2771
2772         * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
2773         * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
2774         * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
2775         * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
2776         * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
2777         * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
2778
2779         * config/darwin.h, config/elfos.h, config/alpha/elf.h
2780         * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
2781         * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
2782         * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
2783         * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
2784         * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
2785         * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
2786         * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
2787         * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
2788         * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
2789         * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
2790         * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
2791         * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
2792         * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
2793         * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
2794         * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
2795         * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
2796         * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
2797
2798         * config/alpha/alpha-protos.h, config/arc/arc-protos.h
2799         * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
2800         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
2801         * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
2802         * config/mips/mips-protos.h, config/mmix/mmix-protos.h
2803         * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
2804         * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
2805
2806         * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
2807         Remove reference to ASM_FILE_START in comment.
2808         * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
2809         * config/arm/linux-gas.h, config/arm/netbsd-elf.h
2810         * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
2811
2812 2003-06-19  Graeme Peterson <gp@qnx.com>
2813
2814         * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
2815         SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
2816         sysroot_hdrs_suffix_spec): New.
2817         (static_specs): Initialize new variables.
2818         (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
2819         * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
2820         New macros.
2821
2822 2003-06-19  Andreas Jaeger  <aj@suse.de>
2823
2824         * c-aux-info.c: Convert to ISO C90.
2825         * c-pragma.c: Likewise.
2826         * c-common.c: Likewise.
2827         * c-common.h: Likewise.
2828         * c-convert.c: Likewise.
2829         * c-cppbuiltin.c: Likewise.
2830         * c-dump.c: Likewise.
2831         * c-decl.c: Likewise
2832         * c-format.c: Likewise.
2833         * c-incpath.c: Likewise.
2834         * c-incpath.h: Likewise.
2835
2836 2003-06-19  Roger Sayle  <roger@eyesopen.com>
2837
2838         * builtins.c (expand_errno_check): Assume that flag_errno_math
2839         and HONOR_NANS have been tested before calling here.  Only try
2840         to set errno ourselves if the decl can't throw an exception.
2841         (expand_builtin_mathfn): Move the code to stabilize the arg
2842         after the main switch, so that that its only done when needed.
2843         BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
2844         Don't modify the original expr when stabilizing the argument.
2845         (expand_builtin_mathfn_2): Likewise, move the code to stabilize
2846         the args after the main switch, and don't modify the orginal exp.
2847
2848 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
2849
2850         * expr.c (const_vector_from_tree): Initialize remaining elements
2851         to 0.
2852
2853 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
2854
2855         * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
2856         Change "fix" to "float".
2857
2858 2003-06-19  Andreas Jaeger  <aj@suse.de>
2859
2860         * c-tree.h: Remove declaration of poplevel.
2861
2862         * tree.h: Remove declaration of approx_sqrt.
2863
2864         * c-lex.c: Remove redundant declaration of asm_out_file.
2865
2866         * flags.h: Remove declaration of warn_unknown_pragma and
2867         main_input_filename.
2868
2869         * rtl.h: Remove functions from fold-const.c since they're already
2870         declared in tree.h.
2871
2872         * regs.h: Remove redundant declaration of reg_names.
2873
2874         * bt-load.c (migrate_btr_defs): Correct printf arguments.
2875
2876         * protoize.c: Fix breakage from last patch.
2877
2878 2003-06-19  J"orn Rennecke <joern.rennecke@superh.com>
2879
2880         * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
2881         has been included.
2882
2883 2003-06-18  James A Morrison <ja2morri@student.math.uwaterloo.ca>
2884
2885         * config/sparc/sparc.c: Update copyright year.
2886
2887 2003-06-19  David Edelsohn  <edelsohn@gnu.org>
2888
2889         * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
2890         to ABI_V4.
2891
2892 2003-06-18  Joseph S. Myers  <jsm@polyomino.org.uk>
2893
2894         PR bootstrap/4068
2895         * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
2896
2897 2003-06-19  Kazu Hirata  <kazu@cs.umass.edu>
2898
2899         * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
2900         to the end of the file.  Remove unnecessary prototypes.
2901
2902 2003-06-19  Hans-Peter Nilsson  <hp@axis.com>
2903
2904         * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
2905         calls to insn_default_latency and result_ready_cost.  Initialize
2906         def_latency to 1.
2907
2908 2003-06-18  Richard Henderson  <rth@redhat.com>
2909
2910         * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
2911         (_Unwind_FindEnclosingFunction): Implement.
2912
2913 2003-06-18  Kazu Hirata  <kazu@cs.umass.edu>
2914
2915         * toplev.c (rest_of_handle_sched): Hide the entire function if
2916         INSN_SCHEDULING is not defined.
2917         (rest_of_compilation): Call rest_of_handle_sched() only when
2918         INSN_SCHEDULING is defined.
2919
2920 2003-06-18  Stephen Clarke <stephen.clarke@superh.com>
2921             J"orn Rennecke <joern.rennecke@superh.com>
2922
2923         * bt-load.c: New file.
2924         * Makefile.in (OBJS): Include bt-load.o
2925         (bt-load.o): Add dependencies.
2926         * flags.h (flag_branch_target_load_optimize): Declare.
2927         (flag_branch_target_load_optimize2): Likewise.
2928         * hooks.c (hook_reg_class_void_no_regs): New function.
2929         (hook_bool_bool_false): Likewise.
2930         * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
2931         * rtl.h (branch_target_load_optimize): Declare.
2932         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
2933         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2934         (TARGET_INITIALIZER): Include these.
2935         * target.h (struct gcc_target): Add branch_target_register_class
2936         and branch_target_register_callee_saved members.
2937         * toplev.c (enum dump_file_index): Add DFI_branch_target_load
2938         (dump_file) Add "tars" entry.
2939         (flag_branch_target_load_optimize): New variable.
2940         (flag_branch_target_load_optimize2): Likewise.
2941         (lang_independent_options): Add entries for new options.
2942         (rest_of_compilation): Call branch_target_load_optimize.
2943         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
2944         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2945         * doc/invoke.texi: Document -fbranch-target-load-optimize and
2946         -fbranch-target-load-optimize2.
2947         * rtl.h (epilogue_completed): Declare.
2948         * recog.c (epilogue_completed): New variable.
2949         * toplev.c (rest_of_compilation): Set it.
2950         * flow.c (mark_regs_live_at_end): Use it.
2951         * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
2952         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2953         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2954         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2955
2956         * sh.c (shmedia_space_reserved_for_target_registers): New variable.
2957         (sh_target_reg_class): New function.
2958         (sh_optimize_target_register_callee_saved): Likwise.
2959         (shmedia_target_regs_stack_space): Likewise.
2960         (shmedia_reserve_space_for_target_registers_p): Likewise.
2961         (shmedia_target_regs_stack_adjust): Likewise.
2962         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
2963         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2964         (calc_live_regs): If flag_branch_target_load_optimize2 and
2965         TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
2966         for target registers, make sure that we save all target registers.
2967         (sh_expand_prologue, sh_expand_epilogue): Take target register
2968         optimizations into account.  Collapse stack adjustments if that
2969         is beneficial.
2970         (initial_elimination_offset): Reserve space for target registers
2971         if necessary.
2972         * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
2973         (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
2974
2975 2003-06-18  Nick Clifton  <nickc@redhat.com>
2976
2977         * config.gcc: Add an extra_header for ARM targets.
2978         Support configuring with --with-cpu=iwmmxt.
2979         * doc/invoke.texi: Document new value for -mcpu= ARM switch.
2980         * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
2981         names.  Fix formatting.
2982         * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
2983         names.
2984         * config/arm/arm-protos.h (arm_emit_vector_const): New
2985         prototype.
2986         (arm_output_load_gr): New prototype.
2987         * config/arm/arm.c (extra_reg_names1): Delete.
2988         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
2989         * arch_is_iwmmxt): Define.
2990         (all_cores, all_architecture): Add entry for iwmmxt.
2991         (arm_override_options): Add support for iwmmxt.
2992         (use_return_insn, arm_function_arg, arm_legitimate_index_p,
2993         arm_print_value, arm_rtx_costs_1, output_move_double,
2994         arm_compute_save_reg_mask, arm_output_epilogue,
2995         arm_get_frame_size, arm_expand_prologue, arm_print_operand,
2996         arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
2997         Likewise.
2998         (arm_init_cumulative_args): Count iwmmxt registers.
2999         (arm_function_ok_for_sibcall): Return false of sibcall_blocked
3000         has been set.
3001         (struct minipool_node): Add fix_size field.
3002         (add_minipool_forward_ref): Add support for 8-byte aligning of
3003         the pool.
3004         (add_minipool_backward_ref, add_minipool_offsets,
3005         dump_minipool, push_minipool_fix): Likewise.
3006         (struct builtin_description): New struct.
3007         (builtin_description): New array of iwmmxt builtin functions.
3008         (arm_init_iwmmxt_builtins): New function.
3009         (arm_init_builtins): New function.
3010         (safe_vector_operand): New function.
3011         (arm_expand_binop_builtin): New function.
3012         (arm_expand_unop_builtin): New function.
3013         (arm_expand_builtin): New function.
3014         (arm_emit_vector_const): New function.
3015         (arm_output_load_gr): New function.
3016         * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
3017         TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
3018         TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
3019         DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
3020         (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
3021         (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
3022         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3023         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3024         REG_CLASS_FOR_LETTER): Add iwmmxt registers.
3025         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
3026         registers unless the iwmmxt target is selected.
3027         (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
3028         FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
3029         IS_IWMMXT_GR_REGNUM): Define.
3030         (FIRST_PSEUDO_REGISTER): Bump to 63.
3031         (struct machine_function): Add sibcall_blocked field.
3032         (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
3033         nargs fields.
3034         (enum arm_builtins): New enum list.
3035         * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
3036         UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
3037         UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
3038         UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
3039         (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
3040         VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
3041         (movv2si, movv4hi, movv8qi): New expands for vector moves.
3042         Include iwmmxt.md.
3043         * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
3044         multilib.
3045         (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
3046         * config/arm/mmintrin.h: New ARM specific header file.
3047         * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
3048
3049 2003-06-18  J"orn Rennecke <joern.rennecke@superh.com>
3050
3051         * toplev.c (Remaining -d letters summary): Update.
3052
3053 2003-06-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3054
3055         * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
3056         argument.
3057         (function_arg): Handle CALL_LIBCALL flag.
3058         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
3059         prototype.
3060         * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
3061         (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
3062         (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
3063         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
3064
3065 2003-06-18  Neil Booth  <neil@daikokuya.co.uk>
3066
3067         * Makefile.in: Update.
3068         * common.opt: New options.
3069         * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
3070         set_Wunused): New.
3071         (common_handle_option): Handle new options.
3072         * toplev.c (set_target_switch): Export.
3073         (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
3074         (decode_W_option): -Wunused and -Wextra handled in opts.c now.
3075         (independent_decode_option): More options handled in opts.c now.
3076         Change prototype.
3077         * toplev.h (set_target_switch): New.
3078
3079 2003-06-17  Robert Abeles  <rabeles@archaelogic.com>
3080
3081         PR debug/4252
3082         * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
3083         to dump_switch_p().
3084         * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
3085         from static strings in dump_files.
3086
3087 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3088
3089         * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
3090         VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
3091         libiberty macros.
3092
3093 2003-06-17  Jason Merrill  <jason@redhat.com>
3094
3095         PR c++/10929
3096         * tree-inline.c (expand_call_inline): Don't warn about failing to
3097         inline a function which was made inline by -finline-functions.
3098
3099 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3100
3101         * config/h8300/h8300-protos.h: Update to ISO C.
3102         * config/h8300/h8300.c: Likewise.
3103         * config/h8300/h8300.h: Likewise.
3104         * config/h8300/h8300.md: Likewise.
3105
3106 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3107
3108         * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
3109         * configure: Regenerate.
3110         * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
3111
3112 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
3113
3114         * install.texi (Testing): Add information on how to run Java
3115         runtime tests separately.
3116
3117 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3118
3119         * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
3120
3121         * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
3122         (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
3123
3124 2003-06-17  Christopher Faylor  <cgf@redhat.com>
3125
3126         * doc/install.texi: Add msvc rebuild caveat.
3127
3128 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3129
3130         * config/sh/coff.h: Replace Hitachi with Renesas.
3131         * config/sh/elf.h: Likewise.
3132         * config/sh/embed-elf.h: Likewise.
3133         * config/sh/lib1funcs.asm: Likewise.
3134         * config/sh/sh-protos.h: Likewise.
3135         * config/sh/sh.c: Likewise.
3136         * config/sh/sh.h: Likewise.
3137         * config/sh/sh.md: Likewise.
3138
3139 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3140
3141         * ChangeLog.3: Fix comment typos.
3142         * ChangeLog.6: Likewise.
3143         * config/d30v/d30v.c: Likewise.
3144         * config/h8300/h8300.md: Likewise.
3145         * config/m32r/m32r.md: Likewise.
3146         * config/mips/mips.c: Likewise.
3147         * config/mips/mips.md: Likewise.
3148         * config/ns32k/NOTES: Likewise.
3149
3150 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
3151             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3152
3153         * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
3154         to run Java runtime tests separately.
3155
3156 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3157
3158         * config/h8300/h8300-protos.h: Update a comment.
3159
3160 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
3161
3162         * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
3163         are aligned like integral modes.
3164         (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
3165
3166         * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
3167         (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
3168         * sh.md (*pt): Remove.
3169
3170         * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
3171
3172         * sh.md (return_media_rte): New pattern.
3173         (return_media): Use it.
3174
3175 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
3176
3177         * doc/contrib.texi: Replace Hitachi with Renesas.
3178         * doc/install.texi: Likewise.
3179         * doc/invoke.texi: Likewise.
3180
3181 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
3182
3183         * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
3184         behaviour.
3185
3186 2003-06-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3187
3188         * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
3189
3190         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
3191         2003-01-23 patch. Corrected to handle kernels with changed ucontext.
3192
3193         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
3194         -msdata=eabi usages.
3195
3196         * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
3197
3198 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3199
3200         * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
3201         * fixinc/gnu-regex.c: Don't define `volatile'.
3202         * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
3203         * ggc-simple.c: Likewise.
3204         * system.h: Don't define `volatile'.
3205
3206         * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
3207         * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
3208         call these macros.
3209         * config.in, configure: Regenerated.
3210
3211 2003-06-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3212
3213         * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
3214         Handle POINTERS_EXTEND_UNSIGNED.
3215
3216 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3217
3218         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
3219         !TARGET_IRIX6]: Define as NULL.
3220
3221 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3222
3223         * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
3224
3225 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3226
3227         * dbxout.c (dbxout_source_line_counter): New global variable.
3228         Mark it with GTY(()).
3229         (dbxout_source_line): Increment dbxout_source_line_counter
3230         and pass it to ASM_OUTPUT_SOURCE_LINE.
3231         * sdbout.c (sdbout_source_line_counter): New global variable.
3232         Mark it with GTY(()).
3233         (unnamed_struct_number): Mark it with GTY(()).
3234         (sdbout_source_line): Increment sdbout_source_line_counter
3235         and pass it to ASM_OUTPUT_SOURCE_LINE.
3236         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
3237         (xcoffout_source_line): Pass 0 as third argument to
3238         ASM_OUTPUT_SOURCE_LINE.
3239         (xcoffout_begin_prologue): Likewise.
3240         * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3241         Use it instead of 'sym_lineno' but without incrementing it.
3242         * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3243         * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3244         * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3245         * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
3246         argument to ASM_OUTPUT_SOURCE_LINE.
3247         * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3248         * config/arm/aout.h: Remove useless comment.
3249         * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3250         * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3251         * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3252         Use it instead of 'sym_lineno' but without incrementing it.
3253         * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3254         * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
3255         parameter. Use it instead of 'sym_lineno' but without incrementing it.
3256         * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
3257         argument to ASM_OUTPUT_SOURCE_LINE.
3258         * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3259         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3260         * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3261         Use it instead of 'sym_lineno' but without incrementing it.
3262         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3263         * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3264         * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3265         * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3266         * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
3267
3268 2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
3269
3270         * config/mips/mips-protos.h (mips_expand_block_move): Declare.
3271         (expand_block_move, output_block_move): Remove.
3272         * config/mips/mips.h (enum block_move_type): Remove.
3273         * config/mips/mips.c (block_move_call, output_block_move): Remove.
3274         (mips_block_move_straight, mips_adjust_block_mem): New function.
3275         (mips_block_move_loop): Renamed and reworked from block_move_loop.
3276         (mips_expand_block_move): Likewise expand_block_move.  Return false
3277         to fall back on the target-independent code.
3278         * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
3279         (movstrsi_internal*): Remove.
3280
3281 2003-06-16  Zack Weinberg  <zack@codesourcery.com>
3282
3283         * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
3284         * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
3285         * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
3286         ISO C: new-style function declarations, no need for PARAMS,
3287         no special punctuation on indirect function calls, use string
3288         constant concatenation where convenient.
3289
3290 2003-06-17  Andreas Jaeger  <aj@suse.de>
3291
3292         * rtl.h: Remove declarations from coverage.h.
3293         * toplev.c: Include coverage.h.
3294         * Makefile.in (toplev.o): Depend on coverage.h.
3295
3296         * toplev.h: Remove extra declaration of print_time.
3297
3298         * gengtype.c (close_output_files): Remove duplicated declaration.
3299
3300 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3301
3302         * config/sparc/sysv4.h: Remove target-independent comment;
3303         replace "GNU CC" with "GCC".
3304         * config/vxworks.h: Replace "GNU compiler" with "GCC".
3305         * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
3306         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3307         config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
3308         config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
3309         config/sparc/rtemself.h, config/sparc/sol2-64.h,
3310         config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
3311         config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
3312         config/sparc/sol2.h, config/sparc/sp64-aout.h,
3313         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
3314         config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
3315         "GNU compiler", "GNU CC" with "GCC".
3316         * config/sparc/cypress.md, config/sparc/hypersparc.md,
3317         config/sparc/sparc-modes.def, config/sparc/sparc.c,
3318         config/sparc/sparc.md, config/sparc/sparclet.md,
3319         config/sparc/supersparc.md, config/sparc/ultra1_2.md,
3320         config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
3321         "GNU C Compiler" with "GCC".
3322         * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
3323
3324 2003-06-16  Aldy Hernandez  <aldyh@redhat.com>
3325
3326         * simplify-rtx.c (simplify_subreg): Do not over-extend vector
3327         constants.
3328
3329         * testsuite/gcc.c-torture/execute/simd-4.c: New.
3330
3331 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3332
3333         * config/ip2k/ip2k.h: Remove target-independent comments.
3334
3335         * config.gcc: Explicitly mention elfos.h in ip2k entry.
3336         * config/ip2k/ip2k.h: Don't #include it here.
3337
3338 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3339
3340         * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
3341         config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
3342         dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
3343         function.c, gcc.c, genoutput.c, gensupport.c, global.c,
3344         haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
3345         loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
3346         read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
3347         stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
3348         the PTR macro.
3349
3350         * gengtype.c: Don't use UNION_INIT_ZERO.
3351         * system.h (UNION_INIT_ZERO): Delete.
3352
3353 2003-06-16  Richard Henderson  <rth@redhat.com>
3354
3355         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
3356         GET_MODE_UNIT_SIZE when simplifying constant vectors.
3357
3358 2003-06-16  Andreas Jaeger  <aj@suse.de>
3359
3360         * timevar.c (get_run_time): Remove function provided also by
3361         libiberty.
3362         * timevar.h: Remove get_run_time declaration.
3363
3364 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
3365
3366         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
3367         unreachable code.
3368
3369 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3370
3371         * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
3372         cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
3373         use macros from "symcat.h", instead rely on ISO C.
3374
3375         * system.h: Don't include "symcat.h".
3376         * configure.in (AC_C_STRINGIZE): Delete.
3377         * config.in, configure: Regenerate.
3378
3379 2003-06-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3380
3381         * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
3382
3383         * tree.h (STMT_CHECK): New macro.
3384         Also upper-case argument names on all checking macros and
3385         fix some whitespace problems; assume CODE argument does not
3386         have side-effects.
3387
3388 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3389
3390         * scan.h: Convert to ISO C.
3391         * system.h: Likewise.
3392
3393         * c-format.c (dynamic_format_types): New pointer for dynamic data.
3394         (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
3395         New functions split out of...
3396         (handle_format_attribute): ...here.
3397
3398 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
3399
3400         * sh.h (REG_CLASS_FROM_LETTER): Change to:
3401         (REG_CLASS_FROM_CONSTRAINT).
3402         (CONST_OK_FOR_I): Rename to:
3403         (CONST_OK_FOR_I08).  Changed all users.
3404         (CONST_OK_FOR_J): Rename to:
3405         (CONST_OK_FOR_I16).  Changed all users.
3406         (CONST_OK_FOR_K): Rename to:
3407         (CONST_OK_FOR_P27).  Changed all users.
3408         (CONST_OK_FOR_L): Rename to:
3409         (CONST_OK_FOR_K08).  Changed all users.
3410         (CONST_OK_FOR_O): Rename to:
3411         (CONST_OK_FOR_I06).  Changed all users.
3412         (CONST_OK_FOR_P): Rename to:
3413         (CONST_OK_FOR_I10).  Changed all users.
3414         (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
3415         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
3416         (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
3417         (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
3418         (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
3419         (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
3420         (CONST_OK_FOR_LETTER_P): Replace with
3421         (CONST_OK_FOR_CONSTRAINT_P).
3422         (EXTRA_CONSTRAINT_S): Rename to:
3423         (EXTRA_CONSTRAINT_C16).  Changed all users.
3424         (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
3425         (EXTRA_CONSTRAINT_T): Rename to:
3426         (EXTRA_CONSTRAINT_Csy).  Changed all users.
3427         (EXTRA_CONSTRAINT_Z): Remove.
3428         (EXTRA_CONSTRAINT): Replace with:
3429         (EXTRA_CONSTRAINT_STR).
3430         (EXTRA_CONSTRAINT_U): Rename to:
3431          (EXTRA_CONSTRAINT_Z).  Changed all users.
3432         * sh.c (and_operand): Use CONST_OK_FOR_J16.
3433         * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
3434         (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
3435         (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
3436         (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
3437         (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
3438         (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
3439         (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
3440         (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
3441         (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
3442         (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
3443         (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
3444         (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
3445         (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
3446         (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
3447         (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
3448         (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
3449         (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
3450         (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
3451         (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
3452         (sssubv4hi3): Likewise.
3453         (movsf_i): Change I[08]/r to G/r.
3454         (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
3455
3456         * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
3457
3458 2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>
3459
3460         * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
3461
3462 2003-06-16  Andreas Jaeger  <aj@suse.de>
3463
3464         * basic-block.h: Remove duplicate prototype of
3465         note_prediction_to_br_prob.
3466
3467         * tree.h: Remove duplicate prototype of strip_float_extensions.
3468
3469 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3470
3471         * config/c4x/c4x.c: Don't include "c-tree.h".
3472         * config/pa/pa.c: Likewise.
3473         * langhooks.c: Likewise.
3474         * tree.h (poplevel): Declare.
3475
3476 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
3477
3478         * config/h8300/h8300.c (const_costs): Move this to ...
3479         (h8300_rtx_costs): ... here.
3480
3481 2003-06-16  Roger Sayle  <roger@eyesopen.com>
3482
3483         * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
3484         (tan_optab, atan_optab): Define corresponding macros.
3485         * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
3486         * genopinit.c (optabs): Implement tan_optab and atan_optab
3487         using tan?f2 and atan?f2 patterns.
3488         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
3489         using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
3490         Change the default value of errno_set to false.
3491         (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
3492         using expand_builtin_mathfn.
3493
3494         * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
3495         expander patterns implemented using existing atan2?f3 patterns.
3496
3497 2003-06-16  Roger Sayle  <roger@eyesopen.com>
3498
3499         * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
3500         both operands of the addition equal, reuse the expanded RTL.
3501         (expand_expr <MULT_EXPR>): Likewise for multiplication.
3502
3503 2003-06-16  Roger Sayle  <roger@eyesopen.com>
3504             Jeff Law  <law@redhat.com>
3505
3506         * fold-const.c (operand_equal_p): Consider two calls to "const"
3507         functions with identical non-volatile arguments to be equal.
3508         Consider the FUNCTION_DECL for the "__builtin_foo" form of a
3509         built-in function to be equal to the "foo" form.
3510
3511 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3512
3513         * config/rs6000/sysv4le.h: Remove target-independent comment.
3514         Replace "GNU compiler" with "GCC" in comment.
3515
3516 2003-06-16  Andreas Jaeger  <aj@suse.de>
3517
3518         * tracer.c: Remove duplicate declaration.
3519
3520         * toplev.c: Remove extra declaration of decode_d_option.
3521
3522         * ssa.c: Remove duplicate declaration.
3523
3524         * sreal.c: Remove extra declaration of dump_sreal.
3525
3526         * reload1.c: Remove duplicate declarations.
3527
3528         * integrate.c: Remove extra declaration of
3529         set_decl_abstract_flags.
3530
3531         * flow.c: Remove extra declaration of dump_flow_info.
3532
3533         * alias.c: Remove extra declaration of get_addr.
3534
3535 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3536
3537         * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
3538         config/vxworks.h: GNU CC -> GCC.
3539
3540         * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
3541         lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
3542         stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
3543         ssa.h, tree.def: Replace overly specific references to "GNU C"
3544         and "GNU C Compiler" with references to "GCC".
3545
3546 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
3547
3548         * sh.c (prepare_move_operand): Check if operand 0 is an invalid
3549         memory reference.  Fix test that checks if operand 1 is using r0.
3550         * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
3551
3552         * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
3553         defined.
3554
3555 2003-06-15  Nathan Sidwell  <nathan@codesourcery.com>
3556
3557         * function.h (struct emit_status): Remove x_last_linenum,
3558         x_last_filename. Add x_last_location.
3559         * rtl.h: #include "input.h".
3560         (NOTE_DATA): New.
3561         * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
3562         number notes.
3563         * emit-rtl.c (last_linenum, last_filename): Remove.
3564         (last_location): New.
3565         (emit_line_note_after): LINE must always be >= 0.
3566         (emit_line_note): Likewise. Check not duplicate here...
3567         (emit_note): ... rather than here.
3568         (emit_line_note_force, force_next_line_note, init_emit): Adjust.
3569         * integrate.c (expand_inline_function): Use emit_line_note for
3570         line number notes.
3571         (copy_insn_list): Likewise.
3572         * unroll.c (copy_loop_body): Likewise.
3573         * Makefile.in (RTL_H): Add input.h.
3574
3575 2003-06-16  Richard Sandiford  <rsandifo@redhat.com>
3576
3577         * optabs.c (emit_libcall_block): Don't hoist insns past a label.
3578
3579 2003-06-16  Richard Henderson  <rth@redhat.com>
3580
3581         * config/alpha/alpha-protos.h, config/alpha/elf.h,
3582         config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
3583         config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
3584         * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
3585         Remove unneeded static function decls.
3586
3587 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
3588
3589         * c-opts.c (c_common_handle_option): s/on/value/.
3590         (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
3591         directly rather than converting the argument.
3592         * c.opt: Update docs.  Use UInteger where appropriate.
3593         * common.opt: Use UInteger where appropriate.
3594         * opts.c (integral_argument): New.
3595         (handle_argument): Handle integral arguments, and optional
3596         joined arguments.
3597         (common_handle_option): Update.
3598         * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
3599         * opts.sh: Handle JoinedOrMissing and UInteger flags.
3600
3601 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
3602
3603         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
3604         unnecessary extern declaration.
3605
3606 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
3607
3608         * config/gofast.h, config/interix.h, config/interix3.h,
3609         config/libgloss.h, config/linux-aout.h, config/linux.h,
3610         config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
3611         * config/kaos.h: "GNU compiler" -> GCC.
3612         * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
3613
3614         * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
3615         config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
3616         GNU CC -> GCC.
3617
3618         * config/svr3.h: Remove #if 0 code, misleading comments.
3619         GNU CC -> GCC.
3620
3621 2003-06-15  Zack Weinberg  <zack@codesourcery.com>
3622
3623         * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
3624         main_input_filename to avoid conflict with input_filename macro.
3625
3626 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3627
3628         * config/mips/mips.h (asm_file_name, g_switch_set,
3629         g_switch_value): Remove.
3630         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3631         unnecessary extern declarations.
3632
3633 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3634
3635         * config/frv/frv.h: Remove declaration of g_switch_value.
3636         * config/m32r/m32r.h: Remove declaration of g_switch_value.
3637         * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
3638
3639 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3640
3641         * opts.sh: Quote '+' in regex.
3642
3643 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
3644
3645         * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
3646         * config/rs6000/rs6000.c: Include cfglayout.h.
3647         * config/alpha/alpha.c: Likewise.
3648         * config/ia64/ia64.c: Likewise.
3649         * config/sparc/sparc.c: Likewise.
3650         * config/sh/sh.c: Likewise.
3651
3652 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3653
3654         * opts.sh: Quote '+' in regex.
3655
3656 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3657
3658         * c-opts.c (lang_flags): Update for new spelling of flags.
3659         (write_langs): Similarly.
3660         * c.opt: Specify languages.
3661         * opts.h: Remove languages.
3662         * opts.sh: Recognise front-end defined languages.
3663         * doc/sourcebuild.texi: Update.
3664
3665 2003-06-15  Andreas Jaeger  <aj@suse.de>
3666
3667         * alloc-pool.c: Convert to ISO C90 prototypes.
3668         * alloc-pool.h: Likewise.
3669         * alias.c: Likewise.
3670         * attribs.c: Likewise.
3671         * bb-reorder.c: Likewise.
3672         * bitmap.h: Likewise.
3673         * bitmap.c: Likewise.
3674         * builtins.c: Likewise.
3675
3676         * tree.h: Convert prototypes of attribs.c to ISO C90.
3677         * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
3678         * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
3679         * expr.h: Convert prototypes of builtins.c to ISO C90.
3680
3681 2003-06-15  Roger Sayle  <roger@eyesopen.com>
3682
3683         * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
3684         implement exp, expf and expl built-ins as inline x87 intrinsics.
3685         (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
3686         represent x87's fscale, frndint and f2xm1 insns respectively.
3687         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
3688         to encode x87's "fscale" instruction followed by a pop.
3689         (*frndintxf2): New insn pattern for "frndint".
3690         (*f2xm1xf2): New insn pattern for "f2xm1".
3691
3692         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
3693         UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
3694         UNSPEC_FPATAN.
3695
3696 2003-06-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3697
3698         * gencheck.c (main): Avoid generating duplicate macros.
3699
3700         * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
3701         knowing names of language subdirectories.
3702
3703 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
3704
3705         * c-pch.c (asm_file_name): Remove.
3706         * common.opt: Add more switches.
3707         * flags.h (g_switch_set): Boolify.
3708         * opts.c (g_switch_value, g_switch_set, exit_after_options,
3709         version_flag): Move from toplev.c.
3710         (common_handle_option): Handle more switches from toplev.c.
3711         * toplev.c (display_help, display_target_options, decode_d_option,
3712         print_version): Make non-static, remove prototypes.
3713         (aux_base_name, asm_file_name, aux_info_file_name): Constify.
3714         (version_flag, g_switch_value, g_switch_set, exit_after_options):
3715         Remove.
3716         (independent_decode_option): Move some handlers to opts.c.
3717         * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
3718         exit_after_options, version_flag, display_help, display_target_options,
3719         print_version, decode_d_option): New.
3720
3721 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
3722
3723         * config/alpha/alpha.md: Follow spelling conventions.
3724         * config/arm/arm.c: Likewise.
3725         * config/arm/arm.h: Likewise.
3726         * config/arm/arm.md: Likewise.
3727         * config/arm/crtn.asm: Likewise.
3728         * config/m32r/m32r.c: Likewise.
3729         * config/m32r/m32r.md: Likewise.
3730         * config/rs6000/rs6000.c: Likewise.
3731
3732 2003-06-15  Richard Henderson  <rth@redhat.com>
3733
3734         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
3735         insn_locators_initialize.
3736         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3737         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3738         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3739         * config/sh/sh.c (sh_output_mi_thunk): Do it later.
3740
3741 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
3742
3743         * builtins.c (expand_builtin_expect_jump): Remove redundant
3744         tests that are also in any_condjump_p().
3745
3746 2003-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3747
3748         * libgcc2.c: Delete sysV68 L_trampoline section.
3749         * config/m68k/mot3300-crt0.S: Delete file.
3750         * config/m68k/mot3300Mcrt0.S: Likewise.
3751
3752 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
3753
3754         * config/aoutos.h: Remove.
3755         * config.gcc: Remove reference to aoutos.h.
3756         * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
3757
3758 2003-06-14  Kazu Hirata  <kazu@cs.umass.edu>
3759
3760         * doc/install.texi: Follow spelling conventions.
3761         * doc/tm.texi: Likewise.
3762         * config/fp-bit.c: Likewise.
3763         * config/arm/arm.c: Likewise.
3764         * config/frv/frv.c: Likewise.
3765         * config/ns32k/NOTES: Likewise.
3766         * config/ns32k/STATUS: Likewise.
3767
3768 2003-06-14  Roger Sayle  <roger@eyesopen.com>
3769             Zack Weinberg  <zack@codesourcery.com>
3770
3771         * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
3772         * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
3773         * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
3774
3775         * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
3776         * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
3777         * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
3778         * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
3779         * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
3780         * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
3781         * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
3782         * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
3783         * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
3784         * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
3785         * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
3786         * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
3787         * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
3788         * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
3789         * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
3790         * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
3791         * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
3792         * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
3793         * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
3794         * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
3795
3796 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
3797
3798         * opts.sh (POSIXLY_CORRECT): Unset it.
3799
3800         * tree.h (init_function_start): Remove filename and line paramters.
3801         * function.c (init_function_start): Remove filename and line
3802         parameters. Use DECL_SOURCE_LOCATION.
3803         * c-decl.c (store_parm_decls): Adjust init_function_start call.
3804         (c_expand_body_1): Likewise.
3805         * coverage.c (create_coverage): Likewise.
3806         * objc/objc-act.c (build_tmp_function_decl): Set line number to
3807         zero.
3808         (hack_method_prototype): Adjust init_function_start call.
3809
3810 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3811
3812         PR target/3724
3813         * arm/linux-elf.h (PROFILE_HOOK): Define.
3814
3815 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3816
3817         PR target/11183
3818         * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
3819
3820 2003-06-14  Roger Sayle  <roger@eyesopen.com>
3821
3822         * opts.sh: Work around a mysterious feature in cygwin's gawk
3823         where specifying the input files explicitly has a different
3824         behavior to piping them via stdin.
3825
3826 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
3827
3828         * doc/sourcebuild.texi: Update.
3829
3830 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
3831
3832         PR target/11183
3833         * arm.c (output_move_double): Pass SImode to adjust_address.
3834
3835 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
3836
3837         * Makefile.in: Update to use common.opt and lang_opt_files.
3838         (c-options.c, c-options.h): Remove.
3839         (options.c, options.h): Add.
3840         * c-opts.c: Include options.h not c-options.h.
3841         * common.opt: New file.
3842         * configure, configure.in: Add lang_opt_files.
3843         * opts.c: Include flags.h and diagnostic.h.
3844         (common_handle_option): New.
3845         (handle_option): Update to recognize common options and all
3846         language-dependent options.
3847         * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
3848         (struct cl_option): Make flags of type int.
3849         * opts.h: Flag option with front ends to which it applies.
3850         Handle duplicate options.
3851         * toplev.c (filename): Remove.
3852         (independent_decode_option): Don't handle filenames and -quiet.
3853         (process_options, do_compile): Update.
3854
3855 2003-06-14  Nick Clifton  <nickc@redhat.com>
3856
3857         * doc/install.texi (Specific): Add description of different
3858         ARM supported file format targets.
3859
3860 Sat Jun 14 11:12:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
3861
3862         * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
3863         inside delay slots.
3864
3865 2003-06-13  Matt Kraai  <kraai@alumni.cmu.edu>
3866
3867         * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
3868         * unwind-pe.h (size_of_encoded_value): Do not define if
3869         NO_SIZE_OF_ENCODED_VALUE is defined.
3870
3871 2003-06-13  Roger Sayle  <roger@eyesopen.com>
3872
3873         * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
3874         expanding a complex constant into a CONCAT target.
3875
3876 2003-06-13  Zack Weinberg  <zack@codesourcery.com>
3877
3878         * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
3879         (ASM_FILE_START_1): Delete.
3880         * config/i386/att.h, config/i386/sco5.h,
3881         config/i386/sysv3.h
3882         (ASM_FILE_START_1): Delete.
3883
3884 2003-06-13  Kelley Cook  <kelleycook@wideopenwest.com>
3885
3886         * config/i386/bsd.h: Remove ASM_FILE_START.
3887         * config/i386/djgpp.h: Likewise.
3888         * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
3889
3890         * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
3891         * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
3892
3893 2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>
3894
3895         PR bootstrap/10835
3896         * haifa-sched.c (max_lookahead_tries,
3897         cached_first_cycle_multipass_dfa_lookahead,
3898         cached_issue_rate): New variables.
3899         (max_issue): Check the number of tries.
3900         (choose_ready): Calculate max_lookahead_tries.
3901         (sched_init): Check cached_issue_rate.
3902
3903 2003-06-13  Richard Henderson  <rth@redhat.com>
3904
3905         * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
3906         * cfgrtl.c (purge_dead_edges): Expect it too.
3907
3908 2003-06-13  Jim Wilson  <wilson@tuliptree.org>
3909             Eric Botcazou  <ebotcazou@libertysurf.fr>
3910
3911         PR bootstrap/10983
3912         * combine.c (make_extraction): Use gen_lowpart_for_combine
3913         when extracting from a REG and not in the destination of a SET.
3914
3915 2003-06-13  Doug Evans  <dje@sebabeach.org>
3916
3917         * tsystem.h (abort): Declare in inhibit_libc case to remove build
3918         warnings for addvsi3, et.al.
3919
3920 2003-06-13  Aldy Hernandez  <aldyh@redhat.com>
3921
3922         * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
3923
3924         * simplify-rtx.c (simplify_subreg): Same.
3925
3926         * emit-rtl.c (gen_lowpart_common): Same.
3927
3928 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
3929
3930         * builtins.c: Fix comment typos.
3931         * fold-const.c: Likewise.
3932
3933 2003-06-13  Doug Evans  <dje@sebabeach.org>
3934             Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3935
3936         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
3937         * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
3938         (m32r_va_arg): Use it.
3939         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
3940         (RETURN_IN_MEMORY): Ditto.
3941
3942 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3943
3944         * c-typeck.c: Remove #if 0 clauses.
3945
3946         PR other/1494
3947         * config/alpha/openbsd.h, config/i386/openbsd.h,
3948         config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
3949         residual reference to EGCS.
3950
3951 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
3952
3953         * arm.c (output_call_mem): If the address references the link-register
3954         use an instruction sequence that avoids early-clobbering IP.
3955         (eliminate_lr2ip): Delete.
3956
3957 2003-06-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3958
3959         * c-format.c (format_types_orig): Disallow '*' width/precision in
3960         asm_fprintf format checks.
3961
3962 2003-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
3963
3964         * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
3965         non-integral types from integer register save area slots.
3966
3967 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3968
3969         * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
3970
3971 2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
3972
3973         * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
3974
3975 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
3976
3977         * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
3978         to file_end_indicate_exec_stack.
3979
3980 2003-06-12  Richard Henderson  <rth@redhat.com>
3981
3982         PR target/11089
3983         * config/i386/i386.md (sse_movaps): Use an expander to force
3984         one operand to be a register.
3985         (sse_movups): Likewise.
3986
3987 2003-06-13  Doug Evans  <dje@sebabeach.org>
3988
3989         Remove some build warnings.
3990         * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
3991         (__do_global_ctors,__do_global_dtors): Ditto.
3992
3993 2003-06-12  Richard Henderson  <rth@redhat.com>
3994
3995         PR middle-end/10557
3996         * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
3997
3998 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
3999
4000         * config/m32r/m32r.md: Fix a comment typo.
4001
4002 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4003             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
4004
4005         PR target/10142
4006         * config/sparc/sparc.c (function_arg_record_value_parms): Add
4007         new 'stack' field.
4008         (function_arg_record_value_1): Set 'stack' to 1 if we run out of
4009         integer slots for an integer field.
4010         (function_arg_record_value_3): Shift vector index.
4011         (function_arg_record_value_2): Likewise.
4012         (function_arg_record_value): Initialize 'stack' to 0.
4013         Set 'stack' to 1 if we run out of integer slots for an integer field.
4014         Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
4015
4016 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4017
4018         PR optimization/10955
4019         * unroll.c (unroll_loop): Fix off-by-one bug.
4020
4021 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
4022
4023         * config/rs6000/rs6000.c (function_arg): Remove typo.
4024
4025 2003-06-12  Richard Henderson  <rth@redhat.com>
4026
4027         * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
4028         and UNSPEC_DTPOFF.
4029
4030 2003-06-12  Richard Henderson  <rth@redhat.com>
4031
4032         PR middle-end/10475
4033         * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
4034         for extracting sub-words.
4035
4036 2003-06-12  Richard Henderson  <rth@redhat.com>
4037
4038         PR target/7594
4039         * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
4040         (zero_extendqihi2, zero_extendqisi2): Likewise.
4041
4042 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
4043
4044         * config/rs6000/rs6000.c (function_arg): Always split vectors for
4045         e500 if it's a stdarg function.
4046         (function_arg_advance): Advance 2 registers for vectors in a
4047         stdarg function.
4048         (init_cumulative_args): Initialize stdarg.
4049         (rs6000_spe_function_arg): New.
4050
4051         * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
4052
4053 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
4054
4055         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
4056
4057 2003-06-12  Roger Sayle  <roger@eyesopen.com>
4058
4059         PR middle-end/168
4060         * fold-const.c (tree_expr_nonnegative_p):  Handle addition
4061         and multiplication of zero extensions, floating point division,
4062         and integer<->fp, fp<->fp and zero extension conversions.
4063         The built-in ceil and floor functions preserve signedness.
4064
4065 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
4066
4067         * ChangeLog: Follow spelling conventions.
4068         * ChangeLog.2: Likewise.
4069         * c-decl.c: Likewise.
4070         * cfgloop.h: Likewise.
4071         * cgraph.c: Likewise.
4072         * coverage.c: Likewise.
4073         * cppcharset.c: Likewise.
4074         * cpphash.h: Likewise.
4075         * cpplex.c: Likewise.
4076         * cpplib.c: Likewise.
4077         * dbxout.c: Likewise.
4078         * df.c: Likewise.
4079         * dwarf2out.c: Likewise.
4080         * dwarfout.c: Likewise.
4081         * emit-rtl.c: Likewise.
4082         * explow.c: Likewise.
4083         * gcov-io.c: Likewise.
4084         * gcov-io.h: Likewise.
4085         * gcov.c: Likewise.
4086         * gengtype.c: Likewise.
4087         * ggc.h: Likewise.
4088         * opts.c: Likewise.
4089         * real.c: Likewise.
4090         * reload.c: Likewise.
4091         * stmt.c: Likewise.
4092
4093 2003-06-12  Janis Johnson  <janis187@us.ibm.com>
4094
4095         * doc/install.texi (m32r-*-elf): Change company to Renesas.
4096
4097 Thu Jun 12 20:00:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
4098
4099         * basic-block.h (flow_delete_block_noexpunge): Kill.
4100         * cfgrtl.c (flow_delete_block_noexpunge): Merge to
4101         rtl_delete_block.
4102
4103 2003-06-10  Richard Henderson  <rth@redhat.com>
4104
4105         PR inline-asm/4823
4106         * reg-stack.c (any_malformed_asm): New.
4107         (check_asm_stack_operands): Set it.
4108         (convert_regs_1): Check it before aborting.
4109
4110 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
4111
4112         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
4113
4114 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
4115
4116         * c-opts.c (complain_wrong_lang): Add on argument.
4117         Print no- switch if on is false.
4118         (c_common_decode_option): Adjust caller.
4119
4120 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
4121
4122         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
4123         to initialize GOT register.
4124
4125 2003-06-12  Roger Sayle  <roger@eyesopen.com>
4126
4127         * fold-const.c (tree_expr_nonnegative_p): Add support for
4128         floating point constants, addition and multiplication.
4129
4130 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
4131
4132         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
4133         constraint modifier for operand 0.
4134
4135 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
4136
4137         Don't warn on dollars in builtin macro definitions,
4138         e.g. __REGISTER_PREFIX__.
4139         * cpphash.h (struct cpp_reader): Move member warn_dollars...
4140         * cpplib.h (struct cpp_options): ...to here.  Change type to
4141         unsigned char.
4142         * cppinit.c (cpp_create_reader): Set it to 1 here.
4143         (post_options): Don't set it here.
4144         * c-opts.c (c_common_init_options): Reset it to 0 here.
4145         (finish_options): Set it here.
4146         * cpplex.c (forms_identifier_p): Tweak for new location of
4147         warn_dollars.
4148
4149         * configure.in (assembler dwarf2 debug_line support): Define insn
4150         for cris-*-* and mmix-*-*.
4151         * configure: Regenerate.
4152
4153 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
4154
4155         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
4156         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
4157         (sh-*-elf*): Add sh*-*-kaos* support.
4158         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
4159         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
4160         config/sh/kaos-sh.h: New files.
4161
4162 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
4163
4164         * gcse.c (fis_get_condition): Make it a global function.
4165         * reload1.c (reload_cse_move2add): Detect implicit sets.
4166         * rtl.h: Add a prototype for fis_get_condition.
4167
4168 2003-06-11  Richard Henderson  <rth@redhat.com>
4169
4170         * stmt.c (expand_asm_operands): Don't warn for memories with
4171         queued addresses.
4172
4173 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4174
4175         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
4176         brackets.
4177
4178 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
4179
4180         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
4181         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
4182         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
4183         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
4184         * langhooks.c (lhd_decode_option): Remove.
4185         * langhooks.h (struct lang_hooks): Remove decode_option.
4186         * opts.c (handle_option): No longer use decode_option.
4187
4188 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4189
4190         * cfgloopanal.c (variable_initial_value): Update the set of altered
4191         registers correctly.
4192
4193 2003-06-11  Roger Sayle  <roger@eyesopen.com>
4194             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4195
4196         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
4197         * config/i386/netbsd-elf.h: Likewise.
4198         * config/m32r/m32r.h: Likewise.
4199         * config/mn10300/mn10300.h: Likewise.
4200         * config/stormy16/stormy16.h: Likewise.
4201         * config/v850/v850.h: Likewise.
4202         * config/vax/netbsd-elf.h: Likewise.
4203         * config/xtensa/elf.h: Likewise.
4204         * config/xtensa/linux.h: Likewise.
4205
4206 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4207
4208         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
4209         DWARF 2 default.
4210
4211         * config/mips/dbxmdebug.h: New file.
4212         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
4213         gas and --with-stabs.
4214
4215 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
4216
4217         * expr.c (can_move_by_pieces): align argument may be unused.
4218
4219 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
4220
4221         * expr.c (convert_move): Handle moves between two CONCATs.
4222
4223 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
4224
4225         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
4226         !TARGET_H8300.
4227
4228 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
4229
4230         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
4231         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
4232         (TARGET_RTL_DUMP): Likewise.
4233         (TARGET_SWITHCES): Remove -mrtl-dump.
4234
4235 2003-06-10  Richard Henderson  <rth@redhat.com>
4236
4237         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
4238
4239 2003-06-10  Richard Henderson  <rth@redhat.com>
4240
4241         * config/ia64/ia64.md (call_gp): Fix memory mode.
4242
4243 2003-06-10  James E Wilson  <wilson@tuliptree.org>
4244
4245         PR target/8812
4246         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
4247         hard regs for reload_reg_used_at_all and reg_class_contents checks.
4248
4249 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
4250
4251         * config/h8300/h8300.c (print_operand): Remove support for
4252         operand character 'b'.
4253         Add the AND case to operand character 'c'.
4254         * config/h8300/h8300.md (two anonymous patterns): Replace
4255         operand character 'b' with 'c'.
4256
4257 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
4258
4259         * config/h8300/h8300.c (print_operand): Remove support for
4260         operand character 'u'.
4261
4262 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
4263
4264         * configure.in: Fix typo.
4265         * configure: Regenerate.
4266
4267 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
4268
4269         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
4270         compilation guard.
4271
4272 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
4273
4274         * sh-protos.h (function_symbol): Declare.
4275         * sh.c (expand_block_move, expand_ashiftrt): Use it.
4276         (sh_expand_prologue, sh_expand_epilogue): Likewise.
4277         (sh_initialize_trampoline): Likewise.
4278         (function_symbol): New function.
4279         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
4280         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
4281         (call_value_pop, shcompact_return_tramp): Likewise.
4282
4283         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
4284
4285         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
4286         target register.
4287
4288 2003-06-10  DJ Delorie  <dj@redhat.com>
4289
4290         * doc/md.texi (Machine Constraints): Document stormy's Z
4291         constraint.
4292
4293 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
4294
4295         * except.c (call_site_base): Mark with GTY.
4296
4297 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
4298
4299         * arm-proto.h: Convert to ISO C90 prototypes.
4300         * arm.c: Likewise.
4301
4302 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
4303
4304         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
4305
4306 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
4307
4308         * calls.c (expand_call): Convert structure_value_addr to Pmode if
4309         necessary.
4310
4311 2003-06-10  Andrew Haley  <aph@redhat.com>
4312
4313         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
4314         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
4315         (lhd_decl_ok_for_sibcall): New.
4316         * langhooks.c (lhd_decl_ok_for_sibcall): New.
4317         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
4318         * calls.c (expand_call): Check lang_hook before generating a
4319         sibcall.
4320
4321 2003-06-10  DJ Delorie  <dj@redhat.com>
4322
4323         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
4324         which matches (const_int 0) for addhi3.
4325         * config/stormy16/stormy16.md: Document known constraints.
4326         (addhi3): Handle adding zero.
4327
4328 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4329
4330         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
4331         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
4332         * config/m32r/m32r-protos.h: Prototype it.
4333
4334 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
4335
4336         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
4337         common to rs6000 sysv targets.
4338         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
4339         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
4340
4341 2003-06-10  Nick Clifton  <nickc@redhat.com>
4342
4343         * config.gcc: Add arm-wince-pe target.
4344         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
4345         Add comment about default apcs26 support.
4346         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
4347         multilib.
4348         (MULTILIB_DIRNAMES): Add 'apcs32'.
4349         * config/arm/t-wince-pe: New makefile fragment.
4350         * config/arm/wince-pe.h: New file.  Overrides a few definitions
4351         in arm/pe.h
4352
4353 2003-06-10  Roger Sayle  <roger@eyesopen.com>
4354
4355         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
4356         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
4357         when x is easily negated and f is sin, tan or atan.
4358         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
4359         sin(x) with flag_unsafe_math_optimizations.
4360         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
4361         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
4362
4363 2003-06-10  Roger Sayle  <roger@eyesopen.com>
4364
4365         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
4366         is a floating point type *and* we currently honor NaNs.
4367         (fold <NE_EXPR>): Likewise.
4368
4369 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
4370
4371         PR c++/11131
4372         * tree-inline.c (inlinable_function_p): Call the language-specific
4373         hook early.
4374
4375 2003-06-09  David Taylor  <dtaylor@emc.com>
4376
4377         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
4378         the f_res field.
4379
4380 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
4381
4382         * configure.in: Remove references to host_truncate_target.
4383         * configure: Regenerate.
4384         * config.gcc: Remove references to truncate_target,
4385         host_truncate_target.
4386
4387         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
4388         Replace "build_canonical" with build, "host_canonical" with host.
4389         * configure.in: Use GCC_TOPLEV_SUBDIRS.
4390         * aclocal.m4: Include ../config/acx.m4.
4391         * configure: Regenerate.
4392
4393 2003-06-09  David Taylor  <dtaylor@emc.com>
4394
4395         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
4396         bytes of padding in the __va_list_tag structure a name (reserved).
4397
4398 2003-06-09  Jason Merrill  <jason@redhat.com>
4399
4400         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
4401
4402 2003-06-09  Osku Salerma  <osku@iki.fi>
4403
4404         * c-format.c (check_format_string, get_constant): New.
4405         (handle_format_attribute, handle_format_arg_attribute,
4406         decode_format_attr): Change to use above functions.
4407
4408 2003-06-09  Richard Henderson  <rth@redhat.com>
4409
4410         * stmt.c (expand_asm_operands): Re-word warning.
4411
4412 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
4413
4414         PR target/8787
4415         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
4416         if -masm=intel.
4417
4418 2003-06-09  James E Wilson  <wilson@tuliptree.org>
4419
4420         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
4421         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
4422         Add libgcc exception.
4423
4424 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
4425             Ayal Zaks  <gcchaifa@us.ibm.com>
4426
4427         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
4428         (insvsi*): Add insert_word attribute.
4429         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
4430         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4431         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
4432
4433 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
4434
4435         * fold-const.c (fold): Fix a comment typo.
4436
4437 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
4438
4439         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
4440         removed.
4441
4442 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
4443
4444         * sh.c (gen_block_redirect): Use locators.
4445
4446 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
4447
4448         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
4449         cast to int.
4450
4451 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4452
4453         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
4454         operators.
4455         * configure: Regenerated.
4456
4457 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4458             Alexandre Oliva  <aoliva@redhat.com>
4459
4460         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
4461         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
4462         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
4463         n32/64 PIC.
4464         (MUST_SAVE_REGISTERS): Delete.
4465         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
4466         (machine_function): Add global_pointer field.
4467         (mips_classify_constant): Check for (const $gp) using pointer equality
4468         with pic_offset_table_rtx.
4469         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4470         (mips_restore_gp): Use current_function_outgoing_args_size.
4471         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
4472         GP_REG_FIRST + 28.  Handle relocation strings that have
4473         more than one '('.
4474         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4475         (mips_global_pointer): New function.
4476         (mips_save_reg_p): New function, mostly split out from...
4477         (compute_frame_size): ...here.  Remove handling of extra_size.
4478         Reclaim args_size if no variables depend on it.  Don't treat gp
4479         as a special case: handle it in the main GPR loop.
4480         (mips_initial_elimination_offset): Fix comment.
4481         (save_restore_insns): Save every register in the GPR mask,
4482         removing distinction between mask and real_mask.
4483         (mips_output_function_prologue): Update .frame psuedo-op after
4484         the removal of extra_size.  Move the SVR4 PIC stack allocation
4485         and cprestore instructions to mips_expand_prologue.
4486         (mips_gp_insn): New function.
4487         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
4488         the chosen global pointer.  Handle SVR4 PIC stack allocation
4489         in the same way as other ABIs.  Adjust varargs code accordingly.
4490         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
4491         to emit the loadgp sequence.  Follow it with a loadgp_blockage
4492         if not using explicit relocs.
4493         (mips_output_function_epilogue): Reinstate the default gp register.
4494         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
4495         (mips16_optimize_gp): Likewise.
4496         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
4497         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
4498         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
4499         (loadgp): Remove.
4500         (loadgp_blockage, cprestore): New instructions.
4501         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
4502         pic_offset_table_rtx.
4503         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
4504         (builtin_longjmp): Use gen_raw_REG to force use of $28.
4505
4506 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4507
4508         * config/mips/mips-protos.h (mips_output_division): Declare.
4509         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
4510         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
4511         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
4512         (TARGET_CHECK_ZERO_DIV): New macro.
4513         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
4514         * config/mips/mips.c (mips_output_division): New function.
4515         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
4516         account when calculating the default length of a division.
4517         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
4518         Enable regardless of optimization level.  Use mips_output_division.
4519         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
4520         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
4521         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
4522         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
4523         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
4524         umoddi3_internal): Remove.
4525
4526 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4527
4528         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
4529         (mips_sw_reg_names): Likewise.
4530         (mips_regno_to_class): Change hilo entry to NO_REGS.
4531         (hilo_operand): Use MD_REG_P.
4532         (extend_operator): New predicate.
4533         (override_options): Remove 'a' constraint.
4534         (mips_secondary_reload_class): Remove hilo handling.  Also remove
4535         handling of (plus sp reg) reloads for mips16.
4536         (mips_register_move_cost): Remove hilo handling.
4537         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
4538         (MD_REG_LAST): Remove hilo from range.
4539         (HILO_REGNUM): Delete.
4540         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
4541         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4542         (PREDICATE_CODES): Add entry for extend_operator.
4543         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
4544         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
4545         Remove constraints from multiplication define_expands.  Remove
4546         clobbers from "decorative" define_expand patterns.
4547         (UNSPEC_HILO_DELAY): Delete.
4548         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
4549         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
4550         Adjust C code to just emit insns for !TARGET_64BIT.
4551         (mulsidi3_internal): Rename to mulsidi3_32bit.
4552         (mulsidi3_64bit): Use a "d" constraint for the destination.
4553         Use extend_operator so that the pattern can handle umulsidi3 as well.
4554         Split the instruction after reload.
4555         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
4556         (umulsidi3_internal): Rename to umulsidi3_32bit.
4557         (umulsidi3_64bit): Remove.
4558         (*smsac_di, *umsac_di): Line-wrap fixes.
4559         (udivsi3_internal): Don't allow operand 2 to be constant.
4560         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
4561         (movdi_internal2, movsi_internal): Remove hilo alternatives.
4562         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
4563
4564 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
4565
4566         PR target/10913
4567         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
4568         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
4569         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
4570         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
4571         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
4572         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
4573         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
4574         asm_out_text_file with asm_out_file.
4575         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
4576         * config/mips/elf.h (TEXT_SECTION): Undefine.
4577         * config/mips/elf64.h (TEXT_SECION): Undefine.
4578         * config/mips/openbsd.h (TEXT_SECION): Undefine.
4579         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
4580         (override_options): Disable small-data optimizations unless using
4581         gas or explicit relocations.
4582         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
4583         iris6_asm_named_section, iris6_asm_file_start): Remove code for
4584         handling TARGET_FILE_SWITCHING.
4585         (copy_file_data): Move into TARGET_IRIX6 block.
4586
4587 2003-06-08  Richard Henderson  <rth@redhat.com>
4588
4589         * expr.h (EXPAND_MEMORY): New.
4590         * expr.c (expand_expr): Check it.
4591         * stmt.c (expand_asm_operands): Provide it when the constraint
4592         requires a memory.  Warn for memory input constraints without
4593         a memory operand.
4594
4595 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4596
4597         * varasm.c: Don't include c-tree.h.
4598
4599 2003-06-08  Andreas Jaeger  <aj@suse.de>
4600
4601         * predict.h: Convert to ISO C90 prototypes.
4602         * predict.c: Likewise.
4603         * tree-dump.h: Likewise.
4604         * tree-dump.c: Likewise.
4605         * diagnostic.h: Likewise.
4606         * diagnostic.c: Likewise.
4607         * combine.c: Likewise.
4608
4609         * rtl.h: Convert prototypes of combine.c to ISO C90.
4610
4611 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
4612
4613         * cfglayout.c (insn_scope): New static function
4614         (block_locators_*, line_locators*, file_locators*): New static varrays.
4615         (scope_to_insns_initialize): Use them.
4616         (insn_line, insn_file): New functions.
4617         (scope_to_insns_finalize): Use insn_scope.
4618         (prologue_locator, epilogue_locator): New global variables.
4619         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
4620         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
4621         (emit_insn_after_scope, emit_insn_before_scope
4622         emit_jump_insn_after_scope, emit_jump_insn_before_scope
4623         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4624         (emit_insn_after_setloc, emit_insn_before_setloc
4625         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4626         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4627         use locators.
4628         * final.c (notice_source_line): Use locators.
4629         (final_start_function): Set initial source file and line.
4630         (final_scan_insn): Use locators.
4631         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4632         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
4633         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4634         noce_process_if_block, find_cond_trap): Likewise.
4635         * integrate.c (copy_insn_list): Likewise.
4636         * jump.c (duplicate_loop_exit_test): LIkewise.
4637         * print-rtl.c (print_rtx): Print locators.
4638         * recog.c (peephole2_optimize): Likewise.
4639         * rtl.h (INSN_SCOPE): Remove.
4640         (emit_insn_after_scope, emit_insn_before_scope
4641         emit_jump_insn_after_scope, emit_jump_insn_before_scope
4642         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4643         (emit_insn_after_setloc, emit_insn_before_setloc
4644         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4645         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4646         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
4647         * unroll.c (copy_loop_body): Use locators.
4648         * function.c (set_insn_locators): New function.
4649         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
4650
4651 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
4652
4653         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
4654         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
4655         _fixsfdi _fixunssfdi.
4656         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
4657         popcounthi2.
4658         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
4659         * config/h8300/clzhi2.c: New.
4660         * config/h8300/ctzhi2.c: Likewise.
4661         * config/h8300/parityhi2.c: Likewise.
4662         * config/h8300/popcounthi2.c: Likewise.
4663
4664 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
4665
4666         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
4667         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
4668
4669         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
4670         (dump_bb): New based on old dump_bb in cfgrtl.c
4671         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
4672         * cfghooks.h (cfgh_verify_flow_info): Return status.
4673         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
4674         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
4675         (dump_bb): Remove generic parts.
4676         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
4677         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
4678
4679 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
4680
4681         * Makefile.in: Rename options.c and options.h to c-options.c and
4682         c-options.h.
4683         (OBJS): Remove options.o.
4684         * c-opts.c: Don'tInclude c-options.h instead of options.h.
4685         * opts.c: Don't include options.h.
4686         (find_opt): Can't use enum opt_code or N_OPTS.
4687         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
4688         * opts.sh: ... here.
4689
4690 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4691             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4692
4693         PR pch/9830
4694         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
4695         if HAVE_MINCORE is defined.
4696         (MAP_FAILED): Define if not defined.
4697         (gt_pch_save): Test against MAP_FAILED.
4698         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
4699         the mapping address to the preferred base after checking it
4700         is possible to do so. Test against MAP_FAILED.
4701         * configure.in: Test for the presence of mincore in libc.
4702         * config.in: Regenerate.
4703         * configure: Regenerate.
4704
4705 2003-06-07  Richard Henderson  <rth@redhat.com>
4706
4707         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
4708         conditional compilation guard.
4709
4710 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
4711
4712         * optabs.c (expand_abs): Set result_unsignedp to 1 if
4713         flag_trav is zero.
4714
4715 2003-06-07  Richard Henderson  <rth@redhat.com>
4716
4717         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
4718
4719 2003-06-07  Richard Henderson  <rth@redhat.com>
4720
4721         * basic-block.h (EDGE_SIBCALL): New.
4722         (EDGE_ALL_FLAGS): Update.
4723         * cfg.c (dump_edge_info): Add sibcall name.
4724         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
4725         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
4726
4727 2003-06-07  Andreas Jaeger  <aj@suse.de>
4728
4729         * mklibgcc.in (lib2funcs): Remove _exit.
4730         * libgcc2.c: Remove L_exit.
4731         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
4732
4733         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4734
4735         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4736
4737         * ggc.h: Convert to ISO C90 prototypes.
4738         * ggc-none.c: Likewise.
4739         * ggc-common.c: Likewise.
4740         * ggc-page.c: Likewise.
4741         * ggc-simple.c: Likewise.
4742
4743         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
4744
4745         * system.h: Poison INIT_SECTION_PREAMBLE.
4746
4747 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
4748
4749         * config.gcc (with_cpu handling): Translate sparc64 in
4750         $machine to --with-cpu=v9.
4751         * config/alpha/alpha.c
4752         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
4753         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
4754
4755         * target.h: New hook asm_out.file_end.
4756         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
4757         * toplev.c (compile_file): Use targetm.asm_out.file_end.
4758         * system.h: Poison ASM_FILE_END.
4759         * varasm.c (file_end_indicate_exec_stack): New.
4760         * output.h: Prototype it.
4761         * doc/tm.texi: Document TARGET_ASM_FILE_END and
4762         file_end_indicate_exec_stack.  Delete references to attasm.h.
4763
4764         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
4765         (ASM_FILE_END): Delete; move code...
4766         * config/darwin.c (darwin_file_end): Here; new function.
4767         * config/darwin-protos.h: Prototype it.
4768         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
4769         rename unicosmk_file_end.
4770         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
4771         * config/arm/arm.c (aof_file_end): ... here; new static function.
4772         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
4773         Make aof_dump_imports and aof_dump_pic_table static.
4774         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
4775         Set TARGET_ASM_FILE_END to avr_file_end.
4776         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
4777         Set TARGET_ASM_FILE_END to c4x_file_end.
4778         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
4779         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
4780         h8300_file_end.
4781         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
4782         * config/i370/i370.c (i370_file_end): ... here; new static function.
4783         Set TARGET_ASM_FILE_END to i370_file_end.
4784          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
4785          Take no arguments.  Call file_end_indicate_exec_stack if
4786          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
4787         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4788         Define NEED_INDICATE_EXEC_STACK to 0.
4789         * config/i386/linux.h, config/i386/linux64.h: Redefine
4790         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
4791         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
4792         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
4793         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
4794         ia64_hpux_file_end, make static.  Take no arguments.
4795         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
4796         commands_in_prologues, commands_in_epilogues): Delete.
4797         (function_epilogue): Update to match.
4798         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
4799         make static.  Take no arguments.
4800         (iris6_asm_file_end): Rename iris6_file_end, make static, use
4801         mips_file_end, take no arguments.
4802         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
4803         appropriate.
4804         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
4805         make static, take no arguments. Set TARGET_ASM_FILE_END to
4806         mmix_file_end.
4807         * config/pa/pa.c (output_deferred_plabels): Make static, take
4808         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
4809         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
4810         (ASM_FILE_END): Delete; move code...
4811         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
4812         new static function.
4813
4814         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
4815         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
4816         Don't set ASM_FILE_END.
4817         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
4818         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
4819         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
4820         file_end_indicate_exec_stack; don't set ASM_FILE_END.
4821         * config/alpha/unicosmk.h, config/i386/cygming.h
4822         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4823         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
4824         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
4825         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4826         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
4827         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
4828
4829 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
4830
4831         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
4832         specified.
4833
4834 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
4835
4836         * Makefile.in (stageprofile_build): Kill redundant target.
4837         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
4838
4839 2003-06-07  Andreas Jaeger  <aj@suse.de>
4840
4841         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
4842
4843         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
4844         * config/dsp16xx/dsp16xx.h: Likewise.
4845         * config/i386/i386.h: Likewise.
4846         * config/ip2k/ip2k.h: Likewise.
4847
4848 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
4849
4850         * Makefile.in (OJBS, c-opts.o): Update.
4851         (c-options.c, c-options.h): Rename options.h and options.c.
4852         (options.h): Rename options_.h.
4853         (opts.o): New.
4854         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
4855         (c_common_init_options): Update prototype.
4856         * c-lang.c (c_init_options): Update prototype.
4857         (LANG_HOOKS_HANDLE_OPTION): Override.
4858         (LANG_HOOKS_DECODE_OPTION): Drop.
4859         * c-opts.c: Include opts.h and options.h instead of c-options.h
4860         and c-options.c.
4861         (lang_flags): Move to file scope.
4862         (find_opt, c_common_decode_option): Remove.
4863         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
4864         CL_REJECT_NEGATIVE): Move to opts.h.
4865         (missing_arg): Update prototype.
4866         (c_common_init_options): Update for new prototype.
4867         (c_common_handle_options): Filenames are passed as N_OPTS.
4868         * hooks.c (hook_int_void_0): New.
4869         * hooks.h (hook_int_void_0): New.
4870         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
4871         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
4872         (LANG_HOOKS_INITIALIZER): Update.
4873         * langhooks.h (init_options): Update.
4874         (handle_option): New.
4875         * opts.c, opts.h: New files.
4876         * opts.sh: Update c file to include opts.h and options.h.
4877         * toplev.c: Include opts.h; change options.h to options_.h.
4878         (parse_options_and_default_flags): Get lang_mask, use
4879         handle_option for language-specific handling.
4880         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
4881         (LANG_HOOKS_HANDLE_OPTION): Override.
4882         (objc_init_options): Update.
4883
4884 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
4885             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
4886
4887         PR other/7031
4888         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
4889         gcov.
4890
4891 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
4892
4893         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
4894         section names.
4895         * configure: Regenerate.
4896
4897 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
4898
4899         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
4900
4901 2003-06-06  James E Wilson  <wilson@tuliptree.org>
4902
4903         PR inline-asm/10890
4904         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
4905         different in fields.
4906
4907 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
4908
4909         * configure.in: Make $(target_subdir) correspond with top level usage.
4910         * Makefile.in: Likewise.
4911         * configure: Regenerate.
4912
4913 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4914
4915         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
4916         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
4917         unsigned HOST_WIDE_INT.
4918         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
4919         Likewise.
4920         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
4921         Likewise.
4922
4923 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4924
4925         * doc/install.texi (Prerequisites): New section documenting
4926         tools and packages necessary prior to building and/or
4927         modifying GCC.
4928         * doc/install.texi2html: Also generate prerequisites.html.
4929
4930 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
4931
4932         PR target/11052
4933         * ifcvt.c (noce_process_if_block): Fail if the destination has
4934         side-effects.
4935
4936 2003-06-06  Jason Merrill  <jason@redhat.com>
4937
4938         * stmt.c (resolve_asm_operand_names): Rename from
4939         resolve_operand_names.  No longer static.  Avoid needless copying.
4940         Don't build array of constraints.
4941         (expand_asm_operands): Build it here.
4942         * tree.h: Declare resolve_asm_operand_names.
4943
4944         * stmt.c (expand_decl): Put artificial vars into registers even
4945         when not optimizing, and don't mark the regs as user vars.
4946
4947 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
4948
4949         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
4950         of the generated register.
4951
4952 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
4953
4954         * config.gcc: Add a missing sparc64 case.
4955
4956 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
4957
4958         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
4959         the .hidden assembly stubs.
4960
4961 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
4962
4963         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
4964         and x86_64-*-*.
4965
4966         * config/i386/mmintrin.h: Update version and add alternate
4967         intrinsic names.
4968         * config/i386/xmmintrin.h: Likewise.
4969
4970         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
4971         intrinsics to ...
4972         * config/i386/emmintrin.h: Here. New file.
4973
4974 2003-06-06  Roger Sayle  <roger@eyesopen.com>
4975
4976         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
4977         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
4978         when the ABS_EXPR (fabs or abs) is not required.
4979         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
4980         always nonnegative from fold to here.  Additionally, cabs and fabs
4981         are always non-negative, and pow and atan are non-negative if
4982         their first argument is non-negative.
4983
4984         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
4985         Evaluate cabs of a constant at compile-time.  Convert cabs of a
4986         non-complex argument into fabs.  Convert cabs(z) into
4987         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
4988         -funsafe-math-optimizations or -ffast-math.
4989         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
4990         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
4991
4992 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
4993
4994         * sourcebuild.texi (Front End Directory): Document new hooks.
4995
4996 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
4997
4998         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
4999         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
5000         stack frames.
5001         (pro_epilogue_adjust_stack_rex64_2): New pattern
5002
5003 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
5004                                Pop Sebastian
5005                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5006
5007         * cfghooks.h, cfghooks.c: New files.
5008         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
5009         (OBJS): Add cfghooks.o.
5010         (cfghooks.o): New rule.
5011         * basic-block.h (split_edge): Rename to rtl_split_edge.
5012         (verify_flow_info): Rename to rtl_verify_flow_info.
5013         (cfghooks.h): Included here.
5014         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
5015         (verify_flow_info): Renamed rtl_verify_flow_info.
5016         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
5017
5018         * basic-block.h (split_block, split_edge, flow_delete_block,
5019         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
5020         (flow_delete_block_noexpunge):  Return void.
5021         * cfg.c (verify_flow_info): New function.
5022         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
5023         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
5024         Use delete_block.
5025         * cfglayout.c (function_footer): Rename to...
5026         (cfg_layout_function_footer): ... this variable
5027         (unlink_insn_chain): Make global.
5028         (fixup_reorder_chain, record_effective_endpoints): Update.
5029         (cleanup_unconditional_jumps): Use delete_block.
5030         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
5031         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
5032         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
5033         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
5034         (cfg_layout_function_footer): Declare.
5035         * cfgloopmanip (split_loop_bb): Do not update RBI.
5036         (remove_bbs): Use delete_block.
5037         (loop_reidrect_edge, loop_delete_branch_edge): Use
5038         redirect_edge_and_branch.
5039         (create_preheader): Use split_block and redirect_edge_and_branch_force.
5040         (split_edge_with): Likewise.
5041         * cfgrtl.c: Include cfglayout.h
5042         (split_edge): Rename to ...
5043         (rtl_split_edge) ... this one; make local.
5044         (redirect_edge_and_branch): Rename to ...
5045         (rtl_redirect_edge_and_branch) ... this one; make local.
5046         (redirect_edge_and_branch_force): Rename to ...
5047         (rtl_redirect_edge_and_branch_force) ... this one; make local.
5048         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
5049         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
5050         cfglayout.c; update to directly call RTL counterparts.
5051         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
5052         * ifcvt.c (find_cond_trap): Use delete_block.
5053         (find_if_case_1): Use delete_block.
5054         (find_if_case_2): Use delete_block.
5055         * rtl.h (unlink_insn_chain): Declare.
5056         * toplev.c (rtl_reigster_cfg_hooks): New.
5057
5058 2003-06-05  Richard Henderson  <rth@redhat.com>
5059
5060         * recog.c (peephole2_optimize): Revert last change.
5061
5062 2003-06-05  Richard Henderson  <rth@redhat.com>
5063
5064         * recog.c (peephole2_optimize): Don't split block unless
5065         can_throw_internal.
5066
5067 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
5068
5069         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
5070         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
5071
5072 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
5073
5074         PR optimization/4490
5075         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
5076         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
5077         documentation to accurately reflect what these options do.
5078
5079 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
5080
5081         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
5082         (ENDFILE_SPEC): Redefine to handle -pie.
5083
5084 2003-06-05  Phil Edwards <phil@jaj.com>
5085
5086         * Makefile.in (qmtest-g++): Use target_alias, not target.
5087
5088 2003-06-05  Per Bothner  <pbothner@apple.com>
5089
5090         * toplev.c (push_srcloc):  Simplify behavior to save current location
5091         and set current location to parameters.
5092         (pop_srcloc):  Simplify semantics.
5093         (lang_dependent_init):  Remove now-useless initial push_srcloc.
5094
5095 2003-05-06  Richard Henderson  <rth@redhat.com>
5096
5097         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
5098         language-specific tree codes.
5099
5100 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5101
5102         PR middle-end/9986
5103         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
5104         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
5105
5106 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
5107
5108         * install.tex: Document profiledbootstrap.
5109
5110         * configure.in:  Add support for lang.stageprofile and
5111         lang.stagefeedback
5112         * Makefile.in (clean, distclean): Kill new stages
5113         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
5114         (STAGE2_FLAGS_TO_PASS): ... this one.
5115         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
5116         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
5117         (stageprofile_build, stageprofile_copy, stagefeedback_build,
5118         stagefeedback_copy): New.
5119         (restageprofile, restagefeedback, stageprofile-start,
5120         stageprofile, stagefeedback-start): Likewise.
5121
5122 2003-06-05  David Miller  <davem@redhat.com>
5123             Richard Henderson  <rth@redhat.com>
5124
5125         * optabs.c (HAVE_conditional_trap): Provide default.
5126         (gen_conditional_trap): Likewise.
5127         (init_optabs): Merge init_traps.
5128         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
5129
5130 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
5131
5132         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
5133         is REG for nonzero_bits (REG) == 8.
5134
5135 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
5136
5137         * i386.md (align): Fix warning; clarify what to do when no p2align
5138         is available.
5139
5140 2003-06-05  Nick Clifton  <nickc@redhat.com>
5141
5142         * config.gcc (m32r-elf): Revert previous delta.
5143         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
5144         multilibs.  Remove m32rx specific version.
5145         (crtfini.o): Likewise.
5146         (EXTRA_MULTILIB_PARTS): Define.
5147
5148 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
5149
5150         * doc/md.texi (Machine Constraints): Correct the meaning of
5151         constraints related to floating-point registers on SPARC.
5152
5153 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
5154             Paolo Bonzini  <bonzini@gnu.org>
5155
5156         PR target/10663
5157         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
5158         assembler and linker output to /dev/null.
5159         Use a 'sed' construct instead of 'grep -A1'.
5160         * configure: Regenerate.
5161
5162 2003-06-04  Richard Henderson  <rth@redhat.com>
5163
5164         * config/i386/i386.c (struct ix86_address): Add seg.
5165         (no_seg_address_operand): New.
5166         (ix86_decompose_address): Restructure PLUS loop.  Accept one
5167         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
5168         to test for a regnum, not stack_pointer_rtx.
5169         (ix86_address_cost): Reduce cost if non-default segment.
5170         (legitimate_address_p): Remove UNSPEC_TP check.
5171         (get_thread_pointer): Add to_reg argument.  Don't represent
5172         the thread pointer as a memory load.
5173         (legitimize_tls_address): Split out of ...
5174         (legitimize_address): ... here.
5175         (print_operand_address): Handle parts.seg.
5176         (ix86_expand_move): Use legitimize_tls_address.
5177         (ix86_rtx_costs): Handle UNSPEC_TP.
5178         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
5179         (TARGET_TLS_DIRECT_SEG_REFS): New.
5180         (TARGET_SWITCHES): Add tls-direct-seg-refs.
5181         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
5182         (PREDICATE_CODES): Add no_seg_address_operand.
5183         * config/i386/i386.md (lea_1): Use it.
5184         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
5185         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
5186         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5187         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5188         * doc/invoke.texi: Add -mtls-direct-seg-refs.
5189
5190 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
5191
5192         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
5193         (QMTEST_GPP_TESTS): Use "g++" by default.
5194         (stamp-qmtest): Tweak database creation.
5195         (QMTEST_DIR/context): Update context file format.
5196         (qmtest-g++): Tweak command-line.
5197
5198 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5199
5200         * Makefile.in (varasm.o): Don't set -Wno-error.
5201         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
5202
5203 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
5204
5205         PR bootstrap/3163
5206         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
5207         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
5208         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
5209         and AC_CHECK_FUNCS lists, respectively.  Use
5210         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
5211         AC_FUNC_MMAP_FILE.
5212         * configure, config.in: Regenerate.
5213
5214 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5215
5216         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
5217         * arm.c (arm_output_function_prologue): Fix format specifiers.
5218         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5219         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
5220         HOST_WIDE_INT_PRINT_DEC.
5221         * vax.c (vax_output_function_prologue): Fix format specifiers.
5222
5223 2003-06-04  Richard Henderson  <rth@redhat.com>
5224
5225         * cse.c (find_best_addr): Consider binary operators even if second
5226         argument is not CONST_INT.
5227
5228 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5229
5230         * doc/invoke.texi (max-cse-path-length): Document.
5231
5232 2003-06-04  Richard Henderson  <rth@redhat.com>
5233
5234         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
5235
5236 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
5237
5238         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
5239         Remove semi-colon at the end of the expression.
5240
5241 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5242
5243         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
5244         * i370.h (mvs_function_name_length): Likewise.
5245         * i960.h (CONSTANT_ALIGNMENT): Likewise.
5246         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5247         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5248         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5249         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
5250         variable.
5251
5252 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
5253
5254         * config.gcc: Reorganize --with-cpu logic.  Set
5255         configure_default_options according to the default CPU, --with-cpu,
5256         --with-arch, --with-tune, --with-schedule, --with-abi, and
5257         --with-float.  Check for legal values of various options.
5258         * configure.in: Define configure_default_options in configargs.h.
5259         * configure: Regenerated.
5260         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
5261         (TARGET_DEFAULT_FLOAT_P): New macros.
5262         * gcc.c (do_option_spec): New function.
5263         (struct default_spec, option_default_specs): New.
5264         (main): Call do_option_spec.
5265         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
5266         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
5267         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
5268
5269         * doc/install.texi: Update --with-cpu documentation.  Mention
5270         --with-arch, --with-schedule, --with-tune, --with-abi, and
5271         --with-float.
5272         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
5273
5274 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
5275
5276         * config.gcc: Only process --with-cpu logic in the third pass.
5277
5278 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
5279
5280         * config.gcc: Reorganize --with-cpu section.  Remove an
5281         obsolete comment about the default CPU for x86-64.  Fix
5282         a typo for the ep9312.  Update the list of supported PowerPC
5283         CPUs.  Support a limited set of new --with-cpu options
5284         for i386.
5285
5286 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
5287
5288         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
5289         complex numbers <= 32 bits into two registers.
5290
5291 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5292
5293         * alpha.c (print_operand_address): Fix format specifier warnings.
5294         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5295         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5296         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5297         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
5298         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
5299         ASM_OUTPUT_SKIP): Likewise.
5300         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5301         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5302         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
5303         Likewise.
5304         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5305         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
5306         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
5307         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5308         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
5309         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5310         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5311         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5312         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5313         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
5314
5315 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
5316
5317         * c-decl.c (c_init_decl_processing): Clear input_file_name
5318         while building common nodes.
5319         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
5320         Don't add working directory for strings like <built-in> .
5321
5322 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
5323
5324         * doc/install.texi (*-ibm-aix*): Native as and ld required
5325         to bootstrap on AIX 5L.
5326
5327 2003-06-04  Richard Henderson  <rth@redhat.com>
5328
5329         * c-common.c (handle_cleanup_attribute): New.
5330         (c_common_attributes): Add it.
5331         * c-decl.c (finish_decl): Honor the cleanup attribute.
5332         * doc/extend.texi (Variable Attributes): Document it.
5333
5334         * unwind-c.c: New file.
5335         * Makefile.in (LIB2ADDEH): Add it.
5336         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
5337         config/ia64/t-ia64: Likewise.
5338
5339 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
5340
5341         * function.c (trampolines_created): New variable.
5342         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
5343         * function.h (trampolines_created): Add.
5344         * config/s390/linux.h (ASM_FILE_END): Define.
5345         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
5346         * config/m68k/linux.h (ASM_FILE_END): Define.
5347         * config/rs6000/linux.h (ASM_FILE_END): Define.
5348         * config/rs6000/linux64.h (ASM_FILE_END): Define.
5349         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
5350         * config/sparc/linux.h (ASM_FILE_END): Define.
5351         * config/sparc/linux64.h (ASM_FILE_END): Define.
5352         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
5353         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
5354         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
5355
5356 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
5357
5358         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
5359         (ix86_reorg): Use it.
5360         * i386.md (align): New insn pattern.
5361
5362 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5363
5364         * toplev.c (rest_of_type_compilation): Fix typo.
5365
5366 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
5367             Alan Modra  <amodra@bigpond.net.au>
5368
5369         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
5370         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
5371         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
5372         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
5373         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
5374         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
5375         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
5376         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
5377
5378         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
5379         Pass it to $gcc_cv_as.
5380         * configure: Rebuilt.
5381
5382         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
5383         (print_operand): Allow TARGET_AIX to be non-constant.
5384         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
5385         Define unconditionally.
5386         (rs6000_elf_declare_function_name): New function.
5387         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
5388         non-constant.
5389         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
5390         to 1.
5391         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
5392         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
5393         is defined.
5394         (TARGET_AIX): Define to 1 if TARGET_64BIT.
5395         (PROCESSOR_DEFAULT): Remove.
5396         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
5397         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5398         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
5399         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
5400         -m32 and -m64.
5401         (MULTILIB_DEFAULTS): Define.
5402         (SUBSUBTARGET_EXTRA_SPECS): Define.
5403         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
5404         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
5405         (TARGET_NO_TOC): Remove.
5406         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
5407         TARGET_PROTOTYPE): Define to 0.
5408         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
5409         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
5410         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
5411         if !TARGET_64BIT.
5412         (USER_LABEL_PREFIX): Remove.
5413         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
5414         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
5415         if TARGET_64BIT.
5416         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
5417         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
5418         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
5419         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
5420         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5421         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
5422         TARGET_64BIT.
5423         (RS6000_CALL_GLUE): Likewise.
5424         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5425         RESTORE_FP_SUFFIX): Likewise.
5426         (ASM_DECLARE_FUNCTION_NAME): Remove.
5427         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
5428         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
5429         name if TARGET_64BIT.
5430         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
5431         !TARGET_64BIT.
5432         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
5433         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
5434         (DRAFT_V4_STRUCT_RET): Define.
5435         (SIGNAL_FRAMESIZE): New enum value.
5436         (MD_FALLBACK_FRAME_STATE_FOR): Define.
5437         * config/rs6000/default64.h: New file.
5438         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
5439         options.
5440         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
5441         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
5442         if !TARGET_64BIT.
5443         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5444         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
5445         function.
5446         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
5447         (TARGET_OS_CPP_BUILTINS): Use it.
5448         (CPP_SYSV_SPEC): Remove.
5449         (CPP_SPEC): Remove cpp_sysv.
5450         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
5451         Add SUBSUBTARGET_EXTRA_SPECS.
5452         (SUBSUBTARGET_EXTRA_SPECS): Define.
5453         * config/rs6000/biarch64.h: New file.
5454         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
5455         New prototype.
5456         * config/rs6000/x-linux64: New file.
5457         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
5458         multilibs.
5459         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
5460         * config/rs6000/eabi-cn.asm: Likewise.
5461         * config/rs6000/tramp.asm: Likewise.
5462         * config/rs6000/sol-ci.asm: Likewise.
5463         * config/rs6000/sol-cn.asm: Likewise.
5464         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
5465         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
5466         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
5467         _CALL_AIXDESC section.
5468         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
5469         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
5470         or default32.
5471
5472 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
5473
5474         * config.gcc: Revert accidentally committed ARM changes.
5475
5476 2003-06-04  Roger Sayle  <roger@eyesopen.com>
5477
5478         * builtins.c (dconstpi, dconste): New mathematical constants.
5479         (init_builtin_dconsts): New function to initialize dconstpi
5480         and dconste.
5481         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
5482         compile time with -ffast-math when x is an integer constant.
5483         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
5484         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
5485
5486 2003-06-04  Roger Sayle  <roger@eyesopen.com>
5487
5488         * calls.c (expand_call): Avoid calling pure or const functions
5489         when the result is ignored (or void) and none of the arguments
5490         are volatile.  Move warning diagnostic earlier in function.
5491
5492 2003-06-04  Andreas Jaeger  <aj@suse.de>
5493
5494         * system.h: Do not poison TDESC_SECTION_ASM_OP,
5495         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
5496
5497 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5498
5499         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
5500         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
5501         handle %ll, optimize regular character case.
5502
5503 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5504
5505         * Makefile.in (cse.o): Add params.h dependency.
5506         * cse.c: Include params.h.
5507         (PATHLENGTH): Removed.
5508         (struct cse_basic_block_data): Make path array dynamic.
5509         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
5510         of PATHLENGTH.
5511         (cse_main, cse_basic_block): Allocate path array.
5512         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
5513
5514 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
5515
5516         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
5517         * i386.md (UNSPEC_REP): New constant.
5518         (return_internal_long): New pattern.
5519
5520 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5521
5522         PR optimization/11018
5523         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
5524         consistently to decide whether the scratch register is really
5525         required.
5526
5527 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5528
5529         PR optimization/10876
5530         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
5531         new 'O' constraint for constant 4096.
5532         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5533         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
5534         Do not transform into MINUS insn for constant 4096.
5535         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
5536         for constant 4096 as third operand.
5537         (addsi3 expander): Remove.
5538         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
5539         new alternative for constant 4096 as third operand.
5540         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
5541         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
5542         operand.
5543         (subsi3 expander): Remove.
5544         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
5545         constant 4096 as third operand.
5546         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
5547         the SPARC port.
5548
5549 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
5550
5551         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
5552
5553 2003-06-04  Andreas Jaeger  <aj@suse.de>
5554
5555         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
5556
5557         * config/i386/i386.c (ix86_expand_prologue): Do not use
5558         SUBTARGET_PROLOGUE.
5559
5560         * system.h: Poision SUBTARGET_PROLOGUE.
5561
5562         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
5563
5564         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
5565         dependend code.
5566
5567         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
5568
5569         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
5570         INSN_CACHE_LINE_WIDTH.
5571
5572         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
5573         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
5574         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5575
5576         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
5577         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5578
5579         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
5580         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
5581         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
5582         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
5583         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
5584         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
5585
5586         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
5587         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
5588         DBX_WORKING_DIRECTORY.
5589
5590         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
5591         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
5592
5593         * config/frv/frv-protos.h: Remove unused const_section
5594         declaration.
5595         * config/vax/vax-protos.h: Likewise.
5596
5597         * output.h: Remove CONST_SECTION_ASM_OP usage.
5598
5599         * system.h: Poison CONST_SECTION_ASM_OP.
5600
5601         * crtstuff.c (__do_global_dtors_aux): Remove usage of
5602         CRT_GET_RFIB_TEXT.
5603         (frame_dummy): Likewise.
5604         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
5605         * system.h: Poison CRT_GET_RFIB_TEXT.
5606
5607         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
5608
5609         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
5610         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
5611         (recognized_function): Likewise.
5612         (read_scan_file): Likewise.
5613
5614 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5615
5616         * optabs.c (expand_binop): Optimize complex multiplication for
5617         the case of squaring a complex argument.
5618
5619 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5620
5621         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
5622         non-volatile operands of binary operations.
5623         (prepare_cmp_insn): Likewise.
5624
5625 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5626
5627         * varasm.c (force_const_mem): Handle alignment of constants not
5628         representable as a type in the front-end language.
5629
5630 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
5631
5632         * flow.c (initialize_uninitialized_subregs): Use
5633         emit_move_insn instead of emitting a hardcoded move.
5634
5635 2003-06-03  Richard Henderson  <rth@redhat.com>
5636
5637         * optabs.c (expand_abs_nojump): Split out from ...
5638         (expand_abs): ... here.
5639         * optabs.h (expand_abs_nojump): Declare.
5640         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
5641         * Makefile.in (ifcvt.o): Depend on optabs.h.
5642
5643 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
5644
5645         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
5646
5647 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5648
5649         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
5650         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
5651         to yes.
5652         * configure.in: Allow default_use_cxa_atexit to determine the
5653         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
5654         disabled.
5655         * configure: Regenerate.
5656
5657 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
5658
5659         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
5660         * doc/gcc.texi: Remove vms.texi section.
5661         * doc/vms.texi: Remove obsolete file.
5662
5663 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
5664
5665         * configure.in (inhibit_libc): Don't define when configuring
5666         with --with-newlib --with-headers.
5667         * configure: Regenerate.
5668
5669         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
5670
5671 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5672
5673         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
5674         IRIX 6 without GNU ld.
5675         * configure: Regenerate.
5676
5677 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5678
5679         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
5680         of a complex number rather than invoke mov_optab directly.
5681
5682 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
5683
5684         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5685         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5686
5687 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
5688
5689         * config/i386/x86-64.h: Remove two target-independent comments;
5690          replace "GNU CC" with "GCC".
5691
5692 2003-06-03  Anthony Green  <green@redhat.com>
5693
5694         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
5695
5696 2003-06-03  Roger Sayle  <roger@eyesopen.com>
5697
5698         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
5699         New builtins representing ISO C99's cabs, cabsf and cabsl.
5700         * builtins.c (expand_builtin_fabs): New function.
5701         (expand_builtin_cabs): New function.
5702         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
5703         using expand_builtin_fabs and expand_builtin_cabs respectively.
5704
5705         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
5706
5707 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
5708
5709         * function.c (assign_parms): Split complex arguments.
5710
5711         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
5712
5713         * expr.h (SPLIT_COMPLEX_ARGS): Define.
5714         (split_complex_types): Protoize.
5715         (split_complex_values): Protoize.
5716
5717         * calls.c (expand_call): Split complex arguments on architectures
5718         that require it.
5719         (split_complex_values): New.
5720         (split_complex_types): New.
5721
5722         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
5723         (rs6000_function_value): Handle complex values on AIX.
5724         (rs6000_complex_function_value): New.
5725
5726         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
5727
5728         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
5729         (SPLIT_COMPLEX_ARGS): New.
5730
5731 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
5732
5733         * configure.in (HAVE_LD_PIE): Check for ld -pie.
5734         * config.in: Rebuilt.
5735         * configure: Rebuilt.
5736         * toplev.c (flag_pie, flag_shlib): New variables.
5737         (f_options): Add -fpie and -fPIE.
5738         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
5739         Set flag_shlib if flag_pic and not -fpie/-fPIE.
5740         * flags.h (flag_pic, flag_shlib): Add.
5741         * varasm.c (default_binds_local_p): Use flag_shlib instead of
5742         flag_pic.
5743         * gcc.c (LINK_PIE_SPEC): Define.
5744         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
5745         (option_map): Add --pie -> -pie mapping.
5746         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
5747         and -fPIE the same way as -fPIC.
5748         * config/openbsd.h (ASM_SPEC): Likewise.
5749         * config/frv/frv.h (ASM_SPEC): Likewise.
5750         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
5751         * config/arm/semi.h (ASM_SPEC): Likewise.
5752         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5753         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
5754         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
5755         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
5756         * config/m68k/linux.h (CPP_SPEC): Likewise.
5757         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
5758         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5759         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5760         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
5761         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
5762         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
5763         * config/netbsd-aout.h (ASM_SPEC): Likewise.
5764         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
5765         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
5766         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5767         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5768         * config/sparc/sparc.h (ASM_SPEC): Likewise.
5769         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5770         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5771         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5772         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5773         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5774         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
5775         Simplify.
5776         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5777         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5778         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5779         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5780         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5781         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5782         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5783         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
5784
5785 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
5786
5787         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
5788         != 0 handling.  Pass 0 to store_by_pieces.
5789         (expand_builtin_mempcpy): Add endp argument.  Don't call
5790         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
5791         directly.  If ignoring result, only do expand_call.
5792         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
5793         otherwise.
5794         (expand_builtin_strncpy, expand_builtin_memset): Adjust
5795         store_by_pices callers.
5796         (expand_builtin): Adjust expand_builtin_memcpy and
5797         expand_builtin_mempcpy callers.
5798         * expr.c (can_move_by_pieces): New function.
5799         (move_by_pieces): Add endp argument, return to resp. memory at end
5800         or one byte earlier depending on endp.
5801         (store_by_pieces): Likewise.
5802         (emit_block_move): Adjust call to move_by_pieces.
5803         (emit_push_insn): Adjust move_by_pieces caller.
5804         * expr.h (can_move_by_pieces): New prototype.
5805         (store_by_pieces): Adjust prototypes.
5806         * rtl.h (move_by_pieces): Adjust prototype.
5807         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
5808         caller.
5809
5810 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
5811
5812         * doc/md.texi (Processor pipeline description): Improve wording.
5813
5814 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
5815
5816         * c-opts.c (c_common_handle_option): New, pulled out of
5817         c_common_decode_option.  Substitute uses of argv.
5818         (c_common_decode_option): Broken into two.
5819
5820 2003-06-02  Roger Sayle  <roger@eyesopen.com>
5821             Zack Weinberg  <zack@codesourcery.com>
5822
5823         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
5824         test of TREE_CONSTANT_POOL_ADDRESS_P.
5825
5826 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5827
5828         * mips.c: Don't include output.h twice.
5829         * stormy16.c: Likewise.
5830         * xtensa.c: Likewise.
5831         * output.h: Protect against multiple inclusion.
5832
5833 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
5834
5835         * sh.h (OLD_ARG_MODE): New macro.
5836         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5837         (FUNCTION_ARG_1): Break out of:
5838         (FUNCTION_ARG).  Use OLD_ARG_MODE.
5839
5840 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5841
5842         * gcc/config.gcc Add support multilib parts for m32rx processor.
5843
5844 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5845
5846         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
5847         (mostlyclean): Delete c-options.c and c-options.h.
5848
5849 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
5850
5851         * c-opts.c (CL_REJECT_NEGATIVE): New.
5852         (c_common_decode_option): Update to use it.
5853         * c.opt: Update documentation; use RejectNegative.
5854         * opts.sh: Handle RejectNegative.
5855
5856 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
5857
5858         * ggc-page.c (init_ggc): Give better diagnostics on failure to
5859         open /dev/zero.
5860         * toplev.c (crash_signal): Reset handling for received signal
5861         to SIG_DFL.
5862
5863 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
5864
5865         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
5866         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
5867         (arm_use_dfa_pipeline_interface): Implement.
5868         * config/arm/arm.md (arm): New automaton.
5869         (write_buf): Remove function units; new cpu unit.
5870         (write_blockage): Remove function units; new cpu unit.
5871         (core): Remove function units; new cpu unit.
5872         (r_mem_f_wbuf): New instruction reservation.
5873         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
5874         (store1_ldsched, store2, store3, store4): Likewise.
5875         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
5876         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
5877         (multi_cycle, single_cycle): Likewise.
5878         * config/arm/fpa.md (armfp): New automaton.
5879         (fpa): Remove function units; new cpu unit.
5880         (fpa_mem): Remove function unit; new cpu unit.
5881         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
5882         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
5883
5884 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5885
5886         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
5887         * c-format.c (enum format_type): Add asm_fprintf_format_type.
5888         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
5889         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
5890         (format_types_orig): Renamed from format_types.  Add new data.
5891         (format_types): Declare as pointer.
5892         (handle_format_attribute): Move later in file so we have all
5893         necessary declarations.  Add section to capture HOST_WIDE_INT.
5894         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
5895         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
5896
5897 2003-06-01  Andreas Jaeger  <aj@suse.de>
5898
5899         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
5900         ROUND_TYPE_SIZE_UNIT.
5901
5902         * stor-layout.c (finalize_record_size): Remove usages of
5903         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5904         (finalize_type_size): Likewise.
5905         (layout_type): Likewise.
5906
5907         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5908
5909         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
5910
5911         * config/d30v/d30v.h: Remove text copied from the manual.
5912
5913 2003-06-01  Roger Sayle  <roger@eyesopen.com>
5914             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5915             Geoffrey Keating  <geoffk@apple.com>
5916
5917         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
5918         constants as condition code values.
5919
5920 2003-06-01  DJ Delorie  <dj@redhat.com>
5921
5922         * cppmacro.c (warn_of_redefinition): Handle cases where the two
5923         definitions have different numbers of tokens.
5924
5925 2003-06-01  Andreas Jaeger  <aj@suse.de>
5926
5927         * gen-protos.c (main): Readd unused attribute for argc.
5928
5929 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
5930
5931         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
5932         * c.opt: End in blank line.
5933         * opts.sh: Take AWK from environment if available; use C locale.
5934
5935 2003-06-01  Andreas Schwab  <schwab@suse.de>
5936
5937         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
5938
5939 2003-06-01  Andreas Jaeger  <aj@suse.de>
5940
5941         * gen-protos.c (main): Revert patch to check for argument.
5942
5943 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5944
5945         PR target/11044
5946         * config/i386/i386.md (length attribute): Set length to 4
5947         for instructions of type "fcmp".
5948
5949 2003-06-01  Andreas Jaeger  <aj@suse.de>
5950
5951         * toplev.c: Use ISO C90 prototypes.
5952
5953         * toplev.h: Use ISO C90 prototypes.
5954
5955         * genrecog.c: Use ISO C90 prototypes.
5956         (nodes_identical): Correct declaration to match prototype.
5957         (maybe_both_true): Likewise.
5958         (merge_trees): Likewise.
5959
5960         * genpeep.c (gen_peephole): Remove #if 0 code.
5961         Use ISO C90 prototypes.
5962
5963         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
5964         Remove #if 0'ed function simplify_by_alternatives.
5965         (optimize_attrs): Remove #if 0'ed code.
5966         Remove ^L.
5967         Use ISO C90 prototypes.
5968         (make_canonical): Remove #if 0'ed code.
5969         (convert_const_symbol_ref): Remove #if 0'ed function.
5970
5971         * gen-protos.c (main): Check for argument.
5972
5973         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
5974
5975         * params.h: Use ISO C90 prototypes.
5976         * params.c: Likewise.
5977         * intl.c: Likewise.
5978         * intl.h: Likewise.
5979         * lists.c: Likewise.
5980         * errors.c: Likewise.
5981         * errors.h: Likewise.
5982         * gencodes.c: Likewise.
5983         * genpreds.c: Likewise.
5984         * genattr.c: Likewise.
5985         * gen-protos.c: Likewise.
5986         * genflags.c: Likewise
5987         * genconditions.c: Likewise.
5988         * genautomata.c: Likewise.
5989         * gencheck.c: Likewise.
5990         * genconfig.c: Likewise.
5991         * genconstants.c: Likewise.
5992         * genemit.c: Likewise.
5993         * genextract.c: Likewise.
5994         * gengenrtl.c: Likewise.
5995         * gengtype.c: Likewise.
5996         * gengtype.h: Likewise.
5997         * genopinit.c: Likewise.
5998         * genoutput.c: Likewise.
5999         * gensupport.c: Likewise.
6000         * gensupport.h: Likewise.
6001
6002         * sdbout.h: Use ISO C90 prototypes.
6003
6004         * sdbout.c (CONTIN): Removed empty macro.
6005         (sdbout_one_type): Remove CONTIN usages.
6006         Remove ^Ls.
6007         (tag_of_ru_type): Remove #if 0'ed function.
6008         (sdbout_symbol): Remove #if 0'ed code.
6009         (sdbout_one_type): Remove a #if 1.
6010         (sdbout_one_type): Remove #if 0'ed code.
6011         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
6012         Remove PARAMS, use ISO C90 prototypes for all functions.
6013
6014 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
6015
6016         * rtl.def (CONST_DOUBLE): Update comment.
6017
6018 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
6019
6020         * opts.sh: Remove path from sort.
6021
6022 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
6023
6024         PR/9680
6025         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
6026         TARGET_SPE for SPE_VECTOR_MODE.
6027
6028 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
6029
6030         * toplev.c (botch): Remove.
6031         (do_abort): Remove.
6032         (set_Wunused): Comment.
6033         (set_Wextra): Comment.
6034         Remove ^L's.
6035         (rest_of_compilation): Factor out common code into functions.
6036         (rest_of_handle_inlining): New.
6037         (rest_of_handle_ssa): New.
6038         (rest_of_handle_cse): New.
6039         (rest_of_handle_gcse): New.
6040         (rest_of_handle_loop_optimize): New.
6041         (rest_of_handle_jump_bypass): New.
6042         (rest_of_handle_sibling_calls): New.
6043         (rest_of_handle_null_pointer): New.
6044         (rest_of_handle_addresof): New.
6045         (rest_of_handle_flow): New.
6046         (rest_of_handle_branch_prob): New.
6047         (rest_of_handle_if_conversion): New.
6048         (rest_of_handle_tracer): New.
6049         (rest_of_handle_loop2): New.
6050         (rest_of_handle_cse2): New.
6051         (rest_of_handle_life): New.
6052         (rest_of_handle_combine): New.
6053         (rest_of_handle_if_after_combine): New.
6054         (rest_of_handle_regmove): New.
6055         (rest_of_handle_sched): New.
6056         (rest_of_handle_old_regalloc): New.
6057         (rest_of_handle_new_regalloc): New.
6058         (rest_of_handle_regrename): New.
6059         (rest_of_handle_reorder_blocks): New.
6060         (rest_of_handle_sched2): New.
6061         (rest_of_handle_new_regalloc): New.
6062         (rest_of_handle_old_regalloc): New.
6063         (rest_of_handle_regrename): New.
6064         (rest_of_handle_reorder_blocks): New.
6065         (rest_of_handle_stack_regs): New.
6066         (rest_of_handle_machine_reorg): New.
6067         (rest_of_handle_delay_slots): New.
6068         (rest_of_handle_final): New.
6069
6070         * toplev.h (botch): Remove prototype.
6071         (do_abort): Same.
6072
6073 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
6074
6075         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
6076         * c-opts.c: Include c-options.h and c-options.c.
6077         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
6078         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
6079         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
6080         OPT, opt_comp): Remove.
6081         (missing_arg, c_common_init_options, c_common_decode_option,
6082         write_langs): Update for macro redefinitions and enumeration
6083         name changes.
6084         * c.opt, opts.sh: New files.
6085         * doc/passes.texi: Update.
6086
6087 2003-05-31  Andreas Jaeger  <aj@suse.de>
6088
6089         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
6090         usage.
6091
6092         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
6093
6094         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
6095
6096         * system.h: Poison ALLOCATE_TRAMPOLINE.
6097
6098         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
6099         * system.h: Poison HANDLE_PRAGMA.
6100
6101 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
6102
6103         * doc/invoke.texi: Update dump file names.
6104
6105 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6106
6107         * c-format.c (format_length_info, format_char_info,
6108         format_flag_spec, format_flag_pair, format_kind_info):
6109         De-const-ify structure members.
6110
6111 2003-05-31  Roger Sayle  <roger@eyesopen.com>
6112
6113         * flags.h (flag_wrapv): New flag controlling overflow semantics.
6114         * toplev.c (flag_wrapv): Declare the variable with default false.
6115         (lang_independent_options): New option "-fwrapv" to set the above.
6116
6117         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
6118         as x, when signed arithmetic overflow wraps around.
6119         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
6120         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
6121         overflow when flag_wrapv is true.
6122
6123         * doc/invoke.texi: Document new -fwrapv command line option.
6124         * doc/c-tree.texi: Mention that the overflow semantics of
6125         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
6126         upon both flag_wrapv and flag_trapv.
6127
6128 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6129
6130         * doc/install.texi (mips-sgi-irix5): Add missing
6131         HTML <hr> marker.
6132
6133 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6134
6135         * doc/md.texi (Machine Constraints): Document
6136         missing SPARC constraints.
6137
6138 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6139
6140         * doc/md.texi (Automaton pipeline description): Use
6141         "type" instead of "cpu" as the attribute in the examples.
6142
6143 2003-05-30  Stan Shebs  <shebs@apple.com>
6144
6145         * system.h: Poison OBJC_PROLOGUE.
6146
6147 2003-05-30  Roger Sayle  <roger@eyesopen.com>
6148
6149         * emit-rtl.c (gen_complex_constant_part): New function for getting
6150         the constant real or imaginary part of a complex constant.
6151         (gen_realpart): Use it.
6152         (gen_imagpart): Likewise.
6153
6154 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
6155
6156         * doc/invoke.texi: Fix typos.
6157         * doc/rtl.texi: Likewise.
6158
6159 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
6160
6161         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
6162         mode.
6163         * config/h8300/crtn.asm: Likewise.
6164         * config/h8300/lib1funcs.asm: Likewise.
6165         * config/h8300/h8300.c (asm_file_start): Likewise.
6166         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
6167         h8300snelf emulations for normal mode.
6168         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
6169         emulations for normal mode.
6170
6171 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
6172
6173         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
6174         true if TARGET_NORMAL_MODE.
6175
6176 2003-05-30  Roger Sayle  <roger@eyesopen.com>
6177
6178         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
6179         making a substitution.
6180         (dead_libcall_p): If directly replacing a libcall with a
6181         constant value produces an invalid instruction, also try forcing
6182         the constant into the constant pool.
6183         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
6184         obvious that the source is a constant.
6185         (compress_float_constant): Use set_unique_reg_note to place
6186         REG_EQUAL notes on instructions.
6187
6188 2003-05-30  Eric Christopher  <echristo@redhat.com>
6189
6190         * config/mips/mips.c (extern_list): Add GTY marker.
6191         (extern_head): Separate out definition. Add marker.
6192         (mips_output_external): Use ggc_alloc for extern_list
6193         allocation.
6194         (mips_output_external_libcall): Ditto.
6195
6196 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
6197
6198         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
6199         later.
6200
6201 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6202
6203         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
6204         warnings.
6205         (PRINT_OPERAND): Likewise.
6206
6207 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6208
6209         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
6210         -mdebug/-no-mdebug switches ...
6211         (MDEBUG_ASM_SPEC): ... here.
6212         Use only with gas.
6213         (EXTRA_SPECS): Initialize mdebug_asm_spec.
6214
6215 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
6216
6217         * gthr-gnat.c: Remove #undef UNUSED.
6218         (__gnat_default_lock, __gnat_default_unlock): Prototype.
6219         (__gnat_task_lock, __gnat_task_unlock): Make declarations
6220         prototypes.
6221         (__gnat_install_locks): Convert declaration to ISO C90, make
6222         parameter declarations prototypes, and remove blank line.
6223         * gthr-gnat.h (__gnat_install_locks): Make parameter
6224         declarations prototypes.
6225
6226 2003-05-29  Jason Merrill  <jason@redhat.com>
6227
6228         * Makefile.in (unstrap): Remove stage_last after make unstage1.
6229
6230 2003-05-29  Roger Sayle  <roger@eyesopen.com>
6231
6232         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
6233
6234 2003-05-29  Roger Sayle  <roger@eyesopen.com>
6235             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
6236
6237         PR bootstrap/10169
6238         * mips-tfile.c (main): Use getopt_long instead of getopt.
6239         Add new command line option --version to display version.
6240         Treat --verbose like -v to report a single line version.
6241         (options): New global variable for getopt_long.
6242         * mips-tdump.c (main): Use getopt_long instead of getopt.
6243         New command line options -v, --version and -verbose to display
6244         the program version number (to match mips-tfile's behavior).
6245         (options): New global variable for getopt_long.
6246
6247         * gcov.c (options): Zero-terminate getopt_long array.
6248         * gcov-dump.c (options): Likewise.
6249
6250         * Makefile.in (mips-tdump.o): Add dependency on version.h.
6251
6252 2003-05-29  Stan Shebs  <shebs@apple.com>
6253
6254         Remove OBJC_PROLOGUE everywhere.
6255         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
6256         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
6257         * config/d30v/d30v.h: Similarly.
6258         * config/ip2k/ip2k.h: Similarly.
6259         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
6260
6261 2003-05-29  Roger Sayle  <roger@eyesopen.com>
6262
6263         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
6264         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
6265         (expand_unreachable_stmt): Expand unreachable while statements
6266         using genrtl_do_stmt_1.
6267
6268 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
6269
6270         * config/mips/mips-protos.h (mips_output_load_label): Declare.
6271         * config/mips/mips.c (mips_output_load_label): New function.
6272         (mips_output_conditional_branch): Use it.
6273         * config/mips/mips.md (jump): And here.
6274
6275 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
6276
6277         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
6278         (xtensa_split_operand_pair): New proto.
6279         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
6280         (smalloffset_double_mem_p): Delete.
6281         (gen_float_relational, printx, print_operand, xtensa_va_arg):
6282         Fix whitespace.
6283         (xtensa_split_operand_pair): New.
6284         (xtensa_dbx_register_number): Fix formatting.
6285         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
6286         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
6287         instead of splitting them into single-word moves.  Remove unnecessary
6288         checks for reload_in_progress and reload_completed.
6289         (movdi_internal, movdf_internal): Change to post-reload split patterns.
6290         Add constraints to allow constant operands.
6291         (movsf_internal): Allow CONST_INT operands.
6292
6293 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
6294
6295         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
6296         fragment i386/x-mingw32.
6297         * config/i386/x-mingw32: New file. Make local_includedir
6298         relative to EXEC_PREFIX.
6299
6300 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
6301
6302         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
6303         (MD_STARTFILE_PREFIX): Define.
6304
6305 2003-05-27  Denis Chertykov  <denisc@overta.ru>
6306
6307         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
6308         VOIDmode.
6309         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
6310         call of cselib_invalidate_regno.
6311
6312 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
6313
6314         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
6315         -lthread to -lpthread.
6316
6317 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6318             Bruce Korb  <bkorb@gnu.org>
6319             Arno Klaassen  <arno@heho.snv.jussieu.fr>
6320
6321         * fixinc/inclhack.def: Add missing declaration of getpagesize()
6322         to unistd.h on Solaris 2.5.1.
6323         Fix prototype of recv() and send() in sys/socket.h on
6324         Solaris 2.5.1 and 2.6.
6325         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
6326         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
6327         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
6328         * fixinc/fixincl.x: Regenerate.
6329
6330 2003-05-27  Jason Merrill  <jason@redhat.com>
6331
6332         * tree.c (expr_first, expr_length): New fns.
6333         * tree.h: Declare them.
6334
6335         * tree.c (iterative_hash_expr): Hash commutative expressions
6336         consistently.
6337
6338 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6339
6340         * tree.h (contains_placeholder_p): Now returns bool.
6341         (CONTAINS_PLACEHOLDER_P): New macro.
6342         (type_contains_placeholder_p): New function.
6343         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
6344         (contains_placeholder_p): Now returns bool.
6345         Rework to use CONTAINS_PLACEHOLDER_P macro.
6346         (type_contains_placeholder_p): New function.
6347         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
6348         type_contains_placeholder_p.
6349         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
6350         Use CONTAINS_PLACEHOLDER_P macro.
6351         * builtins.c (fold_builtin): Likewise.
6352         * calls.c (initialize_argument_information): Likewise.
6353         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6354         * explow.c (expr_size): Likewise.
6355         * expr.c (store_constructor, get_inner_reference): Likewise.
6356         * function.c (assign_parms): Likewise.
6357         * stor-layout.c (variable_size): Likewise.
6358
6359 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
6360
6361         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
6362         attribute.
6363
6364 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6365
6366         * doc/contrib.texi (Contributors): Update Kean Johnston.
6367
6368 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
6369
6370         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
6371
6372 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
6373
6374         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
6375         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
6376         Replace "GNU CC" with "GCC".
6377
6378 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
6379
6380         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
6381         intermediate computation.
6382
6383 2003-05-23  Eric Christopher  <echristo@redhat.com>
6384
6385         * config/mips/mips.md (clzsi, clzdi): New patterns.
6386
6387 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
6388
6389         * gcc.c (default_compilers): Use -o to specify preprocessor's output
6390         file.  Make -no-integrated-cpp work when building PCH files.
6391         * objc/lang-specs.h: Likewise.
6392
6393 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6394
6395         * fixinc/Makefile.in: Correct description.
6396         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
6397         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
6398         fixinc/genfixes: Replace "GNU CC" with "GCC".
6399
6400 2003-05-23  Roger Sayle  <roger@eyesopen.com>
6401
6402         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
6403         builtin functions (and their __builtin_* variants).
6404         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
6405         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
6406         optimizing.
6407
6408         * doc/extend.texi: Document new tan and atan builtins, and
6409         their float and long double variants.
6410
6411 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
6412
6413         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
6414         __sparcv9 in the TARGET_ARCH64 case.
6415
6416 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
6417
6418         * i386.c (ix86_reorg): Calls are also jumps.
6419
6420 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
6421
6422         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
6423         note containing an EXPR_LIST, process all the arguments.
6424
6425 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
6426                                Andreas Jaeger  <aj@suse.de>
6427
6428         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
6429         do not use assertion.
6430
6431 2003-05-23  Mike Stump  <mrs@apple.com>
6432
6433         * tlink.c (scan_linker_output): Add support for darwin linker, as it
6434         emits unresolved symbols one per line, consuming the entire line.
6435
6436 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
6437             Zack Weinberg <zack@codesourcery.com>
6438
6439         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
6440         * config/m68k/m68k.c (m68k_output_function_prologue):
6441         Remove code under #if NEED_PROBE.
6442         * config/m68k/m68k.h: Don't define NEED_PROBE.
6443         * config/m68k/m68k.md: Remove "probe" insn.
6444         * doc/md.texi: Remove documentation of "probe" pattern.
6445
6446 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
6447
6448         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
6449
6450 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
6451
6452         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
6453         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
6454
6455 2003-05-22  Roger Sayle  <roger@eyesopen.com>
6456
6457         * real.c (real_maxval): New function to return the largest finite
6458         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
6459         * real.h (real_maxval): Prototype here.
6460         * fold-const.c (fold_inf_compare): Transform comparisons against
6461         +-Infinity into comparisons against DBL_MAX (or equivalent).
6462
6463 2003-05-22  Mike Stump  <mrs@apple.com>
6464
6465         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
6466         default.
6467
6468 2003-05-22  DJ Delorie  <dj@redhat.com>
6469
6470         * calls.c (expand_call): If the arg block is going to grow
6471         downward, we need argblock to point to the top of the block,
6472         not the bottom.
6473
6474 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6475
6476         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
6477
6478         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
6479         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
6480
6481 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6482
6483         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
6484         * m68k.c: Likewise.
6485         * m68k.h: Likewise.
6486
6487 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
6488
6489         PR other/2873
6490         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
6491         expressions to prevent triggering on recent curses.h,
6492         linux/nls.h, or X11/Xlib.h.
6493         (stdio_va_list): Add _G_va_list to bypass pattern.
6494         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
6495         * fixinc/fixincl.x: Regenerate.
6496
6497 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
6498
6499         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
6500         switches when --target-help option is specified.
6501
6502 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6503
6504         PR bootstrap/10805
6505         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
6506         failure with Sun assembler 5.0 Alpha 03/27/98.
6507
6508 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
6509
6510         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
6511         to match system compiler convention.
6512
6513 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
6514
6515         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
6516         value, not just if defined.
6517         Update copyright year.
6518
6519 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6520
6521         PR target/6428
6522         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
6523         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
6524         option is used without `-static'.
6525         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
6526         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
6527
6528 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
6529
6530         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
6531         TARGET_SERIALIZE_VOLATILE): Delete.
6532         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
6533         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
6534         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
6535         "-mno-serialize-volatile".
6536         * config/xtensa/xtensa.c (print_operand): Remove checks of
6537         TARGET_SERIALIZE_VOLATILE.
6538         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6539         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
6540         "-mserialize-volatile" and "-mno-serialize-volatile" options.
6541
6542 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
6543
6544         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
6545         (nested_function): Likewise.
6546         (notype_nested_function): Likewise.
6547
6548 2003-05-21  Nick Clifton  <nickc@redhat.com>
6549
6550         * config/stormy16/stormy-abi: Update overflow type for
6551         R_XSTORMY16_16 reloc.
6552
6553 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
6554
6555         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
6556         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
6557         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
6558         * print-tree.c (print_node): Remove ambient-boundedness.
6559         * tree.h (tree_common): Remove bounded_flag.
6560         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
6561         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
6562         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
6563         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
6564         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
6565         Remove.
6566         (TYPE_QUALS): Remove BOUNDED.
6567         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
6568         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
6569         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
6570         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
6571         VA_LIST_POINTER_DEPTH): Remove.
6572         (struct tree_type): Remove pointer_depth.
6573
6574 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6575
6576         * c-pretty-print.c (pp_c_integer_literal): Use
6577         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
6578
6579 2003-05-20  Roger Sayle  <roger@eyesopen.com>
6580             Kazu Hirata  <kazu@cs.umass.edu>
6581             Joern Rennecke  <joern.rennecke@superh.com>
6582
6583         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
6584         setcc and jump, if they exist.  If substituted instruction
6585         fails to validate, store current effort in a REG_EQUAL note.
6586         (cprop_insn): Don't attempt further substitutions if the
6587         current instruction has been deleted.
6588         (local_cprop_pass): Likewise.
6589
6590         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
6591         one is attached to the jump instruction.
6592         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
6593
6594 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
6595
6596         PR c++/9738
6597         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
6598         even if not first.
6599
6600 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6601
6602         * genautomata.c (output_description, output_automaton_units,
6603         output_state_arcs): Add missing specifiers.
6604
6605 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
6606
6607         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
6608         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
6609         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
6610         (nsau): Rename to do_nsau.  Provide alternate version for use when
6611         the NSAU instruction is available.
6612         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
6613         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
6614         * config/xtensa/xtensa-config.h: Update comments to match binutils.
6615         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
6616         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
6617         (TARGET_ABS, TARGET_ADDX): Define.
6618         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
6619         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
6620         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
6621         *subx8): Set predicate condition to TARGET_ADDX.
6622         (abssi2): Set predicate condition to TARGET_ABS.
6623         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
6624         "-maddx", and "-mno-addx" options.
6625         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
6626
6627 2003-05-20  Kevin Ryde <user42@zip.com.au>
6628             Wolfgang Bangerth <bangerth@dealii.org>
6629
6630         PR/10355
6631         * doc/extend.texi: Put a warning into the documentation
6632         of attribute regparm.
6633
6634 2003-05-20  Jason Merrill  <jason@redhat.com>
6635
6636         * tree.c (expr_last): New fn.
6637         * tree.h: Declare it.
6638         * objc/objc-act (expr_last): Rename to objc_expr_last.
6639
6640 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
6641
6642         * sh.c (sh_register_move_cost): Add clase for moving between
6643         FP registers and MAC registers.
6644
6645 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
6646
6647         * pa/milli64.S ($$mulI): Fix typo.
6648
6649 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
6650
6651         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
6652         (nonlocal_set_p): Remove initial blank line.
6653         * dwarf2out.c (simple_type_size_in_bits): Likewise.
6654         * et-forest.c (et_forest_create): Likewise.
6655         * explow.c (stabilize): Likewise.
6656         * fix-header.c (write_lbrac): Likewise.
6657         * graph.c (start_fct, node_data): Likewise.
6658         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
6659         * rtlanal.c (global_reg_mentioned_p): Likewise.
6660         * tree.c (bit_position): Likewise.
6661
6662 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
6663
6664         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
6665         -lthread to -lpthread.
6666
6667 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
6668
6669         * c-opts.c (c_common_decode_option): Don't accept dollars
6670         as identifier characters in assembly.
6671         * doc/cpp.texi: Document this.
6672
6673 2003-05-19  Seth Arnold  <sarnold@wirex.com>
6674             Aldy Hernandez  <aldyh@redhat.com>
6675
6676         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
6677         vrsave_size twice.
6678
6679 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
6680
6681         * doc/tm.texi (function_arg): Fix typo.
6682
6683 2003-05-19  Matt Austern  <austern@apple.com>
6684
6685         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
6686         * c-common.h (warn_invalid_offsetof): Declare.
6687         * c-common.c (warn_invalid_offsetof): Define.
6688         * doc/invoke.texi: Document -Winvalid-offsetof.
6689         * testsuite/g++.dg/other/offsetof3.C: New.
6690         * testsuite/g++.dg/other/offsetof4.C: New.
6691
6692 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
6693             David Edelsohn  <edelsohn@gnu.org>
6694
6695         * config/rs6000/rs6000.c (rs6000_alignment_string,
6696         rs6000_alignment_flags): New variables.
6697         (rs6000_parse_alignment_option): New function.
6698         (rs6000_override_options): Call it.
6699         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
6700         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
6701         macros.
6702         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
6703         natural alignment if TARGET_NATURAL_ALIGNMENT
6704         (ROUND_TYPE_ALIGN): Always use default record alignment if
6705         TAGET_NATURAL_ALIGNMENT.
6706         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
6707         (ROUND_TYPE_ALIGN): Same.
6708         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
6709         (ROUND_TYPE_ALIGN): Same.
6710         * doc/invoke.texi (Option Summary, PowerPC Options): Document
6711         new options.
6712
6713 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
6714
6715         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
6716         of a function using ASMSPEC, prepend a star.
6717
6718 2003-05-19  Jason Merrill  <jason@redhat.com>
6719
6720         * tree-inline.c (copy_body_r): Avoid generating &* during inline
6721         substitution.
6722
6723 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
6724
6725         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
6726         not mark assignments to the hard frame pointer as being stack
6727         frame related.
6728         (xstormy16_expand_epilogue): Mark adjustments to the stack
6729         pointer as being stack frame related.
6730
6731 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6732
6733         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
6734         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
6735         (PREDICATE_CODES): Add hilo_operand.
6736         * config/mips/mips.c (hilo_operand): New predicate.
6737         (mips_adjust_insn_length): Account for the number nops that might
6738         be needed to avoid hardware hazards.
6739         * config/mips/mips.md (dslot): Remove attribute.
6740         (hazard): New attribute.
6741         (can_delay): Use it.  Check for calls, branches & jumps.
6742         (muldi3): Use the standard dmult pattern for mips16 code.
6743         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
6744
6745 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6746
6747         * config/mips/mips-protos.h (final_prescan_insn,
6748         mips_count_memory_refs, mips_fill_delay_slot): Remove.
6749         * config/mips/mips.h (delay_type, dslots_load_total,
6750         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
6751         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
6752         mips_load_reg3, mips_load_reg4): Remove.
6753         (MASK_STATS): Remove.
6754         (MASK_EXPLICIT_RELOCS): Reuse its value.
6755         (TARGET_STATS): Remove.
6756         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
6757         Warn that -mstats is now ignored.
6758         (FINAL_PRESCAN_INSN): Undefine.
6759         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
6760         (ASM_OUTPUT_REG_POP): Likewise.
6761         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
6762         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
6763         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
6764         mips_fill_delay_slot, mips_count_memory_refs,
6765         final_prescan_insn): Remove.
6766         (output_block_move): Remove calls to mips_count_memory_refs.
6767         (print_operand): Remove printing of #nop for TARGET_STATS.
6768         (mips_output_function_epilogue): Remove TARGET_STATS code.
6769         Reorganize setting of fnnmae.
6770         * config/mips/mips.md: Remove handling of dslot statistics
6771         throughout file.  Change all fcmp patterns into normal asm
6772         templates, removing calls to mips_fill_delay_slot.
6773         * doc/invoke.texi: Remove documentation of -mstats.
6774
6775 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6776
6777         * config/mips/mips.c (mips_class_max_nregs): Return the number of
6778         words in the mode.
6779
6780 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
6781
6782         * config/mips/mips.c (override_options): Disable explicit
6783         relocs for old ABIs unless using gas.
6784
6785 2003-05-18  Eric Christopher  <echristo@redhat.com>
6786
6787         * config/mips/mips.h: Remove definition of g_switch_value.
6788
6789 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
6790
6791         * flags.h (g_switch_value): Change to an unsigned
6792         HOST_WIDE_INT.
6793         * toplev.c (g_switch_value): Likewise.
6794
6795         * config/alpha/alpha.c (small_symbolic_operand): Remove
6796         g_switch_value cast.
6797         (alpha_in_small_data_p): Cast size to an unsigned
6798         HOST_WIDE_INT.
6799
6800         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
6801         unsigned HOST_WIDE_INT.
6802         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
6803         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
6804
6805         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
6806         unsigned HOST_WIDE_INT.
6807         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
6808         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
6809         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
6810
6811         * config/rs6000/rs6000.c (rs6000_file_start): Use
6812         HOST_WIDE_INT_PRINT_UNSIGNED.
6813         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
6814         (rs6000_elf_in_small_data_p): Cast size to unsigned
6815         HOST_WIDE_INT.
6816         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
6817         Remove.
6818         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
6819         g_switch_set.
6820         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
6821         g_switch_value cast.
6822
6823 2003-05-18  Roger Sayle  <roger@eyesopen.com>
6824             Zack Weinberg  <zack@codesourcery.com>
6825
6826         PR middle-end/10472
6827         * builtins.c (expand_builtin_memcpy):  Call force_operand on
6828         expressions and use simplify_gen_binary to create the addition.
6829
6830 2003-05-18  Andreas Schwab  <schwab@suse.de>
6831
6832         * config/m68k/m68k.md: Use define_constants for unspec numbers.
6833
6834 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
6835
6836         * config/sparc/sparc.h: Define sparc for now.
6837
6838 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
6839
6840         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
6841
6842         * config/stormy16/stormy16.h: Remove about 3000 lines of
6843         target-independent comments.  Update copyright notice.
6844
6845         * doc/collect2.texi: GNU CC -> GCC.
6846         * doc/headerdirs.texi: GNU CC -> GCC.
6847
6848 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
6849
6850         * hashtable.h (struct ht_identifier): Add data member "hash_value".
6851         * hashtable.c (ht_lookup): Use it when searching, remember.
6852         (ht_expand): Do not recompute.
6853         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
6854
6855 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
6856
6857         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
6858
6859 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
6860
6861         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
6862         Default here.
6863         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
6864         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
6865         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
6866         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
6867         config/arm/linux-elf.h, config/arm/rtems-elf.h,
6868         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
6869         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
6870         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
6871         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
6872         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
6873         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
6874         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
6875         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
6876         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
6877         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
6878         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
6879         Don't define __ELF__.
6880         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
6881         Define __ELF__.
6882         * doc/cpp.texi: Document __ELF__.
6883         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
6884
6885 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6886
6887         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
6888         always use stdarg.
6889         * c-errors.c (pedwarn_c99): Likewise.
6890         * c-format.c (status_warning): Likewise.
6891         * c-semantics.c (build_stmt): Likewise.
6892         * calls.c (emit_library_call, emit_library_call_value): Likewise.
6893         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
6894         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
6895         * diagnostic.c (build_message_string, output_printf,
6896         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
6897         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
6898         error_with_decl, fnotice): Likewise.
6899         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
6900         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
6901         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
6902         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
6903         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
6904         dw2_asm_output_encoded_addr_rtx): Likewise.
6905         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
6906         * errors.c (warning, error, fatal, internal_error): Likewise.
6907         * final.c (output_operand_lossage, asm_fprintf): Likewise.
6908         * fix-header.c (fatal): Likewise.
6909         * gcc.c (fatal, error, notice): Likewise.
6910         * gcov.c (fnotice): Likewise.
6911         * genattrtab.c (attr_rtx, attr_printf): Likewise.
6912         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
6913         * gensupport.c (message_with_line): Likewise.
6914         * mips-tfile.c (fatal, error): Likewise.
6915         * protoize.c (notice): Likewise.
6916         * ra-debug.c (ra_debug_msg): Likewise.
6917         * read-rtl.c (fatal_with_file_and_line): Likewise.
6918         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
6919         * tree.c (build, build_nt, build_function_type_list): Likewise.
6920
6921 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6922
6923         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
6924         * gcc.c (cpp_predefines): Remove.
6925         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
6926         (static_specs): Remove predefines.
6927         * system.h: Poison CPP_PREDEFINES.
6928         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
6929         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
6930
6931 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6932
6933         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
6934         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
6935         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
6936         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
6937
6938 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6939
6940         PR c/9209
6941         * c-common.c, c-common.h (dollars_in_ident): Remove.
6942         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
6943         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
6944         * cpphash.h (warned_dollar): Rename warn_dollars.
6945         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
6946         Permit dollars regardless of -std=.
6947         (post_options): Set warn_dollars.
6948         * cpplex.c (forms_identifier_p): Use warn_dollars.
6949         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
6950         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
6951         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
6952         Update documentation.
6953
6954 2003-05-17  Andreas Schwab  <schwab@suse.de>
6955
6956         * config/m68k/m68k.c (m68k_output_function_prologue): Use
6957         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
6958         formatting a HOST_WIDE_INT.
6959         (m68k_output_function_epilogue): Likewise.
6960
6961 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
6962
6963         * doc/install.texi: Remove information about desupported targets.
6964
6965 2003-05-17  Andreas Schwab  <schwab@suse.de>
6966
6967         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
6968         * config/m68k/linux.h: Likewise.
6969         * config/m68k/m68k-none.h: Likewise.
6970         * config/m68k/netbsd-elf.h: Likewise.
6971         * config/m68k/sgs.h: Likewise.
6972         * config/m68k/m68k.h: Likewise.
6973         * config/m68k/m68k.md: Likewise.
6974         * config/m68k/m68k.c: Likewise.
6975         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
6976         constraints.
6977         * doc/invoke.texi (Option Summary): Remove -mfpa.
6978         (M680x0 Options): Likewise.
6979
6980 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
6981
6982         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
6983
6984 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6985
6986         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
6987         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
6988         config/sparc/rtemself.h, config/sparc/sol2-64.h,
6989         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
6990         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
6991
6992 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6993
6994         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
6995         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
6996
6997 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
6998
6999         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
7000         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
7001         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
7002         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
7003         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
7004         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
7005         sparc/sysv4.h,
7006         * sparc/sysv4-only.h: New.
7007
7008 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
7009
7010         * function.c (assign_parms): Check for zero size args.
7011
7012 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7013
7014         * cfgloopanal.c (test_for_iteration): Use string concatentation on
7015         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
7016         function calls into one.
7017         * dbxout.c (dbxout_symbol): Likewise.
7018         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
7019         * dwarf2asm.c (dw2_asm_output_data_uleb128,
7020         dw2_asm_output_data_sleb128): Likewise.
7021         * genrecog.c (debug_decision_2): Likewise.
7022         * loop.c (emit_prefetch_instructions): Likewise.
7023         * print-rtl.c (print_rtx): Likewise.
7024         * print-tree.c (print_node_brief, print_node): Likewise.
7025         * ra-debug.c (dump_igraph, dump_graph_cost,
7026         dump_static_insn_cost): Likewise.
7027         * ra-rewrite.c (dump_cost): Likewise.
7028         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
7029         * sreal.c (dump_sreal): Likewise.
7030         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
7031         * varasm.c (assemble_vtable_entry): Likewise.
7032
7033         * avr.c (avr_output_function_prologue,
7034         avr_output_function_epilogue, print_operand): Fix format specifier
7035         warnings.
7036         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
7037         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
7038
7039 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
7040
7041         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
7042         and ! TARGET_STRING cases.
7043
7044         * doc/cppopts.texi (-undef): Fix texinfo warning.
7045
7046         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
7047         * cppfiles.c (validate_pch): When -H is used, print some information
7048         about PCH files found.
7049
7050 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7051
7052         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
7053         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
7054         * config/mips/t-sr71k: Likewise.
7055
7056 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7057
7058         * arc.c (arc_output_function_prologue,
7059         arc_output_function_epilogue): Fix format specifier warnings.
7060         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
7061
7062         * v850.c (print_operand): Fix format specifier warnings.
7063
7064         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
7065         specifier warnings.
7066
7067         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
7068         format specifier warnings.
7069
7070         * ip2k.c (function_prologue, function_epilogue, print_operand):
7071         Fix format specifier warnings.
7072         * ip2k.md: Likewise.
7073
7074         * i960.c (i960_output_function_prologue, i960_print_operand,
7075         i960_print_operand_addr): Fix format specifier warnings.
7076
7077         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
7078         (i370_output_function_prologue): Fix format specifier warnings.
7079         * i370.h (PRINT_OPERAND): Likewise.
7080
7081         * fr30.c (fr30_print_operand): Fix format specifier warnings.
7082
7083         * dsp16xx.c (print_operand_address): Fix format specifier warning.
7084         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
7085
7086         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
7087         specifier warnings.
7088
7089         * alpha.c (print_operand_address, alpha_start_function,
7090         unicosmk_output_ssib): Use string concatentation on
7091         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
7092         function calls into one.
7093         * arm.c (arm_print_operand): Likewise.
7094         * cris.c (cris_asm_output_mi_thunk): Likewise.
7095         * frv.c (frv_asm_output_mi_thunk): Likewise.
7096         * ia64.c (ia64_print_operand, process_set): Likewise.
7097         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
7098         Likewise.
7099         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
7100         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
7101         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
7102         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
7103         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
7104         * s390.c (s390_assemble_integer): Likewise.
7105         * sparc.c (sparc_flat_function_prologue,
7106         sparc_flat_function_epilogue): Likewise.
7107         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
7108         * vax.c (vax_output_mi_thunk): Likewise.
7109
7110         * frv.c (frv_print_operand_memory_reference): Fix format specifier
7111         warning.
7112         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
7113
7114         * m68k.c (m68k_output_function_epilogue): Fix format specifier
7115         warnings.
7116
7117         * stormy16-protos.h (xs_hi_general_operand,
7118         xs_hi_nonmemory_operand): Prototype.
7119         * stormy16.c (xstormy16_output_shift): Fix format specifier
7120         warnings.
7121
7122         * cris.c: Fix format specifier warnings.
7123
7124 2003-05-16  Nick Clifton  <nickc@redhat.com>
7125
7126         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
7127
7128 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
7129
7130         * doc/bugreport.texi: Remove most of the of the preface of the
7131         bugs section.
7132
7133 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
7134
7135         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
7136         .save XX, r0.
7137
7138 2003-05-15  Roger Sayle  <roger@eyesopen.com>
7139
7140         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
7141
7142 2003-05-15  Eric Christopher  <echristo@redhat.com>
7143
7144         * cfgcleanup.c (merge_blocks): Fix return value.
7145
7146 2003-05-15 Eric Christopher <echristo@redhat.com>
7147
7148         * combine.c (expand_compound_operation): Make sure
7149         that zero_extend operation is profitable.
7150
7151 2003-05-15  Richard Henderson  <rth@redhat.com>
7152
7153         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
7154         code protected by USE_GNULIBC_1.
7155
7156 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
7157
7158         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
7159         remove hppa*-*-mpeix* which could not be built, and prune
7160         files from tmake_file= or tm_file= lists that don't exist.
7161
7162         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
7163         * config/alpha/t-interix, config/arm/conix-elf.h
7164         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
7165         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
7166         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
7167         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
7168         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
7169         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
7170         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
7171         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
7172         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
7173         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
7174         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
7175         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
7176         * config/m68k/tower-as.h, config/m68k/tower.h
7177         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
7178         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
7179         * config/m88k/m88k-protos.h, config/m88k/m88k.c
7180         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
7181         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
7182         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
7183         * config/mips/rtems64.h, config/mips/sni-gas.h
7184         * config/mips/sni-svr4.h, config/mips/t-ecoff
7185         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
7186         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
7187         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
7188         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
7189         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
7190         * config/romp/romp-protos.h, config/romp/romp.c
7191         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
7192         * config/rs6000/aix3newas.h, config/rs6000/mach.h
7193         * config/sparc/bsd.h, config/sparc/hal.h
7194         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
7195         * config/sparc/lynx.h, config/sparc/netbsd.h
7196         * config/sparc/sp86x-aout.h, config/sparc/splet.h
7197         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
7198         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
7199         * config/sparc/t-halos, config/sparc/t-sparcbare
7200         * config/sparc/t-splet, config/sparc/t-sunos41
7201         * config/v850/rtems.h: Delete file.
7202
7203 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
7204
7205         * config/rs6000/rs6000-protos.h (function_value): Protoize.
7206
7207         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
7208
7209         * config/rs6000/rs6000.c (rs6000_function_value): New.
7210
7211 2003-05-15  Philip Blundell  <philb@gnu.org>
7212
7213         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
7214         All uses updated.
7215         (arm_tune_xscale): New variable.
7216         (arm_override_options): Set it.
7217         (arm_adjust_cost): Use it in place of arm_arch_xscale.
7218         (arm_gen_load_multiple): Likewise.
7219         (arm_gen_store_multiple): Likewise.
7220         * config/arm/arm.md (is_xscale): Likewise.
7221         * config/arm/arm.h (arm_tune_xscale): Declare.
7222
7223 2003-05-15  Philip Blundell  <philb@gnu.org>
7224
7225         PR target/10730
7226         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
7227         involving invalid constants.
7228
7229 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7230
7231         * pa.c (hppa_expand_prologue): Remove blockage.
7232
7233 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
7234
7235         * doc/bugreport.texi: Remove most of the bug reporting
7236         instructions and merge them into bugs.html.
7237
7238 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
7239
7240         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7241         g_switch_value to unsigned HOST_WIDE_INT.
7242
7243 2003-05-14  Eric Christopher  <echristo@redhat.com>
7244
7245         * combine.c: Fix header comments.
7246         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
7247         to all calls and prototype.
7248
7249 2003-05-14  Roger Sayle  <roger@eyesopen.com>
7250
7251         PR optimization/10764
7252         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
7253         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
7254         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
7255         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
7256         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
7257         the corresponding *fyl2x_?fxf3 instructions.
7258
7259 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
7260
7261         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
7262         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
7263         XCHAL_HAVE_L32R): New.
7264         * config/xtensa/xtensa-protos.h (non_const_move_operand,
7265         xtensa_load_constant, xtensa_function_prologue,
7266         xtensa_function_epilogue): Delete prototypes.
7267         (xtensa_expand_prologue): New.
7268         * config/xtensa/xtensa.c (frame_size_const,
7269         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
7270         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
7271         xtensa_function_prologue): Delete.
7272         (add_operand, xtensa_mem_offset): Formatting.
7273         (move_operand): If the const16 option is available, allow any SFmode
7274         and SImode constants.
7275         (xtensa_emit_move_sequence): Inline the former contents of
7276         xtensa_load_constant with modifications to handle the const16 option.
7277         (override_options): Add xtensa_char_to_class['W'] and set it to
7278         the general register class only if the const16 option is enabled.
7279         Fix formatting.  Disallow PIC when using the const16 option.
7280         (print_operand): Reorganize to switch on "letter" instead of the
7281         RTL code.  Add output_operand_lossage calls for invalid cases.
7282         Add support for 't' and 'b' letters.
7283         (xtensa_expand_prologue): New function to replace
7284         xtensa_function_prologue and xtensa_reorg.
7285         (xtensa_function_epilogue): Declare this as static.  Delete code
7286         to print the retw.n or retw instruction.
7287         (xtensa_return_addr): Use A0_REG instead of 0.
7288         (xtensa_rtx_costs): Add costs for using the const16 option.
7289         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
7290         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
7291         (TARGET_SWITCHES): Add "const16" and "no-const16".
7292         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
7293         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
7294         using the const16 option.
7295         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
7296         (TRAMPOLINE_SIZE): Change from 49 to 59.
7297         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
7298         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
7299         when using the const16 option.
7300         (PREDICATE_CODES): Delete non_const_move_operand.
7301         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
7302         UNSPECV_ENTRY.
7303         (movdi, movdf): If the source is a constant, always expand to a
7304         sequence of movsi insns.
7305         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
7306         (movsi_internal, movsf_internal): Add alternative using const16 insns.
7307         (movsf): Add const16 support.
7308         (entry, prologue, epilogue): New.
7309         (set_frame_ptr): Add missing mode for unspec_volatile operation.
7310         Likewise for subsequent split pattern.
7311         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
7312         "-mconst16" and "-mno-const16" options.
7313
7314 2003-05-14  Richard Henderson  <rth@redhat.com>
7315
7316         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
7317         to be DImode register.  Merge load_symptr.
7318         * config/ia64/ia64.md (load_symptr): Remove.
7319
7320 2003-05-14  Richard Henderson  <rth@redhat.com>
7321
7322         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
7323         DEFERRED_CONSTANT_P.
7324         * integrate.c (copy_rtx_and_substitute): Update use.
7325         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
7326         to the copy generated.
7327         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
7328         of the constant to see if we should emit.
7329         (mark_constant): Similarly.
7330         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
7331
7332 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
7333
7334         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
7335         move record condition.
7336         (movdi_internal2): Same.
7337
7338 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
7339
7340         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
7341         (GCOV_TAG_*) Force type to gcov_unsigned_t.
7342         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
7343         (struct gcov_var): Remove modified. Add start, length, offset,
7344         overread. Have buffer array for libgcov.
7345         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
7346         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
7347         * gcov-io.c (gcov_open): Set mode, do not read anything.
7348         (gcov_close): Write final block.
7349          (gcov_write_block, gcov_allocate): New.
7350         (gcov_write_bytes): Make static. Write or allocate buffer.
7351         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
7352         null.
7353         (gcov_write_string): Adjust.
7354         (gcov_write_tag)
7355         (gcov_write_length): Adjust. Flush the block.
7356         (gcov_write_tag_length): Buffer can never be null.
7357         (gcov_read_bytes): Make static. Read in block.
7358         (gcov_sync): Moved here. Adjust.
7359         (gcov_seek): Moved here. Adjust.
7360         * coverage.c (read_counts_file): Adjust.
7361         * gcov-dump.c (print_prefix): Add position parameter.
7362         (flag_dump_positions): New flag.
7363         (options, main, print_usage): Add it.
7364         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
7365         tag_summary): Adjust.
7366         * gcov.c (read_graph_file, read_count_file): Adjust.
7367         * libgcov.c (gcov_exit): Adjust.
7368
7369         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
7370         (libgcov.a): Depend on libgcc.a.
7371         (gcov.o, gcov-dump.o): Add gcov-io.c.
7372         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
7373
7374         * loop.c (check_dbra_loop): Factor common test.
7375
7376 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
7377
7378         * doc/md.texi (Automaton pipeline description): Grammar fixes.
7379
7380 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
7381
7382         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
7383         (TARGET_INITIALIZER): Include it.
7384         * target.h (struct gcc_target): Add machine_dependent_reorg field.
7385         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
7386         * system.h: Poison MACHINE_DEPENDENT_REORG.
7387
7388         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
7389         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
7390         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7391         (alpha_handle_trap_shadows): Remove "first insn" parameter.
7392         (alpha_align_insns): Likewise.
7393         (alpha_reorg): Likewise.  Make static.  Update calls to above
7394         functions.
7395
7396         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
7397         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
7398         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7399         (arm_reorg): Remove parameter.  Make static.
7400
7401         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
7402         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
7403         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7404         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
7405         Remove parameter.
7406
7407         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
7408         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
7409         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7410         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
7411         Remove parameter.
7412
7413         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
7414         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
7415         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
7416
7417         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
7418         * config/frv/frv.c: Remove orphaned comment.
7419
7420         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
7421         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
7422         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7423         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
7424         Remove parameter.
7425
7426         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
7427         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
7428         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7429         (emit_insn_group_barriers): Remove "first insn" parameter.
7430         (emit_all_insn_group_barriers): Likewise.
7431         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
7432         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
7433
7434         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
7435         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
7436         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7437         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
7438         Remove parameter.
7439
7440         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
7441         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
7442         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7443         (m68hc11_reorg): Make static.  Remove parameter.
7444
7445         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
7446         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
7447         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7448         (conditionalize_optimization): Remove parameter.
7449         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
7450         Make static.  Update call to conditionalize_optimization.
7451
7452         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
7453         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
7454         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7455         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
7456         Make static.
7457
7458         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
7459         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
7460         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7461         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
7462         Remove parameter.
7463
7464         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
7465         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
7466         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7467         (pa_combine_instructions): Remove "first insn" parameter.
7468         (remove_useless_addtr_insns): Likewise.
7469         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
7470
7471         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
7472         commented-out definition.
7473
7474         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
7475         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
7476         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7477         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
7478         Remove parameter.
7479
7480         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
7481         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
7482         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7483         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
7484         Remove parameter.
7485         (sh_output_mi_thunk): Call sh_reorg directly.
7486         * config/sh/sh.md: Update comment.
7487
7488         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
7489         commented-out definition.
7490
7491         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
7492         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
7493         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7494         (v850_reorg): Make static.  Remove parameter.
7495
7496         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
7497         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
7498         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7499         (xtensa_reorg): Make static.  Remove parameter.
7500
7501         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
7502         (TARGET_MACHINE_DEPENDENT_REORG): Document.
7503
7504 2003-05-13  Richard Henderson  <rth@redhat.com>
7505
7506         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
7507         the old decl had instantiated DECL_RTL.
7508
7509 2003-05-13  Mike Stump  <mrs@apple.com>
7510
7511         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
7512
7513 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
7514
7515         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
7516         HOST_WIDE_INT argument.
7517
7518 2003-05-13  Jason Merrill  <jason@redhat.com>
7519
7520         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
7521
7522         * tree.c (iterative_hash_expr): New fn.
7523
7524         * c-semantics.c (emit_local_var): Don't mess with temp slots if
7525         there's no initializer.
7526
7527 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
7528
7529         * final.c (final_scan_insn): Apply the effects of frame-related
7530         delay slot insns before emitting a delayed branch.
7531
7532 2003-05-13  Nick Clifton  <nickc@redhat.com>
7533
7534         * config/mcore/mcore.md (jump): Use emit_jump_insn.
7535
7536 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7537
7538         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
7539         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
7540
7541 2003-05-12  DJ Delorie  <dj@redhat.com>
7542
7543         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
7544         (emit_push_insn): Don't use push when the source alignment is less
7545         than the stack's push rounding.
7546
7547 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
7548
7549         * diagnostic.c (output_format): Add support for %m.
7550         (output_printf, output_verbatim, diagnostic_set_info,
7551         verbatim): Set err_no field of the text_info structure being
7552         initialized.
7553         (fatal_io_error): Delete function.
7554         * diagnostic.h (text_info): Add err_no field.
7555         * toplev.h (fatal_io_error): Delete prototype.
7556
7557         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
7558         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
7559         * objc/objc-act.c: Replace all calls to fatal_io_error with
7560         calls to fatal_error; add ": %m" to the end of all the affected
7561         error messages.
7562
7563 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
7564
7565         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
7566         * rtl.h: Prototype it.
7567         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
7568         when appropriate.
7569
7570 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7571
7572         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
7573         ("*iorsi3_oi"): Likewise.
7574
7575 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
7576
7577         * arm.md (compare_scc): Use shorter sequence for EQ case.
7578         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
7579         (and_scc_scc): Ensure split only applies when there is a dominance
7580         of the comparisons.
7581         (and_scc_scc_nodom): New insn-and-split pattern.
7582
7583 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
7584
7585         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
7586         to _Unwind_SetGRPtr().
7587
7588 2003-05-13  Michael Eager <eager@mvista.com>
7589
7590         * Makefile.in: Initialize program_transform_cross_name from
7591         @program_transform_name@ instead of target_alias.
7592
7593 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
7594             Alan Modra  <amodra@bigpond.net.au>
7595             Jakub Jelinek  <jakub@redhat.com>
7596
7597         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
7598         * configure: Rebuild.
7599         * config/rs6000/rs6000-protos.h: Update.
7600         * config/rs6000/rs6000.c (rs6000_tls_size): New.
7601         (rs6000_tls_size_string): New.
7602         (rs6000_parse_tls_size_option): New.
7603         (rs6000_legitimize_tls_address): New.
7604         (rs6000_tls_get_addr): New.
7605         (rs6000_got_sym): New.
7606         (rs6000_tls_symbol_ref): New.
7607         (rs6000_tls_symbol_ref_1): New.
7608         (rs6000_get_some_local_dynamic_name): New.
7609         (rs6000_get_some_local_dynamic_name_1): New.
7610         (TARGET_HAVE_TLS): New.
7611         (TARGET_CANNOT_FORCE_CONST_MEM): New.
7612         (rs6000_override_options): Handle -mtls-size option.
7613         (constant_pool_expr_1): Handle TLS symbols.
7614         (rs6000_legitimize_address): Handle TLS symbols.
7615         (rs6000_tls_referenced_p): New.
7616         (rs6000_legitimate_address): Handle TLS symbols.
7617         (rs6000_emit_move): Handle TLS symbols.
7618         (print_operand): Handle TLS symbols.
7619         (uses_TOC): Handle TLS symbols.
7620         (rs6000_emit_prologue): Use symbol for unspec constant.
7621         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
7622         (some_ld_name): New.
7623         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
7624         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
7625         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
7626         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
7627         Support TLS.
7628         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
7629         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
7630         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
7631         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
7632         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
7633         tls_tls_64): New.
7634         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
7635
7636 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
7637
7638         * Makefile.in (stage2_build, stage3_build, stage4_build):
7639         Set BUILD_CC to the same as CC.
7640
7641 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
7642
7643         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
7644
7645 2003-05-12  Andreas Schwab  <schwab@suse.de>
7646
7647         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
7648         as unused.
7649         (bundling): Initialize 'pos'.
7650         (ia64_expand_builtin): Initialize 'rmode'.
7651
7652 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
7653
7654         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
7655         (ASM_OUTPUT_ALIGNED_COMMON): Same.
7656         (ASM_OUTPUT_LOCAL): Same.
7657
7658 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
7659
7660         * varasm.c (output_constant):  Fix underflow.
7661
7662 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
7663
7664         PR other/10745
7665         * configure.in: Correct detection of GNU ld version number.
7666         * configure: Regenerated.
7667
7668 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
7669
7670         * diagnostic.c (diagnostic_for_decl): Take a
7671         diagnostic_context argument.  Restructure to be consistent
7672         with diagnostic_report_diagnostic.
7673         (diagnostic_count_diagnostic): Now static.  Take a
7674         diagnostic_info argument, not just a diagnostic_t.  Some code
7675         moved here from internal_error.  Move a case label for
7676         clarity.
7677         (diagnostic_action_after_output): New function.  Code moved
7678         here from internal_error and fatal_error.
7679         (bug_report_request): New #define so that this text appears in
7680         only one place.
7681         (diagnostic_report_diagnostic): Update to match changes to
7682         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
7683         (diagnostic_set_info): Call gettext here.
7684
7685         (pedwarn): Update comment.  Don't call gettext here.
7686         (sorry): Use report_diagnostic.  Don't call gettext here.
7687         (fatal_error): Remove final fnotice and exit, but call
7688         real_abort to prevent warnings about noreturn function returning.
7689         (internal_error): Likewise.  Don't do ICE suppression here nor
7690         call context->internal_error.
7691         (warning_with_decl): Suppress for decls in system headers.
7692         Adjust call to diagnostic_for_decl.
7693         (pedwarn_with_decl): Likewise.
7694         (error_with_decl): Adjust call to diagnostic_for_decl.
7695         (error_recursion): Use bug_report_request.
7696
7697         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
7698         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
7699         diagnostic_count_diagnostic.
7700
7701 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7702
7703         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
7704
7705 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
7706
7707         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
7708         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
7709         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
7710
7711 2003-05-12  Roger Sayle  <roger@eyesopen.com>
7712
7713         * doc/rtl.texi: Document zero_extract as a valid destination
7714         of a set insn.
7715
7716 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
7717
7718         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
7719         '.'.  Change all local symbol definitions and references to use LSYM.
7720
7721 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
7722
7723         * expr.h (assemble_static_space): Update prototype.
7724         * output.h (assemble_zeros, output_constant): Likewise.
7725         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
7726         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
7727         it 64bit clean.
7728         * elf.h (ASM_OTUPUT_SKIP): Likewise.
7729         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
7730         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7731         Expect HOST_WIDE_INT operand.
7732         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7733         Expect HOST_WIDE_INT operand.
7734         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7735         Expect HOST_WIDE_INT operand.
7736         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
7737         HOST_WIDE_INT operand.
7738         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
7739         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
7740         * aout.h (ASM_OTUPUT_SKIP): Likewise.
7741         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7742         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
7743         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
7744         * frv.h (ASM_OTUPUT_SKIP): Likewise.
7745         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
7746         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7747         Make it 64bit
7748         clean.
7749         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
7750         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7751         Make it 64bit clean.
7752         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
7753         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
7754         HOST_WIDE_INT operand
7755         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7756         Expect HOST_WIDE_INT operand
7757         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
7758         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
7759         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
7760         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7761         Likewise.
7762         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
7763         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7764         Likewise.
7765         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7766         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7767         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7768         ASM_OUTPUT_SKIP): Likewise.
7769         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7770         Likewise.
7771         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7772         ASM_OUTPUT_SKIP): Likewise.
7773         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7774         ASM_OUTPUT_SKIP): Likewise.
7775         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7776         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7777         ASM_OUTPUT_SKIP): Likewise.
7778         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
7779         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7780         ASM_OUTPUT_SKIP): Likewise.
7781         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
7782         Likewise.
7783         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
7784         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
7785         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7786         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7787         ASM_OUTPUT_SKIP): Make it 64bit clean.
7788         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
7789         Make it 64bit clean.
7790         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
7791         ASM_OUTPUT_SKIP): Make it 64bit clean.
7792         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
7793         64bit clean.
7794         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7795         HOST_WIDE_INT argument
7796         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
7797         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7798         HOST_WIDE_INT argument
7799         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7800         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
7801         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7802         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7803         HOST_WIDE_INT argument
7804         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7805         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7806         * varasm.c (asm_output_bss, asm_output_aligned_bss,
7807         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
7808         HOST_WIDE_INT argument
7809
7810 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
7811
7812         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
7813         favor of walk_tree_without_duplicates.  Add comments.
7814
7815 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
7816
7817         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
7818         (struct alloc_pool_def): New element 'id'.
7819         * alloc-pool.c (fancy_abort): Extern function prototype.
7820         (abort): Macro which uses fancy_abort.
7821         (struct allocation_object_def): New structure.
7822         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
7823         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
7824         (last_id): New variable.
7825         (create_alloc_pool): Add the offset of u.data to size of element,
7826         increase and use last_id.
7827         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
7828         (pool_alloc): Likewise. Set ID for elements.
7829         (pool_free): Check whether the PTR was allocated from POOL.
7830
7831 2003-05-11  Richard Henderson  <rth@redhat.com>
7832
7833         PR c/10675
7834         * c-decl.c: Include hashtab.h.
7835         (detect_field_duplicates): New.
7836         (finish_struct): Use it.
7837         * Makefile.in (c-decl.o): Update.
7838         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
7839         (component_decl_list, component_decl_list2,
7840         components, components_notype): Build list in reverse order.
7841         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
7842
7843         * tree.c (chainon): Special case op2 null as well.
7844         Reorg for clarity.
7845
7846 2003-05-11  Roger Sayle  <roger@eyesopen.com>
7847
7848         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
7849         to implement log, logf and logl built-ins as inline x87 intrinsics.
7850         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
7851         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
7852         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
7853
7854         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
7855         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
7856
7857 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7858
7859         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
7860
7861         * sparc.c (print_operand): Fix uninitialized warning.
7862
7863 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7864
7865         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
7866         real insns.
7867         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
7868         condition.
7869
7870 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
7871
7872         * doc/cpp.texi: Fix typos.
7873
7874 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
7875
7876         * config/s390/s390.c (s390_function_arg_float): New function.
7877         (s390_function_arg_pass_by_reference): Use it.
7878         (s390_function_arg_advance): Likewise.
7879         (s390_function_arg): Likewise.
7880         (s390_va_arg): Likewise
7881
7882 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
7883
7884         * coverage.h (coverage_counter_alloc): New function.
7885         * function.h (struct function): Remove arc_profile flag.
7886         * coverage.c (fn_ident): Remove.
7887         (fn_b_ctrs, no_coverage): New.
7888         (get_coverage_counts): Use current_function_funcdef_no.
7889         (coverage_counter_alloc): New.
7890         (coverage_counter_ref): Adjust.
7891         (coverage_begin_output): Check no_coverage. Use
7892         current_function_funcdef_no.
7893         (coverage_end_function): Likewise.
7894         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
7895         than clearing flag_inline_functions. Do not clear arc_profile
7896         flag.
7897         * function.c (prepare_function_start): Do not set arc_profile
7898         flag.
7899         * profile.c (instrument_edges): Return number of instrumented
7900         edges. Use a for loop.
7901         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
7902         local to here and simplify. Use profile_arc_flag not arc_profile
7903         flag.
7904         (find_spanning_tree): Reformat.
7905         * toplev.c (rest_of_compilation): Use profile_arc_flags and
7906         flag_test_coverage rather than arc_profile flag.
7907
7908 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
7909
7910         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
7911
7912 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7913
7914         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
7915
7916 2003-05-11  Bruno Haible  <bruno@clisp.org>
7917
7918         * cppfiles.c (find_or_create_entry): Preserve errno.
7919
7920 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
7921
7922         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
7923         cpplib as it's a Standard Predefined Macro.
7924         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
7925         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
7926         __STDC_HOSTED__ appropriately.
7927         * cpplib.h (_cpp_init_builtins): Update.
7928         * fix-header.c (read_scan_file): Update.
7929         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
7930
7931 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7932
7933         PR C++/689
7934         PR C++/9257
7935         * c-opts.c (c_common_decode_option): Don't set
7936         warn_ctor_dtor_privacy wen -Wall.
7937         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
7938
7939 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
7940
7941         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
7942         patch.
7943
7944 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
7945
7946         * diagnostic.c: Reorder functions for clarity, putting all the
7947         functions in the "error" family next to each other, and
7948         likewise all the functions in the "error_with_decl" family.
7949         Some other routines were moved too.  Add comments.
7950         (vbuild_message_string): Fold into sole caller.
7951
7952
7953 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
7954
7955         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
7956         (EH_RETURN_HANDLER_RTX): Likewise.
7957         (expand_builtin_eh_return): Do not copy stack adjustment
7958         if EH_RETURN_STACKADJ_RTX is not defined.
7959         (expand_eh_return): Likewise.  Also, do not pass stack
7960         adjustment as argument to the eh_return pattern.
7961         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
7962         because EH_RETURN_STACKADJ_RTX is not defined.
7963         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
7964         is not defined, treat stack pointer like a regular register.
7965         (uw_init_context_1): Set up fake initial stack pointer register.
7966         (uw_install_context_1): Do not compute stack adjustment if
7967         EH_RETURN_STACKADJ_RTX is not defined.
7968
7969         * config/i386/i386.md ("eh_return"): Remove first argument.
7970         * config/mips/mips.md ("eh_return"): Likewise.
7971         * config/rs6000/rs6000.md ("eh_return"): Likewise.
7972         * config/sh/sh.md ("eh_return"): Likewise.
7973
7974         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
7975
7976 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
7977
7978         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
7979
7980 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
7981
7982         * defaults.h (GCOV_TYPE_SIZE): Remove.
7983         * gcov-io.h (gcov_type): Set to specific mode int on target.
7984         (gcov_unsigned_t, gcov_position_t): New.
7985         (GCOV_TYPE_NODE): New.
7986         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
7987         (GCOV_COUNTERS_SUMMABLE): New.
7988         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
7989         gcov_ctr_info, gcov_info): Adjust types.
7990         (gcov_var): Adjust types.
7991         (gcov_write_unsigned, gcov_write_tag,
7992         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7993         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7994         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
7995         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
7996         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7997         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7998         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
7999         __gcov_init, __gcov_merge_add): Adjust gcov types.
8000         * coverage.c (ctr_merge_functions): Constify.
8001         (ctr_names): New.
8002         (read_counts_file): Adjust gcov types. Only summarize & merge
8003         summable counters.
8004         (coverage_counter_ref): Use GCOV_TYPE_NODE.
8005         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
8006         build_ctr_info_value, build_gcov_info): Adjust types.
8007         * profile.c (branch_prob): Adjust gcov types.
8008         * gcov_dump (dump_file): Adjust gcov types.
8009
8010 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
8011
8012         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
8013         constants.
8014         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
8015         * arm.c (arm_select_dominance_cc_mode): Renamed from
8016         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
8017         Callers updated.
8018         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
8019
8020 2003-05-09  Roger Sayle  <roger@eyesopen.com>
8021
8022         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
8023         as unsigned to avoid signed/unsigned comparison warnings.
8024
8025 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
8026
8027         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
8028         instruction if the Xtensa density option is enabled.
8029
8030 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
8031
8032        * mklibgcc.in: Remove extra quotes.
8033
8034 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
8035
8036         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
8037         of int_ftype_void.
8038
8039 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
8040
8041         * reload1.c (reload_cse_move2add): Don't turn an implicit
8042         truncation into a self-set in the narrow mode.
8043
8044 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
8045
8046         * arm.md (clzsi2): The CLZ instruction is predicable.
8047
8048 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
8049
8050         * config/xtensa/xtensa.c: Formatting.
8051
8052 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
8053
8054         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
8055         instead of TREE_OPERAND to access the operand of a
8056         CONSTRUCTOR node.
8057
8058 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
8059
8060         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
8061         one operand.
8062
8063 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
8064
8065         * toplev.h (warning_with_file_and_line): Don't declare.
8066         (error_with_file_and_line): Likewise.
8067         * diagnostic.c (error_with_file_and_line): Remove.
8068         (warning_with_file_and_line): Likewise.
8069
8070 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
8071
8072         * c-parse.in (if_stmt_locus): New object.
8073         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
8074         (select_or_iter_stmt rule): Likewise.
8075         (if_stmt_file): Remove.
8076         (if_stmt_line): Likewise.
8077         * jump.c: include "diagnostic.h"
8078         (never_reached_warning): Don't use warning_with_file_and_line.
8079         * Makefile.in (jump.o): Add dependce on diagnostic.h
8080
8081 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
8082
8083         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
8084         Move code handling pieces not larger than a word to..
8085         * function.c (assign_parms): ..here, but use change_address instead
8086         of adjust_address and operand_subword, and expand_binop instead of
8087         expand_shift.  Adjust calls to move_block_from_reg.
8088         * expr.h (move_block_from_reg): Update declaration.
8089         (copy_blkmode_from_reg): Formatting.
8090         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
8091         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
8092         move_block_from_reg calls.
8093         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
8094         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
8095         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8096         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
8097         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
8098         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
8099         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
8100         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
8101         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
8102
8103 2003-05-08  DJ Delorie  <dj@redhat.com>
8104
8105         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
8106         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
8107         variable-sized types).
8108         (xstormy16_function_arg): New.  Pass them that way too.
8109         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
8110         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
8111
8112 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
8113
8114         * mklibgcc.in: Use mkinstalldirs when installing multilib
8115         directories.
8116
8117 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
8118
8119         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
8120         instead of CODE_FOR_jump
8121
8122 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
8123
8124         * objc/objc-act.c (error_with_ivar): Don't use
8125         error_with_file_and_line.
8126         (warn_with_method): Don't use warning_with_file_and_line.
8127
8128 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8129
8130         * stmt.c (emit_locus): New macro.
8131         (emit_filename): Remove.
8132         (emit_lineno): Likewise.
8133         (struct stmt_status): Replace members x_emit_filename and
8134         x_emit_lineno with x_emit_locus.
8135         (set_file_and_line_for_stmt): Adjust.
8136         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
8137         (warn_if_unused_value): Likewise.
8138         (check_seenlabel): Likewise.
8139
8140 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8141
8142         * c-decl.c (define_label): Tidy.  Don't use any of
8143         error_with_file_and_line or warning_with_file_and_file.
8144         (pending_xref_error): Likewise.
8145         (store_parm_decls): Likewise.
8146         (current_function_prototype_locus): New object.  Package from
8147         current_function_prototype_file and current_function_prototype_line.
8148         (start_function): Use it.
8149         (current_function_prototype_file): Remove.
8150         (current_function_prototype_line): Remove;
8151
8152 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8153
8154         * builtins.c (readonly_data_expr): New function.
8155         (expand_builtin_memmove): Optimize any rodata source, not just
8156         strings.
8157
8158 2003-05-07  David Mosberger <davidm@hpl.hp.com>
8159
8160         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
8161
8162 2003-05-07  Richard Henderson  <rth@redhat.com>
8163
8164         * config/i386/i386.c (ix86_split_long_move): Fix base register
8165         mode for XFmode splits for TARGET_64BIT.
8166
8167 2003-05-07  Richard Henderson  <rth@redhat.com>
8168
8169         * sched-ebb.c (schedule_ebb): Supply the correct starting
8170         block number to save_line_notes.
8171
8172 2003-05-07  Richard Henderson  <rth@redhat.com>
8173
8174         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
8175         (dump_file): Likewise.
8176
8177 2003-05-07  David Mosberger <davidm@hpl.hp.com>
8178
8179         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
8180         forget to preserve gp.
8181         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
8182
8183         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
8184         .prologue directive.
8185         Use .skip instead of data8 for .bss section to make Intel
8186         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
8187         explicit in the .mib bundles and remove the unnecessary stop
8188         bits.  Replace local labels with normal labels, to make ias
8189         happy.  Don't register __do_global_ctors_aux here, do it in
8190         crtend.asm instead.
8191
8192         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
8193         __do_global_ctors_aux in .init_array section instead of
8194         declaring it as a hidden global.  Replace local labels with
8195         ordinary labels to make ias happy.
8196
8197 2003-05-07  Richard Henderson  <rth@redhat.com>
8198
8199         PR c++/10570
8200         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
8201         * flags.h, toplev.c, doc/invoke.texi: Likewise.
8202
8203         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
8204         * unwind.inc (_Unwind_DeleteException): Check for null
8205         exception_cleanup.
8206
8207         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
8208         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
8209         * unwind.h: Declare them.
8210         * libgcc-std.ver (GCC_3.3): Export them.
8211
8212 2003-05-07  Richard Henderson  <rth@redhat.com>
8213
8214         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
8215         not _Unwind_Word.
8216
8217 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
8218
8219         * stmt.c (force_label_rtx): New function, based on logic
8220         formerly found in expand_expr.
8221         * expr.h: Prototype it.
8222         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
8223         appropriate.
8224         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
8225
8226         * print-tree.c (debug_tree): Free the table after we're done
8227         with it.  Use putc.
8228
8229 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
8230
8231         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
8232         Unreverse arguments for __ev_subw.
8233
8234         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
8235
8236 2003-05-07  Nick Clifton  <nickc@redhat.com>
8237
8238         * config/stormy16/stormy-abi: Update to include
8239         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
8240         R_XSTORMY16_12 relocs.
8241
8242 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
8243
8244         * function.c (assign_parms): Correct reversed reg_parm_stack_space
8245         test.  Add partial in-regs size to stack_args_size.
8246
8247 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8248
8249         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
8250         as a C only option.
8251
8252 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
8253
8254         * gcov-io.h (GCOV_LOCKED): New #define.
8255         (GCOV_LINKAGE): Make sure it is #defined.
8256         (gcov_write_string, gcov_write_tag, gcov_write_length,
8257         gcov_read_string, gcov_time): Poison in libgcov.
8258         (gcov_seek_end): Remove.
8259         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
8260         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
8261         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
8262         GCOV_TAG_SUMMARY_LENGTH): New #defines.
8263         (gcov_write_tag, gcov_write_length): Not in libgcov.
8264         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
8265         (gcov_write_tag, gcov_write_length): Not in libgcov.
8266         (gcov_write_tag_length): New.
8267         (gcov_write_summary): Use gcov_write_tag_length.
8268         * libgcov.c: Always #include gcov-io.h.
8269         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
8270         (GCOV_LINKAGE): Define to nothing for L_gcov.
8271         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
8272         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
8273         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
8274         (read_count_file): Likewise.
8275         * gcov-dump.c (dump_file): Likewise.
8276         * coverag.c (read_counts_file): Likewise.
8277
8278 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
8279
8280         PR other/10658
8281         * gcc.c (process_command): Update copyright date.
8282
8283 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
8284
8285         * doc/install.texi (mips-*-*):  Add note about libstdc++.
8286
8287 2003-05-06  DJ Delorie  <dj@redhat.com>
8288
8289         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
8290         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
8291         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
8292
8293 2003-05-06    <neil@cat.daikokuya.co.uk>
8294
8295         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
8296         and -Wstrict-prototypes if C++.
8297
8298 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
8299
8300         * config/rs6000/linuxspe.h: New file.
8301
8302         * config.gcc: Add powerpc-*-linux-gnuspe* target.
8303
8304 2003-05-06  Richard Henderson  <rth@redhat.com>
8305
8306         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
8307         previous frame didn't save sp.  Clear sp for next frame.
8308         (uw_install_context_1): Honor saved sp from frame.
8309
8310 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
8311
8312         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
8313         (mips_move_1word, mips_move_2words): Remove declaration.
8314         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
8315         (mips_restore_gp): Remove insn argument.
8316         * config/mips/mips.h (FP_REG_RTX_P): New macro.
8317         * config/mips/mips.c (volatile_buffer): Remove.
8318         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
8319         (mips_move_1word, mips_move_2words): Remove, replacing with...
8320         (mips_output_move): ...this new function.
8321         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
8322         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
8323         handling of floating-point constants.  Handle zero CONST_DOUBLE
8324         arguments.
8325         (mips_annotate_frame_insn): Replace with...
8326         (mips_set_frame_expr): ...this, which just takes one argument.
8327         (mips_frame_set): Change the register argument to an rtx.
8328         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
8329         check whether moves should be split.  Use mips_split_64bit_move
8330         to split them.  Use mips_subword to generate the high and low
8331         parts of a paired FPR.  Adjust calls to frame_set and
8332         mips_set_frame_expr.
8333         (mips_expand_prologue): Simplify due to above changes.
8334         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
8335         targets, replacing xisting register-only versions.
8336         (UNSPEC_STORE_DF_HIGH): New unspec.
8337         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
8338         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
8339         (*paradoxical_extendhidi2): Remove.
8340         (movdi_internal, movdi_internal2): Use mips_output_move.
8341         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
8342         (movsf_internal1, movsf_internal2): Likewise.
8343         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
8344         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
8345         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
8346         Add m <- G alternative.
8347         (load_df_low, load_df_high, store_df_low): New patterns.
8348         (movhi_internal): Use @ template instead of calling a function.
8349         Remove unnecessary 'z' alternatives.
8350         (movqi_internal): Likewise.
8351         (exception_receiver): Update call to mips_restore_gp.
8352
8353 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
8354
8355         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
8356         (mips_delegitimize_address): Declare.
8357         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
8358         (FIND_BASE_TERM): Define.
8359         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8360         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
8361         Handle small-data addresses.
8362
8363 2003-05-05  Roger Sayle  <roger@eyesopen.com>
8364
8365         * real.c (real_powi): New function to calculate the value of
8366         a real raised to an integer power, i.e. pow(x,n) for int n.
8367         (real_sqrt): Convert to using the faster do_add, do_multiply
8368         and do_divide API for consistency with the rest of real.c.
8369         * real.h (real_powi): Prototype here.
8370         * builtins.c (fold_builtin):  Avoid local variable mode when
8371         evaluating sqrt at compile time.  Attempt to evaluate pow at
8372         compile-time, by checking for an integral exponent.
8373
8374 2003-05-05  Richard Henderson  <rth@redhat.com>
8375
8376         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
8377
8378 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
8379
8380         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
8381         other FreeBSD ports.
8382         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
8383         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
8384
8385 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
8386
8387         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
8388         expanded variables.
8389         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
8390
8391 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
8392
8393         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
8394         * varasm.c (struct varasm_status): Add deferred_constants field.
8395         (n_deferred_strings): Delete variable.
8396         (n_deferred_constants): New #define.
8397         (struct constant_descriptor_tree): Kill next and label fields.
8398         (const_hash_table, MAX_HASH_TABLE): Delete.
8399         (const_desc_htab): New static variable.
8400         (const_hash): Rename const_desc_hash, and make it fit the
8401         hashtab.h interface.
8402         (const_desc_eq): New.
8403         (const_hash_1, compare_constant): Const-ify arguments.
8404         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
8405         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
8406         (output_constant_def): Do the lookup/insert using the
8407         hashtab.h interface.  Don't muck with n_deferred_constants or
8408         DEFERRED_CONSTANT_P here.
8409         Always call maybe_output_constant_def_contents.
8410         (maybe_output_constant_def_contents): Take a pointer to the
8411         descriptor, not the EXP and RTL separately.  Return
8412         immediately if this constant is not deferred.  Defer output of
8413         everything, except writable string constants.  Update
8414         n_deferred_constants here.
8415         (output_constant_def_contents): Now takes just one argument,
8416         an rtx.  Clear DEFERRED_CONSTANT_P here.
8417         (mark_constant_pool): Update for rename of n_deferred_strings.
8418         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
8419
8420         (init_varasm_status): Clear p->deferred_constants.
8421         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
8422
8423 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8424
8425         * builtins.c (expand_builtin_stpcpy): Only expand when the length
8426         of the source string can be evaluated at compile-time.
8427
8428 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
8429
8430         * testsuite/gcc.c-torture/compile/simd-6.c: New.
8431
8432         * c-typeck.c (digest_init): Handle arrays of vector constants.
8433
8434 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
8435
8436         * builtins.c (expand_builtin_mempcpy): New function.
8437         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
8438         ignored into strcpy no matter what arguments it has.
8439         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
8440         expand_builtin_mempcpy.
8441
8442 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
8443
8444         * testsuite/gcc.dg/20030505.c: New.
8445
8446         * c-typeck.c (convert_for_assignment): Opaque pointers can
8447         interconvert.
8448
8449         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
8450         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
8451         (spe_init_builtins): Rename all pv2si_type_node to
8452         opaque_p_V2SI_type_node.
8453         Remove declaration of pv2si_type_node.
8454         (is_ev64_opaque_type): Accept opaque pointers.
8455
8456 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
8457
8458         * config/rs6000/rs6000.c (validate_condition_mode): Use
8459         flag_finite_math_only.
8460         (rs6000_reverse_condition): Never return UNKNOWN; use
8461         flag_finite_math_only.
8462         (rs6000_generate_compare): Use flag_finite_math_only.
8463         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
8464         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
8465         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
8466
8467         * toplev.c (check_global_declarations): Suppress not-used warning
8468         for volatile variables.
8469
8470 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
8471
8472         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
8473         usage of bitfield instructions for mode1 != BLKmode, only ignoring
8474         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
8475         (store_field): Likewise.
8476
8477 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
8478
8479         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
8480         evsubifw to builtins accepting 5-bit unsigned constants.
8481         (easy_vector_constant): Return if V1DImode.  Fix typo.
8482
8483 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
8484
8485         * config/rs6000/spe.h: Revert licensing change from last patch.
8486
8487 2003-05-05  DJ Delorie  <dj@redhat.com>
8488
8489         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
8490         before reload, but defer the split until after.
8491         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
8492         to match.
8493
8494 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
8495
8496         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
8497         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
8498
8499 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8500
8501         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
8502         is defined.
8503
8504 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8505
8506         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
8507         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
8508         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
8509
8510         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
8511         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
8512         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
8513         New.
8514
8515         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
8516         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
8517
8518         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
8519         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
8520         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
8521         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
8522         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
8523         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
8524         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
8525         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
8526         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
8527         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
8528         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
8529         BUILT_IN_STRDUP): Add "nonnull" attribute.
8530
8531 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8532
8533         * expr.c (store_field): Don't clobber TEMP in shift: it might be
8534         a variable.
8535         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
8536         whose purpose is to step up the alignment.
8537         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
8538
8539         * stor-layout.c (compute_record_mode): Relax restriction
8540         on fields crossing word boundaries forcing BLKmode.
8541
8542 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
8543
8544         * cppinit.c (cpp_create_reader, post_options): Warn about
8545         trigraphs unless explicity set or -trigraphs.
8546         * cpplex.c (warn_in_comment): New.
8547         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
8548         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
8549         * doc/cppopts.texi, doc/cpp.texi: Update.
8550
8551 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8552
8553         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
8554         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
8555         namespace clash.
8556         (GCOV_MERGE_FUNCTIONS): New.
8557         (gcov_merge_fn): Declare.
8558         (struct gcov_ctr_info): New field "merge".
8559         (__gcov_merge_add): Declare.
8560         * coverage.c (ctr_merge_functions): New.
8561         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
8562         of gcov_ctr_info type.
8563         * libgcov.c (__gcov_merge_add): New.
8564         (gcov_exit): Call a hook to merge values of counters.
8565
8566 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
8567
8568         * toplev.h (pedwarn_with_file_and_line): Don't declare.
8569         * diagnostic.c (pedwarn_with_file_and_line): Remove.
8570
8571 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8572
8573         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
8574
8575 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8576
8577         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
8578         expand_builtin_frame_address): Update prototypes.
8579         (expand_builtin_constant_p, expand_builtin_strlen,
8580         expand_builtin_strcpy, expand_builtin_memset,
8581         expand_builtin_bzero, expand_builtin_args_info,
8582         expand_builtin_frame_address): Pass in just the argument(s)
8583         needed, not the entire expression `exp'.
8584         (expand_builtin): Update all calls to these functions.
8585
8586 2003-05-03  Richard Henderson  <rth@redhat.com>
8587
8588         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
8589         <BUILT_IN_DWARF_SP_COLUMN>: New.
8590         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
8591         (BUILT_IN_DWARF_SP_COLUMN): New.
8592         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
8593         (expand_builtin_dwarf_sp_column): New.
8594         * except.h: Update to match.
8595         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
8596         (execute_cfa_program): Record location expression address
8597         before extracting length.
8598         (uw_update_context_1): Install old CFA into stack pointer column.
8599         (uw_init_context_1): Set cfa_reg to stack pointer column.
8600
8601 2003-05-03  Richard Henderson  <rth@redhat.com>
8602
8603         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
8604         return bool.
8605         (toc_relative_expr_p): Likewise.
8606         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
8607         (legitimate_constant_pool_address_p): Move from rs6000.h, change
8608         into a function, downcase all users.
8609         (legitimate_small_data_p): Likewise.
8610         (legitimate_offset_address_p): Likewise.
8611         (legitimate_indexed_address_p): Likewise.
8612         (legitimate_indirect_address_p): Likewise.
8613         (legitimate_lo_sum_address_p): Likewise.
8614         (rs6000_mode_dependent_address): Likewise.
8615         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
8616         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8617         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
8618         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
8619         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
8620         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
8621         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
8622         * config/rs6000/rs6000-protos.h: Update.
8623
8624 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
8625
8626         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
8627         (REVERSE_CONDITION): Define.
8628
8629         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
8630         to branch_positive_comparison_operator.
8631         (ccr_bit): Check that sCOND conditions are actually a positive bit.
8632         (print_operand): Remove %D substitution.
8633         (rs6000_emit_sCOND): Generate complement operation to ensure that
8634         sCOND input is a positive bit.
8635         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
8636         same order as bCOND, and add the missing ones.  Remove the %D
8637         substitutions from the scc patterns.
8638
8639         * simplify-rtx.c (simplify_relational_operation): Add case for
8640         ! (fabs(x) < 0.0).
8641
8642 2003-05-03  Bruce Korb  <bkorb@gnu.org>
8643
8644         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
8645         in fixincl.x
8646         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
8647
8648 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
8649
8650         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
8651
8652 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
8653
8654         PR c/10604
8655         * c-common.c (warn_sign_compare): Initialize to -1.
8656         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
8657         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
8658         for C++ only.
8659         (c_common_post_options): Set warn_sign_compare from extra_warnings
8660         if it's still -1 at this point.
8661
8662         * toplev.c (maybe_warn_unused_parameter): New static variable.
8663         (set_Wextra): New static function.
8664         (W_options): Remove "extra".
8665         (decode_W_option): Call set_Wextra.
8666         (independent_decode_option): Likewise.
8667         (set_Wunused): Cooperate with set_Wextra in setting
8668         warn_unused_parameter.
8669         (rest_of_compilation): No need to check extra_warnings as
8670         well as warn_uninitialized.
8671
8672         * c-typeck.c (build_binary_op, build_conditional_expr):
8673         No need to check extra_warnings as well as warn_sign_compare.
8674         (internal_build_compound_expr): No need to check extra_warnings
8675         as well as warn_unused_value.
8676         * function.c (expand_function_end): No need to check extra_warnings
8677         as well as warn_unused_parameter.
8678         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
8679         as well as warn_unused_value.
8680
8681         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
8682
8683         * Makefile.in: Disable -Werror for gengtype-lex.o.
8684
8685 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
8686
8687         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
8688         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
8689         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
8690         * calls.c (emit_call_1): Likewise.
8691         (expand_call): For calls initializing constant memory, replace
8692         emission of standalone mem /u clobber with function usage entry.
8693         * expr.c (emit_block_move_via_libcall): Likewise.
8694         * cse.c (count_reg_usage, case EXPR_LIST): New case.
8695         * flow.c (propagate_one_insn): Pass entire operand of
8696         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
8697         * integrate.c (try_constants): For CALL_INSNs, substitute constants
8698         within the FUNCTION_USAGE also.
8699         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
8700         FUNCTION_USAGE lists.
8701         * reload1.c (replace_pseudos_in): Renamed.
8702         (reload): Use it for clobbers surviving until the end of the reload.
8703
8704 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8705
8706         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
8707         gen_lowpart on non-integer modes.
8708
8709         * stor-layout.c (place_field): When adjusting offset_align, use
8710         desired_align, not DECL_ALIGN.
8711
8712 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
8713
8714         * c-decl.c (pending_invalid_xref_file): Remove.
8715         (pending_invalid_xref_line): Remove.
8716         (pending_invalid_xref_location): New.
8717         (lookup_label): Use location_t and input_location directly.
8718         (lookup_tag): Likewise.
8719         (pending_xref_error): Likewise.
8720         (c_expand_body_1): Likewise.
8721         * c-common.c (x_expand_start_cond): Likewise.
8722         * c-semantics.c (genrtl_for_stmt): Likewise.
8723         (find_reachable_label): Likewise.
8724         * expr.c (expand_expr): Likewise.
8725         * integrate.c (output_inline_function): Likewise.
8726         * tree-inline.c (find_alloca_call): Likewise.
8727         (find_builtin_longjmp_call): Likewise.
8728         * gcc.c (input_filename): Make static.
8729
8730 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
8731
8732         * config/mips/mips.md: Fix comment typo.
8733
8734         * config/mips/mips.c (mips_integer_op): New structure.
8735         (MIPS_MAX_INTEGER_OPS): Define.
8736         (mips_const_insns): Use mips_build_integer to determine the number
8737         of instructions needed to load a CONST_INT.
8738         (move_operand): Reject compound CONST_INTs.
8739         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
8740         (mips_move_integer): New fn.
8741         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
8742         (mips_legitimize_move): Only legitimize constants when moving
8743         word or subword values.
8744
8745 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
8746
8747         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
8748
8749 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8750
8751         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
8752         modifying it.
8753
8754 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8755             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8756
8757         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
8758         Hernandez, and Kazu Hirata.  Update Richard Henderson.
8759
8760 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
8761
8762         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
8763         to tentative declaration.
8764
8765         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
8766         (SYMBOL_FLAG_SMALL_V4): Delete.
8767         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
8768         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
8769         (rs6000_elf_in_small_data_p): Add extra section names.  Add
8770         comment about TREE_PUBLIC test.
8771
8772         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
8773         expand_stmt on result of expand_unreachable_stmt.
8774
8775 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8776
8777         * doc/contrib.texi (Contributors): Add Daniel Berlin.
8778
8779 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
8780
8781         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
8782         number of automata.
8783
8784         * config/rs6000/rs6000.c (symbol_ref_operand): Check
8785         SYMBOL_REF_FUNCTION_P on AIX.
8786         (current_file_function_operand): Same.
8787         * config/rs6000/rs6000.md (call,call_value): Force non-function
8788         symbol_ref into register on AIX.
8789
8790 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
8791
8792         * calls.c (struct arg_data): Move offset, slot_offset, size and
8793         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
8794         (initialize_argument_information): Adjust call to locate_and_pad_parm.
8795         Delete alignment_pad var.  Don't calculate slot_offset here.
8796         (emit_library_call_value_1): Delete alignment_pad, offset and size
8797         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
8798         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
8799         partial in-regs here.  Formatting fixes.
8800         * expr.h (struct locate_and_pad_arg_data): New struct.
8801         (locate_and_pad_parm): Adjust declaration.
8802         * function.c (assign_parms): Localize vars.  Use "locate" instead of
8803         other arg location vars.  Don't invoke FUNCTION_ARG or
8804         FUNCTION_INCOMING_ARG unless pretend_named is different from
8805         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
8806         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
8807         Use slot_offset for stack home of reg parms.  Correct test for
8808         parm passed in memory.  Formatting fixes.
8809         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
8810         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
8811         Correct initial_offset_ptr handling.  Localize vars.  Always pad
8812         locate->offset even when in_regs.
8813
8814 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8815
8816         * Makefile.in (TREE_H): Replace location.h with input.h.
8817         (GTFILES) Remove location.h
8818         (gt-lists.h): Replace gt-location.h with gt-input.h
8819         * input.h (input_filename, input_line): Remove variables.
8820         (location_s, location_t): Move from location.h.
8821         (input_location): New.
8822         (input_filename, input_line): New #defines.
8823         * location.h: Remove.
8824         * tree.h: Replace location.h with input.h.
8825         (input_filename, input_line): Remove.
8826         * diagnostic.h: Replace location.h with input.h.
8827         * gcc.h (input_filename, input_filename_length): Remove declarations.
8828         * toplev.c (input_filename, input_line): Remove.
8829         (input_location): Define.
8830         (push_srcloc, pop_srcloc): Adjust.
8831         * diagnostic.c (diagnostic_report_current_module): Adjust.
8832
8833 2003-05-02  Nick Clifton  <nickc@redhat.com>
8834
8835         * configure.in: Add xstormy16 to list of targets that has a nop
8836         instruction and hence which can be tested to see if the
8837         assembler supports the --gdwarf2 switch.
8838         * configure: Regenerate.
8839
8840 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
8841
8842         PR target/8257
8843         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8844         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
8845         Avoid undefined shifts by making the shift operand unsigned.
8846
8847 2003-05-01  DJ Delorie  <dj@redhat.com>
8848
8849         * reload.c (find_reloads): Also check that all of a multi-reg
8850         value is in the class.
8851
8852 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
8853
8854         * scan.h (lineno): Revert the rename here.
8855
8856 2003-05-01  Stan Shebs  <shebs@apple.com>
8857
8858         * config/darwin.c (darwin_encode_section_info): Call
8859         default_encode_section_info.
8860
8861 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
8862
8863         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
8864         (movsi_internal1): Use new mfjmpr attribute.
8865         (movhi_internal): Same.
8866         (movqi_internal): Same.
8867         (movcc_internal1): Same.
8868         (movdi_internal64): Same.
8869         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8870         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
8871         * config/rs6000/40x.md: Add fpu_405.
8872         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
8873         into power4misc automata.  Remove extraneous parentheses.
8874         * config/rs6000/440.md: New file.
8875         * config/rs6000/rs6000.c (processor_target_table): Add 440,
8876         440fp.  Rename 405f to 405fp.
8877         (function_arg_padding): Correct formatting.
8878         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
8879
8880 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
8881
8882         * input.h (lineno): Rename to ...
8883         (input_line): ... here.
8884         * tree.h (lineno): Rename to ...
8885         (input_line): ... here.
8886         * scan.h (lineno): Rename to ...
8887         (input_line): ... here.
8888         * toplev.c (lineno): Rename to ...
8889         (input_line): ... here.
8890         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
8891         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
8892         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
8893         store_parm_decls, c_expand_body_1): Likewise.
8894         * c-errors.c (pedwarn_c99): Likewise.
8895         * c-format.c (status_warning): Likewise.
8896         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
8897         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
8898         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
8899         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
8900         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
8901         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
8902         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
8903         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
8904         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
8905         * coverage.c (create_coverage): Likewise.
8906         * diagnostic.c (pedwarn, sorry, error, fatal_error,
8907         internal_error, warning, diagnostic_report_current_module,
8908         inform): Likewise.
8909         * expr.c (expand_expr): Likewise.
8910         * integrate.c (expand_inline_function,
8911         output_inline_function): Likewise.
8912         * rtl-error.c (file_and_line_for_asm): Likewise.
8913         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
8914         walk_tree): Likewise.
8915         * tree.c (make_node): Likewise.
8916         * ada, cp, f, java, objc, treelang: Likewise.
8917         * objc/objc-act.c (objc_init): Rename lineno to input_line.
8918         (build_module_descriptor, build_selector_translation_table,
8919         build_protocol_template, build_method_prototype_list_template,
8920         build_category_template, build_selector_table,
8921         build_class_template, build_super_template, build_ivar_template,
8922         build_ivar_list_template, build_method_list_template,
8923         build_method_template, add_instance_variable): Likewise.
8924
8925         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
8926         name from input_filename.
8927
8928 2003-04-30  Eric Christopher  <echristo@redhat.com>
8929             Richard Sandiford <rsandifo@redhat.com>
8930
8931         * configure: Regenerate from patches below.
8932         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
8933         for all symbolic operands.
8934         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
8935         to function.
8936         * config/mips/linux.h: Fix typo.
8937         * Merge from mips-3_4-rewrite branch:
8938
8939         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
8940
8941                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
8942                 handling local labels when TARGET_ABICALLS.
8943
8944         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
8945
8946                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
8947                 integer argument.
8948                 (mips_expand_call): Likewise.
8949                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
8950                 (FIXED_REGISTERS): Clear $31 entry.
8951                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
8952                 (EPILOGUE_USES): Define.
8953                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
8954                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
8955                 (override_options): Add a 'j' register class.
8956                 (mips_expand_call): Handle sibcalls
8957                 (mips_expand_epilogue): Handle epilogues for sibcalls.
8958                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
8959                 (sibcall_epilogue): New pattern.
8960                 (call, call_value): Adjust calls to mips_expand_call.
8961                 (sibcall, sibcall_value): New expanders.
8962                 (sibcall_internal, sibcall_value_internal): New patterns.
8963                 (sibcall_value_multiple_internal): New pattern.
8964
8965         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
8966
8967                 * config/mips/mips.md (extended_mips16): New attribute.
8968                 (define_attr length): Default to 8 if extended_mips16 == yes.
8969                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
8970                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
8971                 (call_internal): Set extended_mips16 to yes for direct jumps.
8972                 Remove redundant mode attribute.
8973                 (call_value_internal, call_value_multiple_internal): Likewise.
8974                 (call_split): Remove redundant mode attribute.
8975                 (call_value_split, call_value_multiple_split): Likewise.
8976
8977                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
8978                 of unaligned offsets.
8979
8980                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
8981                 of SYMBOL_GENERAL.
8982
8983         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
8984
8985                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
8986                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
8987                 for mips16 code.
8988
8989         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
8990
8991                 * config/mips/mips.h (ADDRESS_COST): Define.
8992
8993         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
8994
8995                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
8996                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
8997                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
8998
8999         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
9000
9001                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
9002                 of a two-instruction sequence.  Add register->memory alternative.
9003                 (truncdihi2, truncdiqi2): Likewise.
9004                 Rework shift/truncate instructions so that they only handle right
9005                 shifts of 32 (or more, in the case of arithmetic shifts).
9006                 Add patterns for truncate/sign-extend.
9007
9008         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9009
9010                 * configure.in (mips*-*-*): Check for explicit relocation support.
9011                 * configure: Regenerate.
9012
9013         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9014
9015                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
9016                 and -mno-explicit-relocs.
9017                 (MASK_EXPLICIT_RELOCS): Define.
9018                 (TARGET_EXPLICIT_RELOCS): Use it.
9019                 (mips_split_addresses): Remove declaration.
9020                 * config/mips/mips.c (override_options): Update comment for
9021                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
9022
9023         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9024
9025                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
9026                 a CONST as identity.  Check the return value of gen_lowpart_common.
9027
9028         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9029
9030                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
9031                 references for TARGET_EXPLICIT_RELOCS.
9032                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
9033                 !TARGET_MIPS16.
9034
9035         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9036
9037                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
9038                 (addsi3): Remove redundant constraints.
9039                 (addsi3_internal): Use separate register & constant alternatives.
9040                 Use a 'Q' constraint and "addiu" insn for the latter.
9041                 (adddi3_internal_3, addsi3_internal_2): Likewise.
9042
9043         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
9044
9045                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
9046                 (mips_expand_unaligned_store): Declare.
9047                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
9048                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
9049                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
9050                 (UNSPEC_ULD, UNSPEC_USD): Remove.
9051                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
9052                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
9053                 (extv, extzv): Use mips_expand_unaligned_load.
9054                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
9055                 predicate for operand 3.
9056                 (movsi_ulw, movsi_usw): Replace with...
9057                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
9058                 (movdi_uld, movdi_usd): Likewise replace with...
9059                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
9060
9061         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
9062
9063                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
9064                 * config/mips/mips.h (LEA_REGS): New register class.
9065                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
9066                 (GR_REG_CLASS_P): Include LEA_REGS.
9067                 (DANGEROUS_FOR_LA25_P): New macro.
9068                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
9069                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
9070                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
9071                 entries to LEA_REGS.
9072                 (mips_global_pic_constant_p): New function.
9073                 (override_options): Add 'e' register constraint.
9074                 (mips_secondary_reload_class): Return LEA_REGS when reloading
9075                 a dangerous constant into a class containing $25.
9076                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
9077                 (movsi_internal): Likewise.
9078
9079         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
9080
9081                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
9082                 * config/mips/mips.md (call_split): New insn.
9083                 (call_value_split, call_value_multiple_split): New insns.
9084                 (call_internal): Turn into a define_insn_and_split.  Split the
9085                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
9086                 (call_value_internal, call_value_multiple_internal): Likewise.
9087
9088         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
9089
9090                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
9091                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
9092                 (mips_encode_section_info): Don't take symbol visibility into
9093                 account if TARGET_ABICALLS.  Add more commentary.
9094                 * config/mips/mips.md: Add commentary above reloc constants.
9095
9096         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
9097
9098                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
9099                 from mips_legitimize_move.  Legitimize constant pool references.
9100                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
9101                 a REG_EQUAL note to the last instruction.
9102
9103         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
9104
9105                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
9106                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
9107                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
9108                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
9109                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
9110                 (UNSPEC_RELOC_GPREL16): Rename to...
9111                 (RELOC_GPREL16): ...this.
9112                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
9113                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
9114                 (macro_calls): New attribute.
9115                 (length): Use it to set the default length of calls.  Don't allow
9116                 calls to have delay slots if macro_calls is "yes".
9117                 (luisi, luidi): New patterns.
9118                 (lowsi, lowdi): Use '%R' to print the relocation.
9119                 (lowdi_extend): Remove.
9120                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
9121                 (call_internal): Merge alternatives.  Always use "jal".
9122                 (call_value_internal, call_value_multiple_internal): Likewise.
9123                 (reloc_gprel16): Remove.
9124                 * config/mips/mips.c (mips_got_alias_set): New variable.
9125                 (mips_classify_constant): Handle the new relocation constants.
9126                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
9127                 (mips_symbolic_address_p): Return false if generating explicit relocs.
9128                 Otherwise allow local PIC symbols to have an offset.
9129                 (mips_splittable_symbol_p): New function.
9130                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
9131                 (mips_const_insns): Always accept HIGH.
9132                 (call_insn_operand): Don't accept global symbols if using explicit
9133                 relocs.
9134                 (move_operand): Don't accept HIGH when generating PIC.
9135                 (mips_reloc, mips_lui_reloc): New functions.
9136                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
9137                 be a valid right-hand-side for a SET pattern.
9138                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
9139                 (mips_emit_high): New function.
9140                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
9141                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
9142                 address should be used.  Use mips_emit_high to generate the
9143                 high part of such an address.  Adjust the global symbol + offset
9144                 case to match the change to mips_force_temprorary.
9145                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
9146                 If generating explicit-reloc PIC, load the address of global
9147                 symbols from the GOT.  Use mips_emit_high to emit the high part
9148                 of an address.
9149                 (mips_simplify_dwarf_addr): New function.
9150                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
9151                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
9152                 (mips_expand_call): Load the addresses of global functions using
9153                 %call* relocs if generating explicit-reloc PIC.  Don't generate
9154                 an exception_receiver pattern.
9155                 (override_options): Initialize mips_got_alias_set.
9156                 (print_relocation): Remove in favor of...
9157                 (mips_reloc_string): ...this new function.
9158                 (print_operand): Handle '%R'.  Use mips_reloc_string.
9159                 (print_operand_address): Use print_operand to print the symbolic
9160                 part of a LO_SUM address.
9161                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
9162                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
9163                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
9164                 for local symbols.
9165
9166         2003-02-02  Eric Christopher  <echristo@redhat.com>
9167
9168                 * config/mips/mips.c (mips_sign_extend): Remove.
9169                 * config/mips/mips-protos.h: Ditto.
9170                 * config/mips/mips.md (movdi_internal2_extend): Remove.
9171                 (extendsidi2): Fix mode of convert_memory_address.
9172
9173         2003-01-24  Eric Christopher  <echristo@redhat.com>
9174
9175                 * config/mips/mips.md: Rewrite zero_extend* and extend*
9176                 patterns. Use explicit instructions and split after reload
9177                 for register extensions.
9178                 (ashlsi3_internal1_extend): New combiner pattern for
9179                 shift and extend combinations.
9180                 * config/mips/mips.h: Change Pmode back to ptr_mode
9181                 for performance enhancement.
9182                 * combine.c (expand_compound_operation): Make sure
9183                 that zero_extend operation is profitable.
9184
9185         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
9186
9187                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
9188                 addresses depend on ptr_mode rather than Pmode.
9189                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
9190                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
9191                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
9192                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
9193                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
9194                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
9195                 (tablejump_internal1): Remove condition.
9196                 (tablejump_internal2): Change condition to TARGET_64BIT.
9197                 (cpaddsi): Rename to...
9198                 (cpadd): ...this.
9199                 (cpadddi): Remove.
9200
9201         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
9202
9203                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
9204                 mips_address_cost, mips_check_split, double_memory_operand,
9205                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
9206                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
9207                 (mips_legitimate_address_p): Return bool.
9208                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
9209                 mips_legitimize_address, mips_legitimize_move,
9210                 mips_expand_call): Declare.
9211                 (mips_return_addr): Move outside #ifdef RTX_CODE.
9212
9213                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
9214                 (PIC_FN_ADDR_REG): New reg_class.
9215                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
9216                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
9217                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
9218                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
9219                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
9220                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
9221                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
9222                 (LEGITIMATE_PIC_OPERAND): Undefine.
9223                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
9224                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
9225                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
9226                 (FUNCTION_MODE): Change to SImode.
9227                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
9228                 most constants.  Treat const_artih_operands specially if they
9229                 occur in a PLUS or MINUS.
9230                 (CONSTANT_POOL_COST): New macro.
9231                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
9232                 Add LO_SUM handling.
9233                 (ADDRESS_COST): Undefine.
9234                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
9235                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
9236                 to call_insn_operand and remove CONST_INT.
9237
9238                 * config/mips/mips.c: Include integrate.h.
9239                 (SINGLE_WORD_MODE_P): New macro.
9240                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
9241                 (mips_constant_info, mips_address_info): New structs.
9242                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
9243                 (mips_classify_constant, mips_classify_symbol,
9244                 mips_valid_base_register_p, mips_symbolic_address_p,
9245                 mips_classify_address, mips_symbol_insns,
9246                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
9247                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
9248                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
9249                 mips_print_relocation): New functions.
9250                 (const_arith_operand): New operand predicate.
9251                 (arith_operand): Use it.
9252                 (mips_const_double_ok, mips16_simple_memory_operand,
9253                 simple_memory_operand, double_memory_operand, mips_check_split,
9254                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
9255                 mips16_gp_offset_p, mips16_output_gp_offset,
9256                 mips16_constant_after_function_p, mips16_constant): Remove.
9257                 (call_insn_operand): Be more fussy about symbolic constants.
9258                 Use register_operand.
9259                 (move_operand): Use mips_symbolic_address_p to check symbolic
9260                 operands and general_operand to check the rest.
9261                 (symbolic_operand): Use mips_classify_constant.
9262                 (mips_legitimate_address_p): Use mips_classify_address.
9263                 (mips_move_1word): Combine handling of symbolic addresses.
9264                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
9265                 (move_move_2words): Likewise.  Assume addresses are offsettable
9266                 if they need to refer to more than one word.  Add HIGH handling.
9267                 (mips_restore_gp): Use ptr_mode for the GP save slot.
9268                 (mips_expand_call): New function, combining the old mips.md
9269                 call and call_internal define_expands.  If the address isn't
9270                 a call_insn_operand, force it into a register.  For SVR4 PIC,
9271                 emit an exception_receiver instruction after the call.
9272                 (override_options): Only override flag_pic for TARGET_ABICALLS
9273                 if it is currently zero.  Allow mips_split_addresses when
9274                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
9275                 Add new register class letter, 'c'.
9276                 (print_operand): Use mips_classify_constant for constant operands.
9277                 (print_operand_address): Use mips_classify_address.
9278                 (mips_output_function_prologue): Don't use .cprestore.
9279                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
9280                 via the frame pointer if current_function_calls_eh_return.
9281                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
9282                 to mark whether a symbol is local or global.
9283                 (build_mips16_call_stub): Expect the address of the function rather
9284                 than a MEM reference to it.  Update call generation sequences.
9285                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
9286                 small-data adjustments.
9287
9288                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
9289                 length for loads and stores.
9290                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
9291                 (define_attr type): Add const and prefetch.
9292                 (define_attr length): Use mips_const_insns for const instructions.
9293                 Use mips_fetch_insns for load and store instructions.
9294                 (define_attr single_insn): New.
9295                 (define_attr can_delay): Use it.
9296                 (define_attr abicalls): Remove.
9297                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
9298                 (addsi3_internal_2): Add 'Q' constraint.
9299                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
9300                 (high): Remove.
9301                 (lowsi): Renamed from low.
9302                 (lowdi): New pattern.
9303                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
9304                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
9305                 (loadgp): Change operand 0 to an immediate_operand.
9306                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
9307                 beforehand.
9308                 (cpaddsi, cpadddi): New patterns.
9309                 (tablejump_internal3, tablejump_internal4): Remove define_expands
9310                 and associated define_splits.
9311                 (call, call_value): Use mips_expand_call.
9312                 (call_internal): New, replacing all existing call_internal* insns.
9313                 (call_value_internal): Likewise call_value_internal*.
9314                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
9315                 (untyped_call): Remove if (operands[0]) magic.
9316                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
9317                 (prefetch_di_address, prefetch_di): Likewise.
9318                 (leasi, leadi): Remove.
9319                 (reloc_gprel16): New.
9320
9321                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
9322                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
9323                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
9324
9325         2003-01-08  Eric Christopher  <echristo@redhat.com>
9326
9327                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
9328                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
9329                 configure check for libgloss.
9330                 * config/mips/elf64.h: Ditto.
9331                 * config/mips/mips.c: Remove ABI_MEABI.
9332                 * config/mips/mips.h: Ditto.
9333
9334         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
9335
9336                 Fix merge fallout.
9337                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
9338                 (muldi3_internal): Remove outdated comment.
9339                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
9340                 (*smsac_di, *umsac_di): Likewise.  Reformat.
9341                 (umulsi3_highpart): Minor formatting tweaks.
9342                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
9343                 redundant scratch operand.  Minor formatting tweak.
9344                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
9345                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
9346                 (smulsi3_highpart): As for the unsigned version.
9347                 (smulsi3_highpart_internal): Likewise.
9348                 (smulsi3_highpart_mulhi_internal): Likewise.
9349                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
9350                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
9351                 (*smul_acc_di): Remove duplicated pattern.
9352                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
9353                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
9354                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
9355
9356         2002-10-22  Eric Christopher  <echristo@redhat.com>
9357
9358                 * config/mips/mips-protos.h (mips_return_addr): New.
9359                 * config/mips/mips.c (mips_return_addr): New.
9360                 (movdi_operand): Remove.
9361                 (se_register_operand): Ditto.
9362                 (se_reg_or_0_operand): Ditto.
9363                 (se_uns_arith_operand): Ditto.
9364                 (se_arith_operand): Ditto.
9365                 (se_nonmemory_operand): Ditto.
9366                 (extend_operator): Ditto.
9367                 (highpart_shift_operator): Ditto.
9368                 (mips_initial_elimination_offset): Remove return address pointer
9369                 elimination.
9370                 (mips_reg_names): Remove $ra.
9371                 (mips_regno_to_class): Ditto.
9372                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
9373                 and TARGET_64BIT.
9374                 (POINTER_BOUNDARY): Remove.
9375                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
9376                 (PROMOTE_MODE): Promote to Pmode.
9377                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
9378                 (Pmode): Define to TARGET_64BIT.
9379                 (FUNCTION_MODE): Define as Pmode.
9380                 (mips_args): Remove deleted functions.
9381                 (SIZE_TYPE): Depend on POINTER_SIZE.
9382                 (PTRDIFF_TYPE): Ditto.
9383                 (FIXED_REGISTERS): Fix extra registers.
9384                 (CALL_USED_REGISTERS): Ditto.
9385                 (CALL_REALLY_USED_REGISTERS): Ditto.
9386                 (RAP_REG_NUM): Remove.
9387                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
9388                 (RETURN_ADDR_RTX): Define to mips_return_addr.
9389                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9390                 (CAN_ELIMINATE): Ditto.
9391                 * config/mips/mips.md: For DImode patterns, take into account
9392                 deletions above. Split mulsidi patterns into sign_extend and
9393                 zero_extend.
9394
9395         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
9396                     Michael Meissner  <meissner@redhat.com>
9397
9398                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
9399                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
9400                 mop up unnecessarly moves through LO.
9401                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
9402                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
9403                 change mtlo/macc sequences into mul/add sequences when a three-
9404                 address mul is available.
9405                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
9406                 (*mul_sub_si): Fix contraint for operand 5.
9407                 (*muls): Use in 32-bit code as well.
9408                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
9409                 if the destination is LO.  Remove duplicate define_split.
9410                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
9411                 (*msac_di): Likewise.  Fix formatting.
9412                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
9413                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
9414                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
9415                 (*xmulsi3_neg_highpart_mulhi): Likewise.
9416                 (*mul_acc_64bit_di): Remove.
9417                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
9418
9419         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
9420
9421                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
9422                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
9423                 (MULTILIB_DIRNAMES): Remove long32.
9424                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
9425                 (MULTILIB_REDUNDANT_DIRS): Remove.
9426
9427         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
9428
9429                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
9430                 * gcc.c (driver_self_specs): New variable.
9431                 (do_self_spec): New function.
9432                 (main): Use it to process driver_self_specs.
9433
9434         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
9435
9436                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
9437                 Remove DImode define_split for !TARGET_64BIT.
9438                 (anddi3): Remove !TARGET_64BIT support from here as well.
9439                 Change operand 2's predicate to se_uns_arith_operand.
9440                 Add constant alternatives to define_insn.
9441                 (iordi3, xordi3, *nordi3): Likewise.
9442                 (anddi3_internal1, xordi3_immed): Remove.
9443
9444         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9445
9446                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
9447                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
9448                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
9449                 * config/mips/mips.md: Apply same renaming here.
9450
9451         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9452
9453                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
9454                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
9455                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
9456                 * config/mips/mips.md (define_attr cpu): Remove r4320.
9457                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
9458
9459         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9460
9461                 * config/mips/mips.c (mips16_strings): New variable.
9462                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
9463                 symbol in mips16_strings.  Free the list.
9464                 (mips_encode_section_info): Keep track of local strings.
9465
9466         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9467
9468                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
9469                 (sordered_df, sordered_sf): Remove.
9470                 * config/mips/mips.c (get_float_compare_codes): New fn.
9471                 (gen_int_relational, gen_conditional_move): Use it.
9472
9473         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
9474
9475                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
9476                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
9477                 * config/mips/mips.c (fcc_register_operand): New function.
9478                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
9479                 (override_options): Allow TFmode values in float registers
9480                 if ISA_HAS_8CC.
9481                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
9482                 to fcc_register_operand.  Remove misleading source constraint.
9483                 Use mips_emit_fcc_reload.
9484                 (reload_outcc): Duplicate reload_incc.
9485
9486
9487 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
9488
9489         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
9490
9491 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
9492
9493         * tree-inline.c (inlinable_function_p): Back out last change, it's
9494         unnecessary.
9495
9496 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
9497
9498         * ggc-page.c (TREE_EXP_SIZE): Define.
9499         (extra_order_size_table): New entry for expr trees with
9500         two operands.
9501
9502 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
9503
9504         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
9505         (c_expand_start_cond): Adjust.
9506         (c_expand_end_cond): Don't use warning_with_file_and_file.
9507         (shadow_warning): Likewise.
9508
9509 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
9510
9511         * tree.h (DECL_POINTER_DEPTH): Remove.
9512         (struct tree_decl): Remove pointer_depth.
9513
9514 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
9515
9516         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
9517         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
9518         (rs6000_xcoff_encode_section_info): Remove.
9519         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
9520         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
9521         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
9522         Use SYMBOL_REF_FLAGS.
9523         (rs6000_elf_encode_section_info): Call default_encode_section_info for
9524         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
9525         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9526         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
9527         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
9528         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
9529
9530 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
9531
9532         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
9533
9534 2003-04-30  Andreas Schwab  <schwab@suse.de>
9535
9536         * doc/extend.texi (Other Builtins): Enclose multiple word data
9537         type in braces for @deftypefn.
9538
9539 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9540
9541         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
9542
9543         * doc/install.texi (--enable-threads): Document "gnat" option.
9544
9545 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
9546
9547         * diagnostic.h (output_formatted_scalar): Tweak.
9548         * diagnostic.c (output_long_decimal): Likewise.
9549         (output_unsigned_decimal): Likewise.
9550         (output_long_unsigned_decimal): Likewise.
9551         (output_octal): Likewise.
9552         (output_long_octal): Likewise.
9553         (output_hexadecimal): Likewise.
9554         (output_long_hexadecimal): Likewise.
9555         (output_pointer): New function.
9556         (output_format): Use it.  Recognize "%p" format specifier.
9557
9558 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9559
9560         * function.c (purge_addressof_1): Postpone insn in fewer cases.
9561
9562 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
9563
9564         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
9565         call abort() after running out of stack space.
9566
9567         * c-typeck.c (function_types_compatible_p): Ignore incompatible
9568         'volatile' qualifiers on a function's return type in GNU mode.
9569
9570 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
9571
9572         * expr.c (emit_group_load): Dump parallels of simd types to
9573         memory.
9574
9575 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9576
9577         * genautomata.c (add_vect): Check undefined value for range type
9578         too.
9579
9580 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
9581
9582         * configure.in:  More general test for cmp --ignore-initial.
9583         * configure:  Regenerate.
9584
9585 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9586
9587         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
9588         (layout_decl, place_field): Likewise.
9589         Also make minor type and whitespace changes.
9590
9591         * tree.c (save_expr): Don't fold a COMPONENT_REF.
9592
9593 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
9594
9595         * calls.c (expand_call): When modes of target and valreg match, force
9596         sibcall failure when target is a MEM.
9597
9598 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
9599
9600         * tree-inline.c (inlinable_function_p): Don't support inlining
9601         functions using varargs.
9602
9603         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
9604
9605         * dwarf2out.c (output_call_frame_info): No need to output EH
9606         unwind information if all_throwers_are_sibcalls.
9607
9608         * c-semantics.c (expand_unreachable_stmt): Return a tree.
9609         (expand_stmt): Update for change to expand_unreachable_stmt.
9610         (expand_unreachable_if_stmt): Likewise.
9611
9612         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
9613
9614 2003-04-29  Jason Merrill  <jason@redhat.com>
9615
9616         PR middle-end/10336
9617         * jump.c (never_reached_warning): Really stop looking if we reach
9618         the beginning of the function.
9619
9620 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
9621
9622         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
9623         Remove redundant macros.
9624         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
9625         (LOCAL_LABEL_PREFIX): Define unconditionally.
9626         (NO_DOT_IN_LABEL): Clarify comment.
9627         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
9628         definition to "long int".
9629
9630 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
9631
9632         bootstrap/10452
9633         * gengtype-yacc.y: Improve portability.
9634
9635 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
9636
9637         * config.gcc: Install obsolete target list for GCC 3.3.
9638         * doc/install.texi: Mention in specific-target instructions
9639         that certain configurations are deprecated.
9640
9641 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
9642
9643         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
9644
9645 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
9646
9647         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
9648         * gcc.c (display_help): Likewise.
9649         * toplev.c (f_options): Likewise.
9650         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
9651         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
9652         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
9653         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
9654         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
9655
9656 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
9657
9658         * varasm.c (default_assemble_visibility): Use assemble_name.
9659
9660 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
9661
9662         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
9663         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
9664         (SIZE_TYPE): New macro.
9665         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
9666         (SET_ASM_OP): New macro.
9667         (HANDLE_SYSV_PRAGMA): New macro.
9668         (ASM_WEAKEN_LABEL): New macro.
9669
9670 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
9671
9672         PR c++/10180
9673         * tree-inline.c (expand_call_inline): Call push_srcloc when
9674         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
9675
9676 2003-04-28  Mike Stump  <mrs@apple.com>
9677
9678         * gdbinit.in: Update to reflect new identifier structure.
9679
9680 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
9681
9682         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
9683         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
9684         struct tree_complex, struct tree_vector): Remove RTL field.
9685         (CONSTRUCTOR_ELTS): Use elt 0.
9686         * tree.def (CONSTRUCTOR): Delete first of its two operands.
9687         * varasm.c (output_constant_def): Remove early exit if
9688         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
9689         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
9690         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
9691         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
9692
9693 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
9694
9695         * c-decl.c (finish_decl): When prototype with asmspec is found
9696         for built-in, adjust built_in_decls as well as expr.c decls.
9697         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
9698         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
9699         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
9700
9701 2003-04-28  Richard Henderson  <rth@redhat.com>
9702
9703         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
9704         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
9705         integral constant mult operand.
9706         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
9707         (const_smulsi3_highpart_v8plus): Likewise.
9708         (const_smulsi3_highpart): Likewise.
9709         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
9710         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
9711         (const_umulsi3_highpart_v8plus): Likewise.
9712         (const_umulsi3_highpart): Likewise.
9713
9714 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
9715
9716         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
9717         Define as 1.
9718
9719 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
9720
9721         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
9722
9723 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
9724
9725         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
9726         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
9727         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
9728         functions.
9729         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
9730
9731 2003-04-28  Nick Clifton  <nickc@redhat.com>
9732
9733         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
9734
9735 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
9736
9737         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
9738         output_constant_def, use its result instead of TREE_CST_RTL (exp).
9739         Can assume it has the form (mem (symbol_ref ".LCxxx")).
9740         (expand_expr <COMPONENT_REF>): Can always just extract the
9741         relevant field of a CONSTRUCTOR.
9742         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
9743         ARRAY_RANGE_REF>): Make control flow explicit.
9744         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
9745         an INTEGER_CST.
9746
9747 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
9748
9749         * reload1.c (reg_set_luid): Fix a comment typo.
9750
9751 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
9752
9753         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
9754         struct deferred_string, const_str_htab): Kill.
9755         (n_deferred_strings): New static variable.
9756         (build_constant_desc): Set SYMBOL_REF_DECL of the new
9757         symbol_ref to point to the constant.
9758         (output_constant_def): When a deferred string is forced out,
9759         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
9760         (mark_constant): Likewise.
9761         (maybe_output_constant_def_contents): When deferring a string
9762         constant, just set STRING_POOL_ADDRESS_P and increment
9763         n_deferred_strings.
9764         (mark_constant_pool): Check n_deferred_strings, not the size
9765         of const_str_htab.
9766         (init_varasm_once): No need to create const_str_htab.
9767
9768         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
9769         SYMBOL_REF_DECL points to a constant.
9770
9771 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
9772
9773         * varasm.c (output_constant_def): Split out two new static
9774         functions, build_constant_desc and maybe_output_constant_def_contents.
9775         Restructure for comprehensibility.  Don't call
9776         output_addressed_constants.  Treat defstr being non-NULL for
9777         STRING_POOL_ADDRESS_P constants as an invariant.
9778         (struct deferred_string): Remove labelno field.
9779         (output_constant_def_contents): Kill labelno argument. Call
9780         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
9781         asm_out.internal_label.
9782         (mark_constant): Update call to output_constant_def_contents.
9783         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
9784         constants as an invariant.
9785
9786 2003-04-26  Richard Henderson  <rth@redhat.com>
9787
9788         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
9789         (ix86_expand_call, ix86_rtx_consts): Likewise.
9790
9791 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9792
9793         * doc/md.texi (cmpstr): Document additional restrictions.
9794
9795 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
9796
9797         * flags.h (time_report): Remove.
9798         * timevar.c (timevar_enable): New.
9799         (TIMEVAR_ENABLE): Remove, use timevar_enable.
9800         (timevar_init): Rename from init_timevar.
9801         * timevar.h (timevar_init): Rename from init_timevar.
9802         * toplev.c (time_report): Make static.
9803         (do_compile): Conditionally call init_timevar first.
9804         (preprocess_options): Move some code to do_compile.
9805
9806 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
9807
9808         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
9809
9810 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
9811
9812         * _cpp_lex_direct: Remove pointless code.
9813
9814 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9815
9816         * doc/extend.texi (Function Attributes): Document "near" and "far"
9817         for 68HC11 and 68HC12.
9818
9819 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9820
9821         * expr.c (store_field): When making temporary for store, don't
9822         make it TYPE_QUAL_CONST.
9823
9824 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
9825
9826         * toplev.c (read_integral_parameter):  Use "argument" in error
9827         message to distinguish it from actual invalid options.
9828
9829 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
9830
9831         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
9832         addition of __PIC__ and __pic__ macros.
9833         * config/xtensa/xtensa.h: Clean up indentation.
9834
9835 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
9836
9837         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
9838         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
9839         (SUBTARGET_CPP_SPEC): Define.
9840         (LIB_SPEC): Delete.
9841         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
9842         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
9843         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
9844         Define.
9845         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9846         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
9847
9848 2003-04-25  H.J. Lu <hjl@gnu.org>
9849
9850         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
9851         for return mode.
9852         (ia64_expand_builtin): Set rmode to SImode for
9853         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
9854         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
9855         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
9856         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
9857
9858 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
9859
9860         * configure.in (make_compare_target):  Test for GNU cmp and set this
9861         variable appropriately.
9862         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
9863         compare4-lean): Rename actual targets to slowcompare*.  New compare*
9864         targets depend on names based on make_compare_target.
9865         * configure:  Regenerated.
9866
9867 2003-04-25  Richard Henderson  <rth@redhat.com>
9868
9869         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
9870         to clobber ar.pfs and ar.unat.
9871         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
9872         fix test for spilling ar.pfs to the stack.
9873
9874 2003-04-25  Richard Henderson  <rth@redhat.com>
9875
9876         PR opt/10315
9877         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
9878         checks during reload; use validize_mem instead of adjust_address.
9879
9880 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
9881
9882         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
9883         return values from recog_memoized().
9884
9885 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9886
9887         PR opt/8705
9888         * gcse.c (try_replace_reg): On a successful substitution of a constant
9889         into a single set, try to simplify the source of the set.
9890         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
9891         constant source.
9892
9893 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
9894
9895         * cpplex.c (cpp_token_len): Tighten up.
9896         (cpp_token_as_text): Need extra byte now.
9897         * cpplib.c (glue_header_name): Need extra 2 bytes.
9898         * cppmacro.c (cpp_macro_definition): Need extra byte.
9899
9900 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
9901
9902         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
9903         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
9904         where they might be not present. Use their _sp64 equivalent
9905         instead.
9906
9907 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
9908
9909         * i386.md (cvtsi2sdq): Fix typo in previous patch.
9910
9911 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
9912
9913         * configure.in: Check whether mbstowcs works.
9914         * configure, config.in: Regenerate.
9915         * intl.c: Use HAVE_WORKING_MBSTOWCS.
9916
9917 2003-04-24  H.J. Lu <hjl@gnu.org>
9918
9919         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
9920         for __sync_bool_compare_and_swap_di for int return type.
9921
9922         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
9923         Change return type to int.
9924         (__sync_bool_compare_and_swap): Likewise.
9925
9926 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
9927
9928         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
9929         looking for fallthru edge.
9930
9931         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
9932         Fix.
9933         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
9934         athlon-fvector): New.
9935         (athlon_*): Revisit to match new optimization guide.
9936         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
9937         * i386.md (cvt??2?? patterns): Fix modes.
9938         (fistp patterns): Set modes.
9939
9940         Accidentaly commited with my earlier reload patch:
9941         PR c/10308
9942         * reload.c (find_reloads_address_1): Reload plus at the place of
9943         index register.
9944
9945 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
9946
9947         New GCOV_TAG_FUNCTION layout
9948         * coverage.c (struct function_list): Replace name with ident.
9949         (struct counts_entry): Likewise.
9950         (fn_ident): New.
9951         (htab_counts_entry_hash, htab_counts_entry_eq,
9952         htab_counts_entry_del): Adjust.
9953         (reads_count_file, get_coverage_counts,
9954         coverage_begin_output, coverage_end_function): Adjust.
9955         (build_fn_info_type, build_fn_info_value): Likewise.
9956         * gcov-dump.c (tag_function): Adjust.
9957         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9958         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9959         * gcov.c (struct function_info): Add ident.
9960         (read_graph_file, read_count_file): Adjust.
9961         * libgcov.c (gcov_exit): Adjust.
9962
9963 2003-04-23  Richard Henderson  <rth@redhat.com>
9964
9965         PR opt/8300
9966         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
9967         after initialize_uninitialized_subregs; update reg info assuming
9968         new pseudos were created.
9969
9970 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
9971
9972         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
9973         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
9974         (lex_string): Take cpp_string with full spelling.
9975         (cb_ident): Update.
9976         (c_lex): Update diagnostics.
9977         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
9978         (create_literal): New.
9979         (lex_string): Unterminated literals have type CPP_OTHER.
9980         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
9981         for CPP_OTHER.
9982         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
9983         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
9984         * cpplib.c (parse_include, do_line, do_linemarker,
9985         destringize_and_run): Update for token storing full spelling.
9986         * cpplib.h: Update token spelling types.
9987         * cppmacro.c (stringify_arg, check_trad_stringification):
9988         Update for token storing full spelling.
9989
9990 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
9991
9992         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
9993
9994 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
9995
9996         * arm.h (TARGET_OPTIONS): Add value field.
9997
9998 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
9999
10000         * doc/extend.texi: Remove duplicate 2003 copyright date.
10001
10002 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
10003
10004         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
10005         (libgcov.a): Depends on LIBGCC_DEPS.
10006         * basic-block.h (profile_info): Moved here from coverage.h. Made
10007         a pointer.
10008         * coverage.c (struct function_list): Fixed array of counter types.
10009         (struct counts_entry): Keyed by counter type, contains summary.
10010         (profile_info): Moved to profile.c.
10011         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
10012         vars.
10013         (profiler_label): Remove.
10014         (ctr_labels): New.
10015         (set_purpose, label_for_tag, build_counter_section_fields,
10016         build_counter_section_value, build_counter_section_data_fields,
10017         build_counter_section_data_values, build_function_info_fields,
10018         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
10019         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
10020         build_ctr_info_value, build_gcov_info): New.
10021         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
10022         (reads_counts_file): Adjust.
10023         (get_coverage_counts): Takes counter number. Add summary
10024         parameter. Adjust.
10025         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
10026         create counter array labels.
10027         (coverage_end_function): Adjust.
10028         (create_coverage): Adjust.
10029         (find_counters_section): Remove.
10030         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
10031         (struct section_info, struct profile_info): Remove.
10032         (profile_info): Moved to basic-block.h.
10033         (coverage_counter_ref): Takes a counter number.
10034         (get_coverage_counts): Takes a counter number. Added summary
10035         parameter.
10036         (find_counters_section): Remove.
10037         * gcov-dump.c (tag_arc_counts): Rename to ...
10038         (tag_counters): ... here. Adjust.
10039         (tag_table): Move tag_counters to 3rd entry. Remove
10040         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
10041         (dump_file): Check for counter tag values here.
10042         (tag_summary): Adjust.
10043         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
10044         * gcov-io.h (GCOV_LOCKED): New.
10045         (GCOV_TAG_ARC_COUNTS): Rename to ...
10046         (GCOV_TAG_COUNTS_BASE): ... here.
10047         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
10048         Remove.
10049         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
10050         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
10051         GCOV_TAG_IS_COUNTER): New.
10052         (struct gcov_ctr_summary): New.
10053         (struct gcov_summary): Adjust.
10054         (struct gcov_counter_section): Remove.
10055         struct gcov_counter_section_data): Remove.
10056         (struct gcov_function_info): Rename to ...
10057         (struct gcov_fn_info): ... here. Adjust.
10058         (struct gcov_ctr_info): New.
10059         (struct gcov_info): Adjust.
10060         * gcov.c (read_count_file): Adjust.
10061         (output_lines): Adjust.
10062         * libgcov.c (gcov_exit): Adjust.
10063         (__gcov_flush): Adjust.
10064         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
10065         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
10066         probably_never_executed_bb_p, compute_frequency_function): Adjust
10067         profile_info use.
10068         * profile.c (struct counts_entry): Remove.
10069         (profile_info): Define here.
10070         (get_exec_counts): Adjust get_coverage_counts call.
10071         (compute_branch_probablilities): Remove find_counters_section
10072         call.
10073         (gen_edge_profiler): Adjust coverage_counter_ref call.
10074         * tracer.c (tail_duplicate): Adjust profile_info use.
10075
10076 2003-04-23  Roger Sayle  <roger@eyesopen.com>
10077
10078         PR optimization/10339
10079         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
10080         directly instead of unsafely transforming call into a memcmp.
10081         (expand_builtin_strncmp): Likewise.
10082
10083 2003-04-22  Roger Sayle  <roger@eyesopen.com>
10084
10085         * alias.c (mark_constant_function):  Check for constancy and
10086         purity even of void functions.  Update both the function decl
10087         and the cgraph RTL info with the results.
10088
10089 2003-04-22  Roger Sayle  <roger@eyesopen.com>
10090
10091         * real.c (do_add): Change to return a bool indicating that the
10092         result of the operation may be inexact due to loss of precision.
10093         (do_multiply): Likewise.
10094         (do_divide): Likewise.
10095
10096 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
10097             Loren James Rittle  <ljrittle@acm.org>
10098
10099         * dwarf2out.c (fde_table_allocated): Mark with GTY.
10100         (decl_die_table_allocated): Likewise.
10101         (abbrev_die_table_allocated): Likewise.
10102         (line_info_table_allocated): Likewise.
10103         (separate_line_info_table_allocated): Likewise.
10104         (pubname_table_allocated): Likewise.
10105         (arange_table_allocated): Likewise.
10106         (ranges_table_allocated): Likewise.
10107         (decl_die_table_in_use): Unconditionalize; mark with GTY.
10108         (abbrev_die_table_in_use): Likewise.
10109         (line_info_table_in_use): Likewise.
10110         (separate_line_info_table_in_use): Likewise.
10111         (pubname_table_in_use): Likewise.
10112         (arange_table_in_use): Likewise.
10113         (ranges_table_in_use): Likewise.
10114         (have_location_lists): Likewise.
10115         (emitcount): New GTY-marked static, moved...
10116         (maybe_emit_file): ...from here.
10117         (label_num): New GTY-marked static, moved...
10118         (gen_internal_sym): ...from here.
10119
10120 2003-04-22  Richard Henderson  <rth@redhat.com>
10121
10122         PR 8866
10123         * rtl.h (MEM_NOTRAP_P): New.
10124         (MEM_COPY_ATTRIBUTES): Copy it.
10125         * rtlanal.c (may_trap_p): Check it.
10126         * expr.c (do_tablejump): Set it.
10127         * doc/rtl.texi (Flags): Document it.
10128
10129         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
10130
10131 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
10132
10133         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
10134         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
10135
10136 2003-04-22  Vincent Celier <celier@gnat.com>
10137
10138         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
10139         --enable-threads=gnat.
10140         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
10141         * configure.in: Add gnat to the list of thread packages
10142         * configure: Rebuild.
10143         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
10144
10145 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
10146
10147         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
10148
10149 2003-04-22  Devang Patel  <dpatel@apple.com>
10150
10151         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
10152         parameter count.
10153         (_cpp_copy_replacement_text): Same.
10154
10155 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
10156
10157         * c-lex.c (c_lex): Handle CPP_OTHER differently.
10158         * cppexp.c (_cpp_parse_expr): Similarly.
10159         * cpplex.c (SPELL_CHAR): Remove.
10160         (_cpp_lex_direct): Stray chars are saved as byte strings.
10161         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
10162         handle SPELL_CHAR.
10163         (cpp_avoid_paste): Update handling of CPP_OTHER.
10164         * cpplib.h: Spell CPP_OTHER like a number.
10165         (struct cpp_token): Remove member c.
10166         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
10167
10168 2003-04-22  David Turner <novalis@gnu.org>
10169
10170         * gbl-ctors.h: Add special license exception.
10171         * libgcc2.h: Likewise.
10172         * tsystem.h: Likewise.
10173         * gcov-io.h: Likewise.
10174
10175 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
10176
10177         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
10178         macro defaulting to original BRANCH_COST heuristic.
10179         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
10180
10181         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
10182
10183 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
10184
10185         * config/rs6000/t-spe: Merge in t-fprules into file.
10186
10187         * config.gcc: Add t-spe to powerpc-eabispe.
10188
10189 2003-04-22  Kean Johnston  <jkj@sco.com>
10190
10191         * tlink.c (recompile_files): Add missing '=' to putenv calls
10192
10193 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
10194
10195         * ginclude/stddef.h: Provide C++ safe offsetof.
10196
10197 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
10198
10199         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
10200         for reg notes, if there are no substitutions, just use a SUBREG.
10201
10202 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
10203
10204         * Makefile.in (calls.o): Depend on except.h.
10205         * calls.c: Include except.h.
10206         (emit_call_1): Call note_eh_region_may_contain_throw if
10207         appropriate.
10208         * except.c (eh_region): Add may_contain_throw.
10209         (expand_eh_region_end_cleanup): Do not include handler code when
10210         it cannot be reached.
10211         (note_eh_region_may_contain_throw): New function.
10212         * except.h (note_eh_region_may_contain_throw): New function.
10213
10214 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
10215
10216         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
10217         changes.
10218
10219 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
10220
10221         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
10222         64-bit long doubles.
10223
10224 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
10225
10226         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
10227         a number of conversions required for type consistency and previously
10228         stripped off by STRIP_NOPS.
10229
10230         * calls.c (expand_call): Prevent sibcall optimization for calls to
10231         nested subprograms.
10232
10233         * expmed.c (extract_bit_field): Reverse operands of && condition to
10234         prevent a potential division by zero in the previously first branch.
10235         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
10236
10237 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
10238
10239         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
10240         (subrange_type_die): Likewise.
10241         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
10242         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
10243
10244 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
10245
10246         Break out coverage routines to new file.
10247         * Makefile.in (COVERAGE_H): New variable
10248         (C_OBJS): Add coverage.o
10249         (coverage.o): New target.
10250         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
10251         dependencies.
10252         (GTFILES): Adjust.
10253         (gt-coverage.h): New target.
10254         (gt-profile.h): Remove.
10255         * profile.h: Remove. Move to ...
10256         * coverage.h: ... here. New. #include gcov-io.h.
10257         * gcov-io.h: Move function definitions to ...
10258         * gcov-io.c: ... here. New.
10259         * profile.c: Move coverage routines to coverage.c.
10260         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
10261         end_branch_prob): Adjust.
10262         * coverage.c: New. Coverage routines from profile.c
10263         (coverage_counter_ref, coverage_init, coverage_finish,
10264         coverage_end_function, coverage_begin_output,
10265         coverage_counter_ref, get_coverage_counts): Define.
10266         * gcov-dump.c, gcov.c: #include gcov-io.c.
10267         * libgcov.c: Likewise. Adjust.
10268         * loop-init.c: Don't #include profile.h
10269         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
10270         * rtl.h: Add coverage prototypes.
10271         * toplev.c (compile_file): Init coverage, not branch_prob.
10272         Always call coverage_finish.
10273         (rest_of_compilation): Call coverage_end_function.
10274
10275 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
10276
10277         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
10278
10279 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
10280
10281         * c-ppoutput.c (cb_include): Don't take a cpp_token.
10282         * cppfiles.c: Don't undef strcmp.
10283         (find_include_file): Don't take a cpp_token.  Check for empty
10284         file names.
10285         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
10286         (cpp_push_include): Simplify.
10287         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
10288         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
10289         (parse_include): Similary.  Don't check for zero-length filenames.
10290         (do_include_common, do_pragma_dependency): Update accordingly.
10291         * cpplib.h (struct cpp_callbacks): Change prototype of include.
10292
10293 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10294
10295         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
10296         details of conflict handling.
10297
10298         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
10299         when conversion overflows.
10300
10301         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
10302
10303         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
10304         before clearing.
10305
10306 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
10307
10308         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
10309         have the same form as the old RTL.
10310
10311 2003-04-21  Andreas Jaeger  <aj@suse.de>
10312
10313         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
10314
10315 2003-04-20  Chris Lattner  <sabre@nondot.org>
10316             Zack Weinberg  <zack@codesourcery.com>
10317
10318         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
10319         genrtl_cleanup_stmt.  Correct comment at head of
10320         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
10321
10322         * stmt.c (struct nesting): Kill n_function_calls.
10323         (expand_start_bindings): Don't set
10324         thisblock->data.block.n_function_calls.
10325         (expand_end_bindings): Compare function_call_count against 0.
10326         (expand_cleanups): Kill DONT_DO argument; all callers passed
10327         NULL_TREE. All callers updated to match.
10328
10329 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
10330
10331         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
10332         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
10333         (output_constant_def): Remove code predicated on
10334         defer_addressed_constants_flag.
10335
10336         * output.h: Remove prototypes of deleted functions.
10337         * c-typeck.c (constructor_subconstants_deferred): Kill.
10338         (struct initializer_stack): Remove 'deferred' field.
10339         (start_init): Remove all references to the above.
10340         (finish_init): Likewise. Also remove never-executed call to
10341         output_deferred_addressed_constants.  Pull assignment to
10342         defstr out of if expression.
10343
10344 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
10345
10346         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
10347         NOTE_NEWLINE): Remove.
10348         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
10349         to handle new form of line note type.
10350
10351 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
10352
10353         * target.h (encode_section_info): Add new argument carrying
10354         the RTL to be modified by the hook.
10355
10356         * varasm.c (make_decl_rtl, output_constant_def): Update calls
10357         to encode_section_info.
10358         (default_encode_section_info): Take and use RTL argument,
10359         don't use TREE_CST_RTL or DECL_RTL.
10360         * output.h: Update prototype of default_encode_section_info.
10361         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
10362         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
10363         Update calls to encode_section_info.
10364
10365         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
10366         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
10367         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
10368         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
10369         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
10370         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
10371         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
10372         except for PE dllimport/dllexport.  Update calls to
10373         default_encode_section_info.
10374
10375         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
10376         Update prototypes.
10377
10378         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
10379
10380 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10381
10382         PR/8705
10383         * pa.md (movccfp): New expander.
10384         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
10385         Reverse fcmp conditions.
10386
10387 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10388
10389         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
10390         of operand 1 correctly.
10391
10392 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
10393
10394         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
10395         * gcov.c (output_lines): Don't be so fussy about going past EOF.
10396
10397 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
10398
10399         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
10400         (cppcharset.o): New target.
10401         * c-lex.c (is_extended_char): Move to cppcharset.c.
10402         (utf8_extend_token): Delete.
10403         * cppcharset.c: New file.
10404         * cpphash.h (_cpp_valid_ucn): New.
10405         * cpplex.c (lex_identifier): Update prototype.
10406         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
10407         escapes.
10408         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
10409         in cppcharset.c.
10410         (lex_number, lex_identifier, cpp_parse_escape): Update.
10411         (_cpp_lex_direct): Update to handle UCNs.
10412         (cpp_avoid_paste): Don't paste to form a UCN.
10413
10414 2003-04-19  Roger Sayle  <roger@eyesopen.com>
10415
10416         * builtins.c (expand_builtin):  Don't expand a pure or const
10417         built-in function if the result will be ignored and none of
10418         its arguments are volatile.
10419
10420 2003-04-19  Kean Johnston  <jkj@sco.com>
10421
10422         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
10423         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
10424         target fragment now: t-sco5; dont compile crti.o.
10425         * config/i386/sco5.h: major overhaul to remove all COFF remnants
10426         and to use elfos.h for most definitions.
10427         (BSS_SECTION_ASM_OP): set correct segment attributes.
10428         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
10429         (DWARF2_UNWIND_INFO): Always set to 1.
10430         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
10431         (MD_STARTFILE_PREFIX_1): Define.
10432         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
10433         (DEFAULT_LINKER): Define if not specified to configure.
10434         (CTORS_SECTION_ASM_OP): Remove COFF crud.
10435         (DTORS_SECTION_ASM_OP): Remove COFF crud.
10436         (WINT_TYPE): Define.
10437         (SDB_DEBUGGING_INFO): Remove.
10438         (EXTRA_SECTIONS): Likewise.
10439         (EXTRA_SECTION_FUNCTIONS): Likewise.
10440         (CTOR_LIST_BEGIN): Likewise.
10441         (CTOR_LIST_END): Likewise.
10442         (INIT_SECTION_FUNCTION): Likewise.
10443         (FINI_SECTION_FUNCTION): Likewise.
10444         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
10445         (LOCAL_LABEL_PREFIX): Likewise.
10446         (NON_SAVING_SETJMP): Likewise.
10447         (RETURN_POPS_ARGS): Likewise.
10448         (ASM_OUTPUT_SKIP): Likewise.
10449         (TARGET_ASM_NAMED_SECTION): Likewise.
10450         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10451         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
10452         (ASM_OUTPUT_IDENT): Likewise.
10453         (ASM_OUTPUT_CASE_LABEL): Likewise.
10454         (ASM_OUTPUT_ASCII): Likewise.
10455         (ASM_OUTPUT_LIMITED_STRING): Likewise.
10456         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
10457         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10458         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10459         (ASM_FINISH_DECLARE_OBJECT): Likewise.
10460         (ASM_DECLARE_OBJECT_NAME): Likewise.
10461         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10462         (ASM_DECLARE_FUNCTION_NAME): Likewise.
10463         (ASM_DECLARE_RESULT): Likewise.
10464         (ASM_WEAKEN_LABEL): Likewise.
10465         (SUPPORTS_WEAK): Likewise.
10466         (APPLY_RESULT_SIZE): Likewise.
10467         (LPREFIX): Likewise.
10468         (ALIGN_ASM_OP): Likewise.
10469         (ASCII_DATA_ASM_OP): Likewise.
10470         (IDENT_ASM_OP): Likewise.
10471         (ASM_SHORT): Likewise.
10472         (ASM_LONG): Likewise.
10473         (TYPE_ASM_OP): Likewise.
10474         (SIZE_ASM_OP): Likewise.
10475         (STRING_ASM_OP): Likewise.
10476         (SKIP_ASM_OP): Likewise.
10477         (EH_FRAME_SECTION_ASM_OP): Likewise.
10478         (READONLY_DATA_SECTION_ASM_OP): Likewise.
10479         (INIT_SECTION_ASM_OP): Likewise.
10480         (FINI_SECTION_ASM_OP): Likewise.
10481         (TEXT_SECTION_ASM_OP): Likewise.
10482         (DATA_SECTION_ASM_OP): Likewise.
10483         (TYPE_OPERANT_FORMAT): Likewise.
10484         (ASM_SPEC): Remove COFF code.
10485         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
10486         cause -pg to emit an error; use pcrt1elf.o with -pp
10487         (ENDFILE_SPEC): Likewise.
10488         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
10489         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
10490         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
10491         add -z alt_resolve to support weak symbols the way GCC wants them.
10492         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
10493         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
10494         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
10495         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
10496         (CRTSTUFF_T_CFLAGS_S): Define.
10497         (MULTILIB_OPTIONS): Likewise.
10498         (MULTILIB_DIRNAMES): Likewise.
10499         (MULTILIB_MATCHES): Likewise.
10500         (MULTILIB_EXTRA_OPTS): Likewise.
10501         (LIBGCC): Likewise.
10502         (INSTALL_LIBGCC): Likewise.
10503         (crti.o): Remove.
10504         * config/i386/t-sco5gas: Remove.
10505         * doc/install.texi: Updated for new OpenServer instructions.
10506         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
10507
10508 2003-04-19  Kean Johnston  <jkj@sco.com>
10509
10510         * fixinc/check.tpl: Allow user to over-ride diff program.
10511         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
10512         (sco_math): Added test for SCO math header files.
10513         (sco_regset): Added check for conflicts with ieeefp.h.
10514         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
10515         * fixinc/fixincl.x: Regenerated
10516         * fixinc/tests/base/math.h: Added sco_math tests.
10517         * fixinc/tests/base/string.h: New file.
10518         * fixinc/tests/base/sys/regset.h: New file.
10519
10520 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10521
10522         * cpphash.h (struct cpp_buffer): Remove backup_to.
10523         * cpplex.c (BACKUP, get_effective_char): Die.
10524         (_cpp_skip_block_comment): Assume '*' is location on entry.
10525         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
10526         (IF_NEXT_IS): Update.
10527         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
10528
10529 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
10530
10531         * README.Portability: Move to a new section and obsolete K+R
10532         portability issues.
10533
10534 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
10535
10536         * rtlanal.c (subreg_offset_representable_p):  Fix call of
10537         subreg_lowpart.
10538
10539 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10540
10541         * cpphash.h (struct cpp_reader): New member warned_dollar.
10542         * cpplex.c (continues_identifier_p): New function.
10543         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
10544         lex_number and lex_string, and simplify.
10545         (parse_slow, unescaped_terminator_p): Die.
10546         (_cpp_lex_direct): Update.
10547
10548 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10549
10550         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
10551
10552 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
10553
10554         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
10555         fork behavior.
10556
10557 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10558
10559         * cppexp.c (eval_token): Permit true and false even if pedantic.
10560
10561 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10562
10563         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
10564
10565 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
10566
10567         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
10568         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
10569         (struct include_file): Remove fefcnt, mapped members.
10570         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
10571         (read_include_file): Don't use mmap, terminate buffers in '\r'.
10572         (purge_cache): Don't use munmap.
10573         * cpphash.h (CPP_BUF_COLUMN): Update.
10574         (lexer_state): Remove lexing_comment.
10575         (struct _cpp_line_note): New.
10576         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
10577         next_line and need_line.  Remove col_adjust and saved_flags.
10578         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
10579         _cpp_skip_block_comment, scan_out_logical_line): New.
10580         (_cpp_init_mbchar): Remove.
10581         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
10582         (cpp_read_main_file): Set line to 1 earlier.
10583         (post_options): -traditional-cpp doesn't want trigraphs.
10584         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
10585         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
10586         _cpp_get_fresh_line): New.
10587         (handle_newline, skip_escaped_newlines, trigraph_p,
10588         continue_after_nul, _cpp_init_mbchar): Remove.
10589         (get_effective_char): Update.
10590         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
10591         (skip_line_comment): Simplify.
10592         (skip_whitespace, parse_identifier, parse_slow, parse_number,
10593         parse_string): Update.
10594         (cpp_lex_direct): Use clean lines and process line notes.  Update.
10595         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
10596         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
10597         directly.
10598         (_cpp_handle_directive): Don't set saved_flags.
10599         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
10600         cpp_undef, handle_assertion, cpp_push_buffer): Update.
10601         (_cpp_pop_buffer): Free notes.
10602         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
10603         * cpppch.c (cpp_read_state): \n terminate buffer.
10604         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
10605         (copy_comment): Use _cpp_skip_block_comment.
10606         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
10607         Simplify.
10608         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
10609         save_replacement_text): Update.
10610         (scan_out_logical_line): Update to use clean lines and process
10611         line notes.
10612         * fix-header.c (read_scan_file): Update.
10613
10614 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
10615
10616         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
10617         null begin parameter (as well as pointer to null).
10618         (__deregister_frame_info_bases): Likewise.
10619
10620 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10621
10622         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
10623         hard or virtual register and copy into pseudo if replacement fails.
10624
10625         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
10626
10627         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
10628
10629 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
10630
10631         * calls.c (expand_call): Move special case for constructor calls
10632         to right place. Ensures constructor calls used to initialize
10633         arguments get a clean outgoing argument block for themselves.
10634         Move check for stack deallocation completeness until after last
10635         deallocation.  Add stack_pointer_delta to set of state
10636         variables saved and restored along with current stack_level.
10637
10638         * integrate.c (expand_inline_function): Ensure non-const actuals
10639         don't end up const in the caller's flow after conversion to possibly
10640         const formal type.
10641
10642 2003-04-18  Vincent Celier  <celier@gnat.com>
10643
10644         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
10645         and *_DIV_EXPR as TRUNC_*_EXPR.
10646
10647 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
10648
10649         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
10650         for orphaned jump tables.
10651
10652 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
10653
10654         * reload1.c: Revert my previous patch on 2002-04-17.
10655
10656 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10657
10658         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
10659         Add Segher Boessenkool.
10660
10661 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
10662
10663         PR c/9177
10664         * c-decl.c (c_expand_body): Don't garbage collect the function
10665         body if we are going to dump it later.
10666
10667 2003-04-18  Richard Henderson  <rth@redhat.com>
10668
10669         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
10670         (alpha_end_function): Don't set them.
10671         (decl_in_text_section): Remove.
10672         (alpha_encode_section_info): Remove.
10673         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
10674         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
10675         sections, rather than decl_in_text_section results.
10676
10677 2003-04-18  Roger Sayle  <roger@eyesopen.com>
10678
10679         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
10680         and SIGN_EXTRACT.
10681
10682 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
10683
10684         PR optimization/7675
10685         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
10686         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
10687         nested functions if they refer to declarations from parent functions.
10688         * stmt.c (expand_decl): Don't put automatic variables in registers
10689         if the DECL_NONLOCAL flag is set.
10690
10691 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10692
10693         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
10694         consider those to be movable where the source matches
10695         want_to_gcse_p.
10696         (update_ld_motion_stores): In comment, refer to
10697         compute_ld_motion_mems for validity of replacement.
10698
10699 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
10700
10701         * gcov-dump.c (tag_summary): Remove max_sum
10702         * gcov-io.h (gcov_summary, gcov_write_summary,
10703         gcov_read_summary): Kill max_sum.
10704         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
10705         message more verbose.
10706
10707         * emit-rtl.c (subreg_hard_regno):  Check that register is
10708         representable.
10709
10710         * reload.c (reload_inner_reg_of_subreg):  When register is not
10711         representable, reload the whole thing.
10712         (find_reloads): Likewsie.
10713         * rtlanal.c (subreg_representable_p):  New function.
10714
10715         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
10716         allow negative probabilities for edges from the call to exit.
10717         (branch_prob): Do not add fake edges for functions that may return
10718         twice.
10719
10720 2003-04-17  DJ Delorie  <dj@redhat.com>
10721
10722         * toplev.c (target_options): Add value field.
10723         (set_target_switch): Handle target options with values.
10724         * doc/tm.texi: Document how fixed vs variable target
10725         options work.
10726         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10727         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
10728         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10729         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
10730         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10731         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10732         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
10733         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
10734         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
10735         Add value initializer to target options.
10736
10737 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
10738
10739         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
10740
10741 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10742
10743         * reload1.c (move2add_last_cc0): New.
10744         (reload_cse_move2add): Detect implicit sets.
10745         (move2add_note_store): Notice a store into cc0.
10746
10747 2003-04-17  Roger Sayle  <roger@eyesopen.com>
10748
10749         PR c/10375
10750         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
10751         function attributes.
10752
10753 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
10754
10755         * doc/sourcebuild.texi (Test Suites): Document support for testing
10756         binary compatibility (moved from testsuite/README.compat).
10757
10758 2003-04-17  Richard Henderson  <rth@redhat.com>
10759
10760         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
10761
10762 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
10763
10764         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
10765         the one provided by the FSF.
10766
10767 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10768
10769         * doc/install.texi (Binaries): Update URL and list of platforms
10770         provided by ftp.thewrittenword.com.
10771
10772 2003-04-17  Richard Henderson  <rth@redhat.com>
10773
10774         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
10775         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
10776         * config/xtensa/xtensa.md (call, call_value): Likewise.
10777
10778 2003-04-17  Richard Henderson  <rth@redhat.com>
10779
10780         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
10781         (print_operand_address): Likewise.
10782         (ep_memory_operand): Likewise.
10783         (special_symbolref_operand): Likewise.
10784         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
10785         (v850_encode_section_info): Call default_encode_section_info.
10786         (v850_strip_name_encoding): Remove.
10787         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
10788         (ASM_OUTPUT_LABELREF): Remove.
10789         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
10790         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
10791         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
10792         (ENCODED_NAME_P): Remove.
10793         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
10794         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
10795         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
10796
10797 2003-04-17  Richard Henderson  <rth@redhat.com>
10798
10799         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
10800         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
10801         SYMBOL_REF_FUNCTION_P.
10802
10803 2003-04-17  Richard Henderson  <rth@redhat.com>
10804
10805         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
10806         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
10807         (text_segment_operand): Likewise.
10808
10809 2003-04-17  Richard Henderson  <rth@redhat.com>
10810
10811         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
10812         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10813         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10814         (sh_encode_section_info): Remove.
10815         (sh_strip_name_encoding): Remove.
10816         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
10817         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
10818         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
10819         (ASM_OUTPUT_LABELREF): Remove.
10820         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
10821         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
10822
10823 2003-04-17  Richard Henderson  <rth@redhat.com>
10824
10825         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
10826         (tls_model_chars): Remove.
10827         (larl_operand): Use SYMBOL_REF_FLAGS.
10828         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10829         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10830         (s390_output_mi_thunk): Likewise.
10831         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
10832         (s390_function_profiler): Likewise.
10833         (s390_encode_section_info): Use default_encode_section_info
10834         and SYMBOL_FLAG_ALIGN1.
10835         (s390_strip_name_encoding): Remove.
10836         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
10837         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
10838         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
10839
10840 2003-04-17  Richard Henderson  <rth@redhat.com>
10841
10842         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
10843         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
10844         (print_operand_address): Likewise.
10845
10846         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
10847         * config/ns32k/ns32k.c (expand_block_move): Don't check
10848         flag_unroll_loops.
10849
10850 2003-04-17  Richard Henderson  <rth@redhat.com>
10851
10852         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
10853         SYMBOL_REF_FLAG.
10854
10855 2003-04-17  Richard Henderson  <rth@redhat.com>
10856
10857         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
10858
10859         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
10860         (SYMBOL_REF_MODEL): New.
10861         (LIT_NAME_P): Move from m32r.h.
10862         (m32r_select_section): Remove.
10863         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
10864         (m32r_strip_name_encoding): Remove.
10865         (m32r_in_small_data_p): New.
10866         (small_data_operand): Use SYMBOL_REF_SMALL_P.
10867         (addr24_operand): Use SYMBOL_REF_MODEL.
10868         (call26_operand): Likewise.
10869         (addr32_operand): Tidy.
10870         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
10871         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
10872         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
10873         (READONLY_DATA_SECTION_ASM_OP): Remove.
10874         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10875         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
10876         (TARGET_ASM_SELECT_SECTION): Remove.
10877         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
10878         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
10879         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
10880         (ASM_OUTPUT_LABELREF): Remove.
10881
10882 2003-04-17  Richard Henderson  <rth@redhat.com>
10883
10884         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
10885         (encode_section_info): Remove.
10886         * config/ip2k/ip2k-protos.h: Update.
10887
10888 2003-04-17  Richard Henderson  <rth@redhat.com>
10889
10890         * varasm.c (default_encode_section_info): Don't set
10891         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
10892         * config/i370/i370.c (i370_encode_section_info): Remove.
10893         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
10894         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
10895         * config/i370/i370.md (movsi): Likewise.
10896
10897         * config/i370/t-i370: Add missing backslash.
10898
10899 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
10900
10901         * doc/invoke.texi (inline-limit): Fix pasto.
10902
10903 2003-04-17  Richard Henderson  <rth@redhat.com>
10904
10905         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
10906         (small_call_insn_operand): Use it.
10907         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
10908         (h8300_eightbit_constant_address_p): Use it.
10909         (SYMBOL_FLAG_TINY_DATA): New.
10910         (h8300_tiny_constant_address_p): Use it.
10911         (h8300_encode_label, h8300_strip_name_encoding): Remove.
10912         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
10913         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
10914         (ASM_OUTPUT_LABELREF): Remove.
10915
10916 2003-04-16  Richard Henderson  <rth@redhat.com>
10917
10918         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
10919         all users with SYMBOL_REF_SMALL_P.
10920         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
10921         (frv_encode_section_info): Remove.
10922         (frv_strip_name_encoding): Remove.
10923         (frv_in_small_data_p): Merge tests from encode_section_info.
10924         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
10925         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
10926         (SDATA_NAME_P): Remove.
10927         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
10928         (ASM_OUTPUT_LABELREF): Remove.
10929         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
10930
10931         * config/frv/frv.c (frv_asm_out_constructor): New.
10932         (frv_asm_out_destructor): New.
10933         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
10934         (DTORS_SECTION_ASM_OP): New.
10935         (ASM_OUTPUT_CONSTRUCTOR): Remove.
10936         (ASM_OUTPUT_DESTRUCTOR): Remove.
10937
10938 2003-04-16  Richard Henderson  <rth@redhat.com>
10939
10940         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
10941         SYMBOL_REF_LOCAL_P; abort if not pic.
10942         (cris_encode_section_info): Remove.
10943
10944 2003-04-16  Richard Henderson  <rth@redhat.com>
10945
10946         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
10947         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
10948
10949         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
10950         flag_inline_trees.
10951
10952 2003-04-16  Richard Henderson  <rth@redhat.com>
10953
10954         * config/avr/avr.c (avr_encode_section_info): Remove.
10955         (avr_insert_attributes): New.
10956         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
10957         (avr_assemble_integer): Likewise.
10958
10959 2003-04-16  Richard Henderson  <rth@redhat.com>
10960
10961         * arc.c (arc_encode_section_info): Remove.
10962         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
10963         (arc_print_operand, arc_print_operand_address): Likewise.
10964         * arc.h (EXTRA_CONSTRAINT): Likewise.
10965
10966 2003-04-16  Roger Sayle  <roger@eyesopen.com>
10967
10968         * c-semantics.c (find_reachable_label): New function to find a
10969         potentially reachable label in an expression.
10970         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
10971         assumes the start of the IF_STMT is unreachable (dead) code.
10972         (expand_unreachable_stmt): Similar to expand_stmt but assumes
10973         the start of the statement list is unreachable (dead) code.
10974         (genrtl_if_stmt):  If the controlling expression of the IF
10975         is constant, use expand_unreachable_stmt for the THEN or ELSE
10976         clause as appropriate.
10977         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
10978         the body of a SWITCH statement.
10979         (expand_stmt): The code immediately following a "return",
10980         "break", "continue" or "goto" is unreachable.
10981         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
10982
10983 2003-04-16  Richard Henderson  <rth@redhat.com>
10984
10985         * rtl.h (MEM_ALIAS_SET): Update documentation.
10986         * doc/rtl.texi (Special Accessors): New node.
10987         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
10988
10989 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
10990
10991         * reload1.c (reload_cse_noop_set_p): Return false if mode of
10992         SET_DEST is not the same as that returned by...
10993         * cselib.h (cselib_reg_set_mode): ... new function.
10994         * cselib.c (cselib_reg_set_mode): Define it.
10995         (REG_VALUES): Document semantics of first element as set mode.
10996         (cselib_subst_to_values): Skip first element if ELT is NULL.
10997         (cselib_lookup): Likewise.  Insert past the first element.
10998         (cselib_invalidate_regno): NULLify first element.
10999         (cselib_record_set): Set first element.
11000
11001 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
11002
11003         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
11004         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
11005         * tree.h: Add prototypes for the two new functions.
11006         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
11007         updates introduced in the previous revision by call to saved_expr_p.
11008         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
11009
11010         * expr.c (store_field): Force usage of bitfield instructions when
11011         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
11012         (expand_expr, case BIT_FIELD_REF): likewise.
11013
11014 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
11015
11016         PR middle-end/8866
11017         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
11018         jumptables.
11019
11020 2003-04-16  Richard Henderson  <rth@redhat.com>
11021
11022         * config/ia64/ia64.c (sdata_symbolic_operand): Use
11023         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
11024         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11025         (function_operand): Use SYMBOL_REF_FUNCTION_P.
11026         (ia64_expand_load_address): Likewise.
11027         (ia64_assemble_integer): Likewise.
11028         (ia64_encode_section_info): Remove.
11029         (ia64_strip_name_encoding): Remove.
11030         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
11031         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
11032
11033 2003-04-16  Richard Henderson  <rth@redhat.com>
11034
11035         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
11036         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
11037         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
11038         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11039         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
11040         (global_symbolic_operand): Similarly.
11041         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
11042         (tls_symbolic_operand_type): Likewise.
11043         (alpha_encode_section_info): Use default_encode_section_info.
11044         (alpha_strip_name_encoding): Remove.
11045         (get_tls_get_addr): Split out from ...
11046         (alpha_legitimize_address): ... here.
11047         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
11048         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
11049         (alpha_initialize_trampoline): Use init_one_libfunc.
11050         (alpha_setup_incoming_varargs): Mark unused parameters.
11051         (alpha_initial_elimination_offset): Likewise.
11052         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
11053         (unicosmk_unique_section): Use default_strip_name_encoding.
11054         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
11055
11056 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
11057
11058         * config.gcc: Add t-spe for eabispe.
11059
11060         * config/rs6000/t-spe: New.
11061
11062 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
11063
11064         Re-apply this patch:
11065
11066         2002-05-16  Dale Johannesen  <dalej@apple.com>
11067           * combine.c (cant_combine_insn_p):  Reenable combinations
11068           involving hard regs unless CLASS_LIKELY_SPILLED_P.
11069
11070 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11071
11072         PR/10271
11073         * pa-protos.h (function_arg): Remove last argument.
11074         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
11075         * pa.h (struct hppa_args): Add member incoming.
11076         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
11077         member incoming.
11078         (FUNCTION_ARG): Revise call to function_arg.
11079         (FUNCTION_INCOMING_ARG): Delete.
11080
11081 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
11082
11083         * configure.in: Unify the code which creates symlinks to a
11084         just-built as, ld, objdump, and nm with the code that detects
11085         their presence for purposes of feature tests.
11086         * configure: Regenerate.
11087
11088 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
11089
11090         * varasm.c (output_constant_def): Do not consult
11091         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
11092         (after_function_constants, output_after_function_constants): Delete.
11093         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
11094         * config/mips/mips-protos.h, config/mips/mips.c
11095         (mips16_constant_after_function_p): Delete.
11096         * config/mips/mips.h: Delete #if-0-ed definition of
11097         CONSTANT_AFTER_FUNCTION_P.
11098         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
11099         mention of CONSTANT_AFTER_FUNCTION_P in comment.
11100
11101 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
11102
11103         * tree.c (next_decl_uid): Mark with GTY.
11104         (next_type_uid): Likewise.
11105
11106 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
11107
11108         PR target/9594:
11109         * sh.c (barrier_align): Also recognize stuff_delay_slot as
11110         an indicator that a barrier was created by branch splitting.
11111
11112 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
11113
11114         * c-decl.c (implicitly_declare): Copy declarations that are going
11115         to be placed in a local scope.
11116
11117 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
11118
11119         * invoke.texi (Spec Files): Wrap if-exists-else example.
11120         (MCore): Remove duplicate @itemx entries and @opindex entries.
11121
11122 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
11123
11124         * unwind.inc (_Unwind_Backtrace): New function.
11125         * unwind.h (_Unwind_Backtrace): Declare it.
11126         * libgcc-std.ver (_Unwind_Backtrace): Export it.
11127
11128 2003-04-14  Jason Merrill  <jason@redhat.com>
11129
11130         PR middle-end/10336, c++/10401
11131         * jump.c (never_reached_warning): Also stop looking if we reach the
11132         beginning of the function.
11133
11134 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11135
11136         PR target/10338
11137         PR bootstrap/10198
11138         PR bootstrap/10140
11139         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
11140
11141 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
11142
11143         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
11144
11145 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11146
11147         * optabs.c (expand_binop): In multi-word add cases, ensure
11148         XTARGET is copied to TARGET if they are different.
11149
11150 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
11151
11152         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
11153         to region, possible after integration of function with unreachable
11154         regions that were optimized away.
11155
11156 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
11157
11158         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
11159         instead of TOC_REGISTER in epilogue in
11160         current_function_calls_eh_return functions.
11161
11162 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
11163
11164         * doc/extend.texi (Empty Structures): Correct description of G++'s
11165         handling of these structures.
11166
11167         * c-decl.c (grokdeclarator): Reject extern redeclarations of
11168         static variables.
11169
11170 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
11171
11172         * config/rs6000/rs6000.md (define_constants): Define constants for
11173         all UNSPEC usage, including new values for TLS support.
11174         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
11175         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
11176         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
11177         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
11178         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
11179         eh_set_lr_di): Use them.
11180         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
11181         rs6000_emit_epilogue) Use them.
11182
11183         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
11184
11185 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
11186
11187         * Makefile.in (c-opts.o): Use custom action.
11188
11189 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
11190
11191         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
11192
11193 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11194
11195         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
11196         handle "superflat arrays" in Ada.
11197
11198         * integrate.c (expand_inline_function): Don't inline if would
11199         lose /u on a BLKmode TARGET.
11200
11201 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
11202
11203         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
11204         extracted from dbxout_type.
11205         (dbxout_range_type): print large bounds in octal format.
11206         (dbxout_type): Replace extracted code by call to
11207         print_int_cst_bounds_in_octal_p.
11208
11209         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
11210         of DW_LANG_Ada83 for Ada units.
11211
11212 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
11213
11214         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
11215         temporary used to round CONST_INT sizes.
11216
11217         * tree.c (int_fits_type_p): Extract generic checks from the case
11218         of constant type bounds. Refine the checks against constant type
11219         bounds to allow for possible decisions against each of these bounds
11220         without requiring both bounds to be constant.
11221         (tree_int_cst_msb): Put back.
11222         * tree.h (tree_int_cst_msb): Likewise.
11223
11224         * global.c (global_conflicts): Prevent allocation of call clobbered
11225         hard regs to pseudos live across abnormal edges, as later passes are
11226         not ready to handle them.
11227
11228         * fold-const.c (fold): Reorder tests for conditional expressions.
11229
11230         * expr.c (highest_pow2_factor): Return unsigned.
11231         * expr.h (offset_address): Likewise.
11232         * emit-rtl.c (offset_address): POW2 argument now unsigned.
11233
11234 2003-04-14  Roger Sayle  <roger@eyesopen.com>
11235
11236         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
11237         string literals at compile-time.
11238
11239 2003-04-14  Roger Sayle  <roger@eyesopen.com>
11240
11241         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
11242         comparison operation and c1/c2 are floating point constants into
11243         x swap(cmp) (c1 - c2).
11244
11245 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
11246
11247         * genautomata.c (output_translate_vect): Fix a typo in loop
11248         condition.
11249
11250 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
11251
11252         PR target/10377
11253         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
11254         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
11255         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
11256         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
11257         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
11258         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
11259         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
11260         ("*extopqihi_swap_side", "*extopqisi_swap_side")
11261         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
11262         When next to constraint R, replace constraint i with n.
11263
11264 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
11265
11266         PR opt/10024
11267         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
11268
11269 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
11270
11271         * doc/contrib.texi (Contributors): Correct my entry.
11272
11273 2003-04-13  Roger Sayle  <roger@eyesopen.com>
11274
11275         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
11276         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
11277         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
11278         implies DECL_BUILT_IN to simplify logic.
11279         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
11280
11281 2003-04-13  Roger Sayle  <roger@eyesopen.com>
11282
11283         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
11284         (BT_FN_PTR_SIZE_SIZE): Likewise.
11285         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
11286         New built-in functions for malloc, calloc and strdup respectively.
11287         * calls.c (special_function_p): No need to handle malloc-like
11288         functions any longer.  ECF_MALLOC is set via built-in attributes.
11289
11290         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
11291
11292         * doc/extend.texi: Document these new built-in functions.
11293
11294 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11295
11296         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
11297         (expand_builtin_stpcpy): New.
11298         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
11299         * builtins.def: Add mempcpy & stpcpy support.
11300         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
11301
11302 2003-04-13  Nick Clifton  <nickc@redhat.com>
11303
11304         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
11305         "GCC".
11306         * config/rs6000/40x.md, config/rs6000/603.md,
11307         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
11308         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
11309         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
11310         config/rs6000/aix43.h, config/rs6000/aix51.h,
11311         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
11312         config/rs6000/altivec.h, config/rs6000/altivec.md,
11313         config/rs6000/beos.h, config/rs6000/darwin.h,
11314         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
11315         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
11316         config/rs6000/freebsd.h, config/rs6000/gnu.h,
11317         config/rs6000/host-darwin.c, config/rs6000/linux.h,
11318         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
11319         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
11320         config/rs6000/netbsd.h, config/rs6000/power4.md,
11321         config/rs6000/rios1.md, config/rs6000/rios2.md,
11322         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
11323         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11324         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
11325         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
11326         config/rs6000/spe.md, config/rs6000/sysv4.h,
11327         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
11328         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
11329
11330 2003-04-13  Nick Clifton  <nickc@redhat.com>
11331
11332         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
11333         support for -mcall-aix switch.
11334         * config/rs6000/eabiaix.h: Delete.
11335         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
11336         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
11337         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
11338         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
11339         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
11340         debug_stack_info, output_function_profiler,
11341         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
11342         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
11343         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
11344         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
11345         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
11346         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
11347         multilibs.
11348         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
11349         (MULTILIB_EXCEPTIONS): Delete.
11350         (MULTILIB_MATCHES): Remove mcall-aix matches.
11351
11352         * doc/fragments.texi: Replace -mcall-aix example with an ARM
11353         one.
11354         * doc/install.texi: Delete powerpc-*-eabiaix target.
11355         * doc/invoke.texi: Remove documentation of mcall-aix switch.
11356         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
11357         * config.gcc: Delete powerpc-*-eabiaix target.
11358
11359 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
11360
11361         * doc/invoke.texi: Fix typos.
11362         * doc/tm.texi: Likewise.
11363
11364 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11365
11366         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
11367
11368 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11369
11370         * tree.c (build_constructor): New function.
11371         * tree.h: Prototype it.
11372
11373         * c-typeck.c (build_c_cast, pop_init_level)
11374         * profile.c (build_function_info_value, build_gcov_info_value)
11375         (create_profiler):
11376         Use build_constructor.
11377
11378         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
11379
11380         * objc/objc-act.c (build_constructor):
11381         Rename objc_build_constructor. Use build_constructor.
11382         (build_objc_string_object, objc_add_static_instance)
11383         (init_def_list, init_objc_symtab, init_module_descriptor)
11384         (generate_static_references, build_selector_translation_table)
11385         (build_descriptor_table_initializer, generate_descriptor_table)
11386         (build_protocol_initializer, build_ivar_list_initializer)
11387         (generate_ivars_list, build_dispatch_table_initializer)
11388         (generate_dispatch_table, generate_protocol_list)
11389         (build_category_initializer, build_shared_structure_initializer):
11390         Update to match.
11391
11392 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11393
11394         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
11395
11396 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11397
11398         * config/m68hc11/m68hc11-protos.h
11399         (m68hc11_eq_compare_operator): Declare
11400         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
11401         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
11402         (d_register_operand): Check the operand mode.
11403         (hard_addr_reg_operand): Likewise.
11404
11405 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11406
11407         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
11408         pattern for dbcc/ibcc generation for 68HC12.
11409         ("doloop_end"): New pattern.
11410         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
11411         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
11412         ("m68hc12_dbcc_dec_qi"): New pattern.
11413         ("m68hc12_dbcc_inc_qi"): New pattern.
11414         (split): Add split for the above when we can't use dbcc/ibcc due to
11415         reloading.
11416         (peephole2): Add peephole2 to generate the above when possible.
11417
11418 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11419
11420         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
11421         mode of operand 0.
11422         (peephole2 optimize const load): Likewise for operand 2.
11423         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
11424         clobbers CC_REGNUM.
11425         ("*rotrhi3_with_carry"): Likewise.
11426         (ashift:DI 1 split): Update pattern to create the above rotate.
11427         (lshiftrt:DI 1 split): Likewise.
11428
11429 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11430
11431         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
11432         ("tstqi_z_used" split): Use it.
11433         ("cmphi_z_used"): Likewise.
11434         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
11435         ("cmpqi_z_used"): Likewise.
11436
11437 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
11438
11439         PR c++/7910
11440         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
11441
11442 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11443
11444         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
11445         * configure, config.in: Regenerate.
11446         * intl.c (gcc_gettext_width): New function.
11447         * intl.h: Prototype it.
11448
11449 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11450
11451         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
11452         recognize -mnorelax.
11453         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
11454         (REG_CLASS_NAMES): Add its name.
11455         (REG_CLASS_CONTENTS): Define its content.
11456
11457 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
11458
11459         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
11460         parameters so that offsets are valid for far definition.
11461         (__mulsi3): Likewise and use ret to return.
11462         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
11463
11464 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
11465
11466         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
11467
11468 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
11469
11470         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
11471         containing a libgcc.a, move lib* to the corresponding stage dir.
11472
11473         * Makefile.in (stage1-start, stage2-start, stage3-start,
11474         stage4-start): Move $(SPECS) to specs in stage dir.
11475         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
11476         back as $(SPECS).
11477
11478         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
11479         object files from the non-libgcc/ multilib directories as well.
11480
11481 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
11482
11483         * profile.c (read_counts_file): Initialise 'checksum'.
11484
11485         * emit-rtl.c (gen_rtx): Really correct typo.
11486
11487         PR c++/9393
11488         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
11489         * configure.in: Check for gettimeofday.
11490         * tree.c (flag_random_seed): Define.
11491         (default_flag_random_seed): New.
11492         (append_random_chars): Use flag_random_seed rather than trying
11493         to acquire randomness here.
11494         * tree.h (default_flag_random_seed): Declare.
11495         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
11496         descriptions.
11497         (decode_f_option): Handle -frandom-seed.
11498         (print_switch_values): Call default_flag_random_seed.
11499         * flags.h (flag_random_seed): Declare.
11500         * configure: Regenerate.
11501         * config.in: Regenerate.
11502         * config/alpha/t-crtfm: Use -frandom-seed.
11503
11504         * doc/extend.texi (Empty Structures): New.
11505
11506         * c-pch.c: Include flags.h.  Add comments to routines.
11507         (struct c_pch_validity): New.
11508         (get_ident): Update PCH file version number.
11509         (pch_init): Output current debugging type.
11510         (c_common_valid_pch): Check debugging type.
11511         * Makefile.in (c-pch.o): Update dependencies.
11512         * flags.h (debug_type_names): Declare.
11513         * toplev.c (debug_type_names): Move out of decode_g_option.
11514
11515 2003-04-11  Eric Christopher  <echristo@redhat.com>
11516
11517         * emit-rtl.c (gen_rtx): Fix typos.
11518
11519 2003-04-11  Richard Henderson  <rth@redhat.com>
11520
11521         * emit-rtl.c (gen_rtx): Zero '0' fields.
11522
11523 2003-04-11  Richard Henderson  <rth@redhat.com>
11524
11525         PR c++/10202
11526         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
11527         not COMPLETE_TYPE_P for re-invoking layout_decl.
11528
11529 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
11530
11531         * doc/bugreport.texi: Fix paragraph breaking between sections
11532         in preparation for TeXinfo's paragraph indentation fixes.
11533         * doc/extend.texi: Ditto.
11534         * doc/invoke.texi: Ditto.
11535         * doc/objc.texi: Ditto.
11536         * doc/gcov.texi: Wrap 'gcov' in @command{}.
11537         * doc/invoke.texi (Darwin Options): Add a preamble.
11538
11539 2003-04-11  Richard Henderson  <rth@redhat.com>
11540
11541         * config/i386/i386.c (tls_model_chars): Remove.
11542         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
11543         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11544         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11545         (tls_symbolic_operand_1): Likewise.
11546         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
11547         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
11548         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
11549         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
11550         bits "copied from i386.h" with default_encode_section_info.
11551
11552 2003-04-11  Richard Henderson  <rth@redhat.com>
11553
11554         * rtl.def (SYMBOL_REF): Add two 0 fields.
11555         * gengtype.c (adjust_field_rtx_def): Handle them.
11556         * print-rtl.c (print_rtx): Print them.
11557         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
11558         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
11559         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
11560         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
11561         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
11562         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
11563         (SYMBOL_FLAG_MACH_DEP): New.
11564         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
11565         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
11566         (assemble_static_space): Set SYMBOL_REF_FLAGS.
11567         (assemble_trampoline_template): Likewise.
11568         (output_constant_def, force_const_mem): Likewise.
11569         (default_encode_section_info): New.
11570         * output.h: Declare it.
11571         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
11572
11573 2003-04-11  Richard Henderson  <rth@redhat.com>
11574
11575         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
11576         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
11577         * optabs.c (init_optabs): Initialize them.
11578         (init_libfuncs): Use init_one_libfunc.
11579         * calls.c (expand_call): Use gcov_flush_libfunc.
11580         * expr.c (store_constructor): Use setbits_libfunc.
11581         * function.c (expand_main_function): Use init_one_libfunc.
11582         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
11583
11584 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
11585
11586         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
11587         documentation; add DECL_FRIEND_CONTEXT.
11588
11589 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11590
11591         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
11592         notes on linker selection and configuration for 64-bit HP-UX port.
11593         * doc/invoke.texi (hppa): Remove hppa text from description for
11594         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
11595         and -threads options.
11596
11597         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
11598         libc.a on libdld.sl when -static is specified and -nolibdld is not
11599         specified.
11600         * pa64-hpux.h (LIB_SPEC): Likewise.
11601         * pa-hpux11.h (LIB_SPEC): Likewise.
11602         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
11603         is not specified.
11604
11605 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
11606
11607         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
11608         not IDENTIFIER_LOCAL_VALUE.
11609
11610 2003-04-11  Richard Henderson  <rth@redhat.com>
11611
11612         PR c/10201
11613         * expr.c (expand_expr): Move DECL_RTL frobbing ...
11614         * stor-layout.c (layout_decl): ... here.
11615
11616 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
11617
11618         * doc/invoke.texi: Eliminate extra white-space caused by
11619         @gccoptlist{ on its own line.
11620         * doc/invoke.texi: Ensured there are two spaces between each option.
11621         * doc/invoke.texi: Re-wrapped option lines that were too wide.
11622         Added @gol to options that didn't have them.
11623
11624 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
11625
11626         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
11627         gcov-iov.h.
11628
11629         Simplify interface to gcov reading and writing.
11630         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
11631         gcov_alloc, gcov_modified, gcov_errored): Move into ...
11632         (struct gcov_var gcov_var): ... this static structure.
11633         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
11634         Return void.
11635         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
11636         read object.
11637         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
11638         (gcov_reserve_length): Remove.
11639         (gcov_write_tag): New.
11640         (gcov_write_length): Adjust.
11641         (gcov_read_summary, gcov_write_summary): Adjust.
11642         (gcov_eof, gcov_ok): Rename to ...
11643         (gcov_is_eof, gcov_is_error): ... here. Return error code.
11644         (gcov_save_position, gcov_resync): Rename to ...
11645         (gcov_position, gcov_seek): ... here.
11646         (gcov_skip, gcov_skip_string): Remove.
11647         (gcov_error): Remove.
11648         (gcov_open, gcov_close): Adjust.
11649         * gcov.c (find_source): Take const char *, copy it on allocation.
11650         (read_graph_file): Adjust.
11651         (read_count_file): Adjust.
11652         * libgcov.c (gcov_exit): Adjust.
11653         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
11654         tag_arc_counts, tag_summary): Return void. Adjust.
11655         (struct tag_format): Adjust proc member.
11656         (dump_file): Adjust gcov calls.
11657
11658 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
11659
11660         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
11661         mkfixinc.sh.
11662         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
11663         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
11664         build != host sysrooted builds.
11665         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
11666         TARGET_SYSTEM_ROOT even on sysrooted natives.
11667         * configure: Rebuilt.
11668
11669 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11670
11671         * c-decl.c (struct binding_level): Add shadowed_tags and
11672         function_body; remove this_block, tag_transparent, and
11673         subblocks_tag_transparent; update comments.
11674         (clear_binding_level, lookup_tag_reverse): Kill.
11675         (make_binding_level): Use ggc_alloc_cleared or memset.
11676         (lookup_tag): Remove struct binding_level* parameter.  All
11677         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
11678         current_binding_level->tags if asked for thislevel_only or if
11679         we might have to diagnose "struct foo; union foo;"
11680         (pushlevel): Ignore argument.  Do not push another binding
11681         level on the transition from the parameters to the top level
11682         of the function body; just tweak the flags and proceed.
11683         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
11684         a function body, separate the parameter list from the
11685         top-level local variables.
11686         (set_block): Do nothing.
11687         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
11688         shadowed_tags if necessary.
11689         (warn_if_shadowing): Nuke the special case for local shadowing
11690         parameter.
11691         (pushdecl): Do not create a shadow entry if we are replacing
11692         an older decl in the same binding level.
11693         (pushdecl_function_level): Tweak for new way of indicating
11694         function scope.
11695         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
11696         (start_function): Don't set subblocks_tag_transparent.
11697         (finish_function): Fix up the binding_level stack for totally
11698         empty functions.  Otherwise, don't call poplevel.
11699
11700         * c-common.c (shadow_warning): MANDATORY argument is no longer
11701         necessary.  Always use plain warning.
11702         * c-common.h: Update to match.
11703
11704         * cfglayout.c (scope_to_insns_initialize): Clear block when we
11705         hit the FUNCTION_DECL.
11706         * function.c: Do not create cyclic tree structure.
11707
11708 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11709
11710         * c-tree.h (struct lang_identifier): Replace global_value,
11711         local_value members with symbol_value, tag_value.  Kill
11712         implicit_decl and limbo_value.
11713         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
11714         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
11715         C_MISSING_PROTOTYPE_WARNED): Kill.
11716         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
11717         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
11718         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
11719         (implicit_decl_warning, lookup_name_current_level,
11720         record_function_scope_shadow): Don't prototype.
11721         (pushdecl_function_level): Prototype.
11722
11723         * c-decl.c (truly_local_externals): New variable.
11724         (struct binding_level): Adjust commentary.
11725         (get_function_binding_level, clear_limbo_values,
11726         record_function_scope_shadow): Kill.
11727         (lookup_name_current_level, implicit_decl_warning): Are now static.
11728         (any_external_decl, record_external_decl): New static functions.
11729         (clone_underlying type): Split out of pushdecl.
11730         (c_print_identifier): Update to match changes to struct
11731         lang_identifier.
11732         (poplevel): Delete #if 0 block.  Make externals invisible
11733         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
11734         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
11735         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
11736         (duplicate-decls): For real parm decl after a forward decl,
11737         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
11738         foo(...) { } with only a warning.  Say whether a previous
11739         declaration was implicit.
11740         (warn_if_shadowing): Now handles all shadowing, not just
11741         local-over-local.  Clarify comments.
11742         (pushdecl): Rewritten.  There is no longer a distinction
11743         between global and local symbol values; they're all
11744         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
11745         DECL_EXTERNAL decls, and use any_external_decl to check
11746         against previous externals.  Kill #if 0 blocks.  Don't
11747         tolerate error_mark_node being NULL.
11748         (pushdecl_top_level): Handle only those cases which
11749         Objective C (the only user) needs.
11750         (pushdecl_function_level): New function.
11751         (implicitly_declare): Create ordinary decls with
11752         C_DECL_IMPLICIT set.  Recycle old decls, however they got
11753         created.
11754         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
11755         for C_DECL_INVISIBLE symbols.
11756         (lookup_name_current_level): Likewise.  Use chain_member.
11757         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
11758         Use pushdecl_function_level.
11759         (builtin_function): Use C_DECL_INVISIBLE.
11760         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
11761         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
11762         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
11763         (identifier_global_value): Same.  Must scan
11764         global_binding_level in extremis.
11765
11766         * c-typeck.c (undeclared_variable): New static function, split
11767         from build_external_ref.
11768         (build_external_ref): Use DECL_CONTEXT, not
11769         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
11770         an instance variable.  Restructure for clarity.
11771         * objc/objc-act.c: Use identifier_global_value, not
11772         IDENTIFIER_GLOBAL_VALUE.
11773
11774 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
11775
11776         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
11777         not Working Paper.
11778         * doc/invoke.texi (C++ Dialect Options): Same.
11779
11780 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
11781
11782         * tree.c (tree_operand_check_failed): New function.
11783         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
11784         TREE_RTL_OPERAND_CHECK): New checking macros.
11785         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
11786         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
11787         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
11788         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
11789         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
11790         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
11791         checking macros.
11792
11793 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
11794
11795         PR inline-asm/8803
11796         * function.c (instantate_virtual_regs):  Verify that all ASM statements
11797         match after the virutal regs instantiation.
11798
11799 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
11800
11801         * ia64-protos.h (addp4_optimize_ok): New.
11802         * ia64.c (addp4_optimize_ok): New.
11803         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
11804         (*ptr_extend_plus_2): Ditto.
11805
11806 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
11807
11808         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
11809         not with convert_memory_address.
11810         (store_constructor): Ditto, and same for copy_size_rtx.
11811         (expand_expr): Ditto.
11812
11813 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
11814
11815         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
11816
11817 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
11818
11819         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
11820         even if it is configured to be write-through.
11821
11822 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11823
11824         * config/s390/s390.c (larl_operand): Do not allow symbols
11825         marked with '@'.
11826         (s390_encode_section_info): Mark symbols with forced 1-byte
11827         alignment with '@'.
11828         (s390_strip_name_encoding): Strip '@'.
11829         (legitimize_pic_address): Handle symbols that are not valid
11830         LARL operands in 64-bit mode.
11831
11832 2003-04-10  Andrew Haley  <aph@redhat.com>
11833
11834         * tree-inline.c (inlinable_function_p): Disable inlining for
11835         synchronized methods.
11836
11837 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
11838
11839         * c-common.h (lang_statement_code_p): Remove declaration.
11840         (statement_code_p): Ditto.
11841         (c_common_stmt_codes): Define; list of c-common statement codes.
11842         (statement_code_p): New extern declaration.
11843         (STATEMENT_CODE_P): Define.
11844         (INIT_STATEMENT_CODES): Define.
11845         * c-common.c (statement_code_p): Kill the function, declare
11846         as an array of bools instead.
11847         (lang_statement_code_p): Remove.
11848         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
11849         (c_safe_from_p): Ditto.
11850         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
11851         to initialize the statement_code_p array.
11852         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
11853         statement_code_p.
11854         (copy_tree_r): Ditto.
11855         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
11856         statement tree codes.
11857         * cp/lex.c (cxx_init): Add missing print line break.  Use
11858         INIT_STATEMENT_CODES to initialize the statement_code_p array.
11859         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
11860         instead of statement_code_p.
11861         * cp/pt.c (tsubst_expr): Ditto.
11862         * cp/tree.c (verify_stmt_tree_r): Ditto.
11863         (cp_statement_code_p): Remove.
11864         (init_tree): Don't set lang_statement_code_p, it's gone.
11865
11866 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
11867             Zack Weinberg  <zack@codesourcery.com>
11868
11869         * regrename.c (struct du_chain): Use a bitfield for reg_class.
11870         * cse.c (struct qty_table_elem, struct table_elt, struct set):
11871         Use bitfields for fields holding enum rtx_code or
11872         enum machine_mode values.  Add comments explaining size choices.
11873
11874 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
11875
11876         * config/fp-bit.c (unpack_d): Handle pair of doubles with
11877         different signs correctly.
11878
11879 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
11880
11881         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
11882         (reg_pending_barrier): Make it of the enumeration type.
11883         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
11884         TRUE_BARRIER.
11885         (sched_analyze): Ditto.
11886         (sched_analyze_insn): Ditto.  Use anti-dependencies for
11887         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
11888         (init_deps_global): Initialize the barrier as NO_BARRIER.
11889
11890 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
11891
11892         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
11893         Check that asm insn starts on a new cycle.  Add nops after asm
11894         insn to end bundle.
11895         (bundling): Move insn type evaluation from the loop.  Call
11896         issue_nops_and_insn with the new parameter.  Ignore changing
11897         position for nops after asm insn.
11898
11899 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
11900
11901         * optabs.c: Comment that gen_add2_insn and others may actually
11902         return emitted insns, if the gen functions turn out to return
11903         emitted insns.
11904         * reload1.c (reload_cse_move2add): Cope with emitted insns from
11905         gen_add2_insn.
11906
11907 2003-04-09  Richard Henderson  <rth@redhat.com>
11908
11909         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
11910         but not tls_symbolic_operand.
11911         (ia64_expand_load_address): Remove scratch operand.
11912         (ia64_expand_tls_address): Split out from ia64_expand_move.
11913         (ia64_expand_move): Split symbolics only after reload.
11914         (ia64_emit_cond_move): New.
11915         * config/ia64/ia64-protos.h: Update.
11916         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
11917         (symbolic splitter): Accept SImode operands too.
11918         (cmove splitter): Use ia64_emit_cond_move.
11919
11920 2003-04-09  Nick Clifton  <nickc@redhat.com>
11921
11922         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
11923         newer.
11924         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
11925         instead of -mno-fpu.
11926         * config/arm/semi.h (ASM_SPEC): Likewise.
11927         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
11928         but only if -msoft-float is specified pass.  Otherwise pass
11929         -mfpu=softvfp.
11930
11931 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11932
11933         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
11934         free_EXPR_LIST_node.
11935
11936 2003-04-08  Roger Sayle  <roger@eyesopen.com>
11937
11938         * fold-const.c (fold):  Use "fold" following build in more places.
11939         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
11940         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
11941
11942 2003-04-08  Roger Sayle  <roger@eyesopen.com>
11943
11944         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
11945         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
11946         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
11947         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
11948         Delete function scope "fcode" variable to avoid shadowing.
11949
11950 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
11951
11952         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
11953         Take into account DWARF_INITIAL_LENGTH_SIZE.
11954
11955 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
11956
11957         * reorg.c (fill_slots_from_thread): When considering changing the
11958         insn following a reg-to-reg copy insn to use the source reg of the
11959         copy, bail out if there's overlap between the registers.
11960
11961 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11962
11963         * function.c (postponed_insns): New.
11964         (purge_addressof_1): Postpone processing of insns if addressofs
11965         are not put into stack.
11966         (purge_addressof): Process postponed insns.
11967
11968 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
11969
11970         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
11971         this is FP_MODE_DOUBLE .
11972         * sh.c (ra.h): #include.
11973         (push_regs): Add second parameter.  Changed all callers.
11974         If necessary, set fpscr before saving floating point registers.
11975         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
11976         do saves / restores with SZ == 1.
11977         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
11978         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
11979         registers are being restored, restore FPSCR only after restoring them.
11980
11981 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
11982
11983         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
11984         regardless of architecture.
11985         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
11986
11987 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
11988
11989         * sh.c (push_regs, calc_live_regs): Return int.  Take single
11990         HARD_REG_SET * parameter.  Changed all callers.
11991
11992 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
11993
11994         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
11995         GOTOFF operand.
11996         (legitimize_pic_address): Move plus outside the unspec.
11997         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
11998         for validity.
11999
12000 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
12001
12002         * gcov-io.h (gcov_save_position): Remove __inline__ from
12003         declaration.
12004
12005 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
12006
12007         * doc/install.texi: Use @command and @samp for single- and
12008         multi-word commands respectively.
12009         * doc/makefile.texi: Likewise.
12010         * doc/sourcebuild.texi: Likewise.
12011
12012 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
12013             Richard Henderson  <rth@redhat.com>
12014
12015         PR c/9516
12016         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
12017         favor of looping and tail recursion for TREE_LIST and binops.
12018
12019 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12020
12021         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
12022         for insns without luid.
12023
12024 2003-04-07  Glen Nakamura  <glen@imodulo.com>
12025
12026         PR opt/8634
12027         * explow.c (maybe_set_unchanging): Don't flag non-static const
12028         aggregate type initializers with RTX_UNCHANGING_P.
12029
12030 2003-04-07  Richard Henderson  <rth@redhat.com>
12031
12032         PR opt/8634
12033         * function.c (purge_addressof_1): Don't try arithmetics for
12034         unchanging memories.
12035
12036 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
12037
12038         * doc/sourcebuild.texi (Test Suites): Document testing support for
12039         gcov and profile-directed optimizations; describe gcc.misc-tests.
12040
12041 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
12042
12043         PR target/10077
12044         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
12045
12046 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
12047
12048         * doc/rtl.texi (Comparison operations): Update to
12049         record the allowed comparison modes.
12050
12051 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
12052
12053         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
12054         V2SI_type_node to opaque_V2SI_type_node.  Rename all
12055         V2SF_type_node to opaque_V2SF_type_node.
12056         (rs6000_init_builtins): Define opaque_V2SI_type_node and
12057         opaque_V2SF_type_node.
12058         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
12059         opaque_V2SF_type_node are opaque types.
12060
12061 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
12062
12063         * gcse.c (replace_store_insn): Use single_set.
12064
12065 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
12066
12067         Change gcov file interface to single file at a time.
12068         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
12069         Convert to C89 prototypes.
12070         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
12071         gcov_error, gcov_modified): New static variables.
12072         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
12073         functions.
12074         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
12075         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
12076         (gcov_read_summary, gcov_write_summary): Adjust.
12077         (gcov_save_position, gcov_reserve_length, gcov_write_length):
12078         Adjust.
12079         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
12080         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
12081         (da_file_position, da_file_seek, da_file_write, da_file_read):
12082         Remove.
12083         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
12084         * gcov.c (gcov_type): Don't typedef here.
12085         (IN_GCOV): #define
12086         (read_graph_file, read_count_file): Adjust.
12087         * gcov-dump.c (gcov_type): Don't typedef here.
12088         (IN_GCOV): #define.
12089         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
12090         Remove FILE parameter, adjust.
12091         (struct tag_format): Adjust proc member.
12092         (dump_file): Adjust.
12093         * libgcov.c (IN_LIBGCOV): #define.
12094         (gcov_exit): Adjust.
12095         * loop-init.c: Don't #include gcov-io.h
12096         * profile.c (struct counts_entry): New structure to hold counter
12097         values.
12098         (struct section_reference, struct da_index_entry): Remove.
12099         (bbg_file, da_file): Remove.
12100         (htab_counts_index_hash, htab_counts_index_eq,
12101         htab_counts_index_del): Replace with ...
12102         (htab_counts_entry_hash, htab_counts_entry_eq,
12103         htab_counts_entry_del): ... these.
12104         (cleanup_counts_index, index_counts_file): Remove.
12105         (read_counts_file): New function.
12106         (get_exec_counts): Adjust.
12107         (compute_branch_probabilities): Don't free the exec counts here.
12108         (branch_prob): Adjust.
12109         (init_branch_prob): Adjust.
12110         (end_branch_prob): Adjust.
12111
12112 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
12113
12114         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12115         -mfloat-gprs.
12116
12117         * config/rs6000/rs6000.c: Delete rs6000_fprs.
12118         Declare rs6000_float_gprs.
12119         Declare rs6000_float_gprs_string.
12120         (rs6000_parse_float_gprs_option): New.
12121         (rs6000_override_options): Genericize rs6000_parse_* calls to use
12122         rs6000_parse_yes_no_option.
12123         Change check for cpu=8540, to use TARGET_E500.
12124         (rs6000_parse_isel_option): Delete.
12125         (rs6000_parse_spe_option): Delete.
12126         (rs6000_parse_vrsave_option): Delete.
12127
12128         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
12129         Define rs6000_float_gprs_string.
12130         (TARGET_OPTIONS): Add rs6000_float_gprs option.
12131
12132         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
12133
12134         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
12135
12136 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
12137
12138         PR opt/10024
12139         * cfglayout.c (cfg_layout_redirect_edge):
12140         Redirect any branch edges unified with the fallthru one.
12141         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
12142         case fallthru edges when called via cfglayout.c
12143
12144 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
12145
12146         * c-typeck.c (output_init_element): Check for type == error_mark_node.
12147
12148 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
12149
12150         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
12151         split.
12152         (a splitter): Do zero-extension via HImode.
12153
12154 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
12155
12156         * doc/invoke.texi: Eliminate extra white-space caused by
12157         @gccoptlist{ on its own line.
12158         * doc/invoke.texi: Ensured there are two spaces between each option.
12159         * doc/invoke.texi: Re-wrapped option lines that were too wide.
12160         Added @gol to options that didn't have them.
12161
12162 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
12163
12164         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
12165
12166 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
12167
12168         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
12169         at the sizes of the relevant structures, rather than relying
12170         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
12171         sizes of any such we don't know about.  Use
12172         lang_hooks.identifier_size for IDENTIFIER_NODE.
12173
12174         (initializer_zerop): Use CONSTRUCTOR_ELTS.
12175         * tree.def: Update commentary.  Make fourth element of
12176         the definition for all 'c' and 'x' nodes zero.
12177
12178         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
12179         * langhooks-def.h: Update to match.
12180         * langhooks.c: New default, lhd_tree_size.
12181
12182         * c-common.def (SRCLOC): Kill.
12183         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
12184         Remove entirely - was already #if-ed out.
12185
12186
12187 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
12188
12189         * mklibgcc.in: Use a here document to avoid running afoul of
12190         shells that generate control-A from "echo \1".
12191
12192 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
12193
12194         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
12195         option.
12196
12197         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12198         rs6000_spe.
12199
12200         * config/rs6000/eabi.h (TARGET_E500): Define.
12201
12202         * config/rs6000/rs6000.h (TARGET_E500): Define.
12203         (TARGET_OPTIONS): Add spe= option.
12204         Declare rs6000_spe and rs6000_spe_string extern.
12205
12206         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
12207         Change TARGET_SPE to TARGET_E500.
12208         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
12209         !TARGET_FPRS.
12210         (print_operand): Same.
12211         (rs6000_generate_compare): Same.
12212         (output_cbranch): Same.
12213         (rs6000_spe): Declare.
12214         (rs6000_spe_string): Declare.
12215         (rs6000_override_options): Call rs6000_parse_spe_option.
12216         (rs6000_parse_spe_option): New.
12217
12218 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
12219
12220         * hashtable.c (gcc_obstack_init): Delete this function
12221         and everything related to it.
12222         * hashtable.h: Remove prototype.
12223         * bitmap.c (bitmap_element_allocate): Cleanup redundant
12224         defines.  Cleanup some unnecessary whitespace.
12225         * defaults.h (obstack_chunk_alloc): Redefine with
12226         appropriate casts for libiberty obstacks.
12227         (obstack_chunk_free): Ditto.
12228         (OBSTACK_CHUNK_SIZE): Define, default to 0.
12229         (gcc_obstack_init): Define as a call to _obstack_begin.
12230         * tree.c (print_obstack_statistics): Delete this unused
12231         function.
12232         * tree.h (obstack): Don't forward-declare.
12233         (print_obstack_statistics): Delete prototype.
12234         (print_obstack_name): Ditto.
12235         (gcc_obstack_init): Ditto.
12236         * rtl.h (gcc_obstack_init): Ditto.
12237         * java/jv-scan.c (gcc_obstack_init): Delete this
12238         function, its prototype and related defines.
12239         * java/jvgenmain.c (gcc_obstack_init): Delete this
12240         function, and related defines.
12241         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
12242         (obstack_chunk_free): Ditto
12243
12244 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
12245
12246         * dbxout.c (dbxout_handle_pch): Move prototype out from
12247         #if defined DBX_DEBUGGING_INFO.
12248
12249 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
12250
12251         * gcov.c (struct arc_info): Replace local_span with cycle.
12252         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
12253         (solve_flow_graph): Set is_call_return.
12254         (add_line_counts): Adjust. In block mode, blocks attach to last line.
12255         (accumulate_line_counts): Find graph cycles, not spanning tree.
12256         (output_branch_count): Adjust.
12257         (output_lines): Adjust.
12258         * doc/gcov.texi: Update.
12259
12260 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
12261
12262         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
12263         the second alternative to "#".
12264
12265 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
12266
12267         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
12268         (single_zero_operand): Likewise.
12269
12270 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
12271
12272         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
12273         * df.c: Include alloc-pool.h, not obstack.h.
12274         (df_ref_obstack): Remove.
12275         (df_ref_pool, df_link_pool): Add pools.
12276         (df_alloc): Init the new pools.
12277         (df_free): And free them.
12278         (df_link_create): Use the pools.
12279         (df_ref_create): Ditto.
12280
12281 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
12282
12283         * simplify-rtx.c: Fix formatting.
12284
12285 2003-04-05  Andrew Pinski  <apinski@apple.com>
12286
12287         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
12288         reg with reg1 == reg2 and offset1 = -8.
12289
12290 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
12291
12292         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
12293         multiply costs.  Correct Power4 divide costs.
12294         * config/rs6000/power4.md: Restore multiply and FP latency.
12295
12296 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12297
12298         * alias.c (find_base_term): Export.
12299         * rtl.h (find_base_term): Declare.
12300         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
12301         instead of flag_exceptions.  Move test for parameter passing ...
12302         (store_killed_in_insn): ... here.
12303
12304 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12305
12306         PR bootstrap/10267
12307         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
12308         for configuring.
12309
12310 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
12311
12312         * dbxout.c (scope_labelno): Add GTY.
12313         (have_used_extensions): Add GTY.
12314         (source_label_number): Add GTY.
12315         (lastfile): Add GTY.
12316         (lastfile_is_base): New.
12317         (base_input_file): New.
12318         (dbxout_handle_pch): New.
12319         (dbx_debug_hooks): Add handle_pch.
12320         (xcoff_debug_hooks): Likewise.
12321         (dbxout_function_end): Remove scope_labelno.
12322         (dbxout_init): Set base_input_file.
12323         (dbxout_handle_pch): New.
12324         (dbxout_source_file): Honour lastfile_is_base.
12325         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
12326         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
12327         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
12328         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
12329         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
12330         * debug.h (struct gcc_debug_hooks): Add handle_pch.
12331         * c-pch.c (pch_init): Don't call start_source_file, but do call
12332         handle_pch.
12333         (c_common_write_pch): Call handle_pch.
12334         (c_common_read_pch): Don't call start_source_file,
12335         or end_source_file.
12336
12337 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
12338
12339         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
12340         use of default attributes to agree MEM_ALIGN macro.
12341
12342 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
12343
12344         * dbxout.c (dbxout_type): When printing type index of range type
12345         whose bounds are printed in octal format, print type of parent type if
12346         it exists so enumerated type descriptions are not transformed
12347         into unsigned types.
12348
12349 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
12350
12351         * config/h8300/h8300-protos.h: Add a prototype for
12352         compute_a_shift_cc.
12353         * config/h8300/h8300.c (shift_one): Update the CC status.
12354         (shift_two): Likewise.
12355         (output_a_shift_cc): Set cc_inline and cc_special.
12356         (compute_a_shift_cc): New.
12357         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
12358
12359 2003-04-04  Richard Henderson  <rth@redhat.com>
12360
12361         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
12362
12363 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
12364
12365         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
12366         * fixinc/fixincl.x: Rebuilt.
12367         * fixinc/tests/base/stdio.h: Regenerated.
12368
12369 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
12370
12371         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
12372
12373 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
12374
12375         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
12376         (NORMAL_MODE).
12377         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
12378
12379 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12380
12381         * doc/contrib.texi (Contributors): Add entries for Wolfgang
12382         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
12383         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
12384         Danny Smith, and Ulrich Weigand.
12385         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
12386         entry.
12387
12388 2003-04-04  Nick Clifton  <nickc@redhat.com>
12389
12390         * config/sparc/sol2-bi.h: Revert previous delta.
12391         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
12392
12393 2003-04-04  Nick Clifton  <nickc@redhat.com>
12394
12395         * config/v850/v850.c (expand_prologue): Only use register save
12396         helper functions if long calls are not being used.
12397         Add a clobber of r11 id using long calls.
12398         (pattern_is_ok_for_prologue): Account for the extra clobber.
12399         (construct_save_jarl): Likewise.
12400         * config/v850/v850.md (prolog pattern): Do not use this pattern
12401         for v850e's.
12402
12403 2003-04-04  Andreas Schwab  <schwab@suse.de>
12404
12405         * stor-layout.c (layout_decl): Avoid syntax error in last change
12406         when PCC_BITFIELD_TYPE_MATTERS is defined but not
12407         EMPTY_FIELD_BOUNDARY.
12408
12409 2003-04-03  Jason Merrill  <jason@redhat.com>
12410
12411         PR c/10175
12412         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
12413         Look backwards for a line note.
12414
12415 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
12416
12417         * fix-header.c (read_scan_file): Defer switch processing.
12418
12419 2003-04-03  Matt Austern  <austern@apple.com>
12420
12421         * cpppch.c (reset_ht): Remove.
12422         (cpp_read_state): Remove loop to reset hashtable identifiers.
12423         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
12424         after pch file is written.
12425         * ggc.h (gt_pch_fixup_stringpool): Declare.
12426         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
12427         hashnode's value to another hashtable, then clear the original.
12428         (saved_ident_hash): Define.
12429         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
12430         store definitions in ident_hash, and clear ident_hash.
12431         (gt_pch_fixup_stringpool): Define.  Restore definitions from
12432         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
12433
12434 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
12435
12436         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
12437
12438 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12439
12440         PR optimization/10157
12441         * gcse.c (can_copy_p): Rename it to can_copy.
12442         (can_copy_init_p): Remove.
12443         (compute_can_copy): Use can_copy instead of can_copy_p.
12444         (can_copy_p): New exported function. Call compute_can_copy.
12445         (hash_scan_set): Use it.
12446         (gcse_main): Don't call compute_can_copy.
12447         (bypass_jumps): Don't call compute_can_copy.
12448         * rtl.h (can_copy_p): Declare.
12449         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
12450         copy if the mode doesn't support copy operations.
12451
12452 2003-04-03  Jason Merrill  <jason@redhat.com>
12453
12454         * Makefile.in (unstrap): Also remove stage_last.
12455
12456         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
12457         (dwarf2out_source_line): Don't do anything if line==0.
12458
12459         * stor-layout.c (do_type_align): New fn, split out from...
12460         (layout_decl): ...here.  Do all alignment calculations for
12461         FIELD_DECLs here.
12462         (update_alignment_for_field): Not here.
12463         (start_record_layout, debug_rli): Remove unpadded_align.
12464         * tree.h (struct record_layout_info_s): Remove unpadded_align.
12465         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
12466         or DECL_MODE on the CONST_DECLs.
12467         (finish_struct): Don't mess with DECL_ALIGN.
12468
12469 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
12470
12471         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
12472
12473 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
12474
12475         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
12476         function is an interrupt handler.
12477
12478         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
12479         restoring target registers with EH_RETURN_STACKADJ_RTX; use
12480         multiple registers in round-robin fashion.
12481
12482 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12483
12484         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
12485         * system.h (CHAR_BITFIELD): New.
12486
12487 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
12488
12489         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12490         and LE.
12491         (another peephole2): Likewise.
12492
12493 2003-04-03  Nick Clifton  <nickc@redhat.com>
12494
12495         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
12496         (DEF_ARCH64_SPEC): Likewise.
12497
12498 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
12499
12500         * i386.c (constant_address_p): Use legitimate_constant_p.
12501         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
12502
12503 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12504
12505         * config/h8300/h8300-protos.h: Add a prototype for
12506         gtle_operator.
12507         * config/h8300/h8300.c (gtle_operator): New.
12508         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
12509         gtle_operator.
12510         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12511         and LE.
12512
12513 2003-04-02  Richard Henderson  <rth@redhat.com>
12514
12515         * libgcc-std.ver (_Unwind_GetCFA): New.
12516         * unwind-dw2.c (_Unwind_GetCFA): New.
12517         * unwind-libunwind.c (_Unwind_GetCFA): New.
12518         * unwind-sjlj.c (_Unwind_GetCFA): New.
12519         * unwind.h: Declare it.
12520
12521 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
12522
12523         PR inline-asm/8088
12524         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
12525         when MMX/SSE is not available.
12526
12527 2003-04-02  Mike Stump  <mrs@apple.com>
12528
12529         * doc/install.texi (Specific): Update pointers to apple.com.
12530
12531 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
12532
12533         * i386.c (override_options):  Disable red zone by default on i386.
12534         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
12535         Do not test TARGET_64BIT together with TARGET_RED_ZONE
12536
12537 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12538
12539         * config/h8300/h8300.md (a peephole2): Tighten the condition.
12540
12541 2003-04-02  Richard Henderson  <rth@redhat.com>
12542
12543         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
12544
12545 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12546
12547         * config/h8300/h8300.md (a peephole2): New.
12548
12549 2003-04-02  Richard Henderson  <rth@redhat.com>
12550
12551         * except.c (sjlj_find_directly_reachable_regions): Recognize when
12552         must-not-throw region has been deleted.
12553
12554 2003-04-02  Richard Henderson  <rth@redhat.com>
12555
12556         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
12557         optimization when flag_exceptions not enabled.
12558
12559 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
12560
12561         * config/rs6000/rs6000.c
12562         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
12563         macros.
12564         (rs6000_issue_rate): Add case for 8540.
12565         (rs6000_use_sched_lookahead): New function.
12566
12567         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
12568         units into MU ones.
12569         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
12570         reservation before retirement.
12571         (ppc8540_multiply, ppc8540_load, ppc8540_store,
12572         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
12573         Remove additional cycle in the reservation before retirement.
12574         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
12575         reservation of ppc8540_issue.
12576
12577 2003-04-02  Andreas Schwab  <schwab@suse.de>
12578
12579         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
12580
12581 2003-04-01  Richard Henderson  <rth@redhat.com>
12582
12583         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
12584         notes for nothrow calls if flag_forced_unwind_exceptions.
12585         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
12586         (sjlj_find_directly_reachable_regions): Likewise.
12587         (reachable_handlers): Likewise.
12588         (can_throw_external): Likewise.
12589         (collect_one_action_chain): Record cleanups after catch-all and
12590         must-not-throw if flag_forced_unwind_exceptions.
12591         * flags.h (flag_forced_unwind_exceptions): Declare.
12592         * toplev.c (flag_forced_unwind_exceptions): New.
12593         (lang_independent_options): Add it.
12594         * doc/invoke.text: Add it.
12595
12596 2003-04-01  David Mosberger <davidm@hpl.hp.com>
12597
12598         * config/ia64/crti.asm: Clean up trailing whitespace.
12599         Remove trailing hashes (#) from identifiers.
12600
12601         * config/ia64/crtn.asm: Ditto.
12602
12603         * config/ia64/crtend.asm: Remove trailing hashes (#) from
12604         identifiers.
12605         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
12606         directives.  Drop explicit bundling---it just makes the code
12607         harder to read.  Don't save/restore gp needlessly.
12608
12609         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
12610         identifiers (they're only needed if the identifier would clash
12611         with a register name otherwise).
12612         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
12613         directives.  Drop explicit bundling---it just makes the code
12614         harder to read.
12615         (__do_jv_register_classes): Ditto.
12616         (.fini_array): Remove "progbits" (newer
12617         assemblers don't like wrong section-types).
12618         (.init_array): Ditto.
12619
12620 2003-04-01  Roger Sayle  <roger@eyesopen.com>
12621
12622         PR fortran/9974
12623         * gcse.c (reg_killed_on_edge): New function to test whether the
12624         given reg is overwritten by any instruction queued on an edge.
12625         (bypass_block): Ignore substitutions killed on incoming edges.
12626         Don't bypass outgoing edges that have queued instructions.
12627
12628 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
12629
12630         * real.h (EXP_BITS): Make room for...
12631         (struct real_value): ... added canonical bit.
12632         (struct real_format): Added pnan.
12633         (mips_single_format, mips_double_format, mips_extended_format,
12634         mips_quad_format): New.
12635         * real.c: Copy p to pnan in all formats.
12636         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
12637         (real_nan): Use pnan to compute significand's shift.
12638         (real_identical): Disregard significand in canonical
12639         NaNs.
12640         (real_hash): Likewise.  Take signalling into account.
12641         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
12642         Disregard significand bits in canonical NaNs.  Set all bits of
12643         canonical NaN if !qnan_msb_set.
12644         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
12645         qnan_msb_set to tell the base double format.
12646         (ibm_extended_format): Use 53 as pnan.
12647         (mips_single_format, mips_double_format, mips_extended_format,
12648         mips_quad_format): Copied from the corresponding ieee/ibm
12649         formats, with qnan_msb_set false.
12650         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
12651         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
12652         * config/mips/mips.c (override_options): Use mips_single_format
12653         and mips_double_format.  Default TFmode to mips_quad_format.
12654         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
12655         * config/mips/t-irix6: Likewise.
12656         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
12657         * config/fp-bit.c (pack_d, unpack_d): Obey it.
12658
12659 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
12660
12661         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
12662         (live_image_destructor): Reset image to initial state.
12663         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
12664
12665 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
12666
12667         * config/sparc/sparc.c (input_operand): Accept bare
12668         CONSTANT_P_RTX operands.
12669
12670 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12671
12672         * gcse.c (struct ls_expr): Added pattern_regs field.
12673         (ldst_entry): Initialize it.
12674         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
12675         (store_ops_ok): Use regs precomputed by them.
12676         (find_loads, store_killed_in_insn, load_kills_store): Change return
12677         type to bool.
12678         (store_killed_before, store_killed_after): Take position of register
12679         set in account.
12680         (reg_set_info): Store position of the setter.
12681         (gcse_main): Enable store motion.
12682         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
12683         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
12684         sharing.
12685         (simple_mem): Enable store motion of non-symbol mems.
12686         (regvec): Type changed.
12687         (LAST_AVAIL_CHECK_FAILURE): New.
12688         (compute_store_table_current_insn): New.
12689         (build_store_vectors): Computation of availability and anticipatability
12690         moved ...
12691         (compute_store_table, find_moveable_store): ... here.
12692         (delete_store): Remove senseless comment.
12693         (store_motion): Reorganize.
12694
12695 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
12696
12697         * config/mips/mips.c (override_options): Provide mappings for
12698         HI_REGNUM and LO_REGNUM.
12699         * config/mips/mips.h (MD_DBX_FIRST): Define.
12700
12701 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12702
12703         * combine.c (merge_outer_ops): Fix typo.
12704
12705         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
12706
12707 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
12708
12709         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
12710         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
12711         imul_compare.  Add lmul_compare.
12712         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
12713         in second pair of dispatch slots.  Model stores more accurately.
12714         Tweak multiply model.  Add bypasses for CR instructions dependent
12715         on complicated compares.
12716         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
12717         (muldi3): Add lmul_compare patterns.
12718         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
12719         and FPSTORE_UX to split instructions and add COMPARE,
12720         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
12721         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
12722         (rs6000_rtx_costs): Separate POWER4 multiply case.
12723
12724 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
12725
12726         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
12727         Do nothing if __builtin_return_address was not used.
12728
12729 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
12730
12731         * i386.md (test patterns):  Allow memory operand in operand1.
12732
12733 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
12734
12735         * testsuite/gcc.c-torture/execute/simd-3.c: New.
12736
12737         * expr.c (expand_expr): Handle VECTOR_CST.
12738         (const_vector_from_tree): New.
12739
12740         * varasm.c (output_constant): Handle VECTOR_CST.
12741
12742         * c-typeck.c (digest_init): Build a vector constant from a
12743         VECTOR_TYPE.
12744
12745         * config/rs6000/rs6000.c: Remove prototype for
12746         easy_vector_constant.
12747         (easy_vector_constant): Add mode parameter.  Rewrite to handle
12748         more easy constants.
12749         (rs6000_emit_move): Pass mode to easy_vector_constant.
12750         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
12751         (emit_easy_vector_insn): New.
12752         (easy_vector_same): New.
12753         (EASY_VECTOR_15): New macro.
12754         (EASY_VECTOR_15_ADD_SELF): New macro.
12755         (bdesc_2arg): Rename to xorv2si3.
12756         (easy_vector_constant_add_self): New.
12757         (input_operand): Allow vector constants.
12758
12759         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12760         easy_vector_constant, easy_vector_constant_add_self.
12761         (EXTRA_CONSTRAINT): Add 'W'.
12762
12763         * config/rs6000/rs6000-protos.h: Add prototype for
12764         easy_vector_constant, emit_easy_vector_insn.
12765
12766         * config/rs6000/altivec.md (xorv8hi3): New.
12767         (xorv16qi3): New.
12768         Remove all _const0 patterns.
12769         (movv4si_internal): Rewrite to use code.  Add vector constant to
12770         vector alternative.  Add splitter.
12771         (movv8hi_internal): Same.
12772         (movv16qi_internal): Same.
12773         (movv4sf_internal): Same.
12774         Change the unspecs for vspltis* to use constants.
12775
12776         * config/rs6000/spe.md ("xorv4hi3"): New.
12777         ("spe_evxor"): Rename to xorv2si3.
12778         ("xorv1di3"): New.
12779         Remove all _const0 patterns.
12780         (movv2si_internal): Rewrite to use code.  Add vector constant to
12781         alternatives.  Add splitter.
12782         (movv4hi_internal): Add vector constant to alternatives.
12783         (movv1di_internal): Same.
12784         (movv2sf_internal): Same.
12785
12786 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
12787
12788         PR c/9936
12789         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
12790         variably-sized arrays in parameters.
12791         (set_save_expr_context): New function.
12792         (c_expand_body): Use it, via walk_tree.
12793
12794 2003-03-31  Eric Christopher  <echristo@redhat.com>
12795
12796         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
12797         (combinable_i3pat): Remove call to expand_field_assignment and
12798         #if 0'd code.
12799
12800 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
12801
12802         PR c++/10278
12803         * c-common.c (finish_label_address_expr): Handle the
12804         error_mark_node.
12805
12806 2003-03-31  Richard Henderson  <rth@redhat.com>
12807
12808         * real.c (real_identical): Reorg so as to not compare
12809         signalling for normals.
12810
12811 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12812
12813         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
12814
12815 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12816
12817         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
12818         notes as they are boggus.
12819         (m68hc11_gen_movqi): Likewise.
12820
12821 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
12822
12823         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
12824         save the soft registers after the frame pointer so that gdb can unwind
12825         the frame more easily.
12826         (expand_epilogue): Likewise in opposite order; allow to use X register
12827         as scratch if the return value is by reference.
12828
12829 2003-03-31  Jason Merrill  <jason@redhat.com>
12830
12831         PR java/10145
12832         * stor-layout.c (update_alignment_for_field): Respect
12833         DECL_USER_ALIGN for zero-length bitfields, too.
12834         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
12835         fields.
12836
12837 2003-03-31  Matt Austern  <austern@apple.com>
12838
12839         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
12840         (count_defs): Keep track of number of defs as well as total size.
12841         (write_defs): Put every definition in cpp_savedstate's defs array.
12842         (comp_hashnode): Define.  Comparison function for qsort.
12843         (cpp_write_pch_deps): Sort definitions before writing them.
12844         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
12845         (collect_ht_nodes): Define.
12846         (cpp_valid_state): When verifying that undefined identifiers in
12847         the pch file are still undefined, read a sorted list of undefined
12848         identifiers, collect all defined identifiers into a sorted list,
12849         and walk through both lists to make sure there's no match.
12850
12851 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12852
12853         * config/h8300/h8300.md (a peephole2): New.
12854
12855 2003-03-31  Michael Matz  <matz@suse.de>
12856
12857         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
12858
12859 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
12860
12861         PR target/10177
12862         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
12863         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
12864         all call-clobbered registers as used.
12865
12866 2003-03-31  Michael Matz  <matz@suse.de>
12867
12868         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
12869         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
12870
12871 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
12872
12873         * gcov.c: Add -a & -u options.
12874         (struct arc_info): Add local_span, is_call_non_return,
12875         is_nonlocal_return, is_unconditional flags, remove is_call flag.
12876         (struct block_info): Add flags, is_call_site, is_nonlocal_return
12877         members. Make encodings a union with span member.
12878         (struct function_info): Add blocks_executed, line, src, line_next
12879         members.
12880         (struct coverage_info): Make branches a union with blocks member.
12881         (struct source_info): Add functions member.
12882         (object_summary, program_count): New global variables.
12883         (flag_all_blocks, flag_unconditional): New flags.
12884         (find_source, output_branch_count): New functions.
12885         (print_usage): Adjust.
12886         (options): Adjust.
12887         (process_args): Adjust.
12888         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
12889         <GCOV_TAG_BLOCKS>: Read flags.
12890         <GCOV_TAG_LINES>: Adjust.
12891         (read_count_file): Process SUMMARY tags.
12892         (solve_flow_graph): Set is_unconditional and clear is_call_site
12893         appropriately.
12894         (add_branch_counts): Adjust. Don't count unconditional branches.
12895         (add_line_counts): Deal with all-blocks mode, accumulate block
12896         coverage.
12897         (accumulate_line_counts): Adjust, generate local spanning tree for
12898         all-blocks mode.
12899         (output_lines): Adjust.
12900         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
12901         * doc/gcov.texi: Document.
12902
12903 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12904
12905         * config/h8300/h8300.md: Organize peephole2's that transform
12906         (compare (reg:HI) (const_int)).
12907
12908 2003-03-31  Roger Sayle  <roger@eyesopen.com>
12909
12910         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
12911         (init_emit_once): Initialize dconstm2 and dconsthalf here.
12912         * real.h (dconstm2, dconsthalf): Add prototypes here.
12913         * real.c (real_sqrt): Use dconsthalf rather than local copy.
12914         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
12915         exp(x/2.0) remember to fold the division if possible.
12916         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
12917         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
12918         1.0/(x*x) and pow(x,0.5) as sqrt(x).
12919
12920 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
12921
12922         * config/h8300/h8300.md (a new peephole2): New.
12923
12924 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
12925
12926         * gcse.c (simple_mem): Return false for floating-point accesses
12927         if flag_float_store is true.
12928
12929 2003-03-30  Roger Sayle  <roger@eyesopen.com>
12930
12931         * gcse.c (gcse_constant_p): New function to identify constants
12932         suitable for constant propagation, including COMPARE with two
12933         integer constant arguments.
12934         (hash_scan_set): Use gcse_constant_p.
12935         (find_avail_set): Likewise.
12936         (cprop_insn): Likewise.
12937         (do_local_cprop): Likewise.
12938         (find_implicit_sets): Likewise.
12939         (find_bypass_set): Likewise.
12940
12941 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
12942
12943         * except.h: Remove definition of varray_type.
12944
12945 2003-03-30  Richard Henderson  <rth@redhat.com>
12946
12947         PR opt/10011, opt/10252:
12948         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
12949         before post-gcse cse pass.
12950
12951 2003-03-30  Roger Sayle  <roger@eyesopen.com>
12952
12953         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
12954
12955 2003-03-30  DJ Delorie  <dj@redhat.com>
12956
12957         * profile.c (instrument_edges): Make sure any newly created
12958         jump insns have correct jump label info.
12959
12960 2003-03-30  Richard Henderson  <rth@redhat.com>
12961
12962         * cfgbuild.c (make_edges): Use tablejump_p.
12963         * cfgcleanup.c (label_is_jump_target_p): Likewise.
12964         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
12965         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
12966         (try_redirect_by_replacing_jump): Likewise.
12967         (redirect_edge_and_branch): Likewise.
12968         * cse.c (fold_rtx): Likewise.
12969         * jump.c (delete_related_insns): Likewise.
12970         * rtlanal.c (get_jump_table_offset): Likewise.
12971         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
12972
12973 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12974
12975         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
12976         (STRICT2_WARN): Likewise.
12977
12978 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12979
12980         PR other/6955
12981         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
12982         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
12983
12984 2003-03-30  Richard Henderson  <rth@redhat.com>
12985
12986         PR c/10083
12987         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
12988         don't zero_extend const inputs.
12989
12990 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
12991
12992         * reload1.c (reload_cse_move2add): Fix a comment typo.
12993
12994 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
12995
12996         * config/h8300/h8300.md (a peephole2): Remove useless code.
12997
12998 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
12999
13000         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
13001         (*iorsi3_and_lshiftrt): Likewise.
13002         (*iorsi3_zero_extract): Likewise.
13003
13004 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
13005
13006         * config/h8300/h8300.md (*insv_si_8_8): New.
13007         (*insv_si_8_8_lshiftrt_8): Likewise.
13008         (a peephole2): Likewise.
13009
13010 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13011
13012         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
13013         Uniformly use bugfix instead of bug fix.
13014
13015 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13016
13017         PR doc/895
13018         * ONEWS: Remove those items that already appear in the EGCS
13019         release notes on our web pages.
13020
13021 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
13022
13023         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
13024         TARGET_HARD_FLOAT.  Reformat.
13025         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
13026
13027 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
13028
13029         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
13030         work on Solaris 2.5.1.
13031
13032 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
13033
13034         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
13035         section of h8300.md
13036         (*addsi3_and_nor_r_1): Likewise.
13037
13038 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
13039
13040         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
13041         set up before any trapping memory access if flag_non_call_exceptions.
13042
13043 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
13044
13045         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
13046
13047         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
13048
13049 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
13050
13051         * configure.in: Clarify comments.
13052         * configure: Regenerate.
13053
13054 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
13055
13056         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
13057         label even if pool empty when generating PIC.
13058         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
13059
13060 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
13061             Dhananjay Deshpande  <dhananjayd@kpit.com>
13062
13063         PR target/10205
13064         * config/h8300/h8300.c (h8300_initial_elimination_offset):
13065         Correct the offset computation when TARGET_NORMAL.
13066
13067 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
13068
13069         PR target/10067
13070         * config/sparc/sparc.md (jump pattern): Correct order
13071         when issuing the annuling marker.
13072
13073 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
13074
13075         PR c/8281
13076         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
13077         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
13078
13079 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
13080
13081         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13082         globalize_label.
13083         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13084         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13085         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13086         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13087         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13088         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13089         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
13090
13091 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
13092
13093         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
13094         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
13095         notes after hoisting.
13096         (load_mems): Adjust replace_loop_mems call.
13097
13098 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
13099             Richard Henderson  <rth@redhat.com>
13100
13101         PR target/10114 and PR target/10084
13102         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
13103
13104 2003-03-27  Richard Henderson  <rth@redhat.com>
13105
13106         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
13107
13108 2003-03-27  Roger Sayle  <roger@eyesopen.com>
13109
13110         * fold-const.c (fold_inf_compare):  New function to simplify FP
13111         comparisons against +Infinity or -Infinity.
13112         (fold):  Optimize floating point comparisons against Infs and NaNs.
13113
13114 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
13115
13116         * libgcov.c: Provide only dummy functions if libc is not available.
13117
13118 2003-03-27  Richard Henderson  <rth@redhat.com>
13119
13120         * real.h (struct real_value): Add signalling.
13121         (EXP_BITS): Decrement.
13122         * real.c (get_canonical_qnan): Don't set MSB-1.
13123         (get_canonical_snan): Likewise.  Set signalling.
13124         (real_identical): Compare signalling.
13125         (round_for_format): Remove force-one-bit on code.
13126         (real_nan): Likewise.  Set signalling.
13127         (encode_ieee_single): Add force-one-bit code; honor signalling.
13128         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
13129         (decode_ieee_single): Set signalling.
13130         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
13131
13132 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
13133
13134         PR ada/9953
13135         * ada/Makefile.in (gnatlib configuration for HPUX): Split
13136         the general section for HPUX into specific sections for
13137         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
13138         11 case.
13139
13140 2003-03-27  Glen Nakamura  <glen@imodulo.com>
13141
13142         PR opt/10087
13143         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
13144         while incrementing giv.
13145         (record_biv): Check for duplicate biv locations and
13146         set (struct induction *) v->same if found.
13147
13148 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
13149
13150         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
13151         v0.9 API change: replace read of UNW_REG_HANDLER with
13152         unw_get_proc_info().
13153         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
13154         with unw_get_proc_info().
13155         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
13156         unw_get_proc_info().
13157
13158 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
13159
13160         * config/rs6000/8540.md: Use presence_set instead of absence_set.
13161
13162 2003-03-26  Richard Henderson  <rth@redhat.com>
13163
13164         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
13165
13166 2003-03-26  Roger Sayle  <roger@eyesopen.com>
13167
13168         PR bootstrap/10051, PR bootstrap/10169.
13169         * mips-tfile.c (init_file): Don't provide a static initializer.
13170         (initialize_init_file): Initialize the contents of init_file.
13171         (add_file): Call initialize_init_file if not already initialized.
13172
13173 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
13174
13175         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
13176         registers used for global asm variables.
13177         (s390_frame_info, s390_arg_frame_offset): Likewise.
13178         (s390_emit_prologue, s390_emit_epilogue): Likewise.
13179
13180 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
13181
13182         * config/rs6000/8540.md: New file.
13183
13184         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
13185         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
13186         reservations for imul.
13187
13188         * config/rs6000/rs6000.md: Include 8540.md.  Change
13189         delayed_compare onto mult_compare for insns generating
13190         multiplication.
13191         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
13192         New type attribute values.
13193
13194         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
13195         fpsimple instead of fp.
13196         (*divsf3_gpr): Use type vecfdiv instead of fp.
13197         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
13198         instead of vecfloat.
13199         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
13200         (spe_brinc): Use type brinc instead of veccomplex.
13201         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
13202         veccomplex.
13203         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
13204         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
13205         *movv2sf_internal): Define type attribute values for all
13206         alternatives.
13207         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
13208         of fpcompare.
13209         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
13210         instead of fpcompare.
13211
13212 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
13213
13214         * config/rs6000/power4.md: Allow delay between dispatch and
13215         function units for simple instructions.  Correct store units.
13216         Allow branch to occupy as many dispatch slots as necessary.
13217
13218 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
13219
13220         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
13221         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
13222         zero extend old to it.
13223         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
13224         operand.
13225
13226 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
13227
13228         PR target/7784
13229         * reload.c (find_reloads_address): Handle
13230         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
13231         all base registers.
13232
13233 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
13234
13235         PR other/10203
13236         * version.c: Reference the GCC web site in the URL.
13237
13238 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
13239
13240         * c-incpath.c (add_standard_paths): Add both "translated" and
13241         non-translated header paths.
13242
13243 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
13244
13245         * doc/install.texi (*-*-freebsd*): Update with known status.
13246
13247 2003-03-21  Jason Merrill  <jason@redhat.com>
13248
13249         PR optimization/10171
13250         * unroll.c (unroll_loop): Don't delete the jump at the end unless
13251         we also delete a jump at the beginning.
13252
13253 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
13254
13255         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
13256         contributor.
13257
13258 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
13259
13260         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
13261         constants are not expensive.
13262
13263 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
13264
13265         PR opt/10056
13266         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
13267         jump jumping to the next instruction.
13268         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
13269
13270 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13271
13272         * doc/passes.texi (Passes): Properly document that we do not
13273         perform jump2 any longer; remove command-line option -dJ.
13274
13275 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
13276
13277         PR optimization/8746
13278         * config/i386/i386.md (and promoting splitters): Disable HImode to
13279         SImode promoting when the sign bit matters and is not preserved, or
13280         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
13281         for size.
13282
13283 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
13284
13285         * config/h8300/h8300.md (a peephole2): Extend to support loads
13286         in QImode and HImode.
13287
13288 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
13289
13290         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
13291         _return_far
13292         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
13293         (MULTILIB_EXCEPTIONS): Likewise.
13294         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
13295         by calling some board support routine.
13296         ("call_value"): Likewise.
13297         ("*return_void"): Likewise for return.
13298         ("*return_16bit"): Likewise.
13299         ("*return_32bit"): Likewise.
13300         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
13301         for 68HC11 too.
13302         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
13303         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
13304         -mlong-calls for 68HC11.
13305         * config/m68hc11/larith.asm (declare_near): New macro.
13306         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
13307         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
13308         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
13309         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
13310         (__mulhi32): Likewise.
13311         (ret): Update macro for 68HC11.
13312         (__far_trampoline): Implement for 68HC11.
13313         (__call_a16, __call_a32, __return_void, __return_16): New support
13314         routines for 68HC11 memory bank switching calling support.
13315         (__return_32): Likewise.
13316
13317 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
13318
13319         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
13320
13321 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
13322
13323         * doc/install.texi (Testing): Mention test result links from build
13324         status pages.
13325
13326 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
13327
13328         * function.c (put_var_into_stack): Change bool parameter to int.
13329         (gen_mem_addressof): Likewise.
13330         * rtl.h (gen_mem_addressof): Likewise.
13331         * tree.h (put_var_into_stack): Likewise.
13332         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
13333         gen_mem_addressof or put_var_into_stack.
13334         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
13335         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
13336
13337 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
13338
13339         * config/h8300/h8300.md (a peephole2): New.
13340
13341 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
13342
13343         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
13344
13345 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13346
13347         * doc/contrib.texi (Contributors): Update Janis Johnson.
13348
13349 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
13350
13351         PR target/10072
13352         * combine.c (simplify_if_then_else): Check that the mode
13353         has MODE_INT class before applying the (OP Z (mult COND C2))
13354         transformation.
13355
13356 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
13357
13358         PR optimization/9414
13359         * config/sparc/sparc.md (widening peepholes): Use
13360         widen_memory_access instead of change_address.
13361
13362 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
13363
13364         PR c++/7086
13365         * c-typeck.c (c_mark_addressable): Adjust calls to
13366         put_var_into_stack.
13367         * expr.c (expand_expr): Likewise.
13368         * function.c (put_var_into_stack): Add rescan parameter.  Do not
13369         call fixup_var_refs when rescan is false.
13370         (gen_mem_addressof): Likewise.
13371         (assign_parms): Adjust calls to put_var_into_stack.
13372         (setjmp_protect): Likewise.
13373         (setjmp_protect_args): Likewise.
13374         * rtl.h (gen_mem_addressof): Change prototype.
13375         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
13376         * tree.h (put_var_into_stack): Change prototype.
13377
13378 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
13379
13380         PR middle-end/9967
13381         * builtins.c (expand_builtin_fputs): When optimizing for size,
13382         don't transform fputs into fwrite.
13383
13384 2003-03-23  Glen Nakamura <glen@imodulo.com>
13385
13386         PR c/8224
13387         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
13388         when signedness changes for division or modulus.
13389
13390 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
13391
13392         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13393         globalize_label.
13394
13395 2003-03-23  Roger Sayle  <roger@eyesopen.com>
13396
13397         PR c/10178
13398         * stmt.c (expand_end_case_type): Check for overflow in range when
13399         determining whether to use a bit-test implementation.
13400
13401 2003-03-23  Richard Henderson  <rth@redhat.com>
13402
13403         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
13404         before flow2.
13405         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
13406
13407 2003-03-23  Richard Henderson  <rth@redhat.com>
13408
13409         PR opt/10116
13410         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
13411         from then_bb or else_bb after flow2.
13412
13413 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
13414
13415         * configure.in: Check whether it is necessary to link against
13416         libm to use ldexp.
13417         * configure: Regenerate.
13418         * Makefile.in: Add LDEXP_LIB substitution variable.
13419
13420 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
13421
13422         * config/h8300/h8300.md: Fix comment typos.
13423
13424 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13425
13426         * pa.c (output_cbranch): Fix typo in comment.
13427
13428 2003-03-22  Richard Henderson <rth@redhat.com>
13429
13430         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
13431         after reload.
13432
13433 2003-03-22  DJ Delorie  <dj at redhat dot com>,
13434         Bruce Korb  <bkorb at gnu dot org>
13435
13436         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
13437         buggy Solaris 2.6 mutex/cond initializers.
13438         (solaris_mutex_init): Rename to solaris_mutex_init_2.
13439         * fixinc/fixincl.x: Regenerate.
13440         * fixinc/tests/base/pthread.h: Update.
13441         * fixinc/fixincl.c(initialize): be explicit about the default case
13442         and indicate verbose level when being very, very verbose.
13443         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
13444
13445 2003-03-22  Andreas Jaeger  <aj@suse.de>
13446
13447         * config/i386/i386.c (ix86_init_machine_status): Return value.
13448
13449 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13450
13451         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
13452         conditional branch to the following instruction.  Use next_real_insn
13453         instead of next_active_insn.
13454         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
13455         instead of next_active_insn.
13456
13457 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
13458
13459         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
13460         instead of 'm' constraint in forced-split alternatives.
13461         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
13462         VALIDATE_ADDRESS parameter to operand_subword.
13463
13464 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
13465
13466         * config/h8300/h8300.c (notice_update_cc): Correctly handle
13467         the case where the set destination is STRICT_LOW_PART.
13468
13469 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
13470
13471         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
13472         c30 instead of a c40 processor.
13473
13474 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
13475
13476         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
13477
13478 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
13479
13480         * c-common.c: Include intl.h.
13481         (shadow_warning): Rewrite to allow better diagnostic translations.
13482         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
13483         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
13484         use it throughout.
13485         * Makefile.in (c-common.o): Add intl.h.
13486
13487 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
13488
13489         * config.gcc: Remove 'float_format'.
13490
13491         * fixproto: Define NULL and size_t in generated stdlib.h and
13492         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
13493         Rearrange file generation loop for readability.  Generate time.h,
13494         string.h if missing.
13495         * tsystem.h: Include <string.h>, <time.h> unconditionally.
13496         * config.gcc: Blow away POSIX defines.
13497
13498 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
13499
13500         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
13501
13502 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
13503
13504         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
13505         writing .interrupt command.
13506         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
13507         if it's a far or near function.
13508         ("call_value"): Likewise.
13509         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
13510         near attributes.
13511         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
13512         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
13513         (m68hc11_initial_elimination_offset): Set current_function_far
13514         according to attributes.
13515         (expand_prologue): Likewise.
13516         (trap_handler_symbol): New global to keep track of trap handlers.
13517         (m68hc11_encode_section_info): Mark symbol as far if needed; set
13518         trap symbol.
13519         (m68hc11_is_far_symbol): New function.
13520         (m68hc11_is_trap_symbol): New function.
13521         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
13522         (m68hc11_is_trap_symbol): Declare.
13523
13524 2003-03-21  Jan Hubicka  <jh@suse.cz>
13525
13526         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
13527         only when amount of saved regs changed.
13528         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
13529         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
13530
13531 2003-03-21  Jan Hubicka  <jh@suse.cz>
13532
13533         PR inline-asm/7916
13534         * function.c (instantiate_virtual_regs_lossage): New function.
13535         (instantiate_virtual_regs_1): Use it.
13536         (instantiate_virtual_regs): Do not continue in substition when insn has
13537         been deleted.
13538
13539 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13540
13541         * combine.c (make_field_assignment): Fix a warning.
13542
13543 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13544
13545         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
13546
13547 2003-03-21  Dale Johannesen  <dalej@apple.com>
13548
13549         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
13550         priority for R2 on Darwin.
13551         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
13552
13553 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
13554
13555         * combine.c (make_field_assignment): Remove unnecessary AND
13556         when storing into zero_extract.
13557
13558 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
13559
13560         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
13561         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
13562         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
13563         in comment.
13564
13565 2003-03-21  DJ Delorie  <dj@redhat.com>
13566
13567         * optabs.c (init_integral_libfuncs): Make sure we init at least up
13568         to "long long" size words.
13569
13570 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
13571
13572         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
13573         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
13574         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
13575
13576 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13577
13578         PR doc-bug/9813
13579         * doc/extend.texi: Move misplaced paragraph about underscores in
13580         variables in macros.
13581
13582 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
13583             Richard Henderson  <rth@redhat.com>
13584
13585         PR optimization/8366
13586         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
13587         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
13588         PIC+SYMBOLIC_CONST in other modes than Pmode.
13589         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
13590         the form PIC+SYMBOLIC_CONST as mode dependent.
13591
13592 2003-03-21  DJ Delorie  <dj@redhat.com>
13593
13594         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
13595         sure we always emit at least one insn.
13596
13597 2003-03-21  Christopher Faylor  <cgf@redhat.com>
13598
13599         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
13600         stub t-cygming. Use common target header cygming.h. Add extra
13601         c_target_obj and cxx_target_obj file. Default cygwin to posix
13602         threading. Enforce i386 as float format.
13603         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
13604         Remove cygwin.h as target header. Use common target header
13605         cygming.h  Enforce i386 as float format. Correct typo.
13606         * config/i386/cygming.h: New file, containing definitions
13607         common to mingw32 and cygwin.
13608         * config/i386/cygwin.h: Remove definitions common to cygwin and
13609         mingw.  Simplify special spec logic.  Define "wrappers" around
13610         certain include path defines to accommodate -mno-cygwin.
13611         Remove some #if 0'ed code.
13612         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
13613         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
13614         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
13615         * config/i386/mingw32.h: Remove definitions common to cygwin and
13616         mingw.
13617         (EXTRA_OS_CPP_BUILTINS): Adjust.
13618         (TARGET_VERSION): Define.
13619         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
13620         mingw32.h definitions.
13621         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
13622         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
13623         Add compilation rules for cygwin1.o cygwin2.o.
13624         * config/i386/cygwin1.c: New file.
13625         * config/i386/cygwin2.c: New file.
13626         * config/i386/t-cygming: New makefile stub.
13627
13628 2003-03-20  Richard Henderson  <rth@redhat.com>
13629
13630         * fold-const.c (extract_muldiv_1): Revert changing order of
13631         operands in case MULT_EXPR of 2003-02-16 patch.
13632
13633 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
13634         Merge changes from new-regalloc-branch
13635
13636         From Michael Matz  <matz@suse.de>
13637         * df.c (df_ref_record_1): Move init of loc to safe point.
13638         Only recurse on interesting things in parallels.
13639         Handle CLASS_CANNOT_CHANGE_MODE smarter.
13640         (df_uses_record): Ditto.
13641
13642         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
13643         it's already okay to use memory operands in (IE doesn't require
13644         adding another insn or anything).
13645
13646 2003-03-20  Richard Henderson  <rth@redhat.com>
13647
13648         PR middle-end/6348
13649         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
13650         different from word_mode.
13651
13652 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13653
13654         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
13655         source operand to those that can be extracted with bld.
13656
13657 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
13658
13659         PR 10066
13660         * arm.md (UNSPEC_PIC_BASE): New constant.
13661         (pic_add_dot_plus_four): Wrap with unspec.
13662         (pic_add_dot_plus_eight): Likewise.
13663
13664 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13665
13666         * config/h8300/h8300.md (*insv_si_1_n): New.
13667         (*insv_si_1_n_lshiftrt): Likewise.
13668
13669 2003-03-20  Roger Sayle  <roger@eyesopen.com>
13670
13671         * fold-const.c (fold_mathfn_compare): New function to simplify
13672         comparisons against built-in math functions.  Fold comparisons
13673         of sqrt against constants.
13674         (fold): Call fold_mathfn_compare when appropriate.
13675
13676 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
13677
13678         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
13679         information.
13680
13681 2003-03-20  Per Bothner  <pbothner@apple.com>
13682
13683         Various cleanups to help compile server.
13684
13685         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
13686         and pass that to _cpp_init_hashtable.
13687         (cpp_read_main_file):  Drop hash_table* argument; don't call
13688         _cpp_init_hashtable.
13689         * cpplib.h:  Update declarations to match.
13690         * c-opts.c (c_common_init_options):  Pass ident_hash to
13691         cpp_create_reader.
13692         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
13693         * fix-header.c (read_scan_file):  Likewise pass NULL table to
13694         cpp_create_reader rather than cpp_read_main_file.
13695
13696         * cppfiles.c (cpp_rename_file):  Generalized and renamed
13697         to cpp_change_file.
13698         * cpplib.h:  Update declaration to match.
13699         * c-opts.c (push_command_line_line, finish_options):  Change
13700         cpp_rename_file calls to cpp_change_file.
13701
13702         * line-map.c (add_line_map):  Allow leaving the outermost file.
13703         Allowing entering an outermost-file after the initial time.
13704
13705         * toplev.c (pop_srcloc):  Allow popping from initial file.
13706
13707 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
13708
13709         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
13710
13711 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13712
13713         * config/h8300/h8300.md (a peephole2): New.
13714
13715 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13716
13717         * config/h8300/h8300.md (*addsi3_and_r_1): New.
13718         (*addsi3_and_not_r_1): Likewise.
13719
13720 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
13721
13722         * Makefile.in (STRICT2_WARN): Add @WERROR@.
13723         (GCC_WARN_CFLAGS): Remove $(WERROR).
13724         (fixinc.sh-warn): New.
13725         * ada/Make-lang.in (ada-warn): Add $(WERROR).
13726         * cp/Make-lang.in (cp-warn): Add $(WERROR).
13727         * f/Make-lang.in (f-warn): Add $(WERROR).
13728         * java/Make-lang.in (java-warn): Add $(WERROR).
13729         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
13730
13731 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
13732
13733         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
13734         langhooks-def.h (lhd_tree_dump_dump_tree),
13735         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
13736         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
13737         true and false in return statements.
13738
13739 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
13740
13741         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
13742         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
13743         DWARF_INITIAL_LENGTH_SIZE.
13744         (output_compilation_unit_header, output_pubnames, output_aranges)
13745         (output_line_info): Output 0xffffffff escape value for 64-bit
13746         DWARF extension.
13747         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
13748
13749 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
13750
13751         * config/s390/s390.c (s390_preferred_reload_class): Do not
13752         force constants to the pool unless necessary.
13753         (s390_decompose_address): Prefer to use pointer as base,
13754         not index register.
13755         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
13756         Q alternative.
13757         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
13758         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
13759         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
13760         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
13761         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
13762
13763 2003-03-19  Jan Hubicka  <jh@suse.cz>
13764
13765         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
13766         * i386.c (use_fast_prologue_epilogue): Remove.
13767         (ix86_frame): New field save_regs-using_mov;
13768         (ix86_compute_frame_layout):  Decide on fast prologues;
13769         allocate saved registers in red zone.
13770         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
13771
13772 2003-03-19  Nick Clifton  <nickc@redhat.com>
13773
13774         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
13775
13776 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13777
13778         PR 10062
13779         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
13780         * pa-protos.h (output_lbranch): New prototype.
13781         * pa.c (compute_frame_size): Change size of the frame marker on the
13782         64-bit ports to 48 bytes.
13783         (pa_output_function_prologue): Document why SAVE_SP is set.
13784         (hppa_expand_prologue): Save previous stack pointer into frame marker
13785         on targets which use the hpux unwind library.
13786         (output_cbranch): Use output_lbranch.
13787         (output_lbranch): New function to output long unconditional branches.
13788         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
13789         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
13790         64-bit ports.
13791         * pa.md (jump): Use output_lbranch.
13792         (allocate_stack): New expander for dynamic stack allocation.
13793
13794 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
13795
13796         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
13797         when debugging on XCOFF targets.  Delete "abi" temp.
13798
13799         PR target/10073
13800         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
13801
13802 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
13803
13804         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
13805         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
13806         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13807
13808         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
13809         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
13810         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13811
13812 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
13813
13814         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
13815         the result of machopic_function_base_name.
13816         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
13817         string rather than a static array.
13818
13819         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
13820
13821         * gengtype.c: Include rtl.h.
13822         (enum rtx_code): Don't define.
13823         (rtx_format): Make declaration match rtl.h.
13824         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
13825         users.
13826         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
13827         * Makefile.in (gengtype.o): Update dependencies.
13828
13829 2003-03-18  Andreas Schwab  <schwab@suse.de>
13830
13831         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
13832         martin@blom.org.
13833
13834 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
13835
13836         * function.c (next_block_index): Mark with GTY.
13837
13838         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
13839
13840 2003-03-18  Richard Henderson  <rth@redhat.com>
13841
13842         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
13843         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
13844         until after reload.
13845
13846 2003-03-18  Richard Henderson  <rth@redhat.com>
13847
13848         * builtins.c (expand_builtin_unop): New target_mode operand;
13849         use it to convert the result to the correct mode.
13850         (expand_builtin): Update all callers.
13851
13852 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
13853
13854         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
13855
13856 2003-03-18  Jan Hubicka  <jh@suse.cz>
13857
13858         * i386.md:  Fix previous commit that mistakely applied the patch
13859         twice.
13860
13861         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
13862         canonicalized.
13863         (memrefs_conflict_p): Likewise.
13864         (addr_side_effect_eval): Canonicalize the constructed address.
13865
13866 2003-03-18  Jan Hubicka  <jh@suse.cz>
13867
13868         * i386.md (cvtts?2si peep2): New.
13869
13870 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13871
13872         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
13873
13874 2003-03-18  Andreas Schwab  <schwab@suse.de>
13875
13876         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
13877         for format.
13878
13879 2003-03-17  Jason Merrill  <jason@redhat.com>
13880
13881         PR c++/10091
13882         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
13883         an unaligned member of TREE_ADDRESSABLE type.
13884
13885 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
13886
13887         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
13888         (TARGET_PROFILE_KERNEL): Define.
13889         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
13890         (PROFILE_BEFORE_PROLOGUE): Don't define.
13891         (PROFILE_KERNEL): Remove hacks.
13892         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
13893         (rs6000_stack_info): No need to save lr if just for profiling when
13894         TARGET_PROFILE_KERNEL.
13895         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
13896         (output_function_profiler): Localize label generation.  Emit code
13897         for kernel profiling.
13898
13899 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
13900
13901         * config/h8300/h8300-protos.h: Add a prototype for
13902         byte_accesses_mergeable_p.
13903         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
13904         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
13905         (a splitter): Likewise.
13906         (*iorsi3_ashift_16_ashift_24): Likewise.
13907         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
13908
13909 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13910
13911         * dwarf2asm.h: Delete obsolete comment.
13912         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
13913         dw2_asm_output_pcrel, dw2_asm_output_addr,
13914         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
13915         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
13916         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
13917         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
13918
13919 2003-03-17  Zack Weinberg <zack@codesourcery.com>
13920
13921         * c-tree.h (struct lang_identifier): Remove error_locus field.
13922         (IDENTIFIER_ERROR_LOCUS): Kill.
13923         (record_function_scope_shadow): New prototype.
13924         * c-typeck.c (build_external_ref): Don't complain if
13925         decl is error_mark_node.  When not at file scope, bind the
13926         decl's local value to error_mark_node to suppress further
13927         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
13928
13929         * c-decl.c (get_function_binding_level): New static function.
13930         (record_function_scope_shadow): New exported function.
13931         (c_make_fname_decl): Use get_function_binding_level.
13932
13933 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
13934
13935         * stmt.c (tail_recursion_args): Call promote_mode to set
13936         unsignedp flag correctly before calling convert_move.
13937
13938 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13939
13940         * loop-unroll.c (decide_peel_completely,
13941         decide_unroll_constant_iterations, decide_unroll_stupid,
13942         decide_unroll_runtime_iterations, decide_peel_simple): Set
13943         loop->has_desc.
13944
13945 2003-03-17  Jan Hubicka  <jh@suse.cz>
13946
13947         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
13948
13949 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
13950
13951         * function.c (assign_parms): For a struct value address passed as
13952         first argument, delay the function's result RTL setup code until
13953         after the emission of parameter conversions.
13954
13955 2003-03-17  Dave Love  <fx@gnu.org>
13956             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13957
13958         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
13959         __arch64__ to match Compaq cc.
13960
13961 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
13962
13963         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
13964         (c_common_init): Set EBCDIC in cpp options.
13965         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
13966         not conditional compilation.
13967         * cpplib.h (struct cpp_options): New entry EBCDIC.
13968
13969 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
13970
13971         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
13972
13973 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13974
13975         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
13976         argument to 0 for redirect_jump.
13977
13978 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
13979
13980         PR c++/8805
13981         * except.c (eh_region_u_cleanup): Add prev_try.
13982         (expand_eh_region_end_cleanup): Set it.
13983         (reachable_handlers): Use it to skip over cleanup blocks.
13984
13985 2003-03-17  Andreas Jaeger  <aj@suse.de>
13986
13987         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
13988
13989 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
13990
13991         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
13992         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
13993         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
13994         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
13995
13996 2003-03-16  Richard Henderson  <rth@redhat.com>
13997
13998         * simplify-rtx (simplify_binary_operation): Don't abort for
13999         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
14000
14001 2003-03-16  Richard Henderson  <rth@redhat.com>
14002
14003         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
14004         optimize_size as well.
14005
14006 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
14007
14008         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
14009         for D register to specify the low part of it, aka B.
14010         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
14011         the register if we are loading 1 or -1 to it; avoid using temp
14012         register when moving X/Y to Y/X.
14013         (m68hc11_gen_movqi): Likewise.
14014         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
14015
14016 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
14017
14018         PR optimization/9016
14019         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
14020         into the constant pool.
14021
14022 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
14023
14024         PR target/9164
14025         * tree.c (get_narrower): For extensions with unchanged bit number,
14026         return the unsignedness of the outer mode.
14027
14028 2003-03-16  Roger Sayle  <roger@eyesopen.com>
14029
14030         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
14031         to avoid "may be used uninitialized" warning on ia64-hpux.
14032         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
14033
14034 2003-03-16  Andreas Jaeger  <aj@suse.de>
14035
14036         * configure.in: Improve check for memcheck.h.
14037         * configure: Regenerated.
14038
14039 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
14040
14041         * doc/cppopts.texi: Remove documentation of -A-.
14042
14043 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
14044
14045         * doc/libgcc.texi: Remove @tie.
14046
14047 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
14048
14049         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
14050         (rtx_pair): Added new element update_label_nuses, renamed to
14051         replace_label_data.
14052         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
14053         replace_label_data instead of rtx_pair.
14054         * loop.c (load_mems): Likewise.
14055         * rtlanal.c (replace_label): Replace label in pool constants and in
14056         INSN_LIST (in REG_LABEL note).
14057         (subrtx_p): Renamed to rtx_referenced_p.
14058         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
14059         LABEL_REF with CODE_LABEL, traverse constants from pool.
14060
14061 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
14062             Zack Weinberg  <zack@codesourcery.com>
14063
14064         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
14065         * doc/libgcc.texi: New file.
14066         * doc/interface.texi: Delete paragraph about libgcc interface.
14067         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
14068
14069 2003-03-15  Jason Merrill  <jason@redhat.com>
14070
14071         PR debug/9039
14072         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
14073
14074         PR debug/6387
14075         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
14076         function DIEs at toplevel.
14077         (decls_for_scope): At -g1, don't descend into subblocks.
14078
14079 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
14080
14081         * varasm.c (struct rtx_const): Change type of un.addr member
14082         to struct holding an additional 'symbol' member.
14083         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
14084         with equal string addresses as equal.
14085         (simplify_subtraction): Adapt to struct rtx_const change.
14086
14087 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
14088
14089         * fix-header.c (read_scan_file): Read main file before handling -D.
14090
14091 2003-03-15  Roger Sayle  <roger@eyesopen.com>
14092
14093         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
14094         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
14095         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
14096         (find_sub_basic_blocks): Likewise.
14097         * cgraphunit.c (cgraph_expand_functions): Likewise.
14098         * dwarf2out.c (prune_unused_types): Likewise.
14099         * expr.c (store_field): Likewise.
14100         * genextract.c (print_path): Likewise.
14101         * haifa-sched.c (schedule_insn): Likewise.
14102         * lcm.c (compute_antinout_edge): Likewise.
14103         * loop-unroll.c (decide_peel_once_rolling): Likewise.
14104         * ra-colorize.c (ra_colorize_free_all): Likewise.
14105         * ra-debug.c (dump_igraph): Likewise.
14106         (debug_hard_reg_set): Likewise.
14107         * reg-stack.c (reg_to_stack): Likewise.
14108         * rtlanal.c (refers_to_regno_p): Likewise.
14109         * tracer.c (layout_superblocks): Likewise.
14110
14111 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
14112
14113         * fix-header.c (read_scan_file): Fix thinko.
14114
14115 2003-03-15  Glen Nakamura  <glen@imodulo.com>
14116
14117         * reload1.c (choose_reload_regs): Use && instead of ||
14118         with REG_CANNOT_CHANGE_MODE_P condition.
14119
14120 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
14121
14122         * Makefile.in: Update.
14123         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
14124         * c-lex.c (init_c_lex): Register builtins hook is dead.
14125         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
14126         (c_common_decode_option): Don't call cpp_handle_option.
14127         Handle -A, -D and -U.
14128         (handle_deferred_opts): Simplify.
14129         (finish_options): Define builtins and command line macros.
14130         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
14131         * cppinit.c: Don't include intl.h.
14132         (init_builtins): Rename cpp_init_builtins.  No hook to call.
14133         (init_library): Don't need to sort options.
14134         (cpp_create_reader): Don't set pending.
14135         (cpp_destroy): Don't free pending.
14136         (struct pending_option, cl_directive_handler, struct cpp_pending,
14137         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
14138         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
14139         cl_options, cpp_handle_option): Remove.
14140         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
14141         cpp_finish_options): Remove.
14142         (cpp_init_builtins): New.
14143         * fix-header.c (read_scan_file): Update to handle -D.  Fix
14144         handling of -I.  Replace call to cpp_finish_options.
14145
14146 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14147
14148         PR optimization/9387
14149         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
14150         for conditional returns.
14151
14152 2003-03-14  Jason Merrill  <jason@redhat.com>
14153
14154         PR optimization/6871
14155         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
14156
14157 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
14158
14159         * c-opts.c (finish_options): New.
14160         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
14161         (missing_arg): Handle OPT_include and OPT_imacros.
14162         (c_common_init, c_common_parse_file): Use finish_options.
14163         (handle_deferred_opts): Update.
14164         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
14165         (cpp_finish_options): Don't handle -imacros here.
14166         (no_fil): Remove.
14167         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
14168
14169 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
14170
14171         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
14172         rs6000_maybe_dead if !fromprolog.
14173
14174 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
14175
14176         * Makefile.in: Update.
14177         * c-common.h (fe_file_change, pp_file_change): New.
14178         * c-lex.c (init_c_lex): Don't set cb_file_change.
14179         (c_common_parse_file): Move to c-opts.c.
14180         (cb_file_change): Rename fe_file_change.
14181         * c-opts.c: Include debug.h.
14182         (warn_unused_macros, include_cursor): New.
14183         (push_command_line_include, cb_file_change): New.
14184         (COMMAND_LINE_OPTIONS): Handle -include.
14185         (c_common_decode_option): Use local warn_unused_macros.
14186         Handle OPT_include.
14187         (c_common_post_options): Set file change callback.
14188         (handle_deferred_opts): Skip -include.  Don't free the array.
14189         (c_common_init): Call cpp_finish_options here, and push an
14190         initial -include file.
14191         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
14192         (preprocess_file): Don't call cpp_finish_options.
14193         (init_pp_output): Don't set the file change callback.
14194         (pp_file_change): Return if no line commands or no output.
14195         * cpphash.h (next_include_file, first_unused_line): Remove.
14196         * cppinit.c (include_head, include_tail): Remove.
14197         (cpp_destroy): Don't free -include chain.
14198         (cpp_finish_options): Don't handle -include, or worry about
14199         -Wunused-macros.
14200         (_cpp_maybe_push_include_file): Remove.
14201         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
14202         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
14203         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
14204         Used flag is set based upon the state of the warn_unused_macros
14205         flag, and so use of first_unused_line is unnecessary.
14206
14207 2003-03-13  Jan Hubicka  <jh@suse.cz>
14208
14209         * cselib.c (clear_table): Do not take argument; always clear just
14210         used slots.
14211         (cselib_process_insn):  Update call of clear_table
14212         (cselib_init): Do not call clear_table.
14213         (cselib_finish): Clear table.
14214
14215         * cse.c (count_reg_usage): Do not check side_effects_p.
14216         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
14217         like noop.
14218         (find_reg_equal_equiv_note): Do not use find_reg_note.
14219
14220 2003-03-14  Richard Henderson  <rth@redhat.com>
14221
14222         PR target/9700
14223         * config/alpha/alpha.c (alpha_va_start): Account for
14224         current_function_pretend_args_size in the AP offset.
14225
14226         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
14227         (INITIAL_ELIMINATION_OFFSET): Move out of line.
14228         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
14229         (alpha_initial_elimination_offset) New.
14230         * config/alpha/alpha-protos.h: Update.
14231
14232 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
14233
14234         * stmt.c (expand_start_case): Call emit_queue ().
14235
14236 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
14237             Alexandre Oliva  <aoliva@redhat.com>
14238
14239         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
14240         words in new abis.
14241
14242 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
14243
14244         PR optimization/8396
14245         * tree-inline.c (initialize_inlined_parameters): Make sure the value
14246         of read-only constant arguments is passed with the right type.
14247
14248 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
14249
14250         * doc/extend.texi (Function Names): Make the example compilable.
14251
14252 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
14253
14254         * config/rs6000/rs6000.c (processor_target_table): Really allow
14255         GP optional instructions on Power4.
14256
14257 2003-03-13  Roger Sayle  <roger@eyesopen.com>
14258
14259         * calls.c (flags_from_decl_or_type): Factor and remove redundant
14260         conditional tests.
14261
14262 2003-03-13  Mike Stump  <mrs@apple.com>
14263
14264         * ggc-page.c (struct page_entry): Remove varray.h header.
14265         Add index_by_depth field.
14266         Remove save_in_use_p field.
14267         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
14268         by_depth_max, by_depth, and save_in_use fields.
14269         (INITIAL_PTE_COUNT): Add.
14270         (save_in_use_p_i): Add.
14271         (save_in_use_p): Add.
14272         (adjust_depth): Add.
14273         (move_ptes_to_front): Add.
14274         (push_depth): Add.
14275         (push_by_depth): Add.
14276         (prefetch): Add.
14277         (free_page): Add support for and use faster data structures.
14278         (ggc_alloc): Likewise.
14279         (init_ggc): Likewise.
14280         (ggc_recalculate_in_use_p): Likewise.
14281         (ggc_pop_context): Likewise.
14282         (clear_marks): Likewise.
14283         (ggc_pch_read): Likewise.
14284         * Makefile.in (ggc-page.o): Remove varray.h.
14285
14286 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
14287
14288         * ChangeLog: Rotated last year's entries to...
14289         * ChangeLog.8: New.
14290
14291         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
14292         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
14293         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
14294         config/ia64/ia64-protos.h, config/ia64/ia64.c,
14295         config/ia64/ia64.h, config/ia64/ia64.md,
14296         config/ia64/itanium1.md, config/ia64/itanium2.md,
14297         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
14298         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
14299
14300 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
14301
14302         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
14303         Differentiate endianness.
14304         (s6000_override_options): Use cpu type instead of TARGET_SPE.
14305
14306 2003-03-13  Nick Clifton  <nickc@redhat.com>
14307
14308         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
14309         LDM instructions with writeback enabled.
14310         (output_return_instruction): Likewise.
14311
14312         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
14313         (CALL_USED_REGISTERS): Remove definition.
14314         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
14315
14316 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
14317
14318         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
14319         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
14320         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
14321         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
14322         (rs6000_legitimize_address): Formatting.
14323         (rs6000_emit_move): Likewise.
14324         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
14325         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
14326         (rs6000_elf_select_section): Comment reason for shlib being
14327         set for ABI_AIX.
14328         (rs6000_elf_unique_section): Likewise.
14329         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
14330         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
14331         as well as flag_pic.
14332         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
14333         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14334         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
14335
14336 2003-03-13  Richard Henderson  <rth@redhat.com>
14337
14338         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
14339
14340         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
14341         (ia64_gp_save_reg): Remove.
14342         (struct ia64_frame_info): Move to the beginning of the file;
14343         add reg_save_gp.
14344         (ia64_expand_call): Rearrange for new call patterns.
14345         (ia64_reload_gp): New.
14346         (ia64_split_call): New.
14347         (ia64_compute_frame_size): Allocate reg_save_gp.
14348         (ia64_expand_prologue): Save reg_save_gp.
14349         (ia64_expand_epilogue): Don't restore gp.
14350         (ia64_hard_regno_rename_ok): Remove R4 hack.
14351         (ia64_function_ok_for_sibcall): New.
14352         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
14353         call try_split on sibcall pattern.
14354         * config/ia64/ia64-protos.h: Update.
14355         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
14356         Rename from nopic versions.  Confiscate 2nd argument to call as
14357         a marker.
14358         (call_pic, call_value_pic, sibcall_pic): Remove.
14359         (call_gp, call_value_gp, sibcall_gp): New.
14360         (builtin_setjmp_setup): Remove.
14361         (builtin_setjmp_receiver): Call ia64_reload_gp.
14362
14363 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
14364
14365         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14366         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
14367         "GNU CC" with "GCC".
14368
14369         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
14370         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14371         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
14372         GCC, not GNU CC.
14373
14374         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
14375         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
14376
14377         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
14378         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
14379         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
14380         "GNU CC" with "GCC".
14381
14382         * config/v850/lib1funcs.asm, config/v850/rtems.h,
14383         config/v850/v850-c.c, config/v850/v850-protos.h,
14384         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
14385         GCC, not GNU CC.
14386
14387         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
14388         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
14389         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
14390         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
14391         GNU CC.
14392
14393 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
14394
14395         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
14396
14397 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
14398
14399         * fixinc/fixinc.interix: Remove dead code (most of it).
14400         * fixinc/fixinc.dgux: Remove.
14401
14402         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
14403         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
14404
14405 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14406
14407         * pa.c (pa_init_builtins): Fix warning.
14408
14409 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
14410
14411         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
14412         (ASM_OUTPUT_XDATA_SHORT): Remove.
14413         (ASM_OUTPUT_XDATA_INT): Remove.
14414         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
14415         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
14416         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
14417         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
14418
14419 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
14420
14421         PR c++/7050
14422         * expr.c (store_expr): Don't attempt to store void-typed trees,
14423         just evaluate them for side effects.
14424
14425 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
14426
14427         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
14428         * cppinit.c (push_include): Move with changes to cppfiles.c.
14429         (cpp_read_main_file): Mark named operators here...
14430         (cpp_finish_options): ...not here.  Update.
14431         (_cpp_maybe_push_include_file): Update.
14432         * cpplib.h (cpp_push_include, cpp_rename_file): New.
14433
14434 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
14435
14436         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
14437         _gcc_COMPUTE_GAS_VERSION.
14438         * configure.in: Use them.
14439         * configure: Regenerate.
14440
14441 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
14442
14443         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
14444         to detect carry.
14445         (subdi3): Reorder emitted instructions.
14446
14447 2003-03-12  Andreas Jaeger  <aj@suse.de>
14448
14449         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
14450         NETBSD_OS_CPP_BUILTINS_LP64.
14451
14452 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
14453
14454         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
14455         Rearrange.  Reorganize.
14456         * configure.in: Rearrange.
14457         * configure: Regenerate.
14458
14459 2003-03-12  Andreas Jaeger  <aj@suse.de>
14460
14461         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
14462         LP64 targets.
14463
14464         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
14465         _LP64.
14466
14467         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
14468         _LP64 macros here.
14469         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14470
14471         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
14472         NETBSD_OS_CPP_BUILTINS_LP64.
14473         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14474         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14475
14476         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
14477
14478 2003-03-12  Jan Hubicka  <jh@suse.cz>
14479
14480         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
14481
14482 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
14483
14484         Fix PR target/9797 and PR c/9853.
14485         * stmt.c (expand_decl_init): Call push_temp_slots () and
14486         pop_temp_slots ().
14487
14488 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
14489
14490         * sh.c: Include basic-block.h.
14491         (sh_output_mi_thunk, emit_load_ptr): New functions.
14492         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
14493
14494 2003-03-12  Nick Clifton  <nickc@redhat.com>
14495
14496         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
14497         (CALL_USED_REGISTERS): Likewise.
14498         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
14499         describing how this value is calculated.
14500
14501 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
14502
14503         * configure.in (rlim_t): Define to long if no valid definition
14504         found in sys/resource.h.
14505         * config.in, configure: Regenerate.
14506
14507 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
14508
14509         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
14510         TARGET_OS_CPP_BUILTINS.
14511         * config/mcore/mcore-pe.h: Similarly.
14512         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
14513         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
14514
14515 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14516
14517         PR c/9928
14518         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
14519         only if it is a VAR_DECL.
14520
14521 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14522
14523         PR optimization/9888
14524         * config/i386/i386.md (jcc_1): Fix range.
14525         (jcc_2): Likewise.
14526         (jump): LIkewise.
14527         (doloop_end_internal): Likewise.
14528
14529 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
14530
14531         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
14532         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
14533         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
14534         DLL_IMPORT_EXPORT_PREFIX and "i."
14535         (i386_pe_dllexport_name_p): Here.
14536         (i386_pe_dllimport_name_p): Here.
14537         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
14538         not 9 chars when getting identifier name.
14539         (i386_pe_mark_dllimport): Here.
14540         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
14541         not 9 chars when getting identifier name. Correct comment.
14542         (i386_pe_strip_name_encoding): Here. Add comments for different
14543         cases.
14544         (gen_fastcall_suffix): Break down xmalloc() argument to
14545         components.
14546         (gen_stdcall_suffix): Likewise.
14547         Update copyright year.
14548
14549 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
14550
14551         PR optimization/9888
14552         * config/i386/i386.md (movsi_1): Remove special alternatives
14553         for %eax register.
14554         (movsi_1_nointernunit): Likewise.
14555         (movhi_1): Likewise.
14556         * config/i386/i386.c (memory_address_length): Do not use
14557         short displacement when there is no base.
14558         (ix86_attr_length_address_default): Handle LEA instructions.
14559
14560 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
14561
14562         * c-cppbuiltin.c (builtin_define_std): Make non-static.
14563
14564 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
14565
14566         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
14567         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
14568         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
14569         * config/freebsd.h (CPP_PREDEFINES): Remove.
14570         (TARGET_OS_CPP_BUILTINS): New.
14571         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
14572         instead of TARGET_OS_CPP_BUILTINS.
14573         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
14574
14575 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
14576
14577         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
14578
14579 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14580
14581         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
14582         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
14583
14584         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
14585
14586 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
14587
14588         * toplev.c (independent_decode_option): Return success for --help,
14589         --target-help and --version.
14590
14591 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
14592
14593         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
14594         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
14595         specified.
14596         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
14597         DRIVER_SELF_SPECS.
14598         (LINK_SPEC): Let endian options affect the linker emulation name.
14599
14600 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
14601
14602         * sh.md (reload_inqi): Fix mode for source in second set.
14603
14604 2003-03-11  Jan Hubicka  <jh@suse.cz>
14605
14606         * cselib.c (cselib_invalidate_mem_1): Move too ...
14607         (cselib_invalidate_mem): ... here; use new list
14608         (dummy_val, first_containing_mem): New static variables.
14609         (clear_table): Initialize first_containing_mem.
14610         (discard_useless_values):  Compact the containing_mem list.
14611         (add_mem_for_addr): Add to the list.
14612         * cselib.h (cselib_val): Add next_containing_mem.
14613
14614 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14615
14616         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
14617         instructions for e500.
14618
14619 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
14620
14621         * Makefile.in: Update.
14622         * c-cppbuiltin.c: Include tm_p.h.
14623
14624 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
14625
14626         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
14627
14628         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
14629         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
14630         (_Unwind_SetGR): Same.
14631         (_Unwind_GetGRPtr): New.
14632         (_Unwind_SetGRPtr): New.
14633         (uw_update_context_1): Use accesor functions instead of accessing
14634         context->reg[] directly.
14635         (uw_install_context_1): Same.
14636         (execute_cfa_program): Same.
14637         (__frame_state_for): Same.
14638
14639         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
14640         the synthetic register offset.
14641
14642         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
14643
14644 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
14645
14646         * config/cris/cris.md: Remove lingering EGCS reference.
14647         ("*extopqihi_side_biap"): For HI operation, match
14648         cris_additive_operand_extend_operator, not
14649         cris_operand_extend_operator.  Adjust condition.
14650         ("*extopqihi_side", "*extopqihi"): Ditto.
14651         ("*extopqisi_side_biap"): Correct operand numbers in condition.
14652         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
14653         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
14654         ("*extophisi_swap"): Ditto.
14655         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
14656         PLUS, not cris_operand_extend_operator.  Adjust condition and
14657         output template.
14658         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
14659         * config/cris/cris.h (PREDICATE_CODES): Add
14660         cris_additive_operand_extend_operator.
14661         * config/cris/cris.c (cris_additive_operand_extend_operator):
14662         New predicate.
14663
14664 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
14665
14666         * df.c (read_modify_subreg_p): Change from static to global.
14667         * df.h (read_modify_subreg_p): Add prototype.
14668         * sched-deps.c (sched_analyze_1): Generate true dependency for
14669         strict_low_part, certain subregs and zero/sign_extract.
14670
14671 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
14672
14673         * Makefile.in: Update.
14674         * c-common.c: Don't include real.h or except.h.
14675         (REGISTER_PREFIX): Remove.
14676         (builtin_define_std, builtin_define_with_value,
14677         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
14678         builtin_define_type_max, builtin_define_type_precision,
14679         builtin_define_float_constants): Move to c-cppbuiltin.c.
14680         (c_stddef_cpp_builtins): New.
14681         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
14682         * c-cppbuiltin.c: New, extracted from c-common.c.
14683         (define__GNUC__): New.
14684         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
14685         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
14686         (cpp_unique_options): Don't support no-gcc.
14687         (do_spec_1): Remove support of version specs.
14688         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
14689         * doc/passes.texi: Update.
14690         * doc/tm.texi: Update.
14691
14692 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14693
14694         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
14695
14696 2003-03-10  Andrew Pinski  <apinski@apple.com>
14697
14698         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
14699         is on should not get here.
14700         (machopic_indirect_data_reference): If dynamic-no-pic is on just
14701         generate high/low parts of the address.
14702         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
14703         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
14704         symbol and labels with a new reg.  Dynamic-no-pic does not have a
14705         pic_offset_table_rtx.
14706         (machopic_select_section): Change references of flag_pic to
14707         MACHOPIC_INDIRECT.
14708         (machopic_asm_out_destructor): Likewise.
14709         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
14710         reference of flag_pic to MACHOPIC_INDIRECT.
14711         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
14712         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
14713         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
14714         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
14715         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
14716         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
14717         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
14718         (TARGET_DYNAMIC_NO_PIC): Define.
14719         (SUBTARGET_SWITCHES): Define, have sub-target switches for
14720         dynamic-no-pic.
14721         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
14722         rs6000_override_options to here. Dynamic-no-pic overrides
14723         pic.
14724         (CC1_SPEC): Change from not static then pic to not static and not
14725         dynamic-no-pic then pic.
14726         * config/rs6000/rs6000.c (rs6000_override_options): Move the
14727         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
14728         (rs6000_legitimize_reload_address): Add case for loading floating in
14729         dynamic-no-pic.
14730         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
14731         of flag_pic to MACHOPIC_INDIRECT.
14732         (secondary_reload_class): Conditional change the reference of
14733         flag_pic to MACHOPIC_INDIRECT.
14734         (rs6000_output_mi_thunk): Change reference of flag_pic to
14735         MACHOPIC_INDIRECT.
14736         (output_profile_hook): Likewise.
14737         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
14738         * config/rs6000/rs6000.md (movdf_low): Add the case for
14739         MACHO_DYNAMIC_NO_PIC_P.
14740         (call): Change references for flag_pic in TARGET_MACHO to
14741         MACHOPIC_INDIRECT.
14742         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
14743         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
14744         * doc/invoke.texi (-mdynamic-no-pic): Document.
14745
14746 2003-03-10  Devang Patel  <dpatel@apple.com>
14747
14748         PR c++/9394
14749         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14750         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14751         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
14752         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
14753         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14754         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14755
14756 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
14757
14758         PR optimization/7189
14759         * toplev.c (rest_of_compilation):  Move
14760         check_function_return_warnings up to just after
14761         delete_unreachable_blocks.
14762
14763 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14764
14765         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
14766         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
14767         Declare.
14768         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
14769         for reg rename optimization to avoid using Z and Y registers.
14770
14771 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14772
14773         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
14774         when adding to X and Y since leax/leay are fast.
14775         ("*addhi3"): Accept 'I' constraint when adding to address register.
14776         ("rotlhi3"): Operand 1 must be a register_operand.
14777         (peephole2): New peephole to optimize some adds.
14778         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
14779         to represent -2 .. 2 small integer range.
14780
14781 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
14782
14783         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
14784         each 16-bit rotation.
14785
14786 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
14787
14788         * c-opts.c (add_prefixed_path): Don't use concat.  When
14789         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
14790         cpp_GCC_INCLUDE_DIR_len characters.
14791
14792 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
14793
14794         * testsuite/gcc.dg/altivec-9.c: New file.
14795
14796         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
14797         (rs6000_emit_prologue): Use rs6000_frame_related instead.
14798
14799 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14800
14801         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
14802         vectors.
14803         (__ev_convert_u64): Remove macro.  Define as inline.
14804         (__ev_convert_s64): Same.
14805
14806 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
14807
14808         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
14809         (rs6000_stack_t): Add spe_64bit_regs_used.
14810
14811         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
14812         spe_64bit_regs_used, and use it to determine the size of the
14813         frame.
14814         (spe_func_has_64bit_regs_p): New.
14815         (spe_synthesize_frame_save): New.
14816         (rs6000_frame_related): Handle SPE synthetic registers.
14817         (rs6000_emit_prologue): Only save in 64-bits if the function used
14818         any registers in 64-bit mode.
14819         (rs6000_emit_epilogue): Same, but for restore.
14820
14821 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
14822
14823         * arm.h (enum floating_point_type): Delete.  Replace with...
14824         (enum fputype): ... new.
14825         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
14826         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
14827         * arm.md (attr fpu): Reworked for new underlying enum values.
14828         * arm.c (arm_fpu_arch): Now enum fputype.
14829         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
14830         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
14831         Update uses of arm_fpu_arch and arm_fpu_tune.
14832
14833 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
14834
14835         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
14836         (try_crossjump_to_edge): Replace refereces to one jump table by
14837         references to identical jump table.
14838         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
14839         (replace_label): Moved to rtlanal.c.
14840         (struct rtx_pair): Moved to rtl.h.
14841         * rtl.h (struct rtx_pair): Moved from loop.c.
14842         (replace_label): New extern function.
14843         (subrtx_p): New extern function.
14844         (tablejump_p): New extern function.
14845         * rtlanal.c (replace_label): Moved from loop.c.
14846         (subrtx_p_1): New static function.
14847         (subrtx_p): New function.
14848         (tablejump_p): New function.
14849
14850 2003-03-10  Jan Hubicka  <jh@suse.cz>
14851
14852         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
14853
14854         * cfgcleanup.c (merge_blocks): Return where to iterate next.
14855         (try_optimize_cfg): Use return value of merge_blocks
14856
14857 2003-03-10  Michael Matz  <matz@suse.de>
14858
14859         * cfg.c (unchecked_make_edge): New.
14860         (cached_make_edge): Use it.
14861         * basic-block.h (unchecked_make_edge): Declare.
14862         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
14863
14864 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
14865
14866         * fpa.md: New file.  Move all patterns relating to FPA co-processor
14867         to here...
14868         * arm.md: ... from here.
14869         (cirrus.md, fpa.md): Include at end of description.
14870         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
14871         (pic_load_addr_based): Remove register constraint from expander.
14872         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
14873         (sordered, sungt, sunle, sunge, sunlt): Likewise.
14874         (eh_epilogue, tablejump): Likewise.
14875
14876 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14877
14878         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
14879         on operands if it has a PLACEHOLDER_EXPR.
14880
14881 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
14882             Mostafa Hagog
14883
14884         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
14885         condition.
14886
14887 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
14888
14889         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
14890         * config/ip2k/ip2k.h: Similarly.
14891         * config/m32r/m32r.h: Similarly.
14892         * config/m68hc11/m68hc11.h: Similarly.
14893         * config/mn10200/mn10200.h: Similarly.
14894         * config/mn10300/mn10300.h: Similarly.
14895         * config/pdp11/pdp11.h: Similarly.
14896         * config/v850/v850.h: Similarly.
14897         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
14898         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
14899         * config/mips/iris3.h: Remove #if 0 block.
14900
14901 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14902             Joern Rennecke <joern.rennecke@superh.com>
14903
14904         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
14905         pending argument upon return from handle_braces here.
14906         (do_spec_2): Instead handle it upon return from do_spec_1 here.
14907
14908 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14909             Joern Rennecke <joern.rennecke@superh.com>
14910
14911         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
14912         pending argument upon return from handle_braces here.
14913         (do_spec_2): Instead handle it upon return from do_spec_1 here.
14914
14915 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14916
14917         * varasm.c (make_decl_one_only): Use declare_weak().
14918
14919 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14920
14921         PR middle-end/9986
14922         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
14923         after the common builtins.
14924         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
14925         * pa.c (TARGET_INIT_BUILTINS): Define.
14926         (pa_init_builtins): New function.
14927
14928         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
14929         space has been allocated for the outgoing arguments, set the arg
14930         pointer for a call emitted after virtuals have been instantiated
14931         using the stack pointer offset, otherwise abort.
14932
14933 2003-03-09  DJ Delorie  <dj@redhat.com>
14934
14935         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
14936
14937 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
14938
14939         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
14940         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
14941         conversion to integer.
14942         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
14943
14944 2003-03-09  Roger Sayle  <roger@eyesopen.com>
14945
14946         * builtins.def: Fix typo and improve grammar.
14947         * loop-unroll.c (decide_peel_completely): Tidy log message.
14948
14949 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
14950
14951         * config/h8300/h8300.md (*tstsi_upper_bit): New.
14952         (*iorsi3_e2f): Likewise.
14953
14954 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14955
14956         * config/h8300/h8300.c (h8300_and_costs): Return the number of
14957         assembly instructions needed.
14958         (h8300_shift_costs): Likewise.
14959
14960 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
14961
14962         * config/cris/aout.h (ENDFILE_SPEC): Undef.
14963
14964         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
14965         moves from here ...
14966         * expr.c (emit_move_insn_1): ... to here.
14967
14968         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
14969         (TARGET_OS_CPP_BUILTINS): New macro.
14970         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
14971         (TARGET_OS_CPP_BUILTINS): New macro.
14972         (CPP_PREDEFINES): Don't define.  Move old definitions and...
14973         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
14974         (TARGET_CPU_CPP_BUILTINS): New macro.
14975         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
14976         definitions and the optional __PIC__, __pic__ and
14977         __NO_UNDERSCORES__ definitions to...
14978         (TARGET_OS_CPP_BUILTINS): New macro.
14979
14980         * flags.h (flag_leading_underscore): Declare.
14981
14982         * c-opts.c (c_common_post_options): On fopen failure, return
14983         false, not NULL.
14984
14985 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
14986
14987         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
14988         config.h.
14989         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
14990         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
14991
14992 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
14993
14994         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
14995         CPP_PREDEFINES.
14996         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
14997         CPP_PREDEFINES.
14998
14999 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
15000
15001         * c-common.h (c_common_init, c_common_post_options): Update.
15002         * c-objc-common.c (c_objc_common_init): Update for new prototype.
15003         * c-opts.c (saved_lineno): New.
15004         (c_common_post_options, c_common_init): Update prototypes,
15005         move call to cpp_read_main_file from latter to former.
15006         * c-tree.h (c_ojbc_common_init): Update.
15007         * langhooks-def.h (lhd_post_options): New.
15008         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
15009         * langhooks.c (lhd_post_options): New.
15010         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
15011         * toplev.c (no_backend): New.
15012         (process_options): Call post_options hook and set main_input_filename
15013         and input_filename here.
15014         (lang_dependent_init, do_compile): post_options hook moved to
15015         process_options.
15016         * objc/objc-act.c (objc_init): Update prototype.
15017         * objc/objc-act.h (objc_init): Update prototype.
15018
15019 2003-03-08  Roger Sayle  <roger@eyesopen.com>
15020
15021         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
15022         a complex or vector type, using a load in the original mode.
15023
15024 2003-03-08  Jan Hubicka  <jh@suse.cz>
15025
15026         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
15027         * gt-cgraph.h: New GC file.
15028         * cgraph.c (known_fns): New static variable.
15029         (cgraph_node): Add the decl into varray.
15030
15031 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
15032
15033         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
15034
15035 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
15036
15037         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
15038         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
15039         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
15040         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
15041         All callers changed.
15042         * arm.md, arm.h, arm-protos.h: Updated.
15043
15044         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
15045         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
15046         * arm.c (arm_regno_class, f_register_operand): Updated.
15047
15048 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
15049
15050         * config/cris/cris.h: Remove EGCS references.
15051         (CPP_SPEC): Remove "-$".
15052         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
15053
15054 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
15055
15056         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
15057         preference to CPP_PREDEFINES.
15058
15059 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
15060
15061         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
15062
15063 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
15064
15065         * config/h8300/h8300.md (*extzv_16_8): New.
15066
15067 2003-03-08  Jan Hubicka  <jh@suse.cz>
15068
15069         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
15070         * cgraph.h: (cgraph_local_info): Add can_inline_once
15071         (cgraph_global_info): Add inline_once.
15072         (cgraph_node): Add previous.
15073         (cgraph_remove_node): New.
15074         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
15075         function.
15076         (cgraph_optimize): Call it.
15077         (cgraph_finalize_function):  Set inlinable flags.
15078         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
15079         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
15080         (cgraph_expand_function): Likewise.
15081         * cgraph.c
15082         (cgraph_node): Put nodes into doubly linked chain.
15083         (cgraph_remove_node): New function.
15084         * flags.h (flag_inline_functions_called_once): Declare.
15085         * tree-inline.c: Include cgraph.h
15086         (inlinable_functions_p): Add extra argument to bypass limits.
15087         (expand_call_inline):  Obey cgraph flag.
15088         * tree-inline.h (tree_inlinable_function_p): Update prototype.
15089
15090 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15091
15092         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
15093         irreducible loops.
15094
15095         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
15096         loops info correctly.
15097
15098 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
15099
15100         PR middle-end/7796
15101         * unroll.c (calculate_giv_inc): Handle constants being
15102         loaded with LSHIFTRT.
15103
15104 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
15105
15106         * config/rs6000/rs6000.c (processor_target_table): Do not disable
15107         GP optional instructions on Power3, Power4, 620, and 630.
15108
15109 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
15110
15111         * calls.c: Fix comment formatting.
15112         * cfgloopanal.c: Likewise.
15113         * cfgloopmanip.c: Likewise.
15114         * combine.c: Likewise.
15115         * dwarf2out.c: Likewise.
15116         * ggc-common.c: Likewise.
15117         * langhooks.c: Likewise.
15118         * loop-unroll.c: Likewise.
15119         * loop.c: Likewise.
15120         * ra-build.c: Likewise.
15121         * sbitmap.c: Likewise.
15122         * toplev.c: Likewise.
15123
15124 2003-03-07  James E Wilson  <wilson@tuliptree.org>
15125
15126         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
15127
15128 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
15129
15130         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
15131         support -no-integrated-cpp.
15132
15133         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
15134         than langhooks.name.
15135
15136 2003-03-07  Michael Matz  <matz@suse.de>
15137
15138         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
15139         (DF_FOR_REGALLOC): New.
15140         * df.c (df_ref_record): Set DF_REF_STRIPPED.
15141         (read_modify_subreg_p): Simplify.
15142         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
15143         Use DF_FOR_REGALLOC.
15144         * ra.h (struct web): New member subreg_stripped.
15145         (invalid_mode_change_regs): Declare.
15146         * ra.c (invalid_mode_change_regs): New.
15147         (init_ra): Initialize it.
15148         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
15149         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15150         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
15151         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
15152         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15153
15154 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
15155
15156         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
15157         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
15158         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
15159         machine description file from ...
15160         * cirrus.md: ... here.
15161
15162 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
15163
15164         * config/h8300/h8300.md (a peephole2): Don't use
15165         reg_overlap_mentioned_p.
15166
15167 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
15168
15169         * c-pch.c: Include langhooks.h.
15170         (IDENT_LENGTH): New.
15171         (get_ident): New.
15172         (pch_ident): Delete.
15173         (pch_init): Use get_ident, IDENT_LENGTH.
15174         (c_common_valid_pch): Likewise.  Also, use actual language
15175         in warning message.
15176         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
15177
15178         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
15179         c-parse.in.
15180         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
15181         gt-objc-objc-act.h.
15182         (gt-objc-objc-act.h): New rule.
15183         * objc/lang-specs.h: Support PCH.
15184         * objc/objc-act.c: Include gt-objc-objc-act.h.
15185         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
15186         (build_selector_reference_decl): Move idx out, mark for PCH.
15187         (build_class_reference_decl): Likewise.
15188         (build_objc_string_decl): Move *_idx out, mark for PCH.
15189         (build_tmp_function_decl): Move xxx out, mark for PCH.
15190
15191 2003-03-06  Dale Johannesen  <dalej@apple.com>
15192
15193         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
15194         global functions for inlining on Darwin.
15195
15196 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
15197
15198         * haifa-sched.c (schedule_block): Don't call reorder when sorting
15199         is prohibited.
15200
15201 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
15202
15203         * Makefile.in (c-ppoutput.o): Update.
15204         * c-common.h (init_pp_output): New.
15205         (preprocess_file): Update.
15206         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
15207         Register builtins.
15208         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
15209         Make call to cpp_read_main_file common to whether preprocessing
15210         or not.  Don't register builtins.
15211         * c-ppoutput.c: Include c-pragma.h.
15212         (setup_callbacks): Rename init_pp_output.
15213         (preprocess_file): No longer setup callbacks or call
15214         cpp_read_main_file.
15215         * cpphash.h (_cpp_init_mbchar): New.
15216         * cppinit.c (init_library): Call _cpp_init_mbchar.
15217         * cpplex.c (_cpp_init_mbchar): New.
15218
15219 2003-03-06  Roger Sayle  <roger@eyesopen.com>
15220
15221         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
15222         MEM, try loading the MEM into a register and taking the low-part
15223         of that, to help CSE see the use of the MEM in its true mode.
15224
15225 2003-03-05  Tom Tromey  <tromey@redhat.com>
15226
15227         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
15228         Define.
15229
15230 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
15231
15232         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
15233         operand 2.
15234         ("*ineqbranchsi"): Likewise.
15235
15236 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
15237
15238         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
15239         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
15240         register store followed by a stack increment.
15241
15242 2003-03-05  Chris Moller  <cmoller@redhat.com>
15243
15244         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
15245         to inhibit saving CARRY_REGS.
15246
15247         * config/stormy16/stormy16.c (xs_hi_general_operand):
15248         added predicate to detect and error-out on out-of-range
15249         const_ints for movhi.
15250         * config/stormy16/stormy16.md (movhi): use
15251         xs_hi_general_operand.
15252
15253         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
15254         added a check for local vbl size overflow.
15255         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
15256         added predicate to detect and error-out on out-of-range
15257         const_ints for addhi and subhi.
15258         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
15259         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
15260
15261         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15262         add a term to accept PRE_MODIFY addresses.
15263         * config/stormy16/stormy16.c (xstormy16_expand_move):
15264         add code to expand PRE_MODIFY addresses to an add followed
15265         by a move.
15266
15267 2003-03-06  Jason Merrill  <jason@redhat.com>
15268
15269         * tree-inline.c (inlinable_function_p): Revert earlier change
15270         pending investigation.
15271
15272 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
15273
15274         * config/h8300/h8300.md (a new peephole2): New.
15275
15276 2003-03-06  Jan Hubicka  <jh@suse.cz>
15277
15278         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
15279
15280 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15281
15282         * dwarf2out.c (size_of_die): Compute size of external reference to
15283         die correctly.
15284
15285 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
15286
15287         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
15288         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
15289         expanders.
15290
15291 2003-03-05  Roger Sayle  <roger@eyesopen.com>
15292
15293         * expr.h (lang_expand_expr): Delete obsolete prototype.
15294
15295 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
15296
15297         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
15298
15299 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
15300
15301         * config/h8300/h8300.md (a peephole2): Generalize to
15302         accept a memory operand.
15303
15304 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
15305
15306         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
15307         * config/alpha/alpha.c (print_operand, case '+'): New.
15308         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
15309         (call_value_osf_1_noreturn): Likewise.
15310
15311 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15312
15313         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
15314         (expand_end_bindings): Likewise.
15315
15316 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15317
15318         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
15319         (epilogue): Don't generate return_external_pic when emitting PA 2.0
15320         code.
15321
15322 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
15323
15324         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
15325
15326         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
15327
15328         * hooks.c (hook_rtx_rtx_null): New.
15329
15330         * hooks.h (hook_rtx_rtx_null): Protoize.
15331
15332         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
15333         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
15334
15335         * target.h (struct gcc_target): Add dwarf_register_span.
15336
15337         * dwarf2out.c (multiple_reg_loc_descriptor): New.
15338         (one_reg_loc_descriptor): New.
15339         (reg_loc_descriptor): Add support for values that span more than
15340         one register.
15341
15342 2003-03-05  Jan Hubicka  <jh@suse.cz>
15343
15344         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
15345         * alias.c:  Include cgraph.h
15346         (mark_constant_function): Use cgraph_rtl_info.
15347         * calls.c:  Include cgraph.h
15348         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
15349         calls.
15350         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
15351         * cgraph.c (cgraph_rtl_info): New function.
15352         * cgraph.h (cgraph_rtl_info): Declare
15353         (cgraph_rtl_info): Likewise.
15354         * function.h (struct function): Add recursive_call_emit.
15355         * toplev.c: Include cgraph.h.
15356         (rest_of_compilation): Set preferred_incoming_stack_boundary.
15357
15358 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
15359
15360         * config/h8300/h8300.c (output_simode_bld): Clear the
15361         destination first if possible.
15362         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
15363         alternative.
15364         (extzv_1_r_inv_h8300hs): Likewise.
15365
15366 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15367
15368         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
15369         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
15370         * cfgloop.c (flow_loop_free): Made global.
15371         (establish_preds): New static function.
15372         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
15373         (get_loop_exit_edges): New.
15374         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
15375         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
15376         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
15377         loops.
15378         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
15379         removability of an edge.
15380         (fix_irreducible_loops): New static function.
15381         (find_path, remove_path): Add ability to remove enclosing loops.
15382         (unloop): New.
15383         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
15384         flags.
15385         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
15386         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
15387         not neccessary.
15388         (decide_peel_completely, peel_loops_completely): Allow complete peeling
15389         of non-duplicable once rolling loops.
15390         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
15391
15392 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
15393
15394         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
15395         for align_jumps is 4.
15396
15397         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
15398         use GENERAL_REGS.
15399
15400 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
15401
15402         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
15403         according to va_arg type.
15404         (EXPAND_BUILTIN_VA_ARG): Remove.
15405         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
15406         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
15407
15408 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
15409
15410         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
15411         else clauses.
15412
15413 2003-03-05  Michael Matz  <matz@suse.de>
15414
15415         * i386/i386.c (ix86_save_reg): Also test
15416         current_function_uses_const_pool.
15417
15418 2003-03-05  Michael Matz  <matz@suse.de>
15419
15420         * unwind.h: Add the GPL exception.
15421         * Makefile.in (USER_H): Add unwind.h.
15422
15423 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
15424
15425         PR c/9799
15426         * c-typeck.c (push_init_level): Add sanity check.
15427
15428 2003-03-05  Jan Hubicka  <jh@suse.cz>
15429
15430         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
15431         RTL inlining is done.
15432
15433         * cgraphunit.c (cgraph_mark_local_functions): New local function.
15434         (cgraph_optimize): Mark local functions.
15435         * i386-protos.h (init_cumulative_args): Update prototype.
15436         * i386.c (init_cumulative_args): Use register passing convention for
15437         local functions.
15438
15439         * cgraph.c (cgraph_global_info_ready): New global variable
15440         (cgraph_local_info, cgraph_global_info): New functions.
15441         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
15442         structures.
15443         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
15444         Declare.
15445         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
15446         (cgraph_mark_functions_to_output): Use inline_many.
15447         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
15448         (cgraph_expand_functions): Expand inline functions last.
15449         (cgraph_optimize): Do not emit uneeded functions.
15450
15451 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
15452
15453         * expr.c (convert_modes): Check for legal hard register.
15454
15455 2003-03-04  Tom Tromey  <tromey@redhat.com>
15456
15457         * doc/sourcebuild.texi (Front End Directory): Document tags.
15458         * configure: Rebuilt.
15459         * configure.in (target_list): Added tags.
15460         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
15461         TAGS files by reference.
15462         * objc/Make-lang.in (objc.tags): New target.
15463
15464 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15465
15466         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
15467         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
15468         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
15469         gcov_read_string, gcov_write_length): Modified to enable reading/
15470         writing of whole .da file just once.
15471         (da_file_open, da_file_close, da_file_eof, da_file_error,
15472         da_file_position, da_file_seek, da_file_write, da_file_read): New
15473         functions.
15474         (actual_da_file, actual_da_file_position, actual_da_file_length,
15475         actual_da_file_buffer, actual_da_file_buffer_size): New static
15476         functions.
15477         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
15478         just once.
15479
15480
15481 2003-03-04  Andreas Schwab  <schwab@suse.de>
15482
15483         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
15484         offset without frame pointer.
15485
15486 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
15487
15488         * expr.c (expand_expr): Call promote_mode to set unsignedp.
15489
15490 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
15491
15492         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
15493         * configure: Regenerated.
15494         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
15495
15496 2003-03-04  Andreas Jaeger  <aj@suse.de>
15497
15498         * configure.in: Check for <memcheck.h>.
15499         * configure: Regenerated.
15500
15501         * config.in: Define HAVE_MEMCHECK_H.
15502
15503         * ggc-common.c: Use <memcheck.h> if available instead of
15504         <valgrind.h>.
15505         * ggc-page.c: Likewise.
15506         * cppfiles.c: Likewise.
15507
15508 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
15509
15510         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
15511
15512 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
15513
15514         PR c/9262
15515         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
15516         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
15517
15518 2003-03-04  Jan Hubicka  <jh@suse.cz>
15519
15520         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
15521         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
15522         for -O3.
15523
15524 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
15525
15526         * configure.in: Delete three unused variables.  Move a variable
15527         definition closer to its use.  Simplify use_collect2 logic.  Start to
15528         organize.  Simplify tests for in-tree gas and ld.
15529         * configure: Regenerate.
15530
15531 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
15532
15533         * Makefile.in: Update.
15534         * c-common.c (flag_no_line_commands, flag_no_output,
15535         flag_dump_macros, flag_dump_includes): New.
15536         * c-common.h (flag_no_line_commands, flag_no_output,
15537         flag_dump_macros, flag_dump_includes, preprocess_file): New.
15538         (init_c_lex): Update prototype.
15539         * c-lex.c (init_c_lex): Update prototype; move some code to
15540         c_common_init.
15541         * c-opts.c (preprocess_file): Subsume into c_common_init.
15542         (c_common_decode_option): Update flags.
15543         (c_common_init): Move code from preprocess_file and init_c_lex.
15544         (sanitize_cpp_opts): Update.
15545         * c-ppoutput.c: New, cppmain.c almost verbatim.
15546         * cpphash.h (struct printer): Remove.
15547         (struct cpp_reader): Remove print.
15548         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
15549         cpp_preprocess_file): Remove.
15550         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
15551         and dump_includes.
15552         * cppmain.c: Remove.
15553         * doc/passes.texi: Update.
15554
15555 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15556
15557         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
15558         (assign_stack_local_1): Perform overall stack alignment only when
15559         STACK_ALIGNMENT_NEEDED is nonzero.
15560         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
15561
15562         * pa.c (compute_frame_size): Rename fsize to size.  Account for
15563         alignment to a word boundary before general register save block.  Only
15564         account for double-word alignment before floating point register save
15565         block if one or more are saved.  Don't allocate space for %r3 when
15566         frame pointer is needed.
15567         (hppa_expand_prologue): Include alignment to word boundary in local
15568         frame size.
15569         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
15570         (STACK_ALIGNMENT_NEEDED): Define.
15571
15572 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
15573
15574         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
15575         global register variables.
15576
15577 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
15578
15579         * reload.c (reload_adjust_reg_for_mode): New function.
15580         (subst_reloads): Call it.
15581         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
15582         * reload.h (reload_adjust_reg_for_mode): Declare.
15583         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
15584         Call it.
15585
15586 2003-03-03  James E Wilson  <wilson@tuliptree.org>
15587
15588         * optabs.c (add_equal_note): Delete SUBREG_REG use.
15589         Fixes PR c/7872.
15590
15591 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15592
15593         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
15594         (*ixorsi3_lshiftrt_16): New.
15595         (*iorsi3_ashift_16): Remove.
15596
15597 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15598
15599         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
15600         pattern.
15601
15602 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
15603
15604         * doc/install.texi (Specific): Update entry for powerpc-darwin.
15605
15606 2003-03-03  Richard Henderson  <rth@redhat.com>
15607
15608         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
15609
15610 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
15611
15612         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
15613         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
15614         (rs6000_variable_issue): Do not return negative value.
15615         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
15616         scheduling pass.
15617
15618 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15619
15620         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
15621         prune_unused_types calls.
15622
15623 2003-03-03  Jason Merrill  <jason@redhat.com>
15624
15625         * tree-inline.c (find_builtin_longjmp_call): Save and restore
15626         lineno and input_filename.
15627         (find_alloca_call): Likewise.
15628         (inlinable_function_p): Run the langhook earlier.
15629
15630         * calls.c (compute_argument_addresses): Give the new MEMs a
15631         minimum alignment of PARM_BOUNDARY.
15632
15633 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
15634
15635         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
15636         subtarget_asm_isa_spec.
15637         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
15638         (ASM_SPEC): Define as SH_ASM_SPEC.
15639         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
15640         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
15641         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
15642         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
15643
15644         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
15645         and align_jumps if not set.
15646         Force align_jumps to be at least 2.
15647         When relaxing, force align_functions to be at least the maximum of
15648         align_loops, align_jumps and 4.
15649         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
15650         (sh_loop_align): Honour align_loops_log.
15651
15652         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
15653         to check for indirect_jump_scratch.
15654         (indirect_jump_scratch): Add second set.
15655         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
15656         when looking for indirect_jump_scratch.
15657         Extract scratch register taking new structure of indirect_jump_scratch
15658         into account.
15659         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
15660
15661 2003-03-03  Jan Hubicka  <jh@suse.cz>
15662
15663         * calls.c (rtx_for_function_call): Take the address as an argument
15664         (expand_call): Do not modify the expression.
15665
15666         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
15667         optimizing.
15668
15669 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15670
15671         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
15672         TARGET_H8300H and TARGET_H8300S.
15673
15674 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15675
15676         * config/h8300/h8300.md (a peephole2): New.
15677
15678 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15679
15680         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
15681         operands[0] and operands[1] are different.
15682
15683 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15684
15685         * reload1.c (reload_cse_move2add): Remove variable success.
15686
15687 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15688
15689         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
15690         warnings.
15691
15692 2003-03-02  Richard Henderson  <rth@redhat.com>
15693
15694         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
15695         * config.in, configure: Rebuild.
15696         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
15697         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
15698         paired ldtoffx and ldxmov annotations.
15699         (load_symptr_internal1): Remove.
15700         (load_symptr_high, load_symptr_low): New.
15701
15702 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15703
15704         * c-incpath.c (add_path): Fix sysp assignment.
15705
15706 2003-03-02  Kurt Garloff  <garloff@suse.de>
15707
15708         * params.def: Introduce parameter max-inline-insns-rtl for
15709         a separate limit for the RTL inliner.
15710         * params.h: Likewise.
15711         * integrate.c (function_cannot_inline_p): Use it.
15712         * toplev.c (decode_f_option): Set multiple parameters
15713         controlling inlining with -finline-limit.
15714         * params.def: Fix orthographic and typographic errors.
15715         * doc/invoke.texi: Document parameters controlling inlining
15716         and the way -finline-limit sets multiple of them.
15717
15718         * tree.h (struct tree_decl): Introduce inlined_function_flag,
15719         recording whether the function became eligible for inlining
15720         by a compiler flag rather than the declaration.
15721         Provide DID_INLINE_FUNC macro to access it.
15722         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
15723         * cp/decl.c (grokfndecl): Likewise.
15724         * toplev.c (rest_of_compilation): Likewise.
15725         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
15726         * print-tree.c (print_node): Report it.
15727         * params.def: Introduce new max-inline-insns-auto limit.
15728         * params.h: Likewise.
15729         * tree-inline.c (inlinable_function_p): Apply it to functions
15730         with DID_INLINE_FUNC set.
15731         * toplev.c (decode_f_option): Initialize it from -finline-limit
15732         value.
15733         * doc/invoke.texi: Document new parameter.
15734
15735 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
15736
15737         * fix-header.c (read_scan_file): Don't reference simplify_path.
15738
15739 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15740
15741         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
15742         min/max instructions by default as may result in reload errors.
15743
15744 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15745
15746         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
15747         avoid reload problems; define split for it.
15748
15749 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
15750
15751         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
15752         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
15753         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
15754         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
15755         rotatert and rotate.
15756         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
15757         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
15758         ("*rotrhi3_addr"): New split for shift insns on address register.
15759         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
15760         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
15761         (___rotrhi3): Likewise.
15762         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
15763
15764 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15765
15766         * toplev.c (aux_base_name): Moved from toplev.h.
15767         (filename): Constify.
15768         (lang_dependent_init): Don't duplicate name.
15769         (process_options): Set aux_base_name here, not...
15770         (do_compile): ...here.  Change protoype.
15771         (toplev_main): Move some code from do_compile.
15772         * toplev.h: Remove aux_base_name.
15773
15774 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
15775
15776         * config/h8300/h8300-protos.h: Add a prototype for
15777         iorxor_operator.
15778         * config/h8300/h8300.c (print_operand): Handle 'c'.
15779         (iorxor_operator): New.
15780         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
15781         * config/h8300/h8300.md (*iorhi3_zext): Remove.
15782         (*iorsi3_zexthi): Likewise.
15783         (*iorsi3_zextsi): Likewise.
15784         (*xorhi3_zextqi): Likewise.
15785         (*xorsi3_zexthi): Likewise.
15786         (*xorsi3_zextsi): Likewise.
15787         (*ixorhi3_zext): New.
15788         (*ixorsi3_zext_qi): Likewise.
15789         (*ixorsi3_zext_hi): Likewise.
15790
15791 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
15792
15793         * c-incpath.c (remove_component_p, simplify_path): Move back to
15794         cppfiles.c.
15795         (remove_duplicates): Use cpp_simplify_path.
15796         * c-incpath.h (simplify_path): Remove.
15797         * c-lex.c: Don't include c-incpath.h.
15798         (init_c_lex): Remove simplify_path.
15799         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
15800         (find_or_create_entry, validate_pch): Revert.
15801
15802 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
15803
15804         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
15805           an external cpp during compilation.
15806         (option_map): Likewise.
15807         * objc/lang-specs.h (default_compilers): Similarly.
15808         * doc/invoke.texi: Document -no-integrated-cpp flag.
15809
15810 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
15811
15812         * config/h8300/h8300.md (zero_extendqisi2): Change to an
15813         expander.
15814         (*zero_extendqisi2_h8300): New.
15815         (*zero_extendqisi2_h8300hs): New.
15816         (two splitters): New.
15817
15818 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15819
15820         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
15821
15822 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15823
15824         * config/h8300/h8300.md (a peephole2): Remove dead code.
15825
15826 2003-03-01  Roger Sayle  <roger@eyesopen.com>
15827
15828         PR c++/9367
15829         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
15830         (BT_FN_INT_CONST_STRING_VALIST_ARG,
15831         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
15832         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
15833         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
15834         BT_FN_INT_STRING_CONST_STRING_VAR,
15835         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
15836         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
15837         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
15838         ATTR_NONNULL_3): Also include the nothrow attribute.
15839         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
15840         vsnprintf, vscanf, vsscanf): Don't define attributes here.
15841         * builtins.def (putchar, puts): Make full C89 built-ins.
15842         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
15843         vsscanf, vsnprintf, vsprintf): New built-ins.
15844         * c-common.c (c_common_nodes_and_builtins): Handle new macro
15845         DEF_FUNCTION_TYPE_VAR_3.
15846
15847         * doc/extend.texi: Document these new built-in functions.
15848
15849 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15850
15851         * config/h8300/h8300.md (a peephole2): New.
15852
15853 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
15854
15855         * predict.c (estimate_bb_frequencies): Correctly set
15856         real_values_initialized after initialization.
15857
15858 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
15859
15860         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
15861         cppinit.o, cppdefault.o, fix-header): Update.
15862         * c-incpath.c: New file.
15863         * c-incpath.h: New file.
15864         * c-lex.c: Include c-incpath.h.
15865         (init_c_lex): Register path simplifier.
15866         * c-opts.c: Include cppdefault.h and c-incpath.h.
15867         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
15868         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
15869         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
15870         (missing_arg, c_common_decode_option): Handle them.
15871         (c_common_post_options): Register include chains.
15872         (print_help): Update.
15873         * cppdefault.h (struct default include): Update.
15874         Move some macros to ...
15875         * cppdefault.c: ... here.
15876         (cpp_include_defaults): Add extra field add_sysroot.
15877         * cppfiles.c (include_file, search_from, find_or_create_entry,
15878         cpp_included, find_include_file, remap_filename): Update for
15879         renaming of search_path to cpp_path, and of the chain headers.
15880         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
15881         * cpphash.h (struct search_path): Move to cpplib.h.
15882         (struct cpp_buffer, struct cpp_reader): Update.
15883         (_cpp_simplify_pathname): Remove.
15884         * cppinit.c: Don't include prefix.h and cppdefault.h.
15885         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
15886         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
15887         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
15888         no_pth, cpp_handle_options): Remove.
15889         (struct pending_option): Remove chain members.
15890         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
15891         cpp_handle_option): Update.
15892         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
15893         (struct cpp_options): Remove quote_include, bracket_include,
15894         include_prefix, include_prefix_len, verbose, ignore_srcdir,
15895         no_standard_includes, no_standard_cplusplus_includes.
15896         (struct cpp_callbacks): Add simplify_path.
15897         (cpp_handle_options): Remove.
15898         * fix-header.c: Include c-incpath.h.
15899         (read_scan_file): Update to use c-incpath functionality.
15900         * doc/passes.texi: Update.
15901
15902 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15903
15904         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
15905         satisfies EXTRA_CONSTRAINT 'U'.
15906
15907 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
15908
15909         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
15910         register.
15911         (*tst_extzv_memqi_1_n): Change to a splitter.
15912         (a peephole2): Update.
15913
15914 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
15915
15916         * predict.c (estimate_bb_frequencies): Initialize the sreal
15917         constants once per compilation.
15918
15919 2003-02-28  Richard Henderson  <rth@redhat.com>
15920
15921         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
15922
15923 2003-02-28  scott snyder  <snyder@fnal.gov>
15924
15925         * flags.h: Add flag_eliminate_unused_debug_types.
15926         * toplev.c: Add flag_eliminate_unused_debug_types.
15927         (f_options): Add -feliminate-unused-debug-types.
15928         * dwarf2out.c (struct file_table): Add emitted member.
15929         (splice_child_die): Fix the parent pointer for the child being
15930         spliced.
15931         (lookup_filename): Maintain file_table.emitted array.  Don't
15932         output .file directive here.
15933         (maybe_emit_file): (new)
15934         (init_file_table): Set up file_table.emitted.
15935         (dwarf2out_source_line): Use maybe_emit_file.
15936         (dwarf2out_start_source_file): Use maybe_emit_file.
15937         (dwarf2out_init): Use maybe_emit_file.
15938         (prune_unused_types_walk_attribs): (new)
15939         (prune_unused_types_mark): (new)
15940         (prune_unused_types_walk): (new)
15941         (prune_unused_types_prune): (new)
15942         (prune_unused_types): (new)
15943         (dwarf2out_finish): Call prune_unused_types if
15944         flag_eliminate_unused_debug_types is set.
15945         * doc/invoke.texi (Option Summary): Add
15946         -feliminate-unused-debug-types.
15947         (Debugging Options): Likewise.
15948
15949 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
15950
15951         * doc/invoke.texi: Change .pch to .gch.
15952         * cppfiles.c (open_file_pch): Likewise.
15953         * gcc.c (default_compilers): Likewise.
15954
15955 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
15956
15957         * floatlib.c: Remove.
15958
15959 2003-02-28  Jason Merrill  <jason@redhat.com>
15960
15961         * stor-layout.c (variable_size): Leave a "minus 1" outside the
15962         SAVE_EXPR.
15963
15964 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
15965
15966         * config/rs6000/power4.md: Add compare bypass.
15967
15968 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
15969
15970         * config/netbsd.h: Update copyright years.
15971         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
15972         -pthread is specified on the command line.
15973
15974 2003-02-28  Dale Johannesen <dalej@apple.com>
15975
15976         * loop.c (struct movable): Add insert_temp, shrink savemode.
15977         (scan_loop): Accept invariants that require copying; mark as
15978         insert_temp.
15979         (combine_movables): Don't combine insert_temp movables.
15980         (move_movables): Insert copies for insert_temp movables.
15981         Don't record the info based on regno for insert_temp's.
15982
15983 2003-02-28  Joel Sherrill <joel@OARcorp.com>
15984
15985         PR 9638/other
15986         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
15987         this constant defaults to 1.
15988
15989 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
15990
15991         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
15992
15993 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
15994
15995         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
15996         ARMv5e processor, not just for XScale.  Instructions are predicable.
15997         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
15998
15999 2003-02-28  Nick Clifton  <nickc@redhat.com>
16000
16001         * config/arm/arm.c (note_invalid_constants): Change parameter type
16002         from bool to int.
16003
16004 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
16005
16006         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
16007         test of bit 7.
16008         (*tst_extzv_memqi_1_n): Likewise.
16009         (a peephole2): New.
16010
16011 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
16012
16013         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
16014         #ifndef __mips16.
16015
16016 2003-02-28  Jan Hubicka  <jh@suse.cz>
16017
16018         * combine.c (gen_lowpart_for_combine): Update handling of
16019         subregs_of_mode
16020         * flow.c (life_analysis, mark_used_regs): Likewise.
16021         * regclass.c (subregs_of_mode): Turn into single bitmap.
16022         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
16023         dealing with subregs_of_mode
16024         * regs.h (subregs_of_mode): Update prototype.
16025
16026 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
16027
16028         * emit-rtl.c (set_reg_attrs_for_parm): New function.
16029         * rtl.h (set_reg_attrs_for_parm): New exported function.
16030         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
16031         set_reg_attrs_from_mem.
16032
16033 2003-02-27  Roger Sayle  <roger@eyesopen.com>
16034             Zack Weinberg <zack@codesourcery.com>
16035
16036         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
16037
16038 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
16039
16040         * reload1.c (sext_for_mode): Remove.
16041         (reload_cse_move2add): Use trunc_int_for_mode instead of
16042         sext_for_mode.
16043         (move2add_note_store): Likewise.
16044         Reset register information if we see a set in non-integer
16045         mode.
16046
16047 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
16048
16049         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
16050         option.
16051         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
16052         * config/rs6000/aix51.h: Same.
16053         * config/rs6000/aix52.h: Same.
16054         * config/rs6000/power4.md: Additional VMX bypasses.
16055
16056 2003-02-27   Geert Bosch <bosch@gnat.com>
16057
16058         * toplev.c (print_version): Add indentation for GGC heuristics and
16059         output after printing version information.
16060
16061 2003-02-27  James E Wilson  <wilson@tuliptree.org>
16062
16063         * combine.c (simplify_comparison): Require integral mode when
16064         permuting SUBREG with AND.
16065
16066 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
16067
16068         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
16069
16070 2003-02-27  Nick Clifton  <nickc@redhat.com>
16071
16072         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
16073         deleted when cirrus instructions were added.
16074
16075 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
16076
16077         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
16078         POSIX thread support by default.
16079
16080 2003-02-27  Roger Sayle  <roger@eyesopen.com>
16081
16082         * config/i386/cygwin.h: Don't include any other files directly.
16083         * config/i386/mingw32.h: Don't include cygwin.h directly.
16084         * config.gcc (cygwin, mingw32, uwin): Instead make these files
16085         explicit in the tm_files variable.
16086
16087 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
16088
16089         * config/rs6000/rs6000.md: Add TI constant splitter.
16090
16091 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
16092
16093         * builtins.c (purge_builtin_constant_p): Handle subreg of
16094         constant_p_rtx too.
16095
16096         * function.c (assign_stack_local_1): Truncate constant added to
16097         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
16098
16099 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
16100
16101         * config.gcc: Add power4 to PowerPC with_cpu list.
16102
16103 2003-02-26  Jan Hubicka  <jh@suse.cz>
16104
16105         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
16106
16107 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16108
16109         * gcov-dump.c (print_prefix): Fix signedness warning.
16110         * gcov-io.h (struct counter_section, struct counter_section_data): New.
16111         (struct function_info): n_arc_counts field removed, n_counter_sections,
16112         counter_sections fields added.
16113         (struct gcov_info): arc_counts, n_arc_counts fields removed,
16114         n_counter_sections, counter_sections fields added.
16115         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
16116         profile sections.
16117         * profile.h (MAX_COUNTER_SECTIONS): New.
16118         (struct section_info): New.
16119         (struct profile_info): count_instrumented_edges,
16120         count_edges_instrumented_now fields removed, n_sections, section_info
16121         fields added.
16122         (find_counters_section): Declare.
16123         * profile.c (struct function_list): count_edges field removed,
16124         n_counter_sections, counter_sections fields added.
16125         (set_purpose, label_for_tag, build_counter_section_fields,
16126         build_counter_section_value, build_counter_section_data_fields,
16127         build_counter_section_data_value, build_function_info_fields,
16128         build_function_info_value, build_gcov_info_fields,
16129         build_gcov_info_value): New static functions.
16130         (find_counters_section): New function.
16131         (instrument_edges, get_exec_counts, compute_branch_probabilities,
16132         branch_prob, create_profiler): Modified to support multiple profile
16133         sections.
16134
16135 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16136
16137         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
16138         is 8 * STACK_BOUNDARY.
16139         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
16140
16141 2003-02-26  Michael Matz  <matz@suse.de>
16142
16143         * ra-colorize.c (merge_moves): Fix list handling.
16144
16145 2003-02-26  Nick Clifton  <nickc@redhat.com>
16146
16147         * config/arm/arm.c (is_load_address): Rename to...
16148         (arm_memory_load_p) ... this and make it check for SUBREGs and
16149         constant loads that will be converted into loads from the
16150         minipool.
16151         (is_cirrus_insn): Rename to ...
16152         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
16153         of CIRRUS_NO with CIRRUS_NOT.
16154         (cirrus_reorg): Use renamed functions.
16155         (note_invalid_constants): Change from a void function to bool.
16156         Add an extra parameter, saying whether the fixups should be
16157         pushed.  Return true if fixups are needed.
16158         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
16159         of CIRRUS_NO with CIRRUS_NOT.
16160         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
16161         other floating point co-processors can also affect this.
16162         * config/arm/arm.md ("type" attribute): Add mav_farith and
16163         mav_dmult.  Replace references to "cirrus_type" attribute with
16164         "type".
16165         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
16166         ("cirrus_type" attribute): Delete - use "type" instead.
16167         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
16168         'normal'.
16169
16170 2003-02-25  Jan Hubicka  <jh@suse.cz>
16171
16172         * objc-act.c: Include cgraph.h
16173         (mark_referenced_methods): New function.
16174         (objc_init): Call it.
16175         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
16176
16177         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
16178         mode.
16179
16180         * optabs.c (expand_fix): Do not widen the input operand.
16181
16182         * expr.c (emit_group_store):  Fix crash when converting single
16183         register into complex register.
16184
16185         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
16186         * alias.c: Include timevar.h
16187         (init_alias_analysis):  Set timevar
16188         * jump.c: Include timevar.h
16189         (rebuild_jump_labels):  Set timevar
16190         * regcalss.c: Include timevar.h
16191         (reg_scan):  Set timevar
16192         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
16193
16194 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16195
16196         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
16197
16198         * Makefile.in (loop-unroll.o): New.
16199         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
16200         (unroll_and_peel_loops): Declare.
16201         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
16202         flag_old_unroll_loops.
16203         * loop.c (loop_invariant_p): Ditto.
16204         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
16205         flag_old_unroll_all_loops.
16206         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
16207         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
16208         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
16209         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
16210         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
16211         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
16212         PARAM_MAX_ONCE_PEELED_INSNS): New.
16213         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
16214         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
16215         instead of old one.
16216         (flag_peel_loops): New.
16217         (lang_independent_options): The new flags added.
16218         (rest_of_compilation): Call new unroller.
16219         (process_options): Setup flags for coexistence of old and new unroller.
16220         * doc/invoke.texi: Document new options.
16221         * doc/passes.texi: Document new unroller pass.
16222
16223 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
16224
16225         * fixinc/fixincl.x: Regenerate
16226
16227 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
16228
16229         * function.c (assign_parms): Set reg_attrs for parameters passed in
16230         registers.
16231
16232 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
16233
16234         PR target/9681
16235         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
16236
16237 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
16238
16239         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
16240         pseudo-op.
16241
16242 2003-02-25  Roger Sayle  <roger@eyesopen.com>
16243
16244         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
16245         * cse.c (invalidate_skipped_set):  Likewise.
16246         * integrate.c (subst_constants):  Likewise.
16247         * jump.c (reversed_comparison_code_parts):  Likewise.
16248         * loop.c (canonicalize_condition):  Likewise.
16249         * simplify-rtx.c (simplify_relational_operation):  Likewise.
16250
16251 2003-02-25  Roger Sayle  <roger@eyesopen.com>
16252
16253         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
16254         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
16255         the appropriate macro to define built-in function.
16256         (fmod,fmodf,fmodl): New built-in functions.
16257
16258         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
16259
16260 2003-02-25  Richard Henderson  <rth@redhat.com>
16261
16262         * config/i386/i386.c (function_arg): Pass variable sized
16263         structures correctly on the stack.
16264
16265 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
16266
16267         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
16268         does not reduce the cost of SET.
16269
16270 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16271
16272         PR target/9732
16273         * config/rs6000/rs6000.c (first_reg_to_save): Handle
16274         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
16275         (rs6000_emit_prologue): Likewise.
16276         (rs6000_emit_epilogue): Likewise.
16277         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
16278         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
16279
16280 2003-02-25  Richard Henderson  <rth@redhat.com>
16281
16282         * real.c (real_to_integer2): Force overflow result only for
16283         unsigned overflow.
16284
16285 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
16286
16287         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
16288
16289 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
16290             Richard Henderson  <rth@redhat.com>
16291
16292         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
16293         there is no similar load.
16294
16295 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
16296             Richard Henderson  <rth@redhat.com>
16297
16298         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
16299         sched-rgn.c.
16300         (add_forward_dependence): New function prototype.
16301
16302         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
16303         sched-init.h.
16304         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
16305         them to haifa-sched.c.
16306
16307         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
16308         haifa_classify_insn): Move them from sched-rgn.c.
16309
16310         * sched-deps.c (add_dependence): Return flag of creating a new
16311         entry.
16312         (add_forward_dependence): New function.
16313         (compute_forward_dependences): Use the function.
16314
16315         * sched-ebb.c (earliest_block_with_similiar_load): New function.
16316         (add_deps_for_risky_insns): New function.
16317         (schedule_ebb): Call the function.
16318
16319 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
16320
16321         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
16322         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
16323
16324         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
16325         opaque types fail.
16326
16327         * c-typeck.c (comptypes): Change call to vector_types_compatible
16328         to vector_opaque_p.
16329         (convert_for_assignment): Call vector_opaque_p instead of
16330         vector_types_compatible.
16331         (really_start_incremental_init): Disallow initialization of opaque
16332         types.
16333
16334         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
16335         Define TARGET_VECTOR_OPAQUE_P.
16336         (TARGET_INITIALIZER): Same.
16337
16338         * target.h (struct gcc_target): Remove vector_types_compatible.
16339         Add vector_opaque_p.
16340
16341         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
16342         Remove.
16343         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
16344         a vector type.  Change return type to bool.
16345         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
16346         (TARGET_VECTOR_OPAQUE_P): Define.
16347
16348         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
16349         target hook.
16350         Include target.h.
16351         (cp_parser_init_declarator): Fix typo in function comments.
16352
16353 2003-02-25  Jan Hubicka  <jh@suse.cz>
16354
16355         * Makefile.in (lcm.o):  Add dependency on function.h
16356         * lcm.c (function.h): Include.
16357         * i386.c (machine_function, ix86_stack_locals,
16358         * ix86_save_varrargs_registers) : Move to
16359         ...
16360         * i386.h (machine_function, ix86_stack_locals,
16361         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
16362         (ix86_optimize_mode_switching): New.
16363         * i386.md (fix patterns): Set ix86_optimize_mode_switching
16364
16365 2003-02-25  Nick Clifton  <nickc@redhat.com>
16366
16367         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
16368         of fourth arg is 'fndecl' not 'indirect'.  Update comment
16369         describing the function's parameters.
16370
16371 2003-02-24  Jan Hubicka  <jh@suse.cz>
16372
16373         * combine.c (simplify_shift_const):  Fix previous patch.
16374
16375 2003-02-24  Jeff Law  <law@redhat.com>
16376
16377         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
16378         alternative.
16379         (testsi_1, testhi_1, testqi_1): Likewise.
16380
16381 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16382
16383         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
16384         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
16385         * doc/extend.texi (Tru64 Pragmas): Reflect this.
16386
16387         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
16388         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
16389         * fixinc/fixincl.x: Regenerate.
16390         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
16391         testcase.
16392         Fixes PR c/5059, c/6126, other/9671.
16393
16394 2003-02-24  Roger Sayle  <roger@eyesopen.com>
16395
16396         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
16397         from handle_braces in "%{...}".
16398
16399 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16400
16401         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
16402         (prepare_move_operands): Handle TLS operands.
16403         (tls_symbolic_operand): New.
16404         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
16405         (legitimize_pic_address): Do nothing for the TLS symbol.
16406         (sh_encode_section_info): Handle TLS case.
16407         (sh_strip_name_encoding): Drop TLS encoding.
16408         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
16409         * config/sh/sh.h (SH_TLS_ENCODING): Define.
16410         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
16411         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
16412         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
16413         * config/sh/sh.md: Define TLS UNSPEC constants.
16414         (type): Add tls_load.
16415         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
16416         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
16417         ("tls_initial_exec"): New insn.
16418         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
16419         ("load_gbr"): New insn.
16420
16421         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
16422         * configure: Regenerate.
16423
16424 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
16425
16426         PR 9297, PR 9722
16427         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
16428         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
16429         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
16430         (enum block_op_methods): Reorder for better store_expr optimization.
16431         * expr.c (store_expr): Test bit 1 of "want_value" for call param
16432         stores, test bit 0 for original want_value meaning.  Pass
16433         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
16434         recursive calls, and calls to expand_param.
16435         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
16436         expected, set target to 0 rather than to subtarget.  Formatting.
16437
16438 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
16439
16440         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
16441
16442 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16443
16444         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
16445         new default behavior.
16446         * ggc-common.c: Include sys/resource.h.
16447         (ggc_rlimit_bound): New function.
16448         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
16449         defaults to account for rlimits.
16450
16451 2003-02-22  Richard Henderson  <rth@redhat.com>
16452
16453         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
16454
16455 2003-02-22  Kelley Cook <kelley@dwhoops.info>
16456
16457         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
16458         (ix86_tune_string): Rename from ix86_cpu_string.
16459
16460 2003-02-22  Kelley Cook <kelleycook@comcast.net>
16461
16462         * config/i386/i386.c: Replace "mcpu" with "mtune".
16463         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
16464         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
16465         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
16466         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
16467
16468 2003-02-23  Andreas Schwab  <schwab@suse.de>
16469
16470         * config.gcc: Delete references to m68k/t-linux and
16471         m68k/t-linux-aout.
16472         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
16473
16474 2003-02-22  Jan Hubicka  <jh@suse.cz>
16475
16476         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
16477         of track scheduling patch.
16478
16479 2003-02-22  Jan Hubicka  <jh@suse.cz>
16480
16481         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
16482         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
16483
16484 2003-02-22  Jan Hubicka  <jh@suse.cz>
16485
16486         * c-decl.c (c_expand_body_1): Fix.
16487
16488 2003-02-22  Jan Hubicka  <jh@suse.cz>
16489
16490         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
16491
16492         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
16493         when not optimizing.
16494         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
16495         when not expensive.
16496         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
16497         optimizing;  Delete trivially dead insns early; fix optimize check.
16498
16499         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
16500         dependency on cgraph.h
16501         * c-decl.c: Include cgraph.h
16502         (finish_function): Update call of tree_inlinable_function_p.
16503         * c-objc-common.c: Include cgraph.h
16504         * cgraph.h: New file.
16505         * cgraphunit.c: New file.
16506         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
16507         (cgraph_nodes, cgraph_n_nodes): Globalize.
16508         (cgraph_finalize_function, cgraph_finalize_compilation_unit
16509         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
16510         Move into cgraphunit.c
16511         * tree-inline.c: Include cgraph.h
16512         * tree-inline.c: Include cgraph.h
16513
16514 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
16515
16516         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
16517         for copying a register.
16518
16519 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16520
16521         PR other/3782
16522         * toplev.c (process_options): If flag_detailed_statistics is set,
16523         then set time_report as well.
16524
16525         PR c/8828
16526         * jump.c (never_reached_warning): Don't fall through BARRRIER
16527         insns.  Update comments to reflect what the function really does.
16528
16529 2003-02-21  Roger Sayle  <roger@eyesopen.com>
16530
16531         * fold-const.c (omit_one_operand): No longer static.
16532         * tree.h (omit_one_operand): Prototype here.
16533         (div_and_round_double): Keep fold-const.c prototypes together.
16534         * builtins.c (builtin_mathfn_code): Handle binary built-in
16535         funtions, such as "pow" and "atan2".
16536         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
16537         Simplify optimizations using "type" the builtin's return type.
16538
16539 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
16540
16541         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
16542         Fix functionalization typo.
16543
16544         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
16545         in an asm.
16546
16547 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16548
16549         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
16550         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
16551         documentation.
16552         * ggc-common.c: Include params.h
16553         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16554         init_ggc_heuristics): New functions.
16555         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16556         init_ggc_heuristics): Prototype.
16557         * toplev.c (print_version):  Output GGC heuristics.
16558         (parse_options_and_default_flags): Call init_ggc_heuristics.
16559
16560 2003-02-22  Jan Hubicka  <jh@suse.cz>
16561
16562         * i386.c (def_builtin):  Special case 64bit builtins.
16563         (MASK_SSE164, MASK_SSE264): New constants.
16564         (builtin_description): Add 64bit builtins.
16565         (ix86_init_mmx_sse_builtins): Likewise.
16566         * i386.h (enum ix86_builtins): Likewise.
16567         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
16568         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
16569         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
16570         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
16571         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
16572         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
16573         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
16574
16575 2003-02-22  Jan Hubicka  <jh@suse.cz>
16576
16577         * i386.c (builtin_description): Add __builtin_ia32_paddq and
16578         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
16579          and __builtin_ia32_psubq128.
16580         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
16581         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
16582         (mmx_adddi3, mmx_subdi3): New.
16583         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
16584         * xmmintrin.h (_mm_movepi64_pi64): New.
16585         (_mm_add_epi64, _mm_sub_epi64): fix.
16586         (_mm_mul_pu16): Rename to...
16587         (_mm_mul_su32): ... this one.
16588
16589         * builtins.c (expand_builtin_expect):  Do not predict
16590         flag_guess_branch_prob is not set.
16591         * c-semantics.c (expand_stmt): Likewise.
16592         * predict.c (predict_insn): Likewise.
16593         * stmt.c (expand_continue_loop): Likewise.
16594         * toplev.c (rest_of_compilation): Do not call
16595         note_prediction_to_br_prob and note_prediction_to_br_prob
16596         when not optimizing.
16597
16598 2003-02-21  Jan Hubicka  <jh@suse.cz>
16599
16600         * cfgrtl.c (commit_edge_insertions):  Call
16601         find_many_sub_basic_block only when some code has been emitted.
16602         (commit_edge_insertions_watch_calls): Bring into sync with
16603         commit_edge_insertions
16604
16605 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
16606
16607         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
16608
16609         * sh.md (binary_sf_op): Use extra constant operand instead of
16610         negating constant operand 4.
16611         * sh.c (sh_expand_binop_v2sf): Supply it.
16612
16613 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
16614
16615         * cpphash.h (struct lexer_state): Add directive_wants_padding.
16616         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
16617         for directives of type INCL.
16618         (glue_header_name, parse_include): Use get_token_no_padding.
16619         * cppmacro.c (replace_args): If directive_wants_padding,
16620         provide padding tokens.
16621
16622 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
16623
16624         * config/h8300/h8300.md (a peephole2): New.
16625
16626 2003-02-21  Jan Hubicka  <jh@suse.cz>
16627
16628         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
16629         (commit_edge_insertions): Call find_many_sub_basic_blocks
16630
16631         * reg-stack.c (convert_regs): Cleax aux for blocks.
16632
16633 2003-02-21  Jan Hubicka  <jh@suse.cz>
16634
16635         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
16636
16637 2003-02-21  Glen Nakamura  <glen@imodulo.com>
16638
16639         PR optimization/8613
16640         * builtins.c (expand_builtin): Emit postincrements before expanding
16641         builtin functions.
16642
16643 2003-02-21  Ben Elliston  <bje@redhat.com>
16644
16645         PR other/5634
16646         * doc/install.texi (Configuration): Explain using $HOME instead of
16647         the ~ metacharacter when referring to home directories.
16648
16649 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
16650
16651         * configure.in (TARGET_SYSTEM_ROOT): Set default to
16652         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
16653         '${exec_prefix}' (in addition to the expansion thereof) as
16654         relocatable.
16655         * configure: Rebuilt.
16656
16657 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
16658
16659         * config/h8300/h8300.md (addhi3_incdec): Change the name to
16660         *addhi3_incdec.
16661         (addsi3_incdec): Change the name to *addsi3_incdec.
16662
16663 2003-02-20  Roger Sayle  <roger@eyesopen.com>
16664
16665         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
16666
16667 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
16668
16669         PR fortran/9038
16670         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
16671         options to be ignored.
16672         (c_common_decode_option): Ignore them when preprocessing.
16673
16674 2003-02-20  Jan Hubicka  <jh@suse.cz>
16675
16676         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
16677         global variables.
16678         (lang_independent_options):  Add -fsched2-use-superblocks
16679         -fsced2-use-traces.
16680         (rest_of_compilation): Deal with it.
16681         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
16682         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
16683         Declare.
16684         * rtl.h (reg_to_stack):  Update prototype.
16685         * reg-stack.c (reg_to_stack): Return when something has changed;
16686         update liveness when executing after superblock scheduling.
16687
16688         * combine.c (simplify_shift_const):  Simplify few special cases
16689         into constants.
16690
16691 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
16692
16693         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
16694         (add.,subf.,neg.): Change attribute to fast_compare.
16695         All DFA descriptions updated.
16696
16697 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
16698
16699         Change base class access representation.
16700         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
16701         TREE_VIA_PRIVATE): Remove.
16702         (BINFO_BASEACCESSES): New binfo elt.
16703         (BINFO_BASEACCESS): New accessor.
16704         (BINFO_ELTS): Increase.
16705         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
16706         (access_public_node, access_protected_node,
16707         access_private_node): New global nodes.
16708         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
16709         * dbxout.c (dbxout_type): Adjust.
16710         * dwarf2out.c (gen_inheritance_die): Add access parameter.
16711         (gen_member_die): Adjust.
16712         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
16713         (output_type): Adjust.
16714         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
16715
16716         Change base class access representation. Share virtual base
16717         binfos.
16718         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
16719         call.
16720         * cp/class.c (build_base_path): Likewise.
16721         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
16722         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
16723         (make_new_vtable): Adjust.
16724         (force_canonical_binfo_r): Delete.
16725         (force_canonical_binfo): Delete.
16726         (mark_primary_virtual_base): Delete.
16727         (dfs_unshared_virtual_bases): Delete.
16728         (mark_primary_bases): Adjust.
16729         (maybe_warn_about_overly_private_class): Adjust.
16730         (dfs_base_derived_from): Delete.
16731         (base_derived_from): Follow the inheritance chain.
16732         (struct find_final_overrider_data): Add vpath member.
16733         (dfs_find_final_overrider): Adjust.
16734         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
16735         (find_final_overrider): Adjust.
16736         (update_vtable_entry_for_fn): Adjust.
16737         (modify_all_vtables): Adjust.
16738         (walk_subobject_offsets): Adjust.
16739         (layout_nonempty_base_or_field): Adjust.
16740         (layout_empty_base): Remove last parameter. Adjust.
16741         (build_base_field): Adjust.
16742         (build_base_fields): Adjust.
16743         (propagate_binfo_offsets): Remove last parameter. Adjust.
16744         (dfs_set_offset_for_unshared_vbases): Delete.
16745         (layout_virtual_bases): Adjust.
16746         (finish_struct_1): Adjust.
16747         (init_class_processing): Don't init access nodes.
16748         (dfs_get_primary_binfo): Delete.
16749         (get_primary_binfo): Adjust.
16750         (dump_class_hierarchy_r): Remove most derived arg, add IGO
16751         parameter. Adjust.
16752         (dump_class_hierarchy): Adjust.
16753         (finish_vtbls): Adjust.
16754         (get_original_base): Delete.
16755         (build_vtt_inits): Adjust.
16756         (dfs_build_secondary_vptr_vtt_inits): Adjust.
16757         (dfs_ctor_vtable_bases_queue_p): Adjust.
16758         (build_ctor_vtbl_group): Adjust.
16759         (dfs_accumulate_vtbl_inits): Adjust.
16760         (build_vtbl_initializer): Adjust.
16761         (build_vbase_offset_vtbl_entries): Adjust.
16762         (add_vcall_offset_vtbl_entries_1): Adjust.
16763         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
16764         (access_*_node): Remove.
16765         (CANONICAL_BINFO): Delete.
16766         (BINFO_UNSHARED_MARKED): Remove.
16767         (BINFO_MARKED): Set LANG_FLAG_0 directly.
16768         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
16769         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
16770         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
16771         Delete.
16772         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
16773         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
16774         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
16775         Delete.
16776         (BINFO_DEPENDENT_BASE_P): New.
16777         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
16778         index.
16779         (markedp, unmarkedp): Adjust.
16780         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
16781         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
16782         find_vbase_instance, binfo_for_vbase): Delete.
16783         (copied_binfo, original_binfo): Declare.
16784         (finish_base_specifier): Add virtual_p arg.
16785         (unshare_base_binfos): Delete.
16786         (copy_base_binfos): Declare.
16787         (reverse_path): Delete.
16788         * cp/decl.c (xref_basetypes): Access and virtuality passed
16789         differently. Don't copy direct base binfos here. Call
16790         copy_base_binfos.
16791         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
16792         (initialize_vtbl_ptrs): Adjust.
16793         (expand_member_init): Adjust.
16794         * cp/parser.c (cp_parser_base_specifier): Adjust.
16795         * cp/pt.c (instantiate_class_template): Adjust.
16796         (get_template_base_recursive): Adjust.
16797         * cp/rtti.c (get_pseudo_ti_init): Adjust.
16798         (get_pseudo_ti_desc): Adjust.
16799         * cp/tree.c (unshare_base_binfos): Rename to ...
16800         (copy_base_binfos): ... here, reimplement.
16801         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
16802         (reverse_path): Remove.
16803         * cp/typeck.c (get_delta_difference): Adjust error messages.
16804         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
16805         * cp/search.c (lookup_base_r): Adjust.
16806         (dynamic_cast_base_recurse): Adjust.
16807         (canonical_binfo): Remove.
16808         (dfs_canonical_queue): Remove.
16809         (dfs_assert_unmarked_p): Remove.
16810         (assert_canonical_unmarked): Remove.
16811         (shared_marked_p, shared_unmarked_p): Remove.
16812         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
16813         (dfs_access_in_type): Adjust.
16814         (access_in_type): Adjust.
16815         (dfs_accessible_queue_p): Adjust.
16816         (dfs_accessible_p): Adjust.
16817         (is_subobject_of_p_1, is_subobject_of_p): Remove.
16818         (struct lookup_field_info): Remove from_dep_base_p field.
16819         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
16820         (lookup_field_r): Remove dependent base code.
16821         (lookup_member): Likewise.
16822         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
16823         (dfs_unmarked_real_bases_queue_p): Remove.
16824         (dfs_marked_real_bases_queue_p): Remove.
16825         (dfs_skip_vbases): Remove.
16826         (dfs_get_pure_virtuals): Adjust.
16827         (markedp, unmarkedp): Adjust.
16828         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
16829         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
16830         (dfs_unmark): Adjust.
16831         (dfs_get_vbase_types):Remove.
16832         (dfs_build_inheritance_graph_order): Remove.
16833         (get_vbase_types): Remove
16834         (dfs_find_vbase_instance): Remove.
16835         (find_vbase_instance): Remove.
16836         (dfs_debug_unmarkedp): Adjust.
16837         (dependent_base_p): Remove.
16838         (dfs_push_type_decls): Adjust.
16839         (dfs_push_decls): Adjust.
16840         (dfs_no_overlap_yet): Adjust.
16841         (copied_binfo): New function.
16842         (original_binfo): New function.
16843         (binfo_for_vbase): Remove.
16844
16845         Change base class access representation.
16846         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
16847         (add_interface_do): Likewise.
16848
16849 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
16850
16851         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16852         * config/rs6000/power4.md (power4-store,power4-vecstore): New
16853         insn reservations.
16854         (power4-fpstore): Compact.
16855
16856 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
16857
16858         * config/h8300/h8300.md (*iorsi3_w): New.
16859
16860 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
16861
16862         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
16863         * rtl.c (reg_note_name): Likewise.
16864         * rtl.h (enum reg_note): Likewise.
16865         * doc/invoke.texi: Likewise.
16866         * doc/rtl.texi: Likewise.
16867
16868 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
16869
16870         * bb-reorder.c (find_traces_1_round): Fix comment typo.
16871
16872 2003-02-19  Roger Sayle  <roger@eyesopen.com>
16873
16874         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
16875         addition in the presence of signaling NaNs.
16876
16877 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
16878
16879         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
16880
16881 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16882
16883         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
16884         ORing with 0xffff??00 with the highest bit of the ?? part set.
16885         (compute_logical_op_length): Update.
16886         (compute_logical_op_cc): Likewise.
16887
16888 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
16889
16890         * bb-reorder.c (find_traces_1_round): Fixed condition for small
16891         destination block with multiple predecessors.
16892         (connect_traces): Check whether the block is a start of trace.
16893
16894 2003-02-19  Jan Hubicka  <jh@suse.cz>
16895
16896         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
16897         * function.c (assign_params): Likewise.
16898         * arm-protos.h (arm_init_cumulative_args): Update prototype.
16899         * arm.c (arm_init_cumulative_args): Update function.
16900         * arm.h (INIT_CUMULATIVE_ARGS): Update.
16901         * avr-protos.h (init_cumulative_args): Update prototype.
16902         * avr.c (init_cumulative_args): Update function.
16903         * avr.h (INIT_CUMULATIVE_ARGS): Update.
16904         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
16905         * d30v.c (d30v_init_cumulative_args): Update function.
16906         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
16907         * frv-protos.h (frv_init_cumulative_args): Update prototype.
16908         * frv.c (frv_init_cumulative_args): Update function.
16909         * frv.h (INIT_CUMULATIVE_ARGS): Update.
16910         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
16911         * pa.h (INIT_CUMULATIVE_ARGS): Update.
16912         * sparc-protos.h (init_cumulative_args): Update prototype.
16913         * sparc.c (init_cumulative_args): Update function.
16914         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
16915         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
16916
16917 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16918
16919         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
16920         (*ashiftsi_sextqi_7): Likewise.
16921
16922 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16923
16924         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
16925         ISO C99 and C++.
16926
16927         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
16928         for C++ on IRIX 6.5.1[89].
16929         * fixinc/tests/base/internal/sgimacros.h: New file.
16930
16931         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
16932         * fixinc/tests/base/internal/wchar_core.h: New file.
16933
16934         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
16935         socklen_t definition.
16936         * fixinc/fixincl.x: Regenerate.
16937         * fixinc/tests/base/sys/socket.h: New file.
16938         Fixes PR libgcj/9652.
16939
16940 2003-02-19  Jan Hubicka  <jh@suse.cz>
16941
16942         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
16943
16944 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
16945
16946         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
16947         align_jumps_max_skip and align_loops_max_skip.
16948
16949 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
16950
16951         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
16952         test size if named section.
16953
16954 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
16955
16956         * expr.c (expand_expr): Use gen_int_mode for the argument
16957         to gen_rtx_MULT.
16958
16959 2003-02-19  Jan Hubicka  <jh@suse.cz>
16960
16961         * i386.md (cosxf2):  Fix conditional.
16962
16963 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16964
16965         * config/h8300/h8300.md (extendqisi2): Change to an expander.
16966         (*extendqisi2_h8300): New.
16967         (*extendqisi2_h8300hs): Likewise.
16968
16969 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
16970
16971         * config/h8300/h8300-protos.h: Update the prototype for
16972         split_adds_subs.  Remove the prototypes for
16973         const_int_le_2_operand and const_int_le_6_operand.
16974         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
16975         (const_int_le_2_operand): Remove.
16976         (const_int_le_6_operand): Likewise.
16977         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
16978         for const_int_le_2_operand and const_int_le_6_operand.
16979         * config/h8300/h8300.md: Update all uses of split_adds_subs.
16980         (a peephole2): New.
16981
16982 2003-02-18  Jan Hubicka  <jh@suse.cz>
16983
16984         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
16985         (cgraph_expand_function): Rewrite.
16986
16987 2003-02-18  Matt Austern <austern@apple.com>
16988
16989         * toplev.c, langhooks.c, langhooks-def.h: Move
16990         write_global_declarations from toplev.c to langhooks.c.
16991
16992 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
16993
16994         * config/h8300/h8300.c (general_operand_src): Always check
16995         MODE.
16996         (general_operand_dst): Likewise.
16997
16998 2003-02-18  Roger Sayle  <roger@eyesopen.com>
16999
17000         * convert.c (convert_to_real): Also optimize (float)log(x) into
17001         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
17002
17003 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17004
17005         * config/sh/sh.c (unspec_caller_rtx_p): New.
17006         (sh_cannot_copy_insn_p): New.
17007         (TARGET_CANNOT_COPY_INSN_P): New.
17008
17009 2003-02-18  Richard Henderson  <rth@redhat.com>
17010
17011         * c-common.c (handle_used_attribute): Accept static data too.
17012
17013 2003-02-18  Nick Clifton  <nickc@redhat.com>
17014             Aldy Hernandez  <aldyh@redhat.com>
17015
17016         * testsuite/gcc.dg/20030218-1.c: New.
17017
17018         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
17019
17020         * target-def.h (TARGET_INITIALIZER): Add
17021         TARGET_VECTOR_TYPES_COMPATIBLE.
17022         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
17023
17024         * target.h (struct gcc_target): Add field vector_types_compatible.
17025
17026         * c-typeck.c (comptypes): Take into account
17027         TARGET_VECTOR_TYPES_COMPATIBLE.
17028         (convert_for_assignment): Same.
17029
17030         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
17031         (rs6000_spe_vector_types_compatible): New.
17032         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
17033
17034 2003-02-19  Andreas Schwab  <schwab@suse.de>
17035
17036         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
17037         * toplev.c: Include langhooks-def.h.
17038
17039 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
17040
17041         * config/mips/mips.h (enum processor_type): Sort entries
17042         alphabetically.
17043         * config/mips/mips.md (define_attr cpu): Sync with processor_type
17044         enum values, including adding entries that were missing.
17045
17046 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
17047
17048         * sh.c (calc_live_regs): Also check GET_CODE when checking if
17049         initial value for PR_REG is still the PR_REG register.
17050
17051 2003-02-18  Jim Wilson  <wilson@redhat.com>
17052
17053         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
17054         instruction in output template.
17055         (bsp_value): Change output template from string to C code, add %,
17056         before actual instruction.
17057         (flushrs): Mark as not predicable.
17058
17059 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
17060
17061         * inclhack.def (netbsd_bogus_semicolon): New fix.
17062         * fixincl.x: Rebuilt.
17063         * tests/base/ctype.h: Update.
17064
17065 2003-02-18  Roger Sayle  <roger@eyesopen.com>
17066
17067         * fold-const.c (negate_expr_p): New function to determine whether
17068         an expression can be negated cheaply.
17069         (fold) [MINUS_EXPR]: Use it to determine whether to transform
17070         -A - B into -B - A for floating point types.
17071
17072 2003-02-18  Roger Sayle  <roger@eyesopen.com>
17073
17074         * sbitmap.c (sbitmap_resize): New function.
17075         * sbitmap.h (sbitmap_resize): Prototype here.
17076         * recog.c (split_all_insns): Use sbitmap_resize.
17077
17078 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
17079
17080         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
17081         insn length.
17082         (extendqisi2): Likewise.
17083         (*extendhisi2_h8300): Likewise.
17084
17085 2003-02-18  Matt Austern <austern@apple.com>
17086
17087         * langhooks.h, langhooks-def.h: introduce new langhook,
17088         final_write_globals, with write_global_declarations as default.
17089         * toplev.c: Move invocation of wrapup_global_declarations from
17090         compile_file to new function, write_global_declarations.  Change
17091         compile_file to use final_write_globals hook.  Change
17092         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
17093         conditional.
17094
17095 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17096
17097         * pa.md: Correct and enhance comment.
17098
17099 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
17100
17101         * gcc.c (validate_switches): Don't scan past closing '}'.
17102
17103 2003-02-18  Ben Elliston  <bje@redhat.com>
17104
17105         PR c++/1607
17106         * doc/extend.texi (Function Attributes): Document the effect of
17107         the C++ "this" parameter on the counting of arguments for the
17108         "format" and "format_arg" attributes.
17109
17110 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
17111
17112         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
17113         (__ev_stdw): Same.
17114         (__ev_stdh): Same.
17115
17116 2003-02-17  Jan Hubicka  <jh@suse.cz>
17117
17118         * recog.c (split_all_insns):  Fix memory overflow.
17119
17120 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
17121
17122         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
17123         (cmphi): Likewise.
17124         (*cmphi_h8300): Likewise.
17125         (*cmphi_h8300hs): Likewise.
17126         (cmpsi): Likewise.
17127         (7 peephole2): Likewise.
17128
17129 2003-02-16  Jan Hubicka  <jh@suse.cz>
17130
17131         * c-typeck.c (build_c_cast):  Fold constant variables into
17132         initial values.
17133
17134 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17135
17136         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
17137         (Binaries): Ditto for Sinix/Reliant Unix.
17138
17139 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
17140
17141         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
17142         not overlap the final result register.
17143
17144 2003-02-16 Arend Bayer <arend.bayer@web.de>
17145            Richard Henderson  <rth@redhat.com>
17146
17147         PR c/8068
17148         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
17149         rearrange mult arguments for less recursion.
17150         (extract_muldiv): New.  Prevent runaway recursion.
17151
17152 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
17153
17154         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
17155         MASK_ALIGN_DOUBLE.
17156
17157 2003-02-15  Roger Sayle  <roger@eyesopen.com>
17158
17159         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
17160         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
17161         (ext_80387_constants_table): Global table of 80387 special constants
17162         guarded by ext_80387_constants_init flag when not initialized.
17163         (init_ext_80387_constants): New function to initialize this table.
17164         (standard_80387_constant_p): Extend to recognize extra 80387
17165         constants, in XFmode, on processors where this is a win.
17166         (standard_80387_constant_opcode): New function to return the
17167         opcode associated with standard_80387_constant_p.
17168         (standard_80387_constant_rtx): New function to return the XFmode
17169         CONST_DOUBLE associated with standard_80387_constant_p.
17170         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
17171
17172         * config/i386/i386-protos.h (standard_80387_constant_opcode):
17173         Prototype here.
17174         (standard_80387_constant_rtx): Likewise.
17175
17176         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
17177         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
17178         *movtf_integer): Simplify using new standard_80387_constant_opcode.
17179
17180 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
17181
17182         * doc/invoke.texi (Optimize Options): Correct @option syntax.
17183
17184 2003-02-15  Richard Henderson  <rth@redhat.com>
17185
17186         * Makefile.in (cfglayout.o): Depend on TARGET_H.
17187         * cfglayout.c: Include target.h.
17188         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
17189         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
17190         * target.h (struct gcc_target): Add cannot_copy_insn_p.
17191
17192         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
17193         (TARGET_CANNOT_COPY_INSN_P): New.
17194         (override_options): Revert 2003-02-08 hack.
17195
17196 2003-02-15  Richard Henderson  <rth@redhat.com>
17197
17198         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
17199         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
17200
17201 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
17202
17203         * config/rs6000/rs6000.h (processor_type): Add PPC440.
17204         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
17205         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
17206         TARGET_SCHED_VARIABLE_ISSUE): Define.
17207         (rs6000_use_dfa_pipeline_interface): New function.
17208         (rs6000_multipass_dfa_lookahead): New Function.
17209         (rs6000_variable_issue): New function.
17210         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
17211         (rs6000_issue_rate): Add PPC440.
17212         * config/rs6000/rs6000.md (unspec list): Correct typo.
17213         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
17214         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
17215         cmp, delayed_cr, mfcr, mtcr.
17216         (automata_option): Set "ndfa".
17217         (extendMMNN2): Update attributes.
17218         (movcc_internal1): Discourage move to non-cr0.  Update
17219         attributes.
17220         (movMM_update): Update attributes.
17221         (cmpMM_internal): Update attributes.
17222         (sCC CR materialization): Update attributes.
17223         (branch patterns): Do not discourage non-cr0.
17224         (cr logical patterns): Prefer destructive register allocation.
17225         Update attributes.
17226         (movesi_from_cr): Update attribute.
17227         (mtcrf_operation): Update attribute.
17228         (mtcrfsi): Update attribute.
17229         * config/rs6000/40x.md: New file.
17230         * config/rs6000/603.md: New file.
17231         * config/rs6000/6xx.md: New file.
17232         * config/rs6000/7450.md: New file.
17233         * config/rs6000/7xx.md: New file.
17234         * config/rs6000/mpc.md: New file.
17235         * config/rs6000/power4.md: New file.
17236         * config/rs6000/rios1.md: New file.
17237         * config/rs6000/rios2.md: New file.
17238         * config/rs6000/rs64.md: New file.
17239         [Some DFA descriptions based on work by Michael Hayes]
17240
17241 2003-02-15  Richard Henderson  <rth@redhat.com>
17242
17243         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
17244         successors with multiple predecessors.
17245         (connect_traces): Try harder to copy traces of length 1.
17246
17247         * function.h (struct function): Add computed_goto_common_label,
17248         computed_goto_common_reg.
17249         * function.c (free_after_compilation): Zap them.
17250         * stmt.c (expand_computed_goto): Use them to produce one
17251         indirect branch per function.
17252
17253 2003-02-15  Richard Henderson  <rth@redhat.com>
17254
17255         * cfgcleanup.c: Include params.h.
17256         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
17257         too many outgoing edges from a block.
17258         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
17259         * params.def (max-crossjump-edges): New.
17260         * doc/invoke.texi: Document it.
17261
17262 2003-02-15  Richard Henderson  <rth@redhat.com>
17263
17264         * recog.c (split_all_insns): Include new blocks in life update;
17265         do a global life update.
17266
17267 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
17268
17269         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
17270         Update copyright.
17271         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
17272         -mno-cygwin case.
17273
17274 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
17275
17276         PR optimization/7702
17277         * reload1.c (reload_cse_simplify_set): Honor
17278         CANNOT_CHANGE_MODE_CLASS.
17279
17280 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
17281
17282         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
17283         function.
17284         * config/mn10300/mn10300-protos.h: Declare it.
17285         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
17286         attribute cc of instructions that may use clr.
17287
17288 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
17289
17290         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
17291         (x - (x & y)) is found.
17292
17293 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17294
17295         * configure.in: Fix typo.
17296         * configure: Regenerate.
17297
17298 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
17299
17300         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
17301
17302 2003-02-13  Adam Nemet  <anemet@lnxw.com>
17303
17304         PR opt/2391
17305         * combine.c: Fix spelling in comment.
17306         (cached_nonzero_bits): New function.
17307         (cached_num_sign_bit_copies): New function.
17308         (nonzero_bits_with_known): New macro.
17309         (num_sign_bit_copies_with_known): New macro.
17310         (nonzero_bits1): Rename from nonzero_bits.  Add three new
17311         arguments.  Change calls from nonzero_bits to
17312         nonzero_bits_with_known.
17313         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
17314         three new arguments.  Change calls from num_sign_bit_copies to
17315         num_sign_bit_copies_with_known.
17316         (nonzero_bits): New macro.
17317         (num_sign_bit_copies): New macro.
17318         (update_table_tick): Don't traverse identical subexpression more
17319         than once.
17320         (get_last_value_validate): Likewise.
17321
17322 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
17323
17324         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
17325         * function.h (struct emit_status): Length of regno_pointer_align
17326         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
17327         not regno_pointer_align_length (i.e. length actually used, not
17328         length as allocated)
17329
17330         * config/i386/i386.c (struct stack_local_entry): New.
17331         (struct machine_function): Replace huge array with alist.
17332         (assign_386_stack_local): Change to match.
17333
17334 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
17335
17336         * inclhack.def (hpux_long_double): Tighten select and add bypass
17337         regexp.
17338         * fixincl.x: Rebuilt.
17339
17340 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
17341
17342         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
17343         edge and block ends with a jump insn it must be simple jump.
17344
17345 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
17346
17347         * Makefile.in (PREPROCESSOR_DEFINES): Add
17348         @TARGET_SYSTEM_ROOT_DEFINE@.
17349         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
17350         is specified or if building a cross compiler.
17351         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
17352         if the sysroot is under $exec_prefix.
17353         * configure: Regenerated.
17354         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
17355         defined.
17356         (struct default_include): Add add_sysroot field.
17357         (cpp_SYSROOT): Declare.
17358         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
17359         field.
17360         (cpp_SYSROOT): New variable.
17361         * cppinit.c (cpp_create_reader): Initialize
17362         CPP_OPTION (pfile, sysroot).
17363         (init_standard_includes): Handle add_sysroot.  Do not
17364         add unrelocated copies of relocated directories.
17365         (COMMAND_LINE_OPTIONS): Add -isysroot.
17366         (cpp_handle_option): Handle -isysroot.
17367         * cpplib.h (struct cpp_options): Add sysroot member.
17368         * gcc.c (The Specs Language): Update description of %I.
17369         (target_system_root_changed): New variable.
17370         (process_command): Conditionalize make_relative_prefix call
17371         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
17372         target_system_root_changed.
17373         (do_spec_1): Add -isysroot to %I.
17374         * doc/invoke.texi (Spec Files): Update description of %I.
17375         * doc/install.texi (--with-sysroot): Update comment about
17376         relocation.
17377
17378 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
17379
17380         * config/h8300/h8300.md (a peephole2): New.
17381
17382 2003-02-13  Robert Lipe <robertlipe@usa.net>
17383             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17384
17385         * doc/install.texi (Specific): Update three SCO-related URLs.
17386
17387 2003-02-13  Andreas Schwab  <schwab@suse.de>
17388
17389         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
17390         Parenthesize properly.
17391         (NPREDECESORS): Parenthesize properly.
17392
17393 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17394
17395         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
17396
17397 2003-02-12  Roger Sayle  <roger@eyesopen.com>
17398
17399         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
17400         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
17401
17402         * reg-stack.c (subst_stack_regs_pat): Add support for binary
17403         UNSPEC instructions (e.g. "fpatan").
17404
17405 2003-02-12  Mike Stump  <mrs@apple.com>
17406
17407         * varray.c (element_size): Remove.
17408         (uses_ggc): Remove.
17409         (element): Add.
17410         (varray_init): Use new interface.
17411         (varray_grow): Use new interface.
17412         (varray_clear): Use new interface.
17413
17414 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
17415
17416         * config/rs6000/spe.h: Add casts to the arguments of the following
17417         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
17418         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
17419         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
17420         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
17421         __ev_get_u16, __ev_get_s16.
17422
17423 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
17424
17425         * config/h8300/h8300.md (a peephole2): New.
17426
17427 2003-02-12  Jan Hubicka  <jh@suse.cz>
17428
17429         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
17430         (OBJS): Add callgraph.o
17431         (callgraph.o): New.
17432         * c-decl.c (expand_body_1): Break out from ...
17433         (expand_body): This one;  change calling convention
17434         (finish_function): Move some of expand_body logic here.
17435         (c_expand_deferred_function): Update call of expand_body
17436         (c_expand_stmt): Use c_expand_body_1.
17437         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
17438         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
17439         * c-tree.h (c_expand_body): Declare.
17440         * callgraph.c: New file.
17441         * flags.h (flag_unit_at_a_time): Declare.
17442         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
17443         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
17444         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
17445         * langhooks.h (struct lang_hooks_for_callgraph): New.
17446         (struct lang_hooks): Add callgraph field.
17447         * toplev.c (flag_unit_at_a_time): New.
17448         (lang_independent_options): Add flag_unit_at_a_time.
17449         (process_options): Disable unit-at-a-time mode for frontends not
17450         supporting callgraph.
17451         * tree-inline.c (typedef struct inline_data): Add "decl"
17452         (expand_call_inline): Update callgraph.
17453         (optimize_inline_calls): Set id.decl.
17454         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
17455         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
17456         cgraph_calls_p): Declare.
17457         * invoke.texi (-funit-at-a-time): Document
17458
17459 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
17460
17461         * config/rs6000/spe.h: Fix misc formatting.
17462         (__ev_create_ufix32_fs): Cast ev argument.
17463         (__ev_create_sfix32_fs): Same.
17464         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
17465         (__ev_get_ufix32_fs_internal): Same.
17466
17467 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
17468
17469         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
17470         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
17471
17472 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
17473
17474         * cpplib.c (do_include_common): Move warnings for
17475         #include_next and #import out to callers.  Use early-return
17476         instead of nested ifs.  Don't do check_eol here.
17477         (parse_include): Do check_eol here with the rest of the
17478         parsing stuff.
17479         (do_include_next, do_import): Now handle warnings.
17480
17481 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17482
17483         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
17484
17485 2003-02-12  Jan Hubicka  <jh@suse.cz>
17486
17487         * predict.c (estimate_probability):  Fix roundoff error.
17488
17489 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
17490
17491         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
17492         (two peephole2): New.
17493
17494 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
17495
17496         * config/h8300/h8300.md (several peephole2): Replace
17497         find_regno_note with peep2_reg_dead_p.
17498
17499 2003-02-11  Richard Henderson  <rth@redhat.com>
17500
17501         * gcse.c (lookup_set): Remove unused argument PAT.  Update
17502         both callers.
17503
17504 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
17505
17506         * diagnostic.c (real_abort): New.
17507         (diagnostic_report_diagnostic): Call real_abort on error.
17508         * diagnostic.h (diagnostic_abort_on_error): New.
17509         (struct diagnostic_context): Add abort_on_error field.
17510         * toplev.c (setup_core_dumping): New.
17511         (decode_d_option): Handle 'H' case.
17512         * doc/invoke.texi (Debugging Options): Document -dH.
17513
17514 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
17515
17516         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
17517         which refers to obsolete directories.
17518
17519 2003-02-11  Richard Henderson  <rth@redhat.com>
17520
17521         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
17522
17523 2002-10-21  Jan Hubicka  <jh@suse.cz>
17524
17525         * i386.c (contains_128bit_aligned_vector_p): New function.
17526         (ix86_function_arg_boundary): Properly align vector modes.
17527
17528 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
17529
17530         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
17531         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
17532         as a SET pattern.
17533
17534 2003-02-11  Roger Sayle  <roger@eyesopen.com>
17535
17536         * builtins.c:  Fix failure caused by commiting wrong patch.
17537
17538 2003-02-11  Dale Johannesen  <dalej@apple.com>
17539         * ra-build.c (compare_and_free_webs):  Relax checking.
17540         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
17541         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
17542
17543 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
17544
17545         PR optimization/9651
17546         * rtlanal.c (may_trap_p): Handle FIX.
17547
17548 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
17549
17550         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
17551         * doc/invoke.texi: Extra alias.
17552
17553 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
17554
17555         * config/rs6000/host-darwin.c: Fix comment.
17556
17557 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
17558
17559         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
17560         predicate for mod result.
17561
17562 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17563
17564         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
17565         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
17566         * fixincl.x: Rebuilt.
17567         * tests/base/stdlib.h: Update.
17568         * tests/base/ctype.h: New file.
17569
17570 2003-02-11  Jan Hubicka  <jh@suse.cz>
17571
17572         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
17573
17574 2003-02-11  Richard Henderson  <rth@redhat.com>
17575
17576         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
17577         appropriated as globals.
17578         (ix86_expand_clrstr): Similarly.
17579         * config/i386/i386.md (cmpstrsi): Similarly.
17580
17581 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17582
17583         * config/h8300/h8300.md (a peephole2): Add a case of 255.
17584
17585 2003-02-11  Roger Sayle  <roger@eyesopen.com>
17586
17587         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
17588         (pow_optab, atan2_optab): Define corresponding macros.
17589         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
17590         * genopinit.c (optabs): Implement pow_optab and atan2_optab
17591         using pow?f3 and atan2?f3 patterns.
17592         * builtins.c (expand_errno_check): New function to update errno
17593         if necessary, split out from expand_builtin_mathfn.
17594         (expand_builtin_mathfn): Use expand_errno_check.
17595         (expand_builtin_mathfn_2): New function to handle expanding binary
17596         math functions, reusing the code in expand_errno_check.
17597         (expand_builtin): Handle the pow and atan2 math built-ins,
17598         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
17599         expand_builtin_mathfn_2.
17600
17601         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
17602
17603 2003-02-11  Jan Hubicka  <jh@suse.cz>
17604
17605         * combine.c (combine_simplify_rtx): Fix folding of
17606         nested float_truncates.
17607
17608 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17609
17610         * config/h8300/h8300.md (a peephole2): Fix a typo.
17611
17612 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
17613
17614         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
17615         register number.
17616
17617 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
17618
17619         * config/h8300/h8300-protos.h: Add a prototype for
17620         gtuleu_operator.
17621         * config/h8300/h8300.c (gtuleu_operator): New.
17622         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
17623         * config/h8300/h8300.md (a peephole2): New.
17624
17625 2003-02-11  Jan Hubicka  <jh@suse.cz>
17626
17627         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
17628
17629 2003-02-11  Jan Hubicka  <jh@suse.cz>
17630
17631         * predict.c (choose_function_section): Choose sections correctly.
17632
17633 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17634
17635         * reload1.c (first_label_num): New.
17636         (reload): Index offsets_known_at and offsets_at using difference of
17637         label number and first label number.  Don't use offset pointers.
17638         (set_label_offsets, set_initial_label_offsets): Likewise.
17639
17640 2003-02-10  Roger Sayle  <roger@eyesopen.com>
17641
17642         * mips-tfile.c (init_file): Add missing initializers in the
17643         "#ifdef __alpha" case.
17644         (file_offset, max_file_offset): Declare as unsigned long.
17645         (write_varray): Cast to "unsigned long" in comparisons against
17646         either file_offset or max_file_offset.
17647         (write_object): Likewise.
17648         (read_seek): Likewise.
17649         (copy_object): Likewise. Declare "ifd" as int to match its use
17650         in add_ext_symbol, and avoid signed/unsigned conditional warning.
17651
17652 2003-02-10  Nick Clifton  <nickc@redhat.com>
17653             Aldy Hernandez  <aldyh@redhat.com>
17654
17655         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
17656         override options which have been specified on the command line.
17657
17658 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
17659
17660         * config/h8300/h8300.md (abssf2): New.
17661         (*abssf2_h8300): Likewise.
17662         (*abssf2_h8300hs): Likewise.
17663
17664 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
17665
17666         * tree.c (build_tree_list):  Fix parameter names in comment.
17667
17668 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
17669
17670         * config/rs6000/ppc64-fp.c: New file.
17671         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
17672
17673 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
17674
17675         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
17676         * bb-reorder.c (make_reorder_chain): Deleted.
17677         (make_reorder_chain_1): Deleted.
17678         (find_traces): New function.
17679         (rotate_loop): New function.
17680         (mark_bb_visited): New function.
17681         (find_traces_1_round): New function.
17682         (copy_bb): New function.
17683         (bb_to_key): New function.
17684         (better_edge_p): New function.
17685         (connect_traces): New function.
17686         (copy_bb_p): New function.
17687         (get_uncond_jump_length): New function.
17688         (reorder_basic_blocks): Use new functions (Software Trace Cache).
17689         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
17690         boundaries.
17691
17692 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
17693
17694         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
17695
17696 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
17697
17698         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
17699         (DECL_LIVE_RANGE_RTL): Remove.
17700
17701 2003-02-10  Nick Clifton  <nickc@redhat.com>
17702
17703         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
17704         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
17705         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
17706         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
17707         config/arm/freebsd.h, config/arm/linux-elf.h,
17708         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
17709         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
17710         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
17711         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
17712         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
17713         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
17714         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
17715         and reformat as appropriate.
17716
17717 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
17718
17719         * config/h8300/clzsi2.c: Remove.
17720         * config/h8300/ctzsi2.c: Likewise.
17721         * config/h8300/paritysi2.c: Likewise.
17722         * config/h8300/popcountsi2.c: Likewise.
17723         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
17724         ctzsi2, paritysi2, and popcountsi2.
17725
17726 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
17727             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
17728
17729         PR c/7741
17730         * c-decl.c (duplicate_decls): Discard the initializer of the
17731         new decl when the types are conflicting.
17732
17733 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
17734
17735         * Makefile.in (sreal.o): Added.
17736         (predict.o): Depends on sreal.h instead of real.h.
17737         * sreal.c: New file.
17738         * sreal.h: New file.
17739         * predict.c: Use sreal.c instead of real.c.
17740
17741 2003-02-10  Nick Clifton  <nickc@redhat.com>
17742
17743         * Contributed support for the Cirrus EP9312 "Maverick"
17744         floating point co-processor.  Written by Aldy Hernandez
17745         <aldyh@redhat.com>.
17746         (config/arm/arm.c): Add Cirrus support.
17747         (config/arm/arm.h): Likewise.
17748         (config/arm/aout.h): Likewise.
17749         (config/arm/arm.md): Likewise.
17750         (config/arm/arm-protos.h): Likewise.
17751         (config.gcc): Likewise.
17752         (doc/invoke.texi): Describe new -mcpu value and new
17753         -mcirrus-fix-invalid-insns switch,
17754         (cirrus.md): New file.
17755
17756 2003-02-10  Jan Hubicka  <jh@suse.cz>
17757
17758         * combine.c (combine_simplify_rtx): Simplify using
17759         (float_truncate (float x)) is (float x)
17760         (float_extend (float_extend x)) is (float_extend x).
17761
17762 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
17763
17764         * calls.c (try_to_integrate): Tidy stack_usage_map access.
17765         (emit_library_call_value_1): Likewise.  Formatting.
17766         (store_one_arg): Likewise.
17767
17768 2003-02-09  Nick Clifton  <nickc@redhat.com>
17769             Aldy Hernandez  <aldyh@redhat.com>
17770
17771         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
17772         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
17773         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
17774         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
17775         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
17776         docs.  Add range test for immediate value.
17777
17778 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
17779
17780         Rename spe_evxor to xorv2si3.
17781         (xorv4hi3): New.
17782         (xorv1di3): New.
17783
17784 2003-02-10  Glen Nakamura  <glen@imodulo.com>
17785
17786         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
17787         tag.
17788
17789 2003-02-10  Jan Hubicka  <jh@suse.cz>
17790
17791         * i386.c (vector_move_operand): New predicate.
17792         (ix86_expand_vector_move): Be happy about 0.
17793         * i386.h (PREDICATE_CODES): Add sse-move_operand.
17794         * i386.md (mov*_internal): Add 'C' alternative.
17795
17796 2003-02-09  Jan Hubicka  <jh@suse.cz>
17797
17798         * i386.md (floathi*): Deal with SSE.
17799
17800 2003-02-09  Jan Hubicka  <jh@suse.cz>
17801
17802         * simplify-rtx.c (simplify_unary_operation,
17803         simplify_binary_operation):  Deal with vector modes
17804         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
17805
17806 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
17807
17808         * toplev.c (rest_of_compilation): Recompute register usage after
17809         split_all_insns.
17810
17811 2003-02-09  Richard Henderson  <rth@redhat.com>
17812
17813         * libgcc-std.ver (__clztf2): New.
17814         (__ctztf2, __popcounttf2, __paritytf2): New.
17815         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
17816         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
17817         adjust code to match the different type sizes.
17818         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
17819         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
17820
17821         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
17822         TImode; select word_mode and twice that.
17823         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
17824         select the modes from float, double, and long double.
17825         (init_optabs): Remove duplicate initializations.
17826
17827 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
17828
17829         * doc/install.texi: Squeeze and streamline section on
17830         testing and regression checking.
17831
17832 2003-02-09  Jan Hubicka  <jh@suse.cz>
17833
17834         * i386.md (ahi?v*3): Set third operand type to TImode.
17835         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
17836
17837         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
17838         integer mode.
17839
17840         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
17841         Change code so they are arithmetic expressions now.
17842         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
17843         simplify_ternary_operation): Deal with VEC_* expressions.
17844
17845         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
17846
17847 2003-02-08  Jan Hubicka  <jh@suse.cz>
17848
17849         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
17850         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
17851         possibly got duplicated.
17852
17853 2003-02-08  Richard Henderson  <rth@redhat.com>
17854
17855         * config/alpha/alpha.c (override_options): Turn off explicit
17856         relocs until post-peep2 code duplication resolved.
17857
17858 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17859
17860         * optabs.c (expand_unop): Widen clz properly when clz is done
17861         via libcall.
17862
17863 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17864
17865         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
17866         * config/h8300/crti.asm: Likewise.
17867         * config/h8300/crtn.asm: Likewise.
17868         * config/h8300/ctzsi2.c: Likewise.
17869         * config/h8300/fixunssfsi.c: Likewise.
17870         * config/h8300/h8300-protos.h: Likewise.
17871         * config/h8300/h8300.c: Likewise.
17872         * config/h8300/h8300.h: Likewise.
17873         * config/h8300/h8300.md: Likewise.
17874         * config/h8300/paritysi2.c: Likewise.
17875         * config/h8300/popcountsi2.c: Likewise.
17876         * config/h8300/rtems.h: Likewise.
17877
17878 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17879
17880         * doc/invoke.texi: Documentation for my previous commit.
17881         * doc/passes.texi: Ditto.
17882
17883 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17884
17885         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
17886         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17887         Declare.
17888         (DLTHE_FLAG_UPDATE_FREQ): New.
17889         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
17890         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
17891         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
17892         fix_bb_placement, fix_bb_placements, place_new_loop,
17893         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
17894         New static functions.
17895         (fix_loop_placement, can_duplicate_loop_p,
17896         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17897         New functions.
17898
17899         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
17900         unswitch_loops): Declare.
17901         * loop-init.c: New file.
17902         * loop-unswitch.c: New file.
17903         * Makefile.in (loop-init.o, loop-unswitch.o): New.
17904         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
17905         * toplev.c (DFI_loop2): New dump.
17906         (flag_unswitch_loops): New.
17907         (lang_independent_options): Add it.
17908         (rest_of_compilation): Call new loop optimizer.
17909         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
17910
17911 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
17912
17913         * config/h8300/clzsi2.c: New.
17914         * config/h8300/ctzsi2.c: Likewise.
17915         * config/h8300/paritysi2.c: Likewise.
17916         * config/h8300/popcountsi2.c: Likewise.
17917         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
17918
17919 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
17920
17921         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
17922         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
17923         (ctzsi2): New pattern.
17924         (ffssi2): Use clz instead of unspec.
17925         (clzdi2): Rename from cntlzd2.
17926         (ctzdi2): New pattern.
17927         (ffsdi2): Use clz instead of unspec.
17928
17929 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
17930
17931         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
17932         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
17933         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17934         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
17935
17936 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
17937
17938         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
17939
17940 2003-02-07  Richard Henderson  <rth@redhat.com>
17941
17942         PR 9226
17943         * gcse.c (local_cprop_find_used_regs): New.
17944         (local_cprop_pass): Use it.
17945
17946 2003-02-07  Fred Fish  <fnf@intrinsity.com>
17947
17948         * mips-tfile.c (parse_def): Parenthesize assignments to fix
17949         precedence bugs.
17950
17951 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
17952
17953         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
17954
17955 2003-02-07  Roger Sayle  <roger@eyesopen.com>
17956
17957         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
17958         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
17959         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
17960         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
17961         builtin functions (and their __builtin_* variants).
17962         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
17963         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
17964         when not optimizing.
17965
17966         * doc/extend.texi: Document new pow and atan2 builtins, and
17967         their float and long double variants.  Realphabetize builtins.
17968
17969 2003-02-07  Jan Hubicka  <jh@suse.cz>
17970
17971         * i386.md (sse2_nandv2di3): Fix.
17972
17973 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
17974
17975         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
17976         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
17977         definition.
17978         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
17979         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
17980
17981 2003-02-07  Jan Hubicka  <jh@suse.cz>
17982
17983         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
17984
17985 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
17986
17987         * cfg.c (dump_flow_info): Add back accidently deleted line.
17988
17989 2003-02-07  Andrey Petrov <petrov@netbsd.org>
17990
17991         * optabs.c (expand_float): Search wider integer modes first.
17992
17993 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
17994
17995         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
17996         based on preprocessor flag.
17997
17998 2003-02-07  Roger Sayle  <roger@eyesopen.com>
17999             Richard Henderson  <rth@redhat.com>
18000
18001         * gcse.c (implicit_sets): New.
18002         (compute_hash_table_work): Include them in hash table.
18003         (find_implicit_sets, fis_get_condition): New.
18004         (one_cprop_pass): Allocate and free implicit_sets; call
18005         find_implicit_sets before building hash table.
18006
18007 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
18008
18009         * config/t-netbsd (USER_H): Revert previous change.
18010
18011 2003-02-07  Gabor Greif  <ggreif@lucent.com>
18012
18013         * doc/c-tree.texi (Namespaces): Fix typo.
18014
18015 2003-02-07  Jan Hubicka  <jh@suse.cz>
18016
18017         * regrename.c (do_replace, find_oldest_value_reg,
18018         copyprop_hardreg_forward_1): Update register attributes.
18019
18020 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
18021
18022         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
18023         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
18024         variables starting with underscore.
18025         (struct unit_usage): New structure.
18026         (unit_usages, cycle_alt_unit_usages): New global variables.
18027         (check_unit_distribution_in_reserv): Remove it.
18028         (store_alt_unit_usage): New function.
18029         (check_regexp_units_distribution): Rewrite it.
18030
18031 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18032
18033         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
18034         target_cpu_default.
18035         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
18036         if not MASK_NO_SPACE_REGS.
18037         (output_call): Adjust return pointer, don't load new space register
18038         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
18039         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
18040         TARGET_NO_SPACE_REGS is true.
18041         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
18042         conditions.
18043         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
18044         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
18045         true.  Use bve when TARGET_64BIT is true.
18046
18047 2003-02-06  Richard Henderson  <rth@redhat.com>
18048
18049         * combine.c (nonzero_bits): Fix double break.
18050
18051 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
18052             Richard Henderson <rth@redhat.com>
18053
18054         PR c/9530
18055         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
18056         from functions that return a float to functions that don't.
18057
18058 2003-02-06  Jan Hubicka  <jh@suse.cz>
18059
18060         * i386.c (x86_inter_unit_moves): New variable.
18061         (ix86_secondary_memory_needed): Fix 64bit case, honor
18062         TARGET_INTER_UNIT_MOVES
18063         * i386.h (x86_inter_unit_moves): Declare.
18064         (TARGET_INTER_UNIT_MOVES): New macro.
18065         * i386.md (movsi_1): Cleanup constraints; disable
18066         when not doing inter-unit moves.
18067         (movsi_1_nointernunit): New.
18068         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
18069         (movdi_1_rex64_nointerunit): New.
18070         (mivsf_1): disable when not doing inter-unit moves.
18071         (movsf_1_nointerunit): New.
18072
18073         * basic-block.h (inside_basic_block_p):  Declare.
18074         * cfgbuild.c (inside_basic_block_p): Make global.
18075         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
18076         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
18077         update CFG.
18078         (fix_basic_block_boundaries, add_missing_bbs): New.
18079         (rank): Use profile.
18080         (scheudle_ebbs): Rely on CFG; update coments.
18081
18082 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
18083
18084         * Makefile.in (host_hook_obj): New.
18085         (OBJS): Add $(host_hook_obj).
18086         (host_default.o): New rule.
18087         * config.gcc (host_hook_obj): New, default to host-default.o.
18088         (powerpc-*-darwin*): Use host-darwin.o.
18089         (out_host_hook_obj): New.
18090         * configure: Regenerate.
18091         * configure.in: Print information about out_host_hook_obj, substitute
18092         into output files.
18093         * host-default.c: New file.
18094         * hosthooks.h: New file.
18095         * toplev.c (general_init): Call host_hooks.extra_signals.
18096         * config/rs6000/host-darwin.c: New file.
18097         * config/rs6000/x-darwin: New file.
18098         * doc/hostconfig.texi: Add documentation for new host hook.
18099         Rearrange existing documentation.
18100
18101 2003-02-05  Roger Sayle  <roger@eyesopen.com>
18102
18103         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
18104         with *targetm.delegitimize_address.
18105         (rtl_for_decl_location): Likewise.
18106         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
18107         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
18108
18109         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18110         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
18111         prototype.
18112         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
18113         i386_simplify_dwarf_addr.  Made static.  Prototyped.
18114         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
18115         i386_simplify_dwarf_addr to ix86_delegitimize_address.
18116         (ix86_find_base_term): Likewise.
18117         (maybe_get_pool_constant): Likewise.
18118
18119         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18120         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
18121         prototype.
18122         * config/s390/s390.c (s390_delegitimize_address): Renamed from
18123         s390_simplify_dwarf_addr.  Made static.  Prototyped.
18124         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
18125
18126 2003-02-05  Richard Henderson  <rth@redhat.com>
18127
18128         PR c/8602
18129         * integrate.c (output_inline_function): Reset input_filename
18130         and lineno from the decl before rest_of_compilation.
18131
18132 2003-02-05  Richard Henderson  <rth@redhat.com>
18133
18134         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18135         (CTZ_DEFINED_VALUE_AT_ZERO): New.
18136         * doc/rtl.texi, doc/tm.texi: Document them.
18137
18138         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
18139         of the value at zero properly.
18140         * fold-const.c (tree_expr_nonnegative_p): Likewise.
18141         * simplify-rtx.c (simplify_unary_operation): Likewise.
18142
18143         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18144         (CTZ_DEFINED_VALUE_AT_ZERO): New.
18145
18146         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
18147         (TARGET_EXPAND_BUILTIN): Remove.
18148         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
18149         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18150         (enum arm_builtins): Remove.
18151         * config/arm/arm.md (UNSPEC_CLZ): Remove.
18152         (clzsi2): Rename from clz; use clz instead of unspec.
18153         (ctzsi2): New.
18154         * config/arm/arm-protos.h: Update.
18155
18156 2003-02-05  Jan Hubicka  <jh@suse.cz>
18157
18158         * i386-protos.h (x86_emit_floatuns):  Declare.
18159         * i386.c (x86_emit_floatuns): New global function.
18160         * i386.md (floatunssisf2, floatunsdisf2,
18161         floatunsdidf2):  New patterns.
18162
18163 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18164
18165         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
18166
18167 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
18168
18169         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
18170           config/ia64/linux.h
18171
18172 2003-02-05  Roger Sayle  <roger@eyesopen.com>
18173
18174         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
18175
18176 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
18177
18178         PR optimization/8555
18179         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
18180         instead of aborting.
18181
18182 2003-02-04  Richard Henderson  <rth@redhat.com>
18183
18184         * config/i386/i386.md (UNSPEC_BSF): Remove.
18185         (ffssi2): Split into cmove and no_cmove insns and splitters;
18186         lose pentium float trick for now.
18187         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
18188         (ctzsi2, clzsi2, bsr): New.
18189
18190 2003-02-04  Richard Henderson  <rth@redhat.com>
18191
18192         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
18193         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
18194         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
18195         (ffsdi2): Use popcount instead of unspec.
18196         (popcountdi2): Rename from *popcnt.
18197         (ctzdi2, clzdi2, getf_exp_tf): New.
18198
18199 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
18200
18201         * genconfig.c (main): Generate CC0_P.
18202         * rtl.h (CC0_P): Remove.
18203
18204 2003-02-04  Richard Henderson  <rth@redhat.com>
18205
18206         * libgcc2.h, libgcc2.c (__ffsSI2): New.
18207         (__ffsDI2): Rename from __ffsdi2.
18208         * mklibgcc.in (lib2funcs): Add _ffssi2.
18209
18210 2003-02-04  Richard Henderson  <rth@redhat.com>
18211
18212         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
18213         rounds with a "bit table" lookup.
18214
18215 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18216
18217         * reload.c (find_reloads): Do not use the mode specified in the insn
18218         pattern as reload mode for address operands.  Do not generate optional
18219         reloads for operands where a mandatory reload was already pushed.
18220
18221 2003-02-04  Richard Henderson  <rth@redhat.com>
18222
18223         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
18224         builtins instead of inline assembly.
18225
18226 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18227
18228         PR c/9376
18229         * libgcc2.c (__subvdi3): Fix typo.
18230
18231 2003-02-04  Jan Hubicka  <jh@suse.cz>
18232
18233         * i386.md (movti_rex64):  Fix constraint.
18234
18235 2003-02-04  Jan Hubicka  <jh@suse.cz>
18236
18237         * i386.md (vector push splitters):  Fix typo in resolving conflict.
18238
18239 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
18240
18241         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
18242
18243 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
18244
18245         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
18246         for recent libstdc++.  Remove formatting cruft.
18247
18248 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
18249
18250         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
18251         attribute even if input file name is absolute, but one of the
18252         includes is relative.
18253
18254 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
18255
18256         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
18257         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
18258         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
18259
18260 2003-02-03  Richard Henderson  <rth@redhat.com>
18261
18262         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18263         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
18264         return type to "int".  Shuffle declarations and undef int trap.
18265         * libgcc2.h: Remove their declarations.
18266         * optabs.c (expand_unop): Force outmode to int for bitops.
18267
18268 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
18269
18270         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
18271         coprocessor registers before floating-point registers.
18272         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
18273         to account for a previously removed register.
18274         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
18275         Delete unused macros.
18276
18277 2003-02-03  Jan Hubicka  <jh@suse.cz>
18278
18279         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
18280         (mov*_internal): Fix predicates; require one of operands to not be
18281         memory.
18282         (SSE?MMX move expanders):  Fix predicates; force one of operands to
18283         register.
18284         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
18285         (movups/movupd/movdqu patterns): Force one of operands to not be
18286         memory.
18287
18288 2003-02-03  Roger Sayle  <roger@eyesopen.com>
18289
18290         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
18291         takes a single rtx and returns it unmodified.
18292         * hooks.h (hook_rtx_rtx_identity): Prototype here.
18293         * target.h (struct gcc_target): Add "delegitimize_address"
18294         field to target structure.
18295         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
18296         for delegitimize_address target using hook_rtx_rtx_identity.
18297         (TARGET_INITIALIZER): Initialize delegitimize_address field
18298         using TARGET_DELEGITIMIZE_ADDRESS macro.
18299         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
18300         extensions of constant pool references.  Use delegitimize_address
18301         to undo the obfuscation of "-fpic".
18302         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
18303
18304         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
18305         i386_simplify_dwarf_addr.
18306         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
18307         (maybe_get_pool_constant): Likewise.
18308
18309 2003-02-03  Jan Hubicka  <jh@suse.cz>
18310
18311         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
18312
18313 2003-02-03  Jan Hubicka  <jh@suse.cz>
18314
18315         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
18316
18317 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18318
18319         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
18320         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
18321
18322 2003-02-02  Andreas Schwab  <schwab@suse.de>
18323
18324         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
18325
18326 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
18327
18328         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
18329         (epilogue_insns): Likewise.
18330
18331 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18332
18333         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
18334
18335 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18336
18337         * pa-protos.h (attr_length_millicode_call): Remove second argument.
18338         (attr_length_indirect_call, attr_length_indirect_call,
18339         attr_length_save_restore_dltp): New prototypes.
18340         * pa.c (attr_length_millicode_call): Remove second argument.  Check
18341         INSN_ADDRESSES_SET_P in distance calculation.
18342         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
18343         INSN_ADDRESSES.
18344         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
18345         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
18346         Call attr_length_call directly.
18347         (attr_length_indirect_call, output_indirect_call,
18348         attr_length_save_restore_dltp): New functions.
18349         * pa.md (attr_length_millicode_call): Drop second argument from all
18350         patterns.
18351         (return_internal_pic): Delete.
18352         (return_external_pic): Remove use of PIC register and pic operand and
18353         flag checks.
18354         (epilogue): Use return_internal for both normal and pic code.
18355         (call, call_value): Emit new 32-bit pic patterns for symref and
18356         indirect calls.  Remove uses for arg pointer and pic register.
18357         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
18358         call_reg_pic_post_reload, call_val_symref_pic,
18359         call_val_symref_pic_post_reload, call_val_reg_pic,
18360         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
18361         Implement define_split and define_peephole2 patterns for pre reload
18362         patterns.
18363         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
18364         call_value_internal_reg_64bit): Shorten names.
18365         (all call patterns): Explicitly indicate registers used and clobbered.
18366         Use attr_length_indirect_call and attr_length_save_restore_dltp for
18367         attribute length calculation.  Move code generation for indirect calls
18368         to output_indirect_call.
18369         (sibcall, sibcall_value): Don't restore PIC register.
18370         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
18371         register retore.
18372
18373 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18374
18375         * doc/install.texi (Testing): Simplify and compress instructions
18376         concerning Dejagnu.
18377
18378 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18379
18380         * collect2.c (pexecute_pid): Rename to pid.
18381         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
18382         pid.
18383
18384 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
18385
18386         * doc/extend.texi (Function Attributes): Remove documentation
18387         for PowerPC Windows NT function attributes..
18388
18389 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
18390
18391         * dwarf2out.c (gen_type_die): Check for typedefs before calling
18392         for TYPE_MAIN_VARIANT.
18393
18394 2003-02-01  Richard Henderson  <rth@redhat.com>
18395
18396         * libgcc2.c: Include auto-host.h.
18397         (ATTRIBUTE_HIDDEN): New.
18398         (__clz_tab): Don't declare here for clz and ctz.
18399         (__clzsi2, __clzdi2): Use count_leading_zeros.
18400         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
18401         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
18402         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
18403         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
18404
18405 2003-02-01  Richard Henderson  <rth@redhat.com>
18406
18407         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
18408         to the conditional.
18409         (ashlsi3_1_zext splitter): Likewise.
18410
18411 2003-02-01  Richard Henderson  <rth@redhat.com>
18412
18413         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
18414         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18415         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
18416         return type to Wtype.
18417
18418         * libgcc-std.ver (GCC_3.4): Fix inheritance.
18419
18420         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
18421         expander input constraint.
18422
18423 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18424
18425         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
18426         OTI_parity.
18427         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
18428         * optabs.c (widen_clz, expand_parity): New.
18429         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
18430         for libcalls to clz, ctz, popcount, and parity.
18431         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
18432         parity_optab, and set up libfunc handlers.
18433         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18434         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
18435         __popcount_tab): New.
18436         * libgcc2.h: Declare them.
18437         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
18438         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
18439         and parity_optab.
18440         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
18441         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
18442         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
18443         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
18444         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
18445         BUILT_IN_PARITYLL): New.
18446         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
18447         and add optab argument.
18448         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
18449         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
18450         * expr.c (expand_expr): Handle them.
18451         * fold-const.c (tree_expr_nonnegative_p): Likewise.
18452         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
18453         * reload1.c (eliminate_regs): Handle them.
18454         (elimination_effects): Likewise.
18455         * function.c (instantiate_virtual_regs_1): Likewise
18456         * genattrtab.c (check_attr_value): Likewise.
18457         * simplify-rtx.c (simplify_unary_operation): Likewise.
18458         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
18459         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
18460         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
18461         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
18462         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
18463         __builtin_arm_clz.
18464         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
18465         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
18466         * doc/extend.texi (Other Builtins): Add new builtins.
18467         * doc/md.texi (Standard Names): Add new patterns.
18468
18469 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
18470
18471         * reload.c: Revert 2003-01-31 change.
18472
18473 2003-02-01  Jan Hubicka  <jh@suse.cz>
18474
18475         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
18476
18477 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
18478
18479         * flags.h (flag_volatile): Remove declaration.
18480         (flag_volatile_global, flag_volatile_static): Likewise.
18481         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
18482         * toplev.c (flag_volatile): Remove definition.
18483         (flag_volatile_global, flag_volatile_static): Likewise.
18484         (f_options): Remove corresponding entries here.
18485         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
18486         or flag_volatile_static.
18487         * doc/invoke.texi: Remove documentation of -fvolatile,
18488         -fvolatile-global and -fvolatile-static.
18489
18490 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18491
18492         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
18493         updating of total_code_bytes from prologue to epilogue.
18494
18495 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
18496
18497         * reload.c (find_reloads): Do not use the mode specified in the insn
18498         pattern as reload mode for address operands.  Do not generate optional
18499         reloads for operands where a mandatory reload was already pushed.
18500         Generate optional reloads only in the final pass though find_reloads.
18501         (have_replacement_p): New function.
18502
18503 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18504
18505         * doc/install.texi (Testing): Remove a reference to our obsolete
18506         /testresults web pages and strip redundant information concerning
18507         test results.
18508         (Binaries): Refer to Microsoft Windows instead of listing all
18509         possible variants.
18510
18511 2003-02-01  Jan Hubicka  <jh@suse.cz>
18512
18513         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
18514         RTL chain.
18515
18516         * combine.c (simplify_set): Reverse order of ragumetns to
18517         REG_CANNOT_CHANGE_MODE_P
18518         * df.c (df_def_record_1): Likewise.
18519         * recog.c (register_operand): Likewise.
18520         * simplify-rtx.c (simplify_subreg): Likewise.
18521         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
18522         CANNOT_CHANGE_MODE_CLASS.
18523         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
18524         Likewise.
18525         * reload.c (push_reload): Likewise.
18526         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18527         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18528         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18529         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
18530         * mips.c (mips_cannot_change_mode_class): Update.
18531         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18532         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18533         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18534         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18535         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
18536         * sh.c (sh_cannot_change_mode_class): Update.
18537         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
18538         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
18539
18540 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
18541
18542         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
18543         change to LINK_COMMAND_SPEC in gcc.c.
18544
18545 2003-01-31  Jan Hubicka  <jh@suse.cz>
18546
18547         PR c/9506
18548         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
18549
18550 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18551
18552         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
18553         duplicated code.
18554
18555 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
18556
18557         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
18558         (BINFO_ELTS): New #define.
18559         * stor-layout.c (finalize_record_size): Don't set them.
18560         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
18561         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
18562         (BINFO_LANG_ELTS): New #define.
18563         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
18564         * java/class.c (make_class): Use BINFO_ELTS.
18565         (set_super_info): Likewse.
18566         (add_interface_do): Likewise.
18567         * objc/objc-act.c (start_class): Use BINFO_ELTS.
18568
18569 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
18570
18571         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
18572         (times): Don't ever declare if not HAVE_TIMES.
18573         (clock): Don't ever declare if not HAVE_CLOCK.
18574
18575 2003-01-30  Richard Henderson  <rth@redhat.com>
18576
18577         * flow.c (update_life_info): Zap life info after cleanup_cfg.
18578         (regno_uninitialized): Use correct live at function entry set.
18579         (regno_clobbered_at_setjmp): Likewise.
18580
18581         * expr.c (store_expr): Promote all MEM intermediates to regs.
18582
18583 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18584
18585         * config/arm/arm.c: Fix comment typos.
18586         * config/arm/arm.h: Likewise.
18587         * config/arm/netbsd-elf.h: Likewise.
18588         * config/arm/netbsd.h: Likewise.
18589
18590 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
18591
18592         * gengtype.c (struct walk_type_data): Add needs_cast_p.
18593         (walk_type): Set needs_cast_p in walk_type_data.
18594         (write_types_process_field): Supply casts when required to suppress
18595         warnings.
18596         (write_root): Cast gt_pch_n_S to suppress warning.
18597         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
18598         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
18599         when they might exist.
18600         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
18601         insn-conditions.o, and rs6000.o.
18602
18603 2003-01-30  Richard Henderson  <rth@redhat.com>
18604
18605         * ggc-page.c (G.context_depth_allocations): New.
18606         (G.context_depth_collections): New.
18607         (alloc_page): Set G.context_depth_allocations.
18608         (ggc_collect): Set G.context_depth_collections.
18609         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
18610         (ggc_pop_context): Early exit for no allocations or collections.
18611
18612 2003-01-30  Richard Henderson  <rth@redhat.com>
18613
18614         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
18615
18616 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
18617
18618         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
18619         size, the link register is always saved if any other register is
18620         saved.
18621
18622 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18623
18624         * config/h8300/h8300-protos.h: Update the prototype for
18625         compute_plussi_cc.
18626         (cpp_reader): Declare before it is used.
18627         * config/h8300/h8300.c (compute_plussi_cc): Change the return
18628         type to int.
18629         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
18630         see an unknown H8 variant.
18631
18632 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
18633
18634         PR target/9316
18635         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
18636         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
18637         * config/rs6000/t-rtems: New file. multilib variants to match OS.
18638         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
18639         rs6000/t-ppcgas so we get the desired multilibs.
18640
18641 2003-01-30  Nick Clifton  <nickc@redhat.com>
18642
18643         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
18644         when popping saved IP register off the stack.
18645
18646 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18647
18648         * config/rs6000/aix43.h: Fix comment typos.
18649         * config/rs6000/aix51.h: Likewise.
18650         * config/rs6000/aix52.h: Likewise.
18651         * config/rs6000/altivec.h: Likewise.
18652         * config/rs6000/rs6000.c: Likewise.
18653         * config/rs6000/rs6000.h: Likewise.
18654         * config/rs6000/rs6000.md: Likewise.
18655         * config/rs6000/spe.md: Likewise.
18656
18657 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
18658
18659         * c-common.c (builtin_define_float_constants): Define
18660         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
18661
18662 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18663
18664         * config/sh/lib1funcs.asm: Fix comment typos.
18665         * config/sh/linux.h: Likewise.
18666         * config/sh/sh.c: Likewise.
18667         * config/sh/sh.md: Likewise.
18668
18669 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
18670
18671         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
18672
18673 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
18674
18675         * config/fp-bit.h (__make_dp): Declare if TMODES.
18676
18677 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
18678
18679         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
18680         general_operand_src and general_operand_dst.
18681
18682 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
18683
18684         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
18685         Return true for variable sized types.
18686         (rs6000_va_arg): Handle variable sized types passed by reference
18687         on non-SVR4 ABI.
18688
18689 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
18690
18691         * arm.c (arm_legtimize_address): New function.
18692         * arm-protos.h (arm_legtimize_address): Add prototype.
18693         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
18694         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
18695         do ... while (0)
18696
18697 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18698
18699         PR bootstrap/9296
18700         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
18701         depended on it being defined until now.
18702
18703 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18704
18705         PR target/9295
18706         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
18707         RTEMS code knows which C++ initialization style the toolset
18708         configuration is using.
18709
18710 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18711
18712         PR bootstrap/9293
18713         * config/m68k/t-crtstuff: Replace spaces with tabs, add
18714          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
18715
18716 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
18717
18718         PR bootstrap/9292
18719         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
18720         RTEMS threads.
18721         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
18722
18723 2003-01-29  Nick Clifton  <nickc@redhat.com>
18724
18725         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
18726         not $(srcdir).
18727
18728 2003-01-29  Andrew Haley  <aph@redhat.com>
18729
18730         * tree-inline.c (walk_tree): Add CHAR_TYPE.
18731
18732 2003-01-29  Jan Hubicka  <jh@suse.cz>
18733
18734         * i386.md (subdi3_carry_rex64): Fix typo.
18735
18736 2003-01-28  Stan Shebs  <shebs@apple.com>
18737
18738         * coretypes.h (cpp_reader): Forward declare struct.
18739         * c-pragma.h (cpp_reader): Remove forward declaration.
18740         * hashtable.h (cpp_reader): Likewise.
18741         * scan.h (cpp_reader): Likewise.
18742         * tree.h (cpp_reader): Likewise.
18743         * config/darwin-protos.h (cpp_reader): Likewise.
18744         * config/arm/arm-protos.h (cpp_reader): Likewise.
18745         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
18746         struct cpp_reader in prototypes.
18747
18748 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
18749
18750         * doc/install.texi: Add documentation for installation into
18751         tooldirs and with DESTDIR.
18752
18753 2003-01-28  Richard Henderson  <rth@redhat.com>
18754
18755         * config.gcc (ia64*-*-aix*): Remove.
18756         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
18757         * config/ia64/unwind-aix.c: Remove file.
18758
18759 2003-01-28  Andreas Schwab  <schwab@suse.de>
18760
18761         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
18762         register.
18763         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
18764         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
18765         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
18766         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18767         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
18768         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18769         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
18770
18771 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
18772
18773         * combine.c (nonzero_bits): Fix check for negative divide operands.
18774
18775 2003-01-28  Richard Henderson  <rth@redhat.com>
18776
18777         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
18778         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
18779
18780 2003-01-28  Richard Henderson  <rth@redhat.com>
18781
18782         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
18783
18784         * config/cris/cris.c (cris_address_cost): Make static.
18785         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
18786         * config/cris/cris.h (ADDRESS_COST): Remove.
18787         * config/cris/cris-protos.h: Update.
18788
18789 2003-01-23  Mike Stump  <mrs@apple.com>
18790
18791         * regclass.c (init_reg_autoinc): New function.
18792         (regclass): Move initialization of forbidden_inc_dec_class from
18793         here...
18794         (init_regs): to here.  Avoids reinitialization for each function,
18795         saving compilation time.
18796
18797 2003-01-28  Jason Merrill  <jason@redhat.com>
18798
18799         * cpplib.h (struct cpp_options): Add warn_deprecated field.
18800         * cppinit.c (cpp_create_reader): Turn it on by default.
18801         * c-opts.c (c_common_decode_option): Set it.
18802         * cpplib.c (do_pragma_once): Only complain about #pragma once
18803         if warn_deprecated is set.
18804
18805 2003-01-28  Dale Johannesen  <dalej@apple.com>
18806
18807         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
18808         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
18809         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
18810
18811 2003-01-28  Richard Henderson  <rth@redhat.com>
18812
18813         * target.h (targetm.address_cost): New.
18814         * target-def.h (TARGET_ADDRESS_COST): New.
18815         (TARGET_RTX_COSTS): Uncomment.  Oops.
18816         * cse.c (address_cost): Use new target hook.
18817         (default_address_cost): New.
18818         * output.h (default_address_cost): Declare.
18819         * hooks.c (hook_int_rtx_0): New.
18820         * hooks.h (hook_int_rtx_0): Declare.
18821         * loop.c (combine_givs_p): Remove if 0 code.
18822         * system.h (ADDRESS_COST): Poison.
18823
18824         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
18825         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
18826         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
18827         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
18828         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
18829         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
18830         config/xtensa/xtensa.c, config/xtensa/xtensa.h
18831         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
18832         (ADDRESS_COST): Remove.
18833
18834         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
18835         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18836         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18837         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
18838         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
18839         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
18840         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
18841         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
18842         config/mips/mips.c, config/mips/mips.h,
18843         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
18844         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
18845         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
18846         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
18847         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
18848         config/vax/vax.c, config/vax/vax.h
18849         (foo_address_cost): Make static.
18850         (TARGET_ADDRESS_COST): New.
18851         (ADDRESS_COST): Remove.
18852
18853         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
18854         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
18855         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18856         config/stormy16/stormy16.h
18857         (ADDRESS_COST): Move code ...
18858         (foo_address_cost): ... here.
18859         (TARGET_ADDRESS_COST): New.
18860
18861         * config/m32r/m32r.c (m32r_address_cost): Remove.
18862         * config/m32r/m32r-protos.h: Update.
18863
18864         * config/mmix/mmix.c (mmix_address_cost): Remove.
18865         * config/mmix/mmix-protos.h: Update.
18866
18867         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
18868         mn10300_address_cost; move unsig allocation ...
18869         (mn10300_address_cost): ... here.
18870         (TARGET_ADDRESS_COST): New.
18871         * config/mn10300/mn10300-protos.h: Update.
18872         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
18873
18874         * doc/tm.texi: Update.
18875
18876 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
18877
18878         * haifa-sched.c (schedule_insn): Return necessary cycle advance
18879         after issuing the insn.
18880         (rank_for_schedule): Make a insn with /S the highest priority
18881         insn.
18882         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
18883         (choose_ready): Check SCHED_GROUP_P.
18884         (schedule_block): Advance cycle after issuing insn if it is
18885         necessary.  Don't reorder insns if there is an insn with /S.
18886         (set_priorities): Ignore schedule groups.
18887
18888         * sched-deps.c (remove_dependence, group_leader): Remove the
18889         functions.
18890         (add_dependence): Ignore schedule groups.
18891         (set_sched_group_p): Don't make copy of dependencies from previous
18892         insn of the schedule group.  Add anti-dependency to the previous
18893         insn of the schedule group.
18894         (compute_forward_dependences): Ignore schedule groups.
18895
18896         * sched-ebb.c (init_ready_list): Ignore schedule groups.
18897
18898         * sched-rgn.c (init_ready_list): Ditto.
18899         (can_schedule_ready_p): Ditto.
18900
18901 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
18902
18903         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
18904         register to another one.
18905
18906 2003-01-28  Richard Henderson  <rth@redhat.com>
18907
18908         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
18909
18910 2003-01-28  Roger Sayle  <roger@eyesopen.com>
18911
18912         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
18913
18914 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
18915
18916         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
18917         class contains a floating-point register, return the size of the
18918         mode in half words.
18919
18920 2003-01-28  Jan Hubicka  <jh@suse.cz>
18921
18922         * i386.c (ix86_carry_flag_operator):  New predicate.
18923         (fcmov_operator): Fix whitespace.
18924         (ix86_expand_carry_flag_compare):  Deal with floating point.
18925         (ix86_expand_int_movcc): Deal with fp; update insn expansion
18926         (ix86_expand_int_addcc): Likewise.
18927         (ix86_expand_strlensi_unroll_1): likewsie.
18928         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
18929         * i386.md (add?i_carry_rex64): Use new predicate.
18930         (sub?i3_carry_rex64): Likewise.
18931         (x86_mov?icc_0_m1*): Likewise.
18932
18933 2003-01-28  Andreas Schwab  <schwab@suse.de>
18934
18935         * cfgloopmanip.c (create_preheader): Initialize src to avoid
18936         warning.
18937
18938         * expmed.c (emit_store_flag): Fix cast to avoid sign
18939         comparison warning.
18940
18941         * combine.c (force_to_mode): Add cast to fix warning when
18942         STORE_FLAG_VALUE is negative.
18943
18944 2003-01-27  Richard Henderson  <rth@redhat.com>
18945
18946         * Makefile.in (cse.o): Depend on TARGET_H.
18947         * cse.c (rtx_cost): Use targetm.rtx_costs.
18948         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
18949         * doc/tm.texi: Update.
18950
18951         * target.h (targetm.rtx_costs): New.
18952         * target-def.h (TARGET_RTX_COSTS): New.
18953         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
18954         * hooks.h: Update.
18955
18956         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
18957         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
18958         * config/alpha/alpha.h (PROCESSOR_MAX): New.
18959         (CONST_COSTS, RTX_COSTS): Remove.
18960
18961         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
18962         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
18963         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
18964         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
18965         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
18966         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
18967         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
18968         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
18969         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
18970         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
18971         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
18972         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
18973         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
18974         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
18975         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
18976         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
18977         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
18978         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
18979         config/v850/v850.c, config/v850/v850.h,
18980         config/xtensa/xtensa.c, config/xtensa/xtensa.h
18981         (CONST_COSTS, RTX_COSTS): Move code ...
18982         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
18983
18984         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
18985         (arm_rtx_costs, TARGET_RTX_COSTS): New.
18986         * config/arm/arm-protos.h: Update.
18987         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
18988
18989         * config/avr/avr.h (CONST_COSTS): Move code ...
18990         * config/avr/avr.c (avr_rtx_costs): ... here.
18991         (default_rtx_costs): Make static.
18992         * config/avr/avr-protos.h: Update.
18993
18994         * config/h8300/h8300.c (const_costs): Make static.
18995         (h8300_and_costs, h8300_shift_costs): Likewise.
18996         * config/h8300/h8300-protos.h: Update.
18997
18998         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
18999         (CONST_COSTS): Move code ...
19000         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
19001         default_rtx_costs; update for signature change.
19002         * config/ip2k/ip2k-protos.h: Update.
19003
19004         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
19005         (CONST_COSTS): Move code ...
19006         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
19007         (TARGET_RTX_COSTS): New.
19008         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
19009         * config/m68hc11/m68hc11-protos.h: Update.
19010
19011         * config/m68k/m68k.c (const_int_cost): Make static.
19012         * config/m68k/m68k-protos.h: Update.
19013
19014         * config/mcore/mcore.c (mcore_const_costs): Make static.
19015         (mcore_and_cost, mcore_ior_cost): Likewise.
19016         * config/mcore/mcore-protos.h: Update.
19017
19018         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
19019         (mmix_rtx_cost_recalculated): Remove.
19020         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
19021         * config/mmix/mmix-protos.h: Update.
19022
19023         * config/sh/sh.c (shiftcosts): Make static.
19024         (addsubcosts, andcosts, multcosts): Likewise.
19025         * config/sh/sh-protos.h: Update.
19026
19027         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
19028         (sparc_rtx_costs): Make static; update for change in signature.
19029         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
19030         * config/sparc/sparc-protos.h: Update.
19031
19032         * config/v850/v850.c (const_costs): Make static.
19033         * config/v850/v850-protos.h: Update.
19034
19035         * config/vax/vax.h (RTX_COSTS): Remove.
19036         (CONST_COSTS): Move code ...
19037         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
19038         from vax_rtx_cost.
19039         (vax_rtx_costs, TARGET_RTX_COSTS): New.
19040
19041 2003-01-27  Richard Henderson  <rth@redhat.com>
19042
19043         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
19044         * config/vax/vax-protos.h: Update.  Really.
19045
19046 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
19047
19048         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
19049         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
19050         zero if no hardware floating point.
19051         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
19052         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
19053         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
19054         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
19055         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
19056         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
19057         even FP registers on N32 and N64.
19058         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
19059         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
19060         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
19061         even-register-like alignment to 128-bit arguments.
19062         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
19063         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
19064         on N32 or N64.
19065         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
19066         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
19067         (TPBIT): Set to tp-bit.c.
19068         (tp-bit.c): Create out of fp-bit.c.
19069
19070 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19071
19072         * c-parse.in: Remove '%expect 32' directive in objc mode.
19073
19074 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
19075
19076         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
19077         (LIBGCOV): New variable.
19078         (libgcc.mk): Add LIBGCOV.
19079         (LIBGCC_DEPS): Add libgcov.c.
19080         (libgcov.a): New target.
19081         (clean): Remove libgcov.a.
19082         (install-libgcc): Do libgcov too.
19083         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
19084         with libgcov.a.
19085         * libgcc2.c (L_gcov): Move into ...
19086         * libgcov.c: ... here. New file.
19087         * mklibgcc.in: Add libgcov rules.
19088         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
19089
19090         * doc/invoke.texi (profile-arcs, test-coverage): Update and
19091         clarify.
19092
19093         * profile.c (index_counts_file): Remove duplicate check for open file.
19094
19095 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
19096
19097         * gcc/doc/invoke.texi (Optimization Options): Group together
19098         optional and experimental flags.  Move trapv and bounds-check
19099         out of this section.  Group floating point flags together.
19100         (Code Gen Options): Move trapv and bounds-check to here.
19101
19102 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
19103
19104         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
19105
19106 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
19107
19108         PR optimization/9090
19109         * function.c (purge_addressof_1): After pushing an addressed register
19110         onto the stack, simplify the result.
19111
19112 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19113
19114         * doc/extend.texi: Fix typo.
19115
19116 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19117
19118         * doc/cppopts.texi: Fix typo.
19119         * doc/objc.texi: Likewise.
19120         * doc/passes.texi: Likewise.
19121
19122 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
19123
19124         * real.c (ibm_extended_format): Add 53 to minimum exponent.
19125         (encode_ibm_extended): Adjust.
19126
19127 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
19128
19129         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
19130         timevar_id enumerations.
19131
19132 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19133
19134         * combine.c: Fix formatting.
19135
19136 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19137
19138         * doc/gccint.texi: Update the copyright.
19139
19140 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19141
19142         * doc/cpp.texi: Fix typos.
19143         * doc/extend.texi: Likewise.
19144         * doc/gty.texi: Likewise.
19145         * doc/install.texi: Likewise.
19146         * doc/passes.texi: Likewise.
19147         * doc/rtl.texi: Likewise.
19148         * doc/tm.texi: Likewise.
19149
19150 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19151
19152         * config/ia64/fde-glibc.c: Fix comment typos.
19153         * config/ia64/hpux.h: Likewise.
19154         * config/ia64/ia64.c: Likewise.
19155         * config/ia64/ia64.h: Likewise.
19156         * config/ia64/unwind-ia64.c: Likewise.
19157
19158 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
19159
19160         * config/i386/i386-modes.def: Fix comment typos.
19161         * config/i386/i386.c: Likewise.
19162         * config/i386/i386.md: Likewise.
19163
19164 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
19165
19166         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
19167         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
19168         ASM_FINISH_DECLARE_OBJECT before defining it.
19169         * toplev.c (rest_of_decl_compilation):  Don't define
19170         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
19171         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
19172         parameters for DWARF2 targets because they _are_ used.
19173
19174 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
19175
19176         * fp-bit.h: Define macros for TFmode floating-point constants
19177         in IBM-extended TFmode types.
19178         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
19179         widths.
19180         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
19181         TFmode type.
19182
19183         * config/fp-bit.h: Define macros for TFmode floating-point
19184         constants in IEEE quad TFmode type.  Declare functions according
19185         to L_ macros.
19186         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
19187         (TFtype, TItype, UTItype): Define if TMODES is defined.
19188         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
19189         (F_T_BITOFF, D_T_BITOFF): Define.
19190         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
19191         guaranteed to be wide enough.
19192         * config/fp-bit.c: Check for L_ macros for tf functions.
19193         (__thenan_tf): New.
19194         (nan): Adjust.
19195         (pack_d, unpack_d): Support IEEE 854 quad type.
19196         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
19197         from FRAC_NBITS, FRAC_BITS and NGARDS.
19198         (usi_to_float): Cast constants to be shifted to fractype
19199         instead of assuming long long is wide enough.
19200         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
19201
19202 2003-01-26  Andreas Jaeger  <aj@suse.de>
19203
19204         * df.c: Remove prototype of unused function df_regno_rtl_debug.
19205
19206 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
19207
19208         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
19209         (DBBIT_FUNCS): Added _df_to_tf.
19210         (TPBIT_FUNCS): New.
19211         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
19212         (LIBGCC_DEPS): Added TPBIT.
19213         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
19214
19215         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
19216         been able to move the result to target.
19217
19218         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
19219         for the appropriate mode.
19220
19221         * calls.c (emit_library_call_value_1): Handle return values
19222         in a PARALLEL.
19223
19224         * rtl.c (get_mode_alignment): Moved to...
19225         * stor-layout.c: ... here.
19226
19227         * print-rtl.c (print_rtx): Don't print MEM details in
19228         GENERATOR_FILEs.
19229
19230 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
19231
19232         * df.h: Update comments, tidy formatting.
19233         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
19234         REVERSE, UNION, INTERSECTION.  All uses updated.
19235         (OLD_DF_INTERFACE): Remove.
19236         (struct insn_info): Remove commented out insn field.
19237         * df.c: Update comments, tidy formatting.
19238         (df_def_table_realloc): Remove.
19239
19240
19241 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
19242
19243         * calls.c (save_fixed_argument_area): Tidy.
19244         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
19245         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
19246         call chain loop at 1 if !try_tail_call.  Formatting.
19247         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
19248         Use save_fixed_argument_area and restore_fixed_argument_area.
19249
19250 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19251
19252         * df.c (df_uses_record): Handle CC0.
19253
19254 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
19255
19256         * reload.c (maybe_memory_address_p): New function.
19257         (find_reloads_address): Use it instead of memory_address_p.
19258
19259 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
19260
19261         * final.c (shorten_branches): Align the address of code label
19262         when computing initial lengths and addresses.
19263
19264 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
19265
19266         * config/m68hc11/m68hc11.md: Fix a comment typo.
19267
19268 2003-01-25  Andreas Jaeger  <aj@suse.de>
19269
19270         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
19271         TARGET_MACHO.
19272
19273 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19274
19275         * gcse.c (bypass_last_basic_block): New global variable.
19276         (bypass_block):  Use redirect_edge_and_branch_force to redirect
19277         fall-through edges.  Use bypass_last_basic_block to determine
19278         which blocks have valid PRE information.
19279         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
19280
19281 2003-01-25  Jan Hubicka  <jh@suse.cz>
19282
19283         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
19284
19285 2003-01-25  Jan Hubicka  <jh@suse.cz>
19286                               Eric Botcazou <ebotcazou@libertysurf.fr>
19287         PR opt/8492
19288         * gcse.c (one_cprop_pass): Delete unreachable blocks.
19289
19290 2003-01-25  Richard Henderson  <rth@redhat.com>
19291
19292         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
19293         from ia64_aix_select_rtx_section.
19294         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
19295         instead of saving and restoring flag_pic.
19296         (ia64_rwreloc_unique_section): Similarly.
19297         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
19298         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
19299         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
19300         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
19301
19302 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
19303
19304         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
19305         comment.
19306
19307 2003-01-25  Richard Henderson  <rth@redhat.com>
19308
19309         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
19310
19311 2003-01-25  Kelley Cook <kelleycook@comcast.net>
19312
19313         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
19314
19315 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
19316
19317         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
19318         type for bitmaps.  Use unsigned long.
19319         (nBITMAP_WORD_BITS): New macro.
19320         (BITMAP_WORD_BITS): New macro.
19321         (rest of file): Use it.
19322         * bitmap.c: Use it.
19323
19324 2003-01-25  Richard Henderson  <rth@redhat.com>
19325
19326         2002-02-19  Robert Lipe  <robertlipe@usa.net>
19327         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
19328
19329 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19330
19331         * builtins.c (purge_builtin_constant_p): Scan insn stream
19332         sequentially rather than by basic block.
19333         * function.c (purge_addressof): Simplify test with INSN_P.
19334
19335 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
19336
19337         * combine.c (simplify_comparison, case AND): Remove a redundant test.
19338
19339 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19340
19341         * function.h (struct function): New field calls_constant_p.
19342         (current_function_calls_constant_p): New macro for above.
19343         * function.c (prepare_function_start): Initialize calls_eh_return
19344         and calls_constant_p.
19345         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
19346         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
19347         when the current_function_calls_constant_p.
19348         * integrate.c (expand_inline_function): Set calls_constant_p if
19349         the function being inlined has calls_constant_p set.
19350
19351 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19352
19353         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
19354         optimizing, even if flag_gcse is true.
19355         * toplev.c (rest_of_compilation): purge_builtin_constant_p
19356         only needs to be called when "optimize > 0 && flag_gcse".
19357
19358 2003-01-25  Roger Sayle  <roger@eyesopen.com>
19359
19360         * stmt.c (emit_case_bit_tests): New routine to implement suitable
19361         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
19362         (case_bit_test_cmp): New comparison function for "qsort" to order
19363         case_bit_tests by decreasing number of destination nodes.
19364         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
19365         (expand_end_case_type): Use emit_case_bit_tests to implement
19366         suitable switch statments.
19367         (CASE_USE_BIT_TESTS): New target macro to disable the above.
19368         * Makefile.in (stmt.o): Add dependency on optab.h.
19369         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
19370
19371 2003-01-23  Andreas Schwab  <schwab@suse.de>
19372
19373         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
19374         __do_global_ctors_aux hidden global and don't put it in
19375         .init_array.
19376         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
19377         instead so that it comes first.
19378
19379 2003-01-25  Jan Hubicka  <jh@suse.cz>
19380
19381         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
19382         subreg is read/modify.
19383
19384 2003-01-25  Jan Hubicka  <jh@suse.cz>
19385
19386         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
19387         do libcall for large blocks.
19388         * i386.md (comi patterns): Set type to ssecomi.
19389         (sse2_unpck?pd): Fix mode of vec_select.
19390
19391         * cse.c: Include except.h
19392         (cse_set_around_loop):  Do not create new basic blocks.
19393         * Makefile.in (cse.o): Add dependnecy on except.h
19394
19395 2003-01-25  Jan Hubicka  <jh@suse.cz>
19396
19397         * builtins.c (fold_trunc_transparent_mathfn): New function.
19398         (fold_builtin): Use it.
19399         * convert.c (convert_to_real): Re-enable code to convert
19400         math functions; add support for floor familly functions.
19401
19402 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19403
19404         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
19405         dependencies on coretypes.h and $(TM_H).
19406
19407 2003-01-25  Jan Hubicka  <jh@suse.cz>
19408
19409         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
19410
19411 2003-01-24  Stuart Hastings  <stuart@apple.com>
19412
19413         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
19414
19415 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19416
19417         * config/c4x/c4x.md (UNSPEC_BU): New constants.
19418         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
19419         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
19420         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
19421         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
19422         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
19423         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
19424         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
19425
19426 2003-01-24  Jan Hubicka  <jh@suse.cz>
19427
19428         * emit-rtl.c (reg_attrs_htab): New static variable.
19429         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
19430         functions.
19431         (reg_rtx): Do not maintain regno_decl.
19432         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
19433         set_mem_attrs_from_reg): New global function.
19434         (init_emit): Do not initialize regno_decl.
19435         (init_emit_once): initialize reg_attrs_htab.
19436         * final.c (alter_subreg): Do not replace REG by SUBREG.
19437         (gen_mem_expr_from_op): Improve output.
19438         (output_asm_operands): Likewise.
19439         * function.c (assign_params): Do not set REGNO_DECL.
19440         * function.h (struct function): Kill regno_decl.
19441         (REGNO_DECL): Kill.
19442         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
19443         * print_rtl.c (print_rtx): Output REG information.
19444         * regclass.c (reg_scan_mark_refs): Update attrs.
19445         * reload1.c (alter_reg): Likewise.
19446         * simplify_rtx.c (simplify_subreg): Likewise.
19447         * stmt.c (expand_decl): Likewise.
19448         * rtl.def (REG): Add new field.
19449         * rtl.h (struct reg_attrs): New.
19450         (rtunion_def): At rtreg.
19451         (X0MEMATTR): Add checking.
19452         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
19453         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
19454         Declare.
19455         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
19456
19457 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
19458
19459         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
19460         (xtensa_emit_call, print_operand): Fix printf format strings
19461         to avoid compile warnings.
19462         (xtensa_function_prologue, xtensa_function_epilogue): Change type
19463         of "size" argument to HOST_WIDE_INT to fix compile warnings.
19464         * config/xtensa/xtensa-protos.h
19465         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
19466
19467 2003-01-24  Jan Hubicka  <jh@suse.cz>
19468
19469         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
19470         (implicit_built_in_decls): New global array.
19471         (mathfn_built_in): New global function.
19472         (fold_trunc_transparent_mathfn): New static function
19473         (expand_builtin_strstr, expand_bultin_strchr,
19474         expand_builtin_strpbrk, expand_builtin_strcpy,
19475         expand_builtin_strncpy, expand_bultin_strcmp,
19476         expand_bultin_strncat, expand_builtin_fputs): Use
19477         implicint_built_in_decls.
19478         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
19479         * builtins.def: Fix comments.
19480         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
19481         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
19482         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
19483         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
19484         (DEF_C99_C90RES_BULTIN): New.
19485         (*f, *l builtins): Update.
19486         * c-common.c (DEF_BUILTIN): Initialize implicit array.
19487         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
19488         * convert.c (strip_float_extensions): New global function.
19489         * tree.h (DEF_BUILTIN): Accept 10 arguments.
19490         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
19491         Declare.
19492         * java/builtins.c (define_builtin): Handle implicit.
19493         (DEF_BUILTIN): Update.
19494         * tm.texi (TARGET_C99_FUNCTIONS): Document.
19495         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
19496         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
19497         when using glibc2.
19498
19499 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
19500
19501         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
19502         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
19503         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
19504         * config/xtensa/crti.asm: New file.
19505         * config/xtensa/crtn.asm: New file.
19506         * config/xtensa/t-elf: New file.
19507         * config/xtensa/t-linux: New file.
19508         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
19509         Move various CFLAGS settings to new t-elf file.
19510
19511 2003-01-24  Richard Henderson  <rth@redhat.com>
19512
19513         PR optimization/4382
19514         * tree-inline.c (find_builtin_longjmp_call_1): New.
19515         (find_builtin_longjmp_call): New.
19516         (inlinable_function_p): Use it.
19517
19518 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19519
19520         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
19521         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
19522         * config/i386/i386.c (function_arg_pass_by_reference): New.
19523         (ix86_va_arg): Support arguments passed by reference.
19524
19525 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19526
19527         * cfgloopanal.c: New file.
19528         * cfgloopmanip.c: New file.
19529         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
19530         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
19531         cfglayout.o): Add dependency on cfgloop.h.
19532         (cfgloop.o): Add flags.h dependency.
19533         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
19534         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
19535         (struct loop, struct loops, flow_loops_find, flow_loops_update,
19536         flow_loops_free, flow_loops_dump, flow_loop_dump,
19537         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
19538         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
19539         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
19540         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
19541         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
19542         find_common_loop, verify_loop_structure): Declarations moved to ...
19543         * cfgloop.h: New file.
19544         * bb-reorder.c (reorder_basic_blocks): Modified.
19545         * cfglayout.c: Include cfgloop.h.
19546         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
19547         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
19548         (break_superblocks): New static function.
19549         (cfg_layout_finalize): Use it.
19550         (cfg_layout_split_block): New function.
19551         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
19552         fields.
19553         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
19554         changed.
19555         (cfg_layout_split_block): Declare.
19556         * cfgloop.c: Include cfgloop.h and flags.h.
19557         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
19558         get_loop_body): Avoid signed versus unsigned comparison warnings.
19559         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
19560         loop_latch_edge): Modified.
19561         (verify_loop_structure): Modified to use flags stored in loop structure;
19562         check irreducible loops.
19563         (cancel_loop, cancel_loop_tree): New functions.
19564         (estimate_probability): Use loop analysis code for predictions.
19565         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
19566         warnings.
19567         * doloop.c: Include cfgloop.h.
19568         * loop.c: Include cfgloop.h.
19569         * predict.c: Include cfgloop.h.
19570         * toplev.c: Include cfgloop.h.
19571         * unroll.c: Include cfgloop.h.
19572         * tracer.c (tracer): Modified.
19573
19574 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
19575
19576         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
19577
19578 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
19579
19580         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
19581         * configure: Regenerate.
19582
19583         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
19584         (tls_symbolic_reference_mentioned_p): Add prototype.
19585         (s390_tls_get_offset): Add prototype.
19586         (emit_pic_move): Remove prototype, replace by ...
19587         (emit_symbolic_move): .. this new prototype.
19588
19589         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
19590         (tls_model_chars): New global variable.
19591         (s390_encode_section_info): Encode TLS model.
19592         Use targetm.binds_local_p to check for local symbols.
19593         (s390_strip_name_encoding): New function.
19594         (TARGET_STRIP_NAME_ENCODING): Define.
19595
19596         (get_thread_pointer): New function.
19597         (legitimize_tls_address): New function.
19598         (legitimize_address): Call it.
19599         (emit_pic_move): Remove, replace by ...
19600         (emit_symbolic_move): ... this new function.
19601
19602         (larl_operand): Handle TLS operands.
19603         (legitimate_constant_p): Likewise.
19604         (s390_decompose_address): Likewise.
19605         (s390_cannot_force_const_mem): New function.
19606         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19607
19608         (s390_output_symbolic_const): Handle TLS unspecs.
19609         (print_operand): New code 'J'.
19610         (machine_function): Add struct member 'some_ld_name'.
19611         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
19612
19613         (enum s390_builtin): New type.
19614         (code_for_builtin_64, code_for_builtin_31): New global variables.
19615         (s390_init_builtins, s390_expand_builtin): New functions.
19616         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19617
19618         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
19619         (ASM_OUTPUT_LABELREF): Define.
19620         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
19621
19622         * config/s390/s390.md: Define TLS UNSPEC constants.
19623         ("movdi", "movsi"): Handle TLS operands.
19624         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
19625         ("*tls_load_64", "*tls_load_31"): New insns.
19626         ("call_value_tls", "call_value_tls_exp"): New expanders.
19627         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
19628         "bas_tls_64", "bas_tls_31"): New insns.
19629
19630 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
19631
19632         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
19633         spe ABI is configured, if requested.
19634
19635 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19636
19637         * doc/passes.texi: Fix typo.
19638
19639 2003-01-24  Andreas Schwab  <schwab@suse.de>
19640
19641         * stor-layout.c (excess_unit_span): Only define if used.
19642
19643 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
19644
19645         * gcc/doc/invoke.texi (Optimization Options): List -O levels
19646         for each optimization flag.
19647
19648 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
19649
19650         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
19651
19652 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19653
19654         * doc/bugreport.texi: Use @command instead of @code for commands.
19655         * doc/collect2.texi: Likewise.
19656         * doc/headerdirs.texi: Likewise.
19657         * doc/invoke.texi: Likewise.
19658         * doc/standards.texi: Likewise.
19659         * doc/tm.texi: Likewise.
19660         * doc/trouble.texi: Likewise.
19661
19662 2003-01-24  Nick Clifton  <nickc@redhat.com>
19663
19664         * config/arm/arm.c (use_return_insn): Do not use a single return
19665         instruction for interrupt handelrs which have to create a stack
19666         frame.
19667         (arm_expand_prologue): Do not pre-bias the return address of
19668         interrupt handlers which create a stack frame.
19669
19670 2003-01-24  Nick Clifton  <nickc@redhat.com>
19671
19672         * Add sh2e support:
19673
19674         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
19675
19676                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
19677                 med_cbranches.  Fix logic in short_cbranches.
19678
19679         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
19680
19681                 * config/sh/sh.md (delay for cbranch): Don't annul delay
19682                 slots on SH2e.
19683                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
19684                 cbranch with unfilled delay slot on SH2e.
19685                 (output_branch): Fill with a nop the delay slot of a
19686                 branch that required a delay slot but didn't get one.
19687
19688         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
19689
19690                 * doc/invoke.texi (SH options): Document -m2e.
19691                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
19692                 * config/sh/lib1funcs.asm: Likewise.
19693                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
19694                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
19695                 not __sh1__.
19696                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
19697                 SH2E up.
19698                 (SH3E_BIT): Renamed to...
19699                 (SH_E_BIT): ... this.  Replace all uses.
19700                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
19701                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
19702                 (TARGET_SWITCHES): Added 2e.
19703                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
19704                 (processor_type): Added PROCESSOR_SH2E.
19705                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
19706                 TARGET_SH2E, except in sqrtsf2_i.
19707                 (attribute cpu): Added sh2e.
19708                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
19709                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
19710                 * config.gcc: Add sh2e target support.
19711
19712 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
19713
19714         Rename -W to -Wextra.
19715         * c-decl.c:  Update comments.
19716         * c-typeck.c:  Likewise.
19717         * flags.h:  Likewise.
19718         * function.c:  Likewise.
19719         * stmt.c:  Likewise.
19720         * toplev.c:  Update comments.
19721         (W_options):  Add 'extra'.
19722         (display_help):  Remove '-W'.
19723         (decode_W_option):  Special warn_uninitialized treatment in the case
19724         of -Wextra.
19725         * doc/invoke.texi:  Update with new entries.
19726
19727 2003-01-23  Richard Henderson  <rth@redhat.com>
19728
19729         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
19730         in no-else-block case.  Add commentary.
19731
19732 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19733
19734         * configure.in: Revert last change.
19735
19736 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19737
19738         * configure.in: Don't include ansidecl.h in tconfig.h.
19739         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
19740         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
19741         ATTRIBUTE_UNUSED.
19742
19743         * configure: Regenerate.
19744
19745 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19746
19747         PR java/6748
19748         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
19749         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
19750         kernels.
19751
19752 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19753
19754         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
19755
19756 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
19757
19758         * genattrtab.c (write_attr_get): Mark 'insn' paramter
19759         as ATTRIBUTE_UNUSED.
19760
19761 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
19762
19763         * arm.c (thumb_base_register_rtx_p): New function.
19764         (thumb_index_register_rtx_p): New function.
19765         (thumb_legitimate_address_p): New function.
19766         (thumb_legitimate_offset_p): New function.
19767         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
19768         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
19769         definitions.
19770         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
19771         (THUMB_LEGITIMATE_OFFSET): Delte.
19772         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
19773         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
19774         (thumb_legitimate_offset_p): Likewise.
19775
19776 2003-01-23  Andreas Schwab  <schwab@suse.de>
19777
19778         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
19779
19780 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19781
19782         * fixinc/Makefile.in (FL_LIST): Revert last change.
19783
19784 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
19785
19786         PR other/7341
19787         * invoke.texi (ftest-coverage): Fix broken cross-reference.
19788         Change @code to @command for gcov command.
19789
19790         * gcc.texi: Adjust title of gcov section.
19791         Adjust copyright.
19792         * gcov.texi: Likewise.
19793
19794 2003-01-22  Roger Sayle  <roger@eyesopen.com>
19795
19796         PR optimization/8423
19797         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
19798         its argument is constant, or 0 if !flag_gcse.
19799         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
19800         if it's argument is constant.
19801         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
19802         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
19803         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
19804         * builtins.c (purge_builtin_constant_p): New function to force
19805         instantiation of any remaining CONSTANT_P_RTX nodes.
19806         * rtl.h (purge_builtin_constant_p): Prototype here.
19807         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
19808         pass after GCSE and before loop.
19809         (flag_gcse): No longer static.
19810         * flags.h (flag_gcse): Prototype here.
19811
19812 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
19813
19814         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
19815         introduced by last change.
19816
19817 2003-01-22  Andreas Schwab  <schwab@suse.de>
19818
19819         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
19820
19821 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
19822
19823         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
19824         request a scratch reg on H8S when the shift count is 8.
19825
19826 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
19827
19828         * config/s390/s390-protos.h (preferred_la_operand_p):
19829         Remove second parameter.
19830         * config/s390/s390.c (preferred_la_operand_p): Likewise.
19831         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
19832         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
19833         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
19834         Add peepholes to transform ADD to LOAD ADDRESS.
19835
19836 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
19837
19838         * arm.c (arm_address_register_rtx_p): New function.
19839         (arm_legitimate_address_p): New function.
19840         (arm_legitimate_index_p): New function.
19841         (legitimize_pic_address): Use arm_legitimate_index_p.
19842         * arm-protos.h (arm_legtimate_address_p): Add prototype.
19843         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
19844         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
19845
19846 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
19847
19848         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
19849         * config/s390/2064.md (define_bypass): Correct 'Load' and
19850         'Load-address' bypass values.
19851
19852 2003-01-22  Andreas Schwab  <schwab@suse.de>
19853
19854         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
19855
19856 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19857
19858         * genautomata.c (output_internal_insn_latency_func,
19859         output_print_reservation_func): Short circuit when there is no
19860         automaton to generate code for.
19861
19862 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19863
19864         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
19865         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
19866
19867 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
19868
19869         * config/rs6000/rs6000.md: Remove warning.
19870         (builtin_setjmp_receiver): Likewise.
19871         * config/darwin.c (update_stubs): Slightly improve terrible hack
19872         with identifiers.  Add comment pointing out problems with it.
19873         (update_non_lazy_ptrs): Likewise.
19874
19875 2003-01-21  Richard Henderson  <rth@redhat.com>
19876
19877         * dwarf2out.c (lookup_filename): Fix printf format warning.
19878         * system.h (fread_unlocked, fwrite_unlocked): Undef.
19879
19880         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
19881         (fixincl.o-warn, gnu-regex.o-warn): New.
19882         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
19883         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
19884         * fixinc/fixincl.c (process): Fix printf format warning.
19885
19886 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
19887
19888         * dwarf2out (output_file_names): Don't crash if called
19889         with empty file_table.
19890
19891 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19892
19893         * genautomata.c (output_internal_insn_latency_func): Add
19894         missing break statement to generated code.
19895
19896 2003-01-21  Roger Sayle  <roger@eyesopen.com>
19897
19898         * stmt.c (same_case_target_p): New function to determine whether
19899         two case labels branch to the same target.  Split out from...
19900         (group_case_nodes): ... here.  Use same_case_target_p instead.
19901         (strip_default_case_nodes): Remove explicit case nodes
19902         that branch to the default destination.
19903         (expand_end_case_type): Call strip_default_case_nodes after
19904         group_case_nodes, to simplify the case-list before we count it.
19905         Only generate table_label RTX when actually needed.  Try to share
19906         thiscase->exit_label and thiscase->data.case_stmt.default_label
19907         when a switch has no explicit default case.  Simplify test for
19908         constant index.
19909
19910 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
19911
19912         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
19913         \t.
19914         (*negsf2_h8300hs): Likewise.
19915         (*addsi3_lshiftrt_16_zexthi): Likewise.
19916         (*iorhi3_lshiftrt_8): Likewise.
19917
19918 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
19919
19920         * dwarf2out.c (fde_table_in_use): Mark GTY.
19921         (dwarf2out_cfi_label_num): New variable, marked GTY.
19922         (dwarf2out_cfi_label): Use it instead of static label_num.
19923         * emit-rtl.c (label_num): Mark GTY.
19924
19925 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
19926
19927         * config/h8300/h8300.c (output_plussi): Support H8/300.
19928         (compute_plussi_length): Likewise.
19929         (compute_plussi_cc): Likewise.
19930         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
19931         output assembly instructions.
19932
19933 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19934
19935         * calls.c (fix_unsafe_tree): Prototype.
19936
19937         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
19938         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
19939         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
19940         c-parse.o-warn): Add -Wno-error.
19941         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
19942
19943         * configure.in (--enable-werror): Add new flag.
19944         * doc/install.texi (--enable-werror): Document.
19945         * configure: Regenerate.
19946
19947         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
19948
19949 2003-01-21  Andreas Schwab  <schwab@suse.de>
19950
19951         * genautomata.c (output_internal_insn_latency_func): Fix missing
19952         close paren in output.
19953
19954 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
19955
19956         * genautomata.c: Space savings in generated code:
19957         (output_dfa_insn_code_func): Split out the table-enlargement
19958         path to an out-of-line static function, dfa_insn_code_enlarge.
19959         (output_internal_insn_latency_func): Use a lookup table for the
19960         default latencies.
19961         (output_print_reservation_func): Use a lookup table for the
19962         strings.
19963
19964 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
19965
19966         PR opt/7507
19967         * calls.c (fix_unsafe_tree): Split out from ...
19968         (expand_call): ... here.  Use it on the function address too.
19969
19970 2003-01-20  Richard Henderson  <rth@redhat.com>
19971
19972         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
19973
19974 2003-01-20  Richard Henderson  <rth@redhat.com>
19975
19976         PR opt/7154
19977         * stmt.c (expand_asm_operands): Validize memory operands.
19978
19979 2003-01-20  Richard Henderson  <rth@redhat.com>
19980
19981         PR opt/8848
19982         * ifcvt.c (noce_process_if_block): Correct arguments to
19983         modified_between_p for no-else-block case.
19984
19985 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19986
19987         * config/h8300/h8300.c (const_costs): Remove a warning.
19988         (output_plussi): Likewise.
19989         (compute_plussi_length): Likewise.
19990         (compute_plussi_cc): Likewise.
19991
19992 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19993
19994         * config/h8300/h8300.md (addsi_h8300): Remove the last
19995         alternative.
19996
19997 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19998
19999         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
20000
20001 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20002
20003         * system.h (__NO_STRING_INLINES): Define.
20004
20005 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20006
20007         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
20008         is not a scalar int mode.
20009
20010 2003-01-20  Roger Sayle  <roger@eyesopen.com>
20011
20012         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
20013         insn's notes following a substitution inside a libcall.
20014
20015 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
20016
20017         * configure.in: Check for system-provided 'uchar' type.
20018         * configure, config.in: Regenerate.
20019         * cpphash.h: Only typedef 'uchar' if the system doesn't.
20020
20021 2003-01-20  Richard Henderson  <rth@redhat.com>
20022
20023         * expr.h (MUST_PASS_IN_STACK): Move implementation...
20024         * calls.c (default_must_pass_in_stack): ... here.
20025
20026 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
20027
20028         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
20029
20030         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
20031
20032         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
20033         Wrap up definition of `insn_alts'.
20034
20035         * genattrtab.c (main): Wrap up `insn_alts'.
20036
20037 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20038
20039         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
20040         prototyping.
20041         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
20042
20043         * config.in, configure: Regenerate.
20044
20045 2003-01-20  Nick Clifton  <nickc@redhat.com>
20046
20047         * config/arm/arm.md (sibcall_epilogue): Add an
20048         UNSPEC_PROLOGUE_USE to prevent the link register from being
20049         considered dead.
20050
20051 2003-01-20  Jan Hubicka  <jh@suse.cz>
20052
20053         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
20054
20055 2003-01-20  Andreas Schwab  <schwab@suse.de>
20056
20057         * system.h: Don't declare strsignal if the decl test hasn't been
20058         run yet.
20059
20060 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
20061
20062         * config/h8300/h8300.c (notice_update_cc): Don't assume that
20063         recog_data.operands[0] is always associated with cc0.
20064
20065 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
20066
20067         * collect2.c (ldgetname): Expand declaration to prototype.
20068         * read-rtl.c (atoll): Add prototype.
20069         * system.h (strsignal): Also declare if no declaration found.
20070
20071 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
20072
20073         * config.gcc (mips64*-*-linux*): Added.
20074         * config/mips/linux64.h, config/mips/t-linux64: New file.
20075         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
20076         * config/mips/mips.c (override_options): Use it.
20077         * config/mips/mips.h (TARGET_SWITCHES): Added...
20078         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
20079         * Makefile.in (SPECS): New.
20080         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
20081         * gcc.c (process_command): Move self-spec processing past spec
20082         file loading.
20083         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
20084         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
20085         CRTSTUFF_T_CFLAGS.
20086         (SPECS): Document.
20087         * doc/invoke.texi (-mabi-fake-default): Document.
20088
20089 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
20090
20091         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
20092         z_reg, z_reg_qi): Declare static and GTY().
20093         (da_reg): Remove.
20094         (create_regs_rtx): Don't create da_reg.
20095         ("gt-m68hc11.h"): Include for GTY roots.
20096         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
20097         and GTY() here.
20098         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
20099         (m68hc11_soft_tmp_reg): Likewise.
20100         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
20101
20102 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
20103
20104         * basic-block.h: Fix comment formatting.
20105         * calls.c: Likewise.
20106         * combine.c: Likewise.
20107         * convert.c: Likewise.
20108         * gcov.c: Likewise.
20109         * haifa-sched.c: Likewise.
20110         * libgcc2.c: Likewise.
20111         * loop.c: Likewise.
20112         * profile.c: Likewise.
20113         * system.h: Likewise.
20114
20115 2003-01-18  Roger Sayle  <roger@eyesopen.com>
20116
20117         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
20118
20119 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20120
20121         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
20122
20123 2003-01-17  Dale Johannesen  <dalej@apple.com>
20124
20125         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
20126           (*floatunssidf2_internal):  Ditto.
20127
20128 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
20129
20130         * alias.c: Fix comment typos.
20131         * basic-block.h: Likewise.
20132         * c-common.c: Likewise.
20133         * c-common.h: Likewise.
20134         * c-decl.c: Likewise.
20135         * c-opts.c: Likewise.
20136         * c-pragma.c: Likewise.
20137         * c-pretty-print.h: Likewise.
20138         * cfg.c: Likewise.
20139         * cfganal.c: Likewise.
20140         * cfgbuild.c: Likewise.
20141         * cfgcleanup.c: Likewise.
20142         * cfglayout.c: Likewise.
20143         * cfgrtl.c: Likewise.
20144         * convert.c: Likewise.
20145         * cpphash.h: Likewise.
20146         * cpplex.c: Likewise.
20147         * cpplib.h: Likewise.
20148         * df.h: Likewise.
20149         * diagnostic.c: Likewise.
20150         * diagnostic.h: Likewise.
20151         * dwarf2.h: Likewise.
20152
20153 2003-01-17  Stan Shebs  <shebs@apple.com>
20154
20155         * config/darwin-protos.h: Forward-declare struct cpp_reader.
20156
20157 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
20158
20159         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
20160         mistake in last checkin.
20161
20162 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
20163
20164         * et-forest.c: Fix comment typos.
20165         * et-forest.h: Likewise.
20166         * except.c: Likewise.
20167         * expr.c: Likewise.
20168         * flags.h: Likewise.
20169         * flow.c: Likewise.
20170         * gcc.c: Likewise.
20171         * gcse.c: Likewise.
20172         * genattrtab.c: Likewise.
20173         * genautomata.c: Likewise.
20174         * gengtype.c: Likewise.
20175         * genrecog.c: Likewise.
20176         * global.c: Likewise.
20177         * gthr-rtems.h: Likewise.
20178
20179 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20180
20181         * i386.c (x86_function_profiler): Fix format specifier.
20182
20183 2003-01-17  Richard Henderson  <rth@redhat.com>
20184
20185         * gengtype.c (walk_type): Allow paramN_is.
20186
20187 2003-01-17  Nick Clifton  <nickc@redhat.com>
20188
20189         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
20190
20191 2003-01-16  Richard Henderson  <rth@redhat.com>
20192
20193         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
20194
20195 2003-01-16  Richard Henderson  <rth@redhat.com>
20196
20197         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
20198         (alpha_next_sequence_number): Likewise.
20199         (alpha_this_literal_sequence_number): Likewise.
20200         (alpha_this_gpdisp_sequence_number): Likewise.
20201         (struct alpha_funcs, alpha_funcs_num): Likewise.
20202         (struct alpha_links): Fix branch merge error.
20203         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
20204
20205 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
20206
20207         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
20208         R. Ghazi.
20209
20210 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
20211
20212         * ifcvt.c: Fix comment typos.
20213         * lcm.c: Likewise.
20214         * libgcc2.c: Likewise.
20215         * local-alloc.c: Likewise.
20216         * loop.c: Likewise.
20217         * predict.c: Likewise.
20218         * ra-build.c: Likewise.
20219         * ra.c: Likewise.
20220         * ra-colorize.c: Likewise.
20221         * ra.h: Likewise.
20222         * ra-rewrite.c: Likewise.
20223         * regmove.c: Likewise.
20224         * reload.h: Likewise.
20225         * rtlanal.c: Likewise.
20226         * toplev.c: Likewise.
20227         * tree.h: Likewise.
20228         * unwind-dw2-fde-glibc.c: Likewise.
20229         * vmsdbgout.c: Likewise.
20230
20231 2003-01-16  Richard Henderson  <rth@redhat.com>
20232
20233         * dwarf2out.c (struct file_table): Remove.
20234         (FILE_TABLE_INCREMENT): Remove.
20235         (file_table): Make a varray; mark for GC.  Update all users.
20236         (file_table_last_lookup_index): Extract from struct file_table.
20237         (output_file_names): Fix unsigned compare warnings.
20238         (add_name_attribute): Remove inline marker.
20239         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
20240         (lookup_filename): Don't manage size of file_table.
20241         (init_file_table): Allocate file_table with GC.
20242         (dwarf2out_init): Don't record main_input_filename here.
20243         (dwarf2out_finish): Do it here instead.
20244
20245 2003-01-16  Bruce Korb  <bkorb@gnu.org>
20246
20247         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
20248
20249 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
20250
20251         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
20252         instead of rotldi3_mextr.
20253
20254 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
20255
20256         * haifa-sched.c (move_insn): Restore moving all schedule group.
20257         (set_priorities): Restore taking SCHED_GROUP_P into account.
20258
20259         * sched-deps.c (add_dependence): Restore processing the last group
20260         insn.
20261         (remove_dependence, group_leader): Restore the functions.
20262         (set_sched_group_p): Restore adding dependencies from previous insn
20263         in the group.
20264         (compute_forward_dependences): Restore usage of group_leader.
20265
20266         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
20267         account.
20268
20269         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
20270         account.
20271         (can_schedule_ready_p): Ditto.
20272         (add_branch_dependences): Restore skipping over the group insns.
20273
20274 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
20275
20276         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
20277         68HC12 pre/post inc/dec side effects.
20278
20279 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
20280
20281         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
20282
20283 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
20284
20285         * sh.md (mshflo_w_x): Fix description of operation.
20286
20287 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
20288
20289         * config/rs6000/rs6000.h: Mention Altivec registers in
20290         commentary.  Fix typo.
20291
20292 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
20293
20294         * config/rs6000/rs6000.md (movti_string): Remove clobber.
20295         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
20296         generate PARALLEL with clobber for TARGET_POWER.
20297
20298 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20299
20300         * ra-colorize.c (colorize_one_web): Initialize variable.
20301         * regmove.c (fixup_match_1): Likewise.
20302         * reload1.c (reload_as_needed): Likewise.
20303         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
20304
20305 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20306
20307         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
20308
20309 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20310
20311         * dbxout.c (lastfile, cwd): Fix `unused' warning.
20312         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
20313         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
20314         is_main_source, file_table, decl_die_table_in_use,
20315         abbrev_die_table_in_use, line_info_table_in_use,
20316         separate_line_info_table_in_use, pubname_table_in_use,
20317         arange_table_in_use, ranges_table_in_use,
20318         current_function_has_inlines): Likewise.
20319         * flow.c (life_analysis): Likewise.
20320         * genemit.c (gen_insn): Likewise.
20321         * protoize.c (cplus_suffix): Likewise.
20322
20323         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
20324         * arm.h (ROUND_UP_WORD): Likewise.
20325
20326         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
20327         warning.
20328         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
20329         init_emit_once): Likewise.
20330         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
20331         Likewise.
20332         * function.c (assign_stack_temp_for_type): Likewise.
20333         * loop.c (loop_invariant_p): Likewise.
20334         * recog.c (push_operand): Likewise.
20335         * regclass.c (init_reg_sets_1): Likewise.
20336         * reload.c (update_auto_inc_notes): Likewise.
20337         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
20338         * stmt.c (expand_asm_operands): Likewise.
20339         * stor-layout.c (start_record_layout): Likewise.
20340
20341 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20342
20343         * config/c4x/c4x.md (epilogue): Correct last patch.
20344
20345 2003-01-15  Richard Henderson  <rth@redhat.com>
20346
20347         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
20348         also check that GP is being used.
20349         (alpha_find_lo_sum_using_gp): New.
20350         (alpha_does_function_need_gp): Use get_attr_usegp.
20351         * config/alpha/alpha-protos.h: Update.
20352         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
20353         as needed.
20354
20355 2003-01-15  Roger Sayle  <roger@eyesopen.com>
20356
20357         * gcse.c (one_cprop_pass): Change function arguments to take both
20358         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
20359         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
20360         (bypass_jumps): New function to perform separate jump bypassing pass.
20361         * rtl.h (bypass_jumps): Add function prototype.
20362         * timevar.def (TV_BYPASS): New timing variable.
20363         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
20364         (dump_file): New entry for the bypass RTL dump file.
20365         (rest_of_compilation): Insert new jump bypassing optimization
20366         pass after loop.
20367         * doc/passes.texi: Document new pass.
20368
20369 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20370
20371         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
20372         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
20373         * pa.h (TARGET_SOM_SDEF): Define.
20374         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
20375
20376 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
20377
20378         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
20379         allocate 4-bytes of locals on 68HC11.
20380         (expand_epilogue): Likewise.
20381         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
20382
20383 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
20384
20385         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
20386         and -mshort-double to the assembler to specify the ABI.
20387         (LINK_SPEC): Likewise.
20388         (CPP_SPEC): Pass HCS12 specific define.
20389         (MASK_M68S12): New define.
20390         (TARGET_M68S12): Likewise.
20391         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
20392         (TARGET_VERSION): Update.
20393         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
20394         (LINK_SPEC): Update.
20395         (ASM_SPEC): Update.
20396         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
20397         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
20398
20399 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
20400
20401         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
20402         the return code.
20403
20404 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
20405
20406         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
20407         flag before setting it.
20408
20409 2003-01-15  Roger Sayle  <roger@eyesopen.com>
20410
20411         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
20412         when loop condition is known true, i.e.  "while (1) { ... }".
20413         (genrtl_for_stmt): Similarly for "for" statements.
20414
20415 2003-01-15  Roger Sayle  <roger@eyesopen.com>
20416
20417         * real.c (real_sqrt): Return a bool result indicating whether
20418         a floating point exception or trap should be raised.
20419         * real.h (real_sqrt): Update function prototype.
20420         * builtins.c (fold_builtin): Only fold non-trapping square
20421         roots unless we're ignoring errno and trapping math.
20422
20423 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
20424
20425         * expr.h (emit_conditional_add): Add PARAMS to declaration.
20426         * gengtype-lex.l (malloc, realloc): Move defines after include of
20427         system.h.  Remove duplicate include of system.h.
20428
20429 2003-01-15  Roger Sayle  <roger@eyesopen.com>
20430
20431         PR middle-end/9009
20432         * optabs.c (expand_unop):  When manipulating the FP sign bit
20433         using integer operations, account for targets with different
20434         integer and FP word orders.
20435         (expand_abs): Likewise.
20436
20437 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
20438
20439         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
20440         file extension in section name.
20441
20442 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
20443
20444         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
20445         constant offset.
20446
20447 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
20448
20449         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
20450         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
20451         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
20452         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
20453
20454 2003-01-15  Jan Hubicka  <jh@suse.cz>
20455
20456         PR f/9258
20457         * global.c (struct allocno): Add no_stack_reg.
20458         (global_conflicts): Set no_stack_reg.
20459         (find_reg): Use it.
20460
20461         * convert.c (convert_to_real): Fold - and abs only when profitable.
20462         * fold-const.c (fold): Fold truncates in - and abs.
20463
20464 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
20465
20466         Segher Boessenkool  <segher@koffie.nl>
20467
20468         * predict.c (real_inv_br_prob_base): New variable.
20469         (propagate_freq): Use multiply by reciprocal instead of
20470         division.  Don't divide by 1.0 at all.
20471         (estimate_bb_frequencies): Similar.
20472
20473 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
20474
20475         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
20476         * configure: Rebuilt.
20477
20478 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
20479
20480         * config/s390/s390.c (s390_safe_attr_type): New function.
20481         (s390_use_dfa_pipeline_interface): New function, return true for z900.
20482         (s390_issue_rate): New function.
20483         (s390_agen_dep_p): New function.
20484         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
20485         (s390_adjust_cost): Return 'cost' if new DFA is used.
20486         (s390_adjust_priority): Delete function.
20487         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
20488         * config/s390/s390.md (atype attribute): Attribute 'atype' default
20489         determined by 'op_type'.
20490         (type attribute): Added more type attributes.
20491         * config/s390/2064.md: New DFA description for z900 pipeline.
20492
20493 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
20494
20495         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
20496         forced to memory.  Fixes PR bootstrap/9036.
20497
20498         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
20499         to set $gp before the call.
20500
20501 2003-01-14  Richard Henderson  <rth@redhat.com>
20502
20503         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
20504         for force_const_mem.
20505
20506 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20507
20508         * genattr.c (main): Rearrange output to avoid prototype warning.
20509         * genautomata.c (transform_3): Fix ambiguous-else warning.
20510         * local-alloc.c (requires_inout): Add parentheses around
20511         assignment used as truth-value.
20512         * timevar.c: Move system includes above local includes.  Include
20513         toplev.h
20514         * Makefile.in (timevar.o): Depend on toplev.h.
20515
20516 2003-01-14  Denis Chertykov  <denisc@overta.ru>
20517
20518         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
20519         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
20520
20521         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
20522         attributes.
20523         (TARGET_ATTRIBUTE_TABLE): New macro.
20524         (valid_machine_type_attribute): Remove.
20525         (valid_machine_decl_attribute): Remove.
20526         (ip2k_handle_progmem_attribute): New function.
20527         (ip2k_handle_fndecl_attribute): New function.
20528
20529 2003-01-10  Andrew Haley  <aph@redhat.com>
20530
20531         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
20532         registers to be in correct order.  Add rip.
20533
20534 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
20535
20536         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
20537         (*iorsi3_and_lshiftrt_9_sb): Likewise.
20538
20539 2003-01-14  Jan Hubicka  <jh@suse.cz>
20540
20541         * convert.c (strip_float_extensions):  Look for narrowest type handling
20542         FP constants.
20543
20544         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
20545         float1 CMP float2.
20546         * convert.c (strip_float_extensions): Make global.
20547         * tree.h (strip_float_extensions): Declare.
20548
20549 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20550
20551         * timevar.def: define TV_NAME_LOOKUP.
20552         * timevar.c (timevar_pop): Be verbose when aborting.
20553
20554 2003-01-13  Andreas Schwab  <schwab@suse.de>
20555
20556         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
20557         $(parsedir), just move the temporary file at the end.
20558         ($(parsedir)/gengtype-yacc.c): Likewise.
20559
20560 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
20561
20562         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
20563         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
20564         splitting.
20565         * configure: Rebuilt.
20566
20567 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20568
20569         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
20570         internal_mcount): Don't use PARAMS.
20571         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
20572         ISO C style.
20573         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
20574
20575 2003-01-13  Andreas Schwab  <schwab@suse.de>
20576
20577         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
20578         directive.
20579
20580 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
20581
20582         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
20583         (*iorsi3_and_lshiftrt_n_sb): Likewise.
20584
20585 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
20586
20587         PR c++/9264
20588         * c-lex.c (c_lex): Set the token value to error_mark_node for
20589         invalid numeric constants.
20590
20591 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20592
20593         * c-pch.c (asm_file_startpos): Change to `long'.
20594         (pch_init): Use ftell, not ftello.
20595         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
20596         Use `long' instead of `off_t'.
20597         (c_common_read_pch): Likewise.
20598         * ggc-common.c (gt_pch_save): Use long/ftell instead of
20599         off_t/ftello.
20600
20601 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
20602
20603         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
20604
20605 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
20606
20607         * arm-protos.h (struct cpp_reader): Add declaration.
20608
20609 2003-01-11  Jan Hubicka  <jh@suse.cz>
20610
20611         PR target/9068
20612         * i386.c (output_fp_compare): Fix typo.
20613
20614 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
20615
20616         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
20617
20618 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
20619
20620         * Makefile.in (parsedir): New variable.
20621         (docobjdir): New variable.
20622         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
20623         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
20624         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
20625         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
20626         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
20627         Use docobjdir.
20628         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
20629         objc.maintainer-clean): Use parsedir.
20630
20631         * varasm.c (struct constant_descriptor_rtx): Remove unused
20632         `label' field.
20633
20634         * toplev.c (documented_lang_options): Document -Winvalid-pch.
20635
20636 2003-01-10  Richard Henderson  <rth@redhat.com>
20637
20638         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
20639         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
20640
20641 2003-01-10  Richard Henderson  <rth@redhat.com>
20642
20643         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
20644         not INTEGRAL_MODE_P when widening extensions.
20645
20646 2003-01-10  Richard Henderson  <rth@redhat.com>
20647
20648         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
20649
20650 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
20651
20652         * ggc-page.c (ggc_collect): Avoid overflow computing
20653         min_expand.
20654
20655         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
20656         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
20657         Remove calls.
20658         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
20659
20660 2003-01-10  Jan Hubicka  <jh@suse.cz>
20661
20662         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
20663         with weird operands.
20664
20665 2003-01-10  Dale Johannesen <dalej@apple.com>
20666
20667         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
20668         parameters.  Call check_sibcall_argument_overlap if indicated.
20669         (check_sibcall_argument_overlap):  Add mark_stored_args_map
20670         parameter.  Don't mark parameter area as clobbered if not set.
20671         (expand_call):  Adjust calls to above.
20672
20673 2003-01-10 Kelley Cook <kelleycook@comcast.net>
20674
20675         * configure.in (linker read-only and read-write section mixing):
20676         Squelch some assembler warnings.
20677         * configure: Likewise.
20678
20679 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
20680
20681         * doc/invoke.texi: Document -mtune, delete -mcpu
20682         option for S/390 and zSeries.
20683         * config/s390/s390.c (s390_tune_string) New variable.
20684         (s390_cpu_string) Delete variable.
20685         (override_options): Use s390_tune_string instead of
20686         s390_cpu_string.
20687         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
20688
20689 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
20690
20691         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
20692
20693 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
20694
20695         * jump.c (next_nonnote_insn_in_loop): New function.
20696         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
20697         next_nonnote_insn.
20698         (duplicate_loop_exit_test). Likewise.
20699
20700 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
20701
20702         Merge from pch-branch:
20703
20704         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
20705
20706         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
20707         load.
20708
20709         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
20710
20711         * cpplib.c (count_registered_pragmas): New function.
20712         (save_registered_pragmas): New function.
20713         (_cpp_save_pragma_names): New function.
20714         (restore_registered_pragmas): New function.
20715         (_cpp_restore_pragma_names): New function.
20716         * cpphash.h (_cpp_save_pragma_names): Prototype.
20717         (_cpp_restore_pragma_names): Likewise.
20718         * cpppch.c (struct save_macro_item): Split from save_macro_data.
20719         (struct save_macro_data): New field 'saved_pragmas'.
20720         (save_macros): Update for changes to struct save_macro_data.
20721         (cpp_prepare_state): Call _cpp_save_pragma_names, update
20722         for changes to struct save_macro_data.
20723         (cpp_read_state): Call _cpp_restore_pragma_names, update
20724         for changes to struct save_macro_data.
20725
20726         * cpppch.c (cpp_read_state): Restore the hashtable references
20727         in the cpp_reader.
20728
20729         * tree.h (built_in_decls): Mark for PCH.
20730
20731         * dbxout.c (lastfile): Don't mark for PCH.
20732
20733         * ggc.h: Document PCH calls into memory managers.
20734
20735         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
20736
20737         * doc/invoke.texi (Precompiled Headers): Document the
20738         directory form of PCH.
20739         * cppfiles.c (validate_pch): New function.
20740         (open_file_pch): Search suitably-named directories for PCH files.
20741
20742         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
20743
20744         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
20745         reorder options.
20746         (Type Information): Mention that the information is also
20747         used to implement PCH.
20748         * doc/passes.texi (Passes): Improve documentation of
20749         language-specific files.
20750
20751         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
20752
20753         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
20754         (struct walk_type_data): Add reorder_fn field.
20755         (walk_type): Process 'reorder' option.
20756         (write_types_process_field): Reorder parameters to gt_pch_note_object,
20757         call reorder_note_routine.
20758         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
20759         (ggc_wtd): Update for change to struct write_types_data.
20760         (pch_wtd): Likewise.
20761         * ggc.h (gt_pch_note_object): Reorder parameters.
20762         (gt_handle_reorder): New definition.
20763         (gt_pch_note_reorder): New prototype.
20764         * ggc-common.c (struct ptr_data): Add reorder_fn.
20765         (gt_pch_note_object): Reorder parameters.
20766         (gt_pch_note_reorder): New.
20767         (gt_pch_save): Call reorder_fn.
20768         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
20769
20770         * dbxout.c (cwd): Don't mark for PCH.
20771
20772         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
20773
20774         * gengtype.c (finish_root_table): Fix some warnings.
20775         (write_root): Handle TYPE_STRING.
20776         * ggc.h (gt_ggc_m_S): Add prototype.
20777         * stringpool.c (gt_ggc_m_S): New function.
20778
20779         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
20780
20781         * dwarf2out.c (dw2_string_counter): New.
20782         (AT_string_form): Use it.
20783         (same_dw_val_p): Update for removal of hashtable.h hash tables.
20784
20785         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
20786
20787         * dbxout.c: Include gt-dbxout.h.
20788         (lastfile): Mark for PCH/GGC.
20789         (cwd): Likewise.
20790         (struct typeinfo): Likewise.
20791         (typevec): Likewise.
20792         (typevec_len): Likewise.
20793         (next_type_number): Likewise.
20794         (struct dbx_file): Likewise.
20795         (current_file): Likewise.
20796         (next_file_number): Likewise.
20797         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
20798         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
20799         (dbxout_end_source_file): Don't free struct dbx_file.
20800         (dbxout_type): Use GGC to allocate typevec.
20801         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
20802         (GTFILES): Add dbxout.c.
20803         (gt-dbxout.h): New rule.
20804
20805         * Makefile.in (c-pch.o): Add debug.h as dependency.
20806         * c-pch.c: Include debug.h.
20807         (pch_init): Call start_source_file to keep nesting right.
20808         (c_common_read_pch): Add orig_name parameter.  Call
20809         start_source_file debug hook.  Call end_source_file debug hook.
20810         * c-common.h (c_common_read_pch): Update prototype.
20811         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
20812         callback.
20813         * cppfiles.c (struct include_file): Add new field `header_name'.
20814         (find_or_create_entry): Default it to `name'.
20815         (open_file_pch): Set it to the original header file searched for.
20816         (stack_include_file): Don't stack an empty buffer, just handle
20817         PCH files immediately.  Pass header_name field to read_pch callback.
20818
20819         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
20820
20821         * function.c (funcdef_no): Mark to be saved in a PCH.
20822
20823         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
20824
20825         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
20826
20827         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
20828
20829         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
20830
20831         * optabs.h (code_to_optab): Add GTY marker.
20832
20833         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
20834
20835         * Makefile.in (GTFILES): Add cpplib.h.
20836         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
20837         * c-decl.c (build_compound_literal): Don't use var_labelno.
20838         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
20839         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
20840         * varasm.c (const_labelno): Use gengtype to mark.
20841         (var_labelno): Likewise.
20842         (in_section): Likewise.
20843         (in_named_name): Likewise.
20844         (struct in_named_entry): Likewise.
20845         (in_named_htab): Likewise.
20846         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
20847         (init_varasm_once): Use GGC to allocate in_named_htab.
20848         * config/darwin.c (current_pic_label_num): Mark for PCH.
20849
20850         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
20851
20852         * ggc-simple.c (init_ggc_pch): New stub procedure.
20853         (ggc_pch_count_object): Likewise.
20854         (ggc_pch_total_size): Likewise.
20855         (ggc_pch_this_base): Likewise.
20856         (ggc_pch_alloc_object): Likewise.
20857         (ggc_pch_prepare_write): Likewise.
20858         (ggc_pch_write_object): Likewise
20859         (ggc_pch_finish): Likewise.
20860         (ggc_pch_read): Likewise.
20861
20862         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
20863
20864         * c-pch.c (c_common_write_pch): Write the macro definitions after
20865         the GCed data.
20866         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
20867         definitions after the GCed data.
20868         * cpplib.c (save_macros): New.
20869         (reset_ht): New.
20870         (cpp_write_pch_deps): Split out of cpp_write_pch.
20871         (cpp_write_pch_state): Split out of cpp_write_pch.
20872         (cpp_write_pch): Delete.
20873         (struct save_macro_data): Delete.
20874         (cpp_prepare_state): New.
20875         (cpp_read_state): Erase and restore initial macro definitions.
20876         * cpplib.h (struct save_macro_data): Forward-declare.
20877         (cpp_write_pch_deps): Prototype.
20878         (cpp_write_pch_state): Prototype.
20879         (cpp_write_pch): Delete prototype.
20880         (cpp_prepare_state): Prototype.
20881         (cpp_read_state): Add fourth argument.
20882
20883         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
20884
20885         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
20886         (write_array): Remove warning.
20887
20888         * gengtype.c (contains_scalar_p): New.
20889         (finish_root_table): Add the table to all languages, even if it's
20890         empty.
20891         (write_roots): Output gt_pch_scalar_rtab.
20892         * ggc-common.c (gt_pch_save): Write out scalars.
20893         (gt_pch_restore): Read scalars back.
20894
20895         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
20896         (struct page_entry): Delete pch_page field.
20897         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
20898         (clear_marks): Likewise.
20899         (sweep_pages): Likewise.
20900         (poison_pages): Likewise.
20901         (ggc_print_statistics): Likewise.
20902         (ggc_pch_read): Don't free objects read from a PCH.
20903         Properly set up in_use_p and page_tails.
20904
20905         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
20906
20907         * gengtype.c (struct write_types_data): New.
20908         (struct walk_type_data): Make `cookie' const; add extra
20909         prev_val item; add `orig_s' field.
20910         (walk_type): Update prev_val[3].
20911         (write_types_process_field): New.
20912         (write_func_for_structure): Take write_types_data structure.
20913         (write_types): New.
20914         (ggc_wtd): New.
20915         (pch_wtd): New.
20916         (write_types_local_process_field): New.
20917         (gc_mark_process_field): Delete.
20918         (write_local_func_for_structure): New.
20919         (gc_mark_func_name): Delete.
20920         (write_gc_types): Delete.
20921         (write_local): New.
20922         (finish_root_table): Don't include 'ggc_' in PFX.
20923         (write_root): Rename from write_root.  Fill pchw field of structures.
20924         (write_array): New.
20925         (write_roots): Rename from write_gc_roots.  Split out to write_array.
20926         Update to changes to other routines.  Write gt_pch_cache_rtab table.
20927         (main): Write PCH walking routines.
20928         * ggc-common.c: Include toplev.h, sys/mman.h.
20929         (ggc_mark_roots): For cache hashtables, also mark the hash table
20930         and the array of entries.
20931         (saving_htab): New.
20932         (struct ptr_data): New.
20933         (POINTER_HASH): New.
20934         (gt_pch_note_object): New.
20935         (saving_htab_hash): New.
20936         (saving_htab_eq): New.
20937         (struct traversal_state): New.
20938         (call_count): New.
20939         (call_alloc): New.
20940         (compare_ptr_data): New.
20941         (relocate_ptrs): New.
20942         (write_pch_globals): New.
20943         (struct mmap_info): New.
20944         (gt_pch_save): New.
20945         (gt_pch_restore): New.
20946         * ggc-page.c (ROUND_UP_VALUE): New.
20947         (ROUND_UP): New.
20948         (struct page_entry): Add field `pch_page'.
20949         (init_ggc): Use ROUND_UP.
20950         (struct ggc_pch_data): Declare.
20951         (init_ggc_pch): New.
20952         (ggc_pch_count_object): New.
20953         (ggc_pch_total_size): New.
20954         (ggc_pch_this_base): New.
20955         (ggc_pch_alloc_object): New.
20956         (ggc_pch_prepare_write): New.
20957         (ggc_pch_write_object): New.
20958         (ggc_pch_finish): New.
20959         (ggc_pch_read): New.
20960         * ggc.h (gt_pointer_operator): New.
20961         (gt_note_pointers): New.
20962         (gt_pch_note_object): New prototype.
20963         (gt_pointer_walker): New.
20964         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
20965         (LAST_GGC_ROOT_TAB): Update.
20966         (gt_pch_cache_rtab): Declare.
20967         (gt_pch_scalar_rtab): Declare.
20968         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
20969         (LAST_GGC_CACHE_TAB): Update.
20970         (gt_pch_save_stringpool): Declare.
20971         (gt_pch_restore_stringpool): Declare.
20972         (gt_pch_p_S): Declare.
20973         (gt_pch_n_S): Declare.
20974         (struct ggc_pch_data): Forward-declare.
20975         (init_ggc_pch): Declare.
20976         (ggc_pch_count_object): Declare.
20977         (ggc_pch_total_size): Declare.
20978         (ggc_pch_this_base): Declare.
20979         (ggc_pch_alloc_object): Declare.
20980         (ggc_pch_prepare_write): Declare.
20981         (ggc_pch_write_object): Declare.
20982         (ggc_pch_finish): Declare.
20983         (ggc_pch_read): Declare.
20984         (gt_pch_save): Declare.
20985         (gt_pch_restore): Declare.
20986         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
20987         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
20988         const_double_htab, mem_attrs_htab using GGC.
20989         * c-pch.c: Include ggc.h.
20990         (pch_init): Allow reading PCH file back.
20991         (c_common_write_pch): Call gt_pch_save.
20992         (c_common_read_pch): Call gt_pch_restore.
20993         * c-parse.in (init_reswords): Delete now-untrue comment.
20994         Allocate ridpointers using GGC.
20995         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
20996         calling expand_deferred_fns.
20997         * c-common.h (ridpointers): Mark for GTY machinery.
20998         * Makefile.in (stringpool.o): Update dependencies.
20999         (c-pch.o): Update dependencies.
21000         (ggc-common.o): Update dependencies.
21001         * stringpool.c: Include gt-stringpool.h.
21002         (gt_pch_p_S): New.
21003         (gt_pch_n_S): New.
21004         (struct string_pool_data): New.
21005         (spd): New.
21006         (gt_pch_save_stringpool): New.
21007         (gt_pch_restore_stringpool): New.
21008         * tree.c (init_ttree): Make type_hash_table allocated using GC.
21009
21010         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
21011
21012         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
21013         (output_mangled_typename): Don't pass size_t to printf.
21014
21015         * tree.h (union tree_type_symtab): Add tag to `address' field.
21016         (union tree_decl_u2): Add tag to 'i' field.
21017         * varasm.c (union rtx_const_un): Add tags to all fields.
21018         * gengtype.c (struct walk_type_data): New.
21019         (output_escaped_param): Take struct walk_type_data parameter.
21020         (write_gc_structure_fields): Delete.
21021         (walk_type): New.
21022         (write_gc_marker_routine_for_structure): Delete.
21023         (write_func_for_structure): New.
21024         (gc_mark_process_field): New.
21025         (gc_mark_func_name): New.
21026         (gc_counter): Delete.
21027         (write_gc_types): Use write_func_for_structure.
21028         (write_gc_roots): Use walk_type.
21029
21030         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
21031
21032         * ggc-common.c (ggc_mark_roots): Delete 'x'.
21033         (ggc_splay_dont_free): Fix warning about unused 'x'.
21034         (ggc_print_common_statistics): Remove warnings.
21035
21036         2002-10-01  Mike Stump  <mrs@apple.com>
21037
21038         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
21039         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
21040
21041         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
21042             Catherine Moore  <clm@redhat.com>
21043
21044         * Makefile (c-pch.o): Update dependencies.
21045         (LIBCPP_OBJS): Add cpppch.o.
21046         (cpppch.o): New.
21047         * c-common.c (c_common_init): Don't call pch_init here.
21048         * c-common.h (c_common_read_pch): Update prototype.
21049         * c-lex.c (c_common_parse_file): Call pch_init here.
21050         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
21051         (c_common_decode_option): Handle them.
21052         * c-pch.c: Include c-pragma.h.
21053         (save_asm_offset): Delete.
21054         (pch_init): Move contents of save_asm_offset into here, call
21055         cpp_save_state.
21056         (c_common_write_pch): Call cpp_write_pch.
21057         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
21058         cpp_valid_state.
21059         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
21060         * cppfiles.c (stack_include_file): Update for change to
21061         parameters of cb.read_pch.
21062         * cpphash.h (struct cpp_reader): Add `savedstate' field.
21063         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
21064         `restore_pch_deps' fields.
21065         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
21066         (cpp_save_state): Prototype.
21067         (cpp_write_pch): Prototype.
21068         (cpp_valid_state): Prototype.
21069         (cpp_read_state): Prototype.
21070         * cpppch.c: New file.
21071         * flags.h (version_flag): Remove prototype.
21072         * mkdeps.c (deps_save): New.
21073         (deps_restore): New.
21074         * mkdeps.h (deps_save): Prototype.
21075         (deps_restore): Prototype.
21076         * toplev.c (late_init_hook): Delete.
21077         (version_flag): Make static again.
21078         (compile_file): Don't call late_init_hook.
21079         * toplev.h (late_init_hook): Delete.
21080         * doc/cppopts.texi: Document -fpch-deps.
21081         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
21082
21083         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
21084
21085         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
21086         callers.
21087         (c_common_valid_pch): Rename from c_valid_pch, change callers.
21088         (c_common_read_pch): Rename from c_read_pch, change callers.
21089
21090         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
21091         a space between it and its argument.
21092
21093         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
21094
21095         * c-pch.c: New file.
21096         * toplev.h (late_init_hook): Declare.
21097         * toplev.c (late_init_hook): Define.
21098         (version_flag): Make globally visible.
21099         (compile_file): Call late_init_hook.
21100         (init_asm_output): Make output file seekable.
21101         * gcc.c (default_compilers): Update c-header rule.
21102         * flags.h (version_flag): Declare.
21103         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
21104         fields.
21105         * cppfiles.c (struct include_file): Add 'pch' field.
21106         (INCLUDE_PCH_P): New.
21107         (open_file_pch): New.
21108         (stack_include_file): Handle PCH files specially.
21109         (find_include_file): Call open_file_pch instead of open_file.
21110         (_cpp_read_file): Explain why open_file is used instead of
21111         open_file_pch.
21112         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
21113         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
21114         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
21115         in cpplib callbacks.
21116         * c-common.c (pch_file): Correct comment.
21117         (allow_pch): Define.
21118         (c_common_init): Call pch_init.
21119         * c-common.h (allow_pch): Declare.
21120         (pch_init): Declare.
21121         (c_valid_pch): Declare.
21122         (c_read_pch): Declare.
21123         (c_write_pch): Declare.
21124         * Makefile.in (c-pch.o): New.
21125         (C_AND_OBJC_OBJS): Add c-pch.o.
21126         * doc/invoke.texi (Precompiled Headers): Add index entries,
21127         complete truncated paragraph.
21128
21129         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
21130
21131         * c-common.c: (pch_file): Define.
21132         * c-common.h (pch_file): Declare.
21133         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
21134         (missing_arg): Require --output-pch= to have an argument.
21135         (c_common_decode_option): Handle --output-pch=.
21136         * gcc.c: Document new %V.
21137         (default_compilers): Handle compiling C header files.
21138         (do_spec_1): Implement %V.
21139         (main): Handle "gcc foo.h" without trying to run linker.
21140         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
21141         (Overall Options): Document what the driver does with header files,
21142         document new -x option possibilities.
21143         (Invoking G++): More documentation for PCH.
21144         (Precompiled Headers): New.
21145
21146         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
21147
21148         * ggc.h: Don't include varray.h.  Rearrange functions to be more
21149         organized.
21150         (ggc_add_root): Delete.
21151         (ggc_mark_rtx): Delete.
21152         (ggc_mark_tree): Delete.
21153         (struct ggc_statistics): Remove contents.
21154         * ggc-common.c: Remove unneeded includes.
21155         (struct ggc_root): Delete.
21156         (roots): Delete.
21157         (ggc_add_root): Delete.
21158         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
21159         (ggc_print_common_statistics): Remove most of the contents.
21160         * Makefile.in (GGC_H): No longer uses varray.h.
21161         (ggc-common.o): Update dependencies.
21162         (c-parse.o): Add varray.h to dependencies.
21163         (c-common.o): Add varray.h.
21164         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
21165         (mark_ident_hash): Rename to ggc_mark_stringpool.
21166         (init_stringpool): Don't use ggc_add_root.
21167         * c-parse.in: Include varray.h.
21168         * c-common.c: Include varray.h.
21169         * objc/Make-lang.in (objc-act.o): Add varray.h.
21170         * objc/objc-act.c: Include varray.h.
21171
21172         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
21173
21174         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
21175         (dw_cfi_oprnd1_desc): Likewise.
21176
21177         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
21178
21179         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
21180         move out of ifdef.
21181         (alpha_links): Use gengtype to mark; move out of ifdef.
21182         (mark_alpha_links_node): Delete.
21183         (mark_alpha_links): Delete.
21184         (alpha_need_linkage): Use GGC to allocate splay tree, struct
21185         alpha_links, strings.  Don't use ggc_add_root.
21186         * ggc-common.c (ggc_splay_alloc): New.
21187         (ggc_splay_dont_free): New.
21188         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
21189         (ggc_mark_tree): Likewise.
21190         (splay_tree_new_ggc): New.
21191         (ggc_splay_alloc): Declare.
21192         (ggc_splay_dont_free): Declare.
21193         * dwarf2asm.c: Include gt-dwarf2asm.h.
21194         (mark_indirect_pool_entry): Delete.
21195         (mark_indirect_pool): Delete.
21196         (indirect_pool): Use gengtype to mark.
21197         (dw2_force_const_mem): Don't use ggc_add_root.
21198         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
21199         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
21200         (gt-dwarf2asm.h): Depend on s-gtype.
21201
21202         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
21203
21204         * tree.h (union tree_type_symtab): Mark `die' field.
21205         * Makefile.in (dwarf2out.o): Update dependencies.
21206         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
21207         hash tables.
21208         (dw_cfi_oprnd1_desc): New function.
21209         (dw_cfi_oprnd2_desc): New function.
21210         (indirect_string_alloc): Delete.
21211         (debug_str_do_hash): New function.
21212         (debug_str_eq): New function.
21213         (mark_limbo_die_list): Delete.
21214         (dwarf2out_init): Don't call ggc_add_root.
21215
21216 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
21217
21218         The following changes are merged from itanium-sched-branch:
21219
21220         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
21221
21222         * doc/md.texi: Clarify assignment of units to automata description.
21223
21224         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
21225
21226         * genautomata.c (unit_decl): Remove members
21227         `the_same_automaton_unit' and
21228         `the_same_automaton_message_reported_p'.
21229         (process_unit_to_form_the_same_automaton_unit_lists,
21230         form_the_same_automaton_unit_lists_from_regexp,
21231         form_the_same_automaton_unit_lists, the_same_automaton_lists):
21232         Remove them.
21233         (annotation_message_reported_p): New global variable.
21234         (check_unit_distribution_in_reserv,
21235         check_regexp_units_distribution): New functions.
21236         (check_unit_distributions_to_automata): Rewrite it.
21237
21238         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
21239
21240         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
21241         Use continue instead of break if cycle is too big.
21242
21243         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
21244
21245         * genautomata.c (check_unit_distributions_to_automata): Output at
21246         most one message for a unit.
21247         (process_unit_to_form_the_same_automaton_unit_lists): Check
21248         automaton of units instead of units themself.
21249
21250         * doc/md.texi: Describe the constraint about assigning unit to
21251         automata.
21252
21253         2002-12-20  Jan Hubicka  <jH@suse.cz>
21254                     Vladimir Makarov  <vmakarov@redhat.com>
21255
21256         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
21257         and `in_set_p'.
21258         (gen_cpu_unit): Initialize the new members.
21259         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
21260         up `min_occ_cycle_num'.
21261         (evaluate_max_reserv_cycles): Change the function call.
21262         (CLEAR_BIT): New macro.
21263         (states_union, state_shift): Use the mask.
21264         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
21265         (form_reservs_matter): New function.
21266         (make_automaton): Call the function and use the mask.
21267         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
21268         account.
21269
21270         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
21271
21272         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
21273
21274         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
21275
21276         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
21277         for Itanium.
21278
21279         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
21280
21281         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
21282         default cpu.
21283
21284         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
21285                 2002-10-31  Dale Johannesen <dalej@apple.com>
21286
21287         * haifa-sched.c (find_set_reg_weight): New function.
21288         (find_insn_reg_weight): Use the new function.
21289         (schedule_block): Do sorting ready queue always
21290         after insn issue.
21291
21292         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
21293
21294         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
21295
21296         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
21297
21298         * haifa-sched.c (choice_entry): New structure.
21299         (choice_stack, cycle_issued_insns): New variables.
21300         (max_issue): Rewrite it.
21301         (choose_ready): Set up ready_try for unknown insns too.
21302         (schedule_block): Allocate and free choice_stack.  Set up
21303         and modify cycle_issued_insns.
21304
21305         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
21306         with and without filling the bundle.
21307         (bundling): Combine calls of issue_nops_and_insn.
21308
21309         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
21310
21311         * config/ia64/itanium1.md: New file.
21312
21313         * config/ia64/itanium2.md: New file.
21314
21315         * config/ia64/ia64.md: Move DFA descriptions into the new files.
21316         Remove the old pipeline description.
21317
21318         * config/ia64/ia64.c (ia64_override_options): Add aliases of
21319         itanium processor names.
21320
21321         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
21322
21323         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
21324         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
21325
21326         * config/ia64/ia64.md: Add descriptions for Itanium2.
21327
21328         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
21329
21330         * config/ia64/ia64.h (processor_type): New enumeration.
21331         (ia64_tune, ia64_tune_string): New external declarations.
21332         (TARGET_OPTIONS): Add option `tune='.
21333
21334         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
21335         variables.
21336         (ia64_override_options): Set up `ia64_tune'.
21337         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
21338         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
21339         (bundling): Add nops for MM-insns only for Itanium.
21340         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
21341         Itanium.
21342
21343         * config/ia64/ia64.md (cpu): New attribute.
21344         (DFA description): Enable it only for Itanium.
21345
21346         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
21347                     Richard Henderson  <rth@redhat.com>
21348
21349         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
21350         MASK_EARLY_STOP_BITS.
21351         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
21352         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
21353         `early-stop-bits'.
21354
21355         * config/ia64/ia64.c (ia64_dfa_new_cycle,
21356         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
21357         instead of TARGET_TUNE_STOP_BITS.
21358
21359         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
21360         `-mearly-stop-bits'.
21361
21362         * config/ia64/ia64.c (automata_option "v"): Comment it.
21363
21364         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
21365
21366         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
21367         New macros.
21368         (TARGET_SWITCHES): Add entries for the new option.
21369
21370         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
21371         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
21372         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
21373         global variables.
21374         (ia64_sched_reorder2): Set up `clocks'.
21375         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
21376         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
21377         queue when TARGET_TUNE_STOP_BITS.
21378         (bundling): Insert additional nops for MM-insns.
21379         (final_emit_insn_group_barriers): Add insertion of stop bits
21380         according `stops_p'.
21381         (ia64_reorg): Initiate the new varibales.
21382
21383         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
21384
21385         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
21386
21387         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
21388         insns at the end of block insn scheduling.
21389
21390         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
21391
21392         * sched-deps.c (remove_dependence, group_leader): Remove it.
21393         (add_dependence): Add dependence to group leader to.
21394         (set_sched_group_p): Add dependence to the first insn of the
21395         schedule group too.
21396         (sched_analyze_insn): Make dependence to jump as anti-dependence.
21397         Change true dependence by anti-dependence when
21398         `reg_pending_barrier'.
21399
21400         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
21401         add_branch_dependences): Ignore schedule groups.
21402
21403         * sched-ebb.c (init_ready_list): Ditto.
21404
21405         * (move_insn, set_priorities): Ditto.
21406
21407         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
21408         flag is clear after reload.
21409         (adjust_cost): Change cost only for output dependencies.
21410
21411         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
21412
21413         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
21414
21415         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
21416
21417         * target.h (gcc_target): Add member
21418         `dependencies_evaluation_hook'.
21419
21420         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
21421         macro.
21422         (TARGET_SCHED): Add initiatialization of the new member.
21423
21424         * sched-ebb.c: Include `target.h'.
21425         (schedule_ebb): Call `dependencies_evaluation_hook'.
21426
21427         * sched-rgn.c (schedule_region): Call
21428         `dependencies_evaluation_hook'.
21429
21430         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21431         New macro.
21432         (ia64_dependencies_evaluation_hook): New function.
21433
21434         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21435         Describe the new hook.
21436
21437         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
21438
21439         * target.h (gcc_target): Add members
21440         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
21441
21442         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
21443         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
21444         macros.
21445         (TARGET_SCHED): Add initiatialization of the new members.
21446
21447         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
21448         insn scheduling too.
21449         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
21450         initialize `ready_try'.
21451         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
21452         `dfa_new_cycle' says not to do it.
21453
21454         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
21455         bundling.
21456
21457         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
21458
21459         * config/ia64/ia64.c: Include `hashtab.h'.
21460         (ia64_first_cycle_multipass_dfa_lookahead_guard,
21461         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
21462         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
21463         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
21464         bundle_state_eq_p, insert_bundle_state,
21465         initiate_bundle_state_table, finish_bundle_state_table,
21466         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
21467         get_template, get_next_important_insn, bundling): New functions.
21468         (ia64_internal_sched_reorder): Remove it.
21469         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21470         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
21471         (ia64_safe_itanium_requires_unit0): Remove it.
21472         (group_barrier_needed_p): Place group barrier right before a real
21473         insn.
21474         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
21475         Remove them.
21476         (bundle_name): New variable.
21477         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
21478         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
21479         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
21480         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
21481         temp_dfa_state, prev_cycle_state): New global variables.
21482         (insn_matches_slot, maybe_rotate, finish_last_head,
21483         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
21484         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
21485         find_best_packet, itanium_reorder, dump_current_packet,
21486         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
21487         (sched_data, sched_ready, sched_types): Remove them.
21488         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
21489         `init_insn_group_barriers'.
21490         (ia64_sched_reorder, ia64_sched_reorder2): Call
21491         ia64_dfa_sched_reorder.
21492         (ia64_variable_issue): Rewrite it.
21493         (bundle_state): New structure.
21494         (index_to_bundle_states, bundle_states_num,
21495         allocated_bundle_states_chain, free_bundle_state_chain): New
21496         global variables.
21497         (ia64_sched_finish): Add stop bits and call `bundling' after the
21498         2nd insn scheduling.
21499         (ia64_use_dfa_pipeline_interface): Return zero always.
21500         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
21501         insn scheduling.
21502         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
21503         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
21504         (ia64_reorg): Add bundling insns.
21505
21506         * doc/tm.texi
21507         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21508         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
21509
21510         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
21511
21512         * config/ia64/ia64.md: Add Itanium1 DFA description.
21513         (itanium_class): Add `nop' and `pre_cycle'.  Add
21514         define_function_unit for `nop'.
21515         (nop): Change attribute `itanium_class'.
21516         (pre_cycle): New define_insn.
21517
21518         * config/ia64/ia64-protos.h (bundling_p): New external variable.
21519         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
21520         ia64_produce_address_p): New function prototypes.
21521
21522         * config/ia64/ia64.c (bundling_p): New global variable.
21523         (ia64_use_dfa_pipeline_interface,
21524         ia64_first_cycle_multipass_dfa_lookahead,
21525         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
21526         functions.
21527         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
21528         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
21529         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
21530         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
21531         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
21532         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
21533         (dfa_pre_cycle_insn): New variable.
21534
21535         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21536
21537         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
21538         constructions.
21539
21540         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
21541         New function prototypes.
21542
21543         * genattrtab.c (main): Process the new constructions.
21544
21545         * genautomata.c (gen_presence_absence_set,
21546         process_presence_absence_names, process_presence_absence_patterns,
21547         add_presence_absence, check_absence_pattern_sets): Add parameter
21548         `final_p'.
21549         (unit_decl): Add new members `final_presence_list' and
21550         `final_absence_list'.
21551         (unit_pattern_rel_decl): Add new member `final_p'.
21552         (gen_final_presence_set, gen_final_absence_set): New functions.
21553         (process_decls): Use member `final_p'.
21554         (temp_reserv): New global variable.
21555         (reserv_sets_are_intersected): Add processing `final_presence_set'
21556         and `final_absence_set'.
21557         (initiate_states): Allocate `temp_reserv'.
21558         (unit_final_presence_set_table, unit_final_absence_set_table): New
21559         gloabal variables.
21560         (initiate_presence_absence_pattern_sets): Initiate them.
21561         (NDFA_to_DFA): Fix typo.
21562         (output_description): Output `final_presence_set' and
21563         `final_absence_set'.
21564
21565         * doc/md.texi (final_presence_set, final_absence_set): Describe
21566         them.
21567
21568         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21569
21570         * genautomata.c (transform_3): Process a missing case (nothing on
21571         unit place).
21572
21573         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
21574
21575         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
21576         comments about queried units and the minimization.
21577
21578         * doc/md.texi: Ditto.
21579
21580         * genautomata.c (create_composed_state): Return nonzero if the new
21581         state has been created.
21582         (first_cycle_unit_presence): New function.
21583         (state_is_differed): Add new parameter.  Use the new function.
21584         Take queried units into account.
21585         (partition_equiv_class): Pass additional parameter to
21586         `state_is_differed'.
21587         (merge_states): Process composed states too.
21588         (build_automaton, create_automata, output_min_issue_delay_table,
21589         output_tables, output_statistics): Output more information.
21590         (output_reserved_units_table): Use function
21591         `first_cycle_unit_presence'.
21592         (output_tables): Output table of queried units even if the
21593         minimization is switched on.
21594         (write_automata): Output code for querying units even if the
21595         minimization is switched on.
21596
21597         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
21598
21599         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
21600         syntax of the constructions.
21601
21602         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
21603         extended syntax of the constructions.
21604
21605         * genautomata.c (unit_rel_decl): Rename it to
21606         `unit_pattern_rel_decl'.
21607         (pattern_set_el, pattern_reserv): New structures.
21608         (pattern_set_el_t, pattern_reserv_t): New types.
21609         (gen_presence_absence_set): New function.
21610         (process_presence_absence): Remove it.
21611         (process_presence_absence_names,
21612         process_presence_absence_patterns): New functions.
21613         (get_presence_absence_set): Remove it.
21614         (initiate_presence_absence_sets): Rename it on
21615         `initiate_presence_absence_pattern_sets'.  Use new function
21616         `form_reserv_sets_list'.
21617         (form_reserv_sets_list, check_presence_pattern_sets,
21618         check_absence_pattern_sets, output_pattern_set_el_list): New
21619         functions.
21620         (unit_decl): Change types of members `presence_list' and
21621         `absence_list'.
21622         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
21623         (decl): Change types of members `excl', `presence', and `absence'.
21624         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
21625         at the end of the vector.
21626         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
21627         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
21628         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
21629         (gen_presence_set, gen_absence_set): Use new function
21630         `gen_presence_absence_set'.
21631         (add_presence_absence): Process `pattern_list' instead of
21632         `source_list'.
21633         (process_decls): USe new functions
21634         `process_presence_absence_names' and
21635         `process_presence_absence_patterns'.
21636         (reserv_sets_are_intersected): Use new function
21637         `check_presence_pattern_sets'.
21638         (presence_set, absence_set): Remove them.
21639         (unit_presence_set_table, unit_absence_set_table): New global
21640         variables.
21641         (output_description): Use new function
21642         `output_pattern_set_el_list'.
21643         (generate): Use `initiate_presence_absence_pattern_sets'.
21644
21645         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
21646
21647         * genattr.c (main): Add output of prototype of new interface
21648         function `dfa_clean_insn_cache'.
21649
21650         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
21651         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
21652         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
21653         the generated code.
21654         (write_automata): Call the new function.
21655
21656 2003-01-09  Jan Hubicka  <jh@suse.cz>
21657
21658         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
21659         correctly.
21660
21661 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
21662
21663         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
21664
21665 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
21666
21667         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
21668         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
21669         (CONSTRAINT_LEN): Provide default definition.
21670         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21671         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
21672         (EXTRA_CONSTRAINT_STR): Likewise.
21673         (REG_CLASS_FROM_CONSTRAINT): Define.
21674         * genoutput.c (check_constraint_len, constraint_len): New functions.
21675         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
21676         constraint / modifier.
21677         (gen_insn): Call check_constraint_len.
21678         * local-alloc.c (block_alloc): Update to use new macros / pass
21679         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
21680         * ra-build.c (handle_asm_insn): Likewise.
21681         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21682         (constrain_operands, peep2_find_free_register): Likewise.
21683         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
21684         * regmove.c (find_matches): Likewise.
21685         * reload.c (push_secondary_reload, find_reloads): Likewise.
21686         (alternative_allows_memconst): Likewise.
21687         * reload1.c (maybe_fix_stack_asms): Likewise.
21688         (reload_cse_simplify_operands): Likewise.
21689         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21690         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
21691         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21692         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
21693         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
21694         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
21695
21696         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
21697
21698 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21699
21700         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
21701         length.
21702         (*extzv_1_r_h8300hs): Likewise.
21703         (*extzv_1_r_inv_h8300): Likewise.
21704         (*extzv_1_r_inv_h8300hs): Likewise.
21705
21706 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21707
21708         * config/h8300/h8300.h (PREDICATE_CODES): New.
21709
21710 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
21711
21712         * config/h8300/h8300.md (*addsi3_upper): New.
21713         (*iorsi3_shift): Likewise.
21714         (two splitters): Likewise.
21715         (*addsi3_shift): Likewise.
21716         (two splitters): Likewise.
21717
21718 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
21719
21720         * Makefile.in (optabs.o): Add dependency on basic-block.h.
21721         * basic-block.h (control_flow_insn_p): Fuction was exported.
21722         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
21723         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
21724         notes only when the region is contained in a single basic block.
21725
21726 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
21727
21728         PR inline-asm/8832
21729         * tree.h (expand_asm): New prototype.
21730         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
21731         to do so.
21732         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
21733         down to expand_asm.
21734         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
21735         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
21736         (volatile_refs_p) [ASM_INPUT]: Likewise.
21737         (side_effects_p) [ASM_INPUT]: Likewise.
21738
21739 2003-01-09  Jan Hubicka  <jh@suse.cz>
21740
21741         * i386.md (*mul*): FIx constraints; remove confused comment; fix
21742         athlon_decode attributes
21743         (imul/k8 optimization peep2s): New.
21744
21745         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
21746         * i386.md (type attribute): Add ssecomi.
21747         (unit, memory, prefix attributes): Handle ssecomi.
21748         (cvt?2? patterns): Fix athlon_decode attribute
21749         (comi patterns): Set attribute to ssecomi.
21750
21751         PR target/8343
21752         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
21753
21754 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
21755
21756         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
21757         that match register_operands.
21758         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
21759         register_operand the default case.
21760
21761 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
21762
21763         PR c/8032
21764         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
21765         an empty element, do not advance the pointer to unfilled
21766         fields if there are pending initializers.
21767
21768 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
21769
21770         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
21771         (install-gcc-tooldir, install-cpp, installdirs,
21772         install-common, install-driver, install-info, install-man,
21773         install-headers, install-include-dir, install-headers-tar,
21774         install-headers-cpio, install-headers-cp, install-mkheaders,
21775         install-collect2, uninstall): Prepend $(DESTDIR) to
21776         destination paths in all (un)installation commands.
21777         (install-driver): Rewrite $(LN) commands to support DESTDIR
21778         with "ln" as well as with "ln -s".
21779         (installdirs): Simply use mkinstalldirs.
21780         (install-libgcc, install-multilib): Also pass DESTDIR.
21781         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
21782         installation destination variable ldir.
21783         * config/alpha/t-osf4, config/arm/t-netbsd,
21784         config/ia64/t-hpux, config/mips/t-iris5-6,
21785         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
21786         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
21787         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
21788         in the definition of SHLIB_INSTALL.
21789         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
21790         $(libsubdir) in the installation commands.
21791
21792 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
21793
21794         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
21795         non-optimizing compile.
21796         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
21797         compile.
21798
21799 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
21800
21801         * config/i386/i386.c (ix86_attribute_table): Add new attributes
21802         ms_struct and gcc_struct.
21803         (ix86_handle_struct_attribute): New function.
21804         (ix86_ms_bitfield_layout_p): Update to take new attributes
21805         into account.
21806         * doc/extend.texi: Document new attributes.
21807         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
21808
21809 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
21810
21811         PR optimization/8750
21812         * config/i386/i386.c (ix86_expand_prologue): Don't allow
21813         scheduling pass to move insns across __alloca call.
21814
21815 2003-01-08  Dale Johannesen  <dalej@apple.com>
21816
21817         * config/rs6000/rs6000.md:  Replace *store_multiple_string
21818         with *stmsi[3-8].
21819
21820 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
21821
21822         PR target/9210
21823         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
21824         Set SYMBOL_REF_FLAG on local data sym_ref.
21825
21826 2003-01-08  Dale Johannesen  <dalej@apple.com>
21827
21828         * function.c (assign_parms):  Don't set pretend_args_size if
21829           REG_PARM_STACK_SPACE.
21830           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
21831           pretend_args_size.
21832
21833 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
21834
21835         * gcc.hlp: Delete.
21836
21837 2003-01-09  Jan Hubicka  <jh@suse.cz>
21838
21839         * i386.c  (ix86_expand_int_addcc): Fix thinko.
21840
21841 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
21842
21843         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
21844         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
21845         as hook_bool_tree_hwi_hwi_tree_true.
21846         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
21847         (rs6000_emit_epilogue): Same.
21848         (rs6000_output_mi_thunk): Re-implement as RTL.
21849         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
21850         xcoffout_declare_function if any debugging enabled.
21851
21852 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
21853
21854         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
21855         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
21856         * config/mips/mips.h (enum processor_type): Rename
21857         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
21858         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
21859         Add PROCESSOR_M4K.
21860         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
21861         (ISA_MIPS32R2): New define.
21862         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
21863         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
21864         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
21865         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
21866         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
21867         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
21868         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
21869         compiling MIPS16 code.
21870         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
21871         comment.
21872         (ISA_HAS_SEB_SEH): New define.
21873         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
21874         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
21875         processor_type value renaming.  Add support for MIPS32R2.
21876         Clean up comments, and move "sb1" entry with other MIPS64 CPU
21877         entries.
21878         (override_options): Reimplement -mipsN option handling so that
21879         it will work correctly for -mips32r2.  Avoid branch-likely
21880         instructions on MIPS32R2.
21881         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
21882         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
21883         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
21884         (extendhisi2_hw, extendqisi2_hw): New.
21885         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
21886         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
21887         MIPS32R2, and MIPS64.
21888         (LINK_SPEC): Pass -mips32r2 to linker.
21889         * config/mips/t-isa3264: Built -mips32r2 multilibs.
21890         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
21891         for mips32r2 in the -march description.  Alphabetically sort
21892         CPU names in the -march description.  Add long-missed -mips32
21893         and -mips64 to MIPS option summary.
21894
21895         * config.gcc: Update copyright years to include 2003.
21896         * config/mips/mips.c: Likewise.
21897         * config/mips/mips.h: Likewise.
21898         * config/mips/mips.md: Likewise.
21899         * config/mips/netbsd.h: Likewise.
21900         * doc/invoke.texi: Likewise.
21901
21902 2003-01-08  Andreas Schwab  <schwab@suse.de>
21903
21904         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
21905         variable.
21906         * configure: Regenerated.
21907
21908 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
21909
21910         * config/h8300/h8300.c (output_logical_op): Replace byte/word
21911         extraction of det with b0, b1, w0, w2, etc.
21912         (compute_logical_op_length): Likewise.
21913         (compute_logical_op_cc): Likewise.
21914
21915 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
21916
21917         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
21918         HIGH on all variants.
21919
21920 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21921
21922         * Makefile.in (PARTITION_H): New.
21923         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
21924         * basic-block.h: Include hard-reg-set.h.
21925
21926 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
21927
21928         * arm.h (ENABLE_XF_PATTERNS): Delete.
21929         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
21930         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
21931         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
21932         (cmpxf_trap): Delete.
21933         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
21934
21935 2003-01-08  Jan Hubicka  <jh@suse.cz>
21936
21937         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
21938         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
21939         (add??cc): New expanders.
21940         * i386.c (expand_int_addcc): New function.
21941         * i386-protos.h (expand_int_addcc): Declare.
21942
21943         * alias.c (memory_modified_1): New static function.
21944         (memory_modified): New static varaible.
21945         (memory_modified_in_insn_p): New global function.
21946         * rtl.h (memory_modified_in_insn_p): Declare.
21947         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
21948         references.
21949
21950         * expr.h (emit_conditional_add): Declare.
21951
21952 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
21953
21954         PR other/8947
21955         * doc/invoke.texi (-malign-double): Explain that the option breaks
21956         binary compatibility.
21957
21958 2003-01-08  Andreas Schwab  <schwab@suse.de>
21959
21960         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
21961         should come from the generic *-*-linux* entry.
21962
21963 2003-01-07  Jan Hubicka  <jh@suse.cz>
21964
21965         * cselib.c (cselib_current_insn_in_libcall): New static variable.
21966         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
21967         we are inside libcall.
21968         * cselib.h (elt_loc_list): Add in_libcall.
21969         * gcse.c (do_local_cprop): Do not copy propagate using insns
21970         in libcalls.
21971
21972 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
21973
21974         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
21975         not normally affect to issue rate.
21976
21977 2003-01-07  Jan Hubicka  <jh@suse.cz>
21978
21979         * genopinit.c (optabs): Add addc_optab.
21980         * ifcvt.c (noce_try_store_flag): Rename to ...
21981         (noce_try_addcc): ... this one; handle generic conditional increment.
21982         (noce_process_if_block): Update noce_try_addcc call.
21983         * optabs.c (emit_conditional_add): New.
21984         (init_obtabs): Initialize addc_optab.
21985         * optabs.h (optab_index): Add OTI_addcc.
21986         (addcc_optab): New macro.
21987         * md.texi: Document addMcc
21988
21989         PR target/8322
21990         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
21991         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21992         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21993
21994         * reload1.c (delete_output_reload): Avoid repeated attempts
21995         to delete insn.
21996
21997 2003-01-07  Andreas Schwab  <schwab@suse.de>
21998
21999         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
22000         Move --enable-initfini-array check ...
22001         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
22002         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
22003         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
22004         * configure: Rebuild.
22005
22006 2003-01-07  Richard Henderson  <rth@redhat.com>
22007
22008         * alias.c (find_base_value): Only use new_reg_base_value shortcut
22009         if the register is set once.
22010
22011 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
22012
22013         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
22014         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
22015         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
22016
22017 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
22018             Sunil Davasam  <sunil.k.davasam@intel.com>
22019
22020         PR libstdc++/9076
22021         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
22022         DW_CFA_same_value, read next and ignore.
22023
22024 2003-01-07  Richard Henderson  <rth@redhat.com>
22025
22026         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
22027
22028 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
22029
22030         * cfg.c: Include alloc-pool.h
22031         (edge_pool): New pool.
22032         (bb_pool): New pool.
22033         (first_deleted_edge): Remove.
22034         (first_deleted_block): Remove.
22035         (init_flow): Alloc/free the pools.
22036         (free_edge): Use pools.
22037         (alloc_block): Ditto.
22038         (expunge_block): Ditto.
22039         (cached_make_edge): Ditto.
22040
22041         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
22042
22043 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
22044
22045         * et-forest.c: Include alloc-pool.h.
22046         (struct et_forest): Add node_pool and occur_pool.
22047         (et_forest_create): Create the new pools.
22048         (et_forest_delete): Delete them.
22049         (et_forest_add_node): Allocate and free using pools.
22050         (et_forest_add_edge): Ditto.
22051         (et_forest_remove_node): Ditto.
22052         (et_forest_remove_edge): Ditto.
22053
22054         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
22055
22056 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
22057
22058         * config/h8300/h8300.c (output_logical_op): Simplify and
22059         optimize the handling of SImode.
22060         * config/h8300/h8300.c (compute_logical_op_length): Update
22061         accordingly.
22062         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
22063
22064 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
22065
22066         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
22067         big-endian correction to indirect arguments too.
22068
22069 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
22070
22071         Segher Boessenkool  <segher@koffie.nl>
22072
22073         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
22074         (alt_reg_names): Ditto, fix formatting.
22075         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
22076
22077 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
22078
22079         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
22080         (output_logical_op): Constify intval and det.
22081         (compute_logical_length): Likewise.
22082         (compute_logical_cc): Likewise.
22083         (output_a_shift): Constify mask.
22084         (h8300_encode_label): Constify len.
22085
22086 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
22087
22088         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
22089         (h8300_expand_epilogue): Likewise.
22090
22091 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
22092
22093         Segher Boessenkool  <segher@koffie.nl>
22094
22095         * config/rs6000/altivec.md: Remove spaces from assembler
22096         instruction argument lists.
22097
22098 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
22099
22100         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
22101         c4x_assembler_function_p.
22102         (c4x_null_epilogue_p): Complement return value, all uses updated.
22103         (c4x_insert_attributes): Add naked.
22104         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
22105         * doc/extend.texi: Update C4x function attributes.
22106
22107 2003-01-06  Richard Henderson  <rth@redhat.com>
22108
22109         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
22110         properly when changing "local-ness".
22111         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
22112
22113 2003-01-06  Dale Johannesen  <dalej@apple.com>
22114
22115         * config/darwin-protos.h:  Add prototypes for new section functions.
22116
22117 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
22118
22119         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
22120         to EABI.
22121
22122 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
22123
22124         * hwint.h: If the current compiler has no 64-bit type at all,
22125         make HOST_WIDEST_INT 32 bits.
22126
22127 2003-01-06  Eric Christopher  <echristo@redhat.com>
22128
22129         * config/mips/mips.md (movdf_internal2): Fix constraints.
22130
22131 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
22132
22133         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
22134
22135 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
22136
22137         * config/mips/mips.md (leadi): Use dla rather than la.
22138
22139 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
22140
22141         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
22142         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
22143
22144 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
22145
22146         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
22147         redefinition.
22148
22149 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
22150
22151         * config/h8300/h8300.md (*extzv_8_23): New.
22152
22153 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22154
22155         * pa64-hpux.h (JCR_SECTION_NAME): Define.
22156         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
22157         USE_EH_FRAME_REGISTRY when defining.
22158
22159 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
22160
22161         * config/h8300/h8300.c (output_a_shift): Do not output a
22162         variable shift.
22163         * config/h8300/h8300.md (two splitters): New.
22164
22165 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
22166
22167         * config/mips/mips.md: Disable the movstrsi define_split.
22168
22169 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22170
22171         * alloc-pool.c: Don't include "libiberty.h".
22172         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
22173         * convert.c (convert_to_real): Hide unused variable.
22174
22175 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22176
22177         * Makefile.in (gtyp-gen.h): Const-ify.
22178         * gcov-dump.c (tag_table): Likewise.
22179
22180 2003-01-04  Bruce Korb  <bkorb@gnu.org>
22181
22182         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
22183         of *both* the file name and the fix name.
22184
22185 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
22186
22187         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
22188         collect2.
22189         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
22190         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
22191         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
22192         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
22193         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
22194         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
22195         elfos.h.
22196         (EH_FRAME_IN_DATA_SECTION): Delete define.
22197         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
22198         (STARTFILE_SPEC): Use crtbegin.o.
22199         (ENDFILE_SPEC): Use crtend.o.
22200         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
22201         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
22202         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
22203         DTOR_LIST_BEGIN): Define.
22204         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
22205         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
22206         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
22207
22208 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
22209
22210         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
22211         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
22212         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
22213         Cleanup handling of replacement text.
22214         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
22215
22216 2003-01-04  Bruce Korb  <bkorb@gnu.org>
22217
22218         * fixinc/tests/base/math.h: removed obsolete results
22219         * fixinc/tests/base/stdlib.h: ditto
22220         * fixinc/tests/base/sys/param.h: ditto
22221         * fixinc/tests/base/sys/stat.h: ditto
22222         * fixinc/tests/base/time.h: ditto
22223         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
22224         * fixinc/tests/base/sys/byteorder.h: ditto
22225         * fixinc/inclhack.def: Remove superfluous backslashes
22226
22227 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
22228
22229         * config/h8300/h8300-protos.h: Add prototypes for
22230         the new functions defined below.
22231         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
22232         define.
22233         (dosize): Emit RTL instead of assembly code.
22234         (push): Likewise.
22235         (pop): Likewise.
22236         (h8300_output_function_prologue): Remove.
22237         (h8300_expand_prologue): New.
22238         (h8300_expand_epilogue): New.
22239         (h8300_output_function_epilogue): Do only the reset of
22240         pragma_saveall.
22241         * config/h8300/h8300.md (push_h8300): New.
22242         (push_h8300hs): Likewise.
22243         (pop_h8300): Likewise.
22244         (pop_h8300hs): Likewise.
22245         (*stm_h8300s_2): Change the name to stm_h8300s_2.
22246         (*stm_h8300s_3): Change the name to stm_h8300s_3.
22247         (*stm_h8300s_4): Change the name to stm_h8300s_4.
22248         (*ldm_h8300s_2): New.
22249         (*ldm_h8300s_3): Likewise.
22250         (*ldm_h8300s_4): Likewise.
22251         (return): Likewise.
22252         (*return_1): Likewise.
22253         (prologue): Likewise.
22254         (epilogue): Likewise.
22255         (monitor_prologue): Likewise.
22256
22257 2003-01-03  Dale Johannesen  <dalej@apple.com>
22258
22259         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
22260           machopic_picsymbol_stub1.
22261           (EXTRA_SECTION_FUNCTIONS):  Ditto.
22262         * rs6000/rs6000.c:  Update copyright.
22263           (machopic_output_stub):  Use them.  Remove an insn from stub code.
22264
22265 2003-01-02  Jason Merrill  <jason@redhat.com>
22266
22267         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
22268
22269         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
22270         static/external decls.
22271
22272         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
22273         outermost scope.
22274         * c-decl.c (c_make_fname_decl): Push the decls there, too.
22275
22276 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
22277
22278         * config/h8300/h8300-protos.h: Add a prototype for
22279         h8300_current_function_interrupt_function_p.
22280         * config/h8300/h8300.c (interrupt_handler): Remove.
22281         (os_task): Likewise.
22282         (monitor): Likewise.
22283         (pragma_interrupt): New.
22284         (WORD_REG_USED): Use
22285         h8300_current_function_interrupt_function_p.
22286         (dosize): Likewise.
22287         (h8300_output_function_prologue): Likewise.
22288         Do not set interrupt_handler, os_task, monitor.
22289         (h8300_output_function_prologue): Use
22290         h8300_current_function_interrupt_function_p.
22291         Do not set interrupt_handler, os_task, monitor.
22292         (h8300_current_function_interrupt_function_p): New.
22293         (h8300_pr_interrupt): Set pragma_interrupt.
22294         (h8300_insert_attributes): Reset pragma_interrupt.
22295
22296 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
22297
22298         * doc/install.texi (Configuration): Fix markup for reference to
22299         gcc/config.gcc.
22300
22301 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
22302
22303         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
22304         (*iorhi3_two_qi): Likewise.
22305         (*iorsi3_zexthi): Likewise.
22306         (*xorhi3_zextqi): Likewise.
22307         (*xorsi3_zexthi): Likewise.
22308         (*xorsi3_zextqi): Likewise.
22309
22310 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
22311
22312         * config/h8300/h8300.c (stack_pointer_operand): New.
22313         (const_int_gt_2_operand): Likewise.
22314         (const_int_ge_8_operand): Likewise.
22315         * config/h8300/h8300.md (a splitter): Likewise.
22316         (a peephole2): Likewise.
22317         * config/h8300/h8300-protos.h: Add prototypes for the new
22318         functions above.
22319
22320 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
22321
22322         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
22323         objc/objc-act.h: Fix copyright years.
22324
22325 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
22326
22327         * doc/passes.texi: Fix documentation for -fssa-ccp
22328
22329 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
22330
22331         * gccbug.in: Update for new categories.
22332
22333 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22334
22335         * config/h8300/h8300.md: Reorder some patterns.
22336
22337 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22338
22339         * config/h8300/h8300.c (output_logical_op): Fix a warning.
22340
22341 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
22342
22343         * config/darwin-protos.h, config/c4x/c4x-protos.h,
22344         config/cris/cris-protos.h, config/i370/i370-protos.h,
22345         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
22346         config/v850/v850-protos.h: Use struct, and don't conditionally
22347         compile on GCC_C_PRAGMA_H.
22348
22349 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22350
22351         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
22352         * config/h8300/h8300-protos.h: Likewise.
22353         * config/sh/sh-protos.h: Likewise.
22354
22355 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22356
22357         * config/arm/arm-protos.h: Use struct cpp_reader instead of
22358         cpp_reader.
22359         * config/h8300/h8300-protos.h: Likewise.
22360         * config/sh/sh-protos.h: Likewise.
22361
22362 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
22363
22364         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
22365         arm_pr_long_calls_off): Use struct.
22366         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
22367         : Similarly.
22368         Don't include cpplib.h.
22369         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
22370         sh_pr_nosave_low_regs): Similarly.
22371
22372 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
22373
22374         * config/h8300/h8300.c: Include cpplib.h.
22375
22376 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
22377
22378         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
22379           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
22380           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
22381           "GCC" in the copyright header.
22382
22383 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
22384
22385         * c-pragma.c (c_register_pragma): New.
22386         (init_pragma): Use it.
22387         * c-pragma.h (cpp_register_pragma): Don't declare.
22388         (c_register_pragma): New.
22389         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
22390         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
22391         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
22392         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
22393         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
22394         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
22395         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
22396         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
22397         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
22398         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
22399         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
22400         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
22401
22402 See ChangeLog.8 for earlier changes.