7cee7ea35a1e80e4cf31cdeb487ae8cf0d7cc1b5
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2003-05-29  Roger Sayle  <roger@eyesopen.com>
2
3         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
4
5 2003-05-29  Roger Sayle  <roger@eyesopen.com>
6             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
7
8         PR bootstrap/10169
9         * mips-tfile.c (main): Use getopt_long instead of getopt.
10         Add new command line option --version to display version.
11         Treat --verbose like -v to report a single line version.
12         (options): New global variable for getopt_long.
13         * mips-tdump.c (main): Use getopt_long instead of getopt.
14         New command line options -v, --version and -verbose to display
15         the program version number (to match mips-tfile's behavior).
16         (options): New global variable for getopt_long.
17
18         * gcov.c (options): Zero-terminate getopt_long array.
19         * gcov-dump.c (options): Likewise.
20
21         * Makefile.in (mips-tdump.o): Add dependency on version.h.
22
23 2003-05-29  Stan Shebs  <shebs@apple.com>
24
25         Remove OBJC_PROLOGUE everywhere.
26         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
27         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
28         * config/d30v/d30v.h: Similarly.
29         * config/ip2k/ip2k.h: Similarly.
30         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
31
32 2003-05-29  Roger Sayle  <roger@eyesopen.com>
33
34         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
35         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
36         (expand_unreachable_stmt): Expand unreachable while statements
37         using genrtl_do_stmt_1.
38
39 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
40
41         * config/mips/mips-protos.h (mips_output_load_label): Declare.
42         * config/mips/mips.c (mips_output_load_label): New function.
43         (mips_output_conditional_branch): Use it.
44         * config/mips/mips.md (jump): And here.
45
46 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
47
48         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
49         (xtensa_split_operand_pair): New proto.
50         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
51         (smalloffset_double_mem_p): Delete.
52         (gen_float_relational, printx, print_operand, xtensa_va_arg):
53         Fix whitespace.
54         (xtensa_split_operand_pair): New.
55         (xtensa_dbx_register_number): Fix formatting.
56         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
57         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
58         instead of splitting them into single-word moves.  Remove unnecessary
59         checks for reload_in_progress and reload_completed.
60         (movdi_internal, movdf_internal): Change to post-reload split patterns.
61         Add constraints to allow constant operands.
62         (movsf_internal): Allow CONST_INT operands.
63
64 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
65
66         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
67         fragment i386/x-mingw32.
68         * config/i386/x-mingw32: New file. Make local_includedir
69         relative to EXEC_PREFIX.
70
71 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
72
73         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
74         (MD_STARTFILE_PREFIX): Define.
75
76 2003-05-27  Denis Chertykov  <denisc@overta.ru>
77
78         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
79         VOIDmode.
80         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
81         call of cselib_invalidate_regno.
82
83 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
84
85         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
86         -lthread to -lpthread.
87
88 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
89             Bruce Korb  <bkorb@gnu.org>
90             Arno Klaassen  <arno@heho.snv.jussieu.fr>
91
92         * fixinc/inclhack.def: Add missing declaration of getpagesize()
93         to unistd.h on Solaris 2.5.1.
94         Fix prototype of recv() and send() in sys/socket.h on
95         Solaris 2.5.1 and 2.6.
96         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
97         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
98         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
99         * fixinc/fixincl.x: Regenerate.
100
101 2003-05-27  Jason Merrill  <jason@redhat.com>
102
103         * tree.c (expr_first, expr_length): New fns.
104         * tree.h: Declare them.
105
106         * tree.c (iterative_hash_expr): Hash commutative expressions
107         consistently.
108
109 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
110
111         * tree.h (contains_placeholder_p): Now returns bool.
112         (CONTAINS_PLACEHOLDER_P): New macro.
113         (type_contains_placeholder_p): New function.
114         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
115         (contains_placeholder_p): Now returns bool.
116         Rework to use CONTAINS_PLACEHOLDER_P macro.
117         (type_contains_placeholder_p): New function.
118         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
119         type_contains_placeholder_p.
120         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold): 
121         Use CONTAINS_PLACEHOLDER_P macro.
122         * builtins.c (fold_builtin): Likewise.
123         * calls.c (initialize_argument_information): Likewise.
124         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
125         * explow.c (expr_size): Likewise.
126         * expr.c (store_constructor, get_inner_reference): Likewise.
127         * function.c (assign_parms): Likewise.
128         * stor-layout.c (variable_size): Likewise.
129
130 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
131
132         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
133         attribute.  
134
135 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
136
137         * doc/contrib.texi (Contributors): Update Kean Johnston.
138
139 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
140
141         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
142
143 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
144
145         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
146         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
147         Replace "GNU CC" with "GCC".
148
149 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
150
151         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
152         intermediate computation.
153
154 2003-05-23  Eric Christopher  <echristo@redhat.com>
155
156         * config/mips/mips.md (clzsi, clzdi): New patterns.
157
158 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
159
160         * gcc.c (default_compilers): Use -o to specify preprocessor's output
161         file.  Make -no-integrated-cpp work when building PCH files.
162         * objc/lang-specs.h: Likewise.
163
164 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
165
166         * fixinc/Makefile.in: Correct description.
167         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
168         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
169         fixinc/genfixes: Replace "GNU CC" with "GCC".
170
171 2003-05-23  Roger Sayle  <roger@eyesopen.com>
172
173         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
174         builtin functions (and their __builtin_* variants).
175         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
176         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
177         optimizing.
178
179         * doc/extend.texi: Document new tan and atan builtins, and
180         their float and long double variants.
181
182 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
183
184         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
185         __sparcv9 in the TARGET_ARCH64 case.
186
187 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
188
189         * i386.c (ix86_reorg): Calls are also jumps.
190
191 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
192
193         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
194         note containing an EXPR_LIST, process all the arguments.
195
196 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
197                                Andreas Jaeger  <aj@suse.de>
198
199         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
200         do not use assertion.
201
202 2003-05-23  Mike Stump  <mrs@apple.com>
203
204         * tlink.c (scan_linker_output): Add support for darwin linker, as it
205         emits unresolved symbols one per line, consuming the entire line.
206
207 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
208             Zack Weinberg <zack@codesourcery.com>
209
210         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
211         * config/m68k/m68k.c (m68k_output_function_prologue):
212         Remove code under #if NEED_PROBE.
213         * config/m68k/m68k.h: Don't define NEED_PROBE.
214         * config/m68k/m68k.md: Remove "probe" insn.
215         * doc/md.texi: Remove documentation of "probe" pattern.
216
217 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
218
219         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
220
221 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
222
223         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
224         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
225
226 2003-05-22  Roger Sayle  <roger@eyesopen.com>
227
228         * real.c (real_maxval): New function to return the largest finite
229         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
230         * real.h (real_maxval): Prototype here.
231         * fold-const.c (fold_inf_compare): Transform comparisons against
232         +-Infinity into comparisons against DBL_MAX (or equivalent).
233
234 2003-05-22  Mike Stump  <mrs@apple.com>
235
236         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
237         default.
238
239 2003-05-22  DJ Delorie  <dj@redhat.com>
240
241         * calls.c (expand_call): If the arg block is going to grow
242         downward, we need argblock to point to the top of the block,
243         not the bottom.
244
245 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
246
247         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
248
249         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
250         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
251
252 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
253
254         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
255         * m68k.c: Likewise.
256         * m68k.h: Likewise.
257
258 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
259
260         PR other/2873
261         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
262         expressions to prevent triggering on recent curses.h,
263         linux/nls.h, or X11/Xlib.h.
264         (stdio_va_list): Add _G_va_list to bypass pattern.
265         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
266         * fixinc/fixincl.x: Regenerate.
267
268 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
269
270         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
271         switches when --target-help option is specified.
272
273 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
274
275         PR bootstrap/10805
276         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
277         failure with Sun assembler 5.0 Alpha 03/27/98.
278
279 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
280
281         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
282         to match system compiler convention.
283
284 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
285
286         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero
287         value, not just if defined.
288         Update copyright year.
289
290 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
291
292         PR target/6428
293         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
294         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
295         option is used without `-static'.
296         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
297         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
298
299 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
300
301         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
302         TARGET_SERIALIZE_VOLATILE): Delete.
303         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
304         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
305         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
306         "-mno-serialize-volatile".
307         * config/xtensa/xtensa.c (print_operand): Remove checks of
308         TARGET_SERIALIZE_VOLATILE.
309         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
310         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
311         "-mserialize-volatile" and "-mno-serialize-volatile" options.
312
313 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
314
315         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
316         (nested_function): Likewise.
317         (notype_nested_function): Likewise.
318
319 2003-05-21  Nick Clifton  <nickc@redhat.com>
320
321         * config/stormy16/stormy-abi: Update overflow type for
322         R_XSTORMY16_16 reloc.
323
324 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
325
326         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
327         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
328         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
329         * print-tree.c (print_node): Remove ambient-boundedness.
330         * tree.h (tree_common): Remove bounded_flag.
331         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
332         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
333         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
334         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
335         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
336         Remove.
337         (TYPE_QUALS): Remove BOUNDED.
338         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
339         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
340         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
341         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
342         VA_LIST_POINTER_DEPTH): Remove.
343         (struct tree_type): Remove pointer_depth.
344
345 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
346
347         * c-pretty-print.c (pp_c_integer_literal): Use
348         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
349
350 2003-05-20  Roger Sayle  <roger@eyesopen.com>
351             Kazu Hirata  <kazu@cs.umass.edu>
352             Joern Rennecke  <joern.rennecke@superh.com>
353
354         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
355         setcc and jump, if they exist.  If substituted instruction
356         fails to validate, store current effort in a REG_EQUAL note.
357         (cprop_insn): Don't attempt further substitutions if the
358         current instruction has been deleted.
359         (local_cprop_pass): Likewise.
360
361         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
362         one is attached to the jump instruction.
363         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
364
365 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
366
367         PR c++/9738
368         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
369         even if not first.
370
371 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
372
373         * genautomata.c (output_description, output_automaton_units,
374         output_state_arcs): Add missing specifiers.
375
376 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
377
378         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
379         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
380         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
381         (nsau): Rename to do_nsau.  Provide alternate version for use when
382         the NSAU instruction is available.
383         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
384         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
385         * config/xtensa/xtensa-config.h: Update comments to match binutils.
386         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
387         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
388         (TARGET_ABS, TARGET_ADDX): Define.
389         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
390         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
391         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
392         *subx8): Set predicate condition to TARGET_ADDX.
393         (abssi2): Set predicate condition to TARGET_ABS.
394         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
395         "-maddx", and "-mno-addx" options.
396         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
397
398 2003-05-20  Kevin Ryde <user42@zip.com.au>
399             Wolfgang Bangerth <bangerth@dealii.org>
400
401         PR/10355
402         * doc/extend.texi: Put a warning into the documentation
403         of attribute regparm.
404
405 2003-05-20  Jason Merrill  <jason@redhat.com>
406
407         * tree.c (expr_last): New fn.
408         * tree.h: Declare it.
409         * objc/objc-act (expr_last): Rename to objc_expr_last.
410
411 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
412
413         * sh.c (sh_register_move_cost): Add clase for moving between
414         FP registers and MAC registers.
415
416 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
417
418         * pa/milli64.S ($$mulI): Fix typo.
419
420 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
421
422         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
423         (nonlocal_set_p): Remove initial blank line.
424         * dwarf2out.c (simple_type_size_in_bits): Likewise.
425         * et-forest.c (et_forest_create): Likewise.
426         * explow.c (stabilize): Likewise.
427         * fix-header.c (write_lbrac): Likewise.
428         * graph.c (start_fct, node_data): Likewise.
429         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
430         * rtlanal.c (global_reg_mentioned_p): Likewise.
431         * tree.c (bit_position): Likewise.
432
433 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
434
435         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
436         -lthread to -lpthread.
437
438 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
439
440         * c-opts.c (c_common_decode_option): Don't accept dollars
441         as identifier characters in assembly.
442         * doc/cpp.texi: Document this.
443
444 2003-05-19  Seth Arnold  <sarnold@wirex.com>
445             Aldy Hernandez  <aldyh@redhat.com>
446
447         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
448         vrsave_size twice.
449
450 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
451
452         * doc/tm.texi (function_arg): Fix typo.
453
454 2003-05-19  Matt Austern  <austern@apple.com>
455
456         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
457         * c-common.h (warn_invalid_offsetof): Declare.
458         * c-common.c (warn_invalid_offsetof): Define.
459         * doc/invoke.texi: Document -Winvalid-offsetof.
460         * testsuite/g++.dg/other/offsetof3.C: New.
461         * testsuite/g++.dg/other/offsetof4.C: New.
462
463 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
464             David Edelsohn  <edelsohn@gnu.org>
465
466         * config/rs6000/rs6000.c (rs6000_alignment_string,
467         rs6000_alignment_flags): New variables.
468         (rs6000_parse_alignment_option): New function.
469         (rs6000_override_options): Call it.
470         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
471         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
472         macros.
473         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
474         natural alignment if TARGET_NATURAL_ALIGNMENT
475         (ROUND_TYPE_ALIGN): Always use default record alignment if
476         TAGET_NATURAL_ALIGNMENT.
477         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
478         (ROUND_TYPE_ALIGN): Same.
479         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
480         (ROUND_TYPE_ALIGN): Same.
481         * doc/invoke.texi (Option Summary, PowerPC Options): Document
482         new options.
483
484 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
485
486         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
487         of a function using ASMSPEC, prepend a star.
488
489 2003-05-19  Jason Merrill  <jason@redhat.com>
490
491         * tree-inline.c (copy_body_r): Avoid generating &* during inline
492         substitution.
493
494 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
495
496         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
497         not mark assignments to the hard frame pointer as being stack
498         frame related.
499         (xstormy16_expand_epilogue): Mark adjustments to the stack
500         pointer as being stack frame related.
501
502 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
503
504         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
505         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
506         (PREDICATE_CODES): Add hilo_operand.
507         * config/mips/mips.c (hilo_operand): New predicate.
508         (mips_adjust_insn_length): Account for the number nops that might
509         be needed to avoid hardware hazards.
510         * config/mips/mips.md (dslot): Remove attribute.
511         (hazard): New attribute.
512         (can_delay): Use it.  Check for calls, branches & jumps.
513         (muldi3): Use the standard dmult pattern for mips16 code.
514         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
515
516 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
517
518         * config/mips/mips-protos.h (final_prescan_insn,
519         mips_count_memory_refs, mips_fill_delay_slot): Remove.
520         * config/mips/mips.h (delay_type, dslots_load_total,
521         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
522         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
523         mips_load_reg3, mips_load_reg4): Remove.
524         (MASK_STATS): Remove.
525         (MASK_EXPLICIT_RELOCS): Reuse its value.
526         (TARGET_STATS): Remove.
527         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
528         Warn that -mstats is now ignored.
529         (FINAL_PRESCAN_INSN): Undefine.
530         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
531         (ASM_OUTPUT_REG_POP): Likewise.
532         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
533         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
534         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
535         mips_fill_delay_slot, mips_count_memory_refs,
536         final_prescan_insn): Remove.
537         (output_block_move): Remove calls to mips_count_memory_refs.
538         (print_operand): Remove printing of #nop for TARGET_STATS.
539         (mips_output_function_epilogue): Remove TARGET_STATS code.
540         Reorganize setting of fnnmae.
541         * config/mips/mips.md: Remove handling of dslot statistics
542         throughout file.  Change all fcmp patterns into normal asm
543         templates, removing calls to mips_fill_delay_slot.
544         * doc/invoke.texi: Remove documentation of -mstats.
545
546 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
547
548         * config/mips/mips.c (mips_class_max_nregs): Return the number of
549         words in the mode.
550
551 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
552
553         * config/mips/mips.c (override_options): Disable explicit
554         relocs for old ABIs unless using gas.
555
556 2003-05-18  Eric Christopher  <echristo@redhat.com>
557
558         * config/mips/mips.h: Remove definition of g_switch_value.
559
560 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
561
562         * flags.h (g_switch_value): Change to an unsigned
563         HOST_WIDE_INT.
564         * toplev.c (g_switch_value): Likewise.
565
566         * config/alpha/alpha.c (small_symbolic_operand): Remove
567         g_switch_value cast.
568         (alpha_in_small_data_p): Cast size to an unsigned
569         HOST_WIDE_INT.
570
571         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
572         unsigned HOST_WIDE_INT.
573         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
574         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
575
576         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
577         unsigned HOST_WIDE_INT.
578         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
579         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
580         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
581
582         * config/rs6000/rs6000.c (rs6000_file_start): Use
583         HOST_WIDE_INT_PRINT_UNSIGNED.
584         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
585         (rs6000_elf_in_small_data_p): Cast size to unsigned
586         HOST_WIDE_INT.
587         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
588         Remove.
589         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
590         g_switch_set.
591         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
592         g_switch_value cast.
593
594 2003-05-18  Roger Sayle  <roger@eyesopen.com>
595             Zack Weinberg  <zack@codesourcery.com>
596
597         PR middle-end/10472
598         * builtins.c (expand_builtin_memcpy):  Call force_operand on
599         expressions and use simplify_gen_binary to create the addition.
600
601 2003-05-18  Andreas Schwab  <schwab@suse.de>
602
603         * config/m68k/m68k.md: Use define_constants for unspec numbers.
604
605 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
606
607         * config/sparc/sparc.h: Define sparc for now.
608 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
609
610         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
611
612         * config/stormy16/stormy16.h: Remove about 3000 lines of
613         target-independent comments.  Update copyright notice.
614
615         * doc/collect2.texi: GNU CC -> GCC.
616         * doc/headerdirs.texi: GNU CC -> GCC.
617
618 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
619
620         * hashtable.h (struct ht_identifier): Add data member "hash_value".
621         * hashtable.c (ht_lookup): Use it when searching, remember.
622         (ht_expand): Do not recompute.
623         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
624
625 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
626
627         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
628
629 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
630
631         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
632         Default here.
633         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
634         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
635         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
636         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
637         config/arm/linux-elf.h, config/arm/rtems-elf.h,
638         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
639         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
640         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
641         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
642         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
643         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
644         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
645         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
646         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
647         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
648         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
649         Don't define __ELF__.
650         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
651         Define __ELF__.
652         * doc/cpp.texi: Document __ELF__.
653         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
654
655 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
656
657         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
658         always use stdarg.
659         * c-errors.c (pedwarn_c99): Likewise.
660         * c-format.c (status_warning): Likewise.
661         * c-semantics.c (build_stmt): Likewise.
662         * calls.c (emit_library_call, emit_library_call_value): Likewise.
663         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
664         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
665         * diagnostic.c (build_message_string, output_printf,
666         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
667         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
668         error_with_decl, fnotice): Likewise.
669         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
670         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
671         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
672         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
673         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
674         dw2_asm_output_encoded_addr_rtx): Likewise.
675         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
676         * errors.c (warning, error, fatal, internal_error): Likewise.
677         * final.c (output_operand_lossage, asm_fprintf): Likewise.
678         * fix-header.c (fatal): Likewise.
679         * gcc.c (fatal, error, notice): Likewise.
680         * gcov.c (fnotice): Likewise.
681         * genattrtab.c (attr_rtx, attr_printf): Likewise.
682         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
683         * gensupport.c (message_with_line): Likewise.
684         * mips-tfile.c (fatal, error): Likewise.
685         * protoize.c (notice): Likewise.
686         * ra-debug.c (ra_debug_msg): Likewise.
687         * read-rtl.c (fatal_with_file_and_line): Likewise.
688         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
689         * tree.c (build, build_nt, build_function_type_list): Likewise.
690
691 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
692
693         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
694         * gcc.c (cpp_predefines): Remove.
695         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
696         (static_specs): Remove predefines.
697         * system.h: Poison CPP_PREDEFINES.
698         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
699         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
700
701 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
702
703         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
704         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
705         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
706         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
707
708 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
709
710         PR c/9209
711         * c-common.c, c-common.h (dollars_in_ident): Remove.
712         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
713         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
714         * cpphash.h (warned_dollar): Rename warn_dollars.
715         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
716         Permit dollars regardless of -std=.
717         (post_options): Set warn_dollars.
718         * cpplex.c (forms_identifier_p): Use warn_dollars.
719         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
720         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
721         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
722         Update documentation.
723
724 2003-05-17  Andreas Schwab  <schwab@suse.de>
725
726         * config/m68k/m68k.c (m68k_output_function_prologue): Use
727         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
728         formatting a HOST_WIDE_INT.
729         (m68k_output_function_epilogue): Likewise.
730
731 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
732
733         * doc/install.texi: Remove information about desupported targets.
734
735 2003-05-17  Andreas Schwab  <schwab@suse.de>
736
737         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
738         * config/m68k/linux.h: Likewise.
739         * config/m68k/m68k-none.h: Likewise.
740         * config/m68k/netbsd-elf.h: Likewise.
741         * config/m68k/sgs.h: Likewise.
742         * config/m68k/m68k.h: Likewise.
743         * config/m68k/m68k.md: Likewise.
744         * config/m68k/m68k.c: Likewise.
745         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
746         constraints.
747         * doc/invoke.texi (Option Summary): Remove -mfpa.
748         (M680x0 Options): Likewise.
749
750 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
751
752         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
753
754 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
755
756         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
757         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
758         config/sparc/rtemself.h, config/sparc/sol2-64.h,
759         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
760         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
761
762 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
763
764         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
765         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
766
767 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
768
769         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
770         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
771         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
772         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
773         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
774         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
775         sparc/sysv4.h,
776         * sparc/sysv4-only.h: New.
777
778 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
779
780         * function.c (assign_parms): Check for zero size args.
781
782 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
783
784         * cfgloopanal.c (test_for_iteration): Use string concatentation on
785         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
786         function calls into one.
787         * dbxout.c (dbxout_symbol): Likewise.
788         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
789         * dwarf2asm.c (dw2_asm_output_data_uleb128,
790         dw2_asm_output_data_sleb128): Likewise.
791         * genrecog.c (debug_decision_2): Likewise.
792         * loop.c (emit_prefetch_instructions): Likewise.
793         * print-rtl.c (print_rtx): Likewise.
794         * print-tree.c (print_node_brief, print_node): Likewise.
795         * ra-debug.c (dump_igraph, dump_graph_cost,
796         dump_static_insn_cost): Likewise.
797         * ra-rewrite.c (dump_cost): Likewise.
798         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
799         * sreal.c (dump_sreal): Likewise.
800         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
801         * varasm.c (assemble_vtable_entry): Likewise.
802
803         * avr.c (avr_output_function_prologue,
804         avr_output_function_epilogue, print_operand): Fix format specifier
805         warnings.
806         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
807         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
808
809 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
810
811         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
812         and ! TARGET_STRING cases.
813
814         * doc/cppopts.texi (-undef): Fix texinfo warning.
815
816         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
817         * cppfiles.c (validate_pch): When -H is used, print some information
818         about PCH files found.
819
820 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
821
822         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
823         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
824         * config/mips/t-sr71k: Likewise.
825
826 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
827
828         * arc.c (arc_output_function_prologue,
829         arc_output_function_epilogue): Fix format specifier warnings.
830         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
831
832         * v850.c (print_operand): Fix format specifier warnings.
833
834         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
835         specifier warnings.
836
837         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
838         format specifier warnings.
839
840         * ip2k.c (function_prologue, function_epilogue, print_operand):
841         Fix format specifier warnings.
842         * ip2k.md: Likewise.
843
844         * i960.c (i960_output_function_prologue, i960_print_operand,
845         i960_print_operand_addr): Fix format specifier warnings.
846
847         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
848         (i370_output_function_prologue): Fix format specifier warnings.
849         * i370.h (PRINT_OPERAND): Likewise.
850
851         * fr30.c (fr30_print_operand): Fix format specifier warnings.
852
853         * dsp16xx.c (print_operand_address): Fix format specifier warning.
854         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
855
856         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
857         specifier warnings.
858
859         * alpha.c (print_operand_address, alpha_start_function,
860         unicosmk_output_ssib): Use string concatentation on
861         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
862         function calls into one.
863         * arm.c (arm_print_operand): Likewise.
864         * cris.c (cris_asm_output_mi_thunk): Likewise.
865         * frv.c (frv_asm_output_mi_thunk): Likewise.
866         * ia64.c (ia64_print_operand, process_set): Likewise.
867         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
868         Likewise.
869         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
870         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
871         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
872         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
873         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
874         * s390.c (s390_assemble_integer): Likewise.
875         * sparc.c (sparc_flat_function_prologue,
876         sparc_flat_function_epilogue): Likewise.
877         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
878         * vax.c (vax_output_mi_thunk): Likewise.
879
880         * frv.c (frv_print_operand_memory_reference): Fix format specifier
881         warning.
882         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
883
884         * m68k.c (m68k_output_function_epilogue): Fix format specifier
885         warnings.
886
887         * stormy16-protos.h (xs_hi_general_operand,
888         xs_hi_nonmemory_operand): Prototype.
889         * stormy16.c (xstormy16_output_shift): Fix format specifier
890         warnings.
891
892         * cris.c: Fix format specifier warnings.
893
894 2003-05-16  Nick Clifton  <nickc@redhat.com>
895
896         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
897
898 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
899
900         * doc/bugreport.texi: Remove most of the of the preface of the
901         bugs section.
902
903 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
904
905         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
906         .save XX, r0.
907
908 2003-05-15  Roger Sayle  <roger@eyesopen.com>
909
910         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
911
912 2003-05-15  Eric Christopher  <echristo@redhat.com>
913
914         * cfgcleanup.c (merge_blocks): Fix return value.
915
916 2003-05-15 Eric Christopher <echristo@redhat.com>
917
918         * combine.c (expand_compound_operation): Make sure
919         that zero_extend operation is profitable.
920
921 2003-05-15  Richard Henderson  <rth@redhat.com>
922
923         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
924         code protected by USE_GNULIBC_1.
925
926 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
927
928         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
929         remove hppa*-*-mpeix* which could not be built, and prune
930         files from tmake_file= or tm_file= lists that don't exist.
931
932         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
933         * config/alpha/t-interix, config/arm/conix-elf.h
934         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
935         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
936         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
937         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
938         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
939         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
940         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
941         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
942         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
943         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
944         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
945         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
946         * config/m68k/tower-as.h, config/m68k/tower.h
947         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
948         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
949         * config/m88k/m88k-protos.h, config/m88k/m88k.c
950         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
951         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
952         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
953         * config/mips/rtems64.h, config/mips/sni-gas.h
954         * config/mips/sni-svr4.h, config/mips/t-ecoff
955         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
956         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
957         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
958         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
959         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
960         * config/romp/romp-protos.h, config/romp/romp.c
961         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
962         * config/rs6000/aix3newas.h, config/rs6000/mach.h
963         * config/sparc/bsd.h, config/sparc/hal.h
964         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
965         * config/sparc/lynx.h, config/sparc/netbsd.h
966         * config/sparc/sp86x-aout.h, config/sparc/splet.h
967         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
968         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
969         * config/sparc/t-halos, config/sparc/t-sparcbare
970         * config/sparc/t-splet, config/sparc/t-sunos41
971         * config/v850/rtems.h: Delete file.
972
973 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
974
975         * config/rs6000/rs6000-protos.h (function_value): Protoize.
976
977         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
978
979         * config/rs6000/rs6000.c (rs6000_function_value): New.
980
981 2003-05-15  Philip Blundell  <philb@gnu.org>
982
983         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
984         All uses updated.
985         (arm_tune_xscale): New variable.
986         (arm_override_options): Set it.
987         (arm_adjust_cost): Use it in place of arm_arch_xscale.
988         (arm_gen_load_multiple): Likewise.
989         (arm_gen_store_multiple): Likewise.
990         * config/arm/arm.md (is_xscale): Likewise.
991         * config/arm/arm.h (arm_tune_xscale): Declare.
992
993 2003-05-15  Philip Blundell  <philb@gnu.org>
994
995         PR target/10730
996         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
997         involving invalid constants.
998
999 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1000
1001         * pa.c (hppa_expand_prologue): Remove blockage.
1002
1003 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
1004
1005         * doc/bugreport.texi: Remove most of the bug reporting
1006         instructions and merge them into bugs.html.
1007
1008 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
1009
1010         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
1011         g_switch_value to unsigned HOST_WIDE_INT.
1012
1013 2003-05-14  Eric Christopher  <echristo@redhat.com>
1014
1015         * combine.c: Fix header comments.
1016         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
1017         to all calls and prototype.
1018
1019 2003-05-14  Roger Sayle  <roger@eyesopen.com>
1020
1021         PR optimization/10764
1022         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
1023         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
1024         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
1025         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
1026         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
1027         the corresponding *fyl2x_?fxf3 instructions.
1028
1029 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
1030
1031         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
1032         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
1033         XCHAL_HAVE_L32R): New.
1034         * config/xtensa/xtensa-protos.h (non_const_move_operand,
1035         xtensa_load_constant, xtensa_function_prologue,
1036         xtensa_function_epilogue): Delete prototypes.
1037         (xtensa_expand_prologue): New.
1038         * config/xtensa/xtensa.c (frame_size_const,
1039         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
1040         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
1041         xtensa_function_prologue): Delete.
1042         (add_operand, xtensa_mem_offset): Formatting.
1043         (move_operand): If the const16 option is available, allow any SFmode
1044         and SImode constants.
1045         (xtensa_emit_move_sequence): Inline the former contents of
1046         xtensa_load_constant with modifications to handle the const16 option.
1047         (override_options): Add xtensa_char_to_class['W'] and set it to
1048         the general register class only if the const16 option is enabled.
1049         Fix formatting.  Disallow PIC when using the const16 option.
1050         (print_operand): Reorganize to switch on "letter" instead of the
1051         RTL code.  Add output_operand_lossage calls for invalid cases.
1052         Add support for 't' and 'b' letters.
1053         (xtensa_expand_prologue): New function to replace
1054         xtensa_function_prologue and xtensa_reorg.
1055         (xtensa_function_epilogue): Declare this as static.  Delete code
1056         to print the retw.n or retw instruction.
1057         (xtensa_return_addr): Use A0_REG instead of 0.
1058         (xtensa_rtx_costs): Add costs for using the const16 option.
1059         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
1060         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
1061         (TARGET_SWITCHES): Add "const16" and "no-const16".
1062         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
1063         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
1064         using the const16 option.
1065         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
1066         (TRAMPOLINE_SIZE): Change from 49 to 59.
1067         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
1068         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
1069         when using the const16 option.
1070         (PREDICATE_CODES): Delete non_const_move_operand.
1071         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
1072         UNSPECV_ENTRY.
1073         (movdi, movdf): If the source is a constant, always expand to a
1074         sequence of movsi insns.
1075         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
1076         (movsi_internal, movsf_internal): Add alternative using const16 insns.
1077         (movsf): Add const16 support.
1078         (entry, prologue, epilogue): New.
1079         (set_frame_ptr): Add missing mode for unspec_volatile operation.
1080         Likewise for subsequent split pattern.
1081         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
1082         "-mconst16" and "-mno-const16" options.
1083
1084 2003-05-14  Richard Henderson  <rth@redhat.com>
1085
1086         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
1087         to be DImode register.  Merge load_symptr.
1088         * config/ia64/ia64.md (load_symptr): Remove.
1089
1090 2003-05-14  Richard Henderson  <rth@redhat.com>
1091
1092         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
1093         DEFERRED_CONSTANT_P.
1094         * integrate.c (copy_rtx_and_substitute): Update use.
1095         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
1096         to the copy generated.
1097         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
1098         of the constant to see if we should emit.
1099         (mark_constant): Similarly.
1100         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
1101
1102 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
1103
1104         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
1105         move record condition.
1106         (movdi_internal2): Same.
1107
1108 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
1109
1110         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
1111         (GCOV_TAG_*) Force type to gcov_unsigned_t.
1112         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
1113         (struct gcov_var): Remove modified. Add start, length, offset,
1114         overread. Have buffer array for libgcov.
1115         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
1116         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
1117         * gcov-io.c (gcov_open): Set mode, do not read anything.
1118         (gcov_close): Write final block.
1119          (gcov_write_block, gcov_allocate): New.
1120         (gcov_write_bytes): Make static. Write or allocate buffer.
1121         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
1122         null.
1123         (gcov_write_string): Adjust.
1124         (gcov_write_tag)
1125         (gcov_write_length): Adjust. Flush the block.
1126         (gcov_write_tag_length): Buffer can never be null.
1127         (gcov_read_bytes): Make static. Read in block.
1128         (gcov_sync): Moved here. Adjust.
1129         (gcov_seek): Moved here. Adjust.
1130         * coverage.c (read_counts_file): Adjust.
1131         * gcov-dump.c (print_prefix): Add position parameter.
1132         (flag_dump_positions): New flag.
1133         (options, main, print_usage): Add it.
1134         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
1135         tag_summary): Adjust.
1136         * gcov.c (read_graph_file, read_count_file): Adjust.
1137         * libgcov.c (gcov_exit): Adjust.
1138
1139         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
1140         (libgcov.a): Depend on libgcc.a.
1141         (gcov.o, gcov-dump.o): Add gcov-io.c.
1142         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
1143
1144         * loop.c (check_dbra_loop): Factor common test.
1145
1146 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
1147
1148         * doc/md.texi (Automaton pipeline description): Grammar fixes.
1149
1150 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
1151
1152         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
1153         (TARGET_INITIALIZER): Include it.
1154         * target.h (struct gcc_target): Add machine_dependent_reorg field.
1155         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
1156         * system.h: Poison MACHINE_DEPENDENT_REORG.
1157
1158         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
1159         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
1160         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1161         (alpha_handle_trap_shadows): Remove "first insn" parameter.
1162         (alpha_align_insns): Likewise.
1163         (alpha_reorg): Likewise.  Make static.  Update calls to above
1164         functions.
1165
1166         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
1167         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
1168         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1169         (arm_reorg): Remove parameter.  Make static.
1170
1171         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
1172         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
1173         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1174         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
1175         Remove parameter.
1176
1177         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
1178         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
1179         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1180         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
1181         Remove parameter.
1182
1183         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
1184         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
1185         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
1186
1187         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
1188         * config/frv/frv.c: Remove orphaned comment.
1189
1190         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
1191         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
1192         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1193         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
1194         Remove parameter.
1195
1196         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
1197         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
1198         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1199         (emit_insn_group_barriers): Remove "first insn" parameter.
1200         (emit_all_insn_group_barriers): Likewise.
1201         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
1202         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
1203
1204         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
1205         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
1206         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1207         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
1208         Remove parameter.
1209
1210         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
1211         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
1212         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1213         (m68hc11_reorg): Make static.  Remove parameter.
1214
1215         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
1216         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
1217         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1218         (conditionalize_optimization): Remove parameter.
1219         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
1220         Make static.  Update call to conditionalize_optimization.
1221
1222         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
1223         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
1224         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1225         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
1226         Make static.
1227
1228         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
1229         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
1230         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1231         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
1232         Remove parameter.
1233
1234         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
1235         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
1236         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1237         (pa_combine_instructions): Remove "first insn" parameter.
1238         (remove_useless_addtr_insns): Likewise.
1239         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
1240
1241         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
1242         commented-out definition.
1243
1244         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
1245         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
1246         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1247         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
1248         Remove parameter.
1249
1250         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
1251         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
1252         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1253         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
1254         Remove parameter.
1255         (sh_output_mi_thunk): Call sh_reorg directly.
1256         * config/sh/sh.md: Update comment.
1257
1258         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
1259         commented-out definition.
1260
1261         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
1262         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
1263         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1264         (v850_reorg): Make static.  Remove parameter.
1265
1266         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
1267         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
1268         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1269         (xtensa_reorg): Make static.  Remove parameter.
1270
1271         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
1272         (TARGET_MACHINE_DEPENDENT_REORG): Document.
1273
1274 2003-05-13  Richard Henderson  <rth@redhat.com>
1275
1276         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
1277         the old decl had instantiated DECL_RTL.
1278
1279 2003-05-13  Mike Stump  <mrs@apple.com>
1280
1281         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
1282
1283 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
1284
1285         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
1286         HOST_WIDE_INT argument.
1287
1288 2003-05-13  Jason Merrill  <jason@redhat.com>
1289
1290         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
1291
1292         * tree.c (iterative_hash_expr): New fn.
1293
1294         * c-semantics.c (emit_local_var): Don't mess with temp slots if
1295         there's no initializer.
1296
1297 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
1298
1299         * final.c (final_scan_insn): Apply the effects of frame-related
1300         delay slot insns before emitting a delayed branch.
1301
1302 2003-05-13  Nick Clifton  <nickc@redhat.com>
1303
1304         * config/mcore/mcore.md (jump): Use emit_jump_insn.
1305
1306 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1307
1308         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
1309         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
1310
1311 2003-05-12  DJ Delorie  <dj@redhat.com>
1312
1313         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
1314         (emit_push_insn): Don't use push when the source alignment is less
1315         than the stack's push rounding.
1316
1317 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
1318
1319         * diagnostic.c (output_format): Add support for %m.
1320         (output_printf, output_verbatim, diagnostic_set_info,
1321         verbatim): Set err_no field of the text_info structure being
1322         initialized.
1323         (fatal_io_error): Delete function.
1324         * diagnostic.h (text_info): Add err_no field.
1325         * toplev.h (fatal_io_error): Delete prototype.
1326
1327         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
1328         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
1329         * objc/objc-act.c: Replace all calls to fatal_io_error with
1330         calls to fatal_error; add ": %m" to the end of all the affected
1331         error messages.
1332
1333 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
1334
1335         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
1336         * rtl.h: Prototype it.
1337         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
1338         when appropriate.
1339
1340 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1341
1342         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
1343         ("*iorsi3_oi"): Likewise.
1344
1345 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
1346
1347         * arm.md (compare_scc): Use shorter sequence for EQ case.
1348         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
1349         (and_scc_scc): Ensure split only applies when there is a dominance
1350         of the comparisons.
1351         (and_scc_scc_nodom): New insn-and-split pattern.
1352
1353 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
1354
1355         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
1356         to _Unwind_SetGRPtr().
1357
1358 2003-05-13  Michael Eager <eager@mvista.com>
1359
1360         * Makefile.in: Initialize program_transform_cross_name from
1361         @program_transform_name@ instead of target_alias.
1362
1363 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
1364             Alan Modra  <amodra@bigpond.net.au>
1365             Jakub Jelinek  <jakub@redhat.com>
1366
1367         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
1368         * configure: Rebuild.
1369         * config/rs6000/rs6000-protos.h: Update.
1370         * config/rs6000/rs6000.c (rs6000_tls_size): New.
1371         (rs6000_tls_size_string): New.
1372         (rs6000_parse_tls_size_option): New.
1373         (rs6000_legitimize_tls_address): New.
1374         (rs6000_tls_get_addr): New.
1375         (rs6000_got_sym): New.
1376         (rs6000_tls_symbol_ref): New.
1377         (rs6000_tls_symbol_ref_1): New.
1378         (rs6000_get_some_local_dynamic_name): New.
1379         (rs6000_get_some_local_dynamic_name_1): New.
1380         (TARGET_HAVE_TLS): New.
1381         (TARGET_CANNOT_FORCE_CONST_MEM): New.
1382         (rs6000_override_options): Handle -mtls-size option.
1383         (constant_pool_expr_1): Handle TLS symbols.
1384         (rs6000_legitimize_address): Handle TLS symbols.
1385         (rs6000_tls_referenced_p): New.
1386         (rs6000_legitimate_address): Handle TLS symbols.
1387         (rs6000_emit_move): Handle TLS symbols.
1388         (print_operand): Handle TLS symbols.
1389         (uses_TOC): Handle TLS symbols.
1390         (rs6000_emit_prologue): Use symbol for unspec constant.
1391         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
1392         (some_ld_name): New.
1393         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
1394         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
1395         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
1396         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
1397         Support TLS.
1398         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
1399         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
1400         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
1401         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
1402         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
1403         tls_tls_64): New.
1404         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
1405
1406 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
1407
1408         * Makefile.in (stage2_build, stage3_build, stage4_build):
1409         Set BUILD_CC to the same as CC.
1410
1411 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
1412
1413         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
1414
1415 2003-05-12  Andreas Schwab  <schwab@suse.de>
1416
1417         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
1418         as unused.
1419         (bundling): Initialize 'pos'.
1420         (ia64_expand_builtin): Initialize 'rmode'.
1421
1422 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
1423
1424         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
1425         (ASM_OUTPUT_ALIGNED_COMMON): Same.
1426         (ASM_OUTPUT_LOCAL): Same.
1427
1428 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
1429
1430         * varasm.c (output_constant):  Fix underflow.
1431
1432 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
1433
1434         PR other/10745
1435         * configure.in: Correct detection of GNU ld version number.
1436         * configure: Regenerated.
1437
1438 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
1439
1440         * diagnostic.c (diagnostic_for_decl): Take a
1441         diagnostic_context argument.  Restructure to be consistent
1442         with diagnostic_report_diagnostic.
1443         (diagnostic_count_diagnostic): Now static.  Take a
1444         diagnostic_info argument, not just a diagnostic_t.  Some code
1445         moved here from internal_error.  Move a case label for
1446         clarity.
1447         (diagnostic_action_after_output): New function.  Code moved
1448         here from internal_error and fatal_error.
1449         (bug_report_request): New #define so that this text appears in
1450         only one place.
1451         (diagnostic_report_diagnostic): Update to match changes to
1452         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
1453         (diagnostic_set_info): Call gettext here.
1454
1455         (pedwarn): Update comment.  Don't call gettext here.
1456         (sorry): Use report_diagnostic.  Don't call gettext here.
1457         (fatal_error): Remove final fnotice and exit, but call
1458         real_abort to prevent warnings about noreturn function returning.
1459         (internal_error): Likewise.  Don't do ICE suppression here nor
1460         call context->internal_error.
1461         (warning_with_decl): Suppress for decls in system headers.
1462         Adjust call to diagnostic_for_decl.
1463         (pedwarn_with_decl): Likewise.
1464         (error_with_decl): Adjust call to diagnostic_for_decl.
1465         (error_recursion): Use bug_report_request.
1466
1467         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
1468         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
1469         diagnostic_count_diagnostic.
1470
1471 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1472
1473         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
1474
1475 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
1476
1477         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
1478         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
1479         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
1480
1481 2003-05-12  Roger Sayle  <roger@eyesopen.com>
1482
1483         * doc/rtl.texi: Document zero_extract as a valid destination
1484         of a set insn.
1485
1486 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
1487
1488         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
1489         '.'.  Change all local symbol definitions and references to use LSYM.
1490
1491 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
1492
1493         * expr.h (assemble_static_space): Update prototype.
1494         * output.h (assemble_zeros, output_constant): Likewise.
1495         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
1496         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
1497         it 64bit clean.
1498         * elf.h (ASM_OTUPUT_SKIP): Likewise.
1499         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
1500         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1501         Expect HOST_WIDE_INT operand.
1502         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1503         Expect HOST_WIDE_INT operand.
1504         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1505         Expect HOST_WIDE_INT operand.
1506         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
1507         HOST_WIDE_INT operand.
1508         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
1509         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
1510         * aout.h (ASM_OTUPUT_SKIP): Likewise.
1511         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
1512         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
1513         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
1514         * frv.h (ASM_OTUPUT_SKIP): Likewise.
1515         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
1516         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1517         Make it 64bit
1518         clean.
1519         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
1520         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1521         Make it 64bit clean.
1522         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
1523         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
1524         HOST_WIDE_INT operand
1525         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1526         Expect HOST_WIDE_INT operand
1527         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
1528         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
1529         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
1530         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1531         Likewise.
1532         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
1533         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1534         Likewise.
1535         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1536         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1537         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1538         ASM_OUTPUT_SKIP): Likewise.
1539         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1540         Likewise.
1541         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1542         ASM_OUTPUT_SKIP): Likewise.
1543         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1544         ASM_OUTPUT_SKIP): Likewise.
1545         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
1546         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
1547         ASM_OUTPUT_SKIP): Likewise.
1548         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
1549         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
1550         ASM_OUTPUT_SKIP): Likewise.
1551         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
1552         Likewise.
1553         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
1554         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
1555         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
1556         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1557         ASM_OUTPUT_SKIP): Make it 64bit clean.
1558         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
1559         Make it 64bit clean.
1560         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
1561         ASM_OUTPUT_SKIP): Make it 64bit clean.
1562         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
1563         64bit clean.
1564         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
1565         HOST_WIDE_INT argument
1566         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
1567         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
1568         HOST_WIDE_INT argument
1569         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
1570         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
1571         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
1572         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1573         HOST_WIDE_INT argument
1574         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
1575         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
1576         * varasm.c (asm_output_bss, asm_output_aligned_bss,
1577         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
1578         HOST_WIDE_INT argument
1579
1580 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
1581
1582         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
1583         favor of walk_tree_without_duplicates.  Add comments.
1584
1585 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
1586
1587         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
1588         (struct alloc_pool_def): New element 'id'.
1589         * alloc-pool.c (fancy_abort): Extern function prototype.
1590         (abort): Macro which uses fancy_abort.
1591         (struct allocation_object_def): New structure.
1592         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
1593         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
1594         (last_id): New variable.
1595         (create_alloc_pool): Add the offset of u.data to size of element,
1596         increase and use last_id.
1597         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
1598         (pool_alloc): Likewise. Set ID for elements.
1599         (pool_free): Check whether the PTR was allocated from POOL.
1600
1601 2003-05-11  Richard Henderson  <rth@redhat.com>
1602
1603         PR c/10675
1604         * c-decl.c: Include hashtab.h.
1605         (detect_field_duplicates): New.
1606         (finish_struct): Use it.
1607         * Makefile.in (c-decl.o): Update.
1608         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
1609         (component_decl_list, component_decl_list2,
1610         components, components_notype): Build list in reverse order.
1611         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
1612
1613         * tree.c (chainon): Special case op2 null as well.
1614         Reorg for clarity.
1615
1616 2003-05-11  Roger Sayle  <roger@eyesopen.com>
1617
1618         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
1619         to implement log, logf and logl built-ins as inline x87 intrinsics.
1620         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
1621         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
1622         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
1623
1624         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
1625         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
1626
1627 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1628
1629         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
1630
1631         * sparc.c (print_operand): Fix uninitialized warning.
1632
1633 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1634
1635         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
1636         real insns.
1637         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
1638         condition.
1639
1640 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
1641
1642         * doc/cpp.texi: Fix typos.
1643
1644 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1645
1646         * config/s390/s390.c (s390_function_arg_float): New function.
1647         (s390_function_arg_pass_by_reference): Use it.
1648         (s390_function_arg_advance): Likewise.
1649         (s390_function_arg): Likewise.
1650         (s390_va_arg): Likewise
1651
1652 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
1653
1654         * coverage.h (coverage_counter_alloc): New function.
1655         * function.h (struct function): Remove arc_profile flag.
1656         * coverage.c (fn_ident): Remove.
1657         (fn_b_ctrs, no_coverage): New.
1658         (get_coverage_counts): Use current_function_funcdef_no.
1659         (coverage_counter_alloc): New.
1660         (coverage_counter_ref): Adjust.
1661         (coverage_begin_output): Check no_coverage. Use
1662         current_function_funcdef_no.
1663         (coverage_end_function): Likewise.
1664         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
1665         than clearing flag_inline_functions. Do not clear arc_profile
1666         flag.
1667         * function.c (prepare_function_start): Do not set arc_profile
1668         flag.
1669         * profile.c (instrument_edges): Return number of instrumented
1670         edges. Use a for loop.
1671         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
1672         local to here and simplify. Use profile_arc_flag not arc_profile
1673         flag.
1674         (find_spanning_tree): Reformat.
1675         * toplev.c (rest_of_compilation): Use profile_arc_flags and
1676         flag_test_coverage rather than arc_profile flag.
1677
1678 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
1679
1680         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
1681
1682 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1683
1684         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
1685
1686 2003-05-11  Bruno Haible  <bruno@clisp.org>
1687
1688         * cppfiles.c (find_or_create_entry): Preserve errno.
1689
1690 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
1691
1692         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
1693         cpplib as it's a Standard Predefined Macro.
1694         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
1695         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
1696         __STDC_HOSTED__ appropriately.
1697         * cpplib.h (_cpp_init_builtins): Update.
1698         * fix-header.c (read_scan_file): Update.
1699         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
1700
1701 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1702
1703         PR C++/689
1704         PR C++/9257
1705         * c-opts.c (c_common_decode_option): Don't set
1706         warn_ctor_dtor_privacy wen -Wall.
1707         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
1708
1709 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
1710
1711         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
1712         patch.
1713
1714 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
1715
1716         * diagnostic.c: Reorder functions for clarity, putting all the
1717         functions in the "error" family next to each other, and
1718         likewise all the functions in the "error_with_decl" family.
1719         Some other routines were moved too.  Add comments.
1720         (vbuild_message_string): Fold into sole caller.
1721
1722
1723 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1724
1725         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
1726         (EH_RETURN_HANDLER_RTX): Likewise.
1727         (expand_builtin_eh_return): Do not copy stack adjustment
1728         if EH_RETURN_STACKADJ_RTX is not defined.
1729         (expand_eh_return): Likewise.  Also, do not pass stack
1730         adjustment as argument to the eh_return pattern.
1731         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
1732         because EH_RETURN_STACKADJ_RTX is not defined.
1733         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
1734         is not defined, treat stack pointer like a regular register.
1735         (uw_init_context_1): Set up fake initial stack pointer register.
1736         (uw_install_context_1): Do not compute stack adjustment if
1737         EH_RETURN_STACKADJ_RTX is not defined.
1738
1739         * config/i386/i386.md ("eh_return"): Remove first argument.
1740         * config/mips/mips.md ("eh_return"): Likewise.
1741         * config/rs6000/rs6000.md ("eh_return"): Likewise.
1742         * config/sh/sh.md ("eh_return"): Likewise.
1743
1744         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
1745
1746 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
1747
1748         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
1749
1750 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
1751
1752         * defaults.h (GCOV_TYPE_SIZE): Remove.
1753         * gcov-io.h (gcov_type): Set to specific mode int on target.
1754         (gcov_unsigned_t, gcov_position_t): New.
1755         (GCOV_TYPE_NODE): New.
1756         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
1757         (GCOV_COUNTERS_SUMMABLE): New.
1758         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
1759         gcov_ctr_info, gcov_info): Adjust types.
1760         (gcov_var): Adjust types.
1761         (gcov_write_unsigned, gcov_write_tag,
1762         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
1763         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
1764         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
1765         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
1766         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
1767         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
1768         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
1769         __gcov_init, __gcov_merge_add): Adjust gcov types.
1770         * coverage.c (ctr_merge_functions): Constify.
1771         (ctr_names): New.
1772         (read_counts_file): Adjust gcov types. Only summarize & merge
1773         summable counters.
1774         (coverage_counter_ref): Use GCOV_TYPE_NODE.
1775         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
1776         build_ctr_info_value, build_gcov_info): Adjust types.
1777         * profile.c (branch_prob): Adjust gcov types.
1778         * gcov_dump (dump_file): Adjust gcov types.
1779
1780 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
1781
1782         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
1783         constants.
1784         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
1785         * arm.c (arm_select_dominance_cc_mode): Renamed from
1786         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
1787         Callers updated.
1788         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
1789
1790 2003-05-09  Roger Sayle  <roger@eyesopen.com>
1791
1792         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
1793         as unsigned to avoid signed/unsigned comparison warnings.
1794
1795 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
1796
1797         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
1798         instruction if the Xtensa density option is enabled.
1799
1800 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
1801
1802        * mklibgcc.in: Remove extra quotes.
1803
1804 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
1805
1806         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
1807         of int_ftype_void.
1808
1809 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
1810
1811         * reload1.c (reload_cse_move2add): Don't turn an implicit
1812         truncation into a self-set in the narrow mode.
1813
1814 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
1815
1816         * arm.md (clzsi2): The CLZ instruction is predicable.
1817
1818 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
1819
1820         * config/xtensa/xtensa.c: Formatting.
1821
1822 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
1823
1824         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
1825         instead of TREE_OPERAND to access the operand of a
1826         CONSTRUCTOR node.
1827
1828 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
1829
1830         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
1831         one operand.
1832
1833 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
1834
1835         * toplev.h (warning_with_file_and_line): Don't declare.
1836         (error_with_file_and_line): Likewise.
1837         * diagnostic.c (error_with_file_and_line): Remove.
1838         (warning_with_file_and_line): Likewise.
1839
1840 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
1841
1842         * c-parse.in (if_stmt_locus): New object.
1843         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
1844         (select_or_iter_stmt rule): Likewise.
1845         (if_stmt_file): Remove.
1846         (if_stmt_line): Likewise.
1847         * jump.c: include "diagnostic.h"
1848         (never_reached_warning): Don't use warning_with_file_and_line.
1849         * Makefile.in (jump.o): Add dependce on diagnostic.h
1850
1851 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
1852
1853         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
1854         Move code handling pieces not larger than a word to..
1855         * function.c (assign_parms): ..here, but use change_address instead
1856         of adjust_address and operand_subword, and expand_binop instead of
1857         expand_shift.  Adjust calls to move_block_from_reg.
1858         * expr.h (move_block_from_reg): Update declaration.
1859         (copy_blkmode_from_reg): Formatting.
1860         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
1861         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
1862         move_block_from_reg calls.
1863         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
1864         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
1865         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1866         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
1867         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
1868         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1869         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
1870         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
1871         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
1872
1873 2003-05-08  DJ Delorie  <dj@redhat.com>
1874
1875         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
1876         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
1877         variable-sized types).
1878         (xstormy16_function_arg): New.  Pass them that way too.
1879         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
1880         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
1881
1882 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
1883
1884         * mklibgcc.in: Use mkinstalldirs when installing multilib
1885         directories.
1886
1887 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
1888
1889         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
1890         instead of CODE_FOR_jump
1891
1892 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
1893
1894         * objc/objc-act.c (error_with_ivar): Don't use
1895         error_with_file_and_line.
1896         (warn_with_method): Don't use warning_with_file_and_line.
1897
1898 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1899
1900         * stmt.c (emit_locus): New macro.
1901         (emit_filename): Remove.
1902         (emit_lineno): Likewise.
1903         (struct stmt_status): Replace members x_emit_filename and
1904         x_emit_lineno with x_emit_locus.
1905         (set_file_and_line_for_stmt): Adjust.
1906         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
1907         (warn_if_unused_value): Likewise.
1908         (check_seenlabel): Likewise.
1909
1910 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1911
1912         * c-decl.c (define_label): Tidy.  Don't use any of
1913         error_with_file_and_line or warning_with_file_and_file.
1914         (pending_xref_error): Likewise.
1915         (store_parm_decls): Likewise.
1916         (current_function_prototype_locus): New object.  Package from
1917         current_function_prototype_file and current_function_prototype_line.
1918         (start_function): Use it.
1919         (current_function_prototype_file): Remove.
1920         (current_function_prototype_line): Remove;
1921
1922 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1923
1924         * builtins.c (readonly_data_expr): New function.
1925         (expand_builtin_memmove): Optimize any rodata source, not just
1926         strings.
1927
1928 2003-05-07  David Mosberger <davidm@hpl.hp.com>
1929
1930         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
1931
1932 2003-05-07  Richard Henderson  <rth@redhat.com>
1933
1934         * config/i386/i386.c (ix86_split_long_move): Fix base register
1935         mode for XFmode splits for TARGET_64BIT.
1936
1937 2003-05-07  Richard Henderson  <rth@redhat.com>
1938
1939         * sched-ebb.c (schedule_ebb): Supply the correct starting
1940         block number to save_line_notes.
1941
1942 2003-05-07  Richard Henderson  <rth@redhat.com>
1943
1944         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
1945         (dump_file): Likewise.
1946
1947 2003-05-07  David Mosberger <davidm@hpl.hp.com>
1948
1949         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
1950         forget to preserve gp.
1951         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
1952
1953         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
1954         .prologue directive.
1955         Use .skip instead of data8 for .bss section to make Intel
1956         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
1957         explicit in the .mib bundles and remove the unnecessary stop
1958         bits.  Replace local labels with normal labels, to make ias
1959         happy.  Don't register __do_global_ctors_aux here, do it in
1960         crtend.asm instead.
1961
1962         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
1963         __do_global_ctors_aux in .init_array section instead of
1964         declaring it as a hidden global.  Replace local labels with
1965         ordinary labels to make ias happy.
1966
1967 2003-05-07  Richard Henderson  <rth@redhat.com>
1968
1969         PR c++/10570
1970         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
1971         * flags.h, toplev.c, doc/invoke.texi: Likewise.
1972
1973         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
1974         * unwind.inc (_Unwind_DeleteException): Check for null
1975         exception_cleanup.
1976
1977         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
1978         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
1979         * unwind.h: Declare them.
1980         * libgcc-std.ver (GCC_3.3): Export them.
1981
1982 2003-05-07  Richard Henderson  <rth@redhat.com>
1983
1984         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
1985         not _Unwind_Word.
1986
1987 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
1988
1989         * stmt.c (force_label_rtx): New function, based on logic
1990         formerly found in expand_expr.
1991         * expr.h: Prototype it.
1992         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
1993         appropriate.
1994         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
1995
1996         * print-tree.c (debug_tree): Free the table after we're done
1997         with it.  Use putc.
1998
1999 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
2000
2001         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
2002         Unreverse arguments for __ev_subw.
2003
2004         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
2005
2006 2003-05-07  Nick Clifton  <nickc@redhat.com>
2007
2008         * config/stormy16/stormy-abi: Update to include
2009         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
2010         R_XSTORMY16_12 relocs.
2011
2012 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
2013
2014         * function.c (assign_parms): Correct reversed reg_parm_stack_space
2015         test.  Add partial in-regs size to stack_args_size.
2016
2017 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2018
2019         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
2020         as a C only option.
2021
2022 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
2023
2024         * gcov-io.h (GCOV_LOCKED): New #define.
2025         (GCOV_LINKAGE): Make sure it is #defined.
2026         (gcov_write_string, gcov_write_tag, gcov_write_length,
2027         gcov_read_string, gcov_time): Poison in libgcov.
2028         (gcov_seek_end): Remove.
2029         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
2030         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
2031         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
2032         GCOV_TAG_SUMMARY_LENGTH): New #defines.
2033         (gcov_write_tag, gcov_write_length): Not in libgcov.
2034         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
2035         (gcov_write_tag, gcov_write_length): Not in libgcov.
2036         (gcov_write_tag_length): New.
2037         (gcov_write_summary): Use gcov_write_tag_length.
2038         * libgcov.c: Always #include gcov-io.h.
2039         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
2040         (GCOV_LINKAGE): Define to nothing for L_gcov.
2041         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
2042         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
2043         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
2044         (read_count_file): Likewise.
2045         * gcov-dump.c (dump_file): Likewise.
2046         * coverag.c (read_counts_file): Likewise.
2047
2048 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
2049
2050         PR other/10658
2051         * gcc.c (process_command): Update copyright date.
2052
2053 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
2054
2055         * doc/install.texi (mips-*-*):  Add note about libstdc++.
2056
2057 2003-05-06  DJ Delorie  <dj@redhat.com>
2058
2059         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
2060         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
2061         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
2062
2063 2003-05-06    <neil@cat.daikokuya.co.uk>
2064
2065         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
2066         and -Wstrict-prototypes if C++.
2067
2068 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
2069
2070         * config/rs6000/linuxspe.h: New file.
2071
2072         * config.gcc: Add powerpc-*-linux-gnuspe* target.
2073
2074 2003-05-06  Richard Henderson  <rth@redhat.com>
2075
2076         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
2077         previous frame didn't save sp.  Clear sp for next frame.
2078         (uw_install_context_1): Honor saved sp from frame.
2079
2080 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2081
2082         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
2083         (mips_move_1word, mips_move_2words): Remove declaration.
2084         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
2085         (mips_restore_gp): Remove insn argument.
2086         * config/mips/mips.h (FP_REG_RTX_P): New macro.
2087         * config/mips/mips.c (volatile_buffer): Remove.
2088         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
2089         (mips_move_1word, mips_move_2words): Remove, replacing with...
2090         (mips_output_move): ...this new function.
2091         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
2092         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
2093         handling of floating-point constants.  Handle zero CONST_DOUBLE
2094         arguments.
2095         (mips_annotate_frame_insn): Replace with...
2096         (mips_set_frame_expr): ...this, which just takes one argument.
2097         (mips_frame_set): Change the register argument to an rtx.
2098         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
2099         check whether moves should be split.  Use mips_split_64bit_move
2100         to split them.  Use mips_subword to generate the high and low
2101         parts of a paired FPR.  Adjust calls to frame_set and
2102         mips_set_frame_expr.
2103         (mips_expand_prologue): Simplify due to above changes.
2104         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
2105         targets, replacing xisting register-only versions.
2106         (UNSPEC_STORE_DF_HIGH): New unspec.
2107         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
2108         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
2109         (*paradoxical_extendhidi2): Remove.
2110         (movdi_internal, movdi_internal2): Use mips_output_move.
2111         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
2112         (movsf_internal1, movsf_internal2): Likewise.
2113         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
2114         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
2115         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
2116         Add m <- G alternative.
2117         (load_df_low, load_df_high, store_df_low): New patterns.
2118         (movhi_internal): Use @ template instead of calling a function.
2119         Remove unnecessary 'z' alternatives.
2120         (movqi_internal): Likewise.
2121         (exception_receiver): Update call to mips_restore_gp.
2122
2123 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2124
2125         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
2126         (mips_delegitimize_address): Declare.
2127         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
2128         (FIND_BASE_TERM): Define.
2129         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
2130         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
2131         Handle small-data addresses.
2132
2133 2003-05-05  Roger Sayle  <roger@eyesopen.com>
2134
2135         * real.c (real_powi): New function to calculate the value of
2136         a real raised to an integer power, i.e. pow(x,n) for int n.
2137         (real_sqrt): Convert to using the faster do_add, do_multiply
2138         and do_divide API for consistency with the rest of real.c.
2139         * real.h (real_powi): Prototype here.
2140         * builtins.c (fold_builtin):  Avoid local variable mode when
2141         evaluating sqrt at compile time.  Attempt to evaluate pow at
2142         compile-time, by checking for an integral exponent.
2143
2144 2003-05-05  Richard Henderson  <rth@redhat.com>
2145
2146         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
2147
2148 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
2149
2150         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
2151         other FreeBSD ports.
2152         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
2153         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
2154
2155 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
2156
2157         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
2158         expanded variables.
2159         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
2160
2161 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
2162
2163         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
2164         * varasm.c (struct varasm_status): Add deferred_constants field.
2165         (n_deferred_strings): Delete variable.
2166         (n_deferred_constants): New #define.
2167         (struct constant_descriptor_tree): Kill next and label fields.
2168         (const_hash_table, MAX_HASH_TABLE): Delete.
2169         (const_desc_htab): New static variable.
2170         (const_hash): Rename const_desc_hash, and make it fit the
2171         hashtab.h interface.
2172         (const_desc_eq): New.
2173         (const_hash_1, compare_constant): Const-ify arguments.
2174         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
2175         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
2176         (output_constant_def): Do the lookup/insert using the
2177         hashtab.h interface.  Don't muck with n_deferred_constants or
2178         DEFERRED_CONSTANT_P here.
2179         Always call maybe_output_constant_def_contents.
2180         (maybe_output_constant_def_contents): Take a pointer to the
2181         descriptor, not the EXP and RTL separately.  Return
2182         immediately if this constant is not deferred.  Defer output of
2183         everything, except writable string constants.  Update
2184         n_deferred_constants here.
2185         (output_constant_def_contents): Now takes just one argument,
2186         an rtx.  Clear DEFERRED_CONSTANT_P here.
2187         (mark_constant_pool): Update for rename of n_deferred_strings.
2188         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
2189
2190         (init_varasm_status): Clear p->deferred_constants.
2191         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
2192
2193 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2194
2195         * builtins.c (expand_builtin_stpcpy): Only expand when the length
2196         of the source string can be evaluated at compile-time.
2197
2198 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2199
2200         * testsuite/gcc.c-torture/compile/simd-6.c: New.
2201
2202         * c-typeck.c (digest_init): Handle arrays of vector constants.
2203
2204 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
2205
2206         * builtins.c (expand_builtin_mempcpy): New function.
2207         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
2208         ignored into strcpy no matter what arguments it has.
2209         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
2210         expand_builtin_mempcpy.
2211
2212 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2213
2214         * testsuite/gcc.dg/20030505.c: New.
2215
2216         * c-typeck.c (convert_for_assignment): Opaque pointers can
2217         interconvert.
2218
2219         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
2220         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
2221         (spe_init_builtins): Rename all pv2si_type_node to
2222         opaque_p_V2SI_type_node.
2223         Remove declaration of pv2si_type_node.
2224         (is_ev64_opaque_type): Accept opaque pointers.
2225
2226 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
2227
2228         * config/rs6000/rs6000.c (validate_condition_mode): Use
2229         flag_finite_math_only.
2230         (rs6000_reverse_condition): Never return UNKNOWN; use
2231         flag_finite_math_only.
2232         (rs6000_generate_compare): Use flag_finite_math_only.
2233         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
2234         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
2235         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
2236
2237         * toplev.c (check_global_declarations): Suppress not-used warning
2238         for volatile variables.
2239
2240 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
2241
2242         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
2243         usage of bitfield instructions for mode1 != BLKmode, only ignoring
2244         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
2245         (store_field): Likewise.
2246
2247 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2248
2249         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
2250         evsubifw to builtins accepting 5-bit unsigned constants.
2251         (easy_vector_constant): Return if V1DImode.  Fix typo.
2252
2253 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2254
2255         * config/rs6000/spe.h: Revert licensing change from last patch.
2256
2257 2003-05-05  DJ Delorie  <dj@redhat.com>
2258
2259         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
2260         before reload, but defer the split until after.
2261         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
2262         to match.
2263
2264 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
2265
2266         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
2267         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
2268
2269 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2270
2271         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
2272         is defined.
2273
2274 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2275
2276         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
2277         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
2278         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
2279
2280         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
2281         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
2282         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
2283         New.
2284
2285         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
2286         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
2287
2288         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
2289         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
2290         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
2291         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
2292         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
2293         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
2294         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
2295         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
2296         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
2297         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
2298         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
2299         BUILT_IN_STRDUP): Add "nonnull" attribute.
2300
2301 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2302
2303         * expr.c (store_field): Don't clobber TEMP in shift: it might be
2304         a variable.
2305         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
2306         whose purpose is to step up the alignment.
2307         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
2308
2309         * stor-layout.c (compute_record_mode): Relax restriction
2310         on fields crossing word boundaries forcing BLKmode.
2311
2312 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
2313
2314         * cppinit.c (cpp_create_reader, post_options): Warn about
2315         trigraphs unless explicity set or -trigraphs.
2316         * cpplex.c (warn_in_comment): New.
2317         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
2318         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
2319         * doc/cppopts.texi, doc/cpp.texi: Update.
2320
2321 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2322
2323         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
2324         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
2325         namespace clash.
2326         (GCOV_MERGE_FUNCTIONS): New.
2327         (gcov_merge_fn): Declare.
2328         (struct gcov_ctr_info): New field "merge".
2329         (__gcov_merge_add): Declare.
2330         * coverage.c (ctr_merge_functions): New.
2331         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
2332         of gcov_ctr_info type.
2333         * libgcov.c (__gcov_merge_add): New.
2334         (gcov_exit): Call a hook to merge values of counters.
2335
2336 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
2337
2338         * toplev.h (pedwarn_with_file_and_line): Don't declare.
2339         * diagnostic.c (pedwarn_with_file_and_line): Remove.
2340
2341 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2342
2343         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
2344
2345 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2346
2347         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
2348         expand_builtin_frame_address): Update prototypes.
2349         (expand_builtin_constant_p, expand_builtin_strlen,
2350         expand_builtin_strcpy, expand_builtin_memset,
2351         expand_builtin_bzero, expand_builtin_args_info,
2352         expand_builtin_frame_address): Pass in just the argument(s)
2353         needed, not the entire expression `exp'.
2354         (expand_builtin): Update all calls to these functions.
2355
2356 2003-05-03  Richard Henderson  <rth@redhat.com>
2357
2358         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
2359         <BUILT_IN_DWARF_SP_COLUMN>: New.
2360         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
2361         (BUILT_IN_DWARF_SP_COLUMN): New.
2362         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
2363         (expand_builtin_dwarf_sp_column): New.
2364         * except.h: Update to match.
2365         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
2366         (execute_cfa_program): Record location expression address
2367         before extracting length.
2368         (uw_update_context_1): Install old CFA into stack pointer column.
2369         (uw_init_context_1): Set cfa_reg to stack pointer column.
2370
2371 2003-05-03  Richard Henderson  <rth@redhat.com>
2372
2373         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
2374         return bool.
2375         (toc_relative_expr_p): Likewise.
2376         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
2377         (legitimate_constant_pool_address_p): Move from rs6000.h, change
2378         into a function, downcase all users.
2379         (legitimate_small_data_p): Likewise.
2380         (legitimate_offset_address_p): Likewise.
2381         (legitimate_indexed_address_p): Likewise.
2382         (legitimate_indirect_address_p): Likewise.
2383         (legitimate_lo_sum_address_p): Likewise.
2384         (rs6000_mode_dependent_address): Likewise.
2385         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
2386         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
2387         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
2388         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
2389         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
2390         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
2391         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
2392         * config/rs6000/rs6000-protos.h: Update.
2393
2394 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
2395
2396         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
2397         (REVERSE_CONDITION): Define.
2398
2399         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
2400         to branch_positive_comparison_operator.
2401         (ccr_bit): Check that sCOND conditions are actually a positive bit.
2402         (print_operand): Remove %D substitution.
2403         (rs6000_emit_sCOND): Generate complement operation to ensure that
2404         sCOND input is a positive bit.
2405         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
2406         same order as bCOND, and add the missing ones.  Remove the %D
2407         substitutions from the scc patterns.
2408
2409         * simplify-rtx.c (simplify_relational_operation): Add case for
2410         ! (fabs(x) < 0.0).
2411
2412 2003-05-03  Bruce Korb  <bkorb@gnu.org>
2413
2414         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
2415         in fixincl.x
2416         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
2417
2418 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
2419
2420         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
2421
2422 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
2423
2424         PR c/10604
2425         * c-common.c (warn_sign_compare): Initialize to -1.
2426         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
2427         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
2428         for C++ only.
2429         (c_common_post_options): Set warn_sign_compare from extra_warnings
2430         if it's still -1 at this point.
2431
2432         * toplev.c (maybe_warn_unused_parameter): New static variable.
2433         (set_Wextra): New static function.
2434         (W_options): Remove "extra".
2435         (decode_W_option): Call set_Wextra.
2436         (independent_decode_option): Likewise.
2437         (set_Wunused): Cooperate with set_Wextra in setting
2438         warn_unused_parameter.
2439         (rest_of_compilation): No need to check extra_warnings as
2440         well as warn_uninitialized.
2441
2442         * c-typeck.c (build_binary_op, build_conditional_expr):
2443         No need to check extra_warnings as well as warn_sign_compare.
2444         (internal_build_compound_expr): No need to check extra_warnings
2445         as well as warn_unused_value.
2446         * function.c (expand_function_end): No need to check extra_warnings
2447         as well as warn_unused_parameter.
2448         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
2449         as well as warn_unused_value.
2450
2451         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
2452
2453         * Makefile.in: Disable -Werror for gengtype-lex.o.
2454
2455 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
2456
2457         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
2458         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
2459         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
2460         * calls.c (emit_call_1): Likewise.
2461         (expand_call): For calls initializing constant memory, replace
2462         emission of standalone mem /u clobber with function usage entry.
2463         * expr.c (emit_block_move_via_libcall): Likewise.
2464         * cse.c (count_reg_usage, case EXPR_LIST): New case.
2465         * flow.c (propagate_one_insn): Pass entire operand of
2466         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
2467         * integrate.c (try_constants): For CALL_INSNs, substitute constants
2468         within the FUNCTION_USAGE also.
2469         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
2470         FUNCTION_USAGE lists.
2471         * reload1.c (replace_pseudos_in): Renamed.
2472         (reload): Use it for clobbers surviving until the end of the reload.
2473
2474 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2475
2476         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
2477         gen_lowpart on non-integer modes.
2478
2479         * stor-layout.c (place_field): When adjusting offset_align, use
2480         desired_align, not DECL_ALIGN.
2481
2482 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
2483
2484         * c-decl.c (pending_invalid_xref_file): Remove.
2485         (pending_invalid_xref_line): Remove.
2486         (pending_invalid_xref_location): New.
2487         (lookup_label): Use location_t and input_location directly.
2488         (lookup_tag): Likewise.
2489         (pending_xref_error): Likewise.
2490         (c_expand_body_1): Likewise.
2491         * c-common.c (x_expand_start_cond): Likewise.
2492         * c-semantics.c (genrtl_for_stmt): Likewise.
2493         (find_reachable_label): Likewise.
2494         * expr.c (expand_expr): Likewise.
2495         * integrate.c (output_inline_function): Likewise.
2496         * tree-inline.c (find_alloca_call): Likewise.
2497         (find_builtin_longjmp_call): Likewise.
2498         * gcc.c (input_filename): Make static.
2499
2500 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
2501
2502         * config/mips/mips.md: Fix comment typo.
2503
2504         * config/mips/mips.c (mips_integer_op): New structure.
2505         (MIPS_MAX_INTEGER_OPS): Define.
2506         (mips_const_insns): Use mips_build_integer to determine the number
2507         of instructions needed to load a CONST_INT.
2508         (move_operand): Reject compound CONST_INTs.
2509         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
2510         (mips_move_integer): New fn.
2511         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
2512         (mips_legitimize_move): Only legitimize constants when moving
2513         word or subword values.
2514
2515 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
2516
2517         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
2518
2519 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2520
2521         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
2522         modifying it.
2523
2524 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2525             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2526
2527         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
2528         Hernandez, and Kazu Hirata.  Update Richard Henderson.
2529
2530 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
2531
2532         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
2533         to tentative declaration.
2534
2535         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
2536         (SYMBOL_FLAG_SMALL_V4): Delete.
2537         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
2538         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
2539         (rs6000_elf_in_small_data_p): Add extra section names.  Add
2540         comment about TREE_PUBLIC test.
2541
2542         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
2543         expand_stmt on result of expand_unreachable_stmt.
2544
2545 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2546
2547         * doc/contrib.texi (Contributors): Add Daniel Berlin.
2548
2549 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
2550
2551         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
2552         number of automata.
2553
2554         * config/rs6000/rs6000.c (symbol_ref_operand): Check
2555         SYMBOL_REF_FUNCTION_P on AIX.
2556         (current_file_function_operand): Same.
2557         * config/rs6000/rs6000.md (call,call_value): Force non-function
2558         symbol_ref into register on AIX.
2559
2560 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
2561
2562         * calls.c (struct arg_data): Move offset, slot_offset, size and
2563         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
2564         (initialize_argument_information): Adjust call to locate_and_pad_parm.
2565         Delete alignment_pad var.  Don't calculate slot_offset here.
2566         (emit_library_call_value_1): Delete alignment_pad, offset and size
2567         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
2568         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
2569         partial in-regs here.  Formatting fixes.
2570         * expr.h (struct locate_and_pad_arg_data): New struct.
2571         (locate_and_pad_parm): Adjust declaration.
2572         * function.c (assign_parms): Localize vars.  Use "locate" instead of
2573         other arg location vars.  Don't invoke FUNCTION_ARG or
2574         FUNCTION_INCOMING_ARG unless pretend_named is different from
2575         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
2576         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
2577         Use slot_offset for stack home of reg parms.  Correct test for
2578         parm passed in memory.  Formatting fixes.
2579         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
2580         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
2581         Correct initial_offset_ptr handling.  Localize vars.  Always pad
2582         locate->offset even when in_regs.
2583
2584 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
2585
2586         * Makefile.in (TREE_H): Replace location.h with input.h.
2587         (GTFILES) Remove location.h
2588         (gt-lists.h): Replace gt-location.h with gt-input.h
2589         * input.h (input_filename, input_line): Remove variables.
2590         (location_s, location_t): Move from location.h.
2591         (input_location): New.
2592         (input_filename, input_line): New #defines.
2593         * location.h: Remove.
2594         * tree.h: Replace location.h with input.h.
2595         (input_filename, input_line): Remove.
2596         * diagnostic.h: Replace location.h with input.h.
2597         * gcc.h (input_filename, input_filename_length): Remove declarations.
2598         * toplev.c (input_filename, input_line): Remove.
2599         (input_location): Define.
2600         (push_srcloc, pop_srcloc): Adjust.
2601         * diagnostic.c (diagnostic_report_current_module): Adjust.
2602
2603 2003-05-02  Nick Clifton  <nickc@redhat.com>
2604
2605         * configure.in: Add xstormy16 to list of targets that has a nop
2606         instruction and hence which can be tested to see if the
2607         assembler supports the --gdwarf2 switch.
2608         * configure: Regenerate.
2609
2610 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2611
2612         PR target/8257
2613         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
2614         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
2615         Avoid undefined shifts by making the shift operand unsigned.
2616
2617 2003-05-01  DJ Delorie  <dj@redhat.com>
2618
2619         * reload.c (find_reloads): Also check that all of a multi-reg
2620         value is in the class.
2621
2622 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2623
2624         * scan.h (lineno): Revert the rename here.
2625
2626 2003-05-01  Stan Shebs  <shebs@apple.com>
2627
2628         * config/darwin.c (darwin_encode_section_info): Call
2629         default_encode_section_info.
2630
2631 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
2632
2633         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
2634         (movsi_internal1): Use new mfjmpr attribute.
2635         (movhi_internal): Same.
2636         (movqi_internal): Same.
2637         (movcc_internal1): Same.
2638         (movdi_internal64): Same.
2639         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
2640         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
2641         * config/rs6000/40x.md: Add fpu_405.
2642         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
2643         into power4misc automata.  Remove extraneous parentheses.
2644         * config/rs6000/440.md: New file.
2645         * config/rs6000/rs6000.c (processor_target_table): Add 440,
2646         440fp.  Rename 405f to 405fp.
2647         (function_arg_padding): Correct formatting.
2648         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
2649
2650 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2651
2652         * input.h (lineno): Rename to ...
2653         (input_line): ... here.
2654         * tree.h (lineno): Rename to ...
2655         (input_line): ... here.
2656         * scan.h (lineno): Rename to ...
2657         (input_line): ... here.
2658         * toplev.c (lineno): Rename to ...
2659         (input_line): ... here.
2660         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
2661         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
2662         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
2663         store_parm_decls, c_expand_body_1): Likewise.
2664         * c-errors.c (pedwarn_c99): Likewise.
2665         * c-format.c (status_warning): Likewise.
2666         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
2667         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
2668         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
2669         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
2670         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
2671         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
2672         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
2673         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
2674         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
2675         * coverage.c (create_coverage): Likewise.
2676         * diagnostic.c (pedwarn, sorry, error, fatal_error,
2677         internal_error, warning, diagnostic_report_current_module,
2678         inform): Likewise.
2679         * expr.c (expand_expr): Likewise.
2680         * integrate.c (expand_inline_function,
2681         output_inline_function): Likewise.
2682         * rtl-error.c (file_and_line_for_asm): Likewise.
2683         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
2684         walk_tree): Likewise.
2685         * tree.c (make_node): Likewise.
2686         * ada, cp, f, java, objc, treelang: Likewise.
2687         * objc/objc-act.c (objc_init): Rename lineno to input_line.
2688         (build_module_descriptor, build_selector_translation_table,
2689         build_protocol_template, build_method_prototype_list_template,
2690         build_category_template, build_selector_table,
2691         build_class_template, build_super_template, build_ivar_template,
2692         build_ivar_list_template, build_method_list_template,
2693         build_method_template, add_instance_variable): Likewise.
2694
2695         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
2696         name from input_filename.
2697
2698 2003-04-30  Eric Christopher  <echristo@redhat.com>
2699             Richard Sandiford <rsandifo@redhat.com>
2700
2701         * configure: Regenerate from patches below.
2702         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
2703         for all symbolic operands.
2704         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
2705         to function.
2706         * config/mips/linux.h: Fix typo.
2707         * Merge from mips-3_4-rewrite branch:
2708
2709         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
2710
2711                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
2712                 handling local labels when TARGET_ABICALLS.
2713
2714         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
2715
2716                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
2717                 integer argument.
2718                 (mips_expand_call): Likewise.
2719                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
2720                 (FIXED_REGISTERS): Clear $31 entry.
2721                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
2722                 (EPILOGUE_USES): Define.
2723                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
2724                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
2725                 (override_options): Add a 'j' register class.
2726                 (mips_expand_call): Handle sibcalls
2727                 (mips_expand_epilogue): Handle epilogues for sibcalls.
2728                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
2729                 (sibcall_epilogue): New pattern.
2730                 (call, call_value): Adjust calls to mips_expand_call.
2731                 (sibcall, sibcall_value): New expanders.
2732                 (sibcall_internal, sibcall_value_internal): New patterns.
2733                 (sibcall_value_multiple_internal): New pattern.
2734
2735         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
2736
2737                 * config/mips/mips.md (extended_mips16): New attribute.
2738                 (define_attr length): Default to 8 if extended_mips16 == yes.
2739                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
2740                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
2741                 (call_internal): Set extended_mips16 to yes for direct jumps.
2742                 Remove redundant mode attribute.
2743                 (call_value_internal, call_value_multiple_internal): Likewise.
2744                 (call_split): Remove redundant mode attribute.
2745                 (call_value_split, call_value_multiple_split): Likewise.
2746
2747                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
2748                 of unaligned offsets.
2749
2750                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
2751                 of SYMBOL_GENERAL.
2752
2753         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
2754
2755                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
2756                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
2757                 for mips16 code.
2758
2759         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
2760
2761                 * config/mips/mips.h (ADDRESS_COST): Define.
2762
2763         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
2764
2765                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
2766                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
2767                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
2768
2769         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
2770
2771                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
2772                 of a two-instruction sequence.  Add register->memory alternative.
2773                 (truncdihi2, truncdiqi2): Likewise.
2774                 Rework shift/truncate instructions so that they only handle right
2775                 shifts of 32 (or more, in the case of arithmetic shifts).
2776                 Add patterns for truncate/sign-extend.
2777
2778         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2779
2780                 * configure.in (mips*-*-*): Check for explicit relocation support.
2781                 * configure: Regenerate.
2782
2783         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2784
2785                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
2786                 and -mno-explicit-relocs.
2787                 (MASK_EXPLICIT_RELOCS): Define.
2788                 (TARGET_EXPLICIT_RELOCS): Use it.
2789                 (mips_split_addresses): Remove declaration.
2790                 * config/mips/mips.c (override_options): Update comment for
2791                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
2792
2793         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2794
2795                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
2796                 a CONST as identity.  Check the return value of gen_lowpart_common.
2797
2798         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2799
2800                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
2801                 references for TARGET_EXPLICIT_RELOCS.
2802                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
2803                 !TARGET_MIPS16.
2804
2805         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2806
2807                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
2808                 (addsi3): Remove redundant constraints.
2809                 (addsi3_internal): Use separate register & constant alternatives.
2810                 Use a 'Q' constraint and "addiu" insn for the latter.
2811                 (adddi3_internal_3, addsi3_internal_2): Likewise.
2812
2813         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2814
2815                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
2816                 (mips_expand_unaligned_store): Declare.
2817                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
2818                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
2819                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
2820                 (UNSPEC_ULD, UNSPEC_USD): Remove.
2821                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
2822                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
2823                 (extv, extzv): Use mips_expand_unaligned_load.
2824                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
2825                 predicate for operand 3.
2826                 (movsi_ulw, movsi_usw): Replace with...
2827                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
2828                 (movdi_uld, movdi_usd): Likewise replace with...
2829                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
2830
2831         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
2832
2833                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
2834                 * config/mips/mips.h (LEA_REGS): New register class.
2835                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
2836                 (GR_REG_CLASS_P): Include LEA_REGS.
2837                 (DANGEROUS_FOR_LA25_P): New macro.
2838                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
2839                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
2840                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
2841                 entries to LEA_REGS.
2842                 (mips_global_pic_constant_p): New function.
2843                 (override_options): Add 'e' register constraint.
2844                 (mips_secondary_reload_class): Return LEA_REGS when reloading
2845                 a dangerous constant into a class containing $25.
2846                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
2847                 (movsi_internal): Likewise.
2848
2849         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
2850
2851                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
2852                 * config/mips/mips.md (call_split): New insn.
2853                 (call_value_split, call_value_multiple_split): New insns.
2854                 (call_internal): Turn into a define_insn_and_split.  Split the
2855                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
2856                 (call_value_internal, call_value_multiple_internal): Likewise.
2857
2858         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
2859
2860                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
2861                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
2862                 (mips_encode_section_info): Don't take symbol visibility into
2863                 account if TARGET_ABICALLS.  Add more commentary.
2864                 * config/mips/mips.md: Add commentary above reloc constants.
2865
2866         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
2867
2868                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
2869                 from mips_legitimize_move.  Legitimize constant pool references.
2870                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
2871                 a REG_EQUAL note to the last instruction.
2872
2873         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
2874
2875                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
2876                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
2877                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
2878                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
2879                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
2880                 (UNSPEC_RELOC_GPREL16): Rename to...
2881                 (RELOC_GPREL16): ...this.
2882                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
2883                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
2884                 (macro_calls): New attribute.
2885                 (length): Use it to set the default length of calls.  Don't allow
2886                 calls to have delay slots if macro_calls is "yes".
2887                 (luisi, luidi): New patterns.
2888                 (lowsi, lowdi): Use '%R' to print the relocation.
2889                 (lowdi_extend): Remove.
2890                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
2891                 (call_internal): Merge alternatives.  Always use "jal".
2892                 (call_value_internal, call_value_multiple_internal): Likewise.
2893                 (reloc_gprel16): Remove.
2894                 * config/mips/mips.c (mips_got_alias_set): New variable.
2895                 (mips_classify_constant): Handle the new relocation constants.
2896                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
2897                 (mips_symbolic_address_p): Return false if generating explicit relocs.
2898                 Otherwise allow local PIC symbols to have an offset.
2899                 (mips_splittable_symbol_p): New function.
2900                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
2901                 (mips_const_insns): Always accept HIGH.
2902                 (call_insn_operand): Don't accept global symbols if using explicit
2903                 relocs.
2904                 (move_operand): Don't accept HIGH when generating PIC.
2905                 (mips_reloc, mips_lui_reloc): New functions.
2906                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
2907                 be a valid right-hand-side for a SET pattern.
2908                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
2909                 (mips_emit_high): New function.
2910                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
2911                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
2912                 address should be used.  Use mips_emit_high to generate the
2913                 high part of such an address.  Adjust the global symbol + offset
2914                 case to match the change to mips_force_temprorary.
2915                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
2916                 If generating explicit-reloc PIC, load the address of global
2917                 symbols from the GOT.  Use mips_emit_high to emit the high part
2918                 of an address.
2919                 (mips_simplify_dwarf_addr): New function.
2920                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
2921                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
2922                 (mips_expand_call): Load the addresses of global functions using
2923                 %call* relocs if generating explicit-reloc PIC.  Don't generate
2924                 an exception_receiver pattern.
2925                 (override_options): Initialize mips_got_alias_set.
2926                 (print_relocation): Remove in favour of...
2927                 (mips_reloc_string): ...this new function.
2928                 (print_operand): Handle '%R'.  Use mips_reloc_string.
2929                 (print_operand_address): Use print_operand to print the symbolic
2930                 part of a LO_SUM address.
2931                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
2932                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
2933                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
2934                 for local symbols.
2935
2936         2003-02-02  Eric Christopher  <echristo@redhat.com>
2937
2938                 * config/mips/mips.c (mips_sign_extend): Remove.
2939                 * config/mips/mips-protos.h: Ditto.
2940                 * config/mips/mips.md (movdi_internal2_extend): Remove.
2941                 (extendsidi2): Fix mode of convert_memory_address.
2942
2943         2003-01-24  Eric Christopher  <echristo@redhat.com>
2944
2945                 * config/mips/mips.md: Rewrite zero_extend* and extend*
2946                 patterns. Use explicit instructions and split after reload
2947                 for register extensions.
2948                 (ashlsi3_internal1_extend): New combiner pattern for
2949                 shift and extend combinations.
2950                 * config/mips/mips.h: Change Pmode back to ptr_mode
2951                 for performance enhancement.
2952                 * combine.c (expand_compound_operation): Make sure
2953                 that zero_extend operation is profitable.
2954
2955         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
2956
2957                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
2958                 addresses depend on ptr_mode rather than Pmode.
2959                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
2960                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
2961                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
2962                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
2963                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
2964                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
2965                 (tablejump_internal1): Remove condition.
2966                 (tablejump_internal2): Change condition to TARGET_64BIT.
2967                 (cpaddsi): Rename to...
2968                 (cpadd): ...this.
2969                 (cpadddi): Remove.
2970
2971         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
2972
2973                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
2974                 mips_address_cost, mips_check_split, double_memory_operand,
2975                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
2976                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
2977                 (mips_legitimate_address_p): Return bool.
2978                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
2979                 mips_legitimize_address, mips_legitimize_move,
2980                 mips_expand_call): Declare.
2981                 (mips_return_addr): Move outside #ifdef RTX_CODE.
2982
2983                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
2984                 (PIC_FN_ADDR_REG): New reg_class.
2985                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
2986                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
2987                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
2988                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
2989                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
2990                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
2991                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
2992                 (LEGITIMATE_PIC_OPERAND): Undefine.
2993                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
2994                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
2995                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
2996                 (FUNCTION_MODE): Change to SImode.
2997                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
2998                 most constants.  Treat const_artih_operands specially if they
2999                 occur in a PLUS or MINUS.
3000                 (CONSTANT_POOL_COST): New macro.
3001                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
3002                 Add LO_SUM handling.
3003                 (ADDRESS_COST): Undefine.
3004                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
3005                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
3006                 to call_insn_operand and remove CONST_INT.
3007
3008                 * config/mips/mips.c: Include integrate.h.
3009                 (SINGLE_WORD_MODE_P): New macro.
3010                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
3011                 (mips_constant_info, mips_address_info): New structs.
3012                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
3013                 (mips_classify_constant, mips_classify_symbol,
3014                 mips_valid_base_register_p, mips_symbolic_address_p,
3015                 mips_classify_address, mips_symbol_insns,
3016                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
3017                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
3018                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
3019                 mips_print_relocation): New functions.
3020                 (const_arith_operand): New operand predicate.
3021                 (arith_operand): Use it.
3022                 (mips_const_double_ok, mips16_simple_memory_operand,
3023                 simple_memory_operand, double_memory_operand, mips_check_split,
3024                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
3025                 mips16_gp_offset_p, mips16_output_gp_offset,
3026                 mips16_constant_after_function_p, mips16_constant): Remove.
3027                 (call_insn_operand): Be more fussy about symbolic constants.
3028                 Use register_operand.
3029                 (move_operand): Use mips_symbolic_address_p to check symbolic
3030                 operands and general_operand to check the rest.
3031                 (symbolic_operand): Use mips_classify_constant.
3032                 (mips_legitimate_address_p): Use mips_classify_address.
3033                 (mips_move_1word): Combine handling of symbolic addresses.
3034                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
3035                 (move_move_2words): Likewise.  Assume addresses are offsettable
3036                 if they need to refer to more than one word.  Add HIGH handling.
3037                 (mips_restore_gp): Use ptr_mode for the GP save slot.
3038                 (mips_expand_call): New function, combining the old mips.md
3039                 call and call_internal define_expands.  If the address isn't
3040                 a call_insn_operand, force it into a register.  For SVR4 PIC,
3041                 emit an exception_receiver instruction after the call.
3042                 (override_options): Only override flag_pic for TARGET_ABICALLS
3043                 if it is currently zero.  Allow mips_split_addresses when
3044                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
3045                 Add new register class letter, 'c'.
3046                 (print_operand): Use mips_classify_constant for constant operands.
3047                 (print_operand_address): Use mips_classify_address.
3048                 (mips_output_function_prologue): Don't use .cprestore.
3049                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
3050                 via the frame pointer if current_function_calls_eh_return.
3051                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
3052                 to mark whether a symbol is local or global.
3053                 (build_mips16_call_stub): Expect the address of the function rather
3054                 than a MEM reference to it.  Update call generation sequences.
3055                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
3056                 small-data adjustments.
3057
3058                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
3059                 length for loads and stores.
3060                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
3061                 (define_attr type): Add const and prefetch.
3062                 (define_attr length): Use mips_const_insns for const instructions.
3063                 Use mips_fetch_insns for load and store instructions.
3064                 (define_attr single_insn): New.
3065                 (define_attr can_delay): Use it.
3066                 (define_attr abicalls): Remove.
3067                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
3068                 (addsi3_internal_2): Add 'Q' constraint.
3069                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
3070                 (high): Remove.
3071                 (lowsi): Renamed from low.
3072                 (lowdi): New pattern.
3073                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
3074                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
3075                 (loadgp): Change operand 0 to an immediate_operand.
3076                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
3077                 beforehand.
3078                 (cpaddsi, cpadddi): New patterns.
3079                 (tablejump_internal3, tablejump_internal4): Remove define_expands
3080                 and associated define_splits.
3081                 (call, call_value): Use mips_expand_call.
3082                 (call_internal): New, replacing all existing call_internal* insns.
3083                 (call_value_internal): Likewise call_value_internal*.
3084                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
3085                 (untyped_call): Remove if (operands[0]) magic.
3086                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
3087                 (prefetch_di_address, prefetch_di): Likewise.
3088                 (leasi, leadi): Remove.
3089                 (reloc_gprel16): New.
3090
3091                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
3092                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
3093                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
3094
3095         2003-01-08  Eric Christopher  <echristo@redhat.com>
3096
3097                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
3098                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
3099                 configure check for libgloss.
3100                 * config/mips/elf64.h: Ditto.
3101                 * config/mips/mips.c: Remove ABI_MEABI.
3102                 * config/mips/mips.h: Ditto.
3103
3104         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
3105
3106                 Fix merge fallout.
3107                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
3108                 (muldi3_internal): Remove outdated comment.
3109                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
3110                 (*smsac_di, *umsac_di): Likewise.  Reformat.
3111                 (umulsi3_highpart): Minor formatting tweaks.
3112                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
3113                 redundant scratch operand.  Minor formatting tweak.
3114                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
3115                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
3116                 (smulsi3_highpart): As for the unsigned version.
3117                 (smulsi3_highpart_internal): Likewise.
3118                 (smulsi3_highpart_mulhi_internal): Likewise.
3119                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
3120                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
3121                 (*smul_acc_di): Remove duplicated pattern.
3122                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
3123                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
3124                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
3125
3126         2002-10-22  Eric Christopher  <echristo@redhat.com>
3127
3128                 * config/mips/mips-protos.h (mips_return_addr): New.
3129                 * config/mips/mips.c (mips_return_addr): New.
3130                 (movdi_operand): Remove.
3131                 (se_register_operand): Ditto.
3132                 (se_reg_or_0_operand): Ditto.
3133                 (se_uns_arith_operand): Ditto.
3134                 (se_arith_operand): Ditto.
3135                 (se_nonmemory_operand): Ditto.
3136                 (extend_operator): Ditto.
3137                 (highpart_shift_operator): Ditto.
3138                 (mips_initial_elimination_offset): Remove return address pointer
3139                 elimination.
3140                 (mips_reg_names): Remove $ra.
3141                 (mips_regno_to_class): Ditto.
3142                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
3143                 and TARGET_64BIT.
3144                 (POINTER_BOUNDARY): Remove.
3145                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
3146                 (PROMOTE_MODE): Promote to Pmode.
3147                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
3148                 (Pmode): Define to TARGET_64BIT.
3149                 (FUNCTION_MODE): Define as Pmode.
3150                 (mips_args): Remove deleted functions.
3151                 (SIZE_TYPE): Depend on POINTER_SIZE.
3152                 (PTRDIFF_TYPE): Ditto.
3153                 (FIXED_REGISTERS): Fix extra registers.
3154                 (CALL_USED_REGISTERS): Ditto.
3155                 (CALL_REALLY_USED_REGISTERS): Ditto.
3156                 (RAP_REG_NUM): Remove.
3157                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
3158                 (RETURN_ADDR_RTX): Define to mips_return_addr.
3159                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
3160                 (CAN_ELIMINATE): Ditto.
3161                 * config/mips/mips.md: For DImode patterns, take into account
3162                 deletions above. Split mulsidi patterns into sign_extend and
3163                 zero_extend.
3164
3165         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
3166                     Michael Meissner  <meissner@redhat.com>
3167
3168                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
3169                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
3170                 mop up unnecessarly moves through LO.
3171                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
3172                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
3173                 change mtlo/macc sequences into mul/add sequences when a three-
3174                 address mul is available.
3175                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
3176                 (*mul_sub_si): Fix contraint for operand 5.
3177                 (*muls): Use in 32-bit code as well.
3178                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
3179                 if the destination is LO.  Remove duplicate define_split.
3180                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
3181                 (*msac_di): Likewise.  Fix formatting.
3182                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
3183                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
3184                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
3185                 (*xmulsi3_neg_highpart_mulhi): Likewise.
3186                 (*mul_acc_64bit_di): Remove.
3187                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
3188
3189         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
3190
3191                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
3192                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
3193                 (MULTILIB_DIRNAMES): Remove long32.
3194                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
3195                 (MULTILIB_REDUNDANT_DIRS): Remove.
3196
3197         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
3198
3199                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
3200                 * gcc.c (driver_self_specs): New variable.
3201                 (do_self_spec): New function.
3202                 (main): Use it to process driver_self_specs.
3203
3204         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
3205
3206                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
3207                 Remove DImode define_split for !TARGET_64BIT.
3208                 (anddi3): Remove !TARGET_64BIT support from here as well.
3209                 Change operand 2's predicate to se_uns_arith_operand.
3210                 Add constant alternatives to define_insn.
3211                 (iordi3, xordi3, *nordi3): Likewise.
3212                 (anddi3_internal1, xordi3_immed): Remove.
3213
3214         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3215
3216                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
3217                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
3218                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
3219                 * config/mips/mips.md: Apply same renaming here.
3220
3221         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3222
3223                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
3224                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
3225                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
3226                 * config/mips/mips.md (define_attr cpu): Remove r4320.
3227                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
3228
3229         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3230
3231                 * config/mips/mips.c (mips16_strings): New variable.
3232                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
3233                 symbol in mips16_strings.  Free the list.
3234                 (mips_encode_section_info): Keep track of local strings.
3235
3236         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3237
3238                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
3239                 (sordered_df, sordered_sf): Remove.
3240                 * config/mips/mips.c (get_float_compare_codes): New fn.
3241                 (gen_int_relational, gen_conditional_move): Use it.
3242
3243         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3244
3245                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
3246                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
3247                 * config/mips/mips.c (fcc_register_operand): New function.
3248                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
3249                 (override_options): Allow TFmode values in float registers
3250                 if ISA_HAS_8CC.
3251                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
3252                 to fcc_register_operand.  Remove misleading source constraint.
3253                 Use mips_emit_fcc_reload.
3254                 (reload_outcc): Duplicate reload_incc.
3255
3256
3257 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
3258
3259         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
3260
3261 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
3262
3263         * tree-inline.c (inlinable_function_p): Back out last change, it's
3264         unnecessary.
3265
3266 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
3267
3268         * ggc-page.c (TREE_EXP_SIZE): Define.
3269         (extra_order_size_table): New entry for expr trees with
3270         two operands.
3271
3272 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3273
3274         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
3275         (c_expand_start_cond): Adjust.
3276         (c_expand_end_cond): Don't use warning_with_file_and_file.
3277         (shadow_warning): Likewise.
3278
3279 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
3280
3281         * tree.h (DECL_POINTER_DEPTH): Remove.
3282         (struct tree_decl): Remove pointer_depth.
3283
3284 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
3285
3286         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
3287         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
3288         (rs6000_xcoff_encode_section_info): Remove.
3289         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
3290         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
3291         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
3292         Use SYMBOL_REF_FLAGS.
3293         (rs6000_elf_encode_section_info): Call default_encode_section_info for
3294         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
3295         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
3296         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
3297         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
3298         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
3299
3300 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3301
3302         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
3303
3304 2003-04-30  Andreas Schwab  <schwab@suse.de>
3305
3306         * doc/extend.texi (Other Builtins): Enclose multiple word data
3307         type in braces for @deftypefn.
3308
3309 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3310
3311         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
3312
3313         * doc/install.texi (--enable-threads): Document "gnat" option.
3314
3315 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3316
3317         * diagnostic.h (output_formatted_scalar): Tweak.
3318         * diagnostic.c (output_long_decimal): Likewise.
3319         (output_unsigned_decimal): Likewise.
3320         (output_long_unsigned_decimal): Likewise.
3321         (output_octal): Likewise.
3322         (output_long_octal): Likewise.
3323         (output_hexadecimal): Likewise.
3324         (output_long_hexadecimal): Likewise.
3325         (output_pointer): New function.
3326         (output_format): Use it.  Recognize "%p" format specifier.
3327
3328 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3329
3330         * function.c (purge_addressof_1): Postpone insn in fewer cases.
3331
3332 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
3333
3334         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
3335         call abort() after running out of stack space.
3336
3337         * c-typeck.c (function_types_compatible_p): Ignore incompatible
3338         'volatile' qualifiers on a function's return type in GNU mode.
3339
3340 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
3341
3342         * expr.c (emit_group_load): Dump parallels of simd types to
3343         memory.
3344
3345 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
3346
3347         * genautomata.c (add_vect): Check undefined value for range type
3348         too.
3349
3350 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
3351
3352         * configure.in:  More general test for cmp --ignore-initial.
3353         * configure:  Regenerate.
3354
3355 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3356
3357         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
3358         (layout_decl, place_field): Likewise.
3359         Also make minor type and whitespace changes.
3360
3361         * tree.c (save_expr): Don't fold a COMPONENT_REF.
3362
3363 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
3364
3365         * calls.c (expand_call): When modes of target and valreg match, force
3366         sibcall failure when target is a MEM.
3367
3368 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
3369
3370         * tree-inline.c (inlinable_function_p): Don't support inlining
3371         functions using varargs.
3372
3373         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
3374
3375         * dwarf2out.c (output_call_frame_info): No need to output EH
3376         unwind information if all_throwers_are_sibcalls.
3377
3378         * c-semantics.c (expand_unreachable_stmt): Return a tree.
3379         (expand_stmt): Update for change to expand_unreachable_stmt.
3380         (expand_unreachable_if_stmt): Likewise.
3381
3382         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
3383
3384 2003-04-29  Jason Merrill  <jason@redhat.com>
3385
3386         PR middle-end/10336
3387         * jump.c (never_reached_warning): Really stop looking if we reach
3388         the beginning of the function.
3389
3390 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
3391
3392         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
3393         Remove redundant macros.
3394         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
3395         (LOCAL_LABEL_PREFIX): Define unconditionally.
3396         (NO_DOT_IN_LABEL): Clarify comment.
3397         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
3398         definition to "long int".
3399
3400 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
3401
3402         bootstrap/10452
3403         * gengtype-yacc.y: Improve portability.
3404
3405 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
3406
3407         * config.gcc: Install obsolete target list for GCC 3.3.
3408         * doc/install.texi: Mention in specific-target instructions
3409         that certain configurations are deprecated.
3410
3411 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
3412
3413         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
3414
3415 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3416
3417         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
3418         * gcc.c (display_help): Likewise.
3419         * toplev.c (f_options): Likewise.
3420         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
3421         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
3422         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
3423         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
3424         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
3425
3426 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
3427
3428         * varasm.c (default_assemble_visibility): Use assemble_name.
3429
3430 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
3431
3432         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
3433         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
3434         (SIZE_TYPE): New macro.
3435         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
3436         (SET_ASM_OP): New macro.
3437         (HANDLE_SYSV_PRAGMA): New macro.
3438         (ASM_WEAKEN_LABEL): New macro.
3439
3440 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
3441
3442         PR c++/10180
3443         * tree-inline.c (expand_call_inline): Call push_srcloc when
3444         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
3445
3446 2003-04-28  Mike Stump  <mrs@apple.com>
3447
3448         * gdbinit.in: Update to reflect new identifier structure.
3449
3450 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
3451
3452         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
3453         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
3454         struct tree_complex, struct tree_vector): Remove RTL field.
3455         (CONSTRUCTOR_ELTS): Use elt 0.
3456         * tree.def (CONSTRUCTOR): Delete first of its two operands.
3457         * varasm.c (output_constant_def): Remove early exit if
3458         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
3459         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
3460         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
3461         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
3462
3463 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
3464
3465         * c-decl.c (finish_decl): When prototype with asmspec is found
3466         for built-in, adjust built_in_decls as well as expr.c decls.
3467         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
3468         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
3469         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
3470
3471 2003-04-28  Richard Henderson  <rth@redhat.com>
3472
3473         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
3474         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
3475         integral constant mult operand.
3476         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
3477         (const_smulsi3_highpart_v8plus): Likewise.
3478         (const_smulsi3_highpart): Likewise.
3479         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
3480         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
3481         (const_umulsi3_highpart_v8plus): Likewise.
3482         (const_umulsi3_highpart): Likewise.
3483
3484 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
3485
3486         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
3487         Define as 1.
3488
3489 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
3490
3491         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
3492
3493 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
3494
3495         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
3496         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
3497         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
3498         functions.
3499         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
3500
3501 2003-04-28  Nick Clifton  <nickc@redhat.com>
3502
3503         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
3504
3505 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
3506
3507         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
3508         output_constant_def, use its result instead of TREE_CST_RTL (exp).
3509         Can assume it has the form (mem (symbol_ref ".LCxxx")).
3510         (expand_expr <COMPONENT_REF>): Can always just extract the
3511         relevant field of a CONSTRUCTOR.
3512         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
3513         ARRAY_RANGE_REF>): Make control flow explicit.
3514         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
3515         an INTEGER_CST.
3516
3517 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
3518
3519         * reload1.c (reg_set_luid): Fix a comment typo.
3520
3521 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
3522
3523         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
3524         struct deferred_string, const_str_htab): Kill.
3525         (n_deferred_strings): New static variable.
3526         (build_constant_desc): Set SYMBOL_REF_DECL of the new
3527         symbol_ref to point to the constant.
3528         (output_constant_def): When a deferred string is forced out,
3529         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
3530         (mark_constant): Likewise.
3531         (maybe_output_constant_def_contents): When deferring a string
3532         constant, just set STRING_POOL_ADDRESS_P and increment
3533         n_deferred_strings.
3534         (mark_constant_pool): Check n_deferred_strings, not the size
3535         of const_str_htab.
3536         (init_varasm_once): No need to create const_str_htab.
3537
3538         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
3539         SYMBOL_REF_DECL points to a constant.
3540
3541 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
3542
3543         * varasm.c (output_constant_def): Split out two new static
3544         functions, build_constant_desc and maybe_output_constant_def_contents.
3545         Restructure for comprehensibility.  Don't call
3546         output_addressed_constants.  Treat defstr being non-NULL for
3547         STRING_POOL_ADDRESS_P constants as an invariant.
3548         (struct deferred_string): Remove labelno field.
3549         (output_constant_def_contents): Kill labelno argument. Call
3550         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
3551         asm_out.internal_label.
3552         (mark_constant): Update call to output_constant_def_contents.
3553         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
3554         constants as an invariant.
3555
3556 2003-04-26  Richard Henderson  <rth@redhat.com>
3557
3558         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
3559         (ix86_expand_call, ix86_rtx_consts): Likewise.
3560
3561 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3562
3563         * doc/md.texi (cmpstr): Document additional restrictions.
3564
3565 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
3566
3567         * flags.h (time_report): Remove.
3568         * timevar.c (timevar_enable): New.
3569         (TIMEVAR_ENABLE): Remove, use timevar_enable.
3570         (timevar_init): Rename from init_timevar.
3571         * timevar.h (timevar_init): Rename from init_timevar.
3572         * toplev.c (time_report): Make static.
3573         (do_compile): Conditionally call init_timevar first.
3574         (preprocess_options): Move some code to do_compile.
3575
3576 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
3577
3578         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
3579
3580 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
3581
3582         * _cpp_lex_direct: Remove pointless code.
3583
3584 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
3585
3586         * doc/extend.texi (Function Attributes): Document "near" and "far"
3587         for 68HC11 and 68HC12.
3588
3589 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3590
3591         * expr.c (store_field): When making temporary for store, don't
3592         make it TYPE_QUAL_CONST.
3593
3594 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
3595
3596         * toplev.c (read_integral_parameter):  Use "argument" in error
3597         message to distinguish it from actual invalid options.
3598
3599 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
3600
3601         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
3602         addition of __PIC__ and __pic__ macros.
3603         * config/xtensa/xtensa.h: Clean up indentation.
3604
3605 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
3606
3607         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
3608         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
3609         (SUBTARGET_CPP_SPEC): Define.
3610         (LIB_SPEC): Delete.
3611         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
3612         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
3613         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
3614         Define.
3615         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3616         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
3617
3618 2003-04-25  H.J. Lu <hjl@gnu.org>
3619
3620         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
3621         for return mode.
3622         (ia64_expand_builtin): Set rmode to SImode for
3623         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
3624         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
3625         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
3626         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
3627
3628 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
3629
3630         * configure.in (make_compare_target):  Test for GNU cmp and set this
3631         variable appropriately.
3632         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
3633         compare4-lean): Rename actual targets to slowcompare*.  New compare*
3634         targets depend on names based on make_compare_target.
3635         * configure:  Regenerated.
3636
3637 2003-04-25  Richard Henderson  <rth@redhat.com>
3638
3639         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
3640         to clobber ar.pfs and ar.unat.
3641         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
3642         fix test for spilling ar.pfs to the stack.
3643
3644 2003-04-25  Richard Henderson  <rth@redhat.com>
3645
3646         PR opt/10315
3647         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
3648         checks during reload; use validize_mem instead of adjust_address.
3649
3650 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
3651
3652         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
3653         return values from recog_memoized().
3654
3655 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3656
3657         PR opt/8705
3658         * gcse.c (try_replace_reg): On a successful substitution of a constant
3659         into a single set, try to simplify the source of the set.
3660         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
3661         constant source.
3662
3663 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
3664
3665         * cpplex.c (cpp_token_len): Tighten up.
3666         (cpp_token_as_text): Need extra byte now.
3667         * cpplib.c (glue_header_name): Need extra 2 bytes.
3668         * cppmacro.c (cpp_macro_definition): Need extra byte.
3669
3670 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
3671
3672         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
3673         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
3674         where they might be not present. Use their _sp64 equivalent
3675         instead.
3676
3677 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
3678
3679         * i386.md (cvtsi2sdq): Fix typo in previous patch.
3680
3681 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
3682
3683         * configure.in: Check whether mbstowcs works.
3684         * configure, config.in: Regenerate.
3685         * intl.c: Use HAVE_WORKING_MBSTOWCS.
3686
3687 2003-04-24  H.J. Lu <hjl@gnu.org>
3688
3689         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
3690         for __sync_bool_compare_and_swap_di for int return type.
3691
3692         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
3693         Change return type to int.
3694         (__sync_bool_compare_and_swap): Likewise.
3695
3696 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
3697
3698         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
3699         looking for fallthru edge.
3700
3701         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
3702         Fix.
3703         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
3704         athlon-fvector): New.
3705         (athlon_*): Revisit to match new optimization guide.
3706         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
3707         * i386.md (cvt??2?? patterns): Fix modes.
3708         (fistp patterns): Set modes.
3709
3710         Accidentaly commited with my earlier reload patch:
3711         PR c/10308
3712         * reload.c (find_reloads_address_1): Reload plus at the place of
3713         index register.
3714
3715 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
3716
3717         New GCOV_TAG_FUNCTION layout
3718         * coverage.c (struct function_list): Replace name with ident.
3719         (struct counts_entry): Likewise.
3720         (fn_ident): New.
3721         (htab_counts_entry_hash, htab_counts_entry_eq,
3722         htab_counts_entry_del): Adjust.
3723         (reads_count_file, get_coverage_counts,
3724         coverage_begin_output, coverage_end_function): Adjust.
3725         (build_fn_info_type, build_fn_info_value): Likewise.
3726         * gcov-dump.c (tag_function): Adjust.
3727         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
3728         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
3729         * gcov.c (struct function_info): Add ident.
3730         (read_graph_file, read_count_file): Adjust.
3731         * libgcov.c (gcov_exit): Adjust.
3732
3733 2003-04-23  Richard Henderson  <rth@redhat.com>
3734
3735         PR opt/8300
3736         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
3737         after initialize_uninitialized_subregs; update reg info assuming
3738         new pseudos were created.
3739
3740 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
3741
3742         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
3743         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
3744         (lex_string): Take cpp_string with full spelling.
3745         (cb_ident): Update.
3746         (c_lex): Update diagnostics.
3747         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
3748         (create_literal): New.
3749         (lex_string): Unterminated literals have type CPP_OTHER.
3750         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
3751         for CPP_OTHER.
3752         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
3753         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
3754         * cpplib.c (parse_include, do_line, do_linemarker,
3755         destringize_and_run): Update for token storing full spelling.
3756         * cpplib.h: Update token spelling types.
3757         * cppmacro.c (stringify_arg, check_trad_stringification):
3758         Update for token storing full spelling.
3759
3760 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
3761
3762         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
3763
3764 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
3765
3766         * arm.h (TARGET_OPTIONS): Add value field.
3767
3768 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
3769
3770         * doc/extend.texi: Remove duplicate 2003 copyright date.
3771
3772 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
3773
3774         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
3775         (libgcov.a): Depends on LIBGCC_DEPS.
3776         * basic-block.h (profile_info): Moved here from coverage.h. Made
3777         a pointer.
3778         * coverage.c (struct function_list): Fixed array of counter types.
3779         (struct counts_entry): Keyed by counter type, contains summary.
3780         (profile_info): Moved to profile.c.
3781         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
3782         vars.
3783         (profiler_label): Remove.
3784         (ctr_labels): New.
3785         (set_purpose, label_for_tag, build_counter_section_fields,
3786         build_counter_section_value, build_counter_section_data_fields,
3787         build_counter_section_data_values, build_function_info_fields,
3788         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
3789         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
3790         build_ctr_info_value, build_gcov_info): New.
3791         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
3792         (reads_counts_file): Adjust.
3793         (get_coverage_counts): Takes counter number. Add summary
3794         parameter. Adjust.
3795         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
3796         create counter array labels.
3797         (coverage_end_function): Adjust.
3798         (create_coverage): Adjust.
3799         (find_counters_section): Remove.
3800         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
3801         (struct section_info, struct profile_info): Remove.
3802         (profile_info): Moved to basic-block.h.
3803         (coverage_counter_ref): Takes a counter number.
3804         (get_coverage_counts): Takes a counter number. Added summary
3805         parameter.
3806         (find_counters_section): Remove.
3807         * gcov-dump.c (tag_arc_counts): Rename to ...
3808         (tag_counters): ... here. Adjust.
3809         (tag_table): Move tag_counters to 3rd entry. Remove
3810         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
3811         (dump_file): Check for counter tag values here.
3812         (tag_summary): Adjust.
3813         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
3814         * gcov-io.h (GCOV_LOCKED): New.
3815         (GCOV_TAG_ARC_COUNTS): Rename to ...
3816         (GCOV_TAG_COUNTS_BASE): ... here.
3817         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
3818         Remove.
3819         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
3820         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
3821         GCOV_TAG_IS_COUNTER): New.
3822         (struct gcov_ctr_summary): New.
3823         (struct gcov_summary): Adjust.
3824         (struct gcov_counter_section): Remove.
3825         struct gcov_counter_section_data): Remove.
3826         (struct gcov_function_info): Rename to ...
3827         (struct gcov_fn_info): ... here. Adjust.
3828         (struct gcov_ctr_info): New.
3829         (struct gcov_info): Adjust.
3830         * gcov.c (read_count_file): Adjust.
3831         (output_lines): Adjust.
3832         * libgcov.c (gcov_exit): Adjust.
3833         (__gcov_flush): Adjust.
3834         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
3835         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
3836         probably_never_executed_bb_p, compute_frequency_function): Adjust
3837         profile_info use.
3838         * profile.c (struct counts_entry): Remove.
3839         (profile_info): Define here.
3840         (get_exec_counts): Adjust get_coverage_counts call.
3841         (compute_branch_probablilities): Remove find_counters_section
3842         call.
3843         (gen_edge_profiler): Adjust coverage_counter_ref call.
3844         * tracer.c (tail_duplicate): Adjust profile_info use.
3845
3846 2003-04-23  Roger Sayle  <roger@eyesopen.com>
3847
3848         PR optimization/10339
3849         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
3850         directly instead of unsafely transforming call into a memcmp.
3851         (expand_builtin_strncmp): Likewise.
3852
3853 2003-04-22  Roger Sayle  <roger@eyesopen.com>
3854
3855         * alias.c (mark_constant_function):  Check for constancy and
3856         purity even of void functions.  Update both the function decl
3857         and the cgraph RTL info with the results.
3858
3859 2003-04-22  Roger Sayle  <roger@eyesopen.com>
3860
3861         * real.c (do_add): Change to return a bool indicating that the
3862         result of the operation may be inexact due to loss of precision.
3863         (do_multiply): Likewise.
3864         (do_divide): Likewise.
3865
3866 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
3867             Loren James Rittle  <ljrittle@acm.org>
3868
3869         * dwarf2out.c (fde_table_allocated): Mark with GTY.
3870         (decl_die_table_allocated): Likewise.
3871         (abbrev_die_table_allocated): Likewise.
3872         (line_info_table_allocated): Likewise.
3873         (separate_line_info_table_allocated): Likewise.
3874         (pubname_table_allocated): Likewise.
3875         (arange_table_allocated): Likewise.
3876         (ranges_table_allocated): Likewise.
3877         (decl_die_table_in_use): Unconditionalize; mark with GTY.
3878         (abbrev_die_table_in_use): Likewise.
3879         (line_info_table_in_use): Likewise.
3880         (separate_line_info_table_in_use): Likewise.
3881         (pubname_table_in_use): Likewise.
3882         (arange_table_in_use): Likewise.
3883         (ranges_table_in_use): Likewise.
3884         (have_location_lists): Likewise.
3885         (emitcount): New GTY-marked static, moved...
3886         (maybe_emit_file): ...from here.
3887         (label_num): New GTY-marked static, moved...
3888         (gen_internal_sym): ...from here.
3889
3890 2003-04-22  Richard Henderson  <rth@redhat.com>
3891
3892         PR 8866
3893         * rtl.h (MEM_NOTRAP_P): New.
3894         (MEM_COPY_ATTRIBUTES): Copy it.
3895         * rtlanal.c (may_trap_p): Check it.
3896         * expr.c (do_tablejump): Set it.
3897         * doc/rtl.texi (Flags): Document it.
3898
3899         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
3900
3901 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
3902
3903         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
3904         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
3905
3906 2003-04-22  Vincent Celier <celier@gnat.com>
3907
3908         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
3909         --enable-threads=gnat.
3910         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
3911         * configure.in: Add gnat to the list of thread packages
3912         * configure: Rebuild.
3913         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
3914
3915 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
3916
3917         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
3918
3919 2003-04-22  Devang Patel  <dpatel@apple.com>
3920
3921         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
3922         parameter count.
3923         (_cpp_copy_replacement_text): Same.
3924
3925 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
3926
3927         * c-lex.c (c_lex): Handle CPP_OTHER differently.
3928         * cppexp.c (_cpp_parse_expr): Similarly.
3929         * cpplex.c (SPELL_CHAR): Remove.
3930         (_cpp_lex_direct): Stray chars are saved as byte strings.
3931         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
3932         handle SPELL_CHAR.
3933         (cpp_avoid_paste): Update handling of CPP_OTHER.
3934         * cpplib.h: Spell CPP_OTHER like a number.
3935         (struct cpp_token): Remove member c.
3936         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
3937
3938 2003-04-22  David Turner <novalis@gnu.org>
3939
3940         * gbl-ctors.h: Add special license exception.
3941         * libgcc2.h: Likewise.
3942         * tsystem.h: Likewise.
3943         * gcov-io.h: Likewise.
3944
3945 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
3946
3947         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
3948         macro defaulting to original BRANCH_COST heuristic.
3949         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
3950
3951         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
3952
3953 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
3954
3955         * config/rs6000/t-spe: Merge in t-fprules into file.
3956
3957         * config.gcc: Add t-spe to powerpc-eabispe.
3958
3959 2003-04-22  Kean Johnston  <jkj@sco.com>
3960
3961         * tlink.c (recompile_files): Add missing '=' to putenv calls
3962
3963 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
3964
3965         * ginclude/stddef.h: Provide C++ safe offsetof.
3966
3967 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
3968
3969         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
3970         for reg notes, if there are no substitutions, just use a SUBREG.
3971
3972 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
3973
3974         * Makefile.in (calls.o): Depend on except.h.
3975         * calls.c: Include except.h.
3976         (emit_call_1): Call note_eh_region_may_contain_throw if
3977         appropriate.
3978         * except.c (eh_region): Add may_contain_throw.
3979         (expand_eh_region_end_cleanup): Do not include handler code when
3980         it cannot be reached.
3981         (note_eh_region_may_contain_throw): New function.
3982         * except.h (note_eh_region_may_contain_throw): New function.
3983
3984 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
3985
3986         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
3987         changes.
3988
3989 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
3990
3991         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
3992         64-bit long doubles.
3993
3994 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
3995
3996         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
3997         a number of conversions required for type consistency and previously
3998         stripped off by STRIP_NOPS.
3999
4000         * calls.c (expand_call): Prevent sibcall optimization for calls to
4001         nested subprograms.
4002
4003         * expmed.c (extract_bit_field): Reverse operands of && condition to
4004         prevent a potential division by zero in the previously first branch.
4005         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
4006
4007 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
4008
4009         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
4010         (subrange_type_die): Likewise.
4011         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
4012         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
4013
4014 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
4015
4016         Break out coverage routines to new file.
4017         * Makefile.in (COVERAGE_H): New variable
4018         (C_OBJS): Add coverage.o
4019         (coverage.o): New target.
4020         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
4021         dependencies.
4022         (GTFILES): Adjust.
4023         (gt-coverage.h): New target.
4024         (gt-profile.h): Remove.
4025         * profile.h: Remove. Move to ...
4026         * coverage.h: ... here. New. #include gcov-io.h.
4027         * gcov-io.h: Move function definitions to ...
4028         * gcov-io.c: ... here. New.
4029         * profile.c: Move coverage routines to coverage.c.
4030         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
4031         end_branch_prob): Adjust.
4032         * coverage.c: New. Coverage routines from profile.c
4033         (coverage_counter_ref, coverage_init, coverage_finish,
4034         coverage_end_function, coverage_begin_output,
4035         coverage_counter_ref, get_coverage_counts): Define.
4036         * gcov-dump.c, gcov.c: #include gcov-io.c.
4037         * libgcov.c: Likewise. Adjust.
4038         * loop-init.c: Don't #include profile.h
4039         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
4040         * rtl.h: Add coverage prototypes.
4041         * toplev.c (compile_file): Init coverage, not branch_prob.
4042         Always call coverage_finish.
4043         (rest_of_compilation): Call coverage_end_function.
4044
4045 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
4046
4047         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
4048
4049 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
4050
4051         * c-ppoutput.c (cb_include): Don't take a cpp_token.
4052         * cppfiles.c: Don't undef strcmp.
4053         (find_include_file): Don't take a cpp_token.  Check for empty
4054         file names.
4055         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
4056         (cpp_push_include): Simplify.
4057         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
4058         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
4059         (parse_include): Similary.  Don't check for zero-length filenames.
4060         (do_include_common, do_pragma_dependency): Update accordingly.
4061         * cpplib.h (struct cpp_callbacks): Change prototype of include.
4062
4063 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4064
4065         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
4066         details of conflict handling.
4067
4068         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
4069         when conversion overflows.
4070
4071         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
4072
4073         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
4074         before clearing.
4075
4076 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
4077
4078         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
4079         have the same form as the old RTL.
4080
4081 2003-04-21  Andreas Jaeger  <aj@suse.de>
4082
4083         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
4084
4085 2003-04-20  Chris Lattner  <sabre@nondot.org>
4086             Zack Weinberg  <zack@codesourcery.com>
4087
4088         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
4089         genrtl_cleanup_stmt.  Correct comment at head of
4090         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
4091
4092         * stmt.c (struct nesting): Kill n_function_calls.
4093         (expand_start_bindings): Don't set
4094         thisblock->data.block.n_function_calls.
4095         (expand_end_bindings): Compare function_call_count against 0.
4096         (expand_cleanups): Kill DONT_DO argument; all callers passed
4097         NULL_TREE. All callers updated to match.
4098
4099 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
4100
4101         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
4102         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
4103         (output_constant_def): Remove code predicated on
4104         defer_addressed_constants_flag.
4105
4106         * output.h: Remove prototypes of deleted functions.
4107         * c-typeck.c (constructor_subconstants_deferred): Kill.
4108         (struct initializer_stack): Remove 'deferred' field.
4109         (start_init): Remove all references to the above.
4110         (finish_init): Likewise. Also remove never-executed call to
4111         output_deferred_addressed_constants.  Pull assignment to
4112         defstr out of if expression.
4113
4114 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
4115
4116         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
4117         NOTE_NEWLINE): Remove.
4118         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
4119         to handle new form of line note type.
4120
4121 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
4122
4123         * target.h (encode_section_info): Add new argument carrying
4124         the RTL to be modified by the hook.
4125
4126         * varasm.c (make_decl_rtl, output_constant_def): Update calls
4127         to encode_section_info.
4128         (default_encode_section_info): Take and use RTL argument,
4129         don't use TREE_CST_RTL or DECL_RTL.
4130         * output.h: Update prototype of default_encode_section_info.
4131         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
4132         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
4133         Update calls to encode_section_info.
4134
4135         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
4136         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
4137         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
4138         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
4139         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
4140         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
4141         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
4142         except for PE dllimport/dllexport.  Update calls to
4143         default_encode_section_info.
4144
4145         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
4146         Update prototypes.
4147
4148         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
4149
4150 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4151
4152         PR/8705
4153         * pa.md (movccfp): New expander.
4154         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
4155         Reverse fcmp conditions.
4156
4157 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4158
4159         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
4160         of operand 1 correctly.
4161
4162 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
4163
4164         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
4165         * gcov.c (output_lines): Don't be so fussy about going past EOF.
4166
4167 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
4168
4169         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
4170         (cppcharset.o): New target.
4171         * c-lex.c (is_extended_char): Move to cppcharset.c.
4172         (utf8_extend_token): Delete.
4173         * cppcharset.c: New file.
4174         * cpphash.h (_cpp_valid_ucn): New.
4175         * cpplex.c (lex_identifier): Update prototype.
4176         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
4177         escapes.
4178         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
4179         in cppcharset.c.
4180         (lex_number, lex_identifier, cpp_parse_escape): Update.
4181         (_cpp_lex_direct): Update to handle UCNs.
4182         (cpp_avoid_paste): Don't paste to form a UCN.
4183
4184 2003-04-19  Roger Sayle  <roger@eyesopen.com>
4185
4186         * builtins.c (expand_builtin):  Don't expand a pure or const
4187         built-in function if the result will be ignored and none of
4188         its arguments are volatile.
4189
4190 2003-04-19  Kean Johnston  <jkj@sco.com>
4191
4192         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
4193         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
4194         target fragment now: t-sco5; dont compile crti.o.
4195         * config/i386/sco5.h: major overhaul to remove all COFF remnants
4196         and to use elfos.h for most definitions.
4197         (BSS_SECTION_ASM_OP): set correct segment attributes.
4198         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
4199         (DWARF2_UNWIND_INFO): Always set to 1.
4200         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
4201         (MD_STARTFILE_PREFIX_1): Define.
4202         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
4203         (DEFAULT_LINKER): Define if not specified to configure.
4204         (CTORS_SECTION_ASM_OP): Remove COFF crud.
4205         (DTORS_SECTION_ASM_OP): Remove COFF crud.
4206         (WINT_TYPE): Define.
4207         (SDB_DEBUGGING_INFO): Remove.
4208         (EXTRA_SECTIONS): Likewise.
4209         (EXTRA_SECTION_FUNCTIONS): Likewise.
4210         (CTOR_LIST_BEGIN): Likewise.
4211         (CTOR_LIST_END): Likewise.
4212         (INIT_SECTION_FUNCTION): Likewise.
4213         (FINI_SECTION_FUNCTION): Likewise.
4214         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
4215         (LOCAL_LABEL_PREFIX): Likewise.
4216         (NON_SAVING_SETJMP): Likewise.
4217         (RETURN_POPS_ARGS): Likewise.
4218         (ASM_OUTPUT_SKIP): Likewise.
4219         (TARGET_ASM_NAMED_SECTION): Likewise.
4220         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4221         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
4222         (ASM_OUTPUT_IDENT): Likewise.
4223         (ASM_OUTPUT_CASE_LABEL): Likewise.
4224         (ASM_OUTPUT_ASCII): Likewise.
4225         (ASM_OUTPUT_LIMITED_STRING): Likewise.
4226         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4227         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4228         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4229         (ASM_FINISH_DECLARE_OBJECT): Likewise.
4230         (ASM_DECLARE_OBJECT_NAME): Likewise.
4231         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
4232         (ASM_DECLARE_FUNCTION_NAME): Likewise.
4233         (ASM_DECLARE_RESULT): Likewise.
4234         (ASM_WEAKEN_LABEL): Likewise.
4235         (SUPPORTS_WEAK): Likewise.
4236         (APPLY_RESULT_SIZE): Likewise.
4237         (LPREFIX): Likewise.
4238         (ALIGN_ASM_OP): Likewise.
4239         (ASCII_DATA_ASM_OP): Likewise.
4240         (IDENT_ASM_OP): Likewise.
4241         (ASM_SHORT): Likewise.
4242         (ASM_LONG): Likewise.
4243         (TYPE_ASM_OP): Likewise.
4244         (SIZE_ASM_OP): Likewise.
4245         (STRING_ASM_OP): Likewise.
4246         (SKIP_ASM_OP): Likewise.
4247         (EH_FRAME_SECTION_ASM_OP): Likewise.
4248         (READONLY_DATA_SECTION_ASM_OP): Likewise.
4249         (INIT_SECTION_ASM_OP): Likewise.
4250         (FINI_SECTION_ASM_OP): Likewise.
4251         (TEXT_SECTION_ASM_OP): Likewise.
4252         (DATA_SECTION_ASM_OP): Likewise.
4253         (TYPE_OPERANT_FORMAT): Likewise.
4254         (ASM_SPEC): Remove COFF code.
4255         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
4256         cause -pg to emit an error; use pcrt1elf.o with -pp
4257         (ENDFILE_SPEC): Likewise.
4258         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
4259         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
4260         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
4261         add -z alt_resolve to support weak symbols the way GCC wants them.
4262         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
4263         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
4264         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
4265         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
4266         (CRTSTUFF_T_CFLAGS_S): Define.
4267         (MULTILIB_OPTIONS): Likewise.
4268         (MULTILIB_DIRNAMES): Likewise.
4269         (MULTILIB_MATCHES): Likewise.
4270         (MULTILIB_EXTRA_OPTS): Likewise.
4271         (LIBGCC): Likewise.
4272         (INSTALL_LIBGCC): Likewise.
4273         (crti.o): Remove.
4274         * config/i386/t-sco5gas: Remove.
4275         * doc/install.texi: Updated for new OpenServer instructions.
4276         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
4277
4278 2003-04-19  Kean Johnston  <jkj@sco.com>
4279
4280         * fixinc/check.tpl: Allow user to over-ride diff program.
4281         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
4282         (sco_math): Added test for SCO math header files.
4283         (sco_regset): Added check for conflicts with ieeefp.h.
4284         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
4285         * fixinc/fixincl.x: Regenerated
4286         * fixinc/tests/base/math.h: Added sco_math tests.
4287         * fixinc/tests/base/string.h: New file.
4288         * fixinc/tests/base/sys/regset.h: New file.
4289
4290 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4291
4292         * cpphash.h (struct cpp_buffer): Remove backup_to.
4293         * cpplex.c (BACKUP, get_effective_char): Die.
4294         (_cpp_skip_block_comment): Assume '*' is location on entry.
4295         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
4296         (IF_NEXT_IS): Update.
4297         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
4298
4299 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
4300
4301         * README.Portability: Move to a new section and obsolete K+R
4302         portability issues.
4303
4304 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
4305
4306         * rtlanal.c (subreg_offset_representable_p):  Fix call of
4307         subreg_lowpart.
4308
4309 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4310
4311         * cpphash.h (struct cpp_reader): New member warned_dollar.
4312         * cpplex.c (continues_identifier_p): New function.
4313         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
4314         lex_number and lex_string, and simplify.
4315         (parse_slow, unescaped_terminator_p): Die.
4316         (_cpp_lex_direct): Update.
4317
4318 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4319
4320         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
4321
4322 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
4323
4324         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
4325         fork behaviour.
4326
4327 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4328
4329         * cppexp.c (eval_token): Permit true and false even if pedantic.
4330
4331 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4332
4333         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
4334
4335 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4336
4337         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
4338         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
4339         (struct include_file): Remove fefcnt, mapped members.
4340         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
4341         (read_include_file): Don't use mmap, terminate buffers in '\r'.
4342         (purge_cache): Don't use munmap.
4343         * cpphash.h (CPP_BUF_COLUMN): Update.
4344         (lexer_state): Remove lexing_comment.
4345         (struct _cpp_line_note): New.
4346         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
4347         next_line and need_line.  Remove col_adjust and saved_flags.
4348         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
4349         _cpp_skip_block_comment, scan_out_logical_line): New.
4350         (_cpp_init_mbchar): Remove.
4351         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
4352         (cpp_read_main_file): Set line to 1 earlier.
4353         (post_options): -traditional-cpp doesn't want trigraphs.
4354         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
4355         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
4356         _cpp_get_fresh_line): New.
4357         (handle_newline, skip_escaped_newlines, trigraph_p,
4358         continue_after_nul, _cpp_init_mbchar): Remove.
4359         (get_effective_char): Update.
4360         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
4361         (skip_line_comment): Simplify.
4362         (skip_whitespace, parse_identifier, parse_slow, parse_number,
4363         parse_string): Update.
4364         (cpp_lex_direct): Use clean lines and process line notes.  Update.
4365         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
4366         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
4367         directly.
4368         (_cpp_handle_directive): Don't set saved_flags.
4369         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
4370         cpp_undef, handle_assertion, cpp_push_buffer): Update.
4371         (_cpp_pop_buffer): Free notes.
4372         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
4373         * cpppch.c (cpp_read_state): \n terminate buffer.
4374         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
4375         (copy_comment): Use _cpp_skip_block_comment.
4376         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
4377         Simplify.
4378         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
4379         save_replacement_text): Update.
4380         (scan_out_logical_line): Update to use clean lines and process
4381         line notes.
4382         * fix-header.c (read_scan_file): Update.
4383
4384 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
4385
4386         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
4387         null begin parameter (as well as pointer to null).
4388         (__deregister_frame_info_bases): Likewise.
4389
4390 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4391
4392         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
4393         hard or virtual register and copy into pseudo if replacement fails.
4394
4395         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
4396
4397         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
4398
4399 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
4400
4401         * calls.c (expand_call): Move special case for constructor calls
4402         to right place. Ensures constructor calls used to initialize
4403         arguments get a clean outgoing argument block for themselves.
4404         Move check for stack deallocation completeness until after last
4405         deallocation.  Add stack_pointer_delta to set of state
4406         variables saved and restored along with current stack_level.
4407
4408         * integrate.c (expand_inline_function): Ensure non-const actuals
4409         don't end up const in the caller's flow after conversion to possibly
4410         const formal type.
4411
4412 2003-04-18  Vincent Celier  <celier@gnat.com>
4413
4414         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
4415         and *_DIV_EXPR as TRUNC_*_EXPR.
4416
4417 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
4418
4419         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
4420         for orphaned jump tables.
4421
4422 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
4423
4424         * reload1.c: Revert my previous patch on 2002-04-17.
4425
4426 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4427
4428         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
4429         Add Segher Boessenkool.
4430
4431 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
4432
4433         PR c/9177
4434         * c-decl.c (c_expand_body): Don't garbage collect the function
4435         body if we are going to dump it later.
4436
4437 2003-04-18  Richard Henderson  <rth@redhat.com>
4438
4439         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
4440         (alpha_end_function): Don't set them.
4441         (decl_in_text_section): Remove.
4442         (alpha_encode_section_info): Remove.
4443         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
4444         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
4445         sections, rather than decl_in_text_section results.
4446
4447 2003-04-18  Roger Sayle  <roger@eyesopen.com>
4448
4449         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
4450         and SIGN_EXTRACT.
4451
4452 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4453
4454         PR optimization/7675
4455         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
4456         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
4457         nested functions if they refer to declarations from parent functions.
4458         * stmt.c (expand_decl): Don't put automatic variables in registers
4459         if the DECL_NONLOCAL flag is set.
4460
4461 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
4462
4463         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
4464         consider those to be movable where the source matches
4465         want_to_gcse_p.
4466         (update_ld_motion_stores): In comment, refer to
4467         compute_ld_motion_mems for validity of replacement.
4468
4469 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
4470
4471         * gcov-dump.c (tag_summary): Remove max_sum
4472         * gcov-io.h (gcov_summary, gcov_write_summary,
4473         gcov_read_summary): Kill max_sum.
4474         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
4475         message more verbose.
4476
4477         * emit-rtl.c (subreg_hard_regno):  Check that register is
4478         representable.
4479
4480         * reload.c (reload_inner_reg_of_subreg):  When register is not
4481         representable, reload the whole thing.
4482         (find_reloads): Likewsie.
4483         * rtlanal.c (subreg_representable_p):  New function.
4484
4485         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
4486         allow negative probabilities for edges from the call to exit.
4487         (branch_prob): Do not add fake edges for functions that may return
4488         twice.
4489
4490 2003-04-17  DJ Delorie  <dj@redhat.com>
4491
4492         * toplev.c (target_options): Add value field.
4493         (set_target_switch): Handle target options with values.
4494         * doc/tm.texi: Document how fixed vs variable target
4495         options work.
4496         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
4497         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
4498         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4499         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
4500         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4501         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4502         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
4503         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
4504         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
4505         Add value initializer to target options.
4506
4507 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
4508
4509         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
4510
4511 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
4512
4513         * reload1.c (move2add_last_cc0): New.
4514         (reload_cse_move2add): Detect implicit sets.
4515         (move2add_note_store): Notice a store into cc0.
4516
4517 2003-04-17  Roger Sayle  <roger@eyesopen.com>
4518
4519         PR c/10375
4520         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
4521         function attributes.
4522
4523 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
4524
4525         * doc/sourcebuild.texi (Test Suites): Document support for testing
4526         binary compatibility (moved from testsuite/README.compat).
4527
4528 2003-04-17  Richard Henderson  <rth@redhat.com>
4529
4530         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
4531
4532 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
4533
4534         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
4535         the one provided by the FSF.
4536
4537 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4538
4539         * doc/install.texi (Binaries): Update URL and list of platforms
4540         provided by ftp.thewrittenword.com.
4541
4542 2003-04-17  Richard Henderson  <rth@redhat.com>
4543
4544         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
4545         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
4546         * config/xtensa/xtensa.md (call, call_value): Likewise.
4547
4548 2003-04-17  Richard Henderson  <rth@redhat.com>
4549
4550         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
4551         (print_operand_address): Likewise.
4552         (ep_memory_operand): Likewise.
4553         (special_symbolref_operand): Likewise.
4554         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
4555         (v850_encode_section_info): Call default_encode_section_info.
4556         (v850_strip_name_encoding): Remove.
4557         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
4558         (ASM_OUTPUT_LABELREF): Remove.
4559         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
4560         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
4561         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
4562         (ENCODED_NAME_P): Remove.
4563         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
4564         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
4565         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
4566
4567 2003-04-17  Richard Henderson  <rth@redhat.com>
4568
4569         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
4570         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
4571         SYMBOL_REF_FUNCTION_P.
4572
4573 2003-04-17  Richard Henderson  <rth@redhat.com>
4574
4575         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
4576         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
4577         (text_segment_operand): Likewise.
4578
4579 2003-04-17  Richard Henderson  <rth@redhat.com>
4580
4581         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
4582         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4583         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
4584         (sh_encode_section_info): Remove.
4585         (sh_strip_name_encoding): Remove.
4586         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
4587         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
4588         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
4589         (ASM_OUTPUT_LABELREF): Remove.
4590         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
4591         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
4592
4593 2003-04-17  Richard Henderson  <rth@redhat.com>
4594
4595         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
4596         (tls_model_chars): Remove.
4597         (larl_operand): Use SYMBOL_REF_FLAGS.
4598         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4599         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
4600         (s390_output_mi_thunk): Likewise.
4601         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
4602         (s390_function_profiler): Likewise.
4603         (s390_encode_section_info): Use default_encode_section_info
4604         and SYMBOL_FLAG_ALIGN1.
4605         (s390_strip_name_encoding): Remove.
4606         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
4607         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
4608         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
4609
4610 2003-04-17  Richard Henderson  <rth@redhat.com>
4611
4612         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
4613         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
4614         (print_operand_address): Likewise.
4615
4616         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
4617         * config/ns32k/ns32k.c (expand_block_move): Don't check
4618         flag_unroll_loops.
4619
4620 2003-04-17  Richard Henderson  <rth@redhat.com>
4621
4622         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
4623         SYMBOL_REF_FLAG.
4624
4625 2003-04-17  Richard Henderson  <rth@redhat.com>
4626
4627         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
4628
4629         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
4630         (SYMBOL_REF_MODEL): New.
4631         (LIT_NAME_P): Move from m32r.h.
4632         (m32r_select_section): Remove.
4633         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
4634         (m32r_strip_name_encoding): Remove.
4635         (m32r_in_small_data_p): New.
4636         (small_data_operand): Use SYMBOL_REF_SMALL_P.
4637         (addr24_operand): Use SYMBOL_REF_MODEL.
4638         (call26_operand): Likewise.
4639         (addr32_operand): Tidy.
4640         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
4641         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
4642         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
4643         (READONLY_DATA_SECTION_ASM_OP): Remove.
4644         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4645         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
4646         (TARGET_ASM_SELECT_SECTION): Remove.
4647         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
4648         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
4649         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
4650         (ASM_OUTPUT_LABELREF): Remove.
4651
4652 2003-04-17  Richard Henderson  <rth@redhat.com>
4653
4654         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
4655         (encode_section_info): Remove.
4656         * config/ip2k/ip2k-protos.h: Update.
4657
4658 2003-04-17  Richard Henderson  <rth@redhat.com>
4659
4660         * varasm.c (default_encode_section_info): Don't set
4661         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
4662         * config/i370/i370.c (i370_encode_section_info): Remove.
4663         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
4664         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
4665         * config/i370/i370.md (movsi): Likewise.
4666
4667         * config/i370/t-i370: Add missing backslash.
4668
4669 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4670
4671         * doc/invoke.texi (inline-limit): Fix pasto.
4672
4673 2003-04-17  Richard Henderson  <rth@redhat.com>
4674
4675         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
4676         (small_call_insn_operand): Use it.
4677         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
4678         (h8300_eightbit_constant_address_p): Use it.
4679         (SYMBOL_FLAG_TINY_DATA): New.
4680         (h8300_tiny_constant_address_p): Use it.
4681         (h8300_encode_label, h8300_strip_name_encoding): Remove.
4682         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
4683         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
4684         (ASM_OUTPUT_LABELREF): Remove.
4685
4686 2003-04-16  Richard Henderson  <rth@redhat.com>
4687
4688         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
4689         all users with SYMBOL_REF_SMALL_P.
4690         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
4691         (frv_encode_section_info): Remove.
4692         (frv_strip_name_encoding): Remove.
4693         (frv_in_small_data_p): Merge tests from encode_section_info.
4694         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
4695         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
4696         (SDATA_NAME_P): Remove.
4697         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
4698         (ASM_OUTPUT_LABELREF): Remove.
4699         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
4700
4701         * config/frv/frv.c (frv_asm_out_constructor): New.
4702         (frv_asm_out_destructor): New.
4703         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
4704         (DTORS_SECTION_ASM_OP): New.
4705         (ASM_OUTPUT_CONSTRUCTOR): Remove.
4706         (ASM_OUTPUT_DESTRUCTOR): Remove.
4707
4708 2003-04-16  Richard Henderson  <rth@redhat.com>
4709
4710         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
4711         SYMBOL_REF_LOCAL_P; abort if not pic.
4712         (cris_encode_section_info): Remove.
4713
4714 2003-04-16  Richard Henderson  <rth@redhat.com>
4715
4716         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
4717         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
4718
4719         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
4720         flag_inline_trees.
4721
4722 2003-04-16  Richard Henderson  <rth@redhat.com>
4723
4724         * config/avr/avr.c (avr_encode_section_info): Remove.
4725         (avr_insert_attributes): New.
4726         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
4727         (avr_assemble_integer): Likewise.
4728
4729 2003-04-16  Richard Henderson  <rth@redhat.com>
4730
4731         * arc.c (arc_encode_section_info): Remove.
4732         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
4733         (arc_print_operand, arc_print_operand_address): Likewise.
4734         * arc.h (EXTRA_CONSTRAINT): Likewise.
4735
4736 2003-04-16  Roger Sayle  <roger@eyesopen.com>
4737
4738         * c-semantics.c (find_reachable_label): New function to find a
4739         potentially reachable label in an expression.
4740         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
4741         assumes the start of the IF_STMT is unreachable (dead) code.
4742         (expand_unreachable_stmt): Similar to expand_stmt but assumes
4743         the start of the statement list is unreachable (dead) code.
4744         (genrtl_if_stmt):  If the controlling expression of the IF
4745         is constant, use expand_unreachable_stmt for the THEN or ELSE
4746         clause as appropriate.
4747         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
4748         the body of a SWITCH statement.
4749         (expand_stmt): The code immediately following a "return",
4750         "break", "continue" or "goto" is unreachable.
4751         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
4752
4753 2003-04-16  Richard Henderson  <rth@redhat.com>
4754
4755         * rtl.h (MEM_ALIAS_SET): Update documentation.
4756         * doc/rtl.texi (Special Accessors): New node.
4757         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
4758
4759 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
4760
4761         * reload1.c (reload_cse_noop_set_p): Return false if mode of
4762         SET_DEST is not the same as that returned by...
4763         * cselib.h (cselib_reg_set_mode): ... new function.
4764         * cselib.c (cselib_reg_set_mode): Define it.
4765         (REG_VALUES): Document semantics of first element as set mode.
4766         (cselib_subst_to_values): Skip first element if ELT is NULL.
4767         (cselib_lookup): Likewise.  Insert past the first element.
4768         (cselib_invalidate_regno): NULLify first element.
4769         (cselib_record_set): Set first element.
4770
4771 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
4772
4773         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
4774         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
4775         * tree.h: Add prototypes for the two new functions.
4776         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
4777         updates introduced in the previous revision by call to saved_expr_p.
4778         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
4779
4780         * expr.c (store_field): Force usage of bitfield instructions when
4781         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
4782         (expand_expr, case BIT_FIELD_REF): likewise.
4783
4784 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
4785
4786         PR middle-end/8866
4787         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
4788         jumptables.
4789
4790 2003-04-16  Richard Henderson  <rth@redhat.com>
4791
4792         * config/ia64/ia64.c (sdata_symbolic_operand): Use
4793         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
4794         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4795         (function_operand): Use SYMBOL_REF_FUNCTION_P.
4796         (ia64_expand_load_address): Likewise.
4797         (ia64_assemble_integer): Likewise.
4798         (ia64_encode_section_info): Remove.
4799         (ia64_strip_name_encoding): Remove.
4800         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
4801         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
4802
4803 2003-04-16  Richard Henderson  <rth@redhat.com>
4804
4805         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
4806         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
4807         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
4808         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
4809         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
4810         (global_symbolic_operand): Similarly.
4811         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
4812         (tls_symbolic_operand_type): Likewise.
4813         (alpha_encode_section_info): Use default_encode_section_info.
4814         (alpha_strip_name_encoding): Remove.
4815         (get_tls_get_addr): Split out from ...
4816         (alpha_legitimize_address): ... here.
4817         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
4818         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
4819         (alpha_initialize_trampoline): Use init_one_libfunc.
4820         (alpha_setup_incoming_varargs): Mark unused parameters.
4821         (alpha_initial_elimination_offset): Likewise.
4822         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
4823         (unicosmk_unique_section): Use default_strip_name_encoding.
4824         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
4825
4826 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
4827
4828         * config.gcc: Add t-spe for eabispe.
4829
4830         * config/rs6000/t-spe: New.
4831
4832 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
4833
4834         Re-apply this patch:
4835
4836         2002-05-16  Dale Johannesen  <dalej@apple.com>
4837           * combine.c (cant_combine_insn_p):  Reenable combinations
4838           involving hard regs unless CLASS_LIKELY_SPILLED_P.
4839
4840 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4841
4842         PR/10271
4843         * pa-protos.h (function_arg): Remove last argument.
4844         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
4845         * pa.h (struct hppa_args): Add member incoming.
4846         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
4847         member incoming.
4848         (FUNCTION_ARG): Revise call to function_arg.
4849         (FUNCTION_INCOMING_ARG): Delete.
4850
4851 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
4852
4853         * configure.in: Unify the code which creates symlinks to a
4854         just-built as, ld, objdump, and nm with the code that detects
4855         their presence for purposes of feature tests.
4856         * configure: Regenerate.
4857
4858 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
4859
4860         * varasm.c (output_constant_def): Do not consult
4861         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
4862         (after_function_constants, output_after_function_constants): Delete.
4863         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
4864         * config/mips/mips-protos.h, config/mips/mips.c
4865         (mips16_constant_after_function_p): Delete.
4866         * config/mips/mips.h: Delete #if-0-ed definition of
4867         CONSTANT_AFTER_FUNCTION_P.
4868         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
4869         mention of CONSTANT_AFTER_FUNCTION_P in comment.
4870
4871 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
4872
4873         * tree.c (next_decl_uid): Mark with GTY.
4874         (next_type_uid): Likewise.
4875
4876 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
4877
4878         PR target/9594:
4879         * sh.c (barrier_align): Also recognize stuff_delay_slot as
4880         an indicator that a barrier was created by branch splitting.
4881
4882 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
4883
4884         * c-decl.c (implicitly_declare): Copy declarations that are going
4885         to be placed in a local scope.
4886
4887 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
4888
4889         * invoke.texi (Spec Files): Wrap if-exists-else example.
4890         (MCore): Remove duplicate @itemx entries and @opindex entries.
4891
4892 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
4893
4894         * unwind.inc (_Unwind_Backtrace): New function.
4895         * unwind.h (_Unwind_Backtrace): Declare it.
4896         * libgcc-std.ver (_Unwind_Backtrace): Export it.
4897
4898 2003-04-14  Jason Merrill  <jason@redhat.com>
4899
4900         PR middle-end/10336, c++/10401
4901         * jump.c (never_reached_warning): Also stop looking if we reach the
4902         beginning of the function.
4903
4904 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4905
4906         PR target/10338
4907         PR bootstrap/10198
4908         PR bootstrap/10140
4909         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
4910
4911 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
4912
4913         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
4914
4915 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4916
4917         * optabs.c (expand_binop): In multi-word add cases, ensure
4918         XTARGET is copied to TARGET if they are different.
4919
4920 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
4921
4922         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
4923         to region, possible after integration of function with unreachable
4924         regions that were optimized away.
4925
4926 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
4927
4928         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
4929         instead of TOC_REGISTER in epilogue in
4930         current_function_calls_eh_return functions.
4931
4932 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
4933
4934         * doc/extend.texi (Empty Structures): Correct description of G++'s
4935         handling of these structures.
4936
4937         * c-decl.c (grokdeclarator): Reject extern redeclarations of
4938         static variables.
4939
4940 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
4941
4942         * config/rs6000/rs6000.md (define_constants): Define constants for
4943         all UNSPEC usage, including new values for TLS support.
4944         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
4945         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
4946         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
4947         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
4948         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
4949         eh_set_lr_di): Use them.
4950         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
4951         rs6000_emit_epilogue) Use them.
4952
4953         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
4954
4955 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
4956
4957         * Makefile.in (c-opts.o): Use custom action.
4958
4959 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
4960
4961         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
4962
4963 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4964
4965         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
4966         handle "superflat arrays" in Ada.
4967
4968         * integrate.c (expand_inline_function): Don't inline if would
4969         lose /u on a BLKmode TARGET.
4970
4971 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
4972
4973         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
4974         extracted from dbxout_type.
4975         (dbxout_range_type): print large bounds in octal format.
4976         (dbxout_type): Replace extracted code by call to
4977         print_int_cst_bounds_in_octal_p.
4978
4979         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
4980         of DW_LANG_Ada83 for Ada units.
4981
4982 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
4983
4984         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
4985         temporary used to round CONST_INT sizes.
4986
4987         * tree.c (int_fits_type_p): Extract generic checks from the case
4988         of constant type bounds. Refine the checks against constant type
4989         bounds to allow for possible decisions against each of these bounds
4990         without requiring both bounds to be constant.
4991         (tree_int_cst_msb): Put back.
4992         * tree.h (tree_int_cst_msb): Likewise.
4993
4994         * global.c (global_conflicts): Prevent allocation of call clobbered
4995         hard regs to pseudos live across abnormal edges, as later passes are
4996         not ready to handle them.
4997
4998         * fold-const.c (fold): Reorder tests for conditional expressions.
4999
5000         * expr.c (highest_pow2_factor): Return unsigned.
5001         * expr.h (offset_address): Likewise.
5002         * emit-rtl.c (offset_address): POW2 argument now unsigned.
5003
5004 2003-04-14  Roger Sayle  <roger@eyesopen.com>
5005
5006         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
5007         string literals at compile-time.
5008
5009 2003-04-14  Roger Sayle  <roger@eyesopen.com>
5010
5011         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
5012         comparison operation and c1/c2 are floating point constants into
5013         x swap(cmp) (c1 - c2).
5014
5015 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
5016
5017         * genautomata.c (output_translate_vect): Fix a typo in loop
5018         condition.
5019
5020 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
5021
5022         PR target/10377
5023         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
5024         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
5025         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
5026         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
5027         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
5028         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
5029         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
5030         ("*extopqihi_swap_side", "*extopqisi_swap_side")
5031         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
5032         When next to constraint R, replace constraint i with n.
5033
5034 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
5035
5036         PR opt/10024
5037         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
5038
5039 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5040
5041         * doc/contrib.texi (Contributors): Correct my entry.
5042
5043 2003-04-13  Roger Sayle  <roger@eyesopen.com>
5044
5045         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
5046         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
5047         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
5048         implies DECL_BUILT_IN to simplify logic.
5049         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
5050
5051 2003-04-13  Roger Sayle  <roger@eyesopen.com>
5052
5053         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
5054         (BT_FN_PTR_SIZE_SIZE): Likewise.
5055         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
5056         New built-in functions for malloc, calloc and strdup respectively.
5057         * calls.c (special_function_p): No need to handle malloc-like
5058         functions any longer.  ECF_MALLOC is set via built-in attributes.
5059
5060         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
5061
5062         * doc/extend.texi: Document these new built-in functions.
5063
5064 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5065
5066         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
5067         (expand_builtin_stpcpy): New.
5068         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
5069         * builtins.def: Add mempcpy & stpcpy support.
5070         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
5071
5072 2003-04-13  Nick Clifton  <nickc@redhat.com>
5073
5074         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
5075         "GCC".
5076         * config/rs6000/40x.md, config/rs6000/603.md,
5077         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
5078         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
5079         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
5080         config/rs6000/aix43.h, config/rs6000/aix51.h,
5081         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
5082         config/rs6000/altivec.h, config/rs6000/altivec.md,
5083         config/rs6000/beos.h, config/rs6000/darwin.h,
5084         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
5085         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
5086         config/rs6000/freebsd.h, config/rs6000/gnu.h,
5087         config/rs6000/host-darwin.c, config/rs6000/linux.h,
5088         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
5089         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
5090         config/rs6000/netbsd.h, config/rs6000/power4.md,
5091         config/rs6000/rios1.md, config/rs6000/rios2.md,
5092         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
5093         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5094         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
5095         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
5096         config/rs6000/spe.md, config/rs6000/sysv4.h,
5097         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
5098         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
5099
5100 2003-04-13  Nick Clifton  <nickc@redhat.com>
5101
5102         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
5103         support for -mcall-aix switch.
5104         * config/rs6000/eabiaix.h: Delete.
5105         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
5106         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
5107         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
5108         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
5109         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
5110         debug_stack_info, output_function_profiler,
5111         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
5112         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
5113         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
5114         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
5115         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
5116         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
5117         multilibs.
5118         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
5119         (MULTILIB_EXCEPTIONS): Delete.
5120         (MULTILIB_MATCHES): Remove mcall-aix matches.
5121
5122         * doc/fragments.texi: Replace -mcall-aix example with an ARM
5123         one.
5124         * doc/install.texi: Delete powerpc-*-eabiaix target.
5125         * doc/invoke.texi: Remove documentation of mcall-aix switch.
5126         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
5127         * config.gcc: Delete powerpc-*-eabiaix target.
5128
5129 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
5130
5131         * doc/invoke.texi: Fix typos.
5132         * doc/tm.texi: Likewise.
5133
5134 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5135
5136         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
5137
5138 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5139
5140         * tree.c (build_constructor): New function.
5141         * tree.h: Prototype it.
5142
5143         * c-typeck.c (build_c_cast, pop_init_level)
5144         * profile.c (build_function_info_value, build_gcov_info_value)
5145         (create_profiler):
5146         Use build_constructor.
5147
5148         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
5149
5150         * objc/objc-act.c (build_constructor):
5151         Rename objc_build_constructor. Use build_constructor.
5152         (build_objc_string_object, objc_add_static_instance)
5153         (init_def_list, init_objc_symtab, init_module_descriptor)
5154         (generate_static_references, build_selector_translation_table)
5155         (build_descriptor_table_initializer, generate_descriptor_table)
5156         (build_protocol_initializer, build_ivar_list_initializer)
5157         (generate_ivars_list, build_dispatch_table_initializer)
5158         (generate_dispatch_table, generate_protocol_list)
5159         (build_category_initializer, build_shared_structure_initializer):
5160         Update to match.
5161
5162 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5163
5164         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
5165
5166 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5167
5168         * config/m68hc11/m68hc11-protos.h
5169         (m68hc11_eq_compare_operator): Declare
5170         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
5171         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
5172         (d_register_operand): Check the operand mode.
5173         (hard_addr_reg_operand): Likewise.
5174
5175 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5176
5177         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
5178         pattern for dbcc/ibcc generation for 68HC12.
5179         ("doloop_end"): New pattern.
5180         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
5181         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
5182         ("m68hc12_dbcc_dec_qi"): New pattern.
5183         ("m68hc12_dbcc_inc_qi"): New pattern.
5184         (split): Add split for the above when we can't use dbcc/ibcc due to
5185         reloading.
5186         (peephole2): Add peephole2 to generate the above when possible.
5187
5188 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5189
5190         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
5191         mode of operand 0.
5192         (peephole2 optimize const load): Likewise for operand 2.
5193         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
5194         clobbers CC_REGNUM.
5195         ("*rotrhi3_with_carry"): Likewise.
5196         (ashift:DI 1 split): Update pattern to create the above rotate.
5197         (lshiftrt:DI 1 split): Likewise.
5198
5199 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5200
5201         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
5202         ("tstqi_z_used" split): Use it.
5203         ("cmphi_z_used"): Likewise.
5204         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
5205         ("cmpqi_z_used"): Likewise.
5206
5207 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
5208
5209         PR c++/7910
5210         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
5211
5212 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5213
5214         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
5215         * configure, config.in: Regenerate.
5216         * intl.c (gcc_gettext_width): New function.
5217         * intl.h: Prototype it.
5218
5219 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5220
5221         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
5222         recognize -mnorelax.
5223         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
5224         (REG_CLASS_NAMES): Add its name.
5225         (REG_CLASS_CONTENTS): Define its content.
5226
5227 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5228
5229         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
5230         parameters so that offsets are valid for far definition.
5231         (__mulsi3): Likewise and use ret to return.
5232         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
5233
5234 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
5235
5236         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
5237
5238 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
5239
5240         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
5241         containing a libgcc.a, move lib* to the corresponding stage dir.
5242
5243         * Makefile.in (stage1-start, stage2-start, stage3-start,
5244         stage4-start): Move $(SPECS) to specs in stage dir.
5245         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
5246         back as $(SPECS).
5247
5248         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
5249         object files from the non-libgcc/ multilib directories as well.
5250
5251 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
5252
5253         * profile.c (read_counts_file): Initialise 'checksum'.
5254
5255         * emit-rtl.c (gen_rtx): Really correct typo.
5256
5257         PR c++/9393
5258         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
5259         * configure.in: Check for gettimeofday.
5260         * tree.c (flag_random_seed): Define.
5261         (default_flag_random_seed): New.
5262         (append_random_chars): Use flag_random_seed rather than trying
5263         to acquire randomness here.
5264         * tree.h (default_flag_random_seed): Declare.
5265         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
5266         descriptions.
5267         (decode_f_option): Handle -frandom-seed.
5268         (print_switch_values): Call default_flag_random_seed.
5269         * flags.h (flag_random_seed): Declare.
5270         * configure: Regenerate.
5271         * config.in: Regenerate.
5272         * config/alpha/t-crtfm: Use -frandom-seed.
5273
5274         * doc/extend.texi (Empty Structures): New.
5275
5276         * c-pch.c: Include flags.h.  Add comments to routines.
5277         (struct c_pch_validity): New.
5278         (get_ident): Update PCH file version number.
5279         (pch_init): Output current debugging type.
5280         (c_common_valid_pch): Check debugging type.
5281         * Makefile.in (c-pch.o): Update dependencies.
5282         * flags.h (debug_type_names): Declare.
5283         * toplev.c (debug_type_names): Move out of decode_g_option.
5284
5285 2003-04-11  Eric Christopher  <echristo@redhat.com>
5286
5287         * emit-rtl.c (gen_rtx): Fix typos.
5288
5289 2003-04-11  Richard Henderson  <rth@redhat.com>
5290
5291         * emit-rtl.c (gen_rtx): Zero '0' fields.
5292
5293 2003-04-11  Richard Henderson  <rth@redhat.com>
5294
5295         PR c++/10202
5296         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
5297         not COMPLETE_TYPE_P for re-invoking layout_decl.
5298
5299 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
5300
5301         * doc/bugreport.texi: Fix paragraph breaking between sections
5302         in preparation for TeXinfo's paragraph indentation fixes.
5303         * doc/extend.texi: Ditto.
5304         * doc/invoke.texi: Ditto.
5305         * doc/objc.texi: Ditto.
5306         * doc/gcov.texi: Wrap 'gcov' in @command{}.
5307         * doc/invoke.texi (Darwin Options): Add a preamble.
5308
5309 2003-04-11  Richard Henderson  <rth@redhat.com>
5310
5311         * config/i386/i386.c (tls_model_chars): Remove.
5312         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
5313         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
5314         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
5315         (tls_symbolic_operand_1): Likewise.
5316         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
5317         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
5318         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
5319         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
5320         bits "copied from i386.h" with default_encode_section_info.
5321
5322 2003-04-11  Richard Henderson  <rth@redhat.com>
5323
5324         * rtl.def (SYMBOL_REF): Add two 0 fields.
5325         * gengtype.c (adjust_field_rtx_def): Handle them.
5326         * print-rtl.c (print_rtx): Print them.
5327         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
5328         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
5329         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
5330         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
5331         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
5332         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
5333         (SYMBOL_FLAG_MACH_DEP): New.
5334         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
5335         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
5336         (assemble_static_space): Set SYMBOL_REF_FLAGS.
5337         (assemble_trampoline_template): Likewise.
5338         (output_constant_def, force_const_mem): Likewise.
5339         (default_encode_section_info): New.
5340         * output.h: Declare it.
5341         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
5342
5343 2003-04-11  Richard Henderson  <rth@redhat.com>
5344
5345         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
5346         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
5347         * optabs.c (init_optabs): Initialize them.
5348         (init_libfuncs): Use init_one_libfunc.
5349         * calls.c (expand_call): Use gcov_flush_libfunc.
5350         * expr.c (store_constructor): Use setbits_libfunc.
5351         * function.c (expand_main_function): Use init_one_libfunc.
5352         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
5353
5354 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
5355
5356         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
5357         documentation; add DECL_FRIEND_CONTEXT.
5358
5359 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5360
5361         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
5362         notes on linker selection and configuration for 64-bit HP-UX port.
5363         * doc/invoke.texi (hppa): Remove hppa text from description for
5364         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
5365         and -threads options.
5366
5367         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
5368         libc.a on libdld.sl when -static is specified and -nolibdld is not
5369         specified.
5370         * pa64-hpux.h (LIB_SPEC): Likewise.
5371         * pa-hpux11.h (LIB_SPEC): Likewise.
5372         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
5373         is not specified.
5374
5375 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
5376
5377         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
5378         not IDENTIFIER_LOCAL_VALUE.
5379
5380 2003-04-11  Richard Henderson  <rth@redhat.com>
5381
5382         PR c/10201
5383         * expr.c (expand_expr): Move DECL_RTL frobbing ...
5384         * stor-layout.c (layout_decl): ... here.
5385
5386 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
5387
5388         * doc/invoke.texi: Eliminate extra white-space caused by
5389         @gccoptlist{ on its own line.
5390         * doc/invoke.texi: Ensured there are two spaces between each option.
5391         * doc/invoke.texi: Re-wrapped option lines that were too wide.
5392         Added @gol to options that didn't have them.
5393
5394 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
5395
5396         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
5397         gcov-iov.h.
5398
5399         Simplify interface to gcov reading and writing.
5400         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
5401         gcov_alloc, gcov_modified, gcov_errored): Move into ...
5402         (struct gcov_var gcov_var): ... this static structure.
5403         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
5404         Return void.
5405         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
5406         read object.
5407         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
5408         (gcov_reserve_length): Remove.
5409         (gcov_write_tag): New.
5410         (gcov_write_length): Adjust.
5411         (gcov_read_summary, gcov_write_summary): Adjust.
5412         (gcov_eof, gcov_ok): Rename to ...
5413         (gcov_is_eof, gcov_is_error): ... here. Return error code.
5414         (gcov_save_position, gcov_resync): Rename to ...
5415         (gcov_position, gcov_seek): ... here.
5416         (gcov_skip, gcov_skip_string): Remove.
5417         (gcov_error): Remove.
5418         (gcov_open, gcov_close): Adjust.
5419         * gcov.c (find_source): Take const char *, copy it on allocation.
5420         (read_graph_file): Adjust.
5421         (read_count_file): Adjust.
5422         * libgcov.c (gcov_exit): Adjust.
5423         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
5424         tag_arc_counts, tag_summary): Return void. Adjust.
5425         (struct tag_format): Adjust proc member.
5426         (dump_file): Adjust gcov calls.
5427
5428 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
5429
5430         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
5431         mkfixinc.sh.
5432         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
5433         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
5434         build != host sysrooted builds.
5435         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
5436         TARGET_SYSTEM_ROOT even on sysrooted natives.
5437         * configure: Rebuilt.
5438
5439 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5440
5441         * c-decl.c (struct binding_level): Add shadowed_tags and
5442         function_body; remove this_block, tag_transparent, and
5443         subblocks_tag_transparent; update comments.
5444         (clear_binding_level, lookup_tag_reverse): Kill.
5445         (make_binding_level): Use ggc_alloc_cleared or memset.
5446         (lookup_tag): Remove struct binding_level* parameter.  All
5447         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
5448         current_binding_level->tags if asked for thislevel_only or if
5449         we might have to diagnose "struct foo; union foo;"
5450         (pushlevel): Ignore argument.  Do not push another binding
5451         level on the transition from the parameters to the top level
5452         of the function body; just tweak the flags and proceed.
5453         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
5454         a function body, separate the parameter list from the
5455         top-level local variables.
5456         (set_block): Do nothing.
5457         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
5458         shadowed_tags if necessary.
5459         (warn_if_shadowing): Nuke the special case for local shadowing
5460         parameter.
5461         (pushdecl): Do not create a shadow entry if we are replacing
5462         an older decl in the same binding level.
5463         (pushdecl_function_level): Tweak for new way of indicating
5464         function scope.
5465         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
5466         (start_function): Don't set subblocks_tag_transparent.
5467         (finish_function): Fix up the binding_level stack for totally
5468         empty functions.  Otherwise, don't call poplevel.
5469
5470         * c-common.c (shadow_warning): MANDATORY argument is no longer
5471         necessary.  Always use plain warning.
5472         * c-common.h: Update to match.
5473
5474         * cfglayout.c (scope_to_insns_initialize): Clear block when we
5475         hit the FUNCTION_DECL.
5476         * function.c: Do not create cyclic tree structure.
5477
5478 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5479
5480         * c-tree.h (struct lang_identifier): Replace global_value,
5481         local_value members with symbol_value, tag_value.  Kill
5482         implicit_decl and limbo_value.
5483         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
5484         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
5485         C_MISSING_PROTOTYPE_WARNED): Kill.
5486         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
5487         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
5488         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
5489         (implicit_decl_warning, lookup_name_current_level,
5490         record_function_scope_shadow): Don't prototype.
5491         (pushdecl_function_level): Prototype.
5492
5493         * c-decl.c (truly_local_externals): New variable.
5494         (struct binding_level): Adjust commentary.
5495         (get_function_binding_level, clear_limbo_values,
5496         record_function_scope_shadow): Kill.
5497         (lookup_name_current_level, implicit_decl_warning): Are now static.
5498         (any_external_decl, record_external_decl): New static functions.
5499         (clone_underlying type): Split out of pushdecl.
5500         (c_print_identifier): Update to match changes to struct
5501         lang_identifier.
5502         (poplevel): Delete #if 0 block.  Make externals invisible
5503         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
5504         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
5505         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
5506         (duplicate-decls): For real parm decl after a forward decl,
5507         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
5508         foo(...) { } with only a warning.  Say whether a previous
5509         declaration was implicit.
5510         (warn_if_shadowing): Now handles all shadowing, not just
5511         local-over-local.  Clarify comments.
5512         (pushdecl): Rewritten.  There is no longer a distinction
5513         between global and local symbol values; they're all
5514         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
5515         DECL_EXTERNAL decls, and use any_external_decl to check
5516         against previous externals.  Kill #if 0 blocks.  Don't
5517         tolerate error_mark_node being NULL.
5518         (pushdecl_top_level): Handle only those cases which
5519         Objective C (the only user) needs.
5520         (pushdecl_function_level): New function.
5521         (implicitly_declare): Create ordinary decls with
5522         C_DECL_IMPLICIT set.  Recycle old decls, however they got
5523         created.
5524         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
5525         for C_DECL_INVISIBLE symbols.
5526         (lookup_name_current_level): Likewise.  Use chain_member.
5527         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
5528         Use pushdecl_function_level.
5529         (builtin_function): Use C_DECL_INVISIBLE.
5530         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
5531         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
5532         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
5533         (identifier_global_value): Same.  Must scan
5534         global_binding_level in extremis.
5535
5536         * c-typeck.c (undeclared_variable): New static function, split
5537         from build_external_ref.
5538         (build_external_ref): Use DECL_CONTEXT, not
5539         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
5540         an instance variable.  Restructure for clarity.
5541         * objc/objc-act.c: Use identifier_global_value, not
5542         IDENTIFIER_GLOBAL_VALUE.
5543
5544 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
5545
5546         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
5547         not Working Paper.
5548         * doc/invoke.texi (C++ Dialect Options): Same.
5549
5550 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5551
5552         * tree.c (tree_operand_check_failed): New function.
5553         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
5554         TREE_RTL_OPERAND_CHECK): New checking macros.
5555         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
5556         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
5557         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
5558         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
5559         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
5560         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
5561         checking macros.
5562
5563 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
5564
5565         PR inline-asm/8803
5566         * function.c (instantate_virtual_regs):  Verify that all ASM statements
5567         match after the virutal regs instantiation.
5568
5569 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
5570
5571         * ia64-protos.h (addp4_optimize_ok): New.
5572         * ia64.c (addp4_optimize_ok): New.
5573         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
5574         (*ptr_extend_plus_2): Ditto.
5575
5576 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
5577
5578         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
5579         not with convert_memory_address.
5580         (store_constructor): Ditto, and same for copy_size_rtx.
5581         (expand_expr): Ditto.
5582
5583 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
5584
5585         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
5586
5587 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
5588
5589         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
5590         even if it is configured to be write-through.
5591
5592 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
5593
5594         * config/s390/s390.c (larl_operand): Do not allow symbols
5595         marked with '@'.
5596         (s390_encode_section_info): Mark symbols with forced 1-byte
5597         alignment with '@'.
5598         (s390_strip_name_encoding): Strip '@'.
5599         (legitimize_pic_address): Handle symbols that are not valid
5600         LARL operands in 64-bit mode.
5601
5602 2003-04-10  Andrew Haley  <aph@redhat.com>
5603
5604         * tree-inline.c (inlinable_function_p): Disable inlining for
5605         synchronized methods.
5606
5607 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
5608
5609         * c-common.h (lang_statement_code_p): Remove declaration.
5610         (statement_code_p): Ditto.
5611         (c_common_stmt_codes): Define; list of c-common statement codes.
5612         (statement_code_p): New extern declaration.
5613         (STATEMENT_CODE_P): Define.
5614         (INIT_STATEMENT_CODES): Define.
5615         * c-common.c (statement_code_p): Kill the function, declare
5616         as an array of bools instead.
5617         (lang_statement_code_p): Remove.
5618         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
5619         (c_safe_from_p): Ditto.
5620         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
5621         to initialize the statement_code_p array.
5622         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
5623         statement_code_p.
5624         (copy_tree_r): Ditto.
5625         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
5626         statement tree codes.
5627         * cp/lex.c (cxx_init): Add missing print line break.  Use
5628         INIT_STATEMENT_CODES to initialize the statement_code_p array.
5629         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
5630         instead of statement_code_p.
5631         * cp/pt.c (tsubst_expr): Ditto.
5632         * cp/tree.c (verify_stmt_tree_r): Ditto.
5633         (cp_statement_code_p): Remove.
5634         (init_tree): Don't set lang_statement_code_p, it's gone.
5635
5636 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
5637             Zack Weinberg  <zack@codesourcery.com>
5638
5639         * regrename.c (struct du_chain): Use a bitfield for reg_class.
5640         * cse.c (struct qty_table_elem, struct table_elt, struct set):
5641         Use bitfields for fields holding enum rtx_code or
5642         enum machine_mode values.  Add comments explaining size choices.
5643
5644 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
5645
5646         * config/fp-bit.c (unpack_d): Handle pair of doubles with
5647         different signs correctly.
5648
5649 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5650
5651         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
5652         (reg_pending_barrier): Make it of the enumeration type.
5653         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
5654         TRUE_BARRIER.
5655         (sched_analyze): Ditto.
5656         (sched_analyze_insn): Ditto.  Use anti-dependencies for
5657         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
5658         (init_deps_global): Initialize the barrier as NO_BARRIER.
5659
5660 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5661
5662         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
5663         Check that asm insn starts on a new cycle.  Add nops after asm
5664         insn to end bundle.
5665         (bundling): Move insn type evaluation from the loop.  Call
5666         issue_nops_and_insn with the new parameter.  Ignore changing
5667         position for nops after asm insn.
5668
5669 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
5670
5671         * optabs.c: Comment that gen_add2_insn and others may actually
5672         return emitted insns, if the gen functions turn out to return
5673         emitted insns.
5674         * reload1.c (reload_cse_move2add): Cope with emitted insns from
5675         gen_add2_insn.
5676
5677 2003-04-09  Richard Henderson  <rth@redhat.com>
5678
5679         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
5680         but not tls_symbolic_operand.
5681         (ia64_expand_load_address): Remove scratch operand.
5682         (ia64_expand_tls_address): Split out from ia64_expand_move.
5683         (ia64_expand_move): Split symbolics only after reload.
5684         (ia64_emit_cond_move): New.
5685         * config/ia64/ia64-protos.h: Update.
5686         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
5687         (symbolic splitter): Accept SImode operands too.
5688         (cmove splitter): Use ia64_emit_cond_move.
5689
5690 2003-04-09  Nick Clifton  <nickc@redhat.com>
5691
5692         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
5693         newer.
5694         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
5695         instead of -mno-fpu.
5696         * config/arm/semi.h (ASM_SPEC): Likewise.
5697         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
5698         but only if -msoft-float is specified pass.  Otherwise pass
5699         -mfpu=softvfp.
5700
5701 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5702
5703         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
5704         free_EXPR_LIST_node.
5705
5706 2003-04-08  Roger Sayle  <roger@eyesopen.com>
5707
5708         * fold-const.c (fold):  Use "fold" following build in more places.
5709         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
5710         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
5711
5712 2003-04-08  Roger Sayle  <roger@eyesopen.com>
5713
5714         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
5715         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
5716         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
5717         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
5718         Delete function scope "fcode" variable to avoid shadowing.
5719
5720 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
5721
5722         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
5723         Take into account DWARF_INITIAL_LENGTH_SIZE.
5724
5725 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
5726
5727         * reorg.c (fill_slots_from_thread): When considering changing the
5728         insn following a reg-to-reg copy insn to use the source reg of the
5729         copy, bail out if there's overlap between the registers.
5730
5731 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5732
5733         * function.c (postponed_insns): New.
5734         (purge_addressof_1): Postpone processing of insns if addressofs
5735         are not put into stack.
5736         (purge_addressof): Process postponed insns.
5737
5738 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
5739
5740         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
5741         this is FP_MODE_DOUBLE .
5742         * sh.c (ra.h): #include.
5743         (push_regs): Add second parameter.  Changed all callers.
5744         If necessary, set fpscr before saving floating point registers.
5745         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
5746         do saves / restores with SZ == 1.
5747         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
5748         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
5749         registers are being restored, restore FPSCR only after restoring them.
5750
5751 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
5752
5753         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
5754         regardless of architecture.
5755         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
5756
5757 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
5758
5759         * sh.c (push_regs, calc_live_regs): Return int.  Take single
5760         HARD_REG_SET * parameter.  Changed all callers.
5761
5762 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
5763
5764         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
5765         GOTOFF operand.
5766         (legitimize_pic_address): Move plus outside the unspec.
5767         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
5768         for validity.
5769
5770 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
5771
5772         * gcov-io.h (gcov_save_position): Remove __inline__ from
5773         declaration.
5774
5775 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
5776
5777         * doc/install.texi: Use @command and @samp for single- and
5778         multi-word commands respectively.
5779         * doc/makefile.texi: Likewise.
5780         * doc/sourcebuild.texi: Likewise.
5781
5782 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
5783             Richard Henderson  <rth@redhat.com>
5784
5785         PR c/9516
5786         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
5787         favour of looping and tail recursion for TREE_LIST and binops.
5788
5789 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5790
5791         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
5792         for insns without luid.
5793
5794 2003-04-07  Glen Nakamura  <glen@imodulo.com>
5795
5796         PR opt/8634
5797         * explow.c (maybe_set_unchanging): Don't flag non-static const
5798         aggregate type initializers with RTX_UNCHANGING_P.
5799
5800 2003-04-07  Richard Henderson  <rth@redhat.com>
5801
5802         PR opt/8634
5803         * function.c (purge_addressof_1): Don't try arithmetics for
5804         unchanging memories.
5805
5806 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
5807
5808         * doc/sourcebuild.texi (Test Suites): Document testing support for
5809         gcov and profile-directed optimizations; describe gcc.misc-tests.
5810
5811 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
5812
5813         PR target/10077
5814         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
5815
5816 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5817
5818         * doc/rtl.texi (Comparison operations): Update to
5819         record the allowed comparison modes.
5820
5821 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
5822
5823         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
5824         V2SI_type_node to opaque_V2SI_type_node.  Rename all
5825         V2SF_type_node to opaque_V2SF_type_node.
5826         (rs6000_init_builtins): Define opaque_V2SI_type_node and
5827         opaque_V2SF_type_node.
5828         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
5829         opaque_V2SF_type_node are opaque types.
5830
5831 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
5832
5833         * gcse.c (replace_store_insn): Use single_set.
5834
5835 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
5836
5837         Change gcov file interface to single file at a time.
5838         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
5839         Convert to C89 prototypes.
5840         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
5841         gcov_error, gcov_modified): New static variables.
5842         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
5843         functions.
5844         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
5845         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
5846         (gcov_read_summary, gcov_write_summary): Adjust.
5847         (gcov_save_position, gcov_reserve_length, gcov_write_length):
5848         Adjust.
5849         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
5850         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
5851         (da_file_position, da_file_seek, da_file_write, da_file_read):
5852         Remove.
5853         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
5854         * gcov.c (gcov_type): Don't typedef here.
5855         (IN_GCOV): #define
5856         (read_graph_file, read_count_file): Adjust.
5857         * gcov-dump.c (gcov_type): Don't typedef here.
5858         (IN_GCOV): #define.
5859         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
5860         Remove FILE parameter, adjust.
5861         (struct tag_format): Adjust proc member.
5862         (dump_file): Adjust.
5863         * libgcov.c (IN_LIBGCOV): #define.
5864         (gcov_exit): Adjust.
5865         * loop-init.c: Don't #include gcov-io.h
5866         * profile.c (struct counts_entry): New structure to hold counter
5867         values.
5868         (struct section_reference, struct da_index_entry): Remove.
5869         (bbg_file, da_file): Remove.
5870         (htab_counts_index_hash, htab_counts_index_eq,
5871         htab_counts_index_del): Replace with ...
5872         (htab_counts_entry_hash, htab_counts_entry_eq,
5873         htab_counts_entry_del): ... these.
5874         (cleanup_counts_index, index_counts_file): Remove.
5875         (read_counts_file): New function.
5876         (get_exec_counts): Adjust.
5877         (compute_branch_probabilities): Don't free the exec counts here.
5878         (branch_prob): Adjust.
5879         (init_branch_prob): Adjust.
5880         (end_branch_prob): Adjust.
5881
5882 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
5883
5884         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5885         -mfloat-gprs.
5886
5887         * config/rs6000/rs6000.c: Delete rs6000_fprs.
5888         Declare rs6000_float_gprs.
5889         Declare rs6000_float_gprs_string.
5890         (rs6000_parse_float_gprs_option): New.
5891         (rs6000_override_options): Genericize rs6000_parse_* calls to use
5892         rs6000_parse_yes_no_option.
5893         Change check for cpu=8540, to use TARGET_E500.
5894         (rs6000_parse_isel_option): Delete.
5895         (rs6000_parse_spe_option): Delete.
5896         (rs6000_parse_vrsave_option): Delete.
5897
5898         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
5899         Define rs6000_float_gprs_string.
5900         (TARGET_OPTIONS): Add rs6000_float_gprs option.
5901
5902         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
5903
5904         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
5905
5906 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
5907
5908         PR opt/10024
5909         * cfglayout.c (cfg_layout_redirect_edge):
5910         Redirect any branch edges unified with the fallthru one.
5911         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
5912         case fallthru edges when called via cfglayout.c
5913
5914 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
5915
5916         * c-typeck.c (output_init_element): Check for type == error_mark_node.
5917
5918 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
5919
5920         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
5921         split.
5922         (a splitter): Do zero-extension via HImode.
5923
5924 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
5925
5926         * doc/invoke.texi: Eliminate extra white-space caused by
5927         @gccoptlist{ on its own line.
5928         * doc/invoke.texi: Ensured there are two spaces between each option.
5929         * doc/invoke.texi: Re-wrapped option lines that were too wide.
5930         Added @gol to options that didn't have them.
5931
5932 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
5933
5934         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
5935
5936 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
5937
5938         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
5939         at the sizes of the relevant structures, rather than relying
5940         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
5941         sizes of any such we don't know about.  Use
5942         lang_hooks.identifier_size for IDENTIFIER_NODE.
5943
5944         (initializer_zerop): Use CONSTRUCTOR_ELTS.
5945         * tree.def: Update commentary.  Make fourth element of
5946         the definition for all 'c' and 'x' nodes zero.
5947
5948         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
5949         * langhooks-def.h: Update to match.
5950         * langhooks.c: New default, lhd_tree_size.
5951
5952         * c-common.def (SRCLOC): Kill.
5953         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
5954         Remove entirely - was already #if-ed out.
5955
5956
5957 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
5958
5959         * mklibgcc.in: Use a here document to avoid running afoul of
5960         shells that generate control-A from "echo \1".
5961
5962 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
5963
5964         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
5965         option.
5966
5967         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5968         rs6000_spe.
5969
5970         * config/rs6000/eabi.h (TARGET_E500): Define.
5971
5972         * config/rs6000/rs6000.h (TARGET_E500): Define.
5973         (TARGET_OPTIONS): Add spe= option.
5974         Declare rs6000_spe and rs6000_spe_string extern.
5975
5976         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
5977         Change TARGET_SPE to TARGET_E500.
5978         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
5979         !TARGET_FPRS.
5980         (print_operand): Same.
5981         (rs6000_generate_compare): Same.
5982         (output_cbranch): Same.
5983         (rs6000_spe): Declare.
5984         (rs6000_spe_string): Declare.
5985         (rs6000_override_options): Call rs6000_parse_spe_option.
5986         (rs6000_parse_spe_option): New.
5987
5988 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
5989
5990         * hashtable.c (gcc_obstack_init): Delete this function
5991         and everything related to it.
5992         * hashtable.h: Remove prototype.
5993         * bitmap.c (bitmap_element_allocate): Cleanup redundant
5994         defines.  Cleanup some unnecessary whitespace.
5995         * defaults.h (obstack_chunk_alloc): Redefine with
5996         appropriate casts for libiberty obstacks.
5997         (obstack_chunk_free): Ditto.
5998         (OBSTACK_CHUNK_SIZE): Define, default to 0.
5999         (gcc_obstack_init): Define as a call to _obstack_begin.
6000         * tree.c (print_obstack_statistics): Delete this unused
6001         function.
6002         * tree.h (obstack): Don't forward-declare.
6003         (print_obstack_statistics): Delete prototype.
6004         (print_obstack_name): Ditto.
6005         (gcc_obstack_init): Ditto.
6006         * rtl.h (gcc_obstack_init): Ditto.
6007         * java/jv-scan.c (gcc_obstack_init): Delete this
6008         function, its prototype and related defines.
6009         * java/jvgenmain.c (gcc_obstack_init): Delete this
6010         function, and related defines.
6011         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
6012         (obstack_chunk_free): Ditto
6013
6014 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
6015
6016         * dbxout.c (dbxout_handle_pch): Move prototype out from
6017         #if defined DBX_DEBUGGING_INFO.
6018
6019 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
6020
6021         * gcov.c (struct arc_info): Replace local_span with cycle.
6022         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
6023         (solve_flow_graph): Set is_call_return.
6024         (add_line_counts): Adjust. In block mode, blocks attach to last line.
6025         (accumulate_line_counts): Find graph cycles, not spanning tree.
6026         (output_branch_count): Adjust.
6027         (output_lines): Adjust.
6028         * doc/gcov.texi: Update.
6029
6030 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
6031
6032         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
6033         the second alternative to "#".
6034
6035 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
6036
6037         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
6038         (single_zero_operand): Likewise.
6039
6040 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
6041
6042         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
6043         * df.c: Include alloc-pool.h, not obstack.h.
6044         (df_ref_obstack): Remove.
6045         (df_ref_pool, df_link_pool): Add pools.
6046         (df_alloc): Init the new pools.
6047         (df_free): And free them.
6048         (df_link_create): Use the pools.
6049         (df_ref_create): Ditto.
6050
6051 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
6052
6053         * simplify-rtx.c: Fix formatting.
6054
6055 2003-04-05  Andrew Pinski  <apinski@apple.com>
6056
6057         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
6058         reg with reg1 == reg2 and offset1 = -8.
6059
6060 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
6061
6062         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
6063         multiply costs.  Correct Power4 divide costs.
6064         * config/rs6000/power4.md: Restore multiply and FP latency.
6065
6066 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6067
6068         * alias.c (find_base_term): Export.
6069         * rtl.h (find_base_term): Declare.
6070         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
6071         instead of flag_exceptions.  Move test for parameter passing ...
6072         (store_killed_in_insn): ... here.
6073
6074 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6075
6076         PR bootstrap/10267
6077         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
6078         for configuring.
6079
6080 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
6081
6082         * dbxout.c (scope_labelno): Add GTY.
6083         (have_used_extensions): Add GTY.
6084         (source_label_number): Add GTY.
6085         (lastfile): Add GTY.
6086         (lastfile_is_base): New.
6087         (base_input_file): New.
6088         (dbxout_handle_pch): New.
6089         (dbx_debug_hooks): Add handle_pch.
6090         (xcoff_debug_hooks): Likewise.
6091         (dbxout_function_end): Remove scope_labelno.
6092         (dbxout_init): Set base_input_file.
6093         (dbxout_handle_pch): New.
6094         (dbxout_source_file): Honour lastfile_is_base.
6095         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
6096         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
6097         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
6098         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
6099         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
6100         * debug.h (struct gcc_debug_hooks): Add handle_pch.
6101         * c-pch.c (pch_init): Don't call start_source_file, but do call
6102         handle_pch.
6103         (c_common_write_pch): Call handle_pch.
6104         (c_common_read_pch): Don't call start_source_file,
6105         or end_source_file.
6106
6107 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
6108
6109         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
6110         use of default attributes to agree MEM_ALIGN macro.
6111
6112 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
6113
6114         * dbxout.c (dbxout_type): When printing type index of range type
6115         whose bounds are printed in octal format, print type of parent type if
6116         it exists so enumerated type descriptions are not transformed
6117         into unsigned types.
6118
6119 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
6120
6121         * config/h8300/h8300-protos.h: Add a prototype for
6122         compute_a_shift_cc.
6123         * config/h8300/h8300.c (shift_one): Update the CC status.
6124         (shift_two): Likewise.
6125         (output_a_shift_cc): Set cc_inline and cc_special.
6126         (compute_a_shift_cc): New.
6127         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
6128
6129 2003-04-04  Richard Henderson  <rth@redhat.com>
6130
6131         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
6132
6133 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
6134
6135         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
6136         * fixinc/fixincl.x: Rebuilt.
6137         * fixinc/tests/base/stdio.h: Regenerated.
6138
6139 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
6140
6141         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
6142
6143 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
6144
6145         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
6146         (NORMAL_MODE).
6147         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
6148
6149 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6150
6151         * doc/contrib.texi (Contributors): Add entries for Wolfgang
6152         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
6153         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
6154         Danny Smith, and Ulrich Weigand.
6155         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
6156         entry.
6157
6158 2003-04-04  Nick Clifton  <nickc@redhat.com>
6159
6160         * config/sparc/sol2-bi.h: Revert previous delta.
6161         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
6162
6163 2003-04-04  Nick Clifton  <nickc@redhat.com>
6164
6165         * config/v850/v850.c (expand_prologue): Only use register save
6166         helper functions if long calls are not being used.
6167         Add a clobber of r11 id using long calls.
6168         (pattern_is_ok_for_prologue): Account for the extra clobber.
6169         (construct_save_jarl): Likewise.
6170         * config/v850/v850.md (prolog pattern): Do not use this pattern
6171         for v850e's.
6172
6173 2003-04-04  Andreas Schwab  <schwab@suse.de>
6174
6175         * stor-layout.c (layout_decl): Avoid syntax error in last change
6176         when PCC_BITFIELD_TYPE_MATTERS is defined but not
6177         EMPTY_FIELD_BOUNDARY.
6178
6179 2003-04-03  Jason Merrill  <jason@redhat.com>
6180
6181         PR c/10175
6182         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
6183         Look backwards for a line note.
6184
6185 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
6186
6187         * fix-header.c (read_scan_file): Defer switch processing.
6188
6189 2003-04-03  Matt Austern  <austern@apple.com>
6190
6191         * cpppch.c (reset_ht): Remove.
6192         (cpp_read_state): Remove loop to reset hashtable identifiers.
6193         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
6194         after pch file is written.
6195         * ggc.h (gt_pch_fixup_stringpool): Declare.
6196         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
6197         hashnode's value to another hashtable, then clear the original.
6198         (saved_ident_hash): Define.
6199         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
6200         store definitions in ident_hash, and clear ident_hash.
6201         (gt_pch_fixup_stringpool): Define.  Restore definitions from
6202         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
6203
6204 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
6205
6206         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
6207
6208 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6209
6210         PR optimization/10157
6211         * gcse.c (can_copy_p): Rename it to can_copy.
6212         (can_copy_init_p): Remove.
6213         (compute_can_copy): Use can_copy instead of can_copy_p.
6214         (can_copy_p): New exported function. Call compute_can_copy.
6215         (hash_scan_set): Use it.
6216         (gcse_main): Don't call compute_can_copy.
6217         (bypass_jumps): Don't call compute_can_copy.
6218         * rtl.h (can_copy_p): Declare.
6219         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
6220         copy if the mode doesn't support copy operations.
6221
6222 2003-04-03  Jason Merrill  <jason@redhat.com>
6223
6224         * Makefile.in (unstrap): Also remove stage_last.
6225
6226         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
6227         (dwarf2out_source_line): Don't do anything if line==0.
6228
6229         * stor-layout.c (do_type_align): New fn, split out from...
6230         (layout_decl): ...here.  Do all alignment calculations for
6231         FIELD_DECLs here.
6232         (update_alignment_for_field): Not here.
6233         (start_record_layout, debug_rli): Remove unpadded_align.
6234         * tree.h (struct record_layout_info_s): Remove unpadded_align.
6235         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
6236         or DECL_MODE on the CONST_DECLs.
6237         (finish_struct): Don't mess with DECL_ALIGN.
6238
6239 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
6240
6241         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
6242
6243 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
6244
6245         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
6246         function is an interrupt handler.
6247
6248         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
6249         restoring target registers with EH_RETURN_STACKADJ_RTX; use
6250         multiple registers in round-robin fashion.
6251
6252 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6253
6254         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
6255         * system.h (CHAR_BITFIELD): New.
6256
6257 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
6258
6259         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
6260         and LE.
6261         (another peephole2): Likewise.
6262
6263 2003-04-03  Nick Clifton  <nickc@redhat.com>
6264
6265         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
6266         (DEF_ARCH64_SPEC): Likewise.
6267
6268 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
6269
6270         * i386.c (constant_address_p): Use legitimate_constant_p.
6271         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
6272
6273 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6274
6275         * config/h8300/h8300-protos.h: Add a prototype for
6276         gtle_operator.
6277         * config/h8300/h8300.c (gtle_operator): New.
6278         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
6279         gtle_operator.
6280         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
6281         and LE.
6282
6283 2003-04-02  Richard Henderson  <rth@redhat.com>
6284
6285         * libgcc-std.ver (_Unwind_GetCFA): New.
6286         * unwind-dw2.c (_Unwind_GetCFA): New.
6287         * unwind-libunwind.c (_Unwind_GetCFA): New.
6288         * unwind-sjlj.c (_Unwind_GetCFA): New.
6289         * unwind.h: Declare it.
6290
6291 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
6292
6293         PR inline-asm/8088
6294         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
6295         when MMX/SSE is not available.
6296
6297 2003-04-02  Mike Stump  <mrs@apple.com>
6298
6299         * doc/install.texi (Specific): Update pointers to apple.com.
6300
6301 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
6302
6303         * i386.c (override_options):  Disable red zone by default on i386.
6304         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
6305         Do not test TARGET_64BIT together with TARGET_RED_ZONE
6306
6307 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6308
6309         * config/h8300/h8300.md (a peephole2): Tighten the condition.
6310
6311 2003-04-02  Richard Henderson  <rth@redhat.com>
6312
6313         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
6314
6315 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6316
6317         * config/h8300/h8300.md (a peephole2): New.
6318
6319 2003-04-02  Richard Henderson  <rth@redhat.com>
6320
6321         * except.c (sjlj_find_directly_reachable_regions): Recognize when
6322         must-not-throw region has been deleted.
6323
6324 2003-04-02  Richard Henderson  <rth@redhat.com>
6325
6326         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
6327         optimization when flag_exceptions not enabled.
6328
6329 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
6330
6331         * config/rs6000/rs6000.c
6332         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
6333         macros.
6334         (rs6000_issue_rate): Add case for 8540.
6335         (rs6000_use_sched_lookahead): New function.
6336
6337         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
6338         units into MU ones.
6339         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
6340         reservation before retirement.
6341         (ppc8540_multiply, ppc8540_load, ppc8540_store,
6342         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
6343         Remove additional cycle in the reservation before retirement.
6344         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
6345         reservation of ppc8540_issue.
6346
6347 2003-04-02  Andreas Schwab  <schwab@suse.de>
6348
6349         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
6350
6351 2003-04-01  Richard Henderson  <rth@redhat.com>
6352
6353         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
6354         notes for nothrow calls if flag_forced_unwind_exceptions.
6355         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
6356         (sjlj_find_directly_reachable_regions): Likewise.
6357         (reachable_handlers): Likewise.
6358         (can_throw_external): Likewise.
6359         (collect_one_action_chain): Record cleanups after catch-all and
6360         must-not-throw if flag_forced_unwind_exceptions.
6361         * flags.h (flag_forced_unwind_exceptions): Declare.
6362         * toplev.c (flag_forced_unwind_exceptions): New.
6363         (lang_independent_options): Add it.
6364         * doc/invoke.text: Add it.
6365
6366 2003-04-01  David Mosberger <davidm@hpl.hp.com>
6367
6368         * config/ia64/crti.asm: Clean up trailing whitespace.
6369         Remove trailing hashes (#) from identifiers.
6370
6371         * config/ia64/crtn.asm: Ditto.
6372
6373         * config/ia64/crtend.asm: Remove trailing hashes (#) from
6374         identifiers.
6375         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
6376         directives.  Drop explicit bundling---it just makes the code
6377         harder to read.  Don't save/restore gp needlessly.
6378
6379         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
6380         identifiers (they're only needed if the identifier would clash
6381         with a register name otherwise).
6382         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
6383         directives.  Drop explicit bundling---it just makes the code
6384         harder to read.
6385         (__do_jv_register_classes): Ditto.
6386         (.fini_array): Remove "progbits" (newer
6387         assemblers don't like wrong section-types).
6388         (.init_array): Ditto.
6389
6390 2003-04-01  Roger Sayle  <roger@eyesopen.com>
6391
6392         PR fortran/9974
6393         * gcse.c (reg_killed_on_edge): New function to test whether the
6394         given reg is overwritten by any instruction queued on an edge.
6395         (bypass_block): Ignore substitutions killed on incoming edges.
6396         Don't bypass outgoing edges that have queued instructions.
6397
6398 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
6399
6400         * real.h (EXP_BITS): Make room for...
6401         (struct real_value): ... added canonical bit.
6402         (struct real_format): Added pnan.
6403         (mips_single_format, mips_double_format, mips_extended_format,
6404         mips_quad_format): New.
6405         * real.c: Copy p to pnan in all formats.
6406         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
6407         (real_nan): Use pnan to compute significand's shift.
6408         (real_identical): Disregard significand in canonical
6409         NaNs.
6410         (real_hash): Likewise.  Take signalling into account.
6411         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
6412         Disregard significand bits in canonical NaNs.  Set all bits of
6413         canonical NaN if !qnan_msb_set.
6414         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
6415         qnan_msb_set to tell the base double format.
6416         (ibm_extended_format): Use 53 as pnan.
6417         (mips_single_format, mips_double_format, mips_extended_format,
6418         mips_quad_format): Copied from the corresponding ieee/ibm
6419         formats, with qnan_msb_set false.
6420         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
6421         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
6422         * config/mips/mips.c (override_options): Use mips_single_format
6423         and mips_double_format.  Default TFmode to mips_quad_format.
6424         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
6425         * config/mips/t-irix6: Likewise.
6426         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
6427         * config/fp-bit.c (pack_d, unpack_d): Obey it.
6428
6429 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
6430
6431         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
6432         (live_image_destructor): Reset image to initial state.
6433         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
6434
6435 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
6436
6437         * config/sparc/sparc.c (input_operand): Accept bare
6438         CONSTANT_P_RTX operands.
6439
6440 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6441
6442         * gcse.c (struct ls_expr): Added pattern_regs field.
6443         (ldst_entry): Initialize it.
6444         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
6445         (store_ops_ok): Use regs precomputed by them.
6446         (find_loads, store_killed_in_insn, load_kills_store): Change return
6447         type to bool.
6448         (store_killed_before, store_killed_after): Take position of register
6449         set in account.
6450         (reg_set_info): Store position of the setter.
6451         (gcse_main): Enable store motion.
6452         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
6453         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
6454         sharing.
6455         (simple_mem): Enable store motion of non-symbol mems.
6456         (regvec): Type changed.
6457         (LAST_AVAIL_CHECK_FAILURE): New.
6458         (compute_store_table_current_insn): New.
6459         (build_store_vectors): Computation of availability and anticipatability
6460         moved ...
6461         (compute_store_table, find_moveable_store): ... here.
6462         (delete_store): Remove senseless comment.
6463         (store_motion): Reorganize.
6464
6465 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
6466
6467         * config/mips/mips.c (override_options): Provide mappings for
6468         HI_REGNUM and LO_REGNUM.
6469         * config/mips/mips.h (MD_DBX_FIRST): Define.
6470
6471 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6472
6473         * combine.c (merge_outer_ops): Fix typo.
6474
6475         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
6476
6477 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
6478
6479         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
6480         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
6481         imul_compare.  Add lmul_compare.
6482         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
6483         in second pair of dispatch slots.  Model stores more accurately.
6484         Tweak multiply model.  Add bypasses for CR instructions dependent
6485         on complicated compares.
6486         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
6487         (muldi3): Add lmul_compare patterns.
6488         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
6489         and FPSTORE_UX to split instructions and add COMPARE,
6490         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
6491         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
6492         (rs6000_rtx_costs): Separate POWER4 multiply case.
6493
6494 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
6495
6496         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
6497         Do nothing if __builtin_return_address was not used.
6498
6499 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
6500
6501         * i386.md (test patterns):  Allow memory operand in operand1.
6502
6503 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
6504
6505         * testsuite/gcc.c-torture/execute/simd-3.c: New.
6506
6507         * expr.c (expand_expr): Handle VECTOR_CST.
6508         (const_vector_from_tree): New.
6509
6510         * varasm.c (output_constant): Handle VECTOR_CST.
6511
6512         * c-typeck.c (digest_init): Build a vector constant from a
6513         VECTOR_TYPE.
6514
6515         * config/rs6000/rs6000.c: Remove prototype for
6516         easy_vector_constant.
6517         (easy_vector_constant): Add mode parameter.  Rewrite to handle
6518         more easy constants.
6519         (rs6000_emit_move): Pass mode to easy_vector_constant.
6520         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
6521         (emit_easy_vector_insn): New.
6522         (easy_vector_same): New.
6523         (EASY_VECTOR_15): New macro.
6524         (EASY_VECTOR_15_ADD_SELF): New macro.
6525         (bdesc_2arg): Rename to xorv2si3.
6526         (easy_vector_constant_add_self): New.
6527         (input_operand): Allow vector constants.
6528
6529         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6530         easy_vector_constant, easy_vector_constant_add_self.
6531         (EXTRA_CONSTRAINT): Add 'W'.
6532
6533         * config/rs6000/rs6000-protos.h: Add prototype for
6534         easy_vector_constant, emit_easy_vector_insn.
6535
6536         * config/rs6000/altivec.md (xorv8hi3): New.
6537         (xorv16qi3): New.
6538         Remove all _const0 patterns.
6539         (movv4si_internal): Rewrite to use code.  Add vector constant to
6540         vector alternative.  Add splitter.
6541         (movv8hi_internal): Same.
6542         (movv16qi_internal): Same.
6543         (movv4sf_internal): Same.
6544         Change the unspecs for vspltis* to use constants.
6545
6546         * config/rs6000/spe.md ("xorv4hi3"): New.
6547         ("spe_evxor"): Rename to xorv2si3.
6548         ("xorv1di3"): New.
6549         Remove all _const0 patterns.
6550         (movv2si_internal): Rewrite to use code.  Add vector constant to
6551         alternatives.  Add splitter.
6552         (movv4hi_internal): Add vector constant to alternatives.
6553         (movv1di_internal): Same.
6554         (movv2sf_internal): Same.
6555
6556 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
6557
6558         PR c/9936
6559         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
6560         variably-sized arrays in parameters.
6561         (set_save_expr_context): New function.
6562         (c_expand_body): Use it, via walk_tree.
6563
6564 2003-03-31  Eric Christopher  <echristo@redhat.com>
6565
6566         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
6567         (combinable_i3pat): Remove call to expand_field_assignment and
6568         #if 0'd code.
6569
6570 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
6571
6572         PR c++/10278
6573         * c-common.c (finish_label_address_expr): Handle the
6574         error_mark_node.
6575
6576 2003-03-31  Richard Henderson  <rth@redhat.com>
6577
6578         * real.c (real_identical): Reorg so as to not compare
6579         signalling for normals.
6580
6581 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6582
6583         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
6584
6585 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6586
6587         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
6588         notes as they are boggus.
6589         (m68hc11_gen_movqi): Likewise.
6590
6591 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6592
6593         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
6594         save the soft registers after the frame pointer so that gdb can unwind
6595         the frame more easily.
6596         (expand_epilogue): Likewise in opposite order; allow to use X register
6597         as scratch if the return value is by reference.
6598
6599 2003-03-31  Jason Merrill  <jason@redhat.com>
6600
6601         PR java/10145
6602         * stor-layout.c (update_alignment_for_field): Respect
6603         DECL_USER_ALIGN for zero-length bitfields, too.
6604         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
6605         fields.
6606
6607 2003-03-31  Matt Austern  <austern@apple.com>
6608
6609         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
6610         (count_defs): Keep track of number of defs as well as total size.
6611         (write_defs): Put every definition in cpp_savedstate's defs array.
6612         (comp_hashnode): Define.  Comparison function for qsort.
6613         (cpp_write_pch_deps): Sort definitions before writing them.
6614         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
6615         (collect_ht_nodes): Define.
6616         (cpp_valid_state): When verifying that undefined identifiers in
6617         the pch file are still undefined, read a sorted list of undefined
6618         identifiers, collect all defined identifiers into a sorted list,
6619         and walk through both lists to make sure there's no match.
6620
6621 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6622
6623         * config/h8300/h8300.md (a peephole2): New.
6624
6625 2003-03-31  Michael Matz  <matz@suse.de>
6626
6627         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
6628
6629 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
6630
6631         PR target/10177
6632         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
6633         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
6634         all call-clobbered registers as used.
6635
6636 2003-03-31  Michael Matz  <matz@suse.de>
6637
6638         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
6639         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
6640
6641 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
6642
6643         * gcov.c: Add -a & -u options.
6644         (struct arc_info): Add local_span, is_call_non_return,
6645         is_nonlocal_return, is_unconditional flags, remove is_call flag.
6646         (struct block_info): Add flags, is_call_site, is_nonlocal_return
6647         members. Make encodings a union with span member.
6648         (struct function_info): Add blocks_executed, line, src, line_next
6649         members.
6650         (struct coverage_info): Make branches a union with blocks member.
6651         (struct source_info): Add functions member.
6652         (object_summary, program_count): New global variables.
6653         (flag_all_blocks, flag_unconditional): New flags.
6654         (find_source, output_branch_count): New functions.
6655         (print_usage): Adjust.
6656         (options): Adjust.
6657         (process_args): Adjust.
6658         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
6659         <GCOV_TAG_BLOCKS>: Read flags.
6660         <GCOV_TAG_LINES>: Adjust.
6661         (read_count_file): Process SUMMARY tags.
6662         (solve_flow_graph): Set is_unconditional and clear is_call_site
6663         appropriately.
6664         (add_branch_counts): Adjust. Don't count unconditional branches.
6665         (add_line_counts): Deal with all-blocks mode, accumulate block
6666         coverage.
6667         (accumulate_line_counts): Adjust, generate local spanning tree for
6668         all-blocks mode.
6669         (output_lines): Adjust.
6670         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
6671         * doc/gcov.texi: Document.
6672
6673 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6674
6675         * config/h8300/h8300.md: Organize peephole2's that transform
6676         (compare (reg:HI) (const_int)).
6677
6678 2003-03-31  Roger Sayle  <roger@eyesopen.com>
6679
6680         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
6681         (init_emit_once): Initialize dconstm2 and dconsthalf here.
6682         * real.h (dconstm2, dconsthalf): Add prototypes here.
6683         * real.c (real_sqrt): Use dconsthalf rather than local copy.
6684         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
6685         exp(x/2.0) remember to fold the division if possible.
6686         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
6687         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
6688         1.0/(x*x) and pow(x,0.5) as sqrt(x).
6689
6690 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6691
6692         * config/h8300/h8300.md (a new peephole2): New.
6693
6694 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
6695
6696         * gcse.c (simple_mem): Return false for floating-point accesses
6697         if flag_float_store is true.
6698
6699 2003-03-30  Roger Sayle  <roger@eyesopen.com>
6700
6701         * gcse.c (gcse_constant_p): New function to identify constants
6702         suitable for constant propagation, including COMPARE with two
6703         integer constant arguments.
6704         (hash_scan_set): Use gcse_constant_p.
6705         (find_avail_set): Likewise.
6706         (cprop_insn): Likewise.
6707         (do_local_cprop): Likewise.
6708         (find_implicit_sets): Likewise.
6709         (find_bypass_set): Likewise.
6710
6711 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
6712
6713         * except.h: Remove definition of varray_type.
6714
6715 2003-03-30  Richard Henderson  <rth@redhat.com>
6716
6717         PR opt/10011, opt/10252:
6718         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
6719         before post-gcse cse pass.
6720
6721 2003-03-30  Roger Sayle  <roger@eyesopen.com>
6722
6723         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
6724
6725 2003-03-30  DJ Delorie  <dj@redhat.com>
6726
6727         * profile.c (instrument_edges): Make sure any newly created
6728         jump insns have correct jump label info.
6729
6730 2003-03-30  Richard Henderson  <rth@redhat.com>
6731
6732         * cfgbuild.c (make_edges): Use tablejump_p.
6733         * cfgcleanup.c (label_is_jump_target_p): Likewise.
6734         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
6735         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
6736         (try_redirect_by_replacing_jump): Likewise.
6737         (redirect_edge_and_branch): Likewise.
6738         * cse.c (fold_rtx): Likewise.
6739         * jump.c (delete_related_insns): Likewise.
6740         * rtlanal.c (get_jump_table_offset): Likewise.
6741         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
6742
6743 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6744
6745         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
6746         (STRICT2_WARN): Likewise.
6747
6748 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6749
6750         PR other/6955
6751         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
6752         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
6753
6754 2003-03-30  Richard Henderson  <rth@redhat.com>
6755
6756         PR c/10083
6757         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
6758         don't zero_extend const inputs.
6759
6760 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
6761
6762         * reload1.c (reload_cse_move2add): Fix a comment typo.
6763
6764 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
6765
6766         * config/h8300/h8300.md (a peephole2): Remove useless code.
6767
6768 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
6769
6770         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
6771         (*iorsi3_and_lshiftrt): Likewise.
6772         (*iorsi3_zero_extract): Likewise.
6773
6774 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
6775
6776         * config/h8300/h8300.md (*insv_si_8_8): New.
6777         (*insv_si_8_8_lshiftrt_8): Likewise.
6778         (a peephole2): Likewise.
6779
6780 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6781
6782         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
6783         Uniformly use bugfix instead of bug fix.
6784
6785 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6786
6787         PR doc/895
6788         * ONEWS: Remove those items that already appear in the EGCS
6789         release notes on our web pages.
6790
6791 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
6792
6793         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
6794         TARGET_HARD_FLOAT.  Reformat.
6795         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
6796
6797 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
6798
6799         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
6800         work on Solaris 2.5.1.
6801
6802 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
6803
6804         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
6805         section of h8300.md
6806         (*addsi3_and_nor_r_1): Likewise.
6807
6808 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
6809
6810         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
6811         set up before any trapping memory access if flag_non_call_exceptions.
6812
6813 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
6814
6815         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
6816
6817         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
6818
6819 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
6820
6821         * configure.in: Clarify comments.
6822         * configure: Regenerate.
6823
6824 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
6825
6826         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
6827         label even if pool empty when generating PIC.
6828         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
6829
6830 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
6831             Dhananjay Deshpande  <dhananjayd@kpit.com>
6832
6833         PR target/10205
6834         * config/h8300/h8300.c (h8300_initial_elimination_offset):
6835         Correct the offset computation when TARGET_NORMAL.
6836
6837 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6838
6839         PR target/10067
6840         * config/sparc/sparc.md (jump pattern): Correct order
6841         when issuing the annuling marker.
6842
6843 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6844
6845         PR c/8281
6846         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
6847         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
6848
6849 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
6850
6851         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
6852         globalize_label.
6853         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6854         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6855         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6856         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6857         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6858         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6859         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
6860
6861 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
6862
6863         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
6864         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
6865         notes after hoisting.
6866         (load_mems): Adjust replace_loop_mems call.
6867
6868 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6869             Richard Henderson  <rth@redhat.com>
6870
6871         PR target/10114 and PR target/10084
6872         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
6873
6874 2003-03-27  Richard Henderson  <rth@redhat.com>
6875
6876         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
6877
6878 2003-03-27  Roger Sayle  <roger@eyesopen.com>
6879
6880         * fold-const.c (fold_inf_compare):  New function to simplify FP
6881         comparisons against +Infinity or -Infinity.
6882         (fold):  Optimize floating point comparisons against Infs and NaNs.
6883
6884 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
6885
6886         * libgcov.c: Provide only dummy functions if libc is not available.
6887
6888 2003-03-27  Richard Henderson  <rth@redhat.com>
6889
6890         * real.h (struct real_value): Add signalling.
6891         (EXP_BITS): Decrement.
6892         * real.c (get_canonical_qnan): Don't set MSB-1.
6893         (get_canonical_snan): Likewise.  Set signalling.
6894         (real_identical): Compare signalling.
6895         (round_for_format): Remove force-one-bit on code.
6896         (real_nan): Likewise.  Set signalling.
6897         (encode_ieee_single): Add force-one-bit code; honor signalling.
6898         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
6899         (decode_ieee_single): Set signalling.
6900         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
6901
6902 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
6903
6904         PR ada/9953
6905         * ada/Makefile.in (gnatlib configuration for HPUX): Split
6906         the general section for HPUX into specific sections for
6907         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
6908         11 case.
6909
6910 2003-03-27  Glen Nakamura  <glen@imodulo.com>
6911
6912         PR opt/10087
6913         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
6914         while incrementing giv.
6915         (record_biv): Check for duplicate biv locations and
6916         set (struct induction *) v->same if found.
6917
6918 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
6919
6920         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
6921         v0.9 API change: replace read of UNW_REG_HANDLER with
6922         unw_get_proc_info().
6923         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
6924         with unw_get_proc_info().
6925         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
6926         unw_get_proc_info().
6927
6928 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
6929
6930         * config/rs6000/8540.md: Use presence_set instead of absence_set.
6931
6932 2003-03-26  Richard Henderson  <rth@redhat.com>
6933
6934         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
6935
6936 2003-03-26  Roger Sayle  <roger@eyesopen.com>
6937
6938         PR bootstrap/10051, PR bootstrap/10169.
6939         * mips-tfile.c (init_file): Don't provide a static initializer.
6940         (initialize_init_file): Initialize the contents of init_file.
6941         (add_file): Call initialize_init_file if not already initialized.
6942
6943 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
6944
6945         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
6946         registers used for global asm variables.
6947         (s390_frame_info, s390_arg_frame_offset): Likewise.
6948         (s390_emit_prologue, s390_emit_epilogue): Likewise.
6949
6950 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
6951
6952         * config/rs6000/8540.md: New file.
6953
6954         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
6955         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
6956         reservations for imul.
6957
6958         * config/rs6000/rs6000.md: Include 8540.md.  Change
6959         delayed_compare onto mult_compare for insns generating
6960         multiplication.
6961         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
6962         New type attribute values.
6963
6964         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
6965         fpsimple instead of fp.
6966         (*divsf3_gpr): Use type vecfdiv instead of fp.
6967         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
6968         instead of vecfloat.
6969         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
6970         (spe_brinc): Use type brinc instead of veccomplex.
6971         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
6972         veccomplex.
6973         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
6974         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
6975         *movv2sf_internal): Define type attribute values for all
6976         alternatives.
6977         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
6978         of fpcompare.
6979         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
6980         instead of fpcompare.
6981
6982 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
6983
6984         * config/rs6000/power4.md: Allow delay between dispatch and
6985         function units for simple instructions.  Correct store units.
6986         Allow branch to occupy as many dispatch slots as necessary.
6987
6988 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
6989
6990         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
6991         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
6992         zero extend old to it.
6993         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
6994         operand.
6995
6996 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
6997
6998         PR target/7784
6999         * reload.c (find_reloads_address): Handle
7000         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
7001         all base registers.
7002
7003 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
7004
7005         PR other/10203
7006         * version.c: Reference the GCC web site in the URL.
7007
7008 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
7009
7010         * c-incpath.c (add_standard_paths): Add both "translated" and
7011         non-translated header paths.
7012
7013 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
7014
7015         * doc/install.texi (*-*-freebsd*): Update with known status.
7016
7017 2003-03-21  Jason Merrill  <jason@redhat.com>
7018
7019         PR optimization/10171
7020         * unroll.c (unroll_loop): Don't delete the jump at the end unless
7021         we also delete a jump at the beginning.
7022
7023 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
7024
7025         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
7026         contributor.
7027
7028 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
7029
7030         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
7031         constants are not expensive.
7032
7033 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
7034
7035         PR opt/10056
7036         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
7037         jump jumping to the next instruction.
7038         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
7039
7040 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7041
7042         * doc/passes.texi (Passes): Properly document that we do not
7043         perform jump2 any longer; remove command-line option -dJ.
7044
7045 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
7046
7047         PR optimization/8746
7048         * config/i386/i386.md (and promoting splitters): Disable HImode to
7049         SImode promoting when the sign bit matters and is not preserved, or
7050         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
7051         for size.
7052
7053 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
7054
7055         * config/h8300/h8300.md (a peephole2): Extend to support loads
7056         in QImode and HImode.
7057
7058 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
7059
7060         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
7061         _return_far
7062         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
7063         (MULTILIB_EXCEPTIONS): Likewise.
7064         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
7065         by calling some board support routine.
7066         ("call_value"): Likewise.
7067         ("*return_void"): Likewise for return.
7068         ("*return_16bit"): Likewise.
7069         ("*return_32bit"): Likewise.
7070         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
7071         for 68HC11 too.
7072         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
7073         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
7074         -mlong-calls for 68HC11.
7075         * config/m68hc11/larith.asm (declare_near): New macro.
7076         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
7077         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
7078         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
7079         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
7080         (__mulhi32): Likewise.
7081         (ret): Update macro for 68HC11.
7082         (__far_trampoline): Implement for 68HC11.
7083         (__call_a16, __call_a32, __return_void, __return_16): New support
7084         routines for 68HC11 memory bank switching calling support.
7085         (__return_32): Likewise.
7086
7087 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
7088
7089         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
7090
7091 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
7092
7093         * doc/install.texi (Testing): Mention test result links from build
7094         status pages.
7095
7096 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
7097
7098         * function.c (put_var_into_stack): Change bool parameter to int.
7099         (gen_mem_addressof): Likewise.
7100         * rtl.h (gen_mem_addressof): Likewise.
7101         * tree.h (put_var_into_stack): Likewise.
7102         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
7103         gen_mem_addressof or put_var_into_stack.
7104         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
7105         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
7106
7107 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
7108
7109         * config/h8300/h8300.md (a peephole2): New.
7110
7111 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
7112
7113         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
7114
7115 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7116
7117         * doc/contrib.texi (Contributors): Update Janis Johnson.
7118
7119 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7120
7121         PR target/10072
7122         * combine.c (simplify_if_then_else): Check that the mode
7123         has MODE_INT class before applying the (OP Z (mult COND C2))
7124         transformation.
7125
7126 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7127
7128         PR optimization/9414
7129         * config/sparc/sparc.md (widening peepholes): Use
7130         widen_memory_access instead of change_address.
7131
7132 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
7133
7134         PR c++/7086
7135         * c-typeck.c (c_mark_addressable): Adjust calls to
7136         put_var_into_stack.
7137         * expr.c (expand_expr): Likewise.
7138         * function.c (put_var_into_stack): Add rescan parameter.  Do not
7139         call fixup_var_refs when rescan is false.
7140         (gen_mem_addressof): Likewise.
7141         (assign_parms): Adjust calls to put_var_into_stack.
7142         (setjmp_protect): Likewise.
7143         (setjmp_protect_args): Likewise.
7144         * rtl.h (gen_mem_addressof): Change prototype.
7145         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
7146         * tree.h (put_var_into_stack): Change prototype.
7147
7148 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
7149
7150         PR middle-end/9967
7151         * builtins.c (expand_builtin_fputs): When optimizing for size,
7152         don't transform fputs into fwrite.
7153
7154 2003-03-23  Glen Nakamura <glen@imodulo.com>
7155
7156         PR c/8224
7157         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
7158         when signedness changes for division or modulus.
7159
7160 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
7161
7162         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
7163         globalize_label.
7164
7165 2003-03-23  Roger Sayle  <roger@eyesopen.com>
7166
7167         PR c/10178
7168         * stmt.c (expand_end_case_type): Check for overflow in range when
7169         determining whether to use a bit-test implementation.
7170
7171 2003-03-23  Richard Henderson  <rth@redhat.com>
7172
7173         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
7174         before flow2.
7175         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
7176
7177 2003-03-23  Richard Henderson  <rth@redhat.com>
7178
7179         PR opt/10116
7180         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
7181         from then_bb or else_bb after flow2.
7182
7183 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
7184
7185         * configure.in: Check whether it is necessary to link against
7186         libm to use ldexp.
7187         * configure: Regenerate.
7188         * Makefile.in: Add LDEXP_LIB substitution variable.
7189
7190 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
7191
7192         * config/h8300/h8300.md: Fix comment typos.
7193
7194 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7195
7196         * pa.c (output_cbranch): Fix typo in comment.
7197
7198 2003-03-22  Richard Henderson <rth@redhat.com>
7199
7200         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
7201         after reload.
7202
7203 2003-03-22  DJ Delorie  <dj at redhat dot com>,
7204         Bruce Korb  <bkorb at gnu dot org>
7205
7206         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
7207         buggy Solaris 2.6 mutex/cond initializers.
7208         (solaris_mutex_init): Rename to solaris_mutex_init_2.
7209         * fixinc/fixincl.x: Regenerate.
7210         * fixinc/tests/base/pthread.h: Update.
7211         * fixinc/fixincl.c(initialize): be explicit about the default case
7212         and indicate verbose level when being very, very verbose.
7213         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
7214
7215 2003-03-22  Andreas Jaeger  <aj@suse.de>
7216
7217         * config/i386/i386.c (ix86_init_machine_status): Return value.
7218
7219 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7220
7221         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
7222         conditional branch to the following instruction.  Use next_real_insn
7223         instead of next_active_insn.
7224         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
7225         instead of next_active_insn.
7226
7227 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
7228
7229         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
7230         instead of 'm' constraint in forced-split alternatives.
7231         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
7232         VALIDATE_ADDRESS parameter to operand_subword.
7233
7234 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
7235
7236         * config/h8300/h8300.c (notice_update_cc): Correctly handle
7237         the case where the set destination is STRICT_LOW_PART.
7238
7239 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
7240
7241         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
7242         c30 instead of a c40 processor.
7243
7244 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
7245
7246         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
7247
7248 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
7249
7250         * c-common.c: Include intl.h.
7251         (shadow_warning): Rewrite to allow better diagnostic translations.
7252         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
7253         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
7254         use it throughout.
7255         * Makefile.in (c-common.o): Add intl.h.
7256
7257 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
7258
7259         * config.gcc: Remove 'float_format'.
7260
7261         * fixproto: Define NULL and size_t in generated stdlib.h and
7262         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
7263         Rearrange file generation loop for readability.  Generate time.h,
7264         string.h if missing.
7265         * tsystem.h: Include <string.h>, <time.h> unconditionally.
7266         * config.gcc: Blow away POSIX defines.
7267
7268 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
7269
7270         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
7271
7272 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
7273
7274         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
7275         writing .interrupt command.
7276         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
7277         if it's a far or near function.
7278         ("call_value"): Likewise.
7279         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
7280         near attributes.
7281         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
7282         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
7283         (m68hc11_initial_elimination_offset): Set current_function_far
7284         according to attributes.
7285         (expand_prologue): Likewise.
7286         (trap_handler_symbol): New global to keep track of trap handlers.
7287         (m68hc11_encode_section_info): Mark symbol as far if needed; set
7288         trap symbol.
7289         (m68hc11_is_far_symbol): New function.
7290         (m68hc11_is_trap_symbol): New function.
7291         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
7292         (m68hc11_is_trap_symbol): Declare.
7293
7294 2003-03-21  Jan Hubicka  <jh@suse.cz>
7295
7296         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
7297         only when amount of saved regs changed.
7298         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
7299         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
7300
7301 2003-03-21  Jan Hubicka  <jh@suse.cz>
7302
7303         PR inline-asm/7916
7304         * function.c (instantiate_virtual_regs_lossage): New function.
7305         (instantiate_virtual_regs_1): Use it.
7306         (instantiate_virtual_regs): Do not continue in substition when insn has
7307         been deleted.
7308
7309 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7310
7311         * combine.c (make_field_assignment): Fix a warning.
7312
7313 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7314
7315         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
7316
7317 2003-03-21  Dale Johannesen  <dalej@apple.com>
7318
7319         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
7320         priority for R2 on Darwin.
7321         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
7322
7323 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7324
7325         * combine.c (make_field_assignment): Remove unnecessary AND
7326         when storing into zero_extract.
7327
7328 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
7329
7330         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
7331         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
7332         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
7333         in comment.
7334
7335 2003-03-21  DJ Delorie  <dj@redhat.com>
7336
7337         * optabs.c (init_integral_libfuncs): Make sure we init at least up
7338         to "long long" size words.
7339
7340 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
7341
7342         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
7343         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
7344         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
7345
7346 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7347
7348         PR doc-bug/9813
7349         * doc/extend.texi: Move misplaced paragraph about underscores in
7350         variables in macros.
7351
7352 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
7353             Richard Henderson  <rth@redhat.com>
7354
7355         PR optimization/8366
7356         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
7357         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
7358         PIC+SYMBOLIC_CONST in other modes than Pmode.
7359         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
7360         the form PIC+SYMBOLIC_CONST as mode dependent.
7361
7362 2003-03-21  DJ Delorie  <dj@redhat.com>
7363
7364         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
7365         sure we always emit at least one insn.
7366
7367 2003-03-21  Christopher Faylor  <cgf@redhat.com>
7368
7369         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
7370         stub t-cygming. Use common target header cygming.h. Add extra
7371         c_target_obj and cxx_target_obj file. Default cygwin to posix
7372         threading. Enforce i386 as float format.
7373         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
7374         Remove cygwin.h as target header. Use common target header
7375         cygming.h  Enforce i386 as float format. Correct typo.
7376         * config/i386/cygming.h: New file, containing definitions
7377         common to mingw32 and cygwin.
7378         * config/i386/cygwin.h: Remove definitions common to cygwin and
7379         mingw.  Simplify special spec logic.  Define "wrappers" around
7380         certain include path defines to accommodate -mno-cygwin.
7381         Remove some #if 0'ed code.
7382         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
7383         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
7384         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
7385         * config/i386/mingw32.h: Remove definitions common to cygwin and
7386         mingw.
7387         (EXTRA_OS_CPP_BUILTINS): Adjust.
7388         (TARGET_VERSION): Define.
7389         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
7390         mingw32.h definitions.
7391         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
7392         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
7393         Add compilation rules for cygwin1.o cygwin2.o.
7394         * config/i386/cygwin1.c: New file.
7395         * config/i386/cygwin2.c: New file.
7396         * config/i386/t-cygming: New makefile stub.
7397
7398 2003-03-20  Richard Henderson  <rth@redhat.com>
7399
7400         * fold-const.c (extract_muldiv_1): Revert changing order of
7401         operands in case MULT_EXPR of 2003-02-16 patch.
7402
7403 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
7404         Merge changes from new-regalloc-branch
7405
7406         From Michael Matz  <matz@suse.de>
7407         * df.c (df_ref_record_1): Move init of loc to safe point.
7408         Only recurse on interesting things in parallels.
7409         Handle CLASS_CANNOT_CHANGE_MODE smarter.
7410         (df_uses_record): Ditto.
7411
7412         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
7413         it's already okay to use memory operands in (IE doesn't require
7414         adding another insn or anything).
7415
7416 2003-03-20  Richard Henderson  <rth@redhat.com>
7417
7418         PR middle-end/6348
7419         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
7420         different from word_mode.
7421
7422 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7423
7424         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
7425         source operand to those that can be extracted with bld.
7426
7427 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
7428
7429         PR 10066
7430         * arm.md (UNSPEC_PIC_BASE): New constant.
7431         (pic_add_dot_plus_four): Wrap with unspec.
7432         (pic_add_dot_plus_eight): Likewise.
7433
7434 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7435
7436         * config/h8300/h8300.md (*insv_si_1_n): New.
7437         (*insv_si_1_n_lshiftrt): Likewise.
7438
7439 2003-03-20  Roger Sayle  <roger@eyesopen.com>
7440
7441         * fold-const.c (fold_mathfn_compare): New function to simplify
7442         comparisons against built-in math functions.  Fold comparisons
7443         of sqrt against constants.
7444         (fold): Call fold_mathfn_compare when appropriate.
7445
7446 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
7447
7448         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
7449         information.
7450
7451 2003-03-20  Per Bothner  <pbothner@apple.com>
7452
7453         Various cleanups to help compile server.
7454
7455         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
7456         and pass that to _cpp_init_hashtable.
7457         (cpp_read_main_file):  Drop hash_table* argument; don't call
7458         _cpp_init_hashtable.
7459         * cpplib.h:  Update declarations to match.
7460         * c-opts.c (c_common_init_options):  Pass ident_hash to
7461         cpp_create_reader.
7462         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
7463         * fix-header.c (read_scan_file):  Likewise pass NULL table to
7464         cpp_create_reader rather than cpp_read_main_file.
7465
7466         * cppfiles.c (cpp_rename_file):  Generalized and renamed
7467         to cpp_change_file.
7468         * cpplib.h:  Update declaration to match.
7469         * c-opts.c (push_command_line_line, finish_options):  Change
7470         cpp_rename_file calls to cpp_change_file.
7471
7472         * line-map.c (add_line_map):  Allow leaving the outermost file.
7473         Allowing entering an outermost-file after the initial time.
7474
7475         * toplev.c (pop_srcloc):  Allow popping from initial file.
7476
7477 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
7478
7479         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
7480
7481 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7482
7483         * config/h8300/h8300.md (a peephole2): New.
7484
7485 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7486
7487         * config/h8300/h8300.md (*addsi3_and_r_1): New.
7488         (*addsi3_and_not_r_1): Likewise.
7489
7490 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
7491
7492         * Makefile.in (STRICT2_WARN): Add @WERROR@.
7493         (GCC_WARN_CFLAGS): Remove $(WERROR).
7494         (fixinc.sh-warn): New.
7495         * ada/Make-lang.in (ada-warn): Add $(WERROR).
7496         * cp/Make-lang.in (cp-warn): Add $(WERROR).
7497         * f/Make-lang.in (f-warn): Add $(WERROR).
7498         * java/Make-lang.in (java-warn): Add $(WERROR).
7499         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
7500
7501 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
7502
7503         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
7504         langhooks-def.h (lhd_tree_dump_dump_tree),
7505         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
7506         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
7507         true and false in return statements.
7508
7509 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
7510
7511         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
7512         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
7513         DWARF_INITIAL_LENGTH_SIZE.
7514         (output_compilation_unit_header, output_pubnames, output_aranges)
7515         (output_line_info): Output 0xffffffff escape value for 64-bit
7516         DWARF extension.
7517         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
7518
7519 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
7520
7521         * config/s390/s390.c (s390_preferred_reload_class): Do not
7522         force constants to the pool unless necessary.
7523         (s390_decompose_address): Prefer to use pointer as base,
7524         not index register.
7525         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
7526         Q alternative.
7527         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
7528         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
7529         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
7530         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
7531         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
7532
7533 2003-03-19  Jan Hubicka  <jh@suse.cz>
7534
7535         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
7536         * i386.c (use_fast_prologue_epilogue): Remove.
7537         (ix86_frame): New field save_regs-using_mov;
7538         (ix86_compute_frame_layout):  Decide on fast prologues;
7539         allocate saved registers in red zone.
7540         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
7541
7542 2003-03-19  Nick Clifton  <nickc@redhat.com>
7543
7544         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
7545
7546 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7547
7548         PR 10062
7549         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
7550         * pa-protos.h (output_lbranch): New prototype.
7551         * pa.c (compute_frame_size): Change size of the frame marker on the
7552         64-bit ports to 48 bytes.
7553         (pa_output_function_prologue): Document why SAVE_SP is set.
7554         (hppa_expand_prologue): Save previous stack pointer into frame marker
7555         on targets which use the hpux unwind library.
7556         (output_cbranch): Use output_lbranch.
7557         (output_lbranch): New function to output long unconditional branches.
7558         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
7559         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
7560         64-bit ports.
7561         * pa.md (jump): Use output_lbranch.
7562         (allocate_stack): New expander for dynamic stack allocation.
7563
7564 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
7565
7566         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
7567         when debugging on XCOFF targets.  Delete "abi" temp.
7568
7569         PR target/10073
7570         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
7571
7572 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
7573
7574         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
7575         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
7576         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
7577
7578         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
7579         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
7580         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
7581
7582 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
7583
7584         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
7585         the result of machopic_function_base_name.
7586         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
7587         string rather than a static array.
7588
7589         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
7590
7591         * gengtype.c: Include rtl.h.
7592         (enum rtx_code): Don't define.
7593         (rtx_format): Make declaration match rtl.h.
7594         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
7595         users.
7596         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
7597         * Makefile.in (gengtype.o): Update dependencies.
7598
7599 2003-03-18  Andreas Schwab  <schwab@suse.de>
7600
7601         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
7602         martin@blom.org.
7603
7604 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
7605
7606         * function.c (next_block_index): Mark with GTY.
7607
7608         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
7609
7610 2003-03-18  Richard Henderson  <rth@redhat.com>
7611
7612         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
7613         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
7614         until after reload.
7615
7616 2003-03-18  Richard Henderson  <rth@redhat.com>
7617
7618         * builtins.c (expand_builtin_unop): New target_mode operand;
7619         use it to convert the result to the correct mode.
7620         (expand_builtin): Update all callers.
7621
7622 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
7623
7624         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
7625
7626 2003-03-18  Jan Hubicka  <jh@suse.cz>
7627
7628         * i386.md:  Fix previous commit that mistakely applied the patch
7629         twice.
7630
7631         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
7632         canonicalized.
7633         (memrefs_conflict_p): Likewise.
7634         (addr_side_effect_eval): Canonicalize the constructed address.
7635
7636 2003-03-18  Jan Hubicka  <jh@suse.cz>
7637
7638         * i386.md (cvtts?2si peep2): New.
7639
7640 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
7641
7642         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
7643
7644 2003-03-18  Andreas Schwab  <schwab@suse.de>
7645
7646         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
7647         for format.
7648
7649 2003-03-17  Jason Merrill  <jason@redhat.com>
7650
7651         PR c++/10091
7652         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
7653         an unaligned member of TREE_ADDRESSABLE type.
7654
7655 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
7656
7657         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
7658         (TARGET_PROFILE_KERNEL): Define.
7659         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
7660         (PROFILE_BEFORE_PROLOGUE): Don't define.
7661         (PROFILE_KERNEL): Remove hacks.
7662         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
7663         (rs6000_stack_info): No need to save lr if just for profiling when
7664         TARGET_PROFILE_KERNEL.
7665         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
7666         (output_function_profiler): Localize label generation.  Emit code
7667         for kernel profiling.
7668
7669 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
7670
7671         * config/h8300/h8300-protos.h: Add a prototype for
7672         byte_accesses_mergeable_p.
7673         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
7674         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
7675         (a splitter): Likewise.
7676         (*iorsi3_ashift_16_ashift_24): Likewise.
7677         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
7678
7679 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7680
7681         * dwarf2asm.h: Delete obsolete comment.
7682         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
7683         dw2_asm_output_pcrel, dw2_asm_output_addr,
7684         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
7685         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
7686         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
7687         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
7688
7689 2003-03-17  Zack Weinberg <zack@codesourcery.com>
7690
7691         * c-tree.h (struct lang_identifier): Remove error_locus field.
7692         (IDENTIFIER_ERROR_LOCUS): Kill.
7693         (record_function_scope_shadow): New prototype.
7694         * c-typeck.c (build_external_ref): Don't complain if
7695         decl is error_mark_node.  When not at file scope, bind the
7696         decl's local value to error_mark_node to suppress further
7697         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
7698
7699         * c-decl.c (get_function_binding_level): New static function.
7700         (record_function_scope_shadow): New exported function.
7701         (c_make_fname_decl): Use get_function_binding_level.
7702
7703 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
7704
7705         * stmt.c (tail_recursion_args): Call promote_mode to set
7706         unsignedp flag correctly before calling convert_move.
7707
7708 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7709
7710         * loop-unroll.c (decide_peel_completely,
7711         decide_unroll_constant_iterations, decide_unroll_stupid,
7712         decide_unroll_runtime_iterations, decide_peel_simple): Set
7713         loop->has_desc.
7714
7715 2003-03-17  Jan Hubicka  <jh@suse.cz>
7716
7717         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
7718
7719 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
7720
7721         * function.c (assign_parms): For a struct value address passed as
7722         first argument, delay the function's result RTL setup code until
7723         after the emission of parameter conversions.
7724
7725 2003-03-17  Dave Love  <fx@gnu.org>
7726             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7727
7728         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
7729         __arch64__ to match Compaq cc.
7730
7731 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
7732
7733         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
7734         (c_common_init): Set EBCDIC in cpp options.
7735         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
7736         not conditional compilation.
7737         * cpplib.h (struct cpp_options): New entry EBCDIC.
7738
7739 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
7740
7741         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
7742
7743 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7744
7745         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
7746         argument to 0 for redirect_jump.
7747
7748 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
7749
7750         PR c++/8805
7751         * except.c (eh_region_u_cleanup): Add prev_try.
7752         (expand_eh_region_end_cleanup): Set it.
7753         (reachable_handlers): Use it to skip over cleanup blocks.
7754
7755 2003-03-17  Andreas Jaeger  <aj@suse.de>
7756
7757         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
7758
7759 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
7760
7761         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
7762         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
7763         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
7764         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
7765
7766 2003-03-16  Richard Henderson  <rth@redhat.com>
7767
7768         * simplify-rtx (simplify_binary_operation): Don't abort for
7769         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
7770
7771 2003-03-16  Richard Henderson  <rth@redhat.com>
7772
7773         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
7774         optimize_size as well.
7775
7776 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
7777
7778         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
7779         for D register to specify the low part of it, aka B.
7780         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
7781         the register if we are loading 1 or -1 to it; avoid using temp
7782         register when moving X/Y to Y/X.
7783         (m68hc11_gen_movqi): Likewise.
7784         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
7785
7786 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
7787
7788         PR optimization/9016
7789         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
7790         into the constant pool.
7791
7792 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7793
7794         PR target/9164
7795         * tree.c (get_narrower): For extensions with unchanged bit number,
7796         return the unsignedness of the outer mode.
7797
7798 2003-03-16  Roger Sayle  <roger@eyesopen.com>
7799
7800         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
7801         to avoid "may be used uninitialized" warning on ia64-hpux.
7802         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
7803
7804 2003-03-16  Andreas Jaeger  <aj@suse.de>
7805
7806         * configure.in: Improve check for memcheck.h.
7807         * configure: Regenerated.
7808
7809 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
7810
7811         * doc/cppopts.texi: Remove documentation of -A-.
7812
7813 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
7814
7815         * doc/libgcc.texi: Remove @tie.
7816
7817 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
7818
7819         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
7820         (rtx_pair): Added new element update_label_nuses, renamed to
7821         replace_label_data.
7822         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
7823         replace_label_data instead of rtx_pair.
7824         * loop.c (load_mems): Likewise.
7825         * rtlanal.c (replace_label): Replace label in pool constants and in
7826         INSN_LIST (in REG_LABEL note).
7827         (subrtx_p): Renamed to rtx_referenced_p.
7828         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
7829         LABEL_REF with CODE_LABEL, traverse constants from pool.
7830
7831 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
7832             Zack Weinberg  <zack@codesourcery.com>
7833
7834         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
7835         * doc/libgcc.texi: New file.
7836         * doc/interface.texi: Delete paragraph about libgcc interface.
7837         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
7838
7839 2003-03-15  Jason Merrill  <jason@redhat.com>
7840
7841         PR debug/9039
7842         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
7843
7844         PR debug/6387
7845         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
7846         function DIEs at toplevel.
7847         (decls_for_scope): At -g1, don't descend into subblocks.
7848
7849 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
7850
7851         * varasm.c (struct rtx_const): Change type of un.addr member
7852         to struct holding an additional 'symbol' member.
7853         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
7854         with equal string addresses as equal.
7855         (simplify_subtraction): Adapt to struct rtx_const change.
7856
7857 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
7858
7859         * fix-header.c (read_scan_file): Read main file before handling -D.
7860
7861 2003-03-15  Roger Sayle  <roger@eyesopen.com>
7862
7863         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
7864         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
7865         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
7866         (find_sub_basic_blocks): Likewise.
7867         * cgraphunit.c (cgraph_expand_functions): Likewise.
7868         * dwarf2out.c (prune_unused_types): Likewise.
7869         * expr.c (store_field): Likewise.
7870         * genextract.c (print_path): Likewise.
7871         * haifa-sched.c (schedule_insn): Likewise.
7872         * lcm.c (compute_antinout_edge): Likewise.
7873         * loop-unroll.c (decide_peel_once_rolling): Likewise.
7874         * ra-colorize.c (ra_colorize_free_all): Likewise.
7875         * ra-debug.c (dump_igraph): Likewise.
7876         (debug_hard_reg_set): Likewise.
7877         * reg-stack.c (reg_to_stack): Likewise.
7878         * rtlanal.c (refers_to_regno_p): Likewise.
7879         * tracer.c (layout_superblocks): Likewise.
7880
7881 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
7882
7883         * fix-header.c (read_scan_file): Fix thinko.
7884
7885 2003-03-15  Glen Nakamura  <glen@imodulo.com>
7886
7887         * reload1.c (choose_reload_regs): Use && instead of ||
7888         with REG_CANNOT_CHANGE_MODE_P condition.
7889
7890 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
7891
7892         * Makefile.in: Update.
7893         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
7894         * c-lex.c (init_c_lex): Register builtins hook is dead.
7895         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
7896         (c_common_decode_option): Don't call cpp_handle_option.
7897         Handle -A, -D and -U.
7898         (handle_deferred_opts): Simplify.
7899         (finish_options): Define builtins and command line macros.
7900         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
7901         * cppinit.c: Don't include intl.h.
7902         (init_builtins): Rename cpp_init_builtins.  No hook to call.
7903         (init_library): Don't need to sort options.
7904         (cpp_create_reader): Don't set pending.
7905         (cpp_destroy): Don't free pending.
7906         (struct pending_option, cl_directive_handler, struct cpp_pending,
7907         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
7908         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
7909         cl_options, cpp_handle_option): Remove.
7910         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
7911         cpp_finish_options): Remove.
7912         (cpp_init_builtins): New.
7913         * fix-header.c (read_scan_file): Update to handle -D.  Fix
7914         handling of -I.  Replace call to cpp_finish_options.
7915
7916 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7917
7918         PR optimization/9387
7919         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
7920         for conditional returns.
7921
7922 2003-03-14  Jason Merrill  <jason@redhat.com>
7923
7924         PR optimization/6871
7925         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
7926
7927 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
7928
7929         * c-opts.c (finish_options): New.
7930         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
7931         (missing_arg): Handle OPT_include and OPT_imacros.
7932         (c_common_init, c_common_parse_file): Use finish_options.
7933         (handle_deferred_opts): Update.
7934         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
7935         (cpp_finish_options): Don't handle -imacros here.
7936         (no_fil): Remove.
7937         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
7938
7939 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
7940
7941         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
7942         rs6000_maybe_dead if !fromprolog.
7943
7944 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
7945
7946         * Makefile.in: Update.
7947         * c-common.h (fe_file_change, pp_file_change): New.
7948         * c-lex.c (init_c_lex): Don't set cb_file_change.
7949         (c_common_parse_file): Move to c-opts.c.
7950         (cb_file_change): Rename fe_file_change.
7951         * c-opts.c: Include debug.h.
7952         (warn_unused_macros, include_cursor): New.
7953         (push_command_line_include, cb_file_change): New.
7954         (COMMAND_LINE_OPTIONS): Handle -include.
7955         (c_common_decode_option): Use local warn_unused_macros.
7956         Handle OPT_include.
7957         (c_common_post_options): Set file change callback.
7958         (handle_deferred_opts): Skip -include.  Don't free the array.
7959         (c_common_init): Call cpp_finish_options here, and push an
7960         initial -include file.
7961         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
7962         (preprocess_file): Don't call cpp_finish_options.
7963         (init_pp_output): Don't set the file change callback.
7964         (pp_file_change): Return if no line commands or no output.
7965         * cpphash.h (next_include_file, first_unused_line): Remove.
7966         * cppinit.c (include_head, include_tail): Remove.
7967         (cpp_destroy): Don't free -include chain.
7968         (cpp_finish_options): Don't handle -include, or worry about
7969         -Wunused-macros.
7970         (_cpp_maybe_push_include_file): Remove.
7971         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
7972         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
7973         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
7974         Used flag is set based upon the state of the warn_unused_macros
7975         flag, and so use of first_unused_line is unnecessary.
7976
7977 2003-03-13  Jan Hubicka  <jh@suse.cz>
7978
7979         * cselib.c (clear_table): Do not take argument; always clear just
7980         used slots.
7981         (cselib_process_insn):  Update call of clear_table
7982         (cselib_init): Do not call clear_table.
7983         (cselib_finish): Clear table.
7984
7985         * cse.c (count_reg_usage): Do not check side_effects_p.
7986         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
7987         like noop.
7988         (find_reg_equal_equiv_note): Do not use find_reg_note.
7989
7990 2003-03-14  Richard Henderson  <rth@redhat.com>
7991
7992         PR target/9700
7993         * config/alpha/alpha.c (alpha_va_start): Account for
7994         current_function_pretend_args_size in the AP offset.
7995
7996         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
7997         (INITIAL_ELIMINATION_OFFSET): Move out of line.
7998         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
7999         (alpha_initial_elimination_offset) New.
8000         * config/alpha/alpha-protos.h: Update.
8001
8002 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
8003
8004         * stmt.c (expand_start_case): Call emit_queue ().
8005
8006 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
8007             Alexandre Oliva  <aoliva@redhat.com>
8008
8009         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
8010         words in new abis.
8011
8012 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
8013
8014         PR optimization/8396
8015         * tree-inline.c (initialize_inlined_parameters): Make sure the value
8016         of read-only constant arguments is passed with the right type.
8017
8018 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
8019
8020         * doc/extend.texi (Function Names): Make the example compilable.
8021
8022 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
8023
8024         * config/rs6000/rs6000.c (processor_target_table): Really allow
8025         GP optional instructions on Power4.
8026
8027 2003-03-13  Roger Sayle  <roger@eyesopen.com>
8028
8029         * calls.c (flags_from_decl_or_type): Factor and remove redundant
8030         conditional tests.
8031
8032 2003-03-13  Mike Stump  <mrs@apple.com>
8033
8034         * ggc-page.c (struct page_entry): Remove varray.h header.
8035         Add index_by_depth field.
8036         Remove save_in_use_p field.
8037         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
8038         by_depth_max, by_depth, and save_in_use fields.
8039         (INITIAL_PTE_COUNT): Add.
8040         (save_in_use_p_i): Add.
8041         (save_in_use_p): Add.
8042         (adjust_depth): Add.
8043         (move_ptes_to_front): Add.
8044         (push_depth): Add.
8045         (push_by_depth): Add.
8046         (prefetch): Add.
8047         (free_page): Add support for and use faster data structures.
8048         (ggc_alloc): Likewise.
8049         (init_ggc): Likewise.
8050         (ggc_recalculate_in_use_p): Likewise.
8051         (ggc_pop_context): Likewise.
8052         (clear_marks): Likewise.
8053         (ggc_pch_read): Likewise.
8054         * Makefile.in (ggc-page.o): Remove varray.h.
8055
8056 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
8057
8058         * ChangeLog: Rotated last year's entries to...
8059         * ChangeLog.8: New.
8060
8061         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
8062         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
8063         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
8064         config/ia64/ia64-protos.h, config/ia64/ia64.c,
8065         config/ia64/ia64.h, config/ia64/ia64.md,
8066         config/ia64/itanium1.md, config/ia64/itanium2.md,
8067         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
8068         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
8069
8070 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
8071
8072         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
8073         Differentiate endianness.
8074         (s6000_override_options): Use cpu type instead of TARGET_SPE.
8075
8076 2003-03-13  Nick Clifton  <nickc@redhat.com>
8077
8078         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
8079         LDM instructions with writeback enabled.
8080         (output_return_instruction): Likewise.
8081
8082         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
8083         (CALL_USED_REGISTERS): Remove definition.
8084         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
8085
8086 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
8087
8088         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
8089         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
8090         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
8091         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
8092         (rs6000_legitimize_address): Formatting.
8093         (rs6000_emit_move): Likewise.
8094         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
8095         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
8096         (rs6000_elf_select_section): Comment reason for shlib being
8097         set for ABI_AIX.
8098         (rs6000_elf_unique_section): Likewise.
8099         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
8100         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
8101         as well as flag_pic.
8102         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8103         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8104         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
8105
8106 2003-03-13  Richard Henderson  <rth@redhat.com>
8107
8108         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
8109
8110         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
8111         (ia64_gp_save_reg): Remove.
8112         (struct ia64_frame_info): Move to the beginning of the file;
8113         add reg_save_gp.
8114         (ia64_expand_call): Rearrange for new call patterns.
8115         (ia64_reload_gp): New.
8116         (ia64_split_call): New.
8117         (ia64_compute_frame_size): Allocate reg_save_gp.
8118         (ia64_expand_prologue): Save reg_save_gp.
8119         (ia64_expand_epilogue): Don't restore gp.
8120         (ia64_hard_regno_rename_ok): Remove R4 hack.
8121         (ia64_function_ok_for_sibcall): New.
8122         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
8123         call try_split on sibcall pattern.
8124         * config/ia64/ia64-protos.h: Update.
8125         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
8126         Rename from nopic versions.  Confiscate 2nd argument to call as
8127         a marker.
8128         (call_pic, call_value_pic, sibcall_pic): Remove.
8129         (call_gp, call_value_gp, sibcall_gp): New.
8130         (builtin_setjmp_setup): Remove.
8131         (builtin_setjmp_receiver): Call ia64_reload_gp.
8132
8133 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8134
8135         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
8136         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
8137         "GNU CC" with "GCC".
8138
8139         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
8140         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8141         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
8142         GCC, not GNU CC.
8143
8144         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
8145         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
8146
8147         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
8148         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
8149         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
8150         "GNU CC" with "GCC".
8151
8152         * config/v850/lib1funcs.asm, config/v850/rtems.h,
8153         config/v850/v850-c.c, config/v850/v850-protos.h,
8154         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
8155         GCC, not GNU CC.
8156
8157         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
8158         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
8159         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
8160         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
8161         GNU CC.
8162
8163 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
8164
8165         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
8166
8167 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8168
8169         * fixinc/fixinc.interix: Remove dead code (most of it).
8170         * fixinc/fixinc.dgux: Remove.
8171
8172         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
8173         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
8174
8175 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8176
8177         * pa.c (pa_init_builtins): Fix warning.
8178
8179 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
8180
8181         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
8182         (ASM_OUTPUT_XDATA_SHORT): Remove.
8183         (ASM_OUTPUT_XDATA_INT): Remove.
8184         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
8185         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
8186         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
8187         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
8188
8189 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
8190
8191         PR c++/7050
8192         * expr.c (store_expr): Don't attempt to store void-typed trees,
8193         just evaluate them for side effects.
8194
8195 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8196
8197         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
8198         * cppinit.c (push_include): Move with changes to cppfiles.c.
8199         (cpp_read_main_file): Mark named operators here...
8200         (cpp_finish_options): ...not here.  Update.
8201         (_cpp_maybe_push_include_file): Update.
8202         * cpplib.h (cpp_push_include, cpp_rename_file): New.
8203
8204 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8205
8206         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
8207         _gcc_COMPUTE_GAS_VERSION.
8208         * configure.in: Use them.
8209         * configure: Regenerate.
8210
8211 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
8212
8213         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
8214         to detect carry.
8215         (subdi3): Reorder emitted instructions.
8216
8217 2003-03-12  Andreas Jaeger  <aj@suse.de>
8218
8219         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
8220         NETBSD_OS_CPP_BUILTINS_LP64.
8221
8222 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8223
8224         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
8225         Rearrange.  Reorganize.
8226         * configure.in: Rearrange.
8227         * configure: Regenerate.
8228
8229 2003-03-12  Andreas Jaeger  <aj@suse.de>
8230
8231         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
8232         LP64 targets.
8233
8234         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
8235         _LP64.
8236
8237         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
8238         _LP64 macros here.
8239         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8240
8241         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
8242         NETBSD_OS_CPP_BUILTINS_LP64.
8243         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
8244         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
8245
8246         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
8247
8248 2003-03-12  Jan Hubicka  <jh@suse.cz>
8249
8250         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
8251
8252 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
8253
8254         Fix PR target/9797 and PR c/9853.
8255         * stmt.c (expand_decl_init): Call push_temp_slots () and
8256         pop_temp_slots ().
8257
8258 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
8259
8260         * sh.c: Include basic-block.h.
8261         (sh_output_mi_thunk, emit_load_ptr): New functions.
8262         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
8263
8264 2003-03-12  Nick Clifton  <nickc@redhat.com>
8265
8266         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
8267         (CALL_USED_REGISTERS): Likewise.
8268         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
8269         describing how this value is calculated.
8270
8271 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
8272
8273         * configure.in (rlim_t): Define to long if no valid definition
8274         found in sys/resource.h.
8275         * config.in, configure: Regenerate.
8276
8277 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8278
8279         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
8280         TARGET_OS_CPP_BUILTINS.
8281         * config/mcore/mcore-pe.h: Similarly.
8282         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
8283         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
8284
8285 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8286
8287         PR c/9928
8288         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
8289         only if it is a VAR_DECL.
8290
8291 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8292
8293         PR optimization/9888
8294         * config/i386/i386.md (jcc_1): Fix range.
8295         (jcc_2): Likewise.
8296         (jump): LIkewise.
8297         (doloop_end_internal): Likewise.
8298
8299 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
8300
8301         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
8302         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
8303         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
8304         DLL_IMPORT_EXPORT_PREFIX and "i."
8305         (i386_pe_dllexport_name_p): Here.
8306         (i386_pe_dllimport_name_p): Here.
8307         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
8308         not 9 chars when getting identifier name.
8309         (i386_pe_mark_dllimport): Here.
8310         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
8311         not 9 chars when getting identifier name. Correct comment.
8312         (i386_pe_strip_name_encoding): Here. Add comments for different
8313         cases.
8314         (gen_fastcall_suffix): Break down xmalloc() argument to
8315         components.
8316         (gen_stdcall_suffix): Likewise.
8317         Update copyright year.
8318
8319 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8320
8321         PR optimization/9888
8322         * config/i386/i386.md (movsi_1): Remove special alternatives
8323         for %eax register.
8324         (movsi_1_nointernunit): Likewise.
8325         (movhi_1): Likewise.
8326         * config/i386/i386.c (memory_address_length): Do not use
8327         short displacement when there is no base.
8328         (ix86_attr_length_address_default): Handle LEA instructions.
8329
8330 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8331
8332         * c-cppbuiltin.c (builtin_define_std): Make non-static.
8333
8334 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
8335
8336         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
8337         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
8338         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
8339         * config/freebsd.h (CPP_PREDEFINES): Remove.
8340         (TARGET_OS_CPP_BUILTINS): New.
8341         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
8342         instead of TARGET_OS_CPP_BUILTINS.
8343         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
8344
8345 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
8346
8347         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
8348
8349 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8350
8351         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
8352         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
8353
8354         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
8355
8356 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
8357
8358         * toplev.c (independent_decode_option): Return success for --help,
8359         --target-help and --version.
8360
8361 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
8362
8363         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
8364         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
8365         specified.
8366         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
8367         DRIVER_SELF_SPECS.
8368         (LINK_SPEC): Let endian options affect the linker emulation name.
8369
8370 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
8371
8372         * sh.md (reload_inqi): Fix mode for source in second set.
8373
8374 2003-03-11  Jan Hubicka  <jh@suse.cz>
8375
8376         * cselib.c (cselib_invalidate_mem_1): Move too ...
8377         (cselib_invalidate_mem): ... here; use new list
8378         (dummy_val, first_containing_mem): New static variables.
8379         (clear_table): Initialize first_containing_mem.
8380         (discard_useless_values):  Compact the containing_mem list.
8381         (add_mem_for_addr): Add to the list.
8382         * cselib.h (cselib_val): Add next_containing_mem.
8383
8384 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8385
8386         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
8387         instructions for e500.
8388
8389 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
8390
8391         * Makefile.in: Update.
8392         * c-cppbuiltin.c: Include tm_p.h.
8393
8394 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8395
8396         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
8397
8398         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
8399         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
8400         (_Unwind_SetGR): Same.
8401         (_Unwind_GetGRPtr): New.
8402         (_Unwind_SetGRPtr): New.
8403         (uw_update_context_1): Use accesor functions instead of accessing
8404         context->reg[] directly.
8405         (uw_install_context_1): Same.
8406         (execute_cfa_program): Same.
8407         (__frame_state_for): Same.
8408
8409         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
8410         the synthetic register offset.
8411
8412         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
8413
8414 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
8415
8416         * config/cris/cris.md: Remove lingering EGCS reference.
8417         ("*extopqihi_side_biap"): For HI operation, match
8418         cris_additive_operand_extend_operator, not
8419         cris_operand_extend_operator.  Adjust condition.
8420         ("*extopqihi_side", "*extopqihi"): Ditto.
8421         ("*extopqisi_side_biap"): Correct operand numbers in condition.
8422         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
8423         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
8424         ("*extophisi_swap"): Ditto.
8425         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
8426         PLUS, not cris_operand_extend_operator.  Adjust condition and
8427         output template.
8428         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
8429         * config/cris/cris.h (PREDICATE_CODES): Add
8430         cris_additive_operand_extend_operator.
8431         * config/cris/cris.c (cris_additive_operand_extend_operator):
8432         New predicate.
8433
8434 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
8435
8436         * df.c (read_modify_subreg_p): Change from static to global.
8437         * df.h (read_modify_subreg_p): Add prototype.
8438         * sched-deps.c (sched_analyze_1): Generate true dependency for
8439         strict_low_part, certain subregs and zero/sign_extract.
8440
8441 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
8442
8443         * Makefile.in: Update.
8444         * c-common.c: Don't include real.h or except.h.
8445         (REGISTER_PREFIX): Remove.
8446         (builtin_define_std, builtin_define_with_value,
8447         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
8448         builtin_define_type_max, builtin_define_type_precision,
8449         builtin_define_float_constants): Move to c-cppbuiltin.c.
8450         (c_stddef_cpp_builtins): New.
8451         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
8452         * c-cppbuiltin.c: New, extracted from c-common.c.
8453         (define__GNUC__): New.
8454         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
8455         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
8456         (cpp_unique_options): Don't support no-gcc.
8457         (do_spec_1): Remove support of version specs.
8458         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
8459         * doc/passes.texi: Update.
8460         * doc/tm.texi: Update.
8461
8462 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8463
8464         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
8465
8466 2003-03-10  Andrew Pinski  <apinski@apple.com>
8467
8468         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
8469         is on should not get here.
8470         (machopic_indirect_data_reference): If dynamic-no-pic is on just
8471         generate high/low parts of the address.
8472         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
8473         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
8474         symbol and labels with a new reg.  Dynamic-no-pic does not have a
8475         pic_offset_table_rtx.
8476         (machopic_select_section): Change references of flag_pic to
8477         MACHOPIC_INDIRECT.
8478         (machopic_asm_out_destructor): Likewise.
8479         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
8480         reference of flag_pic to MACHOPIC_INDIRECT.
8481         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
8482         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
8483         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
8484         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
8485         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
8486         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
8487         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
8488         (TARGET_DYNAMIC_NO_PIC): Define.
8489         (SUBTARGET_SWITCHES): Define, have sub-target switches for
8490         dynamic-no-pic.
8491         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
8492         rs6000_override_options to here. Dynamic-no-pic overrides
8493         pic.
8494         (CC1_SPEC): Change from not static then pic to not static and not
8495         dynamic-no-pic then pic.
8496         * config/rs6000/rs6000.c (rs6000_override_options): Move the
8497         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
8498         (rs6000_legitimize_reload_address): Add case for loading floating in
8499         dynamic-no-pic.
8500         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
8501         of flag_pic to MACHOPIC_INDIRECT.
8502         (secondary_reload_class): Conditional change the reference of
8503         flag_pic to MACHOPIC_INDIRECT.
8504         (rs6000_output_mi_thunk): Change reference of flag_pic to
8505         MACHOPIC_INDIRECT.
8506         (output_profile_hook): Likewise.
8507         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
8508         * config/rs6000/rs6000.md (movdf_low): Add the case for
8509         MACHO_DYNAMIC_NO_PIC_P.
8510         (call): Change references for flag_pic in TARGET_MACHO to
8511         MACHOPIC_INDIRECT.
8512         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
8513         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
8514         * doc/invoke.texi (-mdynamic-no-pic): Document.
8515
8516 2003-03-10  Devang Patel  <dpatel@apple.com>
8517
8518         PR c++/9394
8519         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
8520         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
8521         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
8522         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
8523         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
8524         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
8525
8526 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
8527
8528         PR optimization/7189
8529         * toplev.c (rest_of_compilation):  Move
8530         check_function_return_warnings up to just after
8531         delete_unreachable_blocks.
8532
8533 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8534
8535         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
8536         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
8537         Declare.
8538         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
8539         for reg rename optimization to avoid using Z and Y registers.
8540
8541 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8542
8543         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
8544         when adding to X and Y since leax/leay are fast.
8545         ("*addhi3"): Accept 'I' constraint when adding to address register.
8546         ("rotlhi3"): Operand 1 must be a register_operand.
8547         (peephole2): New peephole to optimize some adds.
8548         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
8549         to represent -2 .. 2 small integer range.
8550
8551 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8552
8553         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
8554         each 16-bit rotation.
8555
8556 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
8557
8558         * c-opts.c (add_prefixed_path): Don't use concat.  When
8559         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
8560         cpp_GCC_INCLUDE_DIR_len characters.
8561
8562 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
8563
8564         * testsuite/gcc.dg/altivec-9.c: New file.
8565
8566         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
8567         (rs6000_emit_prologue): Use rs6000_frame_related instead.
8568
8569 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8570
8571         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
8572         vectors.
8573         (__ev_convert_u64): Remove macro.  Define as inline.
8574         (__ev_convert_s64): Same.
8575
8576 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8577
8578         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
8579         (rs6000_stack_t): Add spe_64bit_regs_used.
8580
8581         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
8582         spe_64bit_regs_used, and use it to determine the size of the
8583         frame.
8584         (spe_func_has_64bit_regs_p): New.
8585         (spe_synthesize_frame_save): New.
8586         (rs6000_frame_related): Handle SPE synthetic registers.
8587         (rs6000_emit_prologue): Only save in 64-bits if the function used
8588         any registers in 64-bit mode.
8589         (rs6000_emit_epilogue): Same, but for restore.
8590
8591 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
8592
8593         * arm.h (enum floating_point_type): Delete.  Replace with...
8594         (enum fputype): ... new.
8595         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
8596         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
8597         * arm.md (attr fpu): Reworked for new underlying enum values.
8598         * arm.c (arm_fpu_arch): Now enum fputype.
8599         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
8600         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
8601         Update uses of arm_fpu_arch and arm_fpu_tune.
8602
8603 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
8604
8605         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
8606         (try_crossjump_to_edge): Replace refereces to one jump table by
8607         references to identical jump table.
8608         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
8609         (replace_label): Moved to rtlanal.c.
8610         (struct rtx_pair): Moved to rtl.h.
8611         * rtl.h (struct rtx_pair): Moved from loop.c.
8612         (replace_label): New extern function.
8613         (subrtx_p): New extern function.
8614         (tablejump_p): New extern function.
8615         * rtlanal.c (replace_label): Moved from loop.c.
8616         (subrtx_p_1): New static function.
8617         (subrtx_p): New function.
8618         (tablejump_p): New function.
8619
8620 2003-03-10  Jan Hubicka  <jh@suse.cz>
8621
8622         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
8623
8624         * cfgcleanup.c (merge_blocks): Return where to iterate next.
8625         (try_optimize_cfg): Use return value of merge_blocks
8626
8627 2003-03-10  Michael Matz  <matz@suse.de>
8628
8629         * cfg.c (unchecked_make_edge): New.
8630         (cached_make_edge): Use it.
8631         * basic-block.h (unchecked_make_edge): Declare.
8632         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
8633
8634 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
8635
8636         * fpa.md: New file.  Move all patterns relating to FPA co-processor
8637         to here...
8638         * arm.md: ... from here.
8639         (cirrus.md, fpa.md): Include at end of description.
8640         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
8641         (pic_load_addr_based): Remove register constraint from expander.
8642         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
8643         (sordered, sungt, sunle, sunge, sunlt): Likewise.
8644         (eh_epilogue, tablejump): Likewise.
8645
8646 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8647
8648         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
8649         on operands if it has a PLACEHOLDER_EXPR.
8650
8651 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
8652             Mostafa Hagog
8653
8654         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
8655         condition.
8656
8657 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
8658
8659         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
8660         * config/ip2k/ip2k.h: Similarly.
8661         * config/m32r/m32r.h: Similarly.
8662         * config/m68hc11/m68hc11.h: Similarly.
8663         * config/mn10200/mn10200.h: Similarly.
8664         * config/mn10300/mn10300.h: Similarly.
8665         * config/pdp11/pdp11.h: Similarly.
8666         * config/v850/v850.h: Similarly.
8667         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
8668         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
8669         * config/mips/iris3.h: Remove #if 0 block.
8670
8671 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8672             Joern Rennecke <joern.rennecke@superh.com>
8673
8674         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
8675         pending argument upon return from handle_braces here.
8676         (do_spec_2): Instead handle it upon return from do_spec_1 here.
8677
8678 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8679             Joern Rennecke <joern.rennecke@superh.com>
8680
8681         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
8682         pending argument upon return from handle_braces here.
8683         (do_spec_2): Instead handle it upon return from do_spec_1 here.
8684
8685 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8686
8687         * varasm.c (make_decl_one_only): Use declare_weak().
8688
8689 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8690
8691         PR middle-end/9986
8692         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
8693         after the common builtins.
8694         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
8695         * pa.c (TARGET_INIT_BUILTINS): Define.
8696         (pa_init_builtins): New function.
8697
8698         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
8699         space has been allocated for the outgoing arguments, set the arg
8700         pointer for a call emitted after virtuals have been instantiated
8701         using the stack pointer offset, otherwise abort.
8702
8703 2003-03-09  DJ Delorie  <dj@redhat.com>
8704
8705         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
8706
8707 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
8708
8709         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
8710         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
8711         conversion to integer.
8712         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
8713
8714 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8715
8716         * builtins.def: Fix typo and improve grammar.
8717         * loop-unroll.c (decide_peel_completely): Tidy log message.
8718
8719 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
8720
8721         * config/h8300/h8300.md (*tstsi_upper_bit): New.
8722         (*iorsi3_e2f): Likewise.
8723
8724 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8725
8726         * config/h8300/h8300.c (h8300_and_costs): Return the number of
8727         assembly instructions needed.
8728         (h8300_shift_costs): Likewise.
8729
8730 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
8731
8732         * config/cris/aout.h (ENDFILE_SPEC): Undef.
8733
8734         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
8735         moves from here ...
8736         * expr.c (emit_move_insn_1): ... to here.
8737
8738         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
8739         (TARGET_OS_CPP_BUILTINS): New macro.
8740         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
8741         (TARGET_OS_CPP_BUILTINS): New macro.
8742         (CPP_PREDEFINES): Don't define.  Move old definitions and...
8743         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
8744         (TARGET_CPU_CPP_BUILTINS): New macro.
8745         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
8746         definitions and the optional __PIC__, __pic__ and
8747         __NO_UNDERSCORES__ definitions to...
8748         (TARGET_OS_CPP_BUILTINS): New macro.
8749
8750         * flags.h (flag_leading_underscore): Declare.
8751
8752         * c-opts.c (c_common_post_options): On fopen failure, return
8753         false, not NULL.
8754
8755 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
8756
8757         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
8758         config.h.
8759         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
8760         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
8761
8762 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8763
8764         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
8765         CPP_PREDEFINES.
8766         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
8767         CPP_PREDEFINES.
8768
8769 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8770
8771         * c-common.h (c_common_init, c_common_post_options): Update.
8772         * c-objc-common.c (c_objc_common_init): Update for new prototype.
8773         * c-opts.c (saved_lineno): New.
8774         (c_common_post_options, c_common_init): Update prototypes,
8775         move call to cpp_read_main_file from latter to former.
8776         * c-tree.h (c_ojbc_common_init): Update.
8777         * langhooks-def.h (lhd_post_options): New.
8778         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
8779         * langhooks.c (lhd_post_options): New.
8780         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
8781         * toplev.c (no_backend): New.
8782         (process_options): Call post_options hook and set main_input_filename
8783         and input_filename here.
8784         (lang_dependent_init, do_compile): post_options hook moved to
8785         process_options.
8786         * objc/objc-act.c (objc_init): Update prototype.
8787         * objc/objc-act.h (objc_init): Update prototype.
8788
8789 2003-03-08  Roger Sayle  <roger@eyesopen.com>
8790
8791         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
8792         a complex or vector type, using a load in the original mode.
8793
8794 2003-03-08  Jan Hubicka  <jh@suse.cz>
8795
8796         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
8797         * gt-cgraph.h: New GC file.
8798         * cgraph.c (known_fns): New static variable.
8799         (cgraph_node): Add the decl into varray.
8800
8801 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
8802
8803         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
8804
8805 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
8806
8807         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
8808         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
8809         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
8810         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
8811         All callers changed.
8812         * arm.md, arm.h, arm-protos.h: Updated.
8813
8814         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
8815         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
8816         * arm.c (arm_regno_class, f_register_operand): Updated.
8817
8818 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
8819
8820         * config/cris/cris.h: Remove EGCS references.
8821         (CPP_SPEC): Remove "-$".
8822         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
8823
8824 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8825
8826         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
8827         preference to CPP_PREDEFINES.
8828
8829 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8830
8831         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
8832
8833 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8834
8835         * config/h8300/h8300.md (*extzv_16_8): New.
8836
8837 2003-03-08  Jan Hubicka  <jh@suse.cz>
8838
8839         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
8840         * cgraph.h: (cgraph_local_info): Add can_inline_once
8841         (cgraph_global_info): Add inline_once.
8842         (cgraph_node): Add previous.
8843         (cgraph_remove_node): New.
8844         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
8845         function.
8846         (cgraph_optimize): Call it.
8847         (cgraph_finalize_function):  Set inlinable flags.
8848         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
8849         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
8850         (cgraph_expand_function): Likewise.
8851         * cgraph.c
8852         (cgraph_node): Put nodes into doubly linked chain.
8853         (cgraph_remove_node): New function.
8854         * flags.h (flag_inline_functions_called_once): Declare.
8855         * tree-inline.c: Include cgraph.h
8856         (inlinable_functions_p): Add extra argument to bypass limits.
8857         (expand_call_inline):  Obey cgraph flag.
8858         * tree-inline.h (tree_inlinable_function_p): Update prototype.
8859
8860 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8861
8862         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
8863         irreducible loops.
8864
8865         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
8866         loops info correctly.
8867
8868 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8869
8870         PR middle-end/7796
8871         * unroll.c (calculate_giv_inc): Handle constants being
8872         loaded with LSHIFTRT.
8873
8874 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
8875
8876         * config/rs6000/rs6000.c (processor_target_table): Do not disable
8877         GP optional instructions on Power3, Power4, 620, and 630.
8878
8879 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8880
8881         * calls.c: Fix comment formatting.
8882         * cfgloopanal.c: Likewise.
8883         * cfgloopmanip.c: Likewise.
8884         * combine.c: Likewise.
8885         * dwarf2out.c: Likewise.
8886         * ggc-common.c: Likewise.
8887         * langhooks.c: Likewise.
8888         * loop-unroll.c: Likewise.
8889         * loop.c: Likewise.
8890         * ra-build.c: Likewise.
8891         * sbitmap.c: Likewise.
8892         * toplev.c: Likewise.
8893
8894 2003-03-07  James E Wilson  <wilson@tuliptree.org>
8895
8896         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
8897
8898 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
8899
8900         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
8901         support -no-integrated-cpp.
8902
8903         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
8904         than langhooks.name.
8905
8906 2003-03-07  Michael Matz  <matz@suse.de>
8907
8908         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
8909         (DF_FOR_REGALLOC): New.
8910         * df.c (df_ref_record): Set DF_REF_STRIPPED.
8911         (read_modify_subreg_p): Simplify.
8912         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
8913         Use DF_FOR_REGALLOC.
8914         * ra.h (struct web): New member subreg_stripped.
8915         (invalid_mode_change_regs): Declare.
8916         * ra.c (invalid_mode_change_regs): New.
8917         (init_ra): Initialize it.
8918         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
8919         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
8920         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
8921         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
8922         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
8923
8924 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
8925
8926         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
8927         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
8928         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
8929         machine description file from ...
8930         * cirrus.md: ... here.
8931
8932 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8933
8934         * config/h8300/h8300.md (a peephole2): Don't use
8935         reg_overlap_mentioned_p.
8936
8937 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
8938
8939         * c-pch.c: Include langhooks.h.
8940         (IDENT_LENGTH): New.
8941         (get_ident): New.
8942         (pch_ident): Delete.
8943         (pch_init): Use get_ident, IDENT_LENGTH.
8944         (c_common_valid_pch): Likewise.  Also, use actual language
8945         in warning message.
8946         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
8947
8948         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
8949         c-parse.in.
8950         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
8951         gt-objc-objc-act.h.
8952         (gt-objc-objc-act.h): New rule.
8953         * objc/lang-specs.h: Support PCH.
8954         * objc/objc-act.c: Include gt-objc-objc-act.h.
8955         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
8956         (build_selector_reference_decl): Move idx out, mark for PCH.
8957         (build_class_reference_decl): Likewise.
8958         (build_objc_string_decl): Move *_idx out, mark for PCH.
8959         (build_tmp_function_decl): Move xxx out, mark for PCH.
8960
8961 2003-03-06  Dale Johannesen  <dalej@apple.com>
8962
8963         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
8964         global functions for inlining on Darwin.
8965
8966 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
8967
8968         * haifa-sched.c (schedule_block): Don't call reorder when sorting
8969         is prohibited.
8970
8971 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
8972
8973         * Makefile.in (c-ppoutput.o): Update.
8974         * c-common.h (init_pp_output): New.
8975         (preprocess_file): Update.
8976         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
8977         Register builtins.
8978         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
8979         Make call to cpp_read_main_file common to whether preprocessing
8980         or not.  Don't register builtins.
8981         * c-ppoutput.c: Include c-pragma.h.
8982         (setup_callbacks): Rename init_pp_output.
8983         (preprocess_file): No longer setup callbacks or call
8984         cpp_read_main_file.
8985         * cpphash.h (_cpp_init_mbchar): New.
8986         * cppinit.c (init_library): Call _cpp_init_mbchar.
8987         * cpplex.c (_cpp_init_mbchar): New.
8988
8989 2003-03-06  Roger Sayle  <roger@eyesopen.com>
8990
8991         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
8992         MEM, try loading the MEM into a register and taking the low-part
8993         of that, to help CSE see the use of the MEM in its true mode.
8994
8995 2003-03-05  Tom Tromey  <tromey@redhat.com>
8996
8997         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
8998         Define.
8999
9000 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
9001
9002         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
9003         operand 2.
9004         ("*ineqbranchsi"): Likewise.
9005
9006 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
9007
9008         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
9009         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
9010         register store followed by a stack increment.
9011
9012 2003-03-05  Chris Moller  <cmoller@redhat.com>
9013
9014         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
9015         to inhibit saving CARRY_REGS.
9016
9017         * config/stormy16/stormy16.c (xs_hi_general_operand):
9018         added predicate to detect and error-out on out-of-range
9019         const_ints for movhi.
9020         * config/stormy16/stormy16.md (movhi): use
9021         xs_hi_general_operand.
9022
9023         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
9024         added a check for local vbl size overflow.
9025         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
9026         added predicate to detect and error-out on out-of-range
9027         const_ints for addhi and subhi.
9028         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
9029         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
9030
9031         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9032         add a term to accept PRE_MODIFY addresses.
9033         * config/stormy16/stormy16.c (xstormy16_expand_move):
9034         add code to expand PRE_MODIFY addresses to an add followed
9035         by a move.
9036
9037 2003-03-06  Jason Merrill  <jason@redhat.com>
9038
9039         * tree-inline.c (inlinable_function_p): Revert earlier change
9040         pending investigation.
9041
9042 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
9043
9044         * config/h8300/h8300.md (a new peephole2): New.
9045
9046 2003-03-06  Jan Hubicka  <jh@suse.cz>
9047
9048         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
9049
9050 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9051
9052         * dwarf2out.c (size_of_die): Compute size of external reference to
9053         die correctly.
9054
9055 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
9056
9057         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
9058         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
9059         expanders.
9060
9061 2003-03-05  Roger Sayle  <roger@eyesopen.com>
9062
9063         * expr.h (lang_expand_expr): Delete obsolete prototype.
9064
9065 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
9066
9067         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
9068
9069 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
9070
9071         * config/h8300/h8300.md (a peephole2): Generalize to
9072         accept a memory operand.
9073
9074 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
9075
9076         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
9077         * config/alpha/alpha.c (print_operand, case '+'): New.
9078         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
9079         (call_value_osf_1_noreturn): Likewise.
9080
9081 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9082
9083         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
9084         (expand_end_bindings): Likewise.
9085
9086 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9087
9088         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
9089         (epilogue): Don't generate return_external_pic when emitting PA 2.0
9090         code.
9091
9092 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
9093
9094         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
9095
9096         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
9097
9098         * hooks.c (hook_rtx_rtx_null): New.
9099
9100         * hooks.h (hook_rtx_rtx_null): Protoize.
9101
9102         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
9103         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
9104
9105         * target.h (struct gcc_target): Add dwarf_register_span.
9106
9107         * dwarf2out.c (multiple_reg_loc_descriptor): New.
9108         (one_reg_loc_descriptor): New.
9109         (reg_loc_descriptor): Add support for values that span more than
9110         one register.
9111
9112 2003-03-05  Jan Hubicka  <jh@suse.cz>
9113
9114         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
9115         * alias.c:  Include cgraph.h
9116         (mark_constant_function): Use cgraph_rtl_info.
9117         * calls.c:  Include cgraph.h
9118         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
9119         calls.
9120         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
9121         * cgraph.c (cgraph_rtl_info): New function.
9122         * cgraph.h (cgraph_rtl_info): Declare
9123         (cgraph_rtl_info): Likewise.
9124         * function.h (struct function): Add recursive_call_emit.
9125         * toplev.c: Include cgraph.h.
9126         (rest_of_compilation): Set preferred_incoming_stack_boundary.
9127
9128 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
9129
9130         * config/h8300/h8300.c (output_simode_bld): Clear the
9131         destination first if possible.
9132         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
9133         alternative.
9134         (extzv_1_r_inv_h8300hs): Likewise.
9135
9136 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9137
9138         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
9139         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
9140         * cfgloop.c (flow_loop_free): Made global.
9141         (establish_preds): New static function.
9142         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
9143         (get_loop_exit_edges): New.
9144         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
9145         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
9146         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
9147         loops.
9148         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
9149         removability of an edge.
9150         (fix_irreducible_loops): New static function.
9151         (find_path, remove_path): Add ability to remove enclosing loops.
9152         (unloop): New.
9153         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
9154         flags.
9155         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
9156         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
9157         not neccessary.
9158         (decide_peel_completely, peel_loops_completely): Allow complete peeling
9159         of non-duplicable once rolling loops.
9160         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
9161
9162 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
9163
9164         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
9165         for align_jumps is 4.
9166
9167         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
9168         use GENERAL_REGS.
9169
9170 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
9171
9172         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
9173         according to va_arg type.
9174         (EXPAND_BUILTIN_VA_ARG): Remove.
9175         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
9176         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
9177
9178 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
9179
9180         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
9181         else clauses.
9182
9183 2003-03-05  Michael Matz  <matz@suse.de>
9184
9185         * i386/i386.c (ix86_save_reg): Also test
9186         current_function_uses_const_pool.
9187
9188 2003-03-05  Michael Matz  <matz@suse.de>
9189
9190         * unwind.h: Add the GPL exception.
9191         * Makefile.in (USER_H): Add unwind.h.
9192
9193 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
9194
9195         PR c/9799
9196         * c-typeck.c (push_init_level): Add sanity check.
9197
9198 2003-03-05  Jan Hubicka  <jh@suse.cz>
9199
9200         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
9201         RTL inlining is done.
9202
9203         * cgraphunit.c (cgraph_mark_local_functions): New local function.
9204         (cgraph_optimize): Mark local functions.
9205         * i386-protos.h (init_cumulative_args): Update prototype.
9206         * i386.c (init_cumulative_args): Use register passing convention for
9207         local functions.
9208
9209         * cgraph.c (cgraph_global_info_ready): New global variable
9210         (cgraph_local_info, cgraph_global_info): New functions.
9211         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
9212         structures.
9213         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
9214         Declare.
9215         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
9216         (cgraph_mark_functions_to_output): Use inline_many.
9217         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
9218         (cgraph_expand_functions): Expand inline functions last.
9219         (cgraph_optimize): Do not emit uneeded functions.
9220
9221 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
9222
9223         * expr.c (convert_modes): Check for legal hard register.
9224
9225 2003-03-04  Tom Tromey  <tromey@redhat.com>
9226
9227         * doc/sourcebuild.texi (Front End Directory): Document tags.
9228         * configure: Rebuilt.
9229         * configure.in (target_list): Added tags.
9230         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
9231         TAGS files by reference.
9232         * objc/Make-lang.in (objc.tags): New target.
9233
9234 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9235
9236         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
9237         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
9238         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
9239         gcov_read_string, gcov_write_length): Modified to enable reading/
9240         writing of whole .da file just once.
9241         (da_file_open, da_file_close, da_file_eof, da_file_error,
9242         da_file_position, da_file_seek, da_file_write, da_file_read): New
9243         functions.
9244         (actual_da_file, actual_da_file_position, actual_da_file_length,
9245         actual_da_file_buffer, actual_da_file_buffer_size): New static
9246         functions.
9247         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
9248         just once.
9249
9250
9251 2003-03-04  Andreas Schwab  <schwab@suse.de>
9252
9253         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
9254         offset without frame pointer.
9255
9256 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
9257
9258         * expr.c (expand_expr): Call promote_mode to set unsignedp.
9259
9260 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
9261
9262         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
9263         * configure: Regenerated.
9264         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
9265
9266 2003-03-04  Andreas Jaeger  <aj@suse.de>
9267
9268         * configure.in: Check for <memcheck.h>.
9269         * configure: Regenerated.
9270
9271         * config.in: Define HAVE_MEMCHECK_H.
9272
9273         * ggc-common.c: Use <memcheck.h> if available instead of
9274         <valgrind.h>.
9275         * ggc-page.c: Likewise.
9276         * cppfiles.c: Likewise.
9277
9278 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
9279
9280         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
9281
9282 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9283
9284         PR c/9262
9285         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
9286         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
9287
9288 2003-03-04  Jan Hubicka  <jh@suse.cz>
9289
9290         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
9291         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
9292         for -O3.
9293
9294 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
9295
9296         * configure.in: Delete three unused variables.  Move a variable
9297         definition closer to its use.  Simplify use_collect2 logic.  Start to
9298         organize.  Simplify tests for in-tree gas and ld.
9299         * configure: Regenerate.
9300
9301 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
9302
9303         * Makefile.in: Update.
9304         * c-common.c (flag_no_line_commands, flag_no_output,
9305         flag_dump_macros, flag_dump_includes): New.
9306         * c-common.h (flag_no_line_commands, flag_no_output,
9307         flag_dump_macros, flag_dump_includes, preprocess_file): New.
9308         (init_c_lex): Update prototype.
9309         * c-lex.c (init_c_lex): Update prototype; move some code to
9310         c_common_init.
9311         * c-opts.c (preprocess_file): Subsume into c_common_init.
9312         (c_common_decode_option): Update flags.
9313         (c_common_init): Move code from preprocess_file and init_c_lex.
9314         (sanitize_cpp_opts): Update.
9315         * c-ppoutput.c: New, cppmain.c almost verbatim.
9316         * cpphash.h (struct printer): Remove.
9317         (struct cpp_reader): Remove print.
9318         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
9319         cpp_preprocess_file): Remove.
9320         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
9321         and dump_includes.
9322         * cppmain.c: Remove.
9323         * doc/passes.texi: Update.
9324
9325 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9326
9327         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
9328         (assign_stack_local_1): Perform overall stack alignment only when
9329         STACK_ALIGNMENT_NEEDED is non-zero.
9330         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
9331
9332         * pa.c (compute_frame_size): Rename fsize to size.  Account for
9333         alignment to a word boundary before general register save block.  Only
9334         account for double-word alignment before floating point register save
9335         block if one or more are saved.  Don't allocate space for %r3 when
9336         frame pointer is needed.
9337         (hppa_expand_prologue): Include alignment to word boundary in local
9338         frame size.
9339         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
9340         (STACK_ALIGNMENT_NEEDED): Define.
9341
9342 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
9343
9344         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
9345         global register variables.
9346
9347 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
9348
9349         * reload.c (reload_adjust_reg_for_mode): New function.
9350         (subst_reloads): Call it.
9351         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
9352         * reload.h (reload_adjust_reg_for_mode): Declare.
9353         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
9354         Call it.
9355
9356 2003-03-03  James E Wilson  <wilson@tuliptree.org>
9357
9358         * optabs.c (add_equal_note): Delete SUBREG_REG use.
9359         Fixes PR c/7872.
9360
9361 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9362
9363         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
9364         (*ixorsi3_lshiftrt_16): New.
9365         (*iorsi3_ashift_16): Remove.
9366
9367 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9368
9369         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
9370         pattern.
9371
9372 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
9373
9374         * doc/install.texi (Specific): Update entry for powerpc-darwin.
9375
9376 2003-03-03  Richard Henderson  <rth@redhat.com>
9377
9378         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
9379
9380 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
9381
9382         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
9383         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
9384         (rs6000_variable_issue): Do not return negative value.
9385         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
9386         scheduling pass.
9387
9388 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9389
9390         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
9391         prune_unused_types calls.
9392
9393 2003-03-03  Jason Merrill  <jason@redhat.com>
9394
9395         * tree-inline.c (find_builtin_longjmp_call): Save and restore
9396         lineno and input_filename.
9397         (find_alloca_call): Likewise.
9398         (inlinable_function_p): Run the langhook earlier.
9399
9400         * calls.c (compute_argument_addresses): Give the new MEMs a
9401         minimum alignment of PARM_BOUNDARY.
9402
9403 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
9404
9405         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
9406         subtarget_asm_isa_spec.
9407         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
9408         (ASM_SPEC): Define as SH_ASM_SPEC.
9409         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
9410         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
9411         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
9412         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
9413
9414         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
9415         and align_jumps if not set.
9416         Force align_jumps to be at least 2.
9417         When relaxing, force align_functions to be at least the maximum of
9418         align_loops, align_jumps and 4.
9419         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
9420         (sh_loop_align): Honour align_loops_log.
9421
9422         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
9423         to check for indirect_jump_scratch.
9424         (indirect_jump_scratch): Add second set.
9425         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
9426         when looking for indirect_jump_scratch.
9427         Extract scratch register taking new structure of indirect_jump_scratch
9428         into account.
9429         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
9430
9431 2003-03-03  Jan Hubicka  <jh@suse.cz>
9432
9433         * calls.c (rtx_for_function_call): Take the address as an argument
9434         (expand_call): Do not modify the expression.
9435
9436         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
9437         optimizing.
9438
9439 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9440
9441         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
9442         TARGET_H8300H and TARGET_H8300S.
9443
9444 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9445
9446         * config/h8300/h8300.md (a peephole2): New.
9447
9448 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9449
9450         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
9451         operands[0] and operands[1] are different.
9452
9453 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9454
9455         * reload1.c (reload_cse_move2add): Remove variable success.
9456
9457 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9458
9459         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
9460         warnings.
9461
9462 2003-03-02  Richard Henderson  <rth@redhat.com>
9463
9464         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
9465         * config.in, configure: Rebuild.
9466         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
9467         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
9468         paired ldtoffx and ldxmov annotations.
9469         (load_symptr_internal1): Remove.
9470         (load_symptr_high, load_symptr_low): New.
9471
9472 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9473
9474         * c-incpath.c (add_path): Fix sysp assignment.
9475
9476 2003-03-02  Kurt Garloff  <garloff@suse.de>
9477
9478         * params.def: Introduce parameter max-inline-insns-rtl for
9479         a separate limit for the RTL inliner.
9480         * params.h: Likewise.
9481         * integrate.c (function_cannot_inline_p): Use it.
9482         * toplev.c (decode_f_option): Set multiple parameters
9483         controlling inlining with -finline-limit.
9484         * params.def: Fix orthographic and typographic errors.
9485         * doc/invoke.texi: Document parameters controlling inlining
9486         and the way -finline-limit sets multiple of them.
9487
9488         * tree.h (struct tree_decl): Introduce inlined_function_flag,
9489         recording whether the function became eligible for inlining
9490         by a compiler flag rather than the declaration.
9491         Provide DID_INLINE_FUNC macro to access it.
9492         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
9493         * cp/decl.c (grokfndecl): Likewise.
9494         * toplev.c (rest_of_compilation): Likewise.
9495         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
9496         * print-tree.c (print_node): Report it.
9497         * params.def: Introduce new max-inline-insns-auto limit.
9498         * params.h: Likewise.
9499         * tree-inline.c (inlinable_function_p): Apply it to functions
9500         with DID_INLINE_FUNC set.
9501         * toplev.c (decode_f_option): Initialize it from -finline-limit
9502         value.
9503         * doc/invoke.texi: Document new parameter.
9504
9505 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
9506
9507         * fix-header.c (read_scan_file): Don't reference simplify_path.
9508
9509 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9510
9511         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
9512         min/max instructions by default as may result in reload errors.
9513
9514 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9515
9516         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
9517         avoid reload problems; define split for it.
9518
9519 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9520
9521         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
9522         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
9523         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
9524         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
9525         rotatert and rotate.
9526         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
9527         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
9528         ("*rotrhi3_addr"): New split for shift insns on address register.
9529         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
9530         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
9531         (___rotrhi3): Likewise.
9532         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
9533
9534 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9535
9536         * toplev.c (aux_base_name): Moved from toplev.h.
9537         (filename): Constify.
9538         (lang_dependent_init): Don't duplicate name.
9539         (process_options): Set aux_base_name here, not...
9540         (do_compile): ...here.  Change protoype.
9541         (toplev_main): Move some code from do_compile.
9542         * toplev.h: Remove aux_base_name.
9543
9544 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
9545
9546         * config/h8300/h8300-protos.h: Add a prototype for
9547         iorxor_operator.
9548         * config/h8300/h8300.c (print_operand): Handle 'c'.
9549         (iorxor_operator): New.
9550         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
9551         * config/h8300/h8300.md (*iorhi3_zext): Remove.
9552         (*iorsi3_zexthi): Likewise.
9553         (*iorsi3_zextsi): Likewise.
9554         (*xorhi3_zextqi): Likewise.
9555         (*xorsi3_zexthi): Likewise.
9556         (*xorsi3_zextsi): Likewise.
9557         (*ixorhi3_zext): New.
9558         (*ixorsi3_zext_qi): Likewise.
9559         (*ixorsi3_zext_hi): Likewise.
9560
9561 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9562
9563         * c-incpath.c (remove_component_p, simplify_path): Move back to
9564         cppfiles.c.
9565         (remove_duplicates): Use cpp_simplify_path.
9566         * c-incpath.h (simplify_path): Remove.
9567         * c-lex.c: Don't include c-incpath.h.
9568         (init_c_lex): Remove simplify_path.
9569         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
9570         (find_or_create_entry, validate_pch): Revert.
9571
9572 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
9573
9574         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
9575           an external cpp during compilation.
9576         (option_map): Likewise.
9577         * objc/lang-specs.h (default_compilers): Similarly.
9578         * doc/invoke.texi: Document -no-integrated-cpp flag.
9579
9580 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
9581
9582         * config/h8300/h8300.md (zero_extendqisi2): Change to an
9583         expander.
9584         (*zero_extendqisi2_h8300): New.
9585         (*zero_extendqisi2_h8300hs): New.
9586         (two splitters): New.
9587
9588 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9589
9590         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
9591
9592 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9593
9594         * config/h8300/h8300.md (a peephole2): Remove dead code.
9595
9596 2003-03-01  Roger Sayle  <roger@eyesopen.com>
9597
9598         PR c++/9367
9599         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
9600         (BT_FN_INT_CONST_STRING_VALIST_ARG,
9601         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
9602         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
9603         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
9604         BT_FN_INT_STRING_CONST_STRING_VAR,
9605         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
9606         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
9607         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
9608         ATTR_NONNULL_3): Also include the nothrow attribute.
9609         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
9610         vsnprintf, vscanf, vsscanf): Don't define attributes here.
9611         * builtins.def (putchar, puts): Make full C89 built-ins.
9612         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
9613         vsscanf, vsnprintf, vsprintf): New built-ins.
9614         * c-common.c (c_common_nodes_and_builtins): Handle new macro
9615         DEF_FUNCTION_TYPE_VAR_3.
9616
9617         * doc/extend.texi: Document these new built-in functions.
9618
9619 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9620
9621         * config/h8300/h8300.md (a peephole2): New.
9622
9623 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
9624
9625         * predict.c (estimate_bb_frequencies): Correctly set
9626         real_values_initialized after initialization.
9627
9628 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
9629
9630         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
9631         cppinit.o, cppdefault.o, fix-header): Update.
9632         * c-incpath.c: New file.
9633         * c-incpath.h: New file.
9634         * c-lex.c: Include c-incpath.h.
9635         (init_c_lex): Register path simplifier.
9636         * c-opts.c: Include cppdefault.h and c-incpath.h.
9637         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
9638         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
9639         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
9640         (missing_arg, c_common_decode_option): Handle them.
9641         (c_common_post_options): Register include chains.
9642         (print_help): Update.
9643         * cppdefault.h (struct default include): Update.
9644         Move some macros to ...
9645         * cppdefault.c: ... here.
9646         (cpp_include_defaults): Add extra field add_sysroot.
9647         * cppfiles.c (include_file, search_from, find_or_create_entry,
9648         cpp_included, find_include_file, remap_filename): Update for
9649         renaming of search_path to cpp_path, and of the chain headers.
9650         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
9651         * cpphash.h (struct search_path): Move to cpplib.h.
9652         (struct cpp_buffer, struct cpp_reader): Update.
9653         (_cpp_simplify_pathname): Remove.
9654         * cppinit.c: Don't include prefix.h and cppdefault.h.
9655         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
9656         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
9657         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
9658         no_pth, cpp_handle_options): Remove.
9659         (struct pending_option): Remove chain members.
9660         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
9661         cpp_handle_option): Update.
9662         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
9663         (struct cpp_options): Remove quote_include, bracket_include,
9664         include_prefix, include_prefix_len, verbose, ignore_srcdir,
9665         no_standard_includes, no_standard_cplusplus_includes.
9666         (struct cpp_callbacks): Add simplify_path.
9667         (cpp_handle_options): Remove.
9668         * fix-header.c: Include c-incpath.h.
9669         (read_scan_file): Update to use c-incpath functionality.
9670         * doc/passes.texi: Update.
9671
9672 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9673
9674         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
9675         satisfies EXTRA_CONSTRAINT 'U'.
9676
9677 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9678
9679         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
9680         register.
9681         (*tst_extzv_memqi_1_n): Change to a splitter.
9682         (a peephole2): Update.
9683
9684 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
9685
9686         * predict.c (estimate_bb_frequencies): Initialize the sreal
9687         constants once per compilation.
9688
9689 2003-02-28  Richard Henderson  <rth@redhat.com>
9690
9691         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
9692
9693 2003-02-28  scott snyder  <snyder@fnal.gov>
9694
9695         * flags.h: Add flag_eliminate_unused_debug_types.
9696         * toplev.c: Add flag_eliminate_unused_debug_types.
9697         (f_options): Add -feliminate-unused-debug-types.
9698         * dwarf2out.c (struct file_table): Add emitted member.
9699         (splice_child_die): Fix the parent pointer for the child being
9700         spliced.
9701         (lookup_filename): Maintain file_table.emitted array.  Don't
9702         output .file directive here.
9703         (maybe_emit_file): (new)
9704         (init_file_table): Set up file_table.emitted.
9705         (dwarf2out_source_line): Use maybe_emit_file.
9706         (dwarf2out_start_source_file): Use maybe_emit_file.
9707         (dwarf2out_init): Use maybe_emit_file.
9708         (prune_unused_types_walk_attribs): (new)
9709         (prune_unused_types_mark): (new)
9710         (prune_unused_types_walk): (new)
9711         (prune_unused_types_prune): (new)
9712         (prune_unused_types): (new)
9713         (dwarf2out_finish): Call prune_unused_types if
9714         flag_eliminate_unused_debug_types is set.
9715         * doc/invoke.texi (Option Summary): Add
9716         -feliminate-unused-debug-types.
9717         (Debugging Options): Likewise.
9718
9719 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
9720
9721         * doc/invoke.texi: Change .pch to .gch.
9722         * cppfiles.c (open_file_pch): Likewise.
9723         * gcc.c (default_compilers): Likewise.
9724
9725 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
9726
9727         * floatlib.c: Remove.
9728
9729 2003-02-28  Jason Merrill  <jason@redhat.com>
9730
9731         * stor-layout.c (variable_size): Leave a "minus 1" outside the
9732         SAVE_EXPR.
9733
9734 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
9735
9736         * config/rs6000/power4.md: Add compare bypass.
9737
9738 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
9739
9740         * config/netbsd.h: Update copyright years.
9741         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
9742         -pthread is specified on the command line.
9743
9744 2003-02-28  Dale Johannesen <dalej@apple.com>
9745
9746         * loop.c (struct movable): Add insert_temp, shrink savemode.
9747         (scan_loop): Accept invariants that require copying; mark as
9748         insert_temp.
9749         (combine_movables): Don't combine insert_temp movables.
9750         (move_movables): Insert copies for insert_temp movables.
9751         Don't record the info based on regno for insert_temp's.
9752
9753 2003-02-28  Joel Sherrill <joel@OARcorp.com>
9754
9755         PR 9638/other
9756         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
9757         this constant defaults to 1.
9758
9759 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
9760
9761         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
9762
9763 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
9764
9765         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
9766         ARMv5e processor, not just for XScale.  Instructions are predicable.
9767         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
9768
9769 2003-02-28  Nick Clifton  <nickc@redhat.com>
9770
9771         * config/arm/arm.c (note_invalid_constants): Change parameter type
9772         from bool to int.
9773
9774 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
9775
9776         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
9777         test of bit 7.
9778         (*tst_extzv_memqi_1_n): Likewise.
9779         (a peephole2): New.
9780
9781 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
9782
9783         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
9784         #ifndef __mips16.
9785
9786 2003-02-28  Jan Hubicka  <jh@suse.cz>
9787
9788         * combine.c (gen_lowpart_for_combine): Update handling of
9789         subregs_of_mode
9790         * flow.c (life_analysis, mark_used_regs): Likewise.
9791         * regclass.c (subregs_of_mode): Turn into single bitmap.
9792         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
9793         dealing with subregs_of_mode
9794         * regs.h (subregs_of_mode): Update prototype.
9795
9796 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
9797
9798         * emit-rtl.c (set_reg_attrs_for_parm): New function.
9799         * rtl.h (set_reg_attrs_for_parm): New exported function.
9800         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
9801         set_reg_attrs_from_mem.
9802
9803 2003-02-27  Roger Sayle  <roger@eyesopen.com>
9804             Zack Weinberg <zack@codesourcery.com>
9805
9806         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
9807
9808 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
9809
9810         * reload1.c (sext_for_mode): Remove.
9811         (reload_cse_move2add): Use trunc_int_for_mode instead of
9812         sext_for_mode.
9813         (move2add_note_store): Likewise.
9814         Reset register information if we see a set in non-integer
9815         mode.
9816
9817 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
9818
9819         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
9820         option.
9821         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
9822         * config/rs6000/aix51.h: Same.
9823         * config/rs6000/aix52.h: Same.
9824         * config/rs6000/power4.md: Additional VMX bypasses.
9825
9826 2003-02-27   Geert Bosch <bosch@gnat.com>
9827
9828         * toplev.c (print_version): Add indentation for GGC heuristics and
9829         output after printing version information.
9830
9831 2003-02-27  James E Wilson  <wilson@tuliptree.org>
9832
9833         * combine.c (simplify_comparison): Require integral mode when
9834         permuting SUBREG with AND.
9835
9836 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
9837
9838         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
9839
9840 2003-02-27  Nick Clifton  <nickc@redhat.com>
9841
9842         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
9843         deleted when cirrus instructions were added.
9844
9845 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
9846
9847         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
9848         POSIX thread support by default.
9849
9850 2003-02-27  Roger Sayle  <roger@eyesopen.com>
9851
9852         * config/i386/cygwin.h: Don't include any other files directly.
9853         * config/i386/mingw32.h: Don't include cygwin.h directly.
9854         * config.gcc (cygwin, mingw32, uwin): Instead make these files
9855         explicit in the tm_files variable.
9856
9857 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
9858
9859         * config/rs6000/rs6000.md: Add TI constant splitter.
9860
9861 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
9862
9863         * builtins.c (purge_builtin_constant_p): Handle subreg of
9864         constant_p_rtx too.
9865
9866         * function.c (assign_stack_local_1): Truncate constant added to
9867         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
9868
9869 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
9870
9871         * config.gcc: Add power4 to PowerPC with_cpu list.
9872
9873 2003-02-26  Jan Hubicka  <jh@suse.cz>
9874
9875         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
9876
9877 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9878
9879         * gcov-dump.c (print_prefix): Fix signedness warning.
9880         * gcov-io.h (struct counter_section, struct counter_section_data): New.
9881         (struct function_info): n_arc_counts field removed, n_counter_sections,
9882         counter_sections fields added.
9883         (struct gcov_info): arc_counts, n_arc_counts fields removed,
9884         n_counter_sections, counter_sections fields added.
9885         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
9886         profile sections.
9887         * profile.h (MAX_COUNTER_SECTIONS): New.
9888         (struct section_info): New.
9889         (struct profile_info): count_instrumented_edges,
9890         count_edges_instrumented_now fields removed, n_sections, section_info
9891         fields added.
9892         (find_counters_section): Declare.
9893         * profile.c (struct function_list): count_edges field removed,
9894         n_counter_sections, counter_sections fields added.
9895         (set_purpose, label_for_tag, build_counter_section_fields,
9896         build_counter_section_value, build_counter_section_data_fields,
9897         build_counter_section_data_value, build_function_info_fields,
9898         build_function_info_value, build_gcov_info_fields,
9899         build_gcov_info_value): New static functions.
9900         (find_counters_section): New function.
9901         (instrument_edges, get_exec_counts, compute_branch_probabilities,
9902         branch_prob, create_profiler): Modified to support multiple profile
9903         sections.
9904
9905 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9906
9907         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
9908         is 8 * STACK_BOUNDARY.
9909         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
9910
9911 2003-02-26  Michael Matz  <matz@suse.de>
9912
9913         * ra-colorize.c (merge_moves): Fix list handling.
9914
9915 2003-02-26  Nick Clifton  <nickc@redhat.com>
9916
9917         * config/arm/arm.c (is_load_address): Rename to...
9918         (arm_memory_load_p) ... this and make it check for SUBREGs and
9919         constant loads that will be converted into loads from the
9920         minipool.
9921         (is_cirrus_insn): Rename to ...
9922         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
9923         of CIRRUS_NO with CIRRUS_NOT.
9924         (cirrus_reorg): Use renamed functions.
9925         (note_invalid_constants): Change from a void function to bool.
9926         Add an extra parameter, saying whether the fixups should be
9927         pushed.  Return true if fixups are needed.
9928         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
9929         of CIRRUS_NO with CIRRUS_NOT.
9930         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
9931         other floating point co-processors can also affect this.
9932         * config/arm/arm.md ("type" attribute): Add mav_farith and
9933         mav_dmult.  Replace references to "cirrus_type" attribute with
9934         "type".
9935         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
9936         ("cirrus_type" attribute): Delete - use "type" instead.
9937         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
9938         'normal'.
9939
9940 2003-02-25  Jan Hubicka  <jh@suse.cz>
9941
9942         * objc-act.c: Include cgraph.h
9943         (mark_referenced_methods): New function.
9944         (objc_init): Call it.
9945         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
9946
9947         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
9948         mode.
9949
9950         * optabs.c (expand_fix): Do not widen the input operand.
9951
9952         * expr.c (emit_group_store):  Fix crash when converting single
9953         register into complex register.
9954
9955         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
9956         * alias.c: Include timevar.h
9957         (init_alias_analysis):  Set timevar
9958         * jump.c: Include timevar.h
9959         (rebuild_jump_labels):  Set timevar
9960         * regcalss.c: Include timevar.h
9961         (reg_scan):  Set timevar
9962         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
9963
9964 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9965
9966         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
9967
9968         * Makefile.in (loop-unroll.o): New.
9969         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
9970         (unroll_and_peel_loops): Declare.
9971         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
9972         flag_old_unroll_loops.
9973         * loop.c (loop_invariant_p): Ditto.
9974         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
9975         flag_old_unroll_all_loops.
9976         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
9977         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
9978         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
9979         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
9980         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
9981         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
9982         PARAM_MAX_ONCE_PEELED_INSNS): New.
9983         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
9984         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
9985         instead of old one.
9986         (flag_peel_loops): New.
9987         (lang_independent_options): The new flags added.
9988         (rest_of_compilation): Call new unroller.
9989         (process_options): Setup flags for coexistence of old and new unroller.
9990         * doc/invoke.texi: Document new options.
9991         * doc/passes.texi: Document new unroller pass.
9992
9993 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
9994
9995         * fixinc/fixincl.x: Regenerate
9996
9997 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
9998
9999         * function.c (assign_parms): Set reg_attrs for parameters passed in
10000         registers.
10001
10002 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
10003
10004         PR target/9681
10005         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
10006
10007 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
10008
10009         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
10010         pseudo-op.
10011
10012 2003-02-25  Roger Sayle  <roger@eyesopen.com>
10013
10014         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
10015         * cse.c (invalidate_skipped_set):  Likewise.
10016         * integrate.c (subst_constants):  Likewise.
10017         * jump.c (reversed_comparison_code_parts):  Likewise.
10018         * loop.c (canonicalize_condition):  Likewise.
10019         * simplify-rtx.c (simplify_relational_operation):  Likewise.
10020
10021 2003-02-25  Roger Sayle  <roger@eyesopen.com>
10022
10023         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
10024         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
10025         the appropriate macro to define built-in function.
10026         (fmod,fmodf,fmodl): New built-in functions.
10027
10028         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
10029
10030 2003-02-25  Richard Henderson  <rth@redhat.com>
10031
10032         * config/i386/i386.c (function_arg): Pass variable sized
10033         structures correctly on the stack.
10034
10035 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
10036
10037         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
10038         does not reduce the cost of SET.
10039
10040 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10041
10042         PR target/9732
10043         * config/rs6000/rs6000.c (first_reg_to_save): Handle
10044         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
10045         (rs6000_emit_prologue): Likewise.
10046         (rs6000_emit_epilogue): Likewise.
10047         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
10048         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
10049
10050 2003-02-25  Richard Henderson  <rth@redhat.com>
10051
10052         * real.c (real_to_integer2): Force overflow result only for
10053         unsigned overflow.
10054
10055 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
10056
10057         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
10058
10059 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
10060             Richard Henderson  <rth@redhat.com>
10061
10062         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
10063         there is no similar load.
10064
10065 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
10066             Richard Henderson  <rth@redhat.com>
10067
10068         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
10069         sched-rgn.c.
10070         (add_forward_dependence): New function prototype.
10071
10072         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
10073         sched-init.h.
10074         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
10075         them to haifa-sched.c.
10076
10077         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
10078         haifa_classify_insn): Move them from sched-rgn.c.
10079
10080         * sched-deps.c (add_dependence): Return flag of creating a new
10081         entry.
10082         (add_forward_dependence): New function.
10083         (compute_forward_dependences): Use the function.
10084
10085         * sched-ebb.c (earliest_block_with_similiar_load): New function.
10086         (add_deps_for_risky_insns): New function.
10087         (schedule_ebb): Call the function.
10088
10089 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
10090
10091         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
10092         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
10093
10094         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
10095         opaque types fail.
10096
10097         * c-typeck.c (comptypes): Change call to vector_types_compatible
10098         to vector_opaque_p.
10099         (convert_for_assignment): Call vector_opaque_p instead of
10100         vector_types_compatible.
10101         (really_start_incremental_init): Disallow initialization of opaque
10102         types.
10103
10104         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
10105         Define TARGET_VECTOR_OPAQUE_P.
10106         (TARGET_INITIALIZER): Same.
10107
10108         * target.h (struct gcc_target): Remove vector_types_compatible.
10109         Add vector_opaque_p.
10110
10111         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
10112         Remove.
10113         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
10114         a vector type.  Change return type to bool.
10115         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
10116         (TARGET_VECTOR_OPAQUE_P): Define.
10117
10118         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
10119         target hook.
10120         Include target.h.
10121         (cp_parser_init_declarator): Fix typo in function comments.
10122
10123 2003-02-25  Jan Hubicka  <jh@suse.cz>
10124
10125         * Makefile.in (lcm.o):  Add dependency on function.h
10126         * lcm.c (function.h): Include.
10127         * i386.c (machine_function, ix86_stack_locals,
10128         * ix86_save_varrargs_registers) : Move to
10129         ...
10130         * i386.h (machine_function, ix86_stack_locals,
10131         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
10132         (ix86_optimize_mode_switching): New.
10133         * i386.md (fix patterns): Set ix86_optimize_mode_switching
10134
10135 2003-02-25  Nick Clifton  <nickc@redhat.com>
10136
10137         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
10138         of fourth arg is 'fndecl' not 'indirect'.  Update comment
10139         describing the function's parameters.
10140
10141 2003-02-24  Jan Hubicka  <jh@suse.cz>
10142
10143         * combine.c (simplify_shift_const):  Fix previous patch.
10144
10145 2003-02-24  Jeff Law  <law@redhat.com>
10146
10147         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
10148         alternative.
10149         (testsi_1, testhi_1, testqi_1): Likewise.
10150
10151 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10152
10153         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
10154         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
10155         * doc/extend.texi (Tru64 Pragmas): Reflect this.
10156
10157         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
10158         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
10159         * fixinc/fixincl.x: Regenerate.
10160         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
10161         testcase.
10162         Fixes PR c/5059, c/6126, other/9671.
10163
10164 2003-02-24  Roger Sayle  <roger@eyesopen.com>
10165
10166         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
10167         from handle_braces in "%{...}".
10168
10169 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
10170
10171         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
10172         (prepare_move_operands): Handle TLS operands.
10173         (tls_symbolic_operand): New.
10174         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
10175         (legitimize_pic_address): Do nothing for the TLS symbol.
10176         (sh_encode_section_info): Handle TLS case.
10177         (sh_strip_name_encoding): Drop TLS encoding.
10178         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
10179         * config/sh/sh.h (SH_TLS_ENCODING): Define.
10180         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
10181         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
10182         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
10183         * config/sh/sh.md: Define TLS UNSPEC constants.
10184         (type): Add tls_load.
10185         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
10186         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
10187         ("tls_initial_exec"): New insn.
10188         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
10189         ("load_gbr"): New insn.
10190
10191         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
10192         * configure: Regenerate.
10193
10194 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
10195
10196         PR 9297, PR 9722
10197         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
10198         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
10199         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
10200         (enum block_op_methods): Reorder for better store_expr optimization.
10201         * expr.c (store_expr): Test bit 1 of "want_value" for call param
10202         stores, test bit 0 for original want_value meaning.  Pass
10203         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
10204         recursive calls, and calls to expand_param.
10205         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
10206         expected, set target to 0 rather than to subtarget.  Formatting.
10207
10208 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
10209
10210         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
10211
10212 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10213
10214         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
10215         new default behavior.
10216         * ggc-common.c: Include sys/resource.h.
10217         (ggc_rlimit_bound): New function.
10218         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
10219         defaults to account for rlimits.
10220
10221 2003-02-22  Richard Henderson  <rth@redhat.com>
10222
10223         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
10224
10225 2003-02-22  Kelley Cook <kelley@dwhoops.info>
10226
10227         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
10228         (ix86_tune_string): Rename from ix86_cpu_string.
10229
10230 2003-02-22  Kelley Cook <kelleycook@comcast.net>
10231
10232         * config/i386/i386.c: Replace "mcpu" with "mtune".
10233         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
10234         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
10235         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
10236         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
10237
10238 2003-02-23  Andreas Schwab  <schwab@suse.de>
10239
10240         * config.gcc: Delete references to m68k/t-linux and
10241         m68k/t-linux-aout.
10242         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
10243
10244 2003-02-22  Jan Hubicka  <jh@suse.cz>
10245
10246         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
10247         of track scheduling patch.
10248
10249 2003-02-22  Jan Hubicka  <jh@suse.cz>
10250
10251         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
10252         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
10253
10254 2003-02-22  Jan Hubicka  <jh@suse.cz>
10255
10256         * c-decl.c (c_expand_body_1): Fix.
10257
10258 2003-02-22  Jan Hubicka  <jh@suse.cz>
10259
10260         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
10261
10262         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
10263         when not optimizing.
10264         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
10265         when not expensive.
10266         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
10267         optimizing;  Delete trivially dead insns early; fix optimize check.
10268
10269         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
10270         dependency on cgraph.h
10271         * c-decl.c: Include cgraph.h
10272         (finish_function): Update call of tree_inlinable_function_p.
10273         * c-objc-common.c: Include cgraph.h
10274         * cgraph.h: New file.
10275         * cgraphunit.c: New file.
10276         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
10277         (cgraph_nodes, cgraph_n_nodes): Globalize.
10278         (cgraph_finalize_function, cgraph_finalize_compilation_unit
10279         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
10280         Move into cgraphunit.c
10281         * tree-inline.c: Include cgraph.h
10282         * tree-inline.c: Include cgraph.h
10283
10284 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
10285
10286         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
10287         for copying a register.
10288
10289 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
10290
10291         PR other/3782
10292         * toplev.c (process_options): If flag_detailed_statistics is set,
10293         then set time_report as well.
10294
10295         PR c/8828
10296         * jump.c (never_reached_warning): Don't fall through BARRRIER
10297         insns.  Update comments to reflect what the function really does.
10298
10299 2003-02-21  Roger Sayle  <roger@eyesopen.com>
10300
10301         * fold-const.c (omit_one_operand): No longer static.
10302         * tree.h (omit_one_operand): Prototype here.
10303         (div_and_round_double): Keep fold-const.c prototypes together.
10304         * builtins.c (builtin_mathfn_code): Handle binary built-in
10305         funtions, such as "pow" and "atan2".
10306         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
10307         Simplify optimizations using "type" the builtin's return type.
10308
10309 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
10310
10311         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
10312         Fix functionalization typo.
10313
10314         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
10315         in an asm.
10316
10317 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10318
10319         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
10320         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
10321         documentation.
10322         * ggc-common.c: Include params.h
10323         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
10324         init_ggc_heuristics): New functions.
10325         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
10326         init_ggc_heuristics): Prototype.
10327         * toplev.c (print_version):  Output GGC heuristics.
10328         (parse_options_and_default_flags): Call init_ggc_heuristics.
10329
10330 2003-02-22  Jan Hubicka  <jh@suse.cz>
10331
10332         * i386.c (def_builtin):  Special case 64bit builtins.
10333         (MASK_SSE164, MASK_SSE264): New constants.
10334         (builtin_description): Add 64bit builtins.
10335         (ix86_init_mmx_sse_builtins): Likewise.
10336         * i386.h (enum ix86_builtins): Likewise.
10337         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
10338         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
10339         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
10340         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
10341         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
10342         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
10343         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
10344
10345 2003-02-22  Jan Hubicka  <jh@suse.cz>
10346
10347         * i386.c (builtin_description): Add __builtin_ia32_paddq and
10348         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
10349          and __builtin_ia32_psubq128.
10350         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
10351         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
10352         (mmx_adddi3, mmx_subdi3): New.
10353         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
10354         * xmmintrin.h (_mm_movepi64_pi64): New.
10355         (_mm_add_epi64, _mm_sub_epi64): fix.
10356         (_mm_mul_pu16): Rename to...
10357         (_mm_mul_su32): ... this one.
10358
10359         * builtins.c (expand_builtin_expect):  Do not predict
10360         flag_guess_branch_prob is not set.
10361         * c-semantics.c (expand_stmt): Likewise.
10362         * predict.c (predict_insn): Likewise.
10363         * stmt.c (expand_continue_loop): Likewise.
10364         * toplev.c (rest_of_compilation): Do not call
10365         note_prediction_to_br_prob and note_prediction_to_br_prob
10366         when not optimizing.
10367
10368 2003-02-21  Jan Hubicka  <jh@suse.cz>
10369
10370         * cfgrtl.c (commit_edge_insertions):  Call
10371         find_many_sub_basic_block only when some code has been emitted.
10372         (commit_edge_insertions_watch_calls): Bring into sync with
10373         commit_edge_insertions
10374
10375 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
10376
10377         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
10378
10379         * sh.md (binary_sf_op): Use extra constant operand instead of
10380         negating constant operand 4.
10381         * sh.c (sh_expand_binop_v2sf): Supply it.
10382
10383 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
10384
10385         * cpphash.h (struct lexer_state): Add directive_wants_padding.
10386         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
10387         for directives of type INCL.
10388         (glue_header_name, parse_include): Use get_token_no_padding.
10389         * cppmacro.c (replace_args): If directive_wants_padding,
10390         provide padding tokens.
10391
10392 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
10393
10394         * config/h8300/h8300.md (a peephole2): New.
10395
10396 2003-02-21  Jan Hubicka  <jh@suse.cz>
10397
10398         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
10399         (commit_edge_insertions): Call find_many_sub_basic_blocks
10400
10401         * reg-stack.c (convert_regs): Cleax aux for blocks.
10402
10403 2003-02-21  Jan Hubicka  <jh@suse.cz>
10404
10405         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
10406
10407 2003-02-21  Glen Nakamura  <glen@imodulo.com>
10408
10409         PR optimization/8613
10410         * builtins.c (expand_builtin): Emit postincrements before expanding
10411         builtin functions.
10412
10413 2003-02-21  Ben Elliston  <bje@redhat.com>
10414
10415         PR other/5634
10416         * doc/install.texi (Configuration): Explain using $HOME instead of
10417         the ~ metacharacter when referring to home directories.
10418
10419 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
10420
10421         * configure.in (TARGET_SYSTEM_ROOT): Set default to
10422         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
10423         '${exec_prefix}' (in addition to the expansion thereof) as
10424         relocatable.
10425         * configure: Rebuilt.
10426
10427 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
10428
10429         * config/h8300/h8300.md (addhi3_incdec): Change the name to
10430         *addhi3_incdec.
10431         (addsi3_incdec): Change the name to *addsi3_incdec.
10432
10433 2003-02-20  Roger Sayle  <roger@eyesopen.com>
10434
10435         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
10436
10437 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
10438
10439         PR fortran/9038
10440         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
10441         options to be ignored.
10442         (c_common_decode_option): Ignore them when preprocessing.
10443
10444 2003-02-20  Jan Hubicka  <jh@suse.cz>
10445
10446         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
10447         global variables.
10448         (lang_independent_options):  Add -fsched2-use-superblocks
10449         -fsced2-use-traces.
10450         (rest_of_compilation): Deal with it.
10451         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
10452         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
10453         Declare.
10454         * rtl.h (reg_to_stack):  Update prototype.
10455         * reg-stack.c (reg_to_stack): Return when something has changed;
10456         update liveness when executing after superblock scheduling.
10457
10458         * combine.c (simplify_shift_const):  Simplify few special cases
10459         into constants.
10460
10461 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
10462
10463         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
10464         (add.,subf.,neg.): Change attribute to fast_compare.
10465         All DFA descriptions updated.
10466
10467 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
10468
10469         Change base class access representation.
10470         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
10471         TREE_VIA_PRIVATE): Remove.
10472         (BINFO_BASEACCESSES): New binfo elt.
10473         (BINFO_BASEACCESS): New accessor.
10474         (BINFO_ELTS): Increase.
10475         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
10476         (access_public_node, access_protected_node,
10477         access_private_node): New global nodes.
10478         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
10479         * dbxout.c (dbxout_type): Adjust.
10480         * dwarf2out.c (gen_inheritance_die): Add access parameter.
10481         (gen_member_die): Adjust.
10482         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
10483         (output_type): Adjust.
10484         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
10485
10486         Change base class access representation. Share virtual base
10487         binfos.
10488         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
10489         call.
10490         * cp/class.c (build_base_path): Likewise.
10491         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
10492         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
10493         (make_new_vtable): Adjust.
10494         (force_canonical_binfo_r): Delete.
10495         (force_canonical_binfo): Delete.
10496         (mark_primary_virtual_base): Delete.
10497         (dfs_unshared_virtual_bases): Delete.
10498         (mark_primary_bases): Adjust.
10499         (maybe_warn_about_overly_private_class): Adjust.
10500         (dfs_base_derived_from): Delete.
10501         (base_derived_from): Follow the inheritance chain.
10502         (struct find_final_overrider_data): Add vpath member.
10503         (dfs_find_final_overrider): Adjust.
10504         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
10505         (find_final_overrider): Adjust.
10506         (update_vtable_entry_for_fn): Adjust.
10507         (modify_all_vtables): Adjust.
10508         (walk_subobject_offsets): Adjust.
10509         (layout_nonempty_base_or_field): Adjust.
10510         (layout_empty_base): Remove last parameter. Adjust.
10511         (build_base_field): Adjust.
10512         (build_base_fields): Adjust.
10513         (propagate_binfo_offsets): Remove last parameter. Adjust.
10514         (dfs_set_offset_for_unshared_vbases): Delete.
10515         (layout_virtual_bases): Adjust.
10516         (finish_struct_1): Adjust.
10517         (init_class_processing): Don't init access nodes.
10518         (dfs_get_primary_binfo): Delete.
10519         (get_primary_binfo): Adjust.
10520         (dump_class_hierarchy_r): Remove most derived arg, add IGO
10521         parameter. Adjust.
10522         (dump_class_hierarchy): Adjust.
10523         (finish_vtbls): Adjust.
10524         (get_original_base): Delete.
10525         (build_vtt_inits): Adjust.
10526         (dfs_build_secondary_vptr_vtt_inits): Adjust.
10527         (dfs_ctor_vtable_bases_queue_p): Adjust.
10528         (build_ctor_vtbl_group): Adjust.
10529         (dfs_accumulate_vtbl_inits): Adjust.
10530         (build_vtbl_initializer): Adjust.
10531         (build_vbase_offset_vtbl_entries): Adjust.
10532         (add_vcall_offset_vtbl_entries_1): Adjust.
10533         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
10534         (access_*_node): Remove.
10535         (CANONICAL_BINFO): Delete.
10536         (BINFO_UNSHARED_MARKED): Remove.
10537         (BINFO_MARKED): Set LANG_FLAG_0 directly.
10538         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
10539         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
10540         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
10541         Delete.
10542         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
10543         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
10544         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
10545         Delete.
10546         (BINFO_DEPENDENT_BASE_P): New.
10547         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
10548         index.
10549         (markedp, unmarkedp): Adjust.
10550         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
10551         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
10552         find_vbase_instance, binfo_for_vbase): Delete.
10553         (copied_binfo, original_binfo): Declare.
10554         (finish_base_specifier): Add virtual_p arg.
10555         (unshare_base_binfos): Delete.
10556         (copy_base_binfos): Declare.
10557         (reverse_path): Delete.
10558         * cp/decl.c (xref_basetypes): Access and virtuality passed
10559         differently. Don't copy direct base binfos here. Call
10560         copy_base_binfos.
10561         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
10562         (initialize_vtbl_ptrs): Adjust.
10563         (expand_member_init): Adjust.
10564         * cp/parser.c (cp_parser_base_specifier): Adjust.
10565         * cp/pt.c (instantiate_class_template): Adjust.
10566         (get_template_base_recursive): Adjust.
10567         * cp/rtti.c (get_pseudo_ti_init): Adjust.
10568         (get_pseudo_ti_desc): Adjust.
10569         * cp/tree.c (unshare_base_binfos): Rename to ...
10570         (copy_base_binfos): ... here, reimplement.
10571         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
10572         (reverse_path): Remove.
10573         * cp/typeck.c (get_delta_difference): Adjust error messages.
10574         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
10575         * cp/search.c (lookup_base_r): Adjust.
10576         (dynamic_cast_base_recurse): Adjust.
10577         (canonical_binfo): Remove.
10578         (dfs_canonical_queue): Remove.
10579         (dfs_assert_unmarked_p): Remove.
10580         (assert_canonical_unmarked): Remove.
10581         (shared_marked_p, shared_unmarked_p): Remove.
10582         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
10583         (dfs_access_in_type): Adjust.
10584         (access_in_type): Adjust.
10585         (dfs_accessible_queue_p): Adjust.
10586         (dfs_accessible_p): Adjust.
10587         (is_subobject_of_p_1, is_subobject_of_p): Remove.
10588         (struct lookup_field_info): Remove from_dep_base_p field.
10589         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
10590         (lookup_field_r): Remove dependent base code.
10591         (lookup_member): Likewise.
10592         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
10593         (dfs_unmarked_real_bases_queue_p): Remove.
10594         (dfs_marked_real_bases_queue_p): Remove.
10595         (dfs_skip_vbases): Remove.
10596         (dfs_get_pure_virtuals): Adjust.
10597         (markedp, unmarkedp): Adjust.
10598         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
10599         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
10600         (dfs_unmark): Adjust.
10601         (dfs_get_vbase_types):Remove.
10602         (dfs_build_inheritance_graph_order): Remove.
10603         (get_vbase_types): Remove
10604         (dfs_find_vbase_instance): Remove.
10605         (find_vbase_instance): Remove.
10606         (dfs_debug_unmarkedp): Adjust.
10607         (dependent_base_p): Remove.
10608         (dfs_push_type_decls): Adjust.
10609         (dfs_push_decls): Adjust.
10610         (dfs_no_overlap_yet): Adjust.
10611         (copied_binfo): New function.
10612         (original_binfo): New function.
10613         (binfo_for_vbase): Remove.
10614
10615         Change base class access representation.
10616         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
10617         (add_interface_do): Likewise.
10618
10619 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
10620
10621         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10622         * config/rs6000/power4.md (power4-store,power4-vecstore): New
10623         insn reservations.
10624         (power4-fpstore): Compact.
10625
10626 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
10627
10628         * config/h8300/h8300.md (*iorsi3_w): New.
10629
10630 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
10631
10632         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
10633         * rtl.c (reg_note_name): Likewise.
10634         * rtl.h (enum reg_note): Likewise.
10635         * doc/invoke.texi: Likewise.
10636         * doc/rtl.texi: Likewise.
10637
10638 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
10639
10640         * bb-reorder.c (find_traces_1_round): Fix comment typo.
10641
10642 2003-02-19  Roger Sayle  <roger@eyesopen.com>
10643
10644         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
10645         addition in the presence of signaling NaNs.
10646
10647 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
10648
10649         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
10650
10651 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10652
10653         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
10654         ORing with 0xffff??00 with the highest bit of the ?? part set.
10655         (compute_logical_op_length): Update.
10656         (compute_logical_op_cc): Likewise.
10657
10658 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
10659
10660         * bb-reorder.c (find_traces_1_round): Fixed condition for small
10661         destination block with multiple predecessors.
10662         (connect_traces): Check whether the block is a start of trace.
10663
10664 2003-02-19  Jan Hubicka  <jh@suse.cz>
10665
10666         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
10667         * function.c (assign_params): Likewise.
10668         * arm-protos.h (arm_init_cumulative_args): Update prototype.
10669         * arm.c (arm_init_cumulative_args): Update function.
10670         * arm.h (INIT_CUMULATIVE_ARGS): Update.
10671         * avr-protos.h (init_cumulative_args): Update prototype.
10672         * avr.c (init_cumulative_args): Update function.
10673         * avr.h (INIT_CUMULATIVE_ARGS): Update.
10674         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
10675         * d30v.c (d30v_init_cumulative_args): Update function.
10676         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
10677         * frv-protos.h (frv_init_cumulative_args): Update prototype.
10678         * frv.c (frv_init_cumulative_args): Update function.
10679         * frv.h (INIT_CUMULATIVE_ARGS): Update.
10680         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
10681         * pa.h (INIT_CUMULATIVE_ARGS): Update.
10682         * sparc-protos.h (init_cumulative_args): Update prototype.
10683         * sparc.c (init_cumulative_args): Update function.
10684         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
10685         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
10686
10687 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10688
10689         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
10690         (*ashiftsi_sextqi_7): Likewise.
10691
10692 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10693
10694         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
10695         ISO C99 and C++.
10696
10697         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
10698         for C++ on IRIX 6.5.1[89].
10699         * fixinc/tests/base/internal/sgimacros.h: New file.
10700
10701         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
10702         * fixinc/tests/base/internal/wchar_core.h: New file.
10703
10704         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
10705         socklen_t definition.
10706         * fixinc/fixincl.x: Regenerate.
10707         * fixinc/tests/base/sys/socket.h: New file.
10708         Fixes PR libgcj/9652.
10709
10710 2003-02-19  Jan Hubicka  <jh@suse.cz>
10711
10712         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
10713
10714 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
10715
10716         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
10717         align_jumps_max_skip and align_loops_max_skip.
10718
10719 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
10720
10721         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
10722         test size if named section.
10723
10724 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
10725
10726         * expr.c (expand_expr): Use gen_int_mode for the argument
10727         to gen_rtx_MULT.
10728
10729 2003-02-19  Jan Hubicka  <jh@suse.cz>
10730
10731         * i386.md (cosxf2):  Fix conditional.
10732
10733 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10734
10735         * config/h8300/h8300.md (extendqisi2): Change to an expander.
10736         (*extendqisi2_h8300): New.
10737         (*extendqisi2_h8300hs): Likewise.
10738
10739 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10740
10741         * config/h8300/h8300-protos.h: Update the prototype for
10742         split_adds_subs.  Remove the prototypes for
10743         const_int_le_2_operand and const_int_le_6_operand.
10744         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
10745         (const_int_le_2_operand): Remove.
10746         (const_int_le_6_operand): Likewise.
10747         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
10748         for const_int_le_2_operand and const_int_le_6_operand.
10749         * config/h8300/h8300.md: Update all uses of split_adds_subs.
10750         (a peephole2): New.
10751
10752 2003-02-18  Jan Hubicka  <jh@suse.cz>
10753
10754         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
10755         (cgraph_expand_function): Rewrite.
10756
10757 2003-02-18  Matt Austern <austern@apple.com>
10758
10759         * toplev.c, langhooks.c, langhooks-def.h: Move
10760         write_global_declarations from toplev.c to langhooks.c.
10761
10762 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
10763
10764         * config/h8300/h8300.c (general_operand_src): Always check
10765         MODE.
10766         (general_operand_dst): Likewise.
10767
10768 2003-02-18  Roger Sayle  <roger@eyesopen.com>
10769
10770         * convert.c (convert_to_real): Also optimize (float)log(x) into
10771         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
10772
10773 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10774
10775         * config/sh/sh.c (unspec_caller_rtx_p): New.
10776         (sh_cannot_copy_insn_p): New.
10777         (TARGET_CANNOT_COPY_INSN_P): New.
10778
10779 2003-02-18  Richard Henderson  <rth@redhat.com>
10780
10781         * c-common.c (handle_used_attribute): Accept static data too.
10782
10783 2003-02-18  Nick Clifton  <nickc@redhat.com>
10784             Aldy Hernandez  <aldyh@redhat.com>
10785
10786         * testsuite/gcc.dg/20030218-1.c: New.
10787
10788         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
10789
10790         * target-def.h (TARGET_INITIALIZER): Add
10791         TARGET_VECTOR_TYPES_COMPATIBLE.
10792         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
10793
10794         * target.h (struct gcc_target): Add field vector_types_compatible.
10795
10796         * c-typeck.c (comptypes): Take into account
10797         TARGET_VECTOR_TYPES_COMPATIBLE.
10798         (convert_for_assignment): Same.
10799
10800         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
10801         (rs6000_spe_vector_types_compatible): New.
10802         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
10803
10804 2003-02-19  Andreas Schwab  <schwab@suse.de>
10805
10806         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
10807         * toplev.c: Include langhooks-def.h.
10808
10809 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
10810
10811         * config/mips/mips.h (enum processor_type): Sort entries
10812         alphabetically.
10813         * config/mips/mips.md (define_attr cpu): Sync with processor_type
10814         enum values, including adding entries that were missing.
10815
10816 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
10817
10818         * sh.c (calc_live_regs): Also check GET_CODE when checking if
10819         initial value for PR_REG is still the PR_REG register.
10820
10821 2003-02-18  Jim Wilson  <wilson@redhat.com>
10822
10823         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
10824         instruction in output template.
10825         (bsp_value): Change output template from string to C code, add %,
10826         before actual instruction.
10827         (flushrs): Mark as not predicable.
10828
10829 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
10830
10831         * inclhack.def (netbsd_bogus_semicolon): New fix.
10832         * fixincl.x: Rebuilt.
10833         * tests/base/ctype.h: Update.
10834
10835 2003-02-18  Roger Sayle  <roger@eyesopen.com>
10836
10837         * fold-const.c (negate_expr_p): New function to determine whether
10838         an expression can be negated cheaply.
10839         (fold) [MINUS_EXPR]: Use it to determine whether to transform
10840         -A - B into -B - A for floating point types.
10841
10842 2003-02-18  Roger Sayle  <roger@eyesopen.com>
10843
10844         * sbitmap.c (sbitmap_resize): New function.
10845         * sbitmap.h (sbitmap_resize): Prototype here.
10846         * recog.c (split_all_insns): Use sbitmap_resize.
10847
10848 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
10849
10850         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
10851         insn length.
10852         (extendqisi2): Likewise.
10853         (*extendhisi2_h8300): Likewise.
10854
10855 2003-02-18  Matt Austern <austern@apple.com>
10856
10857         * langhooks.h, langhooks-def.h: introduce new langhook,
10858         final_write_globals, with write_global_declarations as default.
10859         * toplev.c: Move invocation of wrapup_global_declarations from
10860         compile_file to new function, write_global_declarations.  Change
10861         compile_file to use final_write_globals hook.  Change
10862         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
10863         conditional.
10864
10865 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10866
10867         * pa.md: Correct and enhance comment.
10868
10869 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
10870
10871         * gcc.c (validate_switches): Don't scan past closing '}'.
10872
10873 2003-02-18  Ben Elliston  <bje@redhat.com>
10874
10875         PR c++/1607
10876         * doc/extend.texi (Function Attributes): Document the effect of
10877         the C++ "this" parameter on the counting of arguments for the
10878         "format" and "format_arg" attributes.
10879
10880 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
10881
10882         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
10883         (__ev_stdw): Same.
10884         (__ev_stdh): Same.
10885
10886 2003-02-17  Jan Hubicka  <jh@suse.cz>
10887
10888         * recog.c (split_all_insns):  Fix memory overflow.
10889
10890 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
10891
10892         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
10893         (cmphi): Likewise.
10894         (*cmphi_h8300): Likewise.
10895         (*cmphi_h8300hs): Likewise.
10896         (cmpsi): Likewise.
10897         (7 peephole2): Likewise.
10898
10899 2003-02-16  Jan Hubicka  <jh@suse.cz>
10900
10901         * c-typeck.c (build_c_cast):  Fold constant variables into
10902         initial values.
10903
10904 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10905
10906         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
10907         (Binaries): Ditto for Sinix/Reliant Unix.
10908
10909 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
10910
10911         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
10912         not overlap the final result register.
10913
10914 2003-02-16 Arend Bayer <arend.bayer@web.de>
10915            Richard Henderson  <rth@redhat.com>
10916
10917         PR c/8068
10918         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
10919         rearrange mult arguments for less recursion.
10920         (extract_muldiv): New.  Prevent runaway recursion.
10921
10922 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
10923
10924         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
10925         MASK_ALIGN_DOUBLE.
10926
10927 2003-02-15  Roger Sayle  <roger@eyesopen.com>
10928
10929         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
10930         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
10931         (ext_80387_constants_table): Global table of 80387 special constants
10932         guarded by ext_80387_constants_init flag when not initialized.
10933         (init_ext_80387_constants): New function to initialize this table.
10934         (standard_80387_constant_p): Extend to recognize extra 80387
10935         constants, in XFmode, on processors where this is a win.
10936         (standard_80387_constant_opcode): New function to return the
10937         opcode associated with standard_80387_constant_p.
10938         (standard_80387_constant_rtx): New function to return the XFmode
10939         CONST_DOUBLE associated with standard_80387_constant_p.
10940         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
10941
10942         * config/i386/i386-protos.h (standard_80387_constant_opcode):
10943         Prototype here.
10944         (standard_80387_constant_rtx): Likewise.
10945
10946         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
10947         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
10948         *movtf_integer): Simplify using new standard_80387_constant_opcode.
10949
10950 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
10951
10952         * doc/invoke.texi (Optimize Options): Correct @option syntax.
10953
10954 2003-02-15  Richard Henderson  <rth@redhat.com>
10955
10956         * Makefile.in (cfglayout.o): Depend on TARGET_H.
10957         * cfglayout.c: Include target.h.
10958         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
10959         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
10960         * target.h (struct gcc_target): Add cannot_copy_insn_p.
10961
10962         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
10963         (TARGET_CANNOT_COPY_INSN_P): New.
10964         (override_options): Revert 2003-02-08 hack.
10965
10966 2003-02-15  Richard Henderson  <rth@redhat.com>
10967
10968         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
10969         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
10970
10971 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
10972
10973         * config/rs6000/rs6000.h (processor_type): Add PPC440.
10974         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10975         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10976         TARGET_SCHED_VARIABLE_ISSUE): Define.
10977         (rs6000_use_dfa_pipeline_interface): New function.
10978         (rs6000_multipass_dfa_lookahead): New Function.
10979         (rs6000_variable_issue): New function.
10980         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
10981         (rs6000_issue_rate): Add PPC440.
10982         * config/rs6000/rs6000.md (unspec list): Correct typo.
10983         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
10984         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
10985         cmp, delayed_cr, mfcr, mtcr.
10986         (automata_option): Set "ndfa".
10987         (extendMMNN2): Update attributes.
10988         (movcc_internal1): Discourage move to non-cr0.  Update
10989         attributes.
10990         (movMM_update): Update attributes.
10991         (cmpMM_internal): Update attributes.
10992         (sCC CR materialization): Update attributes.
10993         (branch patterns): Do not discourage non-cr0.
10994         (cr logical patterns): Prefer destructive register allocation.
10995         Update attributes.
10996         (movesi_from_cr): Update attribute.
10997         (mtcrf_operation): Update attribute.
10998         (mtcrfsi): Update attribute.
10999         * config/rs6000/40x.md: New file.
11000         * config/rs6000/603.md: New file.
11001         * config/rs6000/6xx.md: New file.
11002         * config/rs6000/7450.md: New file.
11003         * config/rs6000/7xx.md: New file.
11004         * config/rs6000/mpc.md: New file.
11005         * config/rs6000/power4.md: New file.
11006         * config/rs6000/rios1.md: New file.
11007         * config/rs6000/rios2.md: New file.
11008         * config/rs6000/rs64.md: New file.
11009         [Some DFA descriptions based on work by Michael Hayes]
11010
11011 2003-02-15  Richard Henderson  <rth@redhat.com>
11012
11013         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
11014         successors with multiple predecessors.
11015         (connect_traces): Try harder to copy traces of length 1.
11016
11017         * function.h (struct function): Add computed_goto_common_label,
11018         computed_goto_common_reg.
11019         * function.c (free_after_compilation): Zap them.
11020         * stmt.c (expand_computed_goto): Use them to produce one
11021         indirect branch per function.
11022
11023 2003-02-15  Richard Henderson  <rth@redhat.com>
11024
11025         * cfgcleanup.c: Include params.h.
11026         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
11027         too many outgoing edges from a block.
11028         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
11029         * params.def (max-crossjump-edges): New.
11030         * doc/invoke.texi: Document it.
11031
11032 2003-02-15  Richard Henderson  <rth@redhat.com>
11033
11034         * recog.c (split_all_insns): Include new blocks in life update;
11035         do a global life update.
11036
11037 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
11038
11039         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
11040         Update copyright.
11041         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
11042         -mno-cygwin case.
11043
11044 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11045
11046         PR optimization/7702
11047         * reload1.c (reload_cse_simplify_set): Honor
11048         CANNOT_CHANGE_MODE_CLASS.
11049
11050 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
11051
11052         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
11053         function.
11054         * config/mn10300/mn10300-protos.h: Declare it.
11055         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
11056         attribute cc of instructions that may use clr.
11057
11058 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
11059
11060         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
11061         (x - (x & y)) is found.
11062
11063 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11064
11065         * configure.in: Fix typo.
11066         * configure: Regenerate.
11067
11068 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
11069
11070         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
11071
11072 2003-02-13  Adam Nemet  <anemet@lnxw.com>
11073
11074         PR opt/2391
11075         * combine.c: Fix spelling in comment.
11076         (cached_nonzero_bits): New function.
11077         (cached_num_sign_bit_copies): New function.
11078         (nonzero_bits_with_known): New macro.
11079         (num_sign_bit_copies_with_known): New macro.
11080         (nonzero_bits1): Rename from nonzero_bits.  Add three new
11081         arguments.  Change calls from nonzero_bits to
11082         nonzero_bits_with_known.
11083         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
11084         three new arguments.  Change calls from num_sign_bit_copies to
11085         num_sign_bit_copies_with_known.
11086         (nonzero_bits): New macro.
11087         (num_sign_bit_copies): New macro.
11088         (update_table_tick): Don't traverse identical subexpression more
11089         than once.
11090         (get_last_value_validate): Likewise.
11091
11092 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
11093
11094         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
11095         * function.h (struct emit_status): Length of regno_pointer_align
11096         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
11097         not regno_pointer_align_length (i.e. length actually used, not
11098         length as allocated)
11099
11100         * config/i386/i386.c (struct stack_local_entry): New.
11101         (struct machine_function): Replace huge array with alist.
11102         (assign_386_stack_local): Change to match.
11103
11104 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
11105
11106         * inclhack.def (hpux_long_double): Tighten select and add bypass
11107         regexp.
11108         * fixincl.x: Rebuilt.
11109
11110 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
11111
11112         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
11113         edge and block ends with a jump insn it must be simple jump.
11114
11115 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
11116
11117         * Makefile.in (PREPROCESSOR_DEFINES): Add
11118         @TARGET_SYSTEM_ROOT_DEFINE@.
11119         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
11120         is specified or if building a cross compiler.
11121         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
11122         if the sysroot is under $exec_prefix.
11123         * configure: Regenerated.
11124         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
11125         defined.
11126         (struct default_include): Add add_sysroot field.
11127         (cpp_SYSROOT): Declare.
11128         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
11129         field.
11130         (cpp_SYSROOT): New variable.
11131         * cppinit.c (cpp_create_reader): Initialize
11132         CPP_OPTION (pfile, sysroot).
11133         (init_standard_includes): Handle add_sysroot.  Do not
11134         add unrelocated copies of relocated directories.
11135         (COMMAND_LINE_OPTIONS): Add -isysroot.
11136         (cpp_handle_option): Handle -isysroot.
11137         * cpplib.h (struct cpp_options): Add sysroot member.
11138         * gcc.c (The Specs Language): Update description of %I.
11139         (target_system_root_changed): New variable.
11140         (process_command): Conditionalize make_relative_prefix call
11141         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
11142         target_system_root_changed.
11143         (do_spec_1): Add -isysroot to %I.
11144         * doc/invoke.texi (Spec Files): Update description of %I.
11145         * doc/install.texi (--with-sysroot): Update comment about
11146         relocation.
11147
11148 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
11149
11150         * config/h8300/h8300.md (a peephole2): New.
11151
11152 2003-02-13  Robert Lipe <robertlipe@usa.net>
11153             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11154
11155         * doc/install.texi (Specific): Update three SCO-related URLs.
11156
11157 2003-02-13  Andreas Schwab  <schwab@suse.de>
11158
11159         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
11160         Parenthesize properly.
11161         (NPREDECESORS): Parenthesize properly.
11162
11163 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11164
11165         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
11166
11167 2003-02-12  Roger Sayle  <roger@eyesopen.com>
11168
11169         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
11170         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
11171
11172         * reg-stack.c (subst_stack_regs_pat): Add support for binary
11173         UNSPEC instructions (e.g. "fpatan").
11174
11175 2003-02-12  Mike Stump  <mrs@apple.com>
11176
11177         * varray.c (element_size): Remove.
11178         (uses_ggc): Remove.
11179         (element): Add.
11180         (varray_init): Use new interface.
11181         (varray_grow): Use new interface.
11182         (varray_clear): Use new interface.
11183
11184 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
11185
11186         * config/rs6000/spe.h: Add casts to the arguments of the following
11187         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
11188         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
11189         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
11190         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
11191         __ev_get_u16, __ev_get_s16.
11192
11193 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11194
11195         * config/h8300/h8300.md (a peephole2): New.
11196
11197 2003-02-12  Jan Hubicka  <jh@suse.cz>
11198
11199         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
11200         (OBJS): Add callgraph.o
11201         (callgraph.o): New.
11202         * c-decl.c (expand_body_1): Break out from ...
11203         (expand_body): This one;  change calling convention
11204         (finish_function): Move some of expand_body logic here.
11205         (c_expand_deferred_function): Update call of expand_body
11206         (c_expand_stmt): Use c_expand_body_1.
11207         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
11208         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
11209         * c-tree.h (c_expand_body): Declare.
11210         * callgraph.c: New file.
11211         * flags.h (flag_unit_at_a_time): Declare.
11212         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
11213         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
11214         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
11215         * langhooks.h (struct lang_hooks_for_callgraph): New.
11216         (struct lang_hooks): Add callgraph field.
11217         * toplev.c (flag_unit_at_a_time): New.
11218         (lang_independent_options): Add flag_unit_at_a_time.
11219         (process_options): Disable unit-at-a-time mode for frontends not
11220         supporting callgraph.
11221         * tree-inline.c (typedef struct inline_data): Add "decl"
11222         (expand_call_inline): Update callgraph.
11223         (optimize_inline_calls): Set id.decl.
11224         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
11225         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
11226         cgraph_calls_p): Declare.
11227         * invoke.texi (-funit-at-a-time): Document
11228
11229 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
11230
11231         * config/rs6000/spe.h: Fix misc formatting.
11232         (__ev_create_ufix32_fs): Cast ev argument.
11233         (__ev_create_sfix32_fs): Same.
11234         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
11235         (__ev_get_ufix32_fs_internal): Same.
11236
11237 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
11238
11239         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
11240         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
11241
11242 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
11243
11244         * cpplib.c (do_include_common): Move warnings for
11245         #include_next and #import out to callers.  Use early-return
11246         instead of nested ifs.  Don't do check_eol here.
11247         (parse_include): Do check_eol here with the rest of the
11248         parsing stuff.
11249         (do_include_next, do_import): Now handle warnings.
11250
11251 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11252
11253         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
11254
11255 2003-02-12  Jan Hubicka  <jh@suse.cz>
11256
11257         * predict.c (estimate_probability):  Fix roundoff error.
11258
11259 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11260
11261         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
11262         (two peephole2): New.
11263
11264 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11265
11266         * config/h8300/h8300.md (several peephole2): Replace
11267         find_regno_note with peep2_reg_dead_p.
11268
11269 2003-02-11  Richard Henderson  <rth@redhat.com>
11270
11271         * gcse.c (lookup_set): Remove unused argument PAT.  Update
11272         both callers.
11273
11274 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
11275
11276         * diagnostic.c (real_abort): New.
11277         (diagnostic_report_diagnostic): Call real_abort on error.
11278         * diagnostic.h (diagnostic_abort_on_error): New.
11279         (struct diagnostic_context): Add abort_on_error field.
11280         * toplev.c (setup_core_dumping): New.
11281         (decode_d_option): Handle 'H' case.
11282         * doc/invoke.texi (Debugging Options): Document -dH.
11283
11284 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
11285
11286         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
11287         which refers to obsolete directories.
11288
11289 2003-02-11  Richard Henderson  <rth@redhat.com>
11290
11291         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
11292
11293 2002-10-21  Jan Hubicka  <jh@suse.cz>
11294
11295         * i386.c (contains_128bit_aligned_vector_p): New function.
11296         (ix86_function_arg_boundary): Properly align vector modes.
11297
11298 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
11299
11300         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
11301         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
11302         as a SET pattern.
11303
11304 2003-02-11  Roger Sayle  <roger@eyesopen.com>
11305
11306         * builtins.c:  Fix failure caused by commiting wrong patch.
11307
11308 2003-02-11  Dale Johannesen  <dalej@apple.com>
11309         * ra-build.c (compare_and_free_webs):  Relax checking.
11310         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
11311         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
11312
11313 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11314
11315         PR optimization/9651
11316         * rtlanal.c (may_trap_p): Handle FIX.
11317
11318 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
11319
11320         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
11321         * doc/invoke.texi: Extra alias.
11322
11323 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
11324
11325         * config/rs6000/host-darwin.c: Fix comment.
11326
11327 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
11328
11329         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
11330         predicate for mod result.
11331
11332 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11333
11334         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
11335         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
11336         * fixincl.x: Rebuilt.
11337         * tests/base/stdlib.h: Update.
11338         * tests/base/ctype.h: New file.
11339
11340 2003-02-11  Jan Hubicka  <jh@suse.cz>
11341
11342         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
11343
11344 2003-02-11  Richard Henderson  <rth@redhat.com>
11345
11346         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
11347         appropriated as globals.
11348         (ix86_expand_clrstr): Similarly.
11349         * config/i386/i386.md (cmpstrsi): Similarly.
11350
11351 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11352
11353         * config/h8300/h8300.md (a peephole2): Add a case of 255.
11354
11355 2003-02-11  Roger Sayle  <roger@eyesopen.com>
11356
11357         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
11358         (pow_optab, atan2_optab): Define corresponding macros.
11359         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
11360         * genopinit.c (optabs): Implement pow_optab and atan2_optab
11361         using pow?f3 and atan2?f3 patterns.
11362         * builtins.c (expand_errno_check): New function to update errno
11363         if necessary, split out from expand_builtin_mathfn.
11364         (expand_builtin_mathfn): Use expand_errno_check.
11365         (expand_builtin_mathfn_2): New function to handle expanding binary
11366         math functions, reusing the code in expand_errno_check.
11367         (expand_builtin): Handle the pow and atan2 math built-ins,
11368         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
11369         expand_builtin_mathfn_2.
11370
11371         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
11372
11373 2003-02-11  Jan Hubicka  <jh@suse.cz>
11374
11375         * combine.c (combine_simplify_rtx): Fix folding of
11376         nested float_truncates.
11377
11378 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11379
11380         * config/h8300/h8300.md (a peephole2): Fix a typo.
11381
11382 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
11383
11384         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
11385         register number.
11386
11387 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11388
11389         * config/h8300/h8300-protos.h: Add a prototype for
11390         gtuleu_operator.
11391         * config/h8300/h8300.c (gtuleu_operator): New.
11392         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
11393         * config/h8300/h8300.md (a peephole2): New.
11394
11395 2003-02-11  Jan Hubicka  <jh@suse.cz>
11396
11397         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
11398
11399 2003-02-11  Jan Hubicka  <jh@suse.cz>
11400
11401         * predict.c (choose_function_section): Choose sections correctly.
11402
11403 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11404
11405         * reload1.c (first_label_num): New.
11406         (reload): Index offsets_known_at and offsets_at using difference of
11407         label number and first label number.  Don't use offset pointers.
11408         (set_label_offsets, set_initial_label_offsets): Likewise.
11409
11410 2003-02-10  Roger Sayle  <roger@eyesopen.com>
11411
11412         * mips-tfile.c (init_file): Add missing initializers in the
11413         "#ifdef __alpha" case.
11414         (file_offset, max_file_offset): Declare as unsigned long.
11415         (write_varray): Cast to "unsigned long" in comparisons against
11416         either file_offset or max_file_offset.
11417         (write_object): Likewise.
11418         (read_seek): Likewise.
11419         (copy_object): Likewise. Declare "ifd" as int to match its use
11420         in add_ext_symbol, and avoid signed/unsigned conditional warning.
11421
11422 2003-02-10  Nick Clifton  <nickc@redhat.com>
11423             Aldy Hernandez  <aldyh@redhat.com>
11424
11425         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
11426         override options which have been specified on the command line.
11427
11428 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
11429
11430         * config/h8300/h8300.md (abssf2): New.
11431         (*abssf2_h8300): Likewise.
11432         (*abssf2_h8300hs): Likewise.
11433
11434 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
11435
11436         * tree.c (build_tree_list):  Fix parameter names in comment.
11437
11438 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
11439
11440         * config/rs6000/ppc64-fp.c: New file.
11441         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
11442
11443 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
11444
11445         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
11446         * bb-reorder.c (make_reorder_chain): Deleted.
11447         (make_reorder_chain_1): Deleted.
11448         (find_traces): New function.
11449         (rotate_loop): New function.
11450         (mark_bb_visited): New function.
11451         (find_traces_1_round): New function.
11452         (copy_bb): New function.
11453         (bb_to_key): New function.
11454         (better_edge_p): New function.
11455         (connect_traces): New function.
11456         (copy_bb_p): New function.
11457         (get_uncond_jump_length): New function.
11458         (reorder_basic_blocks): Use new functions (Software Trace Cache).
11459         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
11460         boundaries.
11461
11462 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
11463
11464         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
11465
11466 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
11467
11468         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
11469         (DECL_LIVE_RANGE_RTL): Remove.
11470
11471 2003-02-10  Nick Clifton  <nickc@redhat.com>
11472
11473         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
11474         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
11475         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
11476         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
11477         config/arm/freebsd.h, config/arm/linux-elf.h,
11478         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
11479         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
11480         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
11481         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
11482         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
11483         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
11484         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
11485         and reformat as appropriate.
11486
11487 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
11488
11489         * config/h8300/clzsi2.c: Remove.
11490         * config/h8300/ctzsi2.c: Likewise.
11491         * config/h8300/paritysi2.c: Likewise.
11492         * config/h8300/popcountsi2.c: Likewise.
11493         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
11494         ctzsi2, paritysi2, and popcountsi2.
11495
11496 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
11497             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
11498
11499         PR c/7741
11500         * c-decl.c (duplicate_decls): Discard the initializer of the
11501         new decl when the types are conflicting.
11502
11503 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
11504
11505         * Makefile.in (sreal.o): Added.
11506         (predict.o): Depends on sreal.h instead of real.h.
11507         * sreal.c: New file.
11508         * sreal.h: New file.
11509         * predict.c: Use sreal.c instead of real.c.
11510
11511 2003-02-10  Nick Clifton  <nickc@redhat.com>
11512
11513         * Contributed support for the Cirrus EP9312 "Maverick"
11514         floating point co-processor.  Written by Aldy Hernandez
11515         <aldyh@redhat.com>.
11516         (config/arm/arm.c): Add Cirrus support.
11517         (config/arm/arm.h): Likewise.
11518         (config/arm/aout.h): Likewise.
11519         (config/arm/arm.md): Likewise.
11520         (config/arm/arm-protos.h): Likewise.
11521         (config.gcc): Likewise.
11522         (doc/invoke.texi): Describe new -mcpu value and new
11523         -mcirrus-fix-invalid-insns switch,
11524         (cirrus.md): New file.
11525
11526 2003-02-10  Jan Hubicka  <jh@suse.cz>
11527
11528         * combine.c (combine_simplify_rtx): Simplify using
11529         (float_truncate (float x)) is (float x)
11530         (float_extend (float_extend x)) is (float_extend x).
11531
11532 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
11533
11534         * calls.c (try_to_integrate): Tidy stack_usage_map access.
11535         (emit_library_call_value_1): Likewise.  Formatting.
11536         (store_one_arg): Likewise.
11537
11538 2003-02-09  Nick Clifton  <nickc@redhat.com>
11539             Aldy Hernandez  <aldyh@redhat.com>
11540
11541         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
11542         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
11543         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
11544         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
11545         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
11546         docs.  Add range test for immediate value.
11547
11548 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
11549
11550         Rename spe_evxor to xorv2si3.
11551         (xorv4hi3): New.
11552         (xorv1di3): New.
11553
11554 2003-02-10  Glen Nakamura  <glen@imodulo.com>
11555
11556         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
11557         tag.
11558
11559 2003-02-10  Jan Hubicka  <jh@suse.cz>
11560
11561         * i386.c (vector_move_operand): New predicate.
11562         (ix86_expand_vector_move): Be happy about 0.
11563         * i386.h (PREDICATE_CODES): Add sse-move_operand.
11564         * i386.md (mov*_internal): Add 'C' alternative.
11565
11566 2003-02-09  Jan Hubicka  <jh@suse.cz>
11567
11568         * i386.md (floathi*): Deal with SSE.
11569
11570 2003-02-09  Jan Hubicka  <jh@suse.cz>
11571
11572         * simplify-rtx.c (simplify_unary_operation,
11573         simplify_binary_operation):  Deal with vector modes
11574         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
11575
11576 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
11577
11578         * toplev.c (rest_of_compilation): Recompute register usage after
11579         split_all_insns.
11580
11581 2003-02-09  Richard Henderson  <rth@redhat.com>
11582
11583         * libgcc-std.ver (__clztf2): New.
11584         (__ctztf2, __popcounttf2, __paritytf2): New.
11585         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
11586         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
11587         adjust code to match the different type sizes.
11588         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
11589         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
11590
11591         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
11592         TImode; select word_mode and twice that.
11593         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
11594         select the modes from float, double, and long double.
11595         (init_optabs): Remove duplicate initializations.
11596
11597 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
11598
11599         * doc/install.texi: Squeeze and streamline section on
11600         testing and regression checking.
11601
11602 2003-02-09  Jan Hubicka  <jh@suse.cz>
11603
11604         * i386.md (ahi?v*3): Set third operand type to TImode.
11605         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
11606
11607         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
11608         integer mode.
11609
11610         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
11611         Change code so they are arithmetic expressions now.
11612         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
11613         simplify_ternary_operation): Deal with VEC_* expressions.
11614
11615         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
11616
11617 2003-02-08  Jan Hubicka  <jh@suse.cz>
11618
11619         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
11620         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
11621         possibly got duplicated.
11622
11623 2003-02-08  Richard Henderson  <rth@redhat.com>
11624
11625         * config/alpha/alpha.c (override_options): Turn off explicit
11626         relocs until post-peep2 code duplication resolved.
11627
11628 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11629
11630         * optabs.c (expand_unop): Widen clz properly when clz is done
11631         via libcall.
11632
11633 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11634
11635         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
11636         * config/h8300/crti.asm: Likewise.
11637         * config/h8300/crtn.asm: Likewise.
11638         * config/h8300/ctzsi2.c: Likewise.
11639         * config/h8300/fixunssfsi.c: Likewise.
11640         * config/h8300/h8300-protos.h: Likewise.
11641         * config/h8300/h8300.c: Likewise.
11642         * config/h8300/h8300.h: Likewise.
11643         * config/h8300/h8300.md: Likewise.
11644         * config/h8300/paritysi2.c: Likewise.
11645         * config/h8300/popcountsi2.c: Likewise.
11646         * config/h8300/rtems.h: Likewise.
11647
11648 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11649
11650         * doc/invoke.texi: Documentation for my previous commit.
11651         * doc/passes.texi: Ditto.
11652
11653 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11654
11655         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
11656         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
11657         Declare.
11658         (DLTHE_FLAG_UPDATE_FREQ): New.
11659         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
11660         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
11661         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
11662         fix_bb_placement, fix_bb_placements, place_new_loop,
11663         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
11664         New static functions.
11665         (fix_loop_placement, can_duplicate_loop_p,
11666         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
11667         New functions.
11668
11669         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
11670         unswitch_loops): Declare.
11671         * loop-init.c: New file.
11672         * loop-unswitch.c: New file.
11673         * Makefile.in (loop-init.o, loop-unswitch.o): New.
11674         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
11675         * toplev.c (DFI_loop2): New dump.
11676         (flag_unswitch_loops): New.
11677         (lang_independent_options): Add it.
11678         (rest_of_compilation): Call new loop optimizer.
11679         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
11680
11681 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11682
11683         * config/h8300/clzsi2.c: New.
11684         * config/h8300/ctzsi2.c: Likewise.
11685         * config/h8300/paritysi2.c: Likewise.
11686         * config/h8300/popcountsi2.c: Likewise.
11687         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
11688
11689 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
11690
11691         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11692         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
11693         (ctzsi2): New pattern.
11694         (ffssi2): Use clz instead of unspec.
11695         (clzdi2): Rename from cntlzd2.
11696         (ctzdi2): New pattern.
11697         (ffsdi2): Use clz instead of unspec.
11698
11699 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
11700
11701         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
11702         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
11703         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11704         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
11705
11706 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
11707
11708         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
11709
11710 2003-02-07  Richard Henderson  <rth@redhat.com>
11711
11712         PR 9226
11713         * gcse.c (local_cprop_find_used_regs): New.
11714         (local_cprop_pass): Use it.
11715
11716 2003-02-07  Fred Fish  <fnf@intrinsity.com>
11717
11718         * mips-tfile.c (parse_def): Parenthesize assignments to fix
11719         precedence bugs.
11720
11721 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
11722
11723         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
11724
11725 2003-02-07  Roger Sayle  <roger@eyesopen.com>
11726
11727         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
11728         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
11729         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
11730         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
11731         builtin functions (and their __builtin_* variants).
11732         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
11733         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
11734         when not optimizing.
11735
11736         * doc/extend.texi: Document new pow and atan2 builtins, and
11737         their float and long double variants.  Realphabetize builtins.
11738
11739 2003-02-07  Jan Hubicka  <jh@suse.cz>
11740
11741         * i386.md (sse2_nandv2di3): Fix.
11742
11743 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
11744
11745         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
11746         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
11747         definition.
11748         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
11749         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
11750
11751 2003-02-07  Jan Hubicka  <jh@suse.cz>
11752
11753         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
11754
11755 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
11756
11757         * cfg.c (dump_flow_info): Add back accidently deleted line.
11758
11759 2003-02-07  Andrey Petrov <petrov@netbsd.org>
11760
11761         * optabs.c (expand_float): Search wider integer modes first.
11762
11763 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
11764
11765         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
11766         based on preprocessor flag.
11767
11768 2003-02-07  Roger Sayle  <roger@eyesopen.com>
11769             Richard Henderson  <rth@redhat.com>
11770
11771         * gcse.c (implicit_sets): New.
11772         (compute_hash_table_work): Include them in hash table.
11773         (find_implicit_sets, fis_get_condition): New.
11774         (one_cprop_pass): Allocate and free implicit_sets; call
11775         find_implicit_sets before building hash table.
11776
11777 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
11778
11779         * config/t-netbsd (USER_H): Revert previous change.
11780
11781 2003-02-07  Gabor Greif  <ggreif@lucent.com>
11782
11783         * doc/c-tree.texi (Namespaces): Fix typo.
11784
11785 2003-02-07  Jan Hubicka  <jh@suse.cz>
11786
11787         * regrename.c (do_replace, find_oldest_value_reg,
11788         copyprop_hardreg_forward_1): Update register attributes.
11789
11790 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
11791
11792         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
11793         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
11794         variables starting with underscore.
11795         (struct unit_usage): New structure.
11796         (unit_usages, cycle_alt_unit_usages): New global variables.
11797         (check_unit_distribution_in_reserv): Remove it.
11798         (store_alt_unit_usage): New function.
11799         (check_regexp_units_distribution): Rewrite it.
11800
11801 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11802
11803         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
11804         target_cpu_default.
11805         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
11806         if not MASK_NO_SPACE_REGS.
11807         (output_call): Adjust return pointer, don't load new space register
11808         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
11809         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
11810         TARGET_NO_SPACE_REGS is true.
11811         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
11812         conditions.
11813         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
11814         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
11815         true.  Use bve when TARGET_64BIT is true.
11816
11817 2003-02-06  Richard Henderson  <rth@redhat.com>
11818
11819         * combine.c (nonzero_bits): Fix double break.
11820
11821 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
11822             Richard Henderson <rth@redhat.com>
11823
11824         PR c/9530
11825         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
11826         from functions that return a float to functions that don't.
11827
11828 2003-02-06  Jan Hubicka  <jh@suse.cz>
11829
11830         * i386.c (x86_inter_unit_moves): New variable.
11831         (ix86_secondary_memory_needed): Fix 64bit case, honor
11832         TARGET_INTER_UNIT_MOVES
11833         * i386.h (x86_inter_unit_moves): Declare.
11834         (TARGET_INTER_UNIT_MOVES): New macro.
11835         * i386.md (movsi_1): Cleanup constraints; disable
11836         when not doing inter-unit moves.
11837         (movsi_1_nointernunit): New.
11838         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
11839         (movdi_1_rex64_nointerunit): New.
11840         (mivsf_1): disable when not doing inter-unit moves.
11841         (movsf_1_nointerunit): New.
11842
11843         * basic-block.h (inside_basic_block_p):  Declare.
11844         * cfgbuild.c (inside_basic_block_p): Make global.
11845         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
11846         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
11847         update CFG.
11848         (fix_basic_block_boundaries, add_missing_bbs): New.
11849         (rank): Use profile.
11850         (scheudle_ebbs): Rely on CFG; update coments.
11851
11852 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
11853
11854         * Makefile.in (host_hook_obj): New.
11855         (OBJS): Add $(host_hook_obj).
11856         (host_default.o): New rule.
11857         * config.gcc (host_hook_obj): New, default to host-default.o.
11858         (powerpc-*-darwin*): Use host-darwin.o.
11859         (out_host_hook_obj): New.
11860         * configure: Regenerate.
11861         * configure.in: Print information about out_host_hook_obj, substitute
11862         into output files.
11863         * host-default.c: New file.
11864         * hosthooks.h: New file.
11865         * toplev.c (general_init): Call host_hooks.extra_signals.
11866         * config/rs6000/host-darwin.c: New file.
11867         * config/rs6000/x-darwin: New file.
11868         * doc/hostconfig.texi: Add documentation for new host hook.
11869         Rearrange existing documentation.
11870
11871 2003-02-05  Roger Sayle  <roger@eyesopen.com>
11872
11873         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
11874         with *targetm.delegitimize_address.
11875         (rtl_for_decl_location): Likewise.
11876         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
11877         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
11878
11879         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
11880         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
11881         prototype.
11882         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
11883         i386_simplify_dwarf_addr.  Made static.  Prototyped.
11884         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
11885         i386_simplify_dwarf_addr to ix86_delegitimize_address.
11886         (ix86_find_base_term): Likewise.
11887         (maybe_get_pool_constant): Likewise.
11888
11889         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
11890         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
11891         prototype.
11892         * config/s390/s390.c (s390_delegitimize_address): Renamed from
11893         s390_simplify_dwarf_addr.  Made static.  Prototyped.
11894         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
11895
11896 2003-02-05  Richard Henderson  <rth@redhat.com>
11897
11898         PR c/8602
11899         * integrate.c (output_inline_function): Reset input_filename
11900         and lineno from the decl before rest_of_compilation.
11901
11902 2003-02-05  Richard Henderson  <rth@redhat.com>
11903
11904         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11905         (CTZ_DEFINED_VALUE_AT_ZERO): New.
11906         * doc/rtl.texi, doc/tm.texi: Document them.
11907
11908         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
11909         of the value at zero properly.
11910         * fold-const.c (tree_expr_nonnegative_p): Likewise.
11911         * simplify-rtx.c (simplify_unary_operation): Likewise.
11912
11913         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11914         (CTZ_DEFINED_VALUE_AT_ZERO): New.
11915
11916         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
11917         (TARGET_EXPAND_BUILTIN): Remove.
11918         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
11919         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11920         (enum arm_builtins): Remove.
11921         * config/arm/arm.md (UNSPEC_CLZ): Remove.
11922         (clzsi2): Rename from clz; use clz instead of unspec.
11923         (ctzsi2): New.
11924         * config/arm/arm-protos.h: Update.
11925
11926 2003-02-05  Jan Hubicka  <jh@suse.cz>
11927
11928         * i386-protos.h (x86_emit_floatuns):  Declare.
11929         * i386.c (x86_emit_floatuns): New global function.
11930         * i386.md (floatunssisf2, floatunsdisf2,
11931         floatunsdidf2):  New patterns.
11932
11933 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11934
11935         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
11936
11937 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
11938
11939         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
11940           config/ia64/linux.h
11941
11942 2003-02-05  Roger Sayle  <roger@eyesopen.com>
11943
11944         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
11945
11946 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
11947
11948         PR optimization/8555
11949         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
11950         instead of aborting.
11951
11952 2003-02-04  Richard Henderson  <rth@redhat.com>
11953
11954         * config/i386/i386.md (UNSPEC_BSF): Remove.
11955         (ffssi2): Split into cmove and no_cmove insns and splitters;
11956         lose pentium float trick for now.
11957         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
11958         (ctzsi2, clzsi2, bsr): New.
11959
11960 2003-02-04  Richard Henderson  <rth@redhat.com>
11961
11962         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
11963         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
11964         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
11965         (ffsdi2): Use popcount instead of unspec.
11966         (popcountdi2): Rename from *popcnt.
11967         (ctzdi2, clzdi2, getf_exp_tf): New.
11968
11969 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11970
11971         * genconfig.c (main): Generate CC0_P.
11972         * rtl.h (CC0_P): Remove.
11973
11974 2003-02-04  Richard Henderson  <rth@redhat.com>
11975
11976         * libgcc2.h, libgcc2.c (__ffsSI2): New.
11977         (__ffsDI2): Rename from __ffsdi2.
11978         * mklibgcc.in (lib2funcs): Add _ffssi2.
11979
11980 2003-02-04  Richard Henderson  <rth@redhat.com>
11981
11982         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
11983         rounds with a "bit table" lookup.
11984
11985 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11986
11987         * reload.c (find_reloads): Do not use the mode specified in the insn
11988         pattern as reload mode for address operands.  Do not generate optional
11989         reloads for operands where a mandatory reload was already pushed.
11990
11991 2003-02-04  Richard Henderson  <rth@redhat.com>
11992
11993         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
11994         builtins instead of inline assembly.
11995
11996 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11997
11998         PR c/9376
11999         * libgcc2.c (__subvdi3): Fix typo.
12000
12001 2003-02-04  Jan Hubicka  <jh@suse.cz>
12002
12003         * i386.md (movti_rex64):  Fix constraint.
12004
12005 2003-02-04  Jan Hubicka  <jh@suse.cz>
12006
12007         * i386.md (vector push splitters):  Fix typo in resolving conflict.
12008
12009 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
12010
12011         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
12012
12013 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
12014
12015         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
12016         for recent libstdc++.  Remove formatting cruft.
12017
12018 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
12019
12020         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
12021         attribute even if input file name is absolute, but one of the
12022         includes is relative.
12023
12024 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
12025
12026         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
12027         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
12028         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
12029
12030 2003-02-03  Richard Henderson  <rth@redhat.com>
12031
12032         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
12033         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
12034         return type to "int".  Shuffle declarations and undef int trap.
12035         * libgcc2.h: Remove their declarations.
12036         * optabs.c (expand_unop): Force outmode to int for bitops.
12037
12038 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
12039
12040         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
12041         coprocessor registers before floating-point registers.
12042         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
12043         to account for a previously removed register.
12044         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
12045         Delete unused macros.
12046
12047 2003-02-03  Jan Hubicka  <jh@suse.cz>
12048
12049         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
12050         (mov*_internal): Fix predicates; require one of operands to not be
12051         memory.
12052         (SSE?MMX move expanders):  Fix predicates; force one of operands to
12053         register.
12054         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
12055         (movups/movupd/movdqu patterns): Force one of operands to not be
12056         memory.
12057
12058 2003-02-03  Roger Sayle  <roger@eyesopen.com>
12059
12060         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
12061         takes a single rtx and returns it unmodified.
12062         * hooks.h (hook_rtx_rtx_identity): Prototype here.
12063         * target.h (struct gcc_target): Add "delegitimize_address"
12064         field to target structure.
12065         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
12066         for delegitimize_address target using hook_rtx_rtx_identity.
12067         (TARGET_INITIALIZER): Initialize delegitimize_address field
12068         using TARGET_DELEGITIMIZE_ADDRESS macro.
12069         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
12070         extensions of constant pool references.  Use delegitimize_address
12071         to undo the obfuscation of "-fpic".
12072         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
12073
12074         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
12075         i386_simplify_dwarf_addr.
12076         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
12077         (maybe_get_pool_constant): Likewise.
12078
12079 2003-02-03  Jan Hubicka  <jh@suse.cz>
12080
12081         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
12082
12083 2003-02-03  Jan Hubicka  <jh@suse.cz>
12084
12085         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
12086
12087 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12088
12089         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
12090         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
12091
12092 2003-02-02  Andreas Schwab  <schwab@suse.de>
12093
12094         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
12095
12096 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
12097
12098         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
12099         (epilogue_insns): Likewise.
12100
12101 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12102
12103         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
12104
12105 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12106
12107         * pa-protos.h (attr_length_millicode_call): Remove second argument.
12108         (attr_length_indirect_call, attr_length_indirect_call,
12109         attr_length_save_restore_dltp): New prototypes.
12110         * pa.c (attr_length_millicode_call): Remove second argument.  Check
12111         INSN_ADDRESSES_SET_P in distance calculation.
12112         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
12113         INSN_ADDRESSES.
12114         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
12115         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
12116         Call attr_length_call directly.
12117         (attr_length_indirect_call, output_indirect_call,
12118         attr_length_save_restore_dltp): New functions.
12119         * pa.md (attr_length_millicode_call): Drop second argument from all
12120         patterns.
12121         (return_internal_pic): Delete.
12122         (return_external_pic): Remove use of PIC register and pic operand and
12123         flag checks.
12124         (epilogue): Use return_internal for both normal and pic code.
12125         (call, call_value): Emit new 32-bit pic patterns for symref and
12126         indirect calls.  Remove uses for arg pointer and pic register.
12127         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
12128         call_reg_pic_post_reload, call_val_symref_pic,
12129         call_val_symref_pic_post_reload, call_val_reg_pic,
12130         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
12131         Implement define_split and define_peephole2 patterns for pre reload
12132         patterns.
12133         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
12134         call_value_internal_reg_64bit): Shorten names.
12135         (all call patterns): Explicitly indicate registers used and clobbered.
12136         Use attr_length_indirect_call and attr_length_save_restore_dltp for
12137         attribute length calculation.  Move code generation for indirect calls
12138         to output_indirect_call.
12139         (sibcall, sibcall_value): Don't restore PIC register.
12140         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
12141         register retore.
12142
12143 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12144
12145         * doc/install.texi (Testing): Simplify and compress instructions
12146         concerning Dejagnu.
12147
12148 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12149
12150         * collect2.c (pexecute_pid): Rename to pid.
12151         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
12152         pid.
12153
12154 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
12155
12156         * doc/extend.texi (Function Attributes): Remove documentation
12157         for PowerPC Windows NT function attributes..
12158
12159 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
12160
12161         * dwarf2out.c (gen_type_die): Check for typedefs before calling
12162         for TYPE_MAIN_VARIANT.
12163
12164 2003-02-01  Richard Henderson  <rth@redhat.com>
12165
12166         * libgcc2.c: Include auto-host.h.
12167         (ATTRIBUTE_HIDDEN): New.
12168         (__clz_tab): Don't declare here for clz and ctz.
12169         (__clzsi2, __clzdi2): Use count_leading_zeros.
12170         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
12171         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
12172         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
12173         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
12174
12175 2003-02-01  Richard Henderson  <rth@redhat.com>
12176
12177         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
12178         to the conditional.
12179         (ashlsi3_1_zext splitter): Likewise.
12180
12181 2003-02-01  Richard Henderson  <rth@redhat.com>
12182
12183         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
12184         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
12185         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
12186         return type to Wtype.
12187
12188         * libgcc-std.ver (GCC_3.4): Fix inheritance.
12189
12190         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
12191         expander input constraint.
12192
12193 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
12194
12195         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
12196         OTI_parity.
12197         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
12198         * optabs.c (widen_clz, expand_parity): New.
12199         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
12200         for libcalls to clz, ctz, popcount, and parity.
12201         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
12202         parity_optab, and set up libfunc handlers.
12203         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
12204         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
12205         __popcount_tab): New.
12206         * libgcc2.h: Declare them.
12207         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
12208         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
12209         and parity_optab.
12210         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
12211         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
12212         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
12213         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
12214         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
12215         BUILT_IN_PARITYLL): New.
12216         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
12217         and add optab argument.
12218         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
12219         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
12220         * expr.c (expand_expr): Handle them.
12221         * fold-const.c (tree_expr_nonnegative_p): Likewise.
12222         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
12223         * reload1.c (eliminate_regs): Handle them.
12224         (elimination_effects): Likewise.
12225         * function.c (instantiate_virtual_regs_1): Likewise
12226         * genattrtab.c (check_attr_value): Likewise.
12227         * simplify-rtx.c (simplify_unary_operation): Likewise.
12228         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
12229         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
12230         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
12231         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
12232         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
12233         __builtin_arm_clz.
12234         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
12235         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
12236         * doc/extend.texi (Other Builtins): Add new builtins.
12237         * doc/md.texi (Standard Names): Add new patterns.
12238
12239 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
12240
12241         * reload.c: Revert 2003-01-31 change.
12242
12243 2003-02-01  Jan Hubicka  <jh@suse.cz>
12244
12245         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
12246
12247 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
12248
12249         * flags.h (flag_volatile): Remove declaration.
12250         (flag_volatile_global, flag_volatile_static): Likewise.
12251         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
12252         * toplev.c (flag_volatile): Remove definition.
12253         (flag_volatile_global, flag_volatile_static): Likewise.
12254         (f_options): Remove corresponding entries here.
12255         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
12256         or flag_volatile_static.
12257         * doc/invoke.texi: Remove documentation of -fvolatile,
12258         -fvolatile-global and -fvolatile-static.
12259
12260 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12261
12262         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
12263         updating of total_code_bytes from prologue to epilogue.
12264
12265 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
12266
12267         * reload.c (find_reloads): Do not use the mode specified in the insn
12268         pattern as reload mode for address operands.  Do not generate optional
12269         reloads for operands where a mandatory reload was already pushed.
12270         Generate optional reloads only in the final pass though find_reloads.
12271         (have_replacement_p): New function.
12272
12273 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12274
12275         * doc/install.texi (Testing): Remove a reference to our obsolete
12276         /testresults web pages and strip redundant information concerning
12277         test results.
12278         (Binaries): Refer to Microsoft Windows instead of listing all
12279         possible variants.
12280
12281 2003-02-01  Jan Hubicka  <jh@suse.cz>
12282
12283         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
12284         RTL chain.
12285
12286         * combine.c (simplify_set): Reverse order of ragumetns to
12287         REG_CANNOT_CHANGE_MODE_P
12288         * df.c (df_def_record_1): Likewise.
12289         * recog.c (register_operand): Likewise.
12290         * simplify-rtx.c (simplify_subreg): Likewise.
12291         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
12292         CANNOT_CHANGE_MODE_CLASS.
12293         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
12294         Likewise.
12295         * reload.c (push_reload): Likewise.
12296         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12297         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12298         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12299         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
12300         * mips.c (mips_cannot_change_mode_class): Update.
12301         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12302         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12303         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12304         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12305         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
12306         * sh.c (sh_cannot_change_mode_class): Update.
12307         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
12308         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
12309
12310 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
12311
12312         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
12313         change to LINK_COMMAND_SPEC in gcc.c.
12314
12315 2003-01-31  Jan Hubicka  <jh@suse.cz>
12316
12317         PR c/9506
12318         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
12319
12320 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12321
12322         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
12323         duplicated code.
12324
12325 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
12326
12327         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
12328         (BINFO_ELTS): New #define.
12329         * stor-layout.c (finalize_record_size): Don't set them.
12330         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
12331         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
12332         (BINFO_LANG_ELTS): New #define.
12333         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
12334         * java/class.c (make_class): Use BINFO_ELTS.
12335         (set_super_info): Likewse.
12336         (add_interface_do): Likewise.
12337         * objc/objc-act.c (start_class): Use BINFO_ELTS.
12338
12339 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
12340
12341         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
12342         (times): Don't ever declare if not HAVE_TIMES.
12343         (clock): Don't ever declare if not HAVE_CLOCK.
12344
12345 2003-01-30  Richard Henderson  <rth@redhat.com>
12346
12347         * flow.c (update_life_info): Zap life info after cleanup_cfg.
12348         (regno_uninitialized): Use correct live at function entry set.
12349         (regno_clobbered_at_setjmp): Likewise.
12350
12351         * expr.c (store_expr): Promote all MEM intermediates to regs.
12352
12353 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12354
12355         * config/arm/arm.c: Fix comment typos.
12356         * config/arm/arm.h: Likewise.
12357         * config/arm/netbsd-elf.h: Likewise.
12358         * config/arm/netbsd.h: Likewise.
12359
12360 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
12361
12362         * gengtype.c (struct walk_type_data): Add needs_cast_p.
12363         (walk_type): Set needs_cast_p in walk_type_data.
12364         (write_types_process_field): Supply casts when required to suppress
12365         warnings.
12366         (write_root): Cast gt_pch_n_S to suppress warning.
12367         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
12368         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
12369         when they might exist.
12370         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
12371         insn-conditions.o, and rs6000.o.
12372
12373 2003-01-30  Richard Henderson  <rth@redhat.com>
12374
12375         * ggc-page.c (G.context_depth_allocations): New.
12376         (G.context_depth_collections): New.
12377         (alloc_page): Set G.context_depth_allocations.
12378         (ggc_collect): Set G.context_depth_collections.
12379         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
12380         (ggc_pop_context): Early exit for no allocations or collections.
12381
12382 2003-01-30  Richard Henderson  <rth@redhat.com>
12383
12384         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
12385
12386 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
12387
12388         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
12389         size, the link register is always saved if any other register is
12390         saved.
12391
12392 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12393
12394         * config/h8300/h8300-protos.h: Update the prototype for
12395         compute_plussi_cc.
12396         (cpp_reader): Declare before it is used.
12397         * config/h8300/h8300.c (compute_plussi_cc): Change the return
12398         type to int.
12399         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
12400         see an unknown H8 variant.
12401
12402 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
12403
12404         PR target/9316
12405         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
12406         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
12407         * config/rs6000/t-rtems: New file. multilib variants to match OS.
12408         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
12409         rs6000/t-ppcgas so we get the desired multilibs.
12410
12411 2003-01-30  Nick Clifton  <nickc@redhat.com>
12412
12413         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
12414         when popping saved IP register off the stack.
12415
12416 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12417
12418         * config/rs6000/aix43.h: Fix comment typos.
12419         * config/rs6000/aix51.h: Likewise.
12420         * config/rs6000/aix52.h: Likewise.
12421         * config/rs6000/altivec.h: Likewise.
12422         * config/rs6000/rs6000.c: Likewise.
12423         * config/rs6000/rs6000.h: Likewise.
12424         * config/rs6000/rs6000.md: Likewise.
12425         * config/rs6000/spe.md: Likewise.
12426
12427 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
12428
12429         * c-common.c (builtin_define_float_constants): Define
12430         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
12431
12432 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12433
12434         * config/sh/lib1funcs.asm: Fix comment typos.
12435         * config/sh/linux.h: Likewise.
12436         * config/sh/sh.c: Likewise.
12437         * config/sh/sh.md: Likewise.
12438
12439 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
12440
12441         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
12442
12443 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
12444
12445         * config/fp-bit.h (__make_dp): Declare if TMODES.
12446
12447 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
12448
12449         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
12450         general_operand_src and general_operand_dst.
12451
12452 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
12453
12454         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
12455         Return true for variable sized types.
12456         (rs6000_va_arg): Handle variable sized types passed by reference
12457         on non-SVR4 ABI.
12458
12459 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
12460
12461         * arm.c (arm_legtimize_address): New function.
12462         * arm-protos.h (arm_legtimize_address): Add prototype.
12463         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
12464         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
12465         do ... while (0)
12466
12467 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12468
12469         PR bootstrap/9296
12470         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
12471         depended on it being defined until now.
12472
12473 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12474
12475         PR target/9295
12476         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
12477         RTEMS code knows which C++ initialization style the toolset
12478         configuration is using.
12479
12480 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12481
12482         PR bootstrap/9293
12483         * config/m68k/t-crtstuff: Replace spaces with tabs, add
12484          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
12485
12486 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12487
12488         PR bootstrap/9292
12489         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
12490         RTEMS threads.
12491         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
12492
12493 2003-01-29  Nick Clifton  <nickc@redhat.com>
12494
12495         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
12496         not $(srcdir).
12497
12498 2003-01-29  Andrew Haley  <aph@redhat.com>
12499
12500         * tree-inline.c (walk_tree): Add CHAR_TYPE.
12501
12502 2003-01-29  Jan Hubicka  <jh@suse.cz>
12503
12504         * i386.md (subdi3_carry_rex64): Fix typo.
12505
12506 2003-01-28  Stan Shebs  <shebs@apple.com>
12507
12508         * coretypes.h (cpp_reader): Forward declare struct.
12509         * c-pragma.h (cpp_reader): Remove forward declaration.
12510         * hashtable.h (cpp_reader): Likewise.
12511         * scan.h (cpp_reader): Likewise.
12512         * tree.h (cpp_reader): Likewise.
12513         * config/darwin-protos.h (cpp_reader): Likewise.
12514         * config/arm/arm-protos.h (cpp_reader): Likewise.
12515         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
12516         struct cpp_reader in prototypes.
12517
12518 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
12519
12520         * doc/install.texi: Add documentation for installation into
12521         tooldirs and with DESTDIR.
12522
12523 2003-01-28  Richard Henderson  <rth@redhat.com>
12524
12525         * config.gcc (ia64*-*-aix*): Remove.
12526         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
12527         * config/ia64/unwind-aix.c: Remove file.
12528
12529 2003-01-28  Andreas Schwab  <schwab@suse.de>
12530
12531         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
12532         register.
12533         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
12534         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
12535         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
12536         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
12537         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
12538         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
12539         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
12540
12541 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
12542
12543         * combine.c (nonzero_bits): Fix check for negative divide operands.
12544
12545 2003-01-28  Richard Henderson  <rth@redhat.com>
12546
12547         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
12548         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
12549
12550 2003-01-28  Richard Henderson  <rth@redhat.com>
12551
12552         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
12553
12554         * config/cris/cris.c (cris_address_cost): Make static.
12555         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
12556         * config/cris/cris.h (ADDRESS_COST): Remove.
12557         * config/cris/cris-protos.h: Update.
12558
12559 2003-01-23  Mike Stump  <mrs@apple.com>
12560
12561         * regclass.c (init_reg_autoinc): New function.
12562         (regclass): Move initialization of forbidden_inc_dec_class from
12563         here...
12564         (init_regs): to here.  Avoids reinitialization for each function,
12565         saving compilation time.
12566
12567 2003-01-28  Jason Merrill  <jason@redhat.com>
12568
12569         * cpplib.h (struct cpp_options): Add warn_deprecated field.
12570         * cppinit.c (cpp_create_reader): Turn it on by default.
12571         * c-opts.c (c_common_decode_option): Set it.
12572         * cpplib.c (do_pragma_once): Only complain about #pragma once
12573         if warn_deprecated is set.
12574
12575 2003-01-28  Dale Johannesen  <dalej@apple.com>
12576
12577         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
12578         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
12579         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
12580
12581 2003-01-28  Richard Henderson  <rth@redhat.com>
12582
12583         * target.h (targetm.address_cost): New.
12584         * target-def.h (TARGET_ADDRESS_COST): New.
12585         (TARGET_RTX_COSTS): Uncomment.  Oops.
12586         * cse.c (address_cost): Use new target hook.
12587         (default_address_cost): New.
12588         * output.h (default_address_cost): Declare.
12589         * hooks.c (hook_int_rtx_0): New.
12590         * hooks.h (hook_int_rtx_0): Declare.
12591         * loop.c (combine_givs_p): Remove if 0 code.
12592         * system.h (ADDRESS_COST): Poison.
12593
12594         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
12595         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
12596         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
12597         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
12598         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
12599         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
12600         config/xtensa/xtensa.c, config/xtensa/xtensa.h
12601         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
12602         (ADDRESS_COST): Remove.
12603
12604         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
12605         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12606         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12607         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
12608         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
12609         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
12610         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
12611         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
12612         config/mips/mips.c, config/mips/mips.h,
12613         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12614         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
12615         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
12616         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
12617         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
12618         config/vax/vax.c, config/vax/vax.h
12619         (foo_address_cost): Make static.
12620         (TARGET_ADDRESS_COST): New.
12621         (ADDRESS_COST): Remove.
12622
12623         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
12624         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
12625         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
12626         config/stormy16/stormy16.h
12627         (ADDRESS_COST): Move code ...
12628         (foo_address_cost): ... here.
12629         (TARGET_ADDRESS_COST): New.
12630
12631         * config/m32r/m32r.c (m32r_address_cost): Remove.
12632         * config/m32r/m32r-protos.h: Update.
12633
12634         * config/mmix/mmix.c (mmix_address_cost): Remove.
12635         * config/mmix/mmix-protos.h: Update.
12636
12637         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
12638         mn10300_address_cost; move unsig allocation ...
12639         (mn10300_address_cost): ... here.
12640         (TARGET_ADDRESS_COST): New.
12641         * config/mn10300/mn10300-protos.h: Update.
12642         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
12643
12644         * doc/tm.texi: Update.
12645
12646 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
12647
12648         * haifa-sched.c (schedule_insn): Return necessary cycle advance
12649         after issuing the insn.
12650         (rank_for_schedule): Make a insn with /S the highest priority
12651         insn.
12652         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
12653         (choose_ready): Check SCHED_GROUP_P.
12654         (schedule_block): Advance cycle after issuing insn if it is
12655         necessary.  Don't reorder insns if there is an insn with /S.
12656         (set_priorities): Ignore schedule groups.
12657
12658         * sched-deps.c (remove_dependence, group_leader): Remove the
12659         functions.
12660         (add_dependence): Ignore schedule groups.
12661         (set_sched_group_p): Don't make copy of dependencies from previous
12662         insn of the schedule group.  Add anti-dependency to the previous
12663         insn of the schedule group.
12664         (compute_forward_dependences): Ignore schedule groups.
12665
12666         * sched-ebb.c (init_ready_list): Ignore schedule groups.
12667
12668         * sched-rgn.c (init_ready_list): Ditto.
12669         (can_schedule_ready_p): Ditto.
12670
12671 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
12672
12673         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
12674         register to another one.
12675
12676 2003-01-28  Richard Henderson  <rth@redhat.com>
12677
12678         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
12679
12680 2003-01-28  Roger Sayle  <roger@eyesopen.com>
12681
12682         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
12683
12684 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
12685
12686         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
12687         class contains a floating-point register, return the size of the
12688         mode in half words.
12689
12690 2003-01-28  Jan Hubicka  <jh@suse.cz>
12691
12692         * i386.c (ix86_carry_flag_operator):  New predicate.
12693         (fcmov_operator): Fix whitespace.
12694         (ix86_expand_carry_flag_compare):  Deal with floating point.
12695         (ix86_expand_int_movcc): Deal with fp; update insn expansion
12696         (ix86_expand_int_addcc): Likewise.
12697         (ix86_expand_strlensi_unroll_1): likewsie.
12698         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
12699         * i386.md (add?i_carry_rex64): Use new predicate.
12700         (sub?i3_carry_rex64): Likewise.
12701         (x86_mov?icc_0_m1*): Likewise.
12702
12703 2003-01-28  Andreas Schwab  <schwab@suse.de>
12704
12705         * cfgloopmanip.c (create_preheader): Initialize src to avoid
12706         warning.
12707
12708         * expmed.c (emit_store_flag): Fix cast to avoid sign
12709         comparison warning.
12710
12711         * combine.c (force_to_mode): Add cast to fix warning when
12712         STORE_FLAG_VALUE is negative.
12713
12714 2003-01-27  Richard Henderson  <rth@redhat.com>
12715
12716         * Makefile.in (cse.o): Depend on TARGET_H.
12717         * cse.c (rtx_cost): Use targetm.rtx_costs.
12718         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
12719         * doc/tm.texi: Update.
12720
12721         * target.h (targetm.rtx_costs): New.
12722         * target-def.h (TARGET_RTX_COSTS): New.
12723         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
12724         * hooks.h: Update.
12725
12726         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
12727         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
12728         * config/alpha/alpha.h (PROCESSOR_MAX): New.
12729         (CONST_COSTS, RTX_COSTS): Remove.
12730
12731         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
12732         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
12733         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
12734         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
12735         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
12736         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
12737         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
12738         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
12739         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
12740         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
12741         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
12742         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
12743         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
12744         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
12745         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
12746         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
12747         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
12748         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
12749         config/v850/v850.c, config/v850/v850.h,
12750         config/xtensa/xtensa.c, config/xtensa/xtensa.h
12751         (CONST_COSTS, RTX_COSTS): Move code ...
12752         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
12753
12754         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
12755         (arm_rtx_costs, TARGET_RTX_COSTS): New.
12756         * config/arm/arm-protos.h: Update.
12757         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
12758
12759         * config/avr/avr.h (CONST_COSTS): Move code ...
12760         * config/avr/avr.c (avr_rtx_costs): ... here.
12761         (default_rtx_costs): Make static.
12762         * config/avr/avr-protos.h: Update.
12763
12764         * config/h8300/h8300.c (const_costs): Make static.
12765         (h8300_and_costs, h8300_shift_costs): Likewise.
12766         * config/h8300/h8300-protos.h: Update.
12767
12768         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
12769         (CONST_COSTS): Move code ...
12770         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
12771         default_rtx_costs; update for signature change.
12772         * config/ip2k/ip2k-protos.h: Update.
12773
12774         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
12775         (CONST_COSTS): Move code ...
12776         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
12777         (TARGET_RTX_COSTS): New.
12778         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
12779         * config/m68hc11/m68hc11-protos.h: Update.
12780
12781         * config/m68k/m68k.c (const_int_cost): Make static.
12782         * config/m68k/m68k-protos.h: Update.
12783
12784         * config/mcore/mcore.c (mcore_const_costs): Make static.
12785         (mcore_and_cost, mcore_ior_cost): Likewise.
12786         * config/mcore/mcore-protos.h: Update.
12787
12788         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
12789         (mmix_rtx_cost_recalculated): Remove.
12790         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
12791         * config/mmix/mmix-protos.h: Update.
12792
12793         * config/sh/sh.c (shiftcosts): Make static.
12794         (addsubcosts, andcosts, multcosts): Likewise.
12795         * config/sh/sh-protos.h: Update.
12796
12797         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
12798         (sparc_rtx_costs): Make static; update for change in signature.
12799         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
12800         * config/sparc/sparc-protos.h: Update.
12801
12802         * config/v850/v850.c (const_costs): Make static.
12803         * config/v850/v850-protos.h: Update.
12804
12805         * config/vax/vax.h (RTX_COSTS): Remove.
12806         (CONST_COSTS): Move code ...
12807         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
12808         from vax_rtx_cost.
12809         (vax_rtx_costs, TARGET_RTX_COSTS): New.
12810
12811 2003-01-27  Richard Henderson  <rth@redhat.com>
12812
12813         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
12814         * config/vax/vax-protos.h: Update.  Really.
12815
12816 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
12817
12818         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
12819         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
12820         zero if no hardware floating point.
12821         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
12822         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
12823         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
12824         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
12825         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
12826         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
12827         even FP registers on N32 and N64.
12828         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
12829         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
12830         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
12831         even-register-like alignment to 128-bit arguments.
12832         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
12833         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
12834         on N32 or N64.
12835         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
12836         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
12837         (TPBIT): Set to tp-bit.c.
12838         (tp-bit.c): Create out of fp-bit.c.
12839
12840 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12841
12842         * c-parse.in: Remove '%expect 32' directive in objc mode.
12843
12844 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
12845
12846         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
12847         (LIBGCOV): New variable.
12848         (libgcc.mk): Add LIBGCOV.
12849         (LIBGCC_DEPS): Add libgcov.c.
12850         (libgcov.a): New target.
12851         (clean): Remove libgcov.a.
12852         (install-libgcc): Do libgcov too.
12853         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
12854         with libgcov.a.
12855         * libgcc2.c (L_gcov): Move into ...
12856         * libgcov.c: ... here. New file.
12857         * mklibgcc.in: Add libgcov rules.
12858         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
12859
12860         * doc/invoke.texi (profile-arcs, test-coverage): Update and
12861         clarify.
12862
12863         * profile.c (index_counts_file): Remove duplicate check for open file.
12864
12865 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
12866
12867         * gcc/doc/invoke.texi (Optimization Options): Group together
12868         optional and experimental flags.  Move trapv and bounds-check
12869         out of this section.  Group floating point flags together.
12870         (Code Gen Options): Move trapv and bounds-check to here.
12871
12872 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
12873
12874         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
12875
12876 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
12877
12878         PR optimization/9090
12879         * function.c (purge_addressof_1): After pushing an addressed register
12880         onto the stack, simplify the result.
12881
12882 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12883
12884         * doc/extend.texi: Fix typo.
12885
12886 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12887
12888         * doc/cppopts.texi: Fix typo.
12889         * doc/objc.texi: Likewise.
12890         * doc/passes.texi: Likewise.
12891
12892 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
12893
12894         * real.c (ibm_extended_format): Add 53 to minimum exponent.
12895         (encode_ibm_extended): Adjust.
12896
12897 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
12898
12899         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
12900         timevar_id enumerations.
12901
12902 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12903
12904         * combine.c: Fix formatting.
12905
12906 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12907
12908         * doc/gccint.texi: Update the copyright.
12909
12910 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12911
12912         * doc/cpp.texi: Fix typos.
12913         * doc/extend.texi: Likewise.
12914         * doc/gty.texi: Likewise.
12915         * doc/install.texi: Likewise.
12916         * doc/passes.texi: Likewise.
12917         * doc/rtl.texi: Likewise.
12918         * doc/tm.texi: Likewise.
12919
12920 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12921
12922         * config/ia64/fde-glibc.c: Fix comment typos.
12923         * config/ia64/hpux.h: Likewise.
12924         * config/ia64/ia64.c: Likewise.
12925         * config/ia64/ia64.h: Likewise.
12926         * config/ia64/unwind-ia64.c: Likewise.
12927
12928 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12929
12930         * config/i386/i386-modes.def: Fix comment typos.
12931         * config/i386/i386.c: Likewise.
12932         * config/i386/i386.md: Likewise.
12933
12934 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
12935
12936         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
12937         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
12938         ASM_FINISH_DECLARE_OBJECT before defining it.
12939         * toplev.c (rest_of_decl_compilation):  Don't define
12940         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
12941         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
12942         parameters for DWARF2 targets because they _are_ used.
12943
12944 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
12945
12946         * fp-bit.h: Define macros for TFmode floating-point constants
12947         in IBM-extended TFmode types.
12948         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
12949         widths.
12950         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
12951         TFmode type.
12952
12953         * config/fp-bit.h: Define macros for TFmode floating-point
12954         constants in IEEE quad TFmode type.  Declare functions according
12955         to L_ macros.
12956         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
12957         (TFtype, TItype, UTItype): Define if TMODES is defined.
12958         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
12959         (F_T_BITOFF, D_T_BITOFF): Define.
12960         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
12961         guaranteed to be wide enough.
12962         * config/fp-bit.c: Check for L_ macros for tf functions.
12963         (__thenan_tf): New.
12964         (nan): Adjust.
12965         (pack_d, unpack_d): Support IEEE 854 quad type.
12966         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
12967         from FRAC_NBITS, FRAC_BITS and NGARDS.
12968         (usi_to_float): Cast constants to be shifted to fractype
12969         instead of assuming long long is wide enough.
12970         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
12971
12972 2003-01-26  Andreas Jaeger  <aj@suse.de>
12973
12974         * df.c: Remove prototype of unused function df_regno_rtl_debug.
12975
12976 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
12977
12978         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
12979         (DBBIT_FUNCS): Added _df_to_tf.
12980         (TPBIT_FUNCS): New.
12981         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
12982         (LIBGCC_DEPS): Added TPBIT.
12983         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
12984
12985         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
12986         been able to move the result to target.
12987
12988         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
12989         for the appropriate mode.
12990
12991         * calls.c (emit_library_call_value_1): Handle return values
12992         in a PARALLEL.
12993
12994         * rtl.c (get_mode_alignment): Moved to...
12995         * stor-layout.c: ... here.
12996
12997         * print-rtl.c (print_rtx): Don't print MEM details in
12998         GENERATOR_FILEs.
12999
13000 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
13001
13002         * df.h: Update comments, tidy formatting.
13003         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
13004         REVERSE, UNION, INTERSECTION.  All uses updated.
13005         (OLD_DF_INTERFACE): Remove.
13006         (struct insn_info): Remove commented out insn field.
13007         * df.c: Update comments, tidy formatting.
13008         (df_def_table_realloc): Remove.
13009
13010
13011 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
13012
13013         * calls.c (save_fixed_argument_area): Tidy.
13014         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
13015         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
13016         call chain loop at 1 if !try_tail_call.  Formatting.
13017         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
13018         Use save_fixed_argument_area and restore_fixed_argument_area.
13019
13020 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13021
13022         * df.c (df_uses_record): Handle CC0.
13023
13024 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
13025
13026         * reload.c (maybe_memory_address_p): New function.
13027         (find_reloads_address): Use it instead of memory_address_p.
13028
13029 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
13030
13031         * final.c (shorten_branches): Align the address of code label
13032         when computing initial lengths and addresses.
13033
13034 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13035
13036         * config/m68hc11/m68hc11.md: Fix a comment typo.
13037
13038 2003-01-25  Andreas Jaeger  <aj@suse.de>
13039
13040         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
13041         TARGET_MACHO.
13042
13043 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13044
13045         * gcse.c (bypass_last_basic_block): New global variable.
13046         (bypass_block):  Use redirect_edge_and_branch_force to redirect
13047         fall-through edges.  Use bypass_last_basic_block to determine
13048         which blocks have valid PRE information.
13049         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
13050
13051 2003-01-25  Jan Hubicka  <jh@suse.cz>
13052
13053         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
13054
13055 2003-01-25  Jan Hubicka  <jh@suse.cz>
13056                               Eric Botcazou <ebotcazou@libertysurf.fr>
13057         PR opt/8492
13058         * gcse.c (one_cprop_pass): Delete unreachable blocks.
13059
13060 2003-01-25  Richard Henderson  <rth@redhat.com>
13061
13062         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
13063         from ia64_aix_select_rtx_section.
13064         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
13065         instead of saving and restoring flag_pic.
13066         (ia64_rwreloc_unique_section): Similarly.
13067         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
13068         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
13069         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
13070         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
13071
13072 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13073
13074         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
13075         comment.
13076
13077 2003-01-25  Richard Henderson  <rth@redhat.com>
13078
13079         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
13080
13081 2003-01-25  Kelley Cook <kelleycook@comcast.net>
13082
13083         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
13084
13085 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
13086
13087         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
13088         type for bitmaps.  Use unsigned long.
13089         (nBITMAP_WORD_BITS): New macro.
13090         (BITMAP_WORD_BITS): New macro.
13091         (rest of file): Use it.
13092         * bitmap.c: Use it.
13093
13094 2003-01-25  Richard Henderson  <rth@redhat.com>
13095
13096         2002-02-19  Robert Lipe  <robertlipe@usa.net>
13097         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
13098
13099 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13100
13101         * builtins.c (purge_builtin_constant_p): Scan insn stream
13102         sequentially rather than by basic block.
13103         * function.c (purge_addressof): Simplify test with INSN_P.
13104
13105 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13106
13107         * combine.c (simplify_comparison, case AND): Remove a redundant test.
13108
13109 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13110
13111         * function.h (struct function): New field calls_constant_p.
13112         (current_function_calls_constant_p): New macro for above.
13113         * function.c (prepare_function_start): Initialize calls_eh_return
13114         and calls_constant_p.
13115         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
13116         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
13117         when the current_function_calls_constant_p.
13118         * integrate.c (expand_inline_function): Set calls_constant_p if
13119         the function being inlined has calls_constant_p set.
13120
13121 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13122
13123         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
13124         optimizing, even if flag_gcse is true.
13125         * toplev.c (rest_of_compilation): purge_builtin_constant_p
13126         only needs to be called when "optimize > 0 && flag_gcse".
13127
13128 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13129
13130         * stmt.c (emit_case_bit_tests): New routine to implement suitable
13131         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
13132         (case_bit_test_cmp): New comparison function for "qsort" to order
13133         case_bit_tests by decreasing number of destination nodes.
13134         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
13135         (expand_end_case_type): Use emit_case_bit_tests to implement
13136         suitable switch statments.
13137         (CASE_USE_BIT_TESTS): New target macro to disable the above.
13138         * Makefile.in (stmt.o): Add dependency on optab.h.
13139         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
13140
13141 2003-01-23  Andreas Schwab  <schwab@suse.de>
13142
13143         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
13144         __do_global_ctors_aux hidden global and don't put it in
13145         .init_array.
13146         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
13147         instead so that it comes first.
13148
13149 2003-01-25  Jan Hubicka  <jh@suse.cz>
13150
13151         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
13152         subreg is read/modify.
13153
13154 2003-01-25  Jan Hubicka  <jh@suse.cz>
13155
13156         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
13157         do libcall for large blocks.
13158         * i386.md (comi patterns): Set type to ssecomi.
13159         (sse2_unpck?pd): Fix mode of vec_select.
13160
13161         * cse.c: Include except.h
13162         (cse_set_around_loop):  Do not create new basic blocks.
13163         * Makefile.in (cse.o): Add dependnecy on except.h
13164
13165 2003-01-25  Jan Hubicka  <jh@suse.cz>
13166
13167         * builtins.c (fold_trunc_transparent_mathfn): New function.
13168         (fold_builtin): Use it.
13169         * convert.c (convert_to_real): Re-enable code to convert
13170         math functions; add support for floor familly functions.
13171
13172 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13173
13174         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
13175         dependencies on coretypes.h and $(TM_H).
13176
13177 2003-01-25  Jan Hubicka  <jh@suse.cz>
13178
13179         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
13180
13181 2003-01-24  Stuart Hastings  <stuart@apple.com>
13182
13183         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
13184
13185 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13186
13187         * config/c4x/c4x.md (UNSPEC_BU): New constants.
13188         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
13189         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
13190         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
13191         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
13192         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
13193         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
13194         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
13195
13196 2003-01-24  Jan Hubicka  <jh@suse.cz>
13197
13198         * emit-rtl.c (reg_attrs_htab): New static variable.
13199         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
13200         functions.
13201         (reg_rtx): Do not maintain regno_decl.
13202         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
13203         set_mem_attrs_from_reg): New global function.
13204         (init_emit): Do not initialize regno_decl.
13205         (init_emit_once): initialize reg_attrs_htab.
13206         * final.c (alter_subreg): Do not replace REG by SUBREG.
13207         (gen_mem_expr_from_op): Improve output.
13208         (output_asm_operands): Likewise.
13209         * function.c (assign_params): Do not set REGNO_DECL.
13210         * function.h (struct function): Kill regno_decl.
13211         (REGNO_DECL): Kill.
13212         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
13213         * print_rtl.c (print_rtx): Output REG information.
13214         * regclass.c (reg_scan_mark_refs): Update attrs.
13215         * reload1.c (alter_reg): Likewise.
13216         * simplify_rtx.c (simplify_subreg): Likewise.
13217         * stmt.c (expand_decl): Likewise.
13218         * rtl.def (REG): Add new field.
13219         * rtl.h (struct reg_attrs): New.
13220         (rtunion_def): At rtreg.
13221         (X0MEMATTR): Add checking.
13222         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
13223         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
13224         Declare.
13225         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
13226
13227 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
13228
13229         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
13230         (xtensa_emit_call, print_operand): Fix printf format strings
13231         to avoid compile warnings.
13232         (xtensa_function_prologue, xtensa_function_epilogue): Change type
13233         of "size" argument to HOST_WIDE_INT to fix compile warnings.
13234         * config/xtensa/xtensa-protos.h
13235         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
13236
13237 2003-01-24  Jan Hubicka  <jh@suse.cz>
13238
13239         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
13240         (implicit_built_in_decls): New global array.
13241         (mathfn_built_in): New global function.
13242         (fold_trunc_transparent_mathfn): New static function
13243         (expand_builtin_strstr, expand_bultin_strchr,
13244         expand_builtin_strpbrk, expand_builtin_strcpy,
13245         expand_builtin_strncpy, expand_bultin_strcmp,
13246         expand_bultin_strncat, expand_builtin_fputs): Use
13247         implicint_built_in_decls.
13248         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
13249         * builtins.def: Fix comments.
13250         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
13251         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
13252         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
13253         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
13254         (DEF_C99_C90RES_BULTIN): New.
13255         (*f, *l builtins): Update.
13256         * c-common.c (DEF_BUILTIN): Initialize implicit array.
13257         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
13258         * convert.c (strip_float_extensions): New global function.
13259         * tree.h (DEF_BUILTIN): Accept 10 arguments.
13260         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
13261         Declare.
13262         * java/builtins.c (define_builtin): Handle implicit.
13263         (DEF_BUILTIN): Update.
13264         * tm.texi (TARGET_C99_FUNCTIONS): Document.
13265         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
13266         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
13267         when using glibc2.
13268
13269 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
13270
13271         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
13272         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
13273         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
13274         * config/xtensa/crti.asm: New file.
13275         * config/xtensa/crtn.asm: New file.
13276         * config/xtensa/t-elf: New file.
13277         * config/xtensa/t-linux: New file.
13278         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
13279         Move various CFLAGS settings to new t-elf file.
13280
13281 2003-01-24  Richard Henderson  <rth@redhat.com>
13282
13283         PR optimization/4382
13284         * tree-inline.c (find_builtin_longjmp_call_1): New.
13285         (find_builtin_longjmp_call): New.
13286         (inlinable_function_p): Use it.
13287
13288 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13289
13290         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
13291         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
13292         * config/i386/i386.c (function_arg_pass_by_reference): New.
13293         (ix86_va_arg): Support arguments passed by reference.
13294
13295 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13296
13297         * cfgloopanal.c: New file.
13298         * cfgloopmanip.c: New file.
13299         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
13300         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
13301         cfglayout.o): Add dependency on cfgloop.h.
13302         (cfgloop.o): Add flags.h dependency.
13303         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
13304         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
13305         (struct loop, struct loops, flow_loops_find, flow_loops_update,
13306         flow_loops_free, flow_loops_dump, flow_loop_dump,
13307         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
13308         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
13309         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
13310         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
13311         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
13312         find_common_loop, verify_loop_structure): Declarations moved to ...
13313         * cfgloop.h: New file.
13314         * bb-reorder.c (reorder_basic_blocks): Modified.
13315         * cfglayout.c: Include cfgloop.h.
13316         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
13317         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
13318         (break_superblocks): New static function.
13319         (cfg_layout_finalize): Use it.
13320         (cfg_layout_split_block): New function.
13321         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
13322         fields.
13323         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
13324         changed.
13325         (cfg_layout_split_block): Declare.
13326         * cfgloop.c: Include cfgloop.h and flags.h.
13327         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
13328         get_loop_body): Avoid signed versus unsigned comparison warnings.
13329         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
13330         loop_latch_edge): Modified.
13331         (verify_loop_structure): Modified to use flags stored in loop structure;
13332         check irreducible loops.
13333         (cancel_loop, cancel_loop_tree): New functions.
13334         (estimate_probability): Use loop analysis code for predictions.
13335         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
13336         warnings.
13337         * doloop.c: Include cfgloop.h.
13338         * loop.c: Include cfgloop.h.
13339         * predict.c: Include cfgloop.h.
13340         * toplev.c: Include cfgloop.h.
13341         * unroll.c: Include cfgloop.h.
13342         * tracer.c (tracer): Modified.
13343
13344 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13345
13346         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
13347
13348 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
13349
13350         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
13351         * configure: Regenerate.
13352
13353         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
13354         (tls_symbolic_reference_mentioned_p): Add prototype.
13355         (s390_tls_get_offset): Add prototype.
13356         (emit_pic_move): Remove prototype, replace by ...
13357         (emit_symbolic_move): .. this new prototype.
13358
13359         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
13360         (tls_model_chars): New global variable.
13361         (s390_encode_section_info): Encode TLS model.
13362         Use targetm.binds_local_p to check for local symbols.
13363         (s390_strip_name_encoding): New function.
13364         (TARGET_STRIP_NAME_ENCODING): Define.
13365
13366         (get_thread_pointer): New function.
13367         (legitimize_tls_address): New function.
13368         (legitimize_address): Call it.
13369         (emit_pic_move): Remove, replace by ...
13370         (emit_symbolic_move): ... this new function.
13371
13372         (larl_operand): Handle TLS operands.
13373         (legitimate_constant_p): Likewise.
13374         (s390_decompose_address): Likewise.
13375         (s390_cannot_force_const_mem): New function.
13376         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13377
13378         (s390_output_symbolic_const): Handle TLS unspecs.
13379         (print_operand): New code 'J'.
13380         (machine_function): Add struct member 'some_ld_name'.
13381         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
13382
13383         (enum s390_builtin): New type.
13384         (code_for_builtin_64, code_for_builtin_31): New global variables.
13385         (s390_init_builtins, s390_expand_builtin): New functions.
13386         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
13387
13388         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
13389         (ASM_OUTPUT_LABELREF): Define.
13390         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
13391
13392         * config/s390/s390.md: Define TLS UNSPEC constants.
13393         ("movdi", "movsi"): Handle TLS operands.
13394         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
13395         ("*tls_load_64", "*tls_load_31"): New insns.
13396         ("call_value_tls", "call_value_tls_exp"): New expanders.
13397         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
13398         "bas_tls_64", "bas_tls_31"): New insns.
13399
13400 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
13401
13402         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
13403         spe ABI is configured, if requested.
13404
13405 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13406
13407         * doc/passes.texi: Fix typo.
13408
13409 2003-01-24  Andreas Schwab  <schwab@suse.de>
13410
13411         * stor-layout.c (excess_unit_span): Only define if used.
13412
13413 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
13414
13415         * gcc/doc/invoke.texi (Optimization Options): List -O levels
13416         for each optimization flag.
13417
13418 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13419
13420         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
13421
13422 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13423
13424         * doc/bugreport.texi: Use @command instead of @code for commands.
13425         * doc/collect2.texi: Likewise.
13426         * doc/headerdirs.texi: Likewise.
13427         * doc/invoke.texi: Likewise.
13428         * doc/standards.texi: Likewise.
13429         * doc/tm.texi: Likewise.
13430         * doc/trouble.texi: Likewise.
13431
13432 2003-01-24  Nick Clifton  <nickc@redhat.com>
13433
13434         * config/arm/arm.c (use_return_insn): Do not use a single return
13435         instruction for interrupt handelrs which have to create a stack
13436         frame.
13437         (arm_expand_prologue): Do not pre-bias the return address of
13438         interrupt handlers which create a stack frame.
13439
13440 2003-01-24  Nick Clifton  <nickc@redhat.com>
13441
13442         * Add sh2e support:
13443
13444         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
13445
13446                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
13447                 med_cbranches.  Fix logic in short_cbranches.
13448
13449         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
13450
13451                 * config/sh/sh.md (delay for cbranch): Don't annul delay
13452                 slots on SH2e.
13453                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
13454                 cbranch with unfilled delay slot on SH2e.
13455                 (output_branch): Fill with a nop the delay slot of a
13456                 branch that required a delay slot but didn't get one.
13457
13458         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
13459
13460                 * doc/invoke.texi (SH options): Document -m2e.
13461                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
13462                 * config/sh/lib1funcs.asm: Likewise.
13463                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
13464                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
13465                 not __sh1__.
13466                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
13467                 SH2E up.
13468                 (SH3E_BIT): Renamed to...
13469                 (SH_E_BIT): ... this.  Replace all uses.
13470                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
13471                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
13472                 (TARGET_SWITCHES): Added 2e.
13473                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
13474                 (processor_type): Added PROCESSOR_SH2E.
13475                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
13476                 TARGET_SH2E, except in sqrtsf2_i.
13477                 (attribute cpu): Added sh2e.
13478                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
13479                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
13480                 * config.gcc: Add sh2e target support.
13481
13482 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
13483
13484         Rename -W to -Wextra.
13485         * c-decl.c:  Update comments.
13486         * c-typeck.c:  Likewise.
13487         * flags.h:  Likewise.
13488         * function.c:  Likewise.
13489         * stmt.c:  Likewise.
13490         * toplev.c:  Update comments.
13491         (W_options):  Add 'extra'.
13492         (display_help):  Remove '-W'.
13493         (decode_W_option):  Special warn_uninitialized treatment in the case
13494         of -Wextra.
13495         * doc/invoke.texi:  Update with new entries.
13496
13497 2003-01-23  Richard Henderson  <rth@redhat.com>
13498
13499         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
13500         in no-else-block case.  Add commentary.
13501
13502 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13503
13504         * configure.in: Revert last change.
13505
13506 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13507
13508         * configure.in: Don't include ansidecl.h in tconfig.h.
13509         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
13510         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
13511         ATTRIBUTE_UNUSED.
13512
13513         * configure: Regenerate.
13514
13515 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13516
13517         PR java/6748
13518         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
13519         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
13520         kernels.
13521
13522 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13523
13524         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
13525
13526 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
13527
13528         * genattrtab.c (write_attr_get): Mark 'insn' paramter
13529         as ATTRIBUTE_UNUSED.
13530
13531 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
13532
13533         * arm.c (thumb_base_register_rtx_p): New function.
13534         (thumb_index_register_rtx_p): New function.
13535         (thumb_legitimate_address_p): New function.
13536         (thumb_legitimate_offset_p): New function.
13537         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
13538         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
13539         definitions.
13540         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
13541         (THUMB_LEGITIMATE_OFFSET): Delte.
13542         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
13543         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
13544         (thumb_legitimate_offset_p): Likewise.
13545
13546 2003-01-23  Andreas Schwab  <schwab@suse.de>
13547
13548         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
13549
13550 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13551
13552         * fixinc/Makefile.in (FL_LIST): Revert last change.
13553
13554 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13555
13556         PR other/7341
13557         * invoke.texi (ftest-coverage): Fix broken cross-reference.
13558         Change @code to @command for gcov command.
13559
13560         * gcc.texi: Adjust title of gcov section.
13561         Adjust copyright.
13562         * gcov.texi: Likewise.
13563
13564 2003-01-22  Roger Sayle  <roger@eyesopen.com>
13565
13566         PR optimization/8423
13567         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
13568         its argument is constant, or 0 if !flag_gcse.
13569         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
13570         if it's argument is constant.
13571         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
13572         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
13573         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
13574         * builtins.c (purge_builtin_constant_p): New function to force
13575         instantiation of any remaining CONSTANT_P_RTX nodes.
13576         * rtl.h (purge_builtin_constant_p): Prototype here.
13577         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
13578         pass after GCSE and before loop.
13579         (flag_gcse): No longer static.
13580         * flags.h (flag_gcse): Prototype here.
13581
13582 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
13583
13584         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
13585         introduced by last change.
13586
13587 2003-01-22  Andreas Schwab  <schwab@suse.de>
13588
13589         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
13590
13591 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
13592
13593         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
13594         request a scratch reg on H8S when the shift count is 8.
13595
13596 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
13597
13598         * config/s390/s390-protos.h (preferred_la_operand_p):
13599         Remove second parameter.
13600         * config/s390/s390.c (preferred_la_operand_p): Likewise.
13601         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
13602         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
13603         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
13604         Add peepholes to transform ADD to LOAD ADDRESS.
13605
13606 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
13607
13608         * arm.c (arm_address_register_rtx_p): New function.
13609         (arm_legitimate_address_p): New function.
13610         (arm_legitimate_index_p): New function.
13611         (legitimize_pic_address): Use arm_legitimate_index_p.
13612         * arm-protos.h (arm_legtimate_address_p): Add prototype.
13613         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
13614         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
13615
13616 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
13617
13618         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
13619         * config/s390/2064.md (define_bypass): Correct 'Load' and
13620         'Load-address' bypass values.
13621
13622 2003-01-22  Andreas Schwab  <schwab@suse.de>
13623
13624         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
13625
13626 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13627
13628         * genautomata.c (output_internal_insn_latency_func,
13629         output_print_reservation_func): Short circuit when there is no
13630         automaton to generate code for.
13631
13632 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13633
13634         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
13635         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
13636
13637 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
13638
13639         * config/rs6000/rs6000.md: Remove warning.
13640         (builtin_setjmp_receiver): Likewise.
13641         * config/darwin.c (update_stubs): Slightly improve terrible hack
13642         with identifiers.  Add comment pointing out problems with it.
13643         (update_non_lazy_ptrs): Likewise.
13644
13645 2003-01-21  Richard Henderson  <rth@redhat.com>
13646
13647         * dwarf2out.c (lookup_filename): Fix printf format warning.
13648         * system.h (fread_unlocked, fwrite_unlocked): Undef.
13649
13650         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
13651         (fixincl.o-warn, gnu-regex.o-warn): New.
13652         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
13653         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
13654         * fixinc/fixincl.c (process): Fix printf format warning.
13655
13656 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
13657
13658         * dwarf2out (output_file_names): Don't crash if called
13659         with empty file_table.
13660
13661 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13662
13663         * genautomata.c (output_internal_insn_latency_func): Add
13664         missing break statement to generated code.
13665
13666 2003-01-21  Roger Sayle  <roger@eyesopen.com>
13667
13668         * stmt.c (same_case_target_p): New function to determine whether
13669         two case labels branch to the same target.  Split out from...
13670         (group_case_nodes): ... here.  Use same_case_target_p instead.
13671         (strip_default_case_nodes): Remove explicit case nodes
13672         that branch to the default destination.
13673         (expand_end_case_type): Call strip_default_case_nodes after
13674         group_case_nodes, to simplify the case-list before we count it.
13675         Only generate table_label RTX when actually needed.  Try to share
13676         thiscase->exit_label and thiscase->data.case_stmt.default_label
13677         when a switch has no explicit default case.  Simplify test for
13678         constant index.
13679
13680 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
13681
13682         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
13683         \t.
13684         (*negsf2_h8300hs): Likewise.
13685         (*addsi3_lshiftrt_16_zexthi): Likewise.
13686         (*iorhi3_lshiftrt_8): Likewise.
13687
13688 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
13689
13690         * dwarf2out.c (fde_table_in_use): Mark GTY.
13691         (dwarf2out_cfi_label_num): New variable, marked GTY.
13692         (dwarf2out_cfi_label): Use it instead of static label_num.
13693         * emit-rtl.c (label_num): Mark GTY.
13694
13695 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
13696
13697         * config/h8300/h8300.c (output_plussi): Support H8/300.
13698         (compute_plussi_length): Likewise.
13699         (compute_plussi_cc): Likewise.
13700         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
13701         output assembly instructions.
13702
13703 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13704
13705         * calls.c (fix_unsafe_tree): Prototype.
13706
13707         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
13708         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
13709         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
13710         c-parse.o-warn): Add -Wno-error.
13711         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
13712
13713         * configure.in (--enable-werror): Add new flag.
13714         * doc/install.texi (--enable-werror): Document.
13715         * configure: Regenerate.
13716
13717         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
13718
13719 2003-01-21  Andreas Schwab  <schwab@suse.de>
13720
13721         * genautomata.c (output_internal_insn_latency_func): Fix missing
13722         close paren in output.
13723
13724 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13725
13726         * genautomata.c: Space savings in generated code:
13727         (output_dfa_insn_code_func): Split out the table-enlargement
13728         path to an out-of-line static function, dfa_insn_code_enlarge.
13729         (output_internal_insn_latency_func): Use a lookup table for the
13730         default latencies.
13731         (output_print_reservation_func): Use a lookup table for the
13732         strings.
13733
13734 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
13735
13736         PR opt/7507
13737         * calls.c (fix_unsafe_tree): Split out from ...
13738         (expand_call): ... here.  Use it on the function address too.
13739
13740 2003-01-20  Richard Henderson  <rth@redhat.com>
13741
13742         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
13743
13744 2003-01-20  Richard Henderson  <rth@redhat.com>
13745
13746         PR opt/7154
13747         * stmt.c (expand_asm_operands): Validize memory operands.
13748
13749 2003-01-20  Richard Henderson  <rth@redhat.com>
13750
13751         PR opt/8848
13752         * ifcvt.c (noce_process_if_block): Correct arguments to
13753         modified_between_p for no-else-block case.
13754
13755 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13756
13757         * config/h8300/h8300.c (const_costs): Remove a warning.
13758         (output_plussi): Likewise.
13759         (compute_plussi_length): Likewise.
13760         (compute_plussi_cc): Likewise.
13761
13762 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13763
13764         * config/h8300/h8300.md (addsi_h8300): Remove the last
13765         alternative.
13766
13767 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13768
13769         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
13770
13771 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13772
13773         * system.h (__NO_STRING_INLINES): Define.
13774
13775 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13776
13777         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
13778         is not a scalar int mode.
13779
13780 2003-01-20  Roger Sayle  <roger@eyesopen.com>
13781
13782         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
13783         insn's notes following a substitution inside a libcall.
13784
13785 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
13786
13787         * configure.in: Check for system-provided 'uchar' type.
13788         * configure, config.in: Regenerate.
13789         * cpphash.h: Only typedef 'uchar' if the system doesn't.
13790
13791 2003-01-20  Richard Henderson  <rth@redhat.com>
13792
13793         * expr.h (MUST_PASS_IN_STACK): Move implementation...
13794         * calls.c (default_must_pass_in_stack): ... here.
13795
13796 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
13797
13798         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
13799
13800         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
13801
13802         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
13803         Wrap up definition of `insn_alts'.
13804
13805         * genattrtab.c (main): Wrap up `insn_alts'.
13806
13807 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13808
13809         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
13810         prototyping.
13811         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
13812
13813         * config.in, configure: Regenerate.
13814
13815 2003-01-20  Nick Clifton  <nickc@redhat.com>
13816
13817         * config/arm/arm.md (sibcall_epilogue): Add an
13818         UNSPEC_PROLOGUE_USE to prevent the link register from being
13819         considered dead.
13820
13821 2003-01-20  Jan Hubicka  <jh@suse.cz>
13822
13823         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
13824
13825 2003-01-20  Andreas Schwab  <schwab@suse.de>
13826
13827         * system.h: Don't declare strsignal if the decl test hasn't been
13828         run yet.
13829
13830 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13831
13832         * config/h8300/h8300.c (notice_update_cc): Don't assume that
13833         recog_data.operands[0] is always associated with cc0.
13834
13835 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
13836
13837         * collect2.c (ldgetname): Expand declaration to prototype.
13838         * read-rtl.c (atoll): Add prototype.
13839         * system.h (strsignal): Also declare if no declaration found.
13840
13841 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
13842
13843         * config.gcc (mips64*-*-linux*): Added.
13844         * config/mips/linux64.h, config/mips/t-linux64: New file.
13845         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
13846         * config/mips/mips.c (override_options): Use it.
13847         * config/mips/mips.h (TARGET_SWITCHES): Added...
13848         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
13849         * Makefile.in (SPECS): New.
13850         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
13851         * gcc.c (process_command): Move self-spec processing past spec
13852         file loading.
13853         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
13854         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
13855         CRTSTUFF_T_CFLAGS.
13856         (SPECS): Document.
13857         * doc/invoke.texi (-mabi-fake-default): Document.
13858
13859 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
13860
13861         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
13862         z_reg, z_reg_qi): Declare static and GTY().
13863         (da_reg): Remove.
13864         (create_regs_rtx): Don't create da_reg.
13865         ("gt-m68hc11.h"): Include for GTY roots.
13866         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
13867         and GTY() here.
13868         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
13869         (m68hc11_soft_tmp_reg): Likewise.
13870         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
13871
13872 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
13873
13874         * basic-block.h: Fix comment formatting.
13875         * calls.c: Likewise.
13876         * combine.c: Likewise.
13877         * convert.c: Likewise.
13878         * gcov.c: Likewise.
13879         * haifa-sched.c: Likewise.
13880         * libgcc2.c: Likewise.
13881         * loop.c: Likewise.
13882         * profile.c: Likewise.
13883         * system.h: Likewise.
13884
13885 2003-01-18  Roger Sayle  <roger@eyesopen.com>
13886
13887         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
13888
13889 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13890
13891         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
13892
13893 2003-01-17  Dale Johannesen  <dalej@apple.com>
13894
13895         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
13896           (*floatunssidf2_internal):  Ditto.
13897
13898 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
13899
13900         * alias.c: Fix comment typos.
13901         * basic-block.h: Likewise.
13902         * c-common.c: Likewise.
13903         * c-common.h: Likewise.
13904         * c-decl.c: Likewise.
13905         * c-opts.c: Likewise.
13906         * c-pragma.c: Likewise.
13907         * c-pretty-print.h: Likewise.
13908         * cfg.c: Likewise.
13909         * cfganal.c: Likewise.
13910         * cfgbuild.c: Likewise.
13911         * cfgcleanup.c: Likewise.
13912         * cfglayout.c: Likewise.
13913         * cfgrtl.c: Likewise.
13914         * convert.c: Likewise.
13915         * cpphash.h: Likewise.
13916         * cpplex.c: Likewise.
13917         * cpplib.h: Likewise.
13918         * df.h: Likewise.
13919         * diagnostic.c: Likewise.
13920         * diagnostic.h: Likewise.
13921         * dwarf2.h: Likewise.
13922
13923 2003-01-17  Stan Shebs  <shebs@apple.com>
13924
13925         * config/darwin-protos.h: Forward-declare struct cpp_reader.
13926
13927 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
13928
13929         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
13930         mistake in last checkin.
13931
13932 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
13933
13934         * et-forest.c: Fix comment typos.
13935         * et-forest.h: Likewise.
13936         * except.c: Likewise.
13937         * expr.c: Likewise.
13938         * flags.h: Likewise.
13939         * flow.c: Likewise.
13940         * gcc.c: Likewise.
13941         * gcse.c: Likewise.
13942         * genattrtab.c: Likewise.
13943         * genautomata.c: Likewise.
13944         * gengtype.c: Likewise.
13945         * genrecog.c: Likewise.
13946         * global.c: Likewise.
13947         * gthr-rtems.h: Likewise.
13948
13949 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13950
13951         * i386.c (x86_function_profiler): Fix format specifier.
13952
13953 2003-01-17  Richard Henderson  <rth@redhat.com>
13954
13955         * gengtype.c (walk_type): Allow paramN_is.
13956
13957 2003-01-17  Nick Clifton  <nickc@redhat.com>
13958
13959         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
13960
13961 2003-01-16  Richard Henderson  <rth@redhat.com>
13962
13963         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
13964
13965 2003-01-16  Richard Henderson  <rth@redhat.com>
13966
13967         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
13968         (alpha_next_sequence_number): Likewise.
13969         (alpha_this_literal_sequence_number): Likewise.
13970         (alpha_this_gpdisp_sequence_number): Likewise.
13971         (struct alpha_funcs, alpha_funcs_num): Likewise.
13972         (struct alpha_links): Fix branch merge error.
13973         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
13974
13975 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
13976
13977         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
13978         R. Ghazi.
13979
13980 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
13981
13982         * ifcvt.c: Fix comment typos.
13983         * lcm.c: Likewise.
13984         * libgcc2.c: Likewise.
13985         * local-alloc.c: Likewise.
13986         * loop.c: Likewise.
13987         * predict.c: Likewise.
13988         * ra-build.c: Likewise.
13989         * ra.c: Likewise.
13990         * ra-colorize.c: Likewise.
13991         * ra.h: Likewise.
13992         * ra-rewrite.c: Likewise.
13993         * regmove.c: Likewise.
13994         * reload.h: Likewise.
13995         * rtlanal.c: Likewise.
13996         * toplev.c: Likewise.
13997         * tree.h: Likewise.
13998         * unwind-dw2-fde-glibc.c: Likewise.
13999         * vmsdbgout.c: Likewise.
14000
14001 2003-01-16  Richard Henderson  <rth@redhat.com>
14002
14003         * dwarf2out.c (struct file_table): Remove.
14004         (FILE_TABLE_INCREMENT): Remove.
14005         (file_table): Make a varray; mark for GC.  Update all users.
14006         (file_table_last_lookup_index): Extract from struct file_table.
14007         (output_file_names): Fix unsigned compare warnings.
14008         (add_name_attribute): Remove inline marker.
14009         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
14010         (lookup_filename): Don't manage size of file_table.
14011         (init_file_table): Allocate file_table with GC.
14012         (dwarf2out_init): Don't record main_input_filename here.
14013         (dwarf2out_finish): Do it here instead.
14014
14015 2003-01-16  Bruce Korb  <bkorb@gnu.org>
14016
14017         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
14018
14019 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14020
14021         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
14022         instead of rotldi3_mextr.
14023
14024 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
14025
14026         * haifa-sched.c (move_insn): Restore moving all schedule group.
14027         (set_priorities): Restore taking SCHED_GROUP_P into account.
14028
14029         * sched-deps.c (add_dependence): Restore processing the last group
14030         insn.
14031         (remove_dependence, group_leader): Restore the functions.
14032         (set_sched_group_p): Restore adding dependencies from previous insn
14033         in the group.
14034         (compute_forward_dependences): Restore usage of group_leader.
14035
14036         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
14037         account.
14038
14039         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
14040         account.
14041         (can_schedule_ready_p): Ditto.
14042         (add_branch_dependences): Restore skipping over the group insns.
14043
14044 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
14045
14046         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
14047         68HC12 pre/post inc/dec side effects.
14048
14049 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
14050
14051         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
14052
14053 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
14054
14055         * sh.md (mshflo_w_x): Fix description of operation.
14056
14057 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
14058
14059         * config/rs6000/rs6000.h: Mention Altivec registers in
14060         commentary.  Fix typo.
14061
14062 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
14063
14064         * config/rs6000/rs6000.md (movti_string): Remove clobber.
14065         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
14066         generate PARALLEL with clobber for TARGET_POWER.
14067
14068 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14069
14070         * ra-colorize.c (colorize_one_web): Initialize variable.
14071         * regmove.c (fixup_match_1): Likewise.
14072         * reload1.c (reload_as_needed): Likewise.
14073         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
14074
14075 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14076
14077         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
14078
14079 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14080
14081         * dbxout.c (lastfile, cwd): Fix `unused' warning.
14082         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
14083         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
14084         is_main_source, file_table, decl_die_table_in_use,
14085         abbrev_die_table_in_use, line_info_table_in_use,
14086         separate_line_info_table_in_use, pubname_table_in_use,
14087         arange_table_in_use, ranges_table_in_use,
14088         current_function_has_inlines): Likewise.
14089         * flow.c (life_analysis): Likewise.
14090         * genemit.c (gen_insn): Likewise.
14091         * protoize.c (cplus_suffix): Likewise.
14092
14093         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
14094         * arm.h (ROUND_UP_WORD): Likewise.
14095
14096         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
14097         warning.
14098         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
14099         init_emit_once): Likewise.
14100         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
14101         Likewise.
14102         * function.c (assign_stack_temp_for_type): Likewise.
14103         * loop.c (loop_invariant_p): Likewise.
14104         * recog.c (push_operand): Likewise.
14105         * regclass.c (init_reg_sets_1): Likewise.
14106         * reload.c (update_auto_inc_notes): Likewise.
14107         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
14108         * stmt.c (expand_asm_operands): Likewise.
14109         * stor-layout.c (start_record_layout): Likewise.
14110
14111 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
14112
14113         * config/c4x/c4x.md (epilogue): Correct last patch.
14114
14115 2003-01-15  Richard Henderson  <rth@redhat.com>
14116
14117         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
14118         also check that GP is being used.
14119         (alpha_find_lo_sum_using_gp): New.
14120         (alpha_does_function_need_gp): Use get_attr_usegp.
14121         * config/alpha/alpha-protos.h: Update.
14122         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
14123         as needed.
14124
14125 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14126
14127         * gcse.c (one_cprop_pass): Change function arguments to take both
14128         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
14129         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
14130         (bypass_jumps): New function to perform separate jump bypassing pass.
14131         * rtl.h (bypass_jumps): Add function prototype.
14132         * timevar.def (TV_BYPASS): New timing variable.
14133         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
14134         (dump_file): New entry for the bypass RTL dump file.
14135         (rest_of_compilation): Insert new jump bypassing optimization
14136         pass after loop.
14137         * doc/passes.texi: Document new pass.
14138
14139 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14140
14141         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
14142         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
14143         * pa.h (TARGET_SOM_SDEF): Define.
14144         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
14145
14146 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
14147
14148         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
14149         allocate 4-bytes of locals on 68HC11.
14150         (expand_epilogue): Likewise.
14151         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
14152
14153 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
14154
14155         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
14156         and -mshort-double to the assembler to specify the ABI.
14157         (LINK_SPEC): Likewise.
14158         (CPP_SPEC): Pass HCS12 specific define.
14159         (MASK_M68S12): New define.
14160         (TARGET_M68S12): Likewise.
14161         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
14162         (TARGET_VERSION): Update.
14163         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
14164         (LINK_SPEC): Update.
14165         (ASM_SPEC): Update.
14166         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
14167         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
14168
14169 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
14170
14171         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
14172         the return code.
14173
14174 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
14175
14176         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
14177         flag before setting it.
14178
14179 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14180
14181         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
14182         when loop condition is known true, i.e.  "while (1) { ... }".
14183         (genrtl_for_stmt): Similarly for "for" statements.
14184
14185 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14186
14187         * real.c (real_sqrt): Return a bool result indicating whether
14188         a floating point exception or trap should be raised.
14189         * real.h (real_sqrt): Update function prototype.
14190         * builtins.c (fold_builtin): Only fold non-trapping square
14191         roots unless we're ignoring errno and trapping math.
14192
14193 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
14194
14195         * expr.h (emit_conditional_add): Add PARAMS to declaration.
14196         * gengtype-lex.l (malloc, realloc): Move defines after include of
14197         system.h.  Remove duplicate include of system.h.
14198
14199 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14200
14201         PR middle-end/9009
14202         * optabs.c (expand_unop):  When manipulating the FP sign bit
14203         using integer operations, account for targets with different
14204         integer and FP word orders.
14205         (expand_abs): Likewise.
14206
14207 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
14208
14209         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
14210         file extension in section name.
14211
14212 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
14213
14214         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
14215         constant offset.
14216
14217 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
14218
14219         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
14220         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
14221         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
14222         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
14223
14224 2003-01-15  Jan Hubicka  <jh@suse.cz>
14225
14226         PR f/9258
14227         * global.c (struct allocno): Add no_stack_reg.
14228         (global_conflicts): Set no_stack_reg.
14229         (find_reg): Use it.
14230
14231         * convert.c (convert_to_real): Fold - and abs only when profitable.
14232         * fold-const.c (fold): Fold truncates in - and abs.
14233
14234 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
14235
14236         Segher Boessenkool  <segher@koffie.nl>
14237
14238         * predict.c (real_inv_br_prob_base): New variable.
14239         (propagate_freq): Use multiply by reciprocal instead of
14240         division.  Don't divide by 1.0 at all.
14241         (estimate_bb_frequencies): Similar.
14242
14243 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
14244
14245         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
14246         * configure: Rebuilt.
14247
14248 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
14249
14250         * config/s390/s390.c (s390_safe_attr_type): New function.
14251         (s390_use_dfa_pipeline_interface): New function, return true for z900.
14252         (s390_issue_rate): New function.
14253         (s390_agen_dep_p): New function.
14254         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
14255         (s390_adjust_cost): Return 'cost' if new DFA is used.
14256         (s390_adjust_priority): Delete function.
14257         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
14258         * config/s390/s390.md (atype attribute): Attribute 'atype' default
14259         determined by 'op_type'.
14260         (type attribute): Added more type attributes.
14261         * config/s390/2064.md: New DFA description for z900 pipeline.
14262
14263 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
14264
14265         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
14266         forced to memory.  Fixes PR bootstrap/9036.
14267
14268         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
14269         to set $gp before the call.
14270
14271 2003-01-14  Richard Henderson  <rth@redhat.com>
14272
14273         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
14274         for force_const_mem.
14275
14276 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14277
14278         * genattr.c (main): Rearrange output to avoid prototype warning.
14279         * genautomata.c (transform_3): Fix ambiguous-else warning.
14280         * local-alloc.c (requires_inout): Add parentheses around
14281         assignment used as truth-value.
14282         * timevar.c: Move system includes above local includes.  Include
14283         toplev.h
14284         * Makefile.in (timevar.o): Depend on toplev.h.
14285
14286 2003-01-14  Denis Chertykov  <denisc@overta.ru>
14287
14288         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
14289         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
14290
14291         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
14292         attributes.
14293         (TARGET_ATTRIBUTE_TABLE): New macro.
14294         (valid_machine_type_attribute): Remove.
14295         (valid_machine_decl_attribute): Remove.
14296         (ip2k_handle_progmem_attribute): New function.
14297         (ip2k_handle_fndecl_attribute): New function.
14298
14299 2003-01-10  Andrew Haley  <aph@redhat.com>
14300
14301         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
14302         registers to be in correct order.  Add rip.
14303
14304 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
14305
14306         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
14307         (*iorsi3_and_lshiftrt_9_sb): Likewise.
14308
14309 2003-01-14  Jan Hubicka  <jh@suse.cz>
14310
14311         * convert.c (strip_float_extensions):  Look for narrowest type handling
14312         FP constants.
14313
14314         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
14315         float1 CMP float2.
14316         * convert.c (strip_float_extensions): Make global.
14317         * tree.h (strip_float_extensions): Declare.
14318
14319 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14320
14321         * timevar.def: define TV_NAME_LOOKUP.
14322         * timevar.c (timevar_pop): Be verbose when aborting.
14323
14324 2003-01-13  Andreas Schwab  <schwab@suse.de>
14325
14326         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
14327         $(parsedir), just move the temporary file at the end.
14328         ($(parsedir)/gengtype-yacc.c): Likewise.
14329
14330 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
14331
14332         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
14333         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
14334         splitting.
14335         * configure: Rebuilt.
14336
14337 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14338
14339         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
14340         internal_mcount): Don't use PARAMS.
14341         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
14342         ISO C style.
14343         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
14344
14345 2003-01-13  Andreas Schwab  <schwab@suse.de>
14346
14347         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
14348         directive.
14349
14350 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
14351
14352         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
14353         (*iorsi3_and_lshiftrt_n_sb): Likewise.
14354
14355 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
14356
14357         PR c++/9264
14358         * c-lex.c (c_lex): Set the token value to error_mark_node for
14359         invalid numeric constants.
14360
14361 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14362
14363         * c-pch.c (asm_file_startpos): Change to `long'.
14364         (pch_init): Use ftell, not ftello.
14365         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
14366         Use `long' instead of `off_t'.
14367         (c_common_read_pch): Likewise.
14368         * ggc-common.c (gt_pch_save): Use long/ftell instead of
14369         off_t/ftello.
14370
14371 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
14372
14373         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
14374
14375 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
14376
14377         * arm-protos.h (struct cpp_reader): Add declaration.
14378
14379 2003-01-11  Jan Hubicka  <jh@suse.cz>
14380
14381         PR target/9068
14382         * i386.c (output_fp_compare): Fix typo.
14383
14384 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
14385
14386         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
14387
14388 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
14389
14390         * Makefile.in (parsedir): New variable.
14391         (docobjdir): New variable.
14392         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
14393         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
14394         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
14395         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
14396         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
14397         Use docobjdir.
14398         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
14399         objc.maintainer-clean): Use parsedir.
14400
14401         * varasm.c (struct constant_descriptor_rtx): Remove unused
14402         `label' field.
14403
14404         * toplev.c (documented_lang_options): Document -Winvalid-pch.
14405
14406 2003-01-10  Richard Henderson  <rth@redhat.com>
14407
14408         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
14409         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
14410
14411 2003-01-10  Richard Henderson  <rth@redhat.com>
14412
14413         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
14414         not INTEGRAL_MODE_P when widening extensions.
14415
14416 2003-01-10  Richard Henderson  <rth@redhat.com>
14417
14418         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
14419
14420 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
14421
14422         * ggc-page.c (ggc_collect): Avoid overflow computing
14423         min_expand.
14424
14425         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
14426         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
14427         Remove calls.
14428         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
14429
14430 2003-01-10  Jan Hubicka  <jh@suse.cz>
14431
14432         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
14433         with weird operands.
14434
14435 2003-01-10  Dale Johannesen <dalej@apple.com>
14436
14437         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
14438         parameters.  Call check_sibcall_argument_overlap if indicated.
14439         (check_sibcall_argument_overlap):  Add mark_stored_args_map
14440         parameter.  Don't mark parameter area as clobbered if not set.
14441         (expand_call):  Adjust calls to above.
14442
14443 2003-01-10 Kelley Cook <kelleycook@comcast.net>
14444
14445         * configure.in (linker read-only and read-write section mixing):
14446         Squelch some assembler warnings.
14447         * configure: Likewise.
14448
14449 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
14450
14451         * doc/invoke.texi: Document -mtune, delete -mcpu
14452         option for S/390 and zSeries.
14453         * config/s390/s390.c (s390_tune_string) New variable.
14454         (s390_cpu_string) Delete variable.
14455         (override_options): Use s390_tune_string instead of
14456         s390_cpu_string.
14457         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
14458
14459 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
14460
14461         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
14462
14463 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
14464
14465         * jump.c (next_nonnote_insn_in_loop): New function.
14466         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
14467         next_nonnote_insn.
14468         (duplicate_loop_exit_test). Likewise.
14469
14470 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
14471
14472         Merge from pch-branch:
14473
14474         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
14475
14476         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
14477         load.
14478
14479         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
14480
14481         * cpplib.c (count_registered_pragmas): New function.
14482         (save_registered_pragmas): New function.
14483         (_cpp_save_pragma_names): New function.
14484         (restore_registered_pragmas): New function.
14485         (_cpp_restore_pragma_names): New function.
14486         * cpphash.h (_cpp_save_pragma_names): Prototype.
14487         (_cpp_restore_pragma_names): Likewise.
14488         * cpppch.c (struct save_macro_item): Split from save_macro_data.
14489         (struct save_macro_data): New field 'saved_pragmas'.
14490         (save_macros): Update for changes to struct save_macro_data.
14491         (cpp_prepare_state): Call _cpp_save_pragma_names, update
14492         for changes to struct save_macro_data.
14493         (cpp_read_state): Call _cpp_restore_pragma_names, update
14494         for changes to struct save_macro_data.
14495
14496         * cpppch.c (cpp_read_state): Restore the hashtable references
14497         in the cpp_reader.
14498
14499         * tree.h (built_in_decls): Mark for PCH.
14500
14501         * dbxout.c (lastfile): Don't mark for PCH.
14502
14503         * ggc.h: Document PCH calls into memory managers.
14504
14505         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
14506
14507         * doc/invoke.texi (Precompiled Headers): Document the
14508         directory form of PCH.
14509         * cppfiles.c (validate_pch): New function.
14510         (open_file_pch): Search suitably-named directories for PCH files.
14511
14512         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
14513
14514         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
14515         reorder options.
14516         (Type Information): Mention that the information is also
14517         used to implement PCH.
14518         * doc/passes.texi (Passes): Improve documentation of
14519         language-specific files.
14520
14521         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
14522
14523         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
14524         (struct walk_type_data): Add reorder_fn field.
14525         (walk_type): Process 'reorder' option.
14526         (write_types_process_field): Reorder parameters to gt_pch_note_object,
14527         call reorder_note_routine.
14528         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
14529         (ggc_wtd): Update for change to struct write_types_data.
14530         (pch_wtd): Likewise.
14531         * ggc.h (gt_pch_note_object): Reorder parameters.
14532         (gt_handle_reorder): New definition.
14533         (gt_pch_note_reorder): New prototype.
14534         * ggc-common.c (struct ptr_data): Add reorder_fn.
14535         (gt_pch_note_object): Reorder parameters.
14536         (gt_pch_note_reorder): New.
14537         (gt_pch_save): Call reorder_fn.
14538         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
14539
14540         * dbxout.c (cwd): Don't mark for PCH.
14541
14542         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
14543
14544         * gengtype.c (finish_root_table): Fix some warnings.
14545         (write_root): Handle TYPE_STRING.
14546         * ggc.h (gt_ggc_m_S): Add prototype.
14547         * stringpool.c (gt_ggc_m_S): New function.
14548
14549         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
14550
14551         * dwarf2out.c (dw2_string_counter): New.
14552         (AT_string_form): Use it.
14553         (same_dw_val_p): Update for removal of hashtable.h hash tables.
14554
14555         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
14556
14557         * dbxout.c: Include gt-dbxout.h.
14558         (lastfile): Mark for PCH/GGC.
14559         (cwd): Likewise.
14560         (struct typeinfo): Likewise.
14561         (typevec): Likewise.
14562         (typevec_len): Likewise.
14563         (next_type_number): Likewise.
14564         (struct dbx_file): Likewise.
14565         (current_file): Likewise.
14566         (next_file_number): Likewise.
14567         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
14568         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
14569         (dbxout_end_source_file): Don't free struct dbx_file.
14570         (dbxout_type): Use GGC to allocate typevec.
14571         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
14572         (GTFILES): Add dbxout.c.
14573         (gt-dbxout.h): New rule.
14574
14575         * Makefile.in (c-pch.o): Add debug.h as dependency.
14576         * c-pch.c: Include debug.h.
14577         (pch_init): Call start_source_file to keep nesting right.
14578         (c_common_read_pch): Add orig_name parameter.  Call
14579         start_source_file debug hook.  Call end_source_file debug hook.
14580         * c-common.h (c_common_read_pch): Update prototype.
14581         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
14582         callback.
14583         * cppfiles.c (struct include_file): Add new field `header_name'.
14584         (find_or_create_entry): Default it to `name'.
14585         (open_file_pch): Set it to the original header file searched for.
14586         (stack_include_file): Don't stack an empty buffer, just handle
14587         PCH files immediately.  Pass header_name field to read_pch callback.
14588
14589         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
14590
14591         * function.c (funcdef_no): Mark to be saved in a PCH.
14592
14593         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
14594
14595         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
14596
14597         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
14598
14599         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
14600
14601         * optabs.h (code_to_optab): Add GTY marker.
14602
14603         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
14604
14605         * Makefile.in (GTFILES): Add cpplib.h.
14606         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
14607         * c-decl.c (build_compound_literal): Don't use var_labelno.
14608         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
14609         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
14610         * varasm.c (const_labelno): Use gengtype to mark.
14611         (var_labelno): Likewise.
14612         (in_section): Likewise.
14613         (in_named_name): Likewise.
14614         (struct in_named_entry): Likewise.
14615         (in_named_htab): Likewise.
14616         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
14617         (init_varasm_once): Use GGC to allocate in_named_htab.
14618         * config/darwin.c (current_pic_label_num): Mark for PCH.
14619
14620         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
14621
14622         * ggc-simple.c (init_ggc_pch): New stub procedure.
14623         (ggc_pch_count_object): Likewise.
14624         (ggc_pch_total_size): Likewise.
14625         (ggc_pch_this_base): Likewise.
14626         (ggc_pch_alloc_object): Likewise.
14627         (ggc_pch_prepare_write): Likewise.
14628         (ggc_pch_write_object): Likewise
14629         (ggc_pch_finish): Likewise.
14630         (ggc_pch_read): Likewise.
14631
14632         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
14633
14634         * c-pch.c (c_common_write_pch): Write the macro definitions after
14635         the GCed data.
14636         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
14637         definitions after the GCed data.
14638         * cpplib.c (save_macros): New.
14639         (reset_ht): New.
14640         (cpp_write_pch_deps): Split out of cpp_write_pch.
14641         (cpp_write_pch_state): Split out of cpp_write_pch.
14642         (cpp_write_pch): Delete.
14643         (struct save_macro_data): Delete.
14644         (cpp_prepare_state): New.
14645         (cpp_read_state): Erase and restore initial macro definitions.
14646         * cpplib.h (struct save_macro_data): Forward-declare.
14647         (cpp_write_pch_deps): Prototype.
14648         (cpp_write_pch_state): Prototype.
14649         (cpp_write_pch): Delete prototype.
14650         (cpp_prepare_state): Prototype.
14651         (cpp_read_state): Add fourth argument.
14652
14653         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
14654
14655         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
14656         (write_array): Remove warning.
14657
14658         * gengtype.c (contains_scalar_p): New.
14659         (finish_root_table): Add the table to all languages, even if it's
14660         empty.
14661         (write_roots): Output gt_pch_scalar_rtab.
14662         * ggc-common.c (gt_pch_save): Write out scalars.
14663         (gt_pch_restore): Read scalars back.
14664
14665         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
14666         (struct page_entry): Delete pch_page field.
14667         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
14668         (clear_marks): Likewise.
14669         (sweep_pages): Likewise.
14670         (poison_pages): Likewise.
14671         (ggc_print_statistics): Likewise.
14672         (ggc_pch_read): Don't free objects read from a PCH.
14673         Properly set up in_use_p and page_tails.
14674
14675         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
14676
14677         * gengtype.c (struct write_types_data): New.
14678         (struct walk_type_data): Make `cookie' const; add extra
14679         prev_val item; add `orig_s' field.
14680         (walk_type): Update prev_val[3].
14681         (write_types_process_field): New.
14682         (write_func_for_structure): Take write_types_data structure.
14683         (write_types): New.
14684         (ggc_wtd): New.
14685         (pch_wtd): New.
14686         (write_types_local_process_field): New.
14687         (gc_mark_process_field): Delete.
14688         (write_local_func_for_structure): New.
14689         (gc_mark_func_name): Delete.
14690         (write_gc_types): Delete.
14691         (write_local): New.
14692         (finish_root_table): Don't include 'ggc_' in PFX.
14693         (write_root): Rename from write_root.  Fill pchw field of structures.
14694         (write_array): New.
14695         (write_roots): Rename from write_gc_roots.  Split out to write_array.
14696         Update to changes to other routines.  Write gt_pch_cache_rtab table.
14697         (main): Write PCH walking routines.
14698         * ggc-common.c: Include toplev.h, sys/mman.h.
14699         (ggc_mark_roots): For cache hashtables, also mark the hash table
14700         and the array of entries.
14701         (saving_htab): New.
14702         (struct ptr_data): New.
14703         (POINTER_HASH): New.
14704         (gt_pch_note_object): New.
14705         (saving_htab_hash): New.
14706         (saving_htab_eq): New.
14707         (struct traversal_state): New.
14708         (call_count): New.
14709         (call_alloc): New.
14710         (compare_ptr_data): New.
14711         (relocate_ptrs): New.
14712         (write_pch_globals): New.
14713         (struct mmap_info): New.
14714         (gt_pch_save): New.
14715         (gt_pch_restore): New.
14716         * ggc-page.c (ROUND_UP_VALUE): New.
14717         (ROUND_UP): New.
14718         (struct page_entry): Add field `pch_page'.
14719         (init_ggc): Use ROUND_UP.
14720         (struct ggc_pch_data): Declare.
14721         (init_ggc_pch): New.
14722         (ggc_pch_count_object): New.
14723         (ggc_pch_total_size): New.
14724         (ggc_pch_this_base): New.
14725         (ggc_pch_alloc_object): New.
14726         (ggc_pch_prepare_write): New.
14727         (ggc_pch_write_object): New.
14728         (ggc_pch_finish): New.
14729         (ggc_pch_read): New.
14730         * ggc.h (gt_pointer_operator): New.
14731         (gt_note_pointers): New.
14732         (gt_pch_note_object): New prototype.
14733         (gt_pointer_walker): New.
14734         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
14735         (LAST_GGC_ROOT_TAB): Update.
14736         (gt_pch_cache_rtab): Declare.
14737         (gt_pch_scalar_rtab): Declare.
14738         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
14739         (LAST_GGC_CACHE_TAB): Update.
14740         (gt_pch_save_stringpool): Declare.
14741         (gt_pch_restore_stringpool): Declare.
14742         (gt_pch_p_S): Declare.
14743         (gt_pch_n_S): Declare.
14744         (struct ggc_pch_data): Forward-declare.
14745         (init_ggc_pch): Declare.
14746         (ggc_pch_count_object): Declare.
14747         (ggc_pch_total_size): Declare.
14748         (ggc_pch_this_base): Declare.
14749         (ggc_pch_alloc_object): Declare.
14750         (ggc_pch_prepare_write): Declare.
14751         (ggc_pch_write_object): Declare.
14752         (ggc_pch_finish): Declare.
14753         (ggc_pch_read): Declare.
14754         (gt_pch_save): Declare.
14755         (gt_pch_restore): Declare.
14756         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
14757         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
14758         const_double_htab, mem_attrs_htab using GGC.
14759         * c-pch.c: Include ggc.h.
14760         (pch_init): Allow reading PCH file back.
14761         (c_common_write_pch): Call gt_pch_save.
14762         (c_common_read_pch): Call gt_pch_restore.
14763         * c-parse.in (init_reswords): Delete now-untrue comment.
14764         Allocate ridpointers using GGC.
14765         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
14766         calling expand_deferred_fns.
14767         * c-common.h (ridpointers): Mark for GTY machinery.
14768         * Makefile.in (stringpool.o): Update dependencies.
14769         (c-pch.o): Update dependencies.
14770         (ggc-common.o): Update dependencies.
14771         * stringpool.c: Include gt-stringpool.h.
14772         (gt_pch_p_S): New.
14773         (gt_pch_n_S): New.
14774         (struct string_pool_data): New.
14775         (spd): New.
14776         (gt_pch_save_stringpool): New.
14777         (gt_pch_restore_stringpool): New.
14778         * tree.c (init_ttree): Make type_hash_table allocated using GC.
14779
14780         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
14781
14782         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
14783         (output_mangled_typename): Don't pass size_t to printf.
14784
14785         * tree.h (union tree_type_symtab): Add tag to `address' field.
14786         (union tree_decl_u2): Add tag to 'i' field.
14787         * varasm.c (union rtx_const_un): Add tags to all fields.
14788         * gengtype.c (struct walk_type_data): New.
14789         (output_escaped_param): Take struct walk_type_data parameter.
14790         (write_gc_structure_fields): Delete.
14791         (walk_type): New.
14792         (write_gc_marker_routine_for_structure): Delete.
14793         (write_func_for_structure): New.
14794         (gc_mark_process_field): New.
14795         (gc_mark_func_name): New.
14796         (gc_counter): Delete.
14797         (write_gc_types): Use write_func_for_structure.
14798         (write_gc_roots): Use walk_type.
14799
14800         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
14801
14802         * ggc-common.c (ggc_mark_roots): Delete 'x'.
14803         (ggc_splay_dont_free): Fix warning about unused 'x'.
14804         (ggc_print_common_statistics): Remove warnings.
14805
14806         2002-10-01  Mike Stump  <mrs@apple.com>
14807
14808         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
14809         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
14810
14811         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
14812             Catherine Moore  <clm@redhat.com>
14813
14814         * Makefile (c-pch.o): Update dependencies.
14815         (LIBCPP_OBJS): Add cpppch.o.
14816         (cpppch.o): New.
14817         * c-common.c (c_common_init): Don't call pch_init here.
14818         * c-common.h (c_common_read_pch): Update prototype.
14819         * c-lex.c (c_common_parse_file): Call pch_init here.
14820         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
14821         (c_common_decode_option): Handle them.
14822         * c-pch.c: Include c-pragma.h.
14823         (save_asm_offset): Delete.
14824         (pch_init): Move contents of save_asm_offset into here, call
14825         cpp_save_state.
14826         (c_common_write_pch): Call cpp_write_pch.
14827         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
14828         cpp_valid_state.
14829         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
14830         * cppfiles.c (stack_include_file): Update for change to
14831         parameters of cb.read_pch.
14832         * cpphash.h (struct cpp_reader): Add `savedstate' field.
14833         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
14834         `restore_pch_deps' fields.
14835         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
14836         (cpp_save_state): Prototype.
14837         (cpp_write_pch): Prototype.
14838         (cpp_valid_state): Prototype.
14839         (cpp_read_state): Prototype.
14840         * cpppch.c: New file.
14841         * flags.h (version_flag): Remove prototype.
14842         * mkdeps.c (deps_save): New.
14843         (deps_restore): New.
14844         * mkdeps.h (deps_save): Prototype.
14845         (deps_restore): Prototype.
14846         * toplev.c (late_init_hook): Delete.
14847         (version_flag): Make static again.
14848         (compile_file): Don't call late_init_hook.
14849         * toplev.h (late_init_hook): Delete.
14850         * doc/cppopts.texi: Document -fpch-deps.
14851         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
14852
14853         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
14854
14855         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
14856         callers.
14857         (c_common_valid_pch): Rename from c_valid_pch, change callers.
14858         (c_common_read_pch): Rename from c_read_pch, change callers.
14859
14860         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
14861         a space between it and its argument.
14862
14863         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
14864
14865         * c-pch.c: New file.
14866         * toplev.h (late_init_hook): Declare.
14867         * toplev.c (late_init_hook): Define.
14868         (version_flag): Make globally visible.
14869         (compile_file): Call late_init_hook.
14870         (init_asm_output): Make output file seekable.
14871         * gcc.c (default_compilers): Update c-header rule.
14872         * flags.h (version_flag): Declare.
14873         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
14874         fields.
14875         * cppfiles.c (struct include_file): Add 'pch' field.
14876         (INCLUDE_PCH_P): New.
14877         (open_file_pch): New.
14878         (stack_include_file): Handle PCH files specially.
14879         (find_include_file): Call open_file_pch instead of open_file.
14880         (_cpp_read_file): Explain why open_file is used instead of
14881         open_file_pch.
14882         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
14883         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
14884         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
14885         in cpplib callbacks.
14886         * c-common.c (pch_file): Correct comment.
14887         (allow_pch): Define.
14888         (c_common_init): Call pch_init.
14889         * c-common.h (allow_pch): Declare.
14890         (pch_init): Declare.
14891         (c_valid_pch): Declare.
14892         (c_read_pch): Declare.
14893         (c_write_pch): Declare.
14894         * Makefile.in (c-pch.o): New.
14895         (C_AND_OBJC_OBJS): Add c-pch.o.
14896         * doc/invoke.texi (Precompiled Headers): Add index entries,
14897         complete truncated paragraph.
14898
14899         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
14900
14901         * c-common.c: (pch_file): Define.
14902         * c-common.h (pch_file): Declare.
14903         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
14904         (missing_arg): Require --output-pch= to have an argument.
14905         (c_common_decode_option): Handle --output-pch=.
14906         * gcc.c: Document new %V.
14907         (default_compilers): Handle compiling C header files.
14908         (do_spec_1): Implement %V.
14909         (main): Handle "gcc foo.h" without trying to run linker.
14910         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
14911         (Overall Options): Document what the driver does with header files,
14912         document new -x option possibilities.
14913         (Invoking G++): More documentation for PCH.
14914         (Precompiled Headers): New.
14915
14916         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
14917
14918         * ggc.h: Don't include varray.h.  Rearrange functions to be more
14919         organized.
14920         (ggc_add_root): Delete.
14921         (ggc_mark_rtx): Delete.
14922         (ggc_mark_tree): Delete.
14923         (struct ggc_statistics): Remove contents.
14924         * ggc-common.c: Remove unneeded includes.
14925         (struct ggc_root): Delete.
14926         (roots): Delete.
14927         (ggc_add_root): Delete.
14928         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
14929         (ggc_print_common_statistics): Remove most of the contents.
14930         * Makefile.in (GGC_H): No longer uses varray.h.
14931         (ggc-common.o): Update dependencies.
14932         (c-parse.o): Add varray.h to dependencies.
14933         (c-common.o): Add varray.h.
14934         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
14935         (mark_ident_hash): Rename to ggc_mark_stringpool.
14936         (init_stringpool): Don't use ggc_add_root.
14937         * c-parse.in: Include varray.h.
14938         * c-common.c: Include varray.h.
14939         * objc/Make-lang.in (objc-act.o): Add varray.h.
14940         * objc/objc-act.c: Include varray.h.
14941
14942         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
14943
14944         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
14945         (dw_cfi_oprnd1_desc): Likewise.
14946
14947         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
14948
14949         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
14950         move out of ifdef.
14951         (alpha_links): Use gengtype to mark; move out of ifdef.
14952         (mark_alpha_links_node): Delete.
14953         (mark_alpha_links): Delete.
14954         (alpha_need_linkage): Use GGC to allocate splay tree, struct
14955         alpha_links, strings.  Don't use ggc_add_root.
14956         * ggc-common.c (ggc_splay_alloc): New.
14957         (ggc_splay_dont_free): New.
14958         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
14959         (ggc_mark_tree): Likewise.
14960         (splay_tree_new_ggc): New.
14961         (ggc_splay_alloc): Declare.
14962         (ggc_splay_dont_free): Declare.
14963         * dwarf2asm.c: Include gt-dwarf2asm.h.
14964         (mark_indirect_pool_entry): Delete.
14965         (mark_indirect_pool): Delete.
14966         (indirect_pool): Use gengtype to mark.
14967         (dw2_force_const_mem): Don't use ggc_add_root.
14968         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
14969         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
14970         (gt-dwarf2asm.h): Depend on s-gtype.
14971
14972         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
14973
14974         * tree.h (union tree_type_symtab): Mark `die' field.
14975         * Makefile.in (dwarf2out.o): Update dependencies.
14976         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
14977         hash tables.
14978         (dw_cfi_oprnd1_desc): New function.
14979         (dw_cfi_oprnd2_desc): New function.
14980         (indirect_string_alloc): Delete.
14981         (debug_str_do_hash): New function.
14982         (debug_str_eq): New function.
14983         (mark_limbo_die_list): Delete.
14984         (dwarf2out_init): Don't call ggc_add_root.
14985
14986 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
14987
14988         The following changes are merged from itanium-sched-branch:
14989
14990         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
14991
14992         * doc/md.texi: Clarify assignment of units to automata description.
14993
14994         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
14995
14996         * genautomata.c (unit_decl): Remove members
14997         `the_same_automaton_unit' and
14998         `the_same_automaton_message_reported_p'.
14999         (process_unit_to_form_the_same_automaton_unit_lists,
15000         form_the_same_automaton_unit_lists_from_regexp,
15001         form_the_same_automaton_unit_lists, the_same_automaton_lists):
15002         Remove them.
15003         (annotation_message_reported_p): New global variable.
15004         (check_unit_distribution_in_reserv,
15005         check_regexp_units_distribution): New functions.
15006         (check_unit_distributions_to_automata): Rewrite it.
15007
15008         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
15009
15010         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
15011         Use continue instead of break if cycle is too big.
15012
15013         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
15014
15015         * genautomata.c (check_unit_distributions_to_automata): Output at
15016         most one message for a unit.
15017         (process_unit_to_form_the_same_automaton_unit_lists): Check
15018         automaton of units instead of units themself.
15019
15020         * doc/md.texi: Describe the constraint about assigning unit to
15021         automata.
15022
15023         2002-12-20  Jan Hubicka  <jH@suse.cz>
15024                     Vladimir Makarov  <vmakarov@redhat.com>
15025
15026         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
15027         and `in_set_p'.
15028         (gen_cpu_unit): Initialize the new members.
15029         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
15030         up `min_occ_cycle_num'.
15031         (evaluate_max_reserv_cycles): Change the function call.
15032         (CLEAR_BIT): New macro.
15033         (states_union, state_shift): Use the mask.
15034         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
15035         (form_reservs_matter): New function.
15036         (make_automaton): Call the function and use the mask.
15037         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
15038         account.
15039
15040         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
15041
15042         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
15043
15044         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
15045
15046         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
15047         for Itanium.
15048
15049         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
15050
15051         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
15052         default cpu.
15053
15054         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
15055                 2002-10-31  Dale Johannesen <dalej@apple.com>
15056
15057         * haifa-sched.c (find_set_reg_weight): New function.
15058         (find_insn_reg_weight): Use the new function.
15059         (schedule_block): Do sorting ready queue always
15060         after insn issue.
15061
15062         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
15063
15064         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
15065
15066         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
15067
15068         * haifa-sched.c (choice_entry): New structure.
15069         (choice_stack, cycle_issued_insns): New variables.
15070         (max_issue): Rewrite it.
15071         (choose_ready): Set up ready_try for unknown insns too.
15072         (schedule_block): Allocate and free choice_stack.  Set up
15073         and modify cycle_issued_insns.
15074
15075         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
15076         with and without filling the bundle.
15077         (bundling): Combine calls of issue_nops_and_insn.
15078
15079         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
15080
15081         * config/ia64/itanium1.md: New file.
15082
15083         * config/ia64/itanium2.md: New file.
15084
15085         * config/ia64/ia64.md: Move DFA descriptions into the new files.
15086         Remove the old pipeline description.
15087
15088         * config/ia64/ia64.c (ia64_override_options): Add aliases of
15089         itanium processor names.
15090
15091         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
15092
15093         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
15094         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
15095
15096         * config/ia64/ia64.md: Add descriptions for Itanium2.
15097
15098         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
15099
15100         * config/ia64/ia64.h (processor_type): New enumeration.
15101         (ia64_tune, ia64_tune_string): New external declarations.
15102         (TARGET_OPTIONS): Add option `tune='.
15103
15104         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
15105         variables.
15106         (ia64_override_options): Set up `ia64_tune'.
15107         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
15108         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
15109         (bundling): Add nops for MM-insns only for Itanium.
15110         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
15111         Itanium.
15112
15113         * config/ia64/ia64.md (cpu): New attribute.
15114         (DFA description): Enable it only for Itanium.
15115
15116         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
15117                     Richard Henderson  <rth@redhat.com>
15118
15119         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
15120         MASK_EARLY_STOP_BITS.
15121         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
15122         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
15123         `early-stop-bits'.
15124
15125         * config/ia64/ia64.c (ia64_dfa_new_cycle,
15126         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
15127         instead of TARGET_TUNE_STOP_BITS.
15128
15129         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
15130         `-mearly-stop-bits'.
15131
15132         * config/ia64/ia64.c (automata_option "v"): Comment it.
15133
15134         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
15135
15136         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
15137         New macros.
15138         (TARGET_SWITCHES): Add entries for the new option.
15139
15140         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
15141         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
15142         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
15143         global variables.
15144         (ia64_sched_reorder2): Set up `clocks'.
15145         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
15146         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
15147         queue when TARGET_TUNE_STOP_BITS.
15148         (bundling): Insert additional nops for MM-insns.
15149         (final_emit_insn_group_barriers): Add insertion of stop bits
15150         according `stops_p'.
15151         (ia64_reorg): Initiate the new varibales.
15152
15153         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
15154
15155         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
15156
15157         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
15158         insns at the end of block insn scheduling.
15159
15160         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
15161
15162         * sched-deps.c (remove_dependence, group_leader): Remove it.
15163         (add_dependence): Add dependence to group leader to.
15164         (set_sched_group_p): Add dependence to the first insn of the
15165         schedule group too.
15166         (sched_analyze_insn): Make dependence to jump as anti-dependence.
15167         Change true dependence by anti-dependence when
15168         `reg_pending_barrier'.
15169
15170         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
15171         add_branch_dependences): Ignore schedule groups.
15172
15173         * sched-ebb.c (init_ready_list): Ditto.
15174
15175         * (move_insn, set_priorities): Ditto.
15176
15177         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
15178         flag is clear after reload.
15179         (adjust_cost): Change cost only for output dependencies.
15180
15181         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
15182
15183         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
15184
15185         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
15186
15187         * target.h (gcc_target): Add member
15188         `dependencies_evaluation_hook'.
15189
15190         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
15191         macro.
15192         (TARGET_SCHED): Add initiatialization of the new member.
15193
15194         * sched-ebb.c: Include `target.h'.
15195         (schedule_ebb): Call `dependencies_evaluation_hook'.
15196
15197         * sched-rgn.c (schedule_region): Call
15198         `dependencies_evaluation_hook'.
15199
15200         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
15201         New macro.
15202         (ia64_dependencies_evaluation_hook): New function.
15203
15204         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
15205         Describe the new hook.
15206
15207         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
15208
15209         * target.h (gcc_target): Add members
15210         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
15211
15212         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
15213         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
15214         macros.
15215         (TARGET_SCHED): Add initiatialization of the new members.
15216
15217         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
15218         insn scheduling too.
15219         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
15220         initialize `ready_try'.
15221         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
15222         `dfa_new_cycle' says not to do it.
15223
15224         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
15225         bundling.
15226
15227         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
15228
15229         * config/ia64/ia64.c: Include `hashtab.h'.
15230         (ia64_first_cycle_multipass_dfa_lookahead_guard,
15231         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
15232         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
15233         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
15234         bundle_state_eq_p, insert_bundle_state,
15235         initiate_bundle_state_table, finish_bundle_state_table,
15236         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
15237         get_template, get_next_important_insn, bundling): New functions.
15238         (ia64_internal_sched_reorder): Remove it.
15239         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
15240         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
15241         (ia64_safe_itanium_requires_unit0): Remove it.
15242         (group_barrier_needed_p): Place group barrier right before a real
15243         insn.
15244         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
15245         Remove them.
15246         (bundle_name): New variable.
15247         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
15248         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
15249         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
15250         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
15251         temp_dfa_state, prev_cycle_state): New global variables.
15252         (insn_matches_slot, maybe_rotate, finish_last_head,
15253         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
15254         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
15255         find_best_packet, itanium_reorder, dump_current_packet,
15256         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
15257         (sched_data, sched_ready, sched_types): Remove them.
15258         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
15259         `init_insn_group_barriers'.
15260         (ia64_sched_reorder, ia64_sched_reorder2): Call
15261         ia64_dfa_sched_reorder.
15262         (ia64_variable_issue): Rewrite it.
15263         (bundle_state): New structure.
15264         (index_to_bundle_states, bundle_states_num,
15265         allocated_bundle_states_chain, free_bundle_state_chain): New
15266         global variables.
15267         (ia64_sched_finish): Add stop bits and call `bundling' after the
15268         2nd insn scheduling.
15269         (ia64_use_dfa_pipeline_interface): Return zero always.
15270         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
15271         insn scheduling.
15272         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
15273         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
15274         (ia64_reorg): Add bundling insns.
15275
15276         * doc/tm.texi
15277         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
15278         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
15279
15280         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
15281
15282         * config/ia64/ia64.md: Add Itanium1 DFA description.
15283         (itanium_class): Add `nop' and `pre_cycle'.  Add
15284         define_function_unit for `nop'.
15285         (nop): Change attribute `itanium_class'.
15286         (pre_cycle): New define_insn.
15287
15288         * config/ia64/ia64-protos.h (bundling_p): New external variable.
15289         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
15290         ia64_produce_address_p): New function prototypes.
15291
15292         * config/ia64/ia64.c (bundling_p): New global variable.
15293         (ia64_use_dfa_pipeline_interface,
15294         ia64_first_cycle_multipass_dfa_lookahead,
15295         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
15296         functions.
15297         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15298         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15299         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
15300         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
15301         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
15302         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
15303         (dfa_pre_cycle_insn): New variable.
15304
15305         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15306
15307         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
15308         constructions.
15309
15310         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
15311         New function prototypes.
15312
15313         * genattrtab.c (main): Process the new constructions.
15314
15315         * genautomata.c (gen_presence_absence_set,
15316         process_presence_absence_names, process_presence_absence_patterns,
15317         add_presence_absence, check_absence_pattern_sets): Add parameter
15318         `final_p'.
15319         (unit_decl): Add new members `final_presence_list' and
15320         `final_absence_list'.
15321         (unit_pattern_rel_decl): Add new member `final_p'.
15322         (gen_final_presence_set, gen_final_absence_set): New functions.
15323         (process_decls): Use member `final_p'.
15324         (temp_reserv): New global variable.
15325         (reserv_sets_are_intersected): Add processing `final_presence_set'
15326         and `final_absence_set'.
15327         (initiate_states): Allocate `temp_reserv'.
15328         (unit_final_presence_set_table, unit_final_absence_set_table): New
15329         gloabal variables.
15330         (initiate_presence_absence_pattern_sets): Initiate them.
15331         (NDFA_to_DFA): Fix typo.
15332         (output_description): Output `final_presence_set' and
15333         `final_absence_set'.
15334
15335         * doc/md.texi (final_presence_set, final_absence_set): Describe
15336         them.
15337
15338         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15339
15340         * genautomata.c (transform_3): Process a missing case (nothing on
15341         unit place).
15342
15343         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15344
15345         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
15346         comments about queried units and the minimization.
15347
15348         * doc/md.texi: Ditto.
15349
15350         * genautomata.c (create_composed_state): Return nonzero if the new
15351         state has been created.
15352         (first_cycle_unit_presence): New function.
15353         (state_is_differed): Add new parameter.  Use the new function.
15354         Take queried units into account.
15355         (partition_equiv_class): Pass additional parameter to
15356         `state_is_differed'.
15357         (merge_states): Process composed states too.
15358         (build_automaton, create_automata, output_min_issue_delay_table,
15359         output_tables, output_statistics): Output more information.
15360         (output_reserved_units_table): Use function
15361         `first_cycle_unit_presence'.
15362         (output_tables): Output table of queried units even if the
15363         minimization is switched on.
15364         (write_automata): Output code for querying units even if the
15365         minimization is switched on.
15366
15367         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
15368
15369         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
15370         syntax of the constructions.
15371
15372         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
15373         extended syntax of the constructions.
15374
15375         * genautomata.c (unit_rel_decl): Rename it to
15376         `unit_pattern_rel_decl'.
15377         (pattern_set_el, pattern_reserv): New structures.
15378         (pattern_set_el_t, pattern_reserv_t): New types.
15379         (gen_presence_absence_set): New function.
15380         (process_presence_absence): Remove it.
15381         (process_presence_absence_names,
15382         process_presence_absence_patterns): New functions.
15383         (get_presence_absence_set): Remove it.
15384         (initiate_presence_absence_sets): Rename it on
15385         `initiate_presence_absence_pattern_sets'.  Use new function
15386         `form_reserv_sets_list'.
15387         (form_reserv_sets_list, check_presence_pattern_sets,
15388         check_absence_pattern_sets, output_pattern_set_el_list): New
15389         functions.
15390         (unit_decl): Change types of members `presence_list' and
15391         `absence_list'.
15392         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
15393         (decl): Change types of members `excl', `presence', and `absence'.
15394         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
15395         at the end of the vector.
15396         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
15397         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
15398         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
15399         (gen_presence_set, gen_absence_set): Use new function
15400         `gen_presence_absence_set'.
15401         (add_presence_absence): Process `pattern_list' instead of
15402         `source_list'.
15403         (process_decls): USe new functions
15404         `process_presence_absence_names' and
15405         `process_presence_absence_patterns'.
15406         (reserv_sets_are_intersected): Use new function
15407         `check_presence_pattern_sets'.
15408         (presence_set, absence_set): Remove them.
15409         (unit_presence_set_table, unit_absence_set_table): New global
15410         variables.
15411         (output_description): Use new function
15412         `output_pattern_set_el_list'.
15413         (generate): Use `initiate_presence_absence_pattern_sets'.
15414
15415         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
15416
15417         * genattr.c (main): Add output of prototype of new interface
15418         function `dfa_clean_insn_cache'.
15419
15420         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
15421         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
15422         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
15423         the generated code.
15424         (write_automata): Call the new function.
15425
15426 2003-01-09  Jan Hubicka  <jh@suse.cz>
15427
15428         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
15429         correctly.
15430
15431 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
15432
15433         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
15434
15435 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
15436
15437         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
15438         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
15439         (CONSTRAINT_LEN): Provide default definition.
15440         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
15441         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
15442         (EXTRA_CONSTRAINT_STR): Likewise.
15443         (REG_CLASS_FROM_CONSTRAINT): Define.
15444         * genoutput.c (check_constraint_len, constraint_len): New functions.
15445         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
15446         constraint / modifier.
15447         (gen_insn): Call check_constraint_len.
15448         * local-alloc.c (block_alloc): Update to use new macros / pass
15449         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
15450         * ra-build.c (handle_asm_insn): Likewise.
15451         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15452         (constrain_operands, peep2_find_free_register): Likewise.
15453         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
15454         * regmove.c (find_matches): Likewise.
15455         * reload.c (push_secondary_reload, find_reloads): Likewise.
15456         (alternative_allows_memconst): Likewise.
15457         * reload1.c (maybe_fix_stack_asms): Likewise.
15458         (reload_cse_simplify_operands): Likewise.
15459         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15460         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
15461         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
15462         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
15463         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
15464         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
15465
15466         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
15467
15468 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15469
15470         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
15471         length.
15472         (*extzv_1_r_h8300hs): Likewise.
15473         (*extzv_1_r_inv_h8300): Likewise.
15474         (*extzv_1_r_inv_h8300hs): Likewise.
15475
15476 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15477
15478         * config/h8300/h8300.h (PREDICATE_CODES): New.
15479
15480 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15481
15482         * config/h8300/h8300.md (*addsi3_upper): New.
15483         (*iorsi3_shift): Likewise.
15484         (two splitters): Likewise.
15485         (*addsi3_shift): Likewise.
15486         (two splitters): Likewise.
15487
15488 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
15489
15490         * Makefile.in (optabs.o): Add dependency on basic-block.h.
15491         * basic-block.h (control_flow_insn_p): Fuction was exported.
15492         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
15493         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
15494         notes only when the region is contained in a single basic block.
15495
15496 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15497
15498         PR inline-asm/8832
15499         * tree.h (expand_asm): New prototype.
15500         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
15501         to do so.
15502         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
15503         down to expand_asm.
15504         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
15505         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
15506         (volatile_refs_p) [ASM_INPUT]: Likewise.
15507         (side_effects_p) [ASM_INPUT]: Likewise.
15508
15509 2003-01-09  Jan Hubicka  <jh@suse.cz>
15510
15511         * i386.md (*mul*): FIx constraints; remove confused comment; fix
15512         athlon_decode attributes
15513         (imul/k8 optimization peep2s): New.
15514
15515         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
15516         * i386.md (type attribute): Add ssecomi.
15517         (unit, memory, prefix attributes): Handle ssecomi.
15518         (cvt?2? patterns): Fix athlon_decode attribute
15519         (comi patterns): Set attribute to ssecomi.
15520
15521         PR target/8343
15522         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
15523
15524 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
15525
15526         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
15527         that match register_operands.
15528         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
15529         register_operand the default case.
15530
15531 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15532
15533         PR c/8032
15534         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
15535         an empty element, do not advance the pointer to unfilled
15536         fields if there are pending initializers.
15537
15538 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
15539
15540         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
15541         (install-gcc-tooldir, install-cpp, installdirs,
15542         install-common, install-driver, install-info, install-man,
15543         install-headers, install-include-dir, install-headers-tar,
15544         install-headers-cpio, install-headers-cp, install-mkheaders,
15545         install-collect2, uninstall): Prepend $(DESTDIR) to
15546         destination paths in all (un)installation commands.
15547         (install-driver): Rewrite $(LN) commands to support DESTDIR
15548         with "ln" as well as with "ln -s".
15549         (installdirs): Simply use mkinstalldirs.
15550         (install-libgcc, install-multilib): Also pass DESTDIR.
15551         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
15552         installation destination variable ldir.
15553         * config/alpha/t-osf4, config/arm/t-netbsd,
15554         config/ia64/t-hpux, config/mips/t-iris5-6,
15555         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
15556         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
15557         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
15558         in the definition of SHLIB_INSTALL.
15559         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
15560         $(libsubdir) in the installation commands.
15561
15562 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15563
15564         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
15565         non-optimizing compile.
15566         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
15567         compile.
15568
15569 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
15570
15571         * config/i386/i386.c (ix86_attribute_table): Add new attributes
15572         ms_struct and gcc_struct.
15573         (ix86_handle_struct_attribute): New function.
15574         (ix86_ms_bitfield_layout_p): Update to take new attributes
15575         into account.
15576         * doc/extend.texi: Document new attributes.
15577         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
15578
15579 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
15580
15581         PR optimization/8750
15582         * config/i386/i386.c (ix86_expand_prologue): Don't allow
15583         scheduling pass to move insns across __alloca call.
15584
15585 2003-01-08  Dale Johannesen  <dalej@apple.com>
15586
15587         * config/rs6000/rs6000.md:  Replace *store_multiple_string
15588         with *stmsi[3-8].
15589
15590 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
15591
15592         PR target/9210
15593         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
15594         Set SYMBOL_REF_FLAG on local data sym_ref.
15595
15596 2003-01-08  Dale Johannesen  <dalej@apple.com>
15597
15598         * function.c (assign_parms):  Don't set pretend_args_size if
15599           REG_PARM_STACK_SPACE.
15600           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
15601           pretend_args_size.
15602
15603 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
15604
15605         * gcc.hlp: Delete.
15606
15607 2003-01-09  Jan Hubicka  <jh@suse.cz>
15608
15609         * i386.c  (ix86_expand_int_addcc): Fix thinko.
15610
15611 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
15612
15613         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
15614         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
15615         as hook_bool_tree_hwi_hwi_tree_true.
15616         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
15617         (rs6000_emit_epilogue): Same.
15618         (rs6000_output_mi_thunk): Re-implement as RTL.
15619         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
15620         xcoffout_declare_function if any debugging enabled.
15621
15622 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
15623
15624         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
15625         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
15626         * config/mips/mips.h (enum processor_type): Rename
15627         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
15628         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
15629         Add PROCESSOR_M4K.
15630         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
15631         (ISA_MIPS32R2): New define.
15632         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
15633         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
15634         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
15635         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
15636         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
15637         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
15638         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
15639         compiling MIPS16 code.
15640         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
15641         comment.
15642         (ISA_HAS_SEB_SEH): New define.
15643         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
15644         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
15645         processor_type value renaming.  Add support for MIPS32R2.
15646         Clean up comments, and move "sb1" entry with other MIPS64 CPU
15647         entries.
15648         (override_options): Reimplement -mipsN option handling so that
15649         it will work correctly for -mips32r2.  Avoid branch-likely
15650         instructions on MIPS32R2.
15651         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
15652         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
15653         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
15654         (extendhisi2_hw, extendqisi2_hw): New.
15655         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
15656         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
15657         MIPS32R2, and MIPS64.
15658         (LINK_SPEC): Pass -mips32r2 to linker.
15659         * config/mips/t-isa3264: Built -mips32r2 multilibs.
15660         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
15661         for mips32r2 in the -march description.  Alphabetically sort
15662         CPU names in the -march description.  Add long-missed -mips32
15663         and -mips64 to MIPS option summary.
15664
15665         * config.gcc: Update copyright years to include 2003.
15666         * config/mips/mips.c: Likewise.
15667         * config/mips/mips.h: Likewise.
15668         * config/mips/mips.md: Likewise.
15669         * config/mips/netbsd.h: Likewise.
15670         * doc/invoke.texi: Likewise.
15671
15672 2003-01-08  Andreas Schwab  <schwab@suse.de>
15673
15674         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
15675         variable.
15676         * configure: Regenerated.
15677
15678 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
15679
15680         * config/h8300/h8300.c (output_logical_op): Replace byte/word
15681         extraction of det with b0, b1, w0, w2, etc.
15682         (compute_logical_op_length): Likewise.
15683         (compute_logical_op_cc): Likewise.
15684
15685 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
15686
15687         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
15688         HIGH on all variants.
15689
15690 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
15691
15692         * Makefile.in (PARTITION_H): New.
15693         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
15694         * basic-block.h: Include hard-reg-set.h.
15695
15696 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
15697
15698         * arm.h (ENABLE_XF_PATTERNS): Delete.
15699         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
15700         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
15701         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
15702         (cmpxf_trap): Delete.
15703         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
15704
15705 2003-01-08  Jan Hubicka  <jh@suse.cz>
15706
15707         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
15708         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
15709         (add??cc): New expanders.
15710         * i386.c (expand_int_addcc): New function.
15711         * i386-protos.h (expand_int_addcc): Declare.
15712
15713         * alias.c (memory_modified_1): New static function.
15714         (memory_modified): New static varaible.
15715         (memory_modified_in_insn_p): New global function.
15716         * rtl.h (memory_modified_in_insn_p): Declare.
15717         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
15718         references.
15719
15720         * expr.h (emit_conditional_add): Declare.
15721
15722 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
15723
15724         PR other/8947
15725         * doc/invoke.texi (-malign-double): Explain that the option breaks
15726         binary compatibility.
15727
15728 2003-01-08  Andreas Schwab  <schwab@suse.de>
15729
15730         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
15731         should come from the generic *-*-linux* entry.
15732
15733 2003-01-07  Jan Hubicka  <jh@suse.cz>
15734
15735         * cselib.c (cselib_current_insn_in_libcall): New static variable.
15736         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
15737         we are inside libcall.
15738         * cselib.h (elt_loc_list): Add in_libcall.
15739         * gcse.c (do_local_cprop): Do not copy propagate using insns
15740         in libcalls.
15741
15742 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
15743
15744         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
15745         not normally affect to issue rate.
15746
15747 2003-01-07  Jan Hubicka  <jh@suse.cz>
15748
15749         * genopinit.c (optabs): Add addc_optab.
15750         * ifcvt.c (noce_try_store_flag): Rename to ...
15751         (noce_try_addcc): ... this one; handle generic conditional increment.
15752         (noce_process_if_block): Update noce_try_addcc call.
15753         * optabs.c (emit_conditional_add): New.
15754         (init_obtabs): Initialize addc_optab.
15755         * optabs.h (optab_index): Add OTI_addcc.
15756         (addcc_optab): New macro.
15757         * md.texi: Document addMcc
15758
15759         PR target/8322
15760         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
15761         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
15762         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
15763
15764         * reload1.c (delete_output_reload): Avoid repeated attempts
15765         to delete insn.
15766
15767 2003-01-07  Andreas Schwab  <schwab@suse.de>
15768
15769         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
15770         Move --enable-initfini-array check ...
15771         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
15772         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
15773         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
15774         * configure: Rebuild.
15775
15776 2003-01-07  Richard Henderson  <rth@redhat.com>
15777
15778         * alias.c (find_base_value): Only use new_reg_base_value shortcut
15779         if the register is set once.
15780
15781 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
15782
15783         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
15784         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
15785         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
15786
15787 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
15788             Sunil Davasam  <sunil.k.davasam@intel.com>
15789
15790         PR libstdc++/9076
15791         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
15792         DW_CFA_same_value, read next and ignore.
15793
15794 2003-01-07  Richard Henderson  <rth@redhat.com>
15795
15796         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
15797
15798 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
15799
15800         * cfg.c: Include alloc-pool.h
15801         (edge_pool): New pool.
15802         (bb_pool): New pool.
15803         (first_deleted_edge): Remove.
15804         (first_deleted_block): Remove.
15805         (init_flow): Alloc/free the pools.
15806         (free_edge): Use pools.
15807         (alloc_block): Ditto.
15808         (expunge_block): Ditto.
15809         (cached_make_edge): Ditto.
15810
15811         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
15812
15813 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
15814
15815         * et-forest.c: Include alloc-pool.h.
15816         (struct et_forest): Add node_pool and occur_pool.
15817         (et_forest_create): Create the new pools.
15818         (et_forest_delete): Delete them.
15819         (et_forest_add_node): Allocate and free using pools.
15820         (et_forest_add_edge): Ditto.
15821         (et_forest_remove_node): Ditto.
15822         (et_forest_remove_edge): Ditto.
15823
15824         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
15825
15826 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
15827
15828         * config/h8300/h8300.c (output_logical_op): Simplify and
15829         optimize the handling of SImode.
15830         * config/h8300/h8300.c (compute_logical_op_length): Update
15831         accordingly.
15832         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
15833
15834 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
15835
15836         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
15837         big-endian correction to indirect arguments too.
15838
15839 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
15840
15841         Segher Boessenkool  <segher@koffie.nl>
15842
15843         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
15844         (alt_reg_names): Ditto, fix formatting.
15845         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
15846
15847 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15848
15849         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
15850         (output_logical_op): Constify intval and det.
15851         (compute_logical_length): Likewise.
15852         (compute_logical_cc): Likewise.
15853         (output_a_shift): Constify mask.
15854         (h8300_encode_label): Constify len.
15855
15856 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15857
15858         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
15859         (h8300_expand_epilogue): Likewise.
15860
15861 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
15862
15863         Segher Boessenkool  <segher@koffie.nl>
15864
15865         * config/rs6000/altivec.md: Remove spaces from assembler
15866         instruction argument lists.
15867
15868 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15869
15870         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
15871         c4x_assembler_function_p.
15872         (c4x_null_epilogue_p): Complement return value, all uses updated.
15873         (c4x_insert_attributes): Add naked.
15874         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
15875         * doc/extend.texi: Update C4x function attributes.
15876
15877 2003-01-06  Richard Henderson  <rth@redhat.com>
15878
15879         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
15880         properly when changing "local-ness".
15881         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
15882
15883 2003-01-06  Dale Johannesen  <dalej@apple.com>
15884
15885         * config/darwin-protos.h:  Add prototypes for new section functions.
15886
15887 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
15888
15889         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
15890         to EABI.
15891
15892 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
15893
15894         * hwint.h: If the current compiler has no 64-bit type at all,
15895         make HOST_WIDEST_INT 32 bits.
15896
15897 2003-01-06  Eric Christopher  <echristo@redhat.com>
15898
15899         * config/mips/mips.md (movdf_internal2): Fix constraints.
15900
15901 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15902
15903         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
15904
15905 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
15906
15907         * config/mips/mips.md (leadi): Use dla rather than la.
15908
15909 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
15910
15911         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
15912         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
15913
15914 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
15915
15916         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
15917         redefinition.
15918
15919 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15920
15921         * config/h8300/h8300.md (*extzv_8_23): New.
15922
15923 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15924
15925         * pa64-hpux.h (JCR_SECTION_NAME): Define.
15926         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
15927         USE_EH_FRAME_REGISTRY when defining.
15928
15929 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15930
15931         * config/h8300/h8300.c (output_a_shift): Do not output a
15932         variable shift.
15933         * config/h8300/h8300.md (two splitters): New.
15934
15935 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
15936
15937         * config/mips/mips.md: Disable the movstrsi define_split.
15938
15939 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15940
15941         * alloc-pool.c: Don't include "libiberty.h".
15942         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
15943         * convert.c (convert_to_real): Hide unused variable.
15944
15945 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15946
15947         * Makefile.in (gtyp-gen.h): Const-ify.
15948         * gcov-dump.c (tag_table): Likewise.
15949
15950 2003-01-04  Bruce Korb  <bkorb@gnu.org>
15951
15952         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
15953         of *both* the file name and the fix name.
15954
15955 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
15956
15957         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
15958         collect2.
15959         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
15960         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
15961         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
15962         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
15963         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
15964         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
15965         elfos.h.
15966         (EH_FRAME_IN_DATA_SECTION): Delete define.
15967         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
15968         (STARTFILE_SPEC): Use crtbegin.o.
15969         (ENDFILE_SPEC): Use crtend.o.
15970         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
15971         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
15972         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
15973         DTOR_LIST_BEGIN): Define.
15974         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
15975         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
15976         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
15977
15978 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
15979
15980         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
15981         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
15982         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
15983         Cleanup handling of replacement text.
15984         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
15985
15986 2003-01-04  Bruce Korb  <bkorb@gnu.org>
15987
15988         * fixinc/tests/base/math.h: removed obsolete results
15989         * fixinc/tests/base/stdlib.h: ditto
15990         * fixinc/tests/base/sys/param.h: ditto
15991         * fixinc/tests/base/sys/stat.h: ditto
15992         * fixinc/tests/base/time.h: ditto
15993         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
15994         * fixinc/tests/base/sys/byteorder.h: ditto
15995         * fixinc/inclhack.def: Remove superfluous backslashes
15996
15997 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
15998
15999         * config/h8300/h8300-protos.h: Add prototypes for
16000         the new functions defined below.
16001         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
16002         define.
16003         (dosize): Emit RTL instead of assembly code.
16004         (push): Likewise.
16005         (pop): Likewise.
16006         (h8300_output_function_prologue): Remove.
16007         (h8300_expand_prologue): New.
16008         (h8300_expand_epilogue): New.
16009         (h8300_output_function_epilogue): Do only the reset of
16010         pragma_saveall.
16011         * config/h8300/h8300.md (push_h8300): New.
16012         (push_h8300hs): Likewise.
16013         (pop_h8300): Likewise.
16014         (pop_h8300hs): Likewise.
16015         (*stm_h8300s_2): Change the name to stm_h8300s_2.
16016         (*stm_h8300s_3): Change the name to stm_h8300s_3.
16017         (*stm_h8300s_4): Change the name to stm_h8300s_4.
16018         (*ldm_h8300s_2): New.
16019         (*ldm_h8300s_3): Likewise.
16020         (*ldm_h8300s_4): Likewise.
16021         (return): Likewise.
16022         (*return_1): Likewise.
16023         (prologue): Likewise.
16024         (epilogue): Likewise.
16025         (monitor_prologue): Likewise.
16026
16027 2003-01-03  Dale Johannesen  <dalej@apple.com>
16028
16029         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
16030           machopic_picsymbol_stub1.
16031           (EXTRA_SECTION_FUNCTIONS):  Ditto.
16032         * rs6000/rs6000.c:  Update copyright.
16033           (machopic_output_stub):  Use them.  Remove an insn from stub code.
16034
16035 2003-01-02  Jason Merrill  <jason@redhat.com>
16036
16037         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
16038
16039         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
16040         static/external decls.
16041
16042         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
16043         outermost scope.
16044         * c-decl.c (c_make_fname_decl): Push the decls there, too.
16045
16046 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
16047
16048         * config/h8300/h8300-protos.h: Add a prototype for
16049         h8300_current_function_interrupt_function_p.
16050         * config/h8300/h8300.c (interrupt_handler): Remove.
16051         (os_task): Likewise.
16052         (monitor): Likewise.
16053         (pragma_interrupt): New.
16054         (WORD_REG_USED): Use
16055         h8300_current_function_interrupt_function_p.
16056         (dosize): Likewise.
16057         (h8300_output_function_prologue): Likewise.
16058         Do not set interrupt_handler, os_task, monitor.
16059         (h8300_output_function_prologue): Use
16060         h8300_current_function_interrupt_function_p.
16061         Do not set interrupt_handler, os_task, monitor.
16062         (h8300_current_function_interrupt_function_p): New.
16063         (h8300_pr_interrupt): Set pragma_interrupt.
16064         (h8300_insert_attributes): Reset pragma_interrupt.
16065
16066 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16067
16068         * doc/install.texi (Configuration): Fix markup for reference to
16069         gcc/config.gcc.
16070
16071 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
16072
16073         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
16074         (*iorhi3_two_qi): Likewise.
16075         (*iorsi3_zexthi): Likewise.
16076         (*xorhi3_zextqi): Likewise.
16077         (*xorsi3_zexthi): Likewise.
16078         (*xorsi3_zextqi): Likewise.
16079
16080 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
16081
16082         * config/h8300/h8300.c (stack_pointer_operand): New.
16083         (const_int_gt_2_operand): Likewise.
16084         (const_int_ge_8_operand): Likewise.
16085         * config/h8300/h8300.md (a splitter): Likewise.
16086         (a peephole2): Likewise.
16087         * config/h8300/h8300-protos.h: Add prototypes for the new
16088         functions above.
16089
16090 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
16091
16092         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
16093         objc/objc-act.h: Fix copyright years.
16094
16095 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16096
16097         * doc/passes.texi: Fix documentation for -fssa-ccp
16098
16099 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
16100
16101         * gccbug.in: Update for new categories.
16102
16103 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16104
16105         * config/h8300/h8300.md: Reorder some patterns.
16106
16107 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16108
16109         * config/h8300/h8300.c (output_logical_op): Fix a warning.
16110
16111 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16112
16113         * config/darwin-protos.h, config/c4x/c4x-protos.h,
16114         config/cris/cris-protos.h, config/i370/i370-protos.h,
16115         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
16116         config/v850/v850-protos.h: Use struct, and don't conditionally
16117         compile on GCC_C_PRAGMA_H.
16118
16119 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16120
16121         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
16122         * config/h8300/h8300-protos.h: Likewise.
16123         * config/sh/sh-protos.h: Likewise.
16124
16125 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16126
16127         * config/arm/arm-protos.h: Use struct cpp_reader instead of
16128         cpp_reader.
16129         * config/h8300/h8300-protos.h: Likewise.
16130         * config/sh/sh-protos.h: Likewise.
16131
16132 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16133
16134         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
16135         arm_pr_long_calls_off): Use struct.
16136         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
16137         : Similarly.
16138         Don't include cpplib.h.
16139         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
16140         sh_pr_nosave_low_regs): Similarly.
16141
16142 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16143
16144         * config/h8300/h8300.c: Include cpplib.h.
16145
16146 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16147
16148         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
16149           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
16150           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
16151           "GCC" in the copyright header.
16152
16153 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16154
16155         * c-pragma.c (c_register_pragma): New.
16156         (init_pragma): Use it.
16157         * c-pragma.h (cpp_register_pragma): Don't declare.
16158         (c_register_pragma): New.
16159         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
16160         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
16161         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
16162         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
16163         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
16164         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
16165         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
16166         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
16167         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
16168         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
16169         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
16170         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
16171
16172 See ChangeLog.8 for earlier changes.