OSDN Git Service

* config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
2
3         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
4         -lthread to -lpthread.
5
6 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
7             Bruce Korb  <bkorb@gnu.org>
8             Arno Klaassen  <arno@heho.snv.jussieu.fr>
9
10         * fixinc/inclhack.def: Add missing declaration of getpagesize()
11         to unistd.h on Solaris 2.5.1.
12         Fix prototype of recv() and send() in sys/socket.h on
13         Solaris 2.5.1 and 2.6.
14         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
15         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
16         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
17         * fixinc/fixincl.x: Regenerate.
18
19 2003-05-27  Jason Merrill  <jason@redhat.com>
20
21         * tree.c (expr_first, expr_length): New fns.
22         * tree.h: Declare them.
23
24         * tree.c (iterative_hash_expr): Hash commutative expressions
25         consistently.
26
27 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28
29         * tree.h (contains_placeholder_p): Now returns bool.
30         (CONTAINS_PLACEHOLDER_P): New macro.
31         (type_contains_placeholder_p): New function.
32         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
33         (contains_placeholder_p): Now returns bool.
34         Rework to use CONTAINS_PLACEHOLDER_P macro.
35         (type_contains_placeholder_p): New function.
36         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
37         type_contains_placeholder_p.
38         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold): 
39         Use CONTAINS_PLACEHOLDER_P macro.
40         * builtins.c (fold_builtin): Likewise.
41         * calls.c (initialize_argument_information): Likewise.
42         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
43         * explow.c (expr_size): Likewise.
44         * expr.c (store_constructor, get_inner_reference): Likewise.
45         * function.c (assign_parms): Likewise.
46         * stor-layout.c (variable_size): Likewise.
47
48 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
49
50         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
51         attribute.  
52
53 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
54
55         * doc/contrib.texi (Contributors): Update Kean Johnston.
56
57 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
58
59         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
60
61 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
62
63         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
64         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
65         Replace "GNU CC" with "GCC".
66
67 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
68
69         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
70         intermediate computation.
71
72 2003-05-23  Eric Christopher  <echristo@redhat.com>
73
74         * config/mips/mips.md (clzsi, clzdi): New patterns.
75
76 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
77
78         * gcc.c (default_compilers): Use -o to specify preprocessor's output
79         file.  Make -no-integrated-cpp work when building PCH files.
80         * objc/lang-specs.h: Likewise.
81
82 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
83
84         * fixinc/Makefile.in: Correct description.
85         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
86         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
87         fixinc/genfixes: Replace "GNU CC" with "GCC".
88
89 2003-05-23  Roger Sayle  <roger@eyesopen.com>
90
91         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
92         builtin functions (and their __builtin_* variants).
93         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
94         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
95         optimizing.
96
97         * doc/extend.texi: Document new tan and atan builtins, and
98         their float and long double variants.
99
100 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
101
102         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
103         __sparcv9 in the TARGET_ARCH64 case.
104
105 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
106
107         * i386.c (ix86_reorg): Calls are also jumps.
108
109 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
110
111         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
112         note containing an EXPR_LIST, process all the arguments.
113
114 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
115                                Andreas Jaeger  <aj@suse.de>
116
117         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
118         do not use assertion.
119
120 2003-05-23  Mike Stump  <mrs@apple.com>
121
122         * tlink.c (scan_linker_output): Add support for darwin linker, as it
123         emits unresolved symbols one per line, consuming the entire line.
124
125 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
126             Zack Weinberg <zack@codesourcery.com>
127
128         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
129         * config/m68k/m68k.c (m68k_output_function_prologue):
130         Remove code under #if NEED_PROBE.
131         * config/m68k/m68k.h: Don't define NEED_PROBE.
132         * config/m68k/m68k.md: Remove "probe" insn.
133         * doc/md.texi: Remove documentation of "probe" pattern.
134
135 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
136
137         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
138
139 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
140
141         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
142         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
143
144 2003-05-22  Roger Sayle  <roger@eyesopen.com>
145
146         * real.c (real_maxval): New function to return the largest finite
147         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
148         * real.h (real_maxval): Prototype here.
149         * fold-const.c (fold_inf_compare): Transform comparisons against
150         +-Infinity into comparisons against DBL_MAX (or equivalent).
151
152 2003-05-22  Mike Stump  <mrs@apple.com>
153
154         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
155         default.
156
157 2003-05-22  DJ Delorie  <dj@redhat.com>
158
159         * calls.c (expand_call): If the arg block is going to grow
160         downward, we need argblock to point to the top of the block,
161         not the bottom.
162
163 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
164
165         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
166
167         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
168         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
169
170 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
171
172         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
173         * m68k.c: Likewise.
174         * m68k.h: Likewise.
175
176 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
177
178         PR other/2873
179         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
180         expressions to prevent triggering on recent curses.h,
181         linux/nls.h, or X11/Xlib.h.
182         (stdio_va_list): Add _G_va_list to bypass pattern.
183         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
184         * fixinc/fixincl.x: Regenerate.
185
186 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
187
188         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
189         switches when --target-help option is specified.
190
191 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
192
193         PR bootstrap/10805
194         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
195         failure with Sun assembler 5.0 Alpha 03/27/98.
196
197 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
198
199         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
200         to match system compiler convention.
201
202 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
203
204         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero
205         value, not just if defined.
206         Update copyright year.
207
208 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
209
210         PR target/6428
211         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
212         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
213         option is used without `-static'.
214         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
215         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
216
217 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
218
219         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
220         TARGET_SERIALIZE_VOLATILE): Delete.
221         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
222         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
223         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
224         "-mno-serialize-volatile".
225         * config/xtensa/xtensa.c (print_operand): Remove checks of
226         TARGET_SERIALIZE_VOLATILE.
227         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
228         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
229         "-mserialize-volatile" and "-mno-serialize-volatile" options.
230
231 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
232
233         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
234         (nested_function): Likewise.
235         (notype_nested_function): Likewise.
236
237 2003-05-21  Nick Clifton  <nickc@redhat.com>
238
239         * config/stormy16/stormy-abi: Update overflow type for
240         R_XSTORMY16_16 reloc.
241
242 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
243
244         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
245         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
246         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
247         * print-tree.c (print_node): Remove ambient-boundedness.
248         * tree.h (tree_common): Remove bounded_flag.
249         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
250         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
251         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
252         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
253         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
254         Remove.
255         (TYPE_QUALS): Remove BOUNDED.
256         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
257         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
258         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
259         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
260         VA_LIST_POINTER_DEPTH): Remove.
261         (struct tree_type): Remove pointer_depth.
262
263 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
264
265         * c-pretty-print.c (pp_c_integer_literal): Use
266         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
267
268 2003-05-20  Roger Sayle  <roger@eyesopen.com>
269             Kazu Hirata  <kazu@cs.umass.edu>
270             Joern Rennecke  <joern.rennecke@superh.com>
271
272         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
273         setcc and jump, if they exist.  If substituted instruction
274         fails to validate, store current effort in a REG_EQUAL note.
275         (cprop_insn): Don't attempt further substitutions if the
276         current instruction has been deleted.
277         (local_cprop_pass): Likewise.
278
279         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
280         one is attached to the jump instruction.
281         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
282
283 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
284
285         PR c++/9738
286         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
287         even if not first.
288
289 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
290
291         * genautomata.c (output_description, output_automaton_units,
292         output_state_arcs): Add missing specifiers.
293
294 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
295
296         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
297         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
298         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
299         (nsau): Rename to do_nsau.  Provide alternate version for use when
300         the NSAU instruction is available.
301         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
302         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
303         * config/xtensa/xtensa-config.h: Update comments to match binutils.
304         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
305         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
306         (TARGET_ABS, TARGET_ADDX): Define.
307         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
308         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
309         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
310         *subx8): Set predicate condition to TARGET_ADDX.
311         (abssi2): Set predicate condition to TARGET_ABS.
312         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
313         "-maddx", and "-mno-addx" options.
314         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
315
316 2003-05-20  Kevin Ryde <user42@zip.com.au>
317             Wolfgang Bangerth <bangerth@dealii.org>
318
319         PR/10355
320         * doc/extend.texi: Put a warning into the documentation
321         of attribute regparm.
322
323 2003-05-20  Jason Merrill  <jason@redhat.com>
324
325         * tree.c (expr_last): New fn.
326         * tree.h: Declare it.
327         * objc/objc-act (expr_last): Rename to objc_expr_last.
328
329 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
330
331         * sh.c (sh_register_move_cost): Add clase for moving between
332         FP registers and MAC registers.
333
334 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
335
336         * pa/milli64.S ($$mulI): Fix typo.
337
338 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
339
340         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
341         (nonlocal_set_p): Remove initial blank line.
342         * dwarf2out.c (simple_type_size_in_bits): Likewise.
343         * et-forest.c (et_forest_create): Likewise.
344         * explow.c (stabilize): Likewise.
345         * fix-header.c (write_lbrac): Likewise.
346         * graph.c (start_fct, node_data): Likewise.
347         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
348         * rtlanal.c (global_reg_mentioned_p): Likewise.
349         * tree.c (bit_position): Likewise.
350
351 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
352
353         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
354         -lthread to -lpthread.
355
356 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
357
358         * c-opts.c (c_common_decode_option): Don't accept dollars
359         as identifier characters in assembly.
360         * doc/cpp.texi: Document this.
361
362 2003-05-19  Seth Arnold  <sarnold@wirex.com>
363             Aldy Hernandez  <aldyh@redhat.com>
364
365         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
366         vrsave_size twice.
367
368 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
369
370         * doc/tm.texi (function_arg): Fix typo.
371
372 2003-05-19  Matt Austern  <austern@apple.com>
373
374         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
375         * c-common.h (warn_invalid_offsetof): Declare.
376         * c-common.c (warn_invalid_offsetof): Define.
377         * doc/invoke.texi: Document -Winvalid-offsetof.
378         * testsuite/g++.dg/other/offsetof3.C: New.
379         * testsuite/g++.dg/other/offsetof4.C: New.
380
381 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
382             David Edelsohn  <edelsohn@gnu.org>
383
384         * config/rs6000/rs6000.c (rs6000_alignment_string,
385         rs6000_alignment_flags): New variables.
386         (rs6000_parse_alignment_option): New function.
387         (rs6000_override_options): Call it.
388         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
389         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
390         macros.
391         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
392         natural alignment if TARGET_NATURAL_ALIGNMENT
393         (ROUND_TYPE_ALIGN): Always use default record alignment if
394         TAGET_NATURAL_ALIGNMENT.
395         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
396         (ROUND_TYPE_ALIGN): Same.
397         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
398         (ROUND_TYPE_ALIGN): Same.
399         * doc/invoke.texi (Option Summary, PowerPC Options): Document
400         new options.
401
402 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
403
404         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
405         of a function using ASMSPEC, prepend a star.
406
407 2003-05-19  Jason Merrill  <jason@redhat.com>
408
409         * tree-inline.c (copy_body_r): Avoid generating &* during inline
410         substitution.
411
412 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
413
414         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
415         not mark assignments to the hard frame pointer as being stack
416         frame related.
417         (xstormy16_expand_epilogue): Mark adjustments to the stack
418         pointer as being stack frame related.
419
420 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
421
422         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
423         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
424         (PREDICATE_CODES): Add hilo_operand.
425         * config/mips/mips.c (hilo_operand): New predicate.
426         (mips_adjust_insn_length): Account for the number nops that might
427         be needed to avoid hardware hazards.
428         * config/mips/mips.md (dslot): Remove attribute.
429         (hazard): New attribute.
430         (can_delay): Use it.  Check for calls, branches & jumps.
431         (muldi3): Use the standard dmult pattern for mips16 code.
432         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
433
434 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
435
436         * config/mips/mips-protos.h (final_prescan_insn,
437         mips_count_memory_refs, mips_fill_delay_slot): Remove.
438         * config/mips/mips.h (delay_type, dslots_load_total,
439         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
440         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
441         mips_load_reg3, mips_load_reg4): Remove.
442         (MASK_STATS): Remove.
443         (MASK_EXPLICIT_RELOCS): Reuse its value.
444         (TARGET_STATS): Remove.
445         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
446         Warn that -mstats is now ignored.
447         (FINAL_PRESCAN_INSN): Undefine.
448         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
449         (ASM_OUTPUT_REG_POP): Likewise.
450         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
451         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
452         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
453         mips_fill_delay_slot, mips_count_memory_refs,
454         final_prescan_insn): Remove.
455         (output_block_move): Remove calls to mips_count_memory_refs.
456         (print_operand): Remove printing of #nop for TARGET_STATS.
457         (mips_output_function_epilogue): Remove TARGET_STATS code.
458         Reorganize setting of fnnmae.
459         * config/mips/mips.md: Remove handling of dslot statistics
460         throughout file.  Change all fcmp patterns into normal asm
461         templates, removing calls to mips_fill_delay_slot.
462         * doc/invoke.texi: Remove documentation of -mstats.
463
464 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
465
466         * config/mips/mips.c (mips_class_max_nregs): Return the number of
467         words in the mode.
468
469 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
470
471         * config/mips/mips.c (override_options): Disable explicit
472         relocs for old ABIs unless using gas.
473
474 2003-05-18  Eric Christopher  <echristo@redhat.com>
475
476         * config/mips/mips.h: Remove definition of g_switch_value.
477
478 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
479
480         * flags.h (g_switch_value): Change to an unsigned
481         HOST_WIDE_INT.
482         * toplev.c (g_switch_value): Likewise.
483
484         * config/alpha/alpha.c (small_symbolic_operand): Remove
485         g_switch_value cast.
486         (alpha_in_small_data_p): Cast size to an unsigned
487         HOST_WIDE_INT.
488
489         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
490         unsigned HOST_WIDE_INT.
491         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
492         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
493
494         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
495         unsigned HOST_WIDE_INT.
496         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
497         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
498         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
499
500         * config/rs6000/rs6000.c (rs6000_file_start): Use
501         HOST_WIDE_INT_PRINT_UNSIGNED.
502         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
503         (rs6000_elf_in_small_data_p): Cast size to unsigned
504         HOST_WIDE_INT.
505         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
506         Remove.
507         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
508         g_switch_set.
509         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
510         g_switch_value cast.
511
512 2003-05-18  Roger Sayle  <roger@eyesopen.com>
513             Zack Weinberg  <zack@codesourcery.com>
514
515         PR middle-end/10472
516         * builtins.c (expand_builtin_memcpy):  Call force_operand on
517         expressions and use simplify_gen_binary to create the addition.
518
519 2003-05-18  Andreas Schwab  <schwab@suse.de>
520
521         * config/m68k/m68k.md: Use define_constants for unspec numbers.
522
523 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
524
525         * config/sparc/sparc.h: Define sparc for now.
526 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
527
528         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
529
530         * config/stormy16/stormy16.h: Remove about 3000 lines of
531         target-independent comments.  Update copyright notice.
532
533         * doc/collect2.texi: GNU CC -> GCC.
534         * doc/headerdirs.texi: GNU CC -> GCC.
535
536 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
537
538         * hashtable.h (struct ht_identifier): Add data member "hash_value".
539         * hashtable.c (ht_lookup): Use it when searching, remember.
540         (ht_expand): Do not recompute.
541         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
542
543 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
544
545         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
546
547 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
548
549         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
550         Default here.
551         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
552         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
553         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
554         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
555         config/arm/linux-elf.h, config/arm/rtems-elf.h,
556         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
557         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
558         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
559         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
560         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
561         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
562         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
563         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
564         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
565         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
566         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
567         Don't define __ELF__.
568         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
569         Define __ELF__.
570         * doc/cpp.texi: Document __ELF__.
571         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
572
573 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
574
575         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
576         always use stdarg.
577         * c-errors.c (pedwarn_c99): Likewise.
578         * c-format.c (status_warning): Likewise.
579         * c-semantics.c (build_stmt): Likewise.
580         * calls.c (emit_library_call, emit_library_call_value): Likewise.
581         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
582         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
583         * diagnostic.c (build_message_string, output_printf,
584         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
585         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
586         error_with_decl, fnotice): Likewise.
587         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
588         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
589         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
590         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
591         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
592         dw2_asm_output_encoded_addr_rtx): Likewise.
593         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
594         * errors.c (warning, error, fatal, internal_error): Likewise.
595         * final.c (output_operand_lossage, asm_fprintf): Likewise.
596         * fix-header.c (fatal): Likewise.
597         * gcc.c (fatal, error, notice): Likewise.
598         * gcov.c (fnotice): Likewise.
599         * genattrtab.c (attr_rtx, attr_printf): Likewise.
600         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
601         * gensupport.c (message_with_line): Likewise.
602         * mips-tfile.c (fatal, error): Likewise.
603         * protoize.c (notice): Likewise.
604         * ra-debug.c (ra_debug_msg): Likewise.
605         * read-rtl.c (fatal_with_file_and_line): Likewise.
606         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
607         * tree.c (build, build_nt, build_function_type_list): Likewise.
608
609 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
610
611         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
612         * gcc.c (cpp_predefines): Remove.
613         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
614         (static_specs): Remove predefines.
615         * system.h: Poison CPP_PREDEFINES.
616         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
617         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
618
619 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
620
621         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
622         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
623         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
624         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
625
626 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
627
628         PR c/9209
629         * c-common.c, c-common.h (dollars_in_ident): Remove.
630         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
631         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
632         * cpphash.h (warned_dollar): Rename warn_dollars.
633         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
634         Permit dollars regardless of -std=.
635         (post_options): Set warn_dollars.
636         * cpplex.c (forms_identifier_p): Use warn_dollars.
637         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
638         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
639         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
640         Update documentation.
641
642 2003-05-17  Andreas Schwab  <schwab@suse.de>
643
644         * config/m68k/m68k.c (m68k_output_function_prologue): Use
645         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
646         formatting a HOST_WIDE_INT.
647         (m68k_output_function_epilogue): Likewise.
648
649 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
650
651         * doc/install.texi: Remove information about desupported targets.
652
653 2003-05-17  Andreas Schwab  <schwab@suse.de>
654
655         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
656         * config/m68k/linux.h: Likewise.
657         * config/m68k/m68k-none.h: Likewise.
658         * config/m68k/netbsd-elf.h: Likewise.
659         * config/m68k/sgs.h: Likewise.
660         * config/m68k/m68k.h: Likewise.
661         * config/m68k/m68k.md: Likewise.
662         * config/m68k/m68k.c: Likewise.
663         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
664         constraints.
665         * doc/invoke.texi (Option Summary): Remove -mfpa.
666         (M680x0 Options): Likewise.
667
668 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
669
670         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
671
672 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
673
674         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
675         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
676         config/sparc/rtemself.h, config/sparc/sol2-64.h,
677         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
678         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
679
680 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
681
682         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
683         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
684
685 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
686
687         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
688         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
689         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
690         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
691         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
692         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
693         sparc/sysv4.h,
694         * sparc/sysv4-only.h: New.
695
696 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
697
698         * function.c (assign_parms): Check for zero size args.
699
700 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
701
702         * cfgloopanal.c (test_for_iteration): Use string concatentation on
703         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
704         function calls into one.
705         * dbxout.c (dbxout_symbol): Likewise.
706         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
707         * dwarf2asm.c (dw2_asm_output_data_uleb128,
708         dw2_asm_output_data_sleb128): Likewise.
709         * genrecog.c (debug_decision_2): Likewise.
710         * loop.c (emit_prefetch_instructions): Likewise.
711         * print-rtl.c (print_rtx): Likewise.
712         * print-tree.c (print_node_brief, print_node): Likewise.
713         * ra-debug.c (dump_igraph, dump_graph_cost,
714         dump_static_insn_cost): Likewise.
715         * ra-rewrite.c (dump_cost): Likewise.
716         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
717         * sreal.c (dump_sreal): Likewise.
718         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
719         * varasm.c (assemble_vtable_entry): Likewise.
720
721         * avr.c (avr_output_function_prologue,
722         avr_output_function_epilogue, print_operand): Fix format specifier
723         warnings.
724         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
725         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
726
727 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
728
729         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
730         and ! TARGET_STRING cases.
731
732         * doc/cppopts.texi (-undef): Fix texinfo warning.
733
734         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
735         * cppfiles.c (validate_pch): When -H is used, print some information
736         about PCH files found.
737
738 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
739
740         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
741         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
742         * config/mips/t-sr71k: Likewise.
743
744 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
745
746         * arc.c (arc_output_function_prologue,
747         arc_output_function_epilogue): Fix format specifier warnings.
748         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
749
750         * v850.c (print_operand): Fix format specifier warnings.
751
752         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
753         specifier warnings.
754
755         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
756         format specifier warnings.
757
758         * ip2k.c (function_prologue, function_epilogue, print_operand):
759         Fix format specifier warnings.
760         * ip2k.md: Likewise.
761
762         * i960.c (i960_output_function_prologue, i960_print_operand,
763         i960_print_operand_addr): Fix format specifier warnings.
764
765         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
766         (i370_output_function_prologue): Fix format specifier warnings.
767         * i370.h (PRINT_OPERAND): Likewise.
768
769         * fr30.c (fr30_print_operand): Fix format specifier warnings.
770
771         * dsp16xx.c (print_operand_address): Fix format specifier warning.
772         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
773
774         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
775         specifier warnings.
776
777         * alpha.c (print_operand_address, alpha_start_function,
778         unicosmk_output_ssib): Use string concatentation on
779         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
780         function calls into one.
781         * arm.c (arm_print_operand): Likewise.
782         * cris.c (cris_asm_output_mi_thunk): Likewise.
783         * frv.c (frv_asm_output_mi_thunk): Likewise.
784         * ia64.c (ia64_print_operand, process_set): Likewise.
785         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
786         Likewise.
787         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
788         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
789         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
790         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
791         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
792         * s390.c (s390_assemble_integer): Likewise.
793         * sparc.c (sparc_flat_function_prologue,
794         sparc_flat_function_epilogue): Likewise.
795         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
796         * vax.c (vax_output_mi_thunk): Likewise.
797
798         * frv.c (frv_print_operand_memory_reference): Fix format specifier
799         warning.
800         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
801
802         * m68k.c (m68k_output_function_epilogue): Fix format specifier
803         warnings.
804
805         * stormy16-protos.h (xs_hi_general_operand,
806         xs_hi_nonmemory_operand): Prototype.
807         * stormy16.c (xstormy16_output_shift): Fix format specifier
808         warnings.
809
810         * cris.c: Fix format specifier warnings.
811
812 2003-05-16  Nick Clifton  <nickc@redhat.com>
813
814         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
815
816 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
817
818         * doc/bugreport.texi: Remove most of the of the preface of the
819         bugs section.
820
821 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
822
823         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
824         .save XX, r0.
825
826 2003-05-15  Roger Sayle  <roger@eyesopen.com>
827
828         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
829
830 2003-05-15  Eric Christopher  <echristo@redhat.com>
831
832         * cfgcleanup.c (merge_blocks): Fix return value.
833
834 2003-05-15 Eric Christopher <echristo@redhat.com>
835
836         * combine.c (expand_compound_operation): Make sure
837         that zero_extend operation is profitable.
838
839 2003-05-15  Richard Henderson  <rth@redhat.com>
840
841         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
842         code protected by USE_GNULIBC_1.
843
844 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
845
846         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
847         remove hppa*-*-mpeix* which could not be built, and prune
848         files from tmake_file= or tm_file= lists that don't exist.
849
850         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
851         * config/alpha/t-interix, config/arm/conix-elf.h
852         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
853         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
854         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
855         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
856         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
857         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
858         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
859         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
860         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
861         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
862         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
863         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
864         * config/m68k/tower-as.h, config/m68k/tower.h
865         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
866         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
867         * config/m88k/m88k-protos.h, config/m88k/m88k.c
868         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
869         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
870         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
871         * config/mips/rtems64.h, config/mips/sni-gas.h
872         * config/mips/sni-svr4.h, config/mips/t-ecoff
873         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
874         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
875         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
876         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
877         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
878         * config/romp/romp-protos.h, config/romp/romp.c
879         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
880         * config/rs6000/aix3newas.h, config/rs6000/mach.h
881         * config/sparc/bsd.h, config/sparc/hal.h
882         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
883         * config/sparc/lynx.h, config/sparc/netbsd.h
884         * config/sparc/sp86x-aout.h, config/sparc/splet.h
885         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
886         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
887         * config/sparc/t-halos, config/sparc/t-sparcbare
888         * config/sparc/t-splet, config/sparc/t-sunos41
889         * config/v850/rtems.h: Delete file.
890
891 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
892
893         * config/rs6000/rs6000-protos.h (function_value): Protoize.
894
895         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
896
897         * config/rs6000/rs6000.c (rs6000_function_value): New.
898
899 2003-05-15  Philip Blundell  <philb@gnu.org>
900
901         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
902         All uses updated.
903         (arm_tune_xscale): New variable.
904         (arm_override_options): Set it.
905         (arm_adjust_cost): Use it in place of arm_arch_xscale.
906         (arm_gen_load_multiple): Likewise.
907         (arm_gen_store_multiple): Likewise.
908         * config/arm/arm.md (is_xscale): Likewise.
909         * config/arm/arm.h (arm_tune_xscale): Declare.
910
911 2003-05-15  Philip Blundell  <philb@gnu.org>
912
913         PR target/10730
914         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
915         involving invalid constants.
916
917 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
918
919         * pa.c (hppa_expand_prologue): Remove blockage.
920
921 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
922
923         * doc/bugreport.texi: Remove most of the bug reporting
924         instructions and merge them into bugs.html.
925
926 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
927
928         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
929         g_switch_value to unsigned HOST_WIDE_INT.
930
931 2003-05-14  Eric Christopher  <echristo@redhat.com>
932
933         * combine.c: Fix header comments.
934         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
935         to all calls and prototype.
936
937 2003-05-14  Roger Sayle  <roger@eyesopen.com>
938
939         PR optimization/10764
940         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
941         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
942         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
943         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
944         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
945         the corresponding *fyl2x_?fxf3 instructions.
946
947 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
948
949         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
950         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
951         XCHAL_HAVE_L32R): New.
952         * config/xtensa/xtensa-protos.h (non_const_move_operand,
953         xtensa_load_constant, xtensa_function_prologue,
954         xtensa_function_epilogue): Delete prototypes.
955         (xtensa_expand_prologue): New.
956         * config/xtensa/xtensa.c (frame_size_const,
957         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
958         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
959         xtensa_function_prologue): Delete.
960         (add_operand, xtensa_mem_offset): Formatting.
961         (move_operand): If the const16 option is available, allow any SFmode
962         and SImode constants.
963         (xtensa_emit_move_sequence): Inline the former contents of
964         xtensa_load_constant with modifications to handle the const16 option.
965         (override_options): Add xtensa_char_to_class['W'] and set it to
966         the general register class only if the const16 option is enabled.
967         Fix formatting.  Disallow PIC when using the const16 option.
968         (print_operand): Reorganize to switch on "letter" instead of the
969         RTL code.  Add output_operand_lossage calls for invalid cases.
970         Add support for 't' and 'b' letters.
971         (xtensa_expand_prologue): New function to replace
972         xtensa_function_prologue and xtensa_reorg.
973         (xtensa_function_epilogue): Declare this as static.  Delete code
974         to print the retw.n or retw instruction.
975         (xtensa_return_addr): Use A0_REG instead of 0.
976         (xtensa_rtx_costs): Add costs for using the const16 option.
977         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
978         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
979         (TARGET_SWITCHES): Add "const16" and "no-const16".
980         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
981         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
982         using the const16 option.
983         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
984         (TRAMPOLINE_SIZE): Change from 49 to 59.
985         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
986         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
987         when using the const16 option.
988         (PREDICATE_CODES): Delete non_const_move_operand.
989         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
990         UNSPECV_ENTRY.
991         (movdi, movdf): If the source is a constant, always expand to a
992         sequence of movsi insns.
993         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
994         (movsi_internal, movsf_internal): Add alternative using const16 insns.
995         (movsf): Add const16 support.
996         (entry, prologue, epilogue): New.
997         (set_frame_ptr): Add missing mode for unspec_volatile operation.
998         Likewise for subsequent split pattern.
999         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
1000         "-mconst16" and "-mno-const16" options.
1001
1002 2003-05-14  Richard Henderson  <rth@redhat.com>
1003
1004         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
1005         to be DImode register.  Merge load_symptr.
1006         * config/ia64/ia64.md (load_symptr): Remove.
1007
1008 2003-05-14  Richard Henderson  <rth@redhat.com>
1009
1010         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
1011         DEFERRED_CONSTANT_P.
1012         * integrate.c (copy_rtx_and_substitute): Update use.
1013         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
1014         to the copy generated.
1015         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
1016         of the constant to see if we should emit.
1017         (mark_constant): Similarly.
1018         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
1019
1020 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
1021
1022         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
1023         move record condition.
1024         (movdi_internal2): Same.
1025
1026 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
1027
1028         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
1029         (GCOV_TAG_*) Force type to gcov_unsigned_t.
1030         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
1031         (struct gcov_var): Remove modified. Add start, length, offset,
1032         overread. Have buffer array for libgcov.
1033         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
1034         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
1035         * gcov-io.c (gcov_open): Set mode, do not read anything.
1036         (gcov_close): Write final block.
1037          (gcov_write_block, gcov_allocate): New.
1038         (gcov_write_bytes): Make static. Write or allocate buffer.
1039         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
1040         null.
1041         (gcov_write_string): Adjust.
1042         (gcov_write_tag)
1043         (gcov_write_length): Adjust. Flush the block.
1044         (gcov_write_tag_length): Buffer can never be null.
1045         (gcov_read_bytes): Make static. Read in block.
1046         (gcov_sync): Moved here. Adjust.
1047         (gcov_seek): Moved here. Adjust.
1048         * coverage.c (read_counts_file): Adjust.
1049         * gcov-dump.c (print_prefix): Add position parameter.
1050         (flag_dump_positions): New flag.
1051         (options, main, print_usage): Add it.
1052         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
1053         tag_summary): Adjust.
1054         * gcov.c (read_graph_file, read_count_file): Adjust.
1055         * libgcov.c (gcov_exit): Adjust.
1056
1057         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
1058         (libgcov.a): Depend on libgcc.a.
1059         (gcov.o, gcov-dump.o): Add gcov-io.c.
1060         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
1061
1062         * loop.c (check_dbra_loop): Factor common test.
1063
1064 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
1065
1066         * doc/md.texi (Automaton pipeline description): Grammar fixes.
1067
1068 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
1069
1070         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
1071         (TARGET_INITIALIZER): Include it.
1072         * target.h (struct gcc_target): Add machine_dependent_reorg field.
1073         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
1074         * system.h: Poison MACHINE_DEPENDENT_REORG.
1075
1076         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
1077         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
1078         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1079         (alpha_handle_trap_shadows): Remove "first insn" parameter.
1080         (alpha_align_insns): Likewise.
1081         (alpha_reorg): Likewise.  Make static.  Update calls to above
1082         functions.
1083
1084         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
1085         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
1086         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1087         (arm_reorg): Remove parameter.  Make static.
1088
1089         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
1090         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
1091         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1092         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
1093         Remove parameter.
1094
1095         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
1096         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
1097         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1098         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
1099         Remove parameter.
1100
1101         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
1102         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
1103         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
1104
1105         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
1106         * config/frv/frv.c: Remove orphaned comment.
1107
1108         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
1109         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
1110         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1111         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
1112         Remove parameter.
1113
1114         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
1115         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
1116         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1117         (emit_insn_group_barriers): Remove "first insn" parameter.
1118         (emit_all_insn_group_barriers): Likewise.
1119         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
1120         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
1121
1122         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
1123         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
1124         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1125         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
1126         Remove parameter.
1127
1128         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
1129         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
1130         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1131         (m68hc11_reorg): Make static.  Remove parameter.
1132
1133         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
1134         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
1135         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1136         (conditionalize_optimization): Remove parameter.
1137         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
1138         Make static.  Update call to conditionalize_optimization.
1139
1140         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
1141         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
1142         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1143         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
1144         Make static.
1145
1146         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
1147         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
1148         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1149         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
1150         Remove parameter.
1151
1152         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
1153         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
1154         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1155         (pa_combine_instructions): Remove "first insn" parameter.
1156         (remove_useless_addtr_insns): Likewise.
1157         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
1158
1159         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
1160         commented-out definition.
1161
1162         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
1163         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
1164         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1165         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
1166         Remove parameter.
1167
1168         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
1169         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
1170         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1171         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
1172         Remove parameter.
1173         (sh_output_mi_thunk): Call sh_reorg directly.
1174         * config/sh/sh.md: Update comment.
1175
1176         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
1177         commented-out definition.
1178
1179         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
1180         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
1181         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1182         (v850_reorg): Make static.  Remove parameter.
1183
1184         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
1185         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
1186         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1187         (xtensa_reorg): Make static.  Remove parameter.
1188
1189         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
1190         (TARGET_MACHINE_DEPENDENT_REORG): Document.
1191
1192 2003-05-13  Richard Henderson  <rth@redhat.com>
1193
1194         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
1195         the old decl had instantiated DECL_RTL.
1196
1197 2003-05-13  Mike Stump  <mrs@apple.com>
1198
1199         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
1200
1201 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
1202
1203         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
1204         HOST_WIDE_INT argument.
1205
1206 2003-05-13  Jason Merrill  <jason@redhat.com>
1207
1208         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
1209
1210         * tree.c (iterative_hash_expr): New fn.
1211
1212         * c-semantics.c (emit_local_var): Don't mess with temp slots if
1213         there's no initializer.
1214
1215 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
1216
1217         * final.c (final_scan_insn): Apply the effects of frame-related
1218         delay slot insns before emitting a delayed branch.
1219
1220 2003-05-13  Nick Clifton  <nickc@redhat.com>
1221
1222         * config/mcore/mcore.md (jump): Use emit_jump_insn.
1223
1224 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1225
1226         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
1227         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
1228
1229 2003-05-12  DJ Delorie  <dj@redhat.com>
1230
1231         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
1232         (emit_push_insn): Don't use push when the source alignment is less
1233         than the stack's push rounding.
1234
1235 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
1236
1237         * diagnostic.c (output_format): Add support for %m.
1238         (output_printf, output_verbatim, diagnostic_set_info,
1239         verbatim): Set err_no field of the text_info structure being
1240         initialized.
1241         (fatal_io_error): Delete function.
1242         * diagnostic.h (text_info): Add err_no field.
1243         * toplev.h (fatal_io_error): Delete prototype.
1244
1245         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
1246         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
1247         * objc/objc-act.c: Replace all calls to fatal_io_error with
1248         calls to fatal_error; add ": %m" to the end of all the affected
1249         error messages.
1250
1251 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
1252
1253         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
1254         * rtl.h: Prototype it.
1255         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
1256         when appropriate.
1257
1258 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1259
1260         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
1261         ("*iorsi3_oi"): Likewise.
1262
1263 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
1264
1265         * arm.md (compare_scc): Use shorter sequence for EQ case.
1266         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
1267         (and_scc_scc): Ensure split only applies when there is a dominance
1268         of the comparisons.
1269         (and_scc_scc_nodom): New insn-and-split pattern.
1270
1271 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
1272
1273         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
1274         to _Unwind_SetGRPtr().
1275
1276 2003-05-13  Michael Eager <eager@mvista.com>
1277
1278         * Makefile.in: Initialize program_transform_cross_name from
1279         @program_transform_name@ instead of target_alias.
1280
1281 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
1282             Alan Modra  <amodra@bigpond.net.au>
1283             Jakub Jelinek  <jakub@redhat.com>
1284
1285         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
1286         * configure: Rebuild.
1287         * config/rs6000/rs6000-protos.h: Update.
1288         * config/rs6000/rs6000.c (rs6000_tls_size): New.
1289         (rs6000_tls_size_string): New.
1290         (rs6000_parse_tls_size_option): New.
1291         (rs6000_legitimize_tls_address): New.
1292         (rs6000_tls_get_addr): New.
1293         (rs6000_got_sym): New.
1294         (rs6000_tls_symbol_ref): New.
1295         (rs6000_tls_symbol_ref_1): New.
1296         (rs6000_get_some_local_dynamic_name): New.
1297         (rs6000_get_some_local_dynamic_name_1): New.
1298         (TARGET_HAVE_TLS): New.
1299         (TARGET_CANNOT_FORCE_CONST_MEM): New.
1300         (rs6000_override_options): Handle -mtls-size option.
1301         (constant_pool_expr_1): Handle TLS symbols.
1302         (rs6000_legitimize_address): Handle TLS symbols.
1303         (rs6000_tls_referenced_p): New.
1304         (rs6000_legitimate_address): Handle TLS symbols.
1305         (rs6000_emit_move): Handle TLS symbols.
1306         (print_operand): Handle TLS symbols.
1307         (uses_TOC): Handle TLS symbols.
1308         (rs6000_emit_prologue): Use symbol for unspec constant.
1309         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
1310         (some_ld_name): New.
1311         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
1312         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
1313         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
1314         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
1315         Support TLS.
1316         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
1317         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
1318         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
1319         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
1320         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
1321         tls_tls_64): New.
1322         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
1323
1324 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
1325
1326         * Makefile.in (stage2_build, stage3_build, stage4_build):
1327         Set BUILD_CC to the same as CC.
1328
1329 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
1330
1331         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
1332
1333 2003-05-12  Andreas Schwab  <schwab@suse.de>
1334
1335         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
1336         as unused.
1337         (bundling): Initialize 'pos'.
1338         (ia64_expand_builtin): Initialize 'rmode'.
1339
1340 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
1341
1342         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
1343         (ASM_OUTPUT_ALIGNED_COMMON): Same.
1344         (ASM_OUTPUT_LOCAL): Same.
1345
1346 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
1347
1348         * varasm.c (output_constant):  Fix underflow.
1349
1350 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
1351
1352         PR other/10745
1353         * configure.in: Correct detection of GNU ld version number.
1354         * configure: Regenerated.
1355
1356 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
1357
1358         * diagnostic.c (diagnostic_for_decl): Take a
1359         diagnostic_context argument.  Restructure to be consistent
1360         with diagnostic_report_diagnostic.
1361         (diagnostic_count_diagnostic): Now static.  Take a
1362         diagnostic_info argument, not just a diagnostic_t.  Some code
1363         moved here from internal_error.  Move a case label for
1364         clarity.
1365         (diagnostic_action_after_output): New function.  Code moved
1366         here from internal_error and fatal_error.
1367         (bug_report_request): New #define so that this text appears in
1368         only one place.
1369         (diagnostic_report_diagnostic): Update to match changes to
1370         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
1371         (diagnostic_set_info): Call gettext here.
1372
1373         (pedwarn): Update comment.  Don't call gettext here.
1374         (sorry): Use report_diagnostic.  Don't call gettext here.
1375         (fatal_error): Remove final fnotice and exit, but call
1376         real_abort to prevent warnings about noreturn function returning.
1377         (internal_error): Likewise.  Don't do ICE suppression here nor
1378         call context->internal_error.
1379         (warning_with_decl): Suppress for decls in system headers.
1380         Adjust call to diagnostic_for_decl.
1381         (pedwarn_with_decl): Likewise.
1382         (error_with_decl): Adjust call to diagnostic_for_decl.
1383         (error_recursion): Use bug_report_request.
1384
1385         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
1386         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
1387         diagnostic_count_diagnostic.
1388
1389 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1390
1391         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
1392
1393 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
1394
1395         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
1396         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
1397         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
1398
1399 2003-05-12  Roger Sayle  <roger@eyesopen.com>
1400
1401         * doc/rtl.texi: Document zero_extract as a valid destination
1402         of a set insn.
1403
1404 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
1405
1406         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
1407         '.'.  Change all local symbol definitions and references to use LSYM.
1408
1409 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
1410
1411         * expr.h (assemble_static_space): Update prototype.
1412         * output.h (assemble_zeros, output_constant): Likewise.
1413         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
1414         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
1415         it 64bit clean.
1416         * elf.h (ASM_OTUPUT_SKIP): Likewise.
1417         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
1418         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1419         Expect HOST_WIDE_INT operand.
1420         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1421         Expect HOST_WIDE_INT operand.
1422         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1423         Expect HOST_WIDE_INT operand.
1424         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
1425         HOST_WIDE_INT operand.
1426         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
1427         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
1428         * aout.h (ASM_OTUPUT_SKIP): Likewise.
1429         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
1430         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
1431         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
1432         * frv.h (ASM_OTUPUT_SKIP): Likewise.
1433         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
1434         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1435         Make it 64bit
1436         clean.
1437         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
1438         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1439         Make it 64bit clean.
1440         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
1441         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
1442         HOST_WIDE_INT operand
1443         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1444         Expect HOST_WIDE_INT operand
1445         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
1446         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
1447         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
1448         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1449         Likewise.
1450         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
1451         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1452         Likewise.
1453         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1454         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1455         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1456         ASM_OUTPUT_SKIP): Likewise.
1457         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1458         Likewise.
1459         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1460         ASM_OUTPUT_SKIP): Likewise.
1461         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1462         ASM_OUTPUT_SKIP): Likewise.
1463         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
1464         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
1465         ASM_OUTPUT_SKIP): Likewise.
1466         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
1467         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
1468         ASM_OUTPUT_SKIP): Likewise.
1469         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
1470         Likewise.
1471         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
1472         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
1473         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
1474         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1475         ASM_OUTPUT_SKIP): Make it 64bit clean.
1476         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
1477         Make it 64bit clean.
1478         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
1479         ASM_OUTPUT_SKIP): Make it 64bit clean.
1480         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
1481         64bit clean.
1482         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
1483         HOST_WIDE_INT argument
1484         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
1485         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
1486         HOST_WIDE_INT argument
1487         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
1488         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
1489         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
1490         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1491         HOST_WIDE_INT argument
1492         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
1493         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
1494         * varasm.c (asm_output_bss, asm_output_aligned_bss,
1495         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
1496         HOST_WIDE_INT argument
1497
1498 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
1499
1500         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
1501         favor of walk_tree_without_duplicates.  Add comments.
1502
1503 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
1504
1505         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
1506         (struct alloc_pool_def): New element 'id'.
1507         * alloc-pool.c (fancy_abort): Extern function prototype.
1508         (abort): Macro which uses fancy_abort.
1509         (struct allocation_object_def): New structure.
1510         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
1511         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
1512         (last_id): New variable.
1513         (create_alloc_pool): Add the offset of u.data to size of element,
1514         increase and use last_id.
1515         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
1516         (pool_alloc): Likewise. Set ID for elements.
1517         (pool_free): Check whether the PTR was allocated from POOL.
1518
1519 2003-05-11  Richard Henderson  <rth@redhat.com>
1520
1521         PR c/10675
1522         * c-decl.c: Include hashtab.h.
1523         (detect_field_duplicates): New.
1524         (finish_struct): Use it.
1525         * Makefile.in (c-decl.o): Update.
1526         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
1527         (component_decl_list, component_decl_list2,
1528         components, components_notype): Build list in reverse order.
1529         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
1530
1531         * tree.c (chainon): Special case op2 null as well.
1532         Reorg for clarity.
1533
1534 2003-05-11  Roger Sayle  <roger@eyesopen.com>
1535
1536         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
1537         to implement log, logf and logl built-ins as inline x87 intrinsics.
1538         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
1539         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
1540         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
1541
1542         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
1543         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
1544
1545 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1546
1547         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
1548
1549         * sparc.c (print_operand): Fix uninitialized warning.
1550
1551 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1552
1553         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
1554         real insns.
1555         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
1556         condition.
1557
1558 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
1559
1560         * doc/cpp.texi: Fix typos.
1561
1562 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1563
1564         * config/s390/s390.c (s390_function_arg_float): New function.
1565         (s390_function_arg_pass_by_reference): Use it.
1566         (s390_function_arg_advance): Likewise.
1567         (s390_function_arg): Likewise.
1568         (s390_va_arg): Likewise
1569
1570 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
1571
1572         * coverage.h (coverage_counter_alloc): New function.
1573         * function.h (struct function): Remove arc_profile flag.
1574         * coverage.c (fn_ident): Remove.
1575         (fn_b_ctrs, no_coverage): New.
1576         (get_coverage_counts): Use current_function_funcdef_no.
1577         (coverage_counter_alloc): New.
1578         (coverage_counter_ref): Adjust.
1579         (coverage_begin_output): Check no_coverage. Use
1580         current_function_funcdef_no.
1581         (coverage_end_function): Likewise.
1582         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
1583         than clearing flag_inline_functions. Do not clear arc_profile
1584         flag.
1585         * function.c (prepare_function_start): Do not set arc_profile
1586         flag.
1587         * profile.c (instrument_edges): Return number of instrumented
1588         edges. Use a for loop.
1589         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
1590         local to here and simplify. Use profile_arc_flag not arc_profile
1591         flag.
1592         (find_spanning_tree): Reformat.
1593         * toplev.c (rest_of_compilation): Use profile_arc_flags and
1594         flag_test_coverage rather than arc_profile flag.
1595
1596 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
1597
1598         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
1599
1600 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1601
1602         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
1603
1604 2003-05-11  Bruno Haible  <bruno@clisp.org>
1605
1606         * cppfiles.c (find_or_create_entry): Preserve errno.
1607
1608 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
1609
1610         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
1611         cpplib as it's a Standard Predefined Macro.
1612         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
1613         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
1614         __STDC_HOSTED__ appropriately.
1615         * cpplib.h (_cpp_init_builtins): Update.
1616         * fix-header.c (read_scan_file): Update.
1617         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
1618
1619 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1620
1621         PR C++/689
1622         PR C++/9257
1623         * c-opts.c (c_common_decode_option): Don't set
1624         warn_ctor_dtor_privacy wen -Wall.
1625         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
1626
1627 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
1628
1629         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
1630         patch.
1631
1632 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
1633
1634         * diagnostic.c: Reorder functions for clarity, putting all the
1635         functions in the "error" family next to each other, and
1636         likewise all the functions in the "error_with_decl" family.
1637         Some other routines were moved too.  Add comments.
1638         (vbuild_message_string): Fold into sole caller.
1639
1640
1641 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1642
1643         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
1644         (EH_RETURN_HANDLER_RTX): Likewise.
1645         (expand_builtin_eh_return): Do not copy stack adjustment
1646         if EH_RETURN_STACKADJ_RTX is not defined.
1647         (expand_eh_return): Likewise.  Also, do not pass stack
1648         adjustment as argument to the eh_return pattern.
1649         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
1650         because EH_RETURN_STACKADJ_RTX is not defined.
1651         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
1652         is not defined, treat stack pointer like a regular register.
1653         (uw_init_context_1): Set up fake initial stack pointer register.
1654         (uw_install_context_1): Do not compute stack adjustment if
1655         EH_RETURN_STACKADJ_RTX is not defined.
1656
1657         * config/i386/i386.md ("eh_return"): Remove first argument.
1658         * config/mips/mips.md ("eh_return"): Likewise.
1659         * config/rs6000/rs6000.md ("eh_return"): Likewise.
1660         * config/sh/sh.md ("eh_return"): Likewise.
1661
1662         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
1663
1664 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
1665
1666         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
1667
1668 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
1669
1670         * defaults.h (GCOV_TYPE_SIZE): Remove.
1671         * gcov-io.h (gcov_type): Set to specific mode int on target.
1672         (gcov_unsigned_t, gcov_position_t): New.
1673         (GCOV_TYPE_NODE): New.
1674         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
1675         (GCOV_COUNTERS_SUMMABLE): New.
1676         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
1677         gcov_ctr_info, gcov_info): Adjust types.
1678         (gcov_var): Adjust types.
1679         (gcov_write_unsigned, gcov_write_tag,
1680         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
1681         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
1682         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
1683         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
1684         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
1685         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
1686         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
1687         __gcov_init, __gcov_merge_add): Adjust gcov types.
1688         * coverage.c (ctr_merge_functions): Constify.
1689         (ctr_names): New.
1690         (read_counts_file): Adjust gcov types. Only summarize & merge
1691         summable counters.
1692         (coverage_counter_ref): Use GCOV_TYPE_NODE.
1693         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
1694         build_ctr_info_value, build_gcov_info): Adjust types.
1695         * profile.c (branch_prob): Adjust gcov types.
1696         * gcov_dump (dump_file): Adjust gcov types.
1697
1698 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
1699
1700         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
1701         constants.
1702         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
1703         * arm.c (arm_select_dominance_cc_mode): Renamed from
1704         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
1705         Callers updated.
1706         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
1707
1708 2003-05-09  Roger Sayle  <roger@eyesopen.com>
1709
1710         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
1711         as unsigned to avoid signed/unsigned comparison warnings.
1712
1713 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
1714
1715         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
1716         instruction if the Xtensa density option is enabled.
1717
1718 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
1719
1720        * mklibgcc.in: Remove extra quotes.
1721
1722 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
1723
1724         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
1725         of int_ftype_void.
1726
1727 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
1728
1729         * reload1.c (reload_cse_move2add): Don't turn an implicit
1730         truncation into a self-set in the narrow mode.
1731
1732 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
1733
1734         * arm.md (clzsi2): The CLZ instruction is predicable.
1735
1736 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
1737
1738         * config/xtensa/xtensa.c: Formatting.
1739
1740 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
1741
1742         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
1743         instead of TREE_OPERAND to access the operand of a
1744         CONSTRUCTOR node.
1745
1746 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
1747
1748         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
1749         one operand.
1750
1751 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
1752
1753         * toplev.h (warning_with_file_and_line): Don't declare.
1754         (error_with_file_and_line): Likewise.
1755         * diagnostic.c (error_with_file_and_line): Remove.
1756         (warning_with_file_and_line): Likewise.
1757
1758 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
1759
1760         * c-parse.in (if_stmt_locus): New object.
1761         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
1762         (select_or_iter_stmt rule): Likewise.
1763         (if_stmt_file): Remove.
1764         (if_stmt_line): Likewise.
1765         * jump.c: include "diagnostic.h"
1766         (never_reached_warning): Don't use warning_with_file_and_line.
1767         * Makefile.in (jump.o): Add dependce on diagnostic.h
1768
1769 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
1770
1771         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
1772         Move code handling pieces not larger than a word to..
1773         * function.c (assign_parms): ..here, but use change_address instead
1774         of adjust_address and operand_subword, and expand_binop instead of
1775         expand_shift.  Adjust calls to move_block_from_reg.
1776         * expr.h (move_block_from_reg): Update declaration.
1777         (copy_blkmode_from_reg): Formatting.
1778         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
1779         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
1780         move_block_from_reg calls.
1781         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
1782         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
1783         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1784         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
1785         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
1786         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1787         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
1788         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
1789         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
1790
1791 2003-05-08  DJ Delorie  <dj@redhat.com>
1792
1793         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
1794         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
1795         variable-sized types).
1796         (xstormy16_function_arg): New.  Pass them that way too.
1797         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
1798         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
1799
1800 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
1801
1802         * mklibgcc.in: Use mkinstalldirs when installing multilib
1803         directories.
1804
1805 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
1806
1807         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
1808         instead of CODE_FOR_jump
1809
1810 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
1811
1812         * objc/objc-act.c (error_with_ivar): Don't use
1813         error_with_file_and_line.
1814         (warn_with_method): Don't use warning_with_file_and_line.
1815
1816 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1817
1818         * stmt.c (emit_locus): New macro.
1819         (emit_filename): Remove.
1820         (emit_lineno): Likewise.
1821         (struct stmt_status): Replace members x_emit_filename and
1822         x_emit_lineno with x_emit_locus.
1823         (set_file_and_line_for_stmt): Adjust.
1824         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
1825         (warn_if_unused_value): Likewise.
1826         (check_seenlabel): Likewise.
1827
1828 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1829
1830         * c-decl.c (define_label): Tidy.  Don't use any of
1831         error_with_file_and_line or warning_with_file_and_file.
1832         (pending_xref_error): Likewise.
1833         (store_parm_decls): Likewise.
1834         (current_function_prototype_locus): New object.  Package from
1835         current_function_prototype_file and current_function_prototype_line.
1836         (start_function): Use it.
1837         (current_function_prototype_file): Remove.
1838         (current_function_prototype_line): Remove;
1839
1840 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1841
1842         * builtins.c (readonly_data_expr): New function.
1843         (expand_builtin_memmove): Optimize any rodata source, not just
1844         strings.
1845
1846 2003-05-07  David Mosberger <davidm@hpl.hp.com>
1847
1848         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
1849
1850 2003-05-07  Richard Henderson  <rth@redhat.com>
1851
1852         * config/i386/i386.c (ix86_split_long_move): Fix base register
1853         mode for XFmode splits for TARGET_64BIT.
1854
1855 2003-05-07  Richard Henderson  <rth@redhat.com>
1856
1857         * sched-ebb.c (schedule_ebb): Supply the correct starting
1858         block number to save_line_notes.
1859
1860 2003-05-07  Richard Henderson  <rth@redhat.com>
1861
1862         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
1863         (dump_file): Likewise.
1864
1865 2003-05-07  David Mosberger <davidm@hpl.hp.com>
1866
1867         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
1868         forget to preserve gp.
1869         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
1870
1871         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
1872         .prologue directive.
1873         Use .skip instead of data8 for .bss section to make Intel
1874         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
1875         explicit in the .mib bundles and remove the unnecessary stop
1876         bits.  Replace local labels with normal labels, to make ias
1877         happy.  Don't register __do_global_ctors_aux here, do it in
1878         crtend.asm instead.
1879
1880         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
1881         __do_global_ctors_aux in .init_array section instead of
1882         declaring it as a hidden global.  Replace local labels with
1883         ordinary labels to make ias happy.
1884
1885 2003-05-07  Richard Henderson  <rth@redhat.com>
1886
1887         PR c++/10570
1888         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
1889         * flags.h, toplev.c, doc/invoke.texi: Likewise.
1890
1891         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
1892         * unwind.inc (_Unwind_DeleteException): Check for null
1893         exception_cleanup.
1894
1895         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
1896         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
1897         * unwind.h: Declare them.
1898         * libgcc-std.ver (GCC_3.3): Export them.
1899
1900 2003-05-07  Richard Henderson  <rth@redhat.com>
1901
1902         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
1903         not _Unwind_Word.
1904
1905 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
1906
1907         * stmt.c (force_label_rtx): New function, based on logic
1908         formerly found in expand_expr.
1909         * expr.h: Prototype it.
1910         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
1911         appropriate.
1912         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
1913
1914         * print-tree.c (debug_tree): Free the table after we're done
1915         with it.  Use putc.
1916
1917 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
1918
1919         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
1920         Unreverse arguments for __ev_subw.
1921
1922         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
1923
1924 2003-05-07  Nick Clifton  <nickc@redhat.com>
1925
1926         * config/stormy16/stormy-abi: Update to include
1927         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
1928         R_XSTORMY16_12 relocs.
1929
1930 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
1931
1932         * function.c (assign_parms): Correct reversed reg_parm_stack_space
1933         test.  Add partial in-regs size to stack_args_size.
1934
1935 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1936
1937         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
1938         as a C only option.
1939
1940 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
1941
1942         * gcov-io.h (GCOV_LOCKED): New #define.
1943         (GCOV_LINKAGE): Make sure it is #defined.
1944         (gcov_write_string, gcov_write_tag, gcov_write_length,
1945         gcov_read_string, gcov_time): Poison in libgcov.
1946         (gcov_seek_end): Remove.
1947         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
1948         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
1949         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
1950         GCOV_TAG_SUMMARY_LENGTH): New #defines.
1951         (gcov_write_tag, gcov_write_length): Not in libgcov.
1952         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
1953         (gcov_write_tag, gcov_write_length): Not in libgcov.
1954         (gcov_write_tag_length): New.
1955         (gcov_write_summary): Use gcov_write_tag_length.
1956         * libgcov.c: Always #include gcov-io.h.
1957         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
1958         (GCOV_LINKAGE): Define to nothing for L_gcov.
1959         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
1960         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
1961         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
1962         (read_count_file): Likewise.
1963         * gcov-dump.c (dump_file): Likewise.
1964         * coverag.c (read_counts_file): Likewise.
1965
1966 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
1967
1968         PR other/10658
1969         * gcc.c (process_command): Update copyright date.
1970
1971 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
1972
1973         * doc/install.texi (mips-*-*):  Add note about libstdc++.
1974
1975 2003-05-06  DJ Delorie  <dj@redhat.com>
1976
1977         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
1978         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
1979         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
1980
1981 2003-05-06    <neil@cat.daikokuya.co.uk>
1982
1983         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
1984         and -Wstrict-prototypes if C++.
1985
1986 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
1987
1988         * config/rs6000/linuxspe.h: New file.
1989
1990         * config.gcc: Add powerpc-*-linux-gnuspe* target.
1991
1992 2003-05-06  Richard Henderson  <rth@redhat.com>
1993
1994         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
1995         previous frame didn't save sp.  Clear sp for next frame.
1996         (uw_install_context_1): Honor saved sp from frame.
1997
1998 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
1999
2000         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
2001         (mips_move_1word, mips_move_2words): Remove declaration.
2002         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
2003         (mips_restore_gp): Remove insn argument.
2004         * config/mips/mips.h (FP_REG_RTX_P): New macro.
2005         * config/mips/mips.c (volatile_buffer): Remove.
2006         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
2007         (mips_move_1word, mips_move_2words): Remove, replacing with...
2008         (mips_output_move): ...this new function.
2009         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
2010         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
2011         handling of floating-point constants.  Handle zero CONST_DOUBLE
2012         arguments.
2013         (mips_annotate_frame_insn): Replace with...
2014         (mips_set_frame_expr): ...this, which just takes one argument.
2015         (mips_frame_set): Change the register argument to an rtx.
2016         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
2017         check whether moves should be split.  Use mips_split_64bit_move
2018         to split them.  Use mips_subword to generate the high and low
2019         parts of a paired FPR.  Adjust calls to frame_set and
2020         mips_set_frame_expr.
2021         (mips_expand_prologue): Simplify due to above changes.
2022         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
2023         targets, replacing xisting register-only versions.
2024         (UNSPEC_STORE_DF_HIGH): New unspec.
2025         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
2026         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
2027         (*paradoxical_extendhidi2): Remove.
2028         (movdi_internal, movdi_internal2): Use mips_output_move.
2029         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
2030         (movsf_internal1, movsf_internal2): Likewise.
2031         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
2032         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
2033         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
2034         Add m <- G alternative.
2035         (load_df_low, load_df_high, store_df_low): New patterns.
2036         (movhi_internal): Use @ template instead of calling a function.
2037         Remove unnecessary 'z' alternatives.
2038         (movqi_internal): Likewise.
2039         (exception_receiver): Update call to mips_restore_gp.
2040
2041 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2042
2043         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
2044         (mips_delegitimize_address): Declare.
2045         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
2046         (FIND_BASE_TERM): Define.
2047         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
2048         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
2049         Handle small-data addresses.
2050
2051 2003-05-05  Roger Sayle  <roger@eyesopen.com>
2052
2053         * real.c (real_powi): New function to calculate the value of
2054         a real raised to an integer power, i.e. pow(x,n) for int n.
2055         (real_sqrt): Convert to using the faster do_add, do_multiply
2056         and do_divide API for consistency with the rest of real.c.
2057         * real.h (real_powi): Prototype here.
2058         * builtins.c (fold_builtin):  Avoid local variable mode when
2059         evaluating sqrt at compile time.  Attempt to evaluate pow at
2060         compile-time, by checking for an integral exponent.
2061
2062 2003-05-05  Richard Henderson  <rth@redhat.com>
2063
2064         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
2065
2066 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
2067
2068         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
2069         other FreeBSD ports.
2070         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
2071         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
2072
2073 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
2074
2075         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
2076         expanded variables.
2077         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
2078
2079 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
2080
2081         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
2082         * varasm.c (struct varasm_status): Add deferred_constants field.
2083         (n_deferred_strings): Delete variable.
2084         (n_deferred_constants): New #define.
2085         (struct constant_descriptor_tree): Kill next and label fields.
2086         (const_hash_table, MAX_HASH_TABLE): Delete.
2087         (const_desc_htab): New static variable.
2088         (const_hash): Rename const_desc_hash, and make it fit the
2089         hashtab.h interface.
2090         (const_desc_eq): New.
2091         (const_hash_1, compare_constant): Const-ify arguments.
2092         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
2093         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
2094         (output_constant_def): Do the lookup/insert using the
2095         hashtab.h interface.  Don't muck with n_deferred_constants or
2096         DEFERRED_CONSTANT_P here.
2097         Always call maybe_output_constant_def_contents.
2098         (maybe_output_constant_def_contents): Take a pointer to the
2099         descriptor, not the EXP and RTL separately.  Return
2100         immediately if this constant is not deferred.  Defer output of
2101         everything, except writable string constants.  Update
2102         n_deferred_constants here.
2103         (output_constant_def_contents): Now takes just one argument,
2104         an rtx.  Clear DEFERRED_CONSTANT_P here.
2105         (mark_constant_pool): Update for rename of n_deferred_strings.
2106         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
2107
2108         (init_varasm_status): Clear p->deferred_constants.
2109         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
2110
2111 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2112
2113         * builtins.c (expand_builtin_stpcpy): Only expand when the length
2114         of the source string can be evaluated at compile-time.
2115
2116 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2117
2118         * testsuite/gcc.c-torture/compile/simd-6.c: New.
2119
2120         * c-typeck.c (digest_init): Handle arrays of vector constants.
2121
2122 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
2123
2124         * builtins.c (expand_builtin_mempcpy): New function.
2125         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
2126         ignored into strcpy no matter what arguments it has.
2127         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
2128         expand_builtin_mempcpy.
2129
2130 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2131
2132         * testsuite/gcc.dg/20030505.c: New.
2133
2134         * c-typeck.c (convert_for_assignment): Opaque pointers can
2135         interconvert.
2136
2137         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
2138         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
2139         (spe_init_builtins): Rename all pv2si_type_node to
2140         opaque_p_V2SI_type_node.
2141         Remove declaration of pv2si_type_node.
2142         (is_ev64_opaque_type): Accept opaque pointers.
2143
2144 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
2145
2146         * config/rs6000/rs6000.c (validate_condition_mode): Use
2147         flag_finite_math_only.
2148         (rs6000_reverse_condition): Never return UNKNOWN; use
2149         flag_finite_math_only.
2150         (rs6000_generate_compare): Use flag_finite_math_only.
2151         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
2152         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
2153         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
2154
2155         * toplev.c (check_global_declarations): Suppress not-used warning
2156         for volatile variables.
2157
2158 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
2159
2160         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
2161         usage of bitfield instructions for mode1 != BLKmode, only ignoring
2162         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
2163         (store_field): Likewise.
2164
2165 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2166
2167         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
2168         evsubifw to builtins accepting 5-bit unsigned constants.
2169         (easy_vector_constant): Return if V1DImode.  Fix typo.
2170
2171 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2172
2173         * config/rs6000/spe.h: Revert licensing change from last patch.
2174
2175 2003-05-05  DJ Delorie  <dj@redhat.com>
2176
2177         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
2178         before reload, but defer the split until after.
2179         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
2180         to match.
2181
2182 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
2183
2184         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
2185         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
2186
2187 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2188
2189         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
2190         is defined.
2191
2192 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2193
2194         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
2195         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
2196         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
2197
2198         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
2199         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
2200         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
2201         New.
2202
2203         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
2204         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
2205
2206         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
2207         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
2208         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
2209         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
2210         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
2211         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
2212         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
2213         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
2214         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
2215         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
2216         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
2217         BUILT_IN_STRDUP): Add "nonnull" attribute.
2218
2219 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2220
2221         * expr.c (store_field): Don't clobber TEMP in shift: it might be
2222         a variable.
2223         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
2224         whose purpose is to step up the alignment.
2225         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
2226
2227         * stor-layout.c (compute_record_mode): Relax restriction
2228         on fields crossing word boundaries forcing BLKmode.
2229
2230 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
2231
2232         * cppinit.c (cpp_create_reader, post_options): Warn about
2233         trigraphs unless explicity set or -trigraphs.
2234         * cpplex.c (warn_in_comment): New.
2235         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
2236         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
2237         * doc/cppopts.texi, doc/cpp.texi: Update.
2238
2239 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2240
2241         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
2242         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
2243         namespace clash.
2244         (GCOV_MERGE_FUNCTIONS): New.
2245         (gcov_merge_fn): Declare.
2246         (struct gcov_ctr_info): New field "merge".
2247         (__gcov_merge_add): Declare.
2248         * coverage.c (ctr_merge_functions): New.
2249         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
2250         of gcov_ctr_info type.
2251         * libgcov.c (__gcov_merge_add): New.
2252         (gcov_exit): Call a hook to merge values of counters.
2253
2254 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
2255
2256         * toplev.h (pedwarn_with_file_and_line): Don't declare.
2257         * diagnostic.c (pedwarn_with_file_and_line): Remove.
2258
2259 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2260
2261         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
2262
2263 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2264
2265         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
2266         expand_builtin_frame_address): Update prototypes.
2267         (expand_builtin_constant_p, expand_builtin_strlen,
2268         expand_builtin_strcpy, expand_builtin_memset,
2269         expand_builtin_bzero, expand_builtin_args_info,
2270         expand_builtin_frame_address): Pass in just the argument(s)
2271         needed, not the entire expression `exp'.
2272         (expand_builtin): Update all calls to these functions.
2273
2274 2003-05-03  Richard Henderson  <rth@redhat.com>
2275
2276         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
2277         <BUILT_IN_DWARF_SP_COLUMN>: New.
2278         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
2279         (BUILT_IN_DWARF_SP_COLUMN): New.
2280         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
2281         (expand_builtin_dwarf_sp_column): New.
2282         * except.h: Update to match.
2283         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
2284         (execute_cfa_program): Record location expression address
2285         before extracting length.
2286         (uw_update_context_1): Install old CFA into stack pointer column.
2287         (uw_init_context_1): Set cfa_reg to stack pointer column.
2288
2289 2003-05-03  Richard Henderson  <rth@redhat.com>
2290
2291         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
2292         return bool.
2293         (toc_relative_expr_p): Likewise.
2294         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
2295         (legitimate_constant_pool_address_p): Move from rs6000.h, change
2296         into a function, downcase all users.
2297         (legitimate_small_data_p): Likewise.
2298         (legitimate_offset_address_p): Likewise.
2299         (legitimate_indexed_address_p): Likewise.
2300         (legitimate_indirect_address_p): Likewise.
2301         (legitimate_lo_sum_address_p): Likewise.
2302         (rs6000_mode_dependent_address): Likewise.
2303         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
2304         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
2305         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
2306         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
2307         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
2308         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
2309         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
2310         * config/rs6000/rs6000-protos.h: Update.
2311
2312 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
2313
2314         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
2315         (REVERSE_CONDITION): Define.
2316
2317         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
2318         to branch_positive_comparison_operator.
2319         (ccr_bit): Check that sCOND conditions are actually a positive bit.
2320         (print_operand): Remove %D substitution.
2321         (rs6000_emit_sCOND): Generate complement operation to ensure that
2322         sCOND input is a positive bit.
2323         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
2324         same order as bCOND, and add the missing ones.  Remove the %D
2325         substitutions from the scc patterns.
2326
2327         * simplify-rtx.c (simplify_relational_operation): Add case for
2328         ! (fabs(x) < 0.0).
2329
2330 2003-05-03  Bruce Korb  <bkorb@gnu.org>
2331
2332         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
2333         in fixincl.x
2334         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
2335
2336 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
2337
2338         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
2339
2340 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
2341
2342         PR c/10604
2343         * c-common.c (warn_sign_compare): Initialize to -1.
2344         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
2345         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
2346         for C++ only.
2347         (c_common_post_options): Set warn_sign_compare from extra_warnings
2348         if it's still -1 at this point.
2349
2350         * toplev.c (maybe_warn_unused_parameter): New static variable.
2351         (set_Wextra): New static function.
2352         (W_options): Remove "extra".
2353         (decode_W_option): Call set_Wextra.
2354         (independent_decode_option): Likewise.
2355         (set_Wunused): Cooperate with set_Wextra in setting
2356         warn_unused_parameter.
2357         (rest_of_compilation): No need to check extra_warnings as
2358         well as warn_uninitialized.
2359
2360         * c-typeck.c (build_binary_op, build_conditional_expr):
2361         No need to check extra_warnings as well as warn_sign_compare.
2362         (internal_build_compound_expr): No need to check extra_warnings
2363         as well as warn_unused_value.
2364         * function.c (expand_function_end): No need to check extra_warnings
2365         as well as warn_unused_parameter.
2366         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
2367         as well as warn_unused_value.
2368
2369         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
2370
2371         * Makefile.in: Disable -Werror for gengtype-lex.o.
2372
2373 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
2374
2375         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
2376         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
2377         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
2378         * calls.c (emit_call_1): Likewise.
2379         (expand_call): For calls initializing constant memory, replace
2380         emission of standalone mem /u clobber with function usage entry.
2381         * expr.c (emit_block_move_via_libcall): Likewise.
2382         * cse.c (count_reg_usage, case EXPR_LIST): New case.
2383         * flow.c (propagate_one_insn): Pass entire operand of
2384         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
2385         * integrate.c (try_constants): For CALL_INSNs, substitute constants
2386         within the FUNCTION_USAGE also.
2387         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
2388         FUNCTION_USAGE lists.
2389         * reload1.c (replace_pseudos_in): Renamed.
2390         (reload): Use it for clobbers surviving until the end of the reload.
2391
2392 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2393
2394         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
2395         gen_lowpart on non-integer modes.
2396
2397         * stor-layout.c (place_field): When adjusting offset_align, use
2398         desired_align, not DECL_ALIGN.
2399
2400 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
2401
2402         * c-decl.c (pending_invalid_xref_file): Remove.
2403         (pending_invalid_xref_line): Remove.
2404         (pending_invalid_xref_location): New.
2405         (lookup_label): Use location_t and input_location directly.
2406         (lookup_tag): Likewise.
2407         (pending_xref_error): Likewise.
2408         (c_expand_body_1): Likewise.
2409         * c-common.c (x_expand_start_cond): Likewise.
2410         * c-semantics.c (genrtl_for_stmt): Likewise.
2411         (find_reachable_label): Likewise.
2412         * expr.c (expand_expr): Likewise.
2413         * integrate.c (output_inline_function): Likewise.
2414         * tree-inline.c (find_alloca_call): Likewise.
2415         (find_builtin_longjmp_call): Likewise.
2416         * gcc.c (input_filename): Make static.
2417
2418 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
2419
2420         * config/mips/mips.md: Fix comment typo.
2421
2422         * config/mips/mips.c (mips_integer_op): New structure.
2423         (MIPS_MAX_INTEGER_OPS): Define.
2424         (mips_const_insns): Use mips_build_integer to determine the number
2425         of instructions needed to load a CONST_INT.
2426         (move_operand): Reject compound CONST_INTs.
2427         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
2428         (mips_move_integer): New fn.
2429         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
2430         (mips_legitimize_move): Only legitimize constants when moving
2431         word or subword values.
2432
2433 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
2434
2435         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
2436
2437 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2438
2439         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
2440         modifying it.
2441
2442 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2443             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2444
2445         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
2446         Hernandez, and Kazu Hirata.  Update Richard Henderson.
2447
2448 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
2449
2450         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
2451         to tentative declaration.
2452
2453         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
2454         (SYMBOL_FLAG_SMALL_V4): Delete.
2455         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
2456         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
2457         (rs6000_elf_in_small_data_p): Add extra section names.  Add
2458         comment about TREE_PUBLIC test.
2459
2460         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
2461         expand_stmt on result of expand_unreachable_stmt.
2462
2463 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2464
2465         * doc/contrib.texi (Contributors): Add Daniel Berlin.
2466
2467 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
2468
2469         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
2470         number of automata.
2471
2472         * config/rs6000/rs6000.c (symbol_ref_operand): Check
2473         SYMBOL_REF_FUNCTION_P on AIX.
2474         (current_file_function_operand): Same.
2475         * config/rs6000/rs6000.md (call,call_value): Force non-function
2476         symbol_ref into register on AIX.
2477
2478 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
2479
2480         * calls.c (struct arg_data): Move offset, slot_offset, size and
2481         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
2482         (initialize_argument_information): Adjust call to locate_and_pad_parm.
2483         Delete alignment_pad var.  Don't calculate slot_offset here.
2484         (emit_library_call_value_1): Delete alignment_pad, offset and size
2485         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
2486         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
2487         partial in-regs here.  Formatting fixes.
2488         * expr.h (struct locate_and_pad_arg_data): New struct.
2489         (locate_and_pad_parm): Adjust declaration.
2490         * function.c (assign_parms): Localize vars.  Use "locate" instead of
2491         other arg location vars.  Don't invoke FUNCTION_ARG or
2492         FUNCTION_INCOMING_ARG unless pretend_named is different from
2493         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
2494         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
2495         Use slot_offset for stack home of reg parms.  Correct test for
2496         parm passed in memory.  Formatting fixes.
2497         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
2498         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
2499         Correct initial_offset_ptr handling.  Localize vars.  Always pad
2500         locate->offset even when in_regs.
2501
2502 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
2503
2504         * Makefile.in (TREE_H): Replace location.h with input.h.
2505         (GTFILES) Remove location.h
2506         (gt-lists.h): Replace gt-location.h with gt-input.h
2507         * input.h (input_filename, input_line): Remove variables.
2508         (location_s, location_t): Move from location.h.
2509         (input_location): New.
2510         (input_filename, input_line): New #defines.
2511         * location.h: Remove.
2512         * tree.h: Replace location.h with input.h.
2513         (input_filename, input_line): Remove.
2514         * diagnostic.h: Replace location.h with input.h.
2515         * gcc.h (input_filename, input_filename_length): Remove declarations.
2516         * toplev.c (input_filename, input_line): Remove.
2517         (input_location): Define.
2518         (push_srcloc, pop_srcloc): Adjust.
2519         * diagnostic.c (diagnostic_report_current_module): Adjust.
2520
2521 2003-05-02  Nick Clifton  <nickc@redhat.com>
2522
2523         * configure.in: Add xstormy16 to list of targets that has a nop
2524         instruction and hence which can be tested to see if the
2525         assembler supports the --gdwarf2 switch.
2526         * configure: Regenerate.
2527
2528 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2529
2530         PR target/8257
2531         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
2532         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
2533         Avoid undefined shifts by making the shift operand unsigned.
2534
2535 2003-05-01  DJ Delorie  <dj@redhat.com>
2536
2537         * reload.c (find_reloads): Also check that all of a multi-reg
2538         value is in the class.
2539
2540 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2541
2542         * scan.h (lineno): Revert the rename here.
2543
2544 2003-05-01  Stan Shebs  <shebs@apple.com>
2545
2546         * config/darwin.c (darwin_encode_section_info): Call
2547         default_encode_section_info.
2548
2549 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
2550
2551         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
2552         (movsi_internal1): Use new mfjmpr attribute.
2553         (movhi_internal): Same.
2554         (movqi_internal): Same.
2555         (movcc_internal1): Same.
2556         (movdi_internal64): Same.
2557         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
2558         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
2559         * config/rs6000/40x.md: Add fpu_405.
2560         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
2561         into power4misc automata.  Remove extraneous parentheses.
2562         * config/rs6000/440.md: New file.
2563         * config/rs6000/rs6000.c (processor_target_table): Add 440,
2564         440fp.  Rename 405f to 405fp.
2565         (function_arg_padding): Correct formatting.
2566         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
2567
2568 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2569
2570         * input.h (lineno): Rename to ...
2571         (input_line): ... here.
2572         * tree.h (lineno): Rename to ...
2573         (input_line): ... here.
2574         * scan.h (lineno): Rename to ...
2575         (input_line): ... here.
2576         * toplev.c (lineno): Rename to ...
2577         (input_line): ... here.
2578         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
2579         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
2580         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
2581         store_parm_decls, c_expand_body_1): Likewise.
2582         * c-errors.c (pedwarn_c99): Likewise.
2583         * c-format.c (status_warning): Likewise.
2584         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
2585         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
2586         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
2587         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
2588         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
2589         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
2590         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
2591         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
2592         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
2593         * coverage.c (create_coverage): Likewise.
2594         * diagnostic.c (pedwarn, sorry, error, fatal_error,
2595         internal_error, warning, diagnostic_report_current_module,
2596         inform): Likewise.
2597         * expr.c (expand_expr): Likewise.
2598         * integrate.c (expand_inline_function,
2599         output_inline_function): Likewise.
2600         * rtl-error.c (file_and_line_for_asm): Likewise.
2601         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
2602         walk_tree): Likewise.
2603         * tree.c (make_node): Likewise.
2604         * ada, cp, f, java, objc, treelang: Likewise.
2605         * objc/objc-act.c (objc_init): Rename lineno to input_line.
2606         (build_module_descriptor, build_selector_translation_table,
2607         build_protocol_template, build_method_prototype_list_template,
2608         build_category_template, build_selector_table,
2609         build_class_template, build_super_template, build_ivar_template,
2610         build_ivar_list_template, build_method_list_template,
2611         build_method_template, add_instance_variable): Likewise.
2612
2613         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
2614         name from input_filename.
2615
2616 2003-04-30  Eric Christopher  <echristo@redhat.com>
2617             Richard Sandiford <rsandifo@redhat.com>
2618
2619         * configure: Regenerate from patches below.
2620         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
2621         for all symbolic operands.
2622         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
2623         to function.
2624         * config/mips/linux.h: Fix typo.
2625         * Merge from mips-3_4-rewrite branch:
2626
2627         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
2628
2629                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
2630                 handling local labels when TARGET_ABICALLS.
2631
2632         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
2633
2634                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
2635                 integer argument.
2636                 (mips_expand_call): Likewise.
2637                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
2638                 (FIXED_REGISTERS): Clear $31 entry.
2639                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
2640                 (EPILOGUE_USES): Define.
2641                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
2642                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
2643                 (override_options): Add a 'j' register class.
2644                 (mips_expand_call): Handle sibcalls
2645                 (mips_expand_epilogue): Handle epilogues for sibcalls.
2646                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
2647                 (sibcall_epilogue): New pattern.
2648                 (call, call_value): Adjust calls to mips_expand_call.
2649                 (sibcall, sibcall_value): New expanders.
2650                 (sibcall_internal, sibcall_value_internal): New patterns.
2651                 (sibcall_value_multiple_internal): New pattern.
2652
2653         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
2654
2655                 * config/mips/mips.md (extended_mips16): New attribute.
2656                 (define_attr length): Default to 8 if extended_mips16 == yes.
2657                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
2658                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
2659                 (call_internal): Set extended_mips16 to yes for direct jumps.
2660                 Remove redundant mode attribute.
2661                 (call_value_internal, call_value_multiple_internal): Likewise.
2662                 (call_split): Remove redundant mode attribute.
2663                 (call_value_split, call_value_multiple_split): Likewise.
2664
2665                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
2666                 of unaligned offsets.
2667
2668                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
2669                 of SYMBOL_GENERAL.
2670
2671         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
2672
2673                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
2674                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
2675                 for mips16 code.
2676
2677         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
2678
2679                 * config/mips/mips.h (ADDRESS_COST): Define.
2680
2681         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
2682
2683                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
2684                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
2685                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
2686
2687         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
2688
2689                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
2690                 of a two-instruction sequence.  Add register->memory alternative.
2691                 (truncdihi2, truncdiqi2): Likewise.
2692                 Rework shift/truncate instructions so that they only handle right
2693                 shifts of 32 (or more, in the case of arithmetic shifts).
2694                 Add patterns for truncate/sign-extend.
2695
2696         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2697
2698                 * configure.in (mips*-*-*): Check for explicit relocation support.
2699                 * configure: Regenerate.
2700
2701         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2702
2703                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
2704                 and -mno-explicit-relocs.
2705                 (MASK_EXPLICIT_RELOCS): Define.
2706                 (TARGET_EXPLICIT_RELOCS): Use it.
2707                 (mips_split_addresses): Remove declaration.
2708                 * config/mips/mips.c (override_options): Update comment for
2709                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
2710
2711         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2712
2713                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
2714                 a CONST as identity.  Check the return value of gen_lowpart_common.
2715
2716         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2717
2718                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
2719                 references for TARGET_EXPLICIT_RELOCS.
2720                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
2721                 !TARGET_MIPS16.
2722
2723         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2724
2725                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
2726                 (addsi3): Remove redundant constraints.
2727                 (addsi3_internal): Use separate register & constant alternatives.
2728                 Use a 'Q' constraint and "addiu" insn for the latter.
2729                 (adddi3_internal_3, addsi3_internal_2): Likewise.
2730
2731         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2732
2733                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
2734                 (mips_expand_unaligned_store): Declare.
2735                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
2736                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
2737                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
2738                 (UNSPEC_ULD, UNSPEC_USD): Remove.
2739                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
2740                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
2741                 (extv, extzv): Use mips_expand_unaligned_load.
2742                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
2743                 predicate for operand 3.
2744                 (movsi_ulw, movsi_usw): Replace with...
2745                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
2746                 (movdi_uld, movdi_usd): Likewise replace with...
2747                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
2748
2749         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
2750
2751                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
2752                 * config/mips/mips.h (LEA_REGS): New register class.
2753                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
2754                 (GR_REG_CLASS_P): Include LEA_REGS.
2755                 (DANGEROUS_FOR_LA25_P): New macro.
2756                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
2757                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
2758                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
2759                 entries to LEA_REGS.
2760                 (mips_global_pic_constant_p): New function.
2761                 (override_options): Add 'e' register constraint.
2762                 (mips_secondary_reload_class): Return LEA_REGS when reloading
2763                 a dangerous constant into a class containing $25.
2764                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
2765                 (movsi_internal): Likewise.
2766
2767         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
2768
2769                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
2770                 * config/mips/mips.md (call_split): New insn.
2771                 (call_value_split, call_value_multiple_split): New insns.
2772                 (call_internal): Turn into a define_insn_and_split.  Split the
2773                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
2774                 (call_value_internal, call_value_multiple_internal): Likewise.
2775
2776         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
2777
2778                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
2779                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
2780                 (mips_encode_section_info): Don't take symbol visibility into
2781                 account if TARGET_ABICALLS.  Add more commentary.
2782                 * config/mips/mips.md: Add commentary above reloc constants.
2783
2784         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
2785
2786                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
2787                 from mips_legitimize_move.  Legitimize constant pool references.
2788                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
2789                 a REG_EQUAL note to the last instruction.
2790
2791         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
2792
2793                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
2794                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
2795                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
2796                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
2797                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
2798                 (UNSPEC_RELOC_GPREL16): Rename to...
2799                 (RELOC_GPREL16): ...this.
2800                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
2801                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
2802                 (macro_calls): New attribute.
2803                 (length): Use it to set the default length of calls.  Don't allow
2804                 calls to have delay slots if macro_calls is "yes".
2805                 (luisi, luidi): New patterns.
2806                 (lowsi, lowdi): Use '%R' to print the relocation.
2807                 (lowdi_extend): Remove.
2808                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
2809                 (call_internal): Merge alternatives.  Always use "jal".
2810                 (call_value_internal, call_value_multiple_internal): Likewise.
2811                 (reloc_gprel16): Remove.
2812                 * config/mips/mips.c (mips_got_alias_set): New variable.
2813                 (mips_classify_constant): Handle the new relocation constants.
2814                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
2815                 (mips_symbolic_address_p): Return false if generating explicit relocs.
2816                 Otherwise allow local PIC symbols to have an offset.
2817                 (mips_splittable_symbol_p): New function.
2818                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
2819                 (mips_const_insns): Always accept HIGH.
2820                 (call_insn_operand): Don't accept global symbols if using explicit
2821                 relocs.
2822                 (move_operand): Don't accept HIGH when generating PIC.
2823                 (mips_reloc, mips_lui_reloc): New functions.
2824                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
2825                 be a valid right-hand-side for a SET pattern.
2826                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
2827                 (mips_emit_high): New function.
2828                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
2829                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
2830                 address should be used.  Use mips_emit_high to generate the
2831                 high part of such an address.  Adjust the global symbol + offset
2832                 case to match the change to mips_force_temprorary.
2833                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
2834                 If generating explicit-reloc PIC, load the address of global
2835                 symbols from the GOT.  Use mips_emit_high to emit the high part
2836                 of an address.
2837                 (mips_simplify_dwarf_addr): New function.
2838                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
2839                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
2840                 (mips_expand_call): Load the addresses of global functions using
2841                 %call* relocs if generating explicit-reloc PIC.  Don't generate
2842                 an exception_receiver pattern.
2843                 (override_options): Initialize mips_got_alias_set.
2844                 (print_relocation): Remove in favour of...
2845                 (mips_reloc_string): ...this new function.
2846                 (print_operand): Handle '%R'.  Use mips_reloc_string.
2847                 (print_operand_address): Use print_operand to print the symbolic
2848                 part of a LO_SUM address.
2849                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
2850                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
2851                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
2852                 for local symbols.
2853
2854         2003-02-02  Eric Christopher  <echristo@redhat.com>
2855
2856                 * config/mips/mips.c (mips_sign_extend): Remove.
2857                 * config/mips/mips-protos.h: Ditto.
2858                 * config/mips/mips.md (movdi_internal2_extend): Remove.
2859                 (extendsidi2): Fix mode of convert_memory_address.
2860
2861         2003-01-24  Eric Christopher  <echristo@redhat.com>
2862
2863                 * config/mips/mips.md: Rewrite zero_extend* and extend*
2864                 patterns. Use explicit instructions and split after reload
2865                 for register extensions.
2866                 (ashlsi3_internal1_extend): New combiner pattern for
2867                 shift and extend combinations.
2868                 * config/mips/mips.h: Change Pmode back to ptr_mode
2869                 for performance enhancement.
2870                 * combine.c (expand_compound_operation): Make sure
2871                 that zero_extend operation is profitable.
2872
2873         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
2874
2875                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
2876                 addresses depend on ptr_mode rather than Pmode.
2877                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
2878                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
2879                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
2880                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
2881                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
2882                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
2883                 (tablejump_internal1): Remove condition.
2884                 (tablejump_internal2): Change condition to TARGET_64BIT.
2885                 (cpaddsi): Rename to...
2886                 (cpadd): ...this.
2887                 (cpadddi): Remove.
2888
2889         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
2890
2891                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
2892                 mips_address_cost, mips_check_split, double_memory_operand,
2893                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
2894                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
2895                 (mips_legitimate_address_p): Return bool.
2896                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
2897                 mips_legitimize_address, mips_legitimize_move,
2898                 mips_expand_call): Declare.
2899                 (mips_return_addr): Move outside #ifdef RTX_CODE.
2900
2901                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
2902                 (PIC_FN_ADDR_REG): New reg_class.
2903                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
2904                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
2905                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
2906                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
2907                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
2908                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
2909                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
2910                 (LEGITIMATE_PIC_OPERAND): Undefine.
2911                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
2912                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
2913                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
2914                 (FUNCTION_MODE): Change to SImode.
2915                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
2916                 most constants.  Treat const_artih_operands specially if they
2917                 occur in a PLUS or MINUS.
2918                 (CONSTANT_POOL_COST): New macro.
2919                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
2920                 Add LO_SUM handling.
2921                 (ADDRESS_COST): Undefine.
2922                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
2923                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
2924                 to call_insn_operand and remove CONST_INT.
2925
2926                 * config/mips/mips.c: Include integrate.h.
2927                 (SINGLE_WORD_MODE_P): New macro.
2928                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
2929                 (mips_constant_info, mips_address_info): New structs.
2930                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
2931                 (mips_classify_constant, mips_classify_symbol,
2932                 mips_valid_base_register_p, mips_symbolic_address_p,
2933                 mips_classify_address, mips_symbol_insns,
2934                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
2935                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
2936                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
2937                 mips_print_relocation): New functions.
2938                 (const_arith_operand): New operand predicate.
2939                 (arith_operand): Use it.
2940                 (mips_const_double_ok, mips16_simple_memory_operand,
2941                 simple_memory_operand, double_memory_operand, mips_check_split,
2942                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
2943                 mips16_gp_offset_p, mips16_output_gp_offset,
2944                 mips16_constant_after_function_p, mips16_constant): Remove.
2945                 (call_insn_operand): Be more fussy about symbolic constants.
2946                 Use register_operand.
2947                 (move_operand): Use mips_symbolic_address_p to check symbolic
2948                 operands and general_operand to check the rest.
2949                 (symbolic_operand): Use mips_classify_constant.
2950                 (mips_legitimate_address_p): Use mips_classify_address.
2951                 (mips_move_1word): Combine handling of symbolic addresses.
2952                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
2953                 (move_move_2words): Likewise.  Assume addresses are offsettable
2954                 if they need to refer to more than one word.  Add HIGH handling.
2955                 (mips_restore_gp): Use ptr_mode for the GP save slot.
2956                 (mips_expand_call): New function, combining the old mips.md
2957                 call and call_internal define_expands.  If the address isn't
2958                 a call_insn_operand, force it into a register.  For SVR4 PIC,
2959                 emit an exception_receiver instruction after the call.
2960                 (override_options): Only override flag_pic for TARGET_ABICALLS
2961                 if it is currently zero.  Allow mips_split_addresses when
2962                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
2963                 Add new register class letter, 'c'.
2964                 (print_operand): Use mips_classify_constant for constant operands.
2965                 (print_operand_address): Use mips_classify_address.
2966                 (mips_output_function_prologue): Don't use .cprestore.
2967                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
2968                 via the frame pointer if current_function_calls_eh_return.
2969                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
2970                 to mark whether a symbol is local or global.
2971                 (build_mips16_call_stub): Expect the address of the function rather
2972                 than a MEM reference to it.  Update call generation sequences.
2973                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
2974                 small-data adjustments.
2975
2976                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
2977                 length for loads and stores.
2978                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
2979                 (define_attr type): Add const and prefetch.
2980                 (define_attr length): Use mips_const_insns for const instructions.
2981                 Use mips_fetch_insns for load and store instructions.
2982                 (define_attr single_insn): New.
2983                 (define_attr can_delay): Use it.
2984                 (define_attr abicalls): Remove.
2985                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
2986                 (addsi3_internal_2): Add 'Q' constraint.
2987                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
2988                 (high): Remove.
2989                 (lowsi): Renamed from low.
2990                 (lowdi): New pattern.
2991                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
2992                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
2993                 (loadgp): Change operand 0 to an immediate_operand.
2994                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
2995                 beforehand.
2996                 (cpaddsi, cpadddi): New patterns.
2997                 (tablejump_internal3, tablejump_internal4): Remove define_expands
2998                 and associated define_splits.
2999                 (call, call_value): Use mips_expand_call.
3000                 (call_internal): New, replacing all existing call_internal* insns.
3001                 (call_value_internal): Likewise call_value_internal*.
3002                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
3003                 (untyped_call): Remove if (operands[0]) magic.
3004                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
3005                 (prefetch_di_address, prefetch_di): Likewise.
3006                 (leasi, leadi): Remove.
3007                 (reloc_gprel16): New.
3008
3009                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
3010                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
3011                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
3012
3013         2003-01-08  Eric Christopher  <echristo@redhat.com>
3014
3015                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
3016                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
3017                 configure check for libgloss.
3018                 * config/mips/elf64.h: Ditto.
3019                 * config/mips/mips.c: Remove ABI_MEABI.
3020                 * config/mips/mips.h: Ditto.
3021
3022         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
3023
3024                 Fix merge fallout.
3025                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
3026                 (muldi3_internal): Remove outdated comment.
3027                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
3028                 (*smsac_di, *umsac_di): Likewise.  Reformat.
3029                 (umulsi3_highpart): Minor formatting tweaks.
3030                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
3031                 redundant scratch operand.  Minor formatting tweak.
3032                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
3033                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
3034                 (smulsi3_highpart): As for the unsigned version.
3035                 (smulsi3_highpart_internal): Likewise.
3036                 (smulsi3_highpart_mulhi_internal): Likewise.
3037                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
3038                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
3039                 (*smul_acc_di): Remove duplicated pattern.
3040                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
3041                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
3042                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
3043
3044         2002-10-22  Eric Christopher  <echristo@redhat.com>
3045
3046                 * config/mips/mips-protos.h (mips_return_addr): New.
3047                 * config/mips/mips.c (mips_return_addr): New.
3048                 (movdi_operand): Remove.
3049                 (se_register_operand): Ditto.
3050                 (se_reg_or_0_operand): Ditto.
3051                 (se_uns_arith_operand): Ditto.
3052                 (se_arith_operand): Ditto.
3053                 (se_nonmemory_operand): Ditto.
3054                 (extend_operator): Ditto.
3055                 (highpart_shift_operator): Ditto.
3056                 (mips_initial_elimination_offset): Remove return address pointer
3057                 elimination.
3058                 (mips_reg_names): Remove $ra.
3059                 (mips_regno_to_class): Ditto.
3060                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
3061                 and TARGET_64BIT.
3062                 (POINTER_BOUNDARY): Remove.
3063                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
3064                 (PROMOTE_MODE): Promote to Pmode.
3065                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
3066                 (Pmode): Define to TARGET_64BIT.
3067                 (FUNCTION_MODE): Define as Pmode.
3068                 (mips_args): Remove deleted functions.
3069                 (SIZE_TYPE): Depend on POINTER_SIZE.
3070                 (PTRDIFF_TYPE): Ditto.
3071                 (FIXED_REGISTERS): Fix extra registers.
3072                 (CALL_USED_REGISTERS): Ditto.
3073                 (CALL_REALLY_USED_REGISTERS): Ditto.
3074                 (RAP_REG_NUM): Remove.
3075                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
3076                 (RETURN_ADDR_RTX): Define to mips_return_addr.
3077                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
3078                 (CAN_ELIMINATE): Ditto.
3079                 * config/mips/mips.md: For DImode patterns, take into account
3080                 deletions above. Split mulsidi patterns into sign_extend and
3081                 zero_extend.
3082
3083         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
3084                     Michael Meissner  <meissner@redhat.com>
3085
3086                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
3087                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
3088                 mop up unnecessarly moves through LO.
3089                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
3090                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
3091                 change mtlo/macc sequences into mul/add sequences when a three-
3092                 address mul is available.
3093                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
3094                 (*mul_sub_si): Fix contraint for operand 5.
3095                 (*muls): Use in 32-bit code as well.
3096                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
3097                 if the destination is LO.  Remove duplicate define_split.
3098                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
3099                 (*msac_di): Likewise.  Fix formatting.
3100                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
3101                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
3102                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
3103                 (*xmulsi3_neg_highpart_mulhi): Likewise.
3104                 (*mul_acc_64bit_di): Remove.
3105                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
3106
3107         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
3108
3109                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
3110                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
3111                 (MULTILIB_DIRNAMES): Remove long32.
3112                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
3113                 (MULTILIB_REDUNDANT_DIRS): Remove.
3114
3115         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
3116
3117                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
3118                 * gcc.c (driver_self_specs): New variable.
3119                 (do_self_spec): New function.
3120                 (main): Use it to process driver_self_specs.
3121
3122         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
3123
3124                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
3125                 Remove DImode define_split for !TARGET_64BIT.
3126                 (anddi3): Remove !TARGET_64BIT support from here as well.
3127                 Change operand 2's predicate to se_uns_arith_operand.
3128                 Add constant alternatives to define_insn.
3129                 (iordi3, xordi3, *nordi3): Likewise.
3130                 (anddi3_internal1, xordi3_immed): Remove.
3131
3132         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3133
3134                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
3135                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
3136                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
3137                 * config/mips/mips.md: Apply same renaming here.
3138
3139         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3140
3141                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
3142                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
3143                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
3144                 * config/mips/mips.md (define_attr cpu): Remove r4320.
3145                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
3146
3147         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3148
3149                 * config/mips/mips.c (mips16_strings): New variable.
3150                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
3151                 symbol in mips16_strings.  Free the list.
3152                 (mips_encode_section_info): Keep track of local strings.
3153
3154         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3155
3156                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
3157                 (sordered_df, sordered_sf): Remove.
3158                 * config/mips/mips.c (get_float_compare_codes): New fn.
3159                 (gen_int_relational, gen_conditional_move): Use it.
3160
3161         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3162
3163                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
3164                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
3165                 * config/mips/mips.c (fcc_register_operand): New function.
3166                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
3167                 (override_options): Allow TFmode values in float registers
3168                 if ISA_HAS_8CC.
3169                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
3170                 to fcc_register_operand.  Remove misleading source constraint.
3171                 Use mips_emit_fcc_reload.
3172                 (reload_outcc): Duplicate reload_incc.
3173
3174
3175 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
3176
3177         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
3178
3179 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
3180
3181         * tree-inline.c (inlinable_function_p): Back out last change, it's
3182         unnecessary.
3183
3184 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
3185
3186         * ggc-page.c (TREE_EXP_SIZE): Define.
3187         (extra_order_size_table): New entry for expr trees with
3188         two operands.
3189
3190 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3191
3192         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
3193         (c_expand_start_cond): Adjust.
3194         (c_expand_end_cond): Don't use warning_with_file_and_file.
3195         (shadow_warning): Likewise.
3196
3197 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
3198
3199         * tree.h (DECL_POINTER_DEPTH): Remove.
3200         (struct tree_decl): Remove pointer_depth.
3201
3202 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
3203
3204         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
3205         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
3206         (rs6000_xcoff_encode_section_info): Remove.
3207         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
3208         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
3209         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
3210         Use SYMBOL_REF_FLAGS.
3211         (rs6000_elf_encode_section_info): Call default_encode_section_info for
3212         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
3213         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
3214         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
3215         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
3216         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
3217
3218 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3219
3220         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
3221
3222 2003-04-30  Andreas Schwab  <schwab@suse.de>
3223
3224         * doc/extend.texi (Other Builtins): Enclose multiple word data
3225         type in braces for @deftypefn.
3226
3227 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3228
3229         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
3230
3231         * doc/install.texi (--enable-threads): Document "gnat" option.
3232
3233 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3234
3235         * diagnostic.h (output_formatted_scalar): Tweak.
3236         * diagnostic.c (output_long_decimal): Likewise.
3237         (output_unsigned_decimal): Likewise.
3238         (output_long_unsigned_decimal): Likewise.
3239         (output_octal): Likewise.
3240         (output_long_octal): Likewise.
3241         (output_hexadecimal): Likewise.
3242         (output_long_hexadecimal): Likewise.
3243         (output_pointer): New function.
3244         (output_format): Use it.  Recognize "%p" format specifier.
3245
3246 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3247
3248         * function.c (purge_addressof_1): Postpone insn in fewer cases.
3249
3250 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
3251
3252         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
3253         call abort() after running out of stack space.
3254
3255         * c-typeck.c (function_types_compatible_p): Ignore incompatible
3256         'volatile' qualifiers on a function's return type in GNU mode.
3257
3258 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
3259
3260         * expr.c (emit_group_load): Dump parallels of simd types to
3261         memory.
3262
3263 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
3264
3265         * genautomata.c (add_vect): Check undefined value for range type
3266         too.
3267
3268 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
3269
3270         * configure.in:  More general test for cmp --ignore-initial.
3271         * configure:  Regenerate.
3272
3273 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3274
3275         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
3276         (layout_decl, place_field): Likewise.
3277         Also make minor type and whitespace changes.
3278
3279         * tree.c (save_expr): Don't fold a COMPONENT_REF.
3280
3281 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
3282
3283         * calls.c (expand_call): When modes of target and valreg match, force
3284         sibcall failure when target is a MEM.
3285
3286 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
3287
3288         * tree-inline.c (inlinable_function_p): Don't support inlining
3289         functions using varargs.
3290
3291         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
3292
3293         * dwarf2out.c (output_call_frame_info): No need to output EH
3294         unwind information if all_throwers_are_sibcalls.
3295
3296         * c-semantics.c (expand_unreachable_stmt): Return a tree.
3297         (expand_stmt): Update for change to expand_unreachable_stmt.
3298         (expand_unreachable_if_stmt): Likewise.
3299
3300         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
3301
3302 2003-04-29  Jason Merrill  <jason@redhat.com>
3303
3304         PR middle-end/10336
3305         * jump.c (never_reached_warning): Really stop looking if we reach
3306         the beginning of the function.
3307
3308 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
3309
3310         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
3311         Remove redundant macros.
3312         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
3313         (LOCAL_LABEL_PREFIX): Define unconditionally.
3314         (NO_DOT_IN_LABEL): Clarify comment.
3315         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
3316         definition to "long int".
3317
3318 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
3319
3320         bootstrap/10452
3321         * gengtype-yacc.y: Improve portability.
3322
3323 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
3324
3325         * config.gcc: Install obsolete target list for GCC 3.3.
3326         * doc/install.texi: Mention in specific-target instructions
3327         that certain configurations are deprecated.
3328
3329 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
3330
3331         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
3332
3333 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3334
3335         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
3336         * gcc.c (display_help): Likewise.
3337         * toplev.c (f_options): Likewise.
3338         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
3339         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
3340         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
3341         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
3342         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
3343
3344 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
3345
3346         * varasm.c (default_assemble_visibility): Use assemble_name.
3347
3348 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
3349
3350         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
3351         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
3352         (SIZE_TYPE): New macro.
3353         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
3354         (SET_ASM_OP): New macro.
3355         (HANDLE_SYSV_PRAGMA): New macro.
3356         (ASM_WEAKEN_LABEL): New macro.
3357
3358 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
3359
3360         PR c++/10180
3361         * tree-inline.c (expand_call_inline): Call push_srcloc when
3362         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
3363
3364 2003-04-28  Mike Stump  <mrs@apple.com>
3365
3366         * gdbinit.in: Update to reflect new identifier structure.
3367
3368 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
3369
3370         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
3371         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
3372         struct tree_complex, struct tree_vector): Remove RTL field.
3373         (CONSTRUCTOR_ELTS): Use elt 0.
3374         * tree.def (CONSTRUCTOR): Delete first of its two operands.
3375         * varasm.c (output_constant_def): Remove early exit if
3376         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
3377         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
3378         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
3379         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
3380
3381 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
3382
3383         * c-decl.c (finish_decl): When prototype with asmspec is found
3384         for built-in, adjust built_in_decls as well as expr.c decls.
3385         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
3386         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
3387         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
3388
3389 2003-04-28  Richard Henderson  <rth@redhat.com>
3390
3391         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
3392         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
3393         integral constant mult operand.
3394         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
3395         (const_smulsi3_highpart_v8plus): Likewise.
3396         (const_smulsi3_highpart): Likewise.
3397         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
3398         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
3399         (const_umulsi3_highpart_v8plus): Likewise.
3400         (const_umulsi3_highpart): Likewise.
3401
3402 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
3403
3404         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
3405         Define as 1.
3406
3407 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
3408
3409         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
3410
3411 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
3412
3413         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
3414         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
3415         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
3416         functions.
3417         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
3418
3419 2003-04-28  Nick Clifton  <nickc@redhat.com>
3420
3421         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
3422
3423 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
3424
3425         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
3426         output_constant_def, use its result instead of TREE_CST_RTL (exp).
3427         Can assume it has the form (mem (symbol_ref ".LCxxx")).
3428         (expand_expr <COMPONENT_REF>): Can always just extract the
3429         relevant field of a CONSTRUCTOR.
3430         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
3431         ARRAY_RANGE_REF>): Make control flow explicit.
3432         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
3433         an INTEGER_CST.
3434
3435 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
3436
3437         * reload1.c (reg_set_luid): Fix a comment typo.
3438
3439 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
3440
3441         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
3442         struct deferred_string, const_str_htab): Kill.
3443         (n_deferred_strings): New static variable.
3444         (build_constant_desc): Set SYMBOL_REF_DECL of the new
3445         symbol_ref to point to the constant.
3446         (output_constant_def): When a deferred string is forced out,
3447         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
3448         (mark_constant): Likewise.
3449         (maybe_output_constant_def_contents): When deferring a string
3450         constant, just set STRING_POOL_ADDRESS_P and increment
3451         n_deferred_strings.
3452         (mark_constant_pool): Check n_deferred_strings, not the size
3453         of const_str_htab.
3454         (init_varasm_once): No need to create const_str_htab.
3455
3456         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
3457         SYMBOL_REF_DECL points to a constant.
3458
3459 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
3460
3461         * varasm.c (output_constant_def): Split out two new static
3462         functions, build_constant_desc and maybe_output_constant_def_contents.
3463         Restructure for comprehensibility.  Don't call
3464         output_addressed_constants.  Treat defstr being non-NULL for
3465         STRING_POOL_ADDRESS_P constants as an invariant.
3466         (struct deferred_string): Remove labelno field.
3467         (output_constant_def_contents): Kill labelno argument. Call
3468         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
3469         asm_out.internal_label.
3470         (mark_constant): Update call to output_constant_def_contents.
3471         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
3472         constants as an invariant.
3473
3474 2003-04-26  Richard Henderson  <rth@redhat.com>
3475
3476         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
3477         (ix86_expand_call, ix86_rtx_consts): Likewise.
3478
3479 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3480
3481         * doc/md.texi (cmpstr): Document additional restrictions.
3482
3483 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
3484
3485         * flags.h (time_report): Remove.
3486         * timevar.c (timevar_enable): New.
3487         (TIMEVAR_ENABLE): Remove, use timevar_enable.
3488         (timevar_init): Rename from init_timevar.
3489         * timevar.h (timevar_init): Rename from init_timevar.
3490         * toplev.c (time_report): Make static.
3491         (do_compile): Conditionally call init_timevar first.
3492         (preprocess_options): Move some code to do_compile.
3493
3494 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
3495
3496         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
3497
3498 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
3499
3500         * _cpp_lex_direct: Remove pointless code.
3501
3502 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
3503
3504         * doc/extend.texi (Function Attributes): Document "near" and "far"
3505         for 68HC11 and 68HC12.
3506
3507 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3508
3509         * expr.c (store_field): When making temporary for store, don't
3510         make it TYPE_QUAL_CONST.
3511
3512 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
3513
3514         * toplev.c (read_integral_parameter):  Use "argument" in error
3515         message to distinguish it from actual invalid options.
3516
3517 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
3518
3519         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
3520         addition of __PIC__ and __pic__ macros.
3521         * config/xtensa/xtensa.h: Clean up indentation.
3522
3523 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
3524
3525         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
3526         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
3527         (SUBTARGET_CPP_SPEC): Define.
3528         (LIB_SPEC): Delete.
3529         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
3530         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
3531         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
3532         Define.
3533         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3534         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
3535
3536 2003-04-25  H.J. Lu <hjl@gnu.org>
3537
3538         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
3539         for return mode.
3540         (ia64_expand_builtin): Set rmode to SImode for
3541         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
3542         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
3543         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
3544         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
3545
3546 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
3547
3548         * configure.in (make_compare_target):  Test for GNU cmp and set this
3549         variable appropriately.
3550         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
3551         compare4-lean): Rename actual targets to slowcompare*.  New compare*
3552         targets depend on names based on make_compare_target.
3553         * configure:  Regenerated.
3554
3555 2003-04-25  Richard Henderson  <rth@redhat.com>
3556
3557         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
3558         to clobber ar.pfs and ar.unat.
3559         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
3560         fix test for spilling ar.pfs to the stack.
3561
3562 2003-04-25  Richard Henderson  <rth@redhat.com>
3563
3564         PR opt/10315
3565         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
3566         checks during reload; use validize_mem instead of adjust_address.
3567
3568 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
3569
3570         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
3571         return values from recog_memoized().
3572
3573 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3574
3575         PR opt/8705
3576         * gcse.c (try_replace_reg): On a successful substitution of a constant
3577         into a single set, try to simplify the source of the set.
3578         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
3579         constant source.
3580
3581 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
3582
3583         * cpplex.c (cpp_token_len): Tighten up.
3584         (cpp_token_as_text): Need extra byte now.
3585         * cpplib.c (glue_header_name): Need extra 2 bytes.
3586         * cppmacro.c (cpp_macro_definition): Need extra byte.
3587
3588 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
3589
3590         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
3591         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
3592         where they might be not present. Use their _sp64 equivalent
3593         instead.
3594
3595 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
3596
3597         * i386.md (cvtsi2sdq): Fix typo in previous patch.
3598
3599 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
3600
3601         * configure.in: Check whether mbstowcs works.
3602         * configure, config.in: Regenerate.
3603         * intl.c: Use HAVE_WORKING_MBSTOWCS.
3604
3605 2003-04-24  H.J. Lu <hjl@gnu.org>
3606
3607         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
3608         for __sync_bool_compare_and_swap_di for int return type.
3609
3610         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
3611         Change return type to int.
3612         (__sync_bool_compare_and_swap): Likewise.
3613
3614 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
3615
3616         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
3617         looking for fallthru edge.
3618
3619         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
3620         Fix.
3621         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
3622         athlon-fvector): New.
3623         (athlon_*): Revisit to match new optimization guide.
3624         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
3625         * i386.md (cvt??2?? patterns): Fix modes.
3626         (fistp patterns): Set modes.
3627
3628         Accidentaly commited with my earlier reload patch:
3629         PR c/10308
3630         * reload.c (find_reloads_address_1): Reload plus at the place of
3631         index register.
3632
3633 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
3634
3635         New GCOV_TAG_FUNCTION layout
3636         * coverage.c (struct function_list): Replace name with ident.
3637         (struct counts_entry): Likewise.
3638         (fn_ident): New.
3639         (htab_counts_entry_hash, htab_counts_entry_eq,
3640         htab_counts_entry_del): Adjust.
3641         (reads_count_file, get_coverage_counts,
3642         coverage_begin_output, coverage_end_function): Adjust.
3643         (build_fn_info_type, build_fn_info_value): Likewise.
3644         * gcov-dump.c (tag_function): Adjust.
3645         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
3646         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
3647         * gcov.c (struct function_info): Add ident.
3648         (read_graph_file, read_count_file): Adjust.
3649         * libgcov.c (gcov_exit): Adjust.
3650
3651 2003-04-23  Richard Henderson  <rth@redhat.com>
3652
3653         PR opt/8300
3654         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
3655         after initialize_uninitialized_subregs; update reg info assuming
3656         new pseudos were created.
3657
3658 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
3659
3660         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
3661         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
3662         (lex_string): Take cpp_string with full spelling.
3663         (cb_ident): Update.
3664         (c_lex): Update diagnostics.
3665         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
3666         (create_literal): New.
3667         (lex_string): Unterminated literals have type CPP_OTHER.
3668         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
3669         for CPP_OTHER.
3670         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
3671         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
3672         * cpplib.c (parse_include, do_line, do_linemarker,
3673         destringize_and_run): Update for token storing full spelling.
3674         * cpplib.h: Update token spelling types.
3675         * cppmacro.c (stringify_arg, check_trad_stringification):
3676         Update for token storing full spelling.
3677
3678 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
3679
3680         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
3681
3682 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
3683
3684         * arm.h (TARGET_OPTIONS): Add value field.
3685
3686 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
3687
3688         * doc/extend.texi: Remove duplicate 2003 copyright date.
3689
3690 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
3691
3692         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
3693         (libgcov.a): Depends on LIBGCC_DEPS.
3694         * basic-block.h (profile_info): Moved here from coverage.h. Made
3695         a pointer.
3696         * coverage.c (struct function_list): Fixed array of counter types.
3697         (struct counts_entry): Keyed by counter type, contains summary.
3698         (profile_info): Moved to profile.c.
3699         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
3700         vars.
3701         (profiler_label): Remove.
3702         (ctr_labels): New.
3703         (set_purpose, label_for_tag, build_counter_section_fields,
3704         build_counter_section_value, build_counter_section_data_fields,
3705         build_counter_section_data_values, build_function_info_fields,
3706         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
3707         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
3708         build_ctr_info_value, build_gcov_info): New.
3709         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
3710         (reads_counts_file): Adjust.
3711         (get_coverage_counts): Takes counter number. Add summary
3712         parameter. Adjust.
3713         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
3714         create counter array labels.
3715         (coverage_end_function): Adjust.
3716         (create_coverage): Adjust.
3717         (find_counters_section): Remove.
3718         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
3719         (struct section_info, struct profile_info): Remove.
3720         (profile_info): Moved to basic-block.h.
3721         (coverage_counter_ref): Takes a counter number.
3722         (get_coverage_counts): Takes a counter number. Added summary
3723         parameter.
3724         (find_counters_section): Remove.
3725         * gcov-dump.c (tag_arc_counts): Rename to ...
3726         (tag_counters): ... here. Adjust.
3727         (tag_table): Move tag_counters to 3rd entry. Remove
3728         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
3729         (dump_file): Check for counter tag values here.
3730         (tag_summary): Adjust.
3731         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
3732         * gcov-io.h (GCOV_LOCKED): New.
3733         (GCOV_TAG_ARC_COUNTS): Rename to ...
3734         (GCOV_TAG_COUNTS_BASE): ... here.
3735         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
3736         Remove.
3737         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
3738         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
3739         GCOV_TAG_IS_COUNTER): New.
3740         (struct gcov_ctr_summary): New.
3741         (struct gcov_summary): Adjust.
3742         (struct gcov_counter_section): Remove.
3743         struct gcov_counter_section_data): Remove.
3744         (struct gcov_function_info): Rename to ...
3745         (struct gcov_fn_info): ... here. Adjust.
3746         (struct gcov_ctr_info): New.
3747         (struct gcov_info): Adjust.
3748         * gcov.c (read_count_file): Adjust.
3749         (output_lines): Adjust.
3750         * libgcov.c (gcov_exit): Adjust.
3751         (__gcov_flush): Adjust.
3752         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
3753         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
3754         probably_never_executed_bb_p, compute_frequency_function): Adjust
3755         profile_info use.
3756         * profile.c (struct counts_entry): Remove.
3757         (profile_info): Define here.
3758         (get_exec_counts): Adjust get_coverage_counts call.
3759         (compute_branch_probablilities): Remove find_counters_section
3760         call.
3761         (gen_edge_profiler): Adjust coverage_counter_ref call.
3762         * tracer.c (tail_duplicate): Adjust profile_info use.
3763
3764 2003-04-23  Roger Sayle  <roger@eyesopen.com>
3765
3766         PR optimization/10339
3767         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
3768         directly instead of unsafely transforming call into a memcmp.
3769         (expand_builtin_strncmp): Likewise.
3770
3771 2003-04-22  Roger Sayle  <roger@eyesopen.com>
3772
3773         * alias.c (mark_constant_function):  Check for constancy and
3774         purity even of void functions.  Update both the function decl
3775         and the cgraph RTL info with the results.
3776
3777 2003-04-22  Roger Sayle  <roger@eyesopen.com>
3778
3779         * real.c (do_add): Change to return a bool indicating that the
3780         result of the operation may be inexact due to loss of precision.
3781         (do_multiply): Likewise.
3782         (do_divide): Likewise.
3783
3784 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
3785             Loren James Rittle  <ljrittle@acm.org>
3786
3787         * dwarf2out.c (fde_table_allocated): Mark with GTY.
3788         (decl_die_table_allocated): Likewise.
3789         (abbrev_die_table_allocated): Likewise.
3790         (line_info_table_allocated): Likewise.
3791         (separate_line_info_table_allocated): Likewise.
3792         (pubname_table_allocated): Likewise.
3793         (arange_table_allocated): Likewise.
3794         (ranges_table_allocated): Likewise.
3795         (decl_die_table_in_use): Unconditionalize; mark with GTY.
3796         (abbrev_die_table_in_use): Likewise.
3797         (line_info_table_in_use): Likewise.
3798         (separate_line_info_table_in_use): Likewise.
3799         (pubname_table_in_use): Likewise.
3800         (arange_table_in_use): Likewise.
3801         (ranges_table_in_use): Likewise.
3802         (have_location_lists): Likewise.
3803         (emitcount): New GTY-marked static, moved...
3804         (maybe_emit_file): ...from here.
3805         (label_num): New GTY-marked static, moved...
3806         (gen_internal_sym): ...from here.
3807
3808 2003-04-22  Richard Henderson  <rth@redhat.com>
3809
3810         PR 8866
3811         * rtl.h (MEM_NOTRAP_P): New.
3812         (MEM_COPY_ATTRIBUTES): Copy it.
3813         * rtlanal.c (may_trap_p): Check it.
3814         * expr.c (do_tablejump): Set it.
3815         * doc/rtl.texi (Flags): Document it.
3816
3817         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
3818
3819 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
3820
3821         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
3822         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
3823
3824 2003-04-22  Vincent Celier <celier@gnat.com>
3825
3826         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
3827         --enable-threads=gnat.
3828         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
3829         * configure.in: Add gnat to the list of thread packages
3830         * configure: Rebuild.
3831         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
3832
3833 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
3834
3835         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
3836
3837 2003-04-22  Devang Patel  <dpatel@apple.com>
3838
3839         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
3840         parameter count.
3841         (_cpp_copy_replacement_text): Same.
3842
3843 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
3844
3845         * c-lex.c (c_lex): Handle CPP_OTHER differently.
3846         * cppexp.c (_cpp_parse_expr): Similarly.
3847         * cpplex.c (SPELL_CHAR): Remove.
3848         (_cpp_lex_direct): Stray chars are saved as byte strings.
3849         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
3850         handle SPELL_CHAR.
3851         (cpp_avoid_paste): Update handling of CPP_OTHER.
3852         * cpplib.h: Spell CPP_OTHER like a number.
3853         (struct cpp_token): Remove member c.
3854         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
3855
3856 2003-04-22  David Turner <novalis@gnu.org>
3857
3858         * gbl-ctors.h: Add special license exception.
3859         * libgcc2.h: Likewise.
3860         * tsystem.h: Likewise.
3861         * gcov-io.h: Likewise.
3862
3863 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
3864
3865         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
3866         macro defaulting to original BRANCH_COST heuristic.
3867         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
3868
3869         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
3870
3871 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
3872
3873         * config/rs6000/t-spe: Merge in t-fprules into file.
3874
3875         * config.gcc: Add t-spe to powerpc-eabispe.
3876
3877 2003-04-22  Kean Johnston  <jkj@sco.com>
3878
3879         * tlink.c (recompile_files): Add missing '=' to putenv calls
3880
3881 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
3882
3883         * ginclude/stddef.h: Provide C++ safe offsetof.
3884
3885 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
3886
3887         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
3888         for reg notes, if there are no substitutions, just use a SUBREG.
3889
3890 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
3891
3892         * Makefile.in (calls.o): Depend on except.h.
3893         * calls.c: Include except.h.
3894         (emit_call_1): Call note_eh_region_may_contain_throw if
3895         appropriate.
3896         * except.c (eh_region): Add may_contain_throw.
3897         (expand_eh_region_end_cleanup): Do not include handler code when
3898         it cannot be reached.
3899         (note_eh_region_may_contain_throw): New function.
3900         * except.h (note_eh_region_may_contain_throw): New function.
3901
3902 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
3903
3904         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
3905         changes.
3906
3907 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
3908
3909         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
3910         64-bit long doubles.
3911
3912 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
3913
3914         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
3915         a number of conversions required for type consistency and previously
3916         stripped off by STRIP_NOPS.
3917
3918         * calls.c (expand_call): Prevent sibcall optimization for calls to
3919         nested subprograms.
3920
3921         * expmed.c (extract_bit_field): Reverse operands of && condition to
3922         prevent a potential division by zero in the previously first branch.
3923         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
3924
3925 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
3926
3927         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
3928         (subrange_type_die): Likewise.
3929         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
3930         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
3931
3932 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
3933
3934         Break out coverage routines to new file.
3935         * Makefile.in (COVERAGE_H): New variable
3936         (C_OBJS): Add coverage.o
3937         (coverage.o): New target.
3938         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
3939         dependencies.
3940         (GTFILES): Adjust.
3941         (gt-coverage.h): New target.
3942         (gt-profile.h): Remove.
3943         * profile.h: Remove. Move to ...
3944         * coverage.h: ... here. New. #include gcov-io.h.
3945         * gcov-io.h: Move function definitions to ...
3946         * gcov-io.c: ... here. New.
3947         * profile.c: Move coverage routines to coverage.c.
3948         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
3949         end_branch_prob): Adjust.
3950         * coverage.c: New. Coverage routines from profile.c
3951         (coverage_counter_ref, coverage_init, coverage_finish,
3952         coverage_end_function, coverage_begin_output,
3953         coverage_counter_ref, get_coverage_counts): Define.
3954         * gcov-dump.c, gcov.c: #include gcov-io.c.
3955         * libgcov.c: Likewise. Adjust.
3956         * loop-init.c: Don't #include profile.h
3957         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
3958         * rtl.h: Add coverage prototypes.
3959         * toplev.c (compile_file): Init coverage, not branch_prob.
3960         Always call coverage_finish.
3961         (rest_of_compilation): Call coverage_end_function.
3962
3963 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
3964
3965         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
3966
3967 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
3968
3969         * c-ppoutput.c (cb_include): Don't take a cpp_token.
3970         * cppfiles.c: Don't undef strcmp.
3971         (find_include_file): Don't take a cpp_token.  Check for empty
3972         file names.
3973         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
3974         (cpp_push_include): Simplify.
3975         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
3976         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
3977         (parse_include): Similary.  Don't check for zero-length filenames.
3978         (do_include_common, do_pragma_dependency): Update accordingly.
3979         * cpplib.h (struct cpp_callbacks): Change prototype of include.
3980
3981 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3982
3983         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
3984         details of conflict handling.
3985
3986         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
3987         when conversion overflows.
3988
3989         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
3990
3991         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
3992         before clearing.
3993
3994 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
3995
3996         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
3997         have the same form as the old RTL.
3998
3999 2003-04-21  Andreas Jaeger  <aj@suse.de>
4000
4001         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
4002
4003 2003-04-20  Chris Lattner  <sabre@nondot.org>
4004             Zack Weinberg  <zack@codesourcery.com>
4005
4006         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
4007         genrtl_cleanup_stmt.  Correct comment at head of
4008         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
4009
4010         * stmt.c (struct nesting): Kill n_function_calls.
4011         (expand_start_bindings): Don't set
4012         thisblock->data.block.n_function_calls.
4013         (expand_end_bindings): Compare function_call_count against 0.
4014         (expand_cleanups): Kill DONT_DO argument; all callers passed
4015         NULL_TREE. All callers updated to match.
4016
4017 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
4018
4019         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
4020         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
4021         (output_constant_def): Remove code predicated on
4022         defer_addressed_constants_flag.
4023
4024         * output.h: Remove prototypes of deleted functions.
4025         * c-typeck.c (constructor_subconstants_deferred): Kill.
4026         (struct initializer_stack): Remove 'deferred' field.
4027         (start_init): Remove all references to the above.
4028         (finish_init): Likewise. Also remove never-executed call to
4029         output_deferred_addressed_constants.  Pull assignment to
4030         defstr out of if expression.
4031
4032 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
4033
4034         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
4035         NOTE_NEWLINE): Remove.
4036         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
4037         to handle new form of line note type.
4038
4039 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
4040
4041         * target.h (encode_section_info): Add new argument carrying
4042         the RTL to be modified by the hook.
4043
4044         * varasm.c (make_decl_rtl, output_constant_def): Update calls
4045         to encode_section_info.
4046         (default_encode_section_info): Take and use RTL argument,
4047         don't use TREE_CST_RTL or DECL_RTL.
4048         * output.h: Update prototype of default_encode_section_info.
4049         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
4050         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
4051         Update calls to encode_section_info.
4052
4053         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
4054         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
4055         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
4056         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
4057         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
4058         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
4059         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
4060         except for PE dllimport/dllexport.  Update calls to
4061         default_encode_section_info.
4062
4063         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
4064         Update prototypes.
4065
4066         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
4067
4068 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4069
4070         PR/8705
4071         * pa.md (movccfp): New expander.
4072         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
4073         Reverse fcmp conditions.
4074
4075 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4076
4077         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
4078         of operand 1 correctly.
4079
4080 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
4081
4082         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
4083         * gcov.c (output_lines): Don't be so fussy about going past EOF.
4084
4085 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
4086
4087         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
4088         (cppcharset.o): New target.
4089         * c-lex.c (is_extended_char): Move to cppcharset.c.
4090         (utf8_extend_token): Delete.
4091         * cppcharset.c: New file.
4092         * cpphash.h (_cpp_valid_ucn): New.
4093         * cpplex.c (lex_identifier): Update prototype.
4094         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
4095         escapes.
4096         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
4097         in cppcharset.c.
4098         (lex_number, lex_identifier, cpp_parse_escape): Update.
4099         (_cpp_lex_direct): Update to handle UCNs.
4100         (cpp_avoid_paste): Don't paste to form a UCN.
4101
4102 2003-04-19  Roger Sayle  <roger@eyesopen.com>
4103
4104         * builtins.c (expand_builtin):  Don't expand a pure or const
4105         built-in function if the result will be ignored and none of
4106         its arguments are volatile.
4107
4108 2003-04-19  Kean Johnston  <jkj@sco.com>
4109
4110         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
4111         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
4112         target fragment now: t-sco5; dont compile crti.o.
4113         * config/i386/sco5.h: major overhaul to remove all COFF remnants
4114         and to use elfos.h for most definitions.
4115         (BSS_SECTION_ASM_OP): set correct segment attributes.
4116         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
4117         (DWARF2_UNWIND_INFO): Always set to 1.
4118         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
4119         (MD_STARTFILE_PREFIX_1): Define.
4120         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
4121         (DEFAULT_LINKER): Define if not specified to configure.
4122         (CTORS_SECTION_ASM_OP): Remove COFF crud.
4123         (DTORS_SECTION_ASM_OP): Remove COFF crud.
4124         (WINT_TYPE): Define.
4125         (SDB_DEBUGGING_INFO): Remove.
4126         (EXTRA_SECTIONS): Likewise.
4127         (EXTRA_SECTION_FUNCTIONS): Likewise.
4128         (CTOR_LIST_BEGIN): Likewise.
4129         (CTOR_LIST_END): Likewise.
4130         (INIT_SECTION_FUNCTION): Likewise.
4131         (FINI_SECTION_FUNCTION): Likewise.
4132         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
4133         (LOCAL_LABEL_PREFIX): Likewise.
4134         (NON_SAVING_SETJMP): Likewise.
4135         (RETURN_POPS_ARGS): Likewise.
4136         (ASM_OUTPUT_SKIP): Likewise.
4137         (TARGET_ASM_NAMED_SECTION): Likewise.
4138         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4139         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
4140         (ASM_OUTPUT_IDENT): Likewise.
4141         (ASM_OUTPUT_CASE_LABEL): Likewise.
4142         (ASM_OUTPUT_ASCII): Likewise.
4143         (ASM_OUTPUT_LIMITED_STRING): Likewise.
4144         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4145         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4146         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4147         (ASM_FINISH_DECLARE_OBJECT): Likewise.
4148         (ASM_DECLARE_OBJECT_NAME): Likewise.
4149         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
4150         (ASM_DECLARE_FUNCTION_NAME): Likewise.
4151         (ASM_DECLARE_RESULT): Likewise.
4152         (ASM_WEAKEN_LABEL): Likewise.
4153         (SUPPORTS_WEAK): Likewise.
4154         (APPLY_RESULT_SIZE): Likewise.
4155         (LPREFIX): Likewise.
4156         (ALIGN_ASM_OP): Likewise.
4157         (ASCII_DATA_ASM_OP): Likewise.
4158         (IDENT_ASM_OP): Likewise.
4159         (ASM_SHORT): Likewise.
4160         (ASM_LONG): Likewise.
4161         (TYPE_ASM_OP): Likewise.
4162         (SIZE_ASM_OP): Likewise.
4163         (STRING_ASM_OP): Likewise.
4164         (SKIP_ASM_OP): Likewise.
4165         (EH_FRAME_SECTION_ASM_OP): Likewise.
4166         (READONLY_DATA_SECTION_ASM_OP): Likewise.
4167         (INIT_SECTION_ASM_OP): Likewise.
4168         (FINI_SECTION_ASM_OP): Likewise.
4169         (TEXT_SECTION_ASM_OP): Likewise.
4170         (DATA_SECTION_ASM_OP): Likewise.
4171         (TYPE_OPERANT_FORMAT): Likewise.
4172         (ASM_SPEC): Remove COFF code.
4173         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
4174         cause -pg to emit an error; use pcrt1elf.o with -pp
4175         (ENDFILE_SPEC): Likewise.
4176         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
4177         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
4178         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
4179         add -z alt_resolve to support weak symbols the way GCC wants them.
4180         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
4181         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
4182         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
4183         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
4184         (CRTSTUFF_T_CFLAGS_S): Define.
4185         (MULTILIB_OPTIONS): Likewise.
4186         (MULTILIB_DIRNAMES): Likewise.
4187         (MULTILIB_MATCHES): Likewise.
4188         (MULTILIB_EXTRA_OPTS): Likewise.
4189         (LIBGCC): Likewise.
4190         (INSTALL_LIBGCC): Likewise.
4191         (crti.o): Remove.
4192         * config/i386/t-sco5gas: Remove.
4193         * doc/install.texi: Updated for new OpenServer instructions.
4194         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
4195
4196 2003-04-19  Kean Johnston  <jkj@sco.com>
4197
4198         * fixinc/check.tpl: Allow user to over-ride diff program.
4199         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
4200         (sco_math): Added test for SCO math header files.
4201         (sco_regset): Added check for conflicts with ieeefp.h.
4202         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
4203         * fixinc/fixincl.x: Regenerated
4204         * fixinc/tests/base/math.h: Added sco_math tests.
4205         * fixinc/tests/base/string.h: New file.
4206         * fixinc/tests/base/sys/regset.h: New file.
4207
4208 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4209
4210         * cpphash.h (struct cpp_buffer): Remove backup_to.
4211         * cpplex.c (BACKUP, get_effective_char): Die.
4212         (_cpp_skip_block_comment): Assume '*' is location on entry.
4213         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
4214         (IF_NEXT_IS): Update.
4215         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
4216
4217 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
4218
4219         * README.Portability: Move to a new section and obsolete K+R
4220         portability issues.
4221
4222 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
4223
4224         * rtlanal.c (subreg_offset_representable_p):  Fix call of
4225         subreg_lowpart.
4226
4227 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4228
4229         * cpphash.h (struct cpp_reader): New member warned_dollar.
4230         * cpplex.c (continues_identifier_p): New function.
4231         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
4232         lex_number and lex_string, and simplify.
4233         (parse_slow, unescaped_terminator_p): Die.
4234         (_cpp_lex_direct): Update.
4235
4236 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4237
4238         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
4239
4240 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
4241
4242         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
4243         fork behaviour.
4244
4245 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4246
4247         * cppexp.c (eval_token): Permit true and false even if pedantic.
4248
4249 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4250
4251         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
4252
4253 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4254
4255         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
4256         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
4257         (struct include_file): Remove fefcnt, mapped members.
4258         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
4259         (read_include_file): Don't use mmap, terminate buffers in '\r'.
4260         (purge_cache): Don't use munmap.
4261         * cpphash.h (CPP_BUF_COLUMN): Update.
4262         (lexer_state): Remove lexing_comment.
4263         (struct _cpp_line_note): New.
4264         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
4265         next_line and need_line.  Remove col_adjust and saved_flags.
4266         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
4267         _cpp_skip_block_comment, scan_out_logical_line): New.
4268         (_cpp_init_mbchar): Remove.
4269         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
4270         (cpp_read_main_file): Set line to 1 earlier.
4271         (post_options): -traditional-cpp doesn't want trigraphs.
4272         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
4273         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
4274         _cpp_get_fresh_line): New.
4275         (handle_newline, skip_escaped_newlines, trigraph_p,
4276         continue_after_nul, _cpp_init_mbchar): Remove.
4277         (get_effective_char): Update.
4278         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
4279         (skip_line_comment): Simplify.
4280         (skip_whitespace, parse_identifier, parse_slow, parse_number,
4281         parse_string): Update.
4282         (cpp_lex_direct): Use clean lines and process line notes.  Update.
4283         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
4284         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
4285         directly.
4286         (_cpp_handle_directive): Don't set saved_flags.
4287         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
4288         cpp_undef, handle_assertion, cpp_push_buffer): Update.
4289         (_cpp_pop_buffer): Free notes.
4290         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
4291         * cpppch.c (cpp_read_state): \n terminate buffer.
4292         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
4293         (copy_comment): Use _cpp_skip_block_comment.
4294         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
4295         Simplify.
4296         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
4297         save_replacement_text): Update.
4298         (scan_out_logical_line): Update to use clean lines and process
4299         line notes.
4300         * fix-header.c (read_scan_file): Update.
4301
4302 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
4303
4304         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
4305         null begin parameter (as well as pointer to null).
4306         (__deregister_frame_info_bases): Likewise.
4307
4308 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4309
4310         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
4311         hard or virtual register and copy into pseudo if replacement fails.
4312
4313         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
4314
4315         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
4316
4317 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
4318
4319         * calls.c (expand_call): Move special case for constructor calls
4320         to right place. Ensures constructor calls used to initialize
4321         arguments get a clean outgoing argument block for themselves.
4322         Move check for stack deallocation completeness until after last
4323         deallocation.  Add stack_pointer_delta to set of state
4324         variables saved and restored along with current stack_level.
4325
4326         * integrate.c (expand_inline_function): Ensure non-const actuals
4327         don't end up const in the caller's flow after conversion to possibly
4328         const formal type.
4329
4330 2003-04-18  Vincent Celier  <celier@gnat.com>
4331
4332         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
4333         and *_DIV_EXPR as TRUNC_*_EXPR.
4334
4335 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
4336
4337         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
4338         for orphaned jump tables.
4339
4340 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
4341
4342         * reload1.c: Revert my previous patch on 2002-04-17.
4343
4344 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4345
4346         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
4347         Add Segher Boessenkool.
4348
4349 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
4350
4351         PR c/9177
4352         * c-decl.c (c_expand_body): Don't garbage collect the function
4353         body if we are going to dump it later.
4354
4355 2003-04-18  Richard Henderson  <rth@redhat.com>
4356
4357         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
4358         (alpha_end_function): Don't set them.
4359         (decl_in_text_section): Remove.
4360         (alpha_encode_section_info): Remove.
4361         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
4362         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
4363         sections, rather than decl_in_text_section results.
4364
4365 2003-04-18  Roger Sayle  <roger@eyesopen.com>
4366
4367         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
4368         and SIGN_EXTRACT.
4369
4370 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4371
4372         PR optimization/7675
4373         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
4374         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
4375         nested functions if they refer to declarations from parent functions.
4376         * stmt.c (expand_decl): Don't put automatic variables in registers
4377         if the DECL_NONLOCAL flag is set.
4378
4379 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
4380
4381         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
4382         consider those to be movable where the source matches
4383         want_to_gcse_p.
4384         (update_ld_motion_stores): In comment, refer to
4385         compute_ld_motion_mems for validity of replacement.
4386
4387 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
4388
4389         * gcov-dump.c (tag_summary): Remove max_sum
4390         * gcov-io.h (gcov_summary, gcov_write_summary,
4391         gcov_read_summary): Kill max_sum.
4392         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
4393         message more verbose.
4394
4395         * emit-rtl.c (subreg_hard_regno):  Check that register is
4396         representable.
4397
4398         * reload.c (reload_inner_reg_of_subreg):  When register is not
4399         representable, reload the whole thing.
4400         (find_reloads): Likewsie.
4401         * rtlanal.c (subreg_representable_p):  New function.
4402
4403         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
4404         allow negative probabilities for edges from the call to exit.
4405         (branch_prob): Do not add fake edges for functions that may return
4406         twice.
4407
4408 2003-04-17  DJ Delorie  <dj@redhat.com>
4409
4410         * toplev.c (target_options): Add value field.
4411         (set_target_switch): Handle target options with values.
4412         * doc/tm.texi: Document how fixed vs variable target
4413         options work.
4414         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
4415         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
4416         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4417         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
4418         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4419         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4420         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
4421         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
4422         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
4423         Add value initializer to target options.
4424
4425 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
4426
4427         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
4428
4429 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
4430
4431         * reload1.c (move2add_last_cc0): New.
4432         (reload_cse_move2add): Detect implicit sets.
4433         (move2add_note_store): Notice a store into cc0.
4434
4435 2003-04-17  Roger Sayle  <roger@eyesopen.com>
4436
4437         PR c/10375
4438         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
4439         function attributes.
4440
4441 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
4442
4443         * doc/sourcebuild.texi (Test Suites): Document support for testing
4444         binary compatibility (moved from testsuite/README.compat).
4445
4446 2003-04-17  Richard Henderson  <rth@redhat.com>
4447
4448         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
4449
4450 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
4451
4452         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
4453         the one provided by the FSF.
4454
4455 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4456
4457         * doc/install.texi (Binaries): Update URL and list of platforms
4458         provided by ftp.thewrittenword.com.
4459
4460 2003-04-17  Richard Henderson  <rth@redhat.com>
4461
4462         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
4463         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
4464         * config/xtensa/xtensa.md (call, call_value): Likewise.
4465
4466 2003-04-17  Richard Henderson  <rth@redhat.com>
4467
4468         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
4469         (print_operand_address): Likewise.
4470         (ep_memory_operand): Likewise.
4471         (special_symbolref_operand): Likewise.
4472         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
4473         (v850_encode_section_info): Call default_encode_section_info.
4474         (v850_strip_name_encoding): Remove.
4475         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
4476         (ASM_OUTPUT_LABELREF): Remove.
4477         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
4478         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
4479         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
4480         (ENCODED_NAME_P): Remove.
4481         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
4482         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
4483         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
4484
4485 2003-04-17  Richard Henderson  <rth@redhat.com>
4486
4487         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
4488         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
4489         SYMBOL_REF_FUNCTION_P.
4490
4491 2003-04-17  Richard Henderson  <rth@redhat.com>
4492
4493         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
4494         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
4495         (text_segment_operand): Likewise.
4496
4497 2003-04-17  Richard Henderson  <rth@redhat.com>
4498
4499         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
4500         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4501         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
4502         (sh_encode_section_info): Remove.
4503         (sh_strip_name_encoding): Remove.
4504         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
4505         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
4506         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
4507         (ASM_OUTPUT_LABELREF): Remove.
4508         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
4509         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
4510
4511 2003-04-17  Richard Henderson  <rth@redhat.com>
4512
4513         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
4514         (tls_model_chars): Remove.
4515         (larl_operand): Use SYMBOL_REF_FLAGS.
4516         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4517         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
4518         (s390_output_mi_thunk): Likewise.
4519         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
4520         (s390_function_profiler): Likewise.
4521         (s390_encode_section_info): Use default_encode_section_info
4522         and SYMBOL_FLAG_ALIGN1.
4523         (s390_strip_name_encoding): Remove.
4524         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
4525         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
4526         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
4527
4528 2003-04-17  Richard Henderson  <rth@redhat.com>
4529
4530         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
4531         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
4532         (print_operand_address): Likewise.
4533
4534         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
4535         * config/ns32k/ns32k.c (expand_block_move): Don't check
4536         flag_unroll_loops.
4537
4538 2003-04-17  Richard Henderson  <rth@redhat.com>
4539
4540         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
4541         SYMBOL_REF_FLAG.
4542
4543 2003-04-17  Richard Henderson  <rth@redhat.com>
4544
4545         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
4546
4547         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
4548         (SYMBOL_REF_MODEL): New.
4549         (LIT_NAME_P): Move from m32r.h.
4550         (m32r_select_section): Remove.
4551         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
4552         (m32r_strip_name_encoding): Remove.
4553         (m32r_in_small_data_p): New.
4554         (small_data_operand): Use SYMBOL_REF_SMALL_P.
4555         (addr24_operand): Use SYMBOL_REF_MODEL.
4556         (call26_operand): Likewise.
4557         (addr32_operand): Tidy.
4558         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
4559         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
4560         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
4561         (READONLY_DATA_SECTION_ASM_OP): Remove.
4562         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4563         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
4564         (TARGET_ASM_SELECT_SECTION): Remove.
4565         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
4566         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
4567         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
4568         (ASM_OUTPUT_LABELREF): Remove.
4569
4570 2003-04-17  Richard Henderson  <rth@redhat.com>
4571
4572         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
4573         (encode_section_info): Remove.
4574         * config/ip2k/ip2k-protos.h: Update.
4575
4576 2003-04-17  Richard Henderson  <rth@redhat.com>
4577
4578         * varasm.c (default_encode_section_info): Don't set
4579         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
4580         * config/i370/i370.c (i370_encode_section_info): Remove.
4581         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
4582         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
4583         * config/i370/i370.md (movsi): Likewise.
4584
4585         * config/i370/t-i370: Add missing backslash.
4586
4587 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4588
4589         * doc/invoke.texi (inline-limit): Fix pasto.
4590
4591 2003-04-17  Richard Henderson  <rth@redhat.com>
4592
4593         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
4594         (small_call_insn_operand): Use it.
4595         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
4596         (h8300_eightbit_constant_address_p): Use it.
4597         (SYMBOL_FLAG_TINY_DATA): New.
4598         (h8300_tiny_constant_address_p): Use it.
4599         (h8300_encode_label, h8300_strip_name_encoding): Remove.
4600         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
4601         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
4602         (ASM_OUTPUT_LABELREF): Remove.
4603
4604 2003-04-16  Richard Henderson  <rth@redhat.com>
4605
4606         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
4607         all users with SYMBOL_REF_SMALL_P.
4608         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
4609         (frv_encode_section_info): Remove.
4610         (frv_strip_name_encoding): Remove.
4611         (frv_in_small_data_p): Merge tests from encode_section_info.
4612         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
4613         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
4614         (SDATA_NAME_P): Remove.
4615         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
4616         (ASM_OUTPUT_LABELREF): Remove.
4617         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
4618
4619         * config/frv/frv.c (frv_asm_out_constructor): New.
4620         (frv_asm_out_destructor): New.
4621         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
4622         (DTORS_SECTION_ASM_OP): New.
4623         (ASM_OUTPUT_CONSTRUCTOR): Remove.
4624         (ASM_OUTPUT_DESTRUCTOR): Remove.
4625
4626 2003-04-16  Richard Henderson  <rth@redhat.com>
4627
4628         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
4629         SYMBOL_REF_LOCAL_P; abort if not pic.
4630         (cris_encode_section_info): Remove.
4631
4632 2003-04-16  Richard Henderson  <rth@redhat.com>
4633
4634         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
4635         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
4636
4637         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
4638         flag_inline_trees.
4639
4640 2003-04-16  Richard Henderson  <rth@redhat.com>
4641
4642         * config/avr/avr.c (avr_encode_section_info): Remove.
4643         (avr_insert_attributes): New.
4644         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
4645         (avr_assemble_integer): Likewise.
4646
4647 2003-04-16  Richard Henderson  <rth@redhat.com>
4648
4649         * arc.c (arc_encode_section_info): Remove.
4650         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
4651         (arc_print_operand, arc_print_operand_address): Likewise.
4652         * arc.h (EXTRA_CONSTRAINT): Likewise.
4653
4654 2003-04-16  Roger Sayle  <roger@eyesopen.com>
4655
4656         * c-semantics.c (find_reachable_label): New function to find a
4657         potentially reachable label in an expression.
4658         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
4659         assumes the start of the IF_STMT is unreachable (dead) code.
4660         (expand_unreachable_stmt): Similar to expand_stmt but assumes
4661         the start of the statement list is unreachable (dead) code.
4662         (genrtl_if_stmt):  If the controlling expression of the IF
4663         is constant, use expand_unreachable_stmt for the THEN or ELSE
4664         clause as appropriate.
4665         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
4666         the body of a SWITCH statement.
4667         (expand_stmt): The code immediately following a "return",
4668         "break", "continue" or "goto" is unreachable.
4669         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
4670
4671 2003-04-16  Richard Henderson  <rth@redhat.com>
4672
4673         * rtl.h (MEM_ALIAS_SET): Update documentation.
4674         * doc/rtl.texi (Special Accessors): New node.
4675         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
4676
4677 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
4678
4679         * reload1.c (reload_cse_noop_set_p): Return false if mode of
4680         SET_DEST is not the same as that returned by...
4681         * cselib.h (cselib_reg_set_mode): ... new function.
4682         * cselib.c (cselib_reg_set_mode): Define it.
4683         (REG_VALUES): Document semantics of first element as set mode.
4684         (cselib_subst_to_values): Skip first element if ELT is NULL.
4685         (cselib_lookup): Likewise.  Insert past the first element.
4686         (cselib_invalidate_regno): NULLify first element.
4687         (cselib_record_set): Set first element.
4688
4689 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
4690
4691         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
4692         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
4693         * tree.h: Add prototypes for the two new functions.
4694         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
4695         updates introduced in the previous revision by call to saved_expr_p.
4696         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
4697
4698         * expr.c (store_field): Force usage of bitfield instructions when
4699         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
4700         (expand_expr, case BIT_FIELD_REF): likewise.
4701
4702 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
4703
4704         PR middle-end/8866
4705         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
4706         jumptables.
4707
4708 2003-04-16  Richard Henderson  <rth@redhat.com>
4709
4710         * config/ia64/ia64.c (sdata_symbolic_operand): Use
4711         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
4712         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4713         (function_operand): Use SYMBOL_REF_FUNCTION_P.
4714         (ia64_expand_load_address): Likewise.
4715         (ia64_assemble_integer): Likewise.
4716         (ia64_encode_section_info): Remove.
4717         (ia64_strip_name_encoding): Remove.
4718         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
4719         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
4720
4721 2003-04-16  Richard Henderson  <rth@redhat.com>
4722
4723         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
4724         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
4725         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
4726         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
4727         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
4728         (global_symbolic_operand): Similarly.
4729         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
4730         (tls_symbolic_operand_type): Likewise.
4731         (alpha_encode_section_info): Use default_encode_section_info.
4732         (alpha_strip_name_encoding): Remove.
4733         (get_tls_get_addr): Split out from ...
4734         (alpha_legitimize_address): ... here.
4735         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
4736         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
4737         (alpha_initialize_trampoline): Use init_one_libfunc.
4738         (alpha_setup_incoming_varargs): Mark unused parameters.
4739         (alpha_initial_elimination_offset): Likewise.
4740         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
4741         (unicosmk_unique_section): Use default_strip_name_encoding.
4742         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
4743
4744 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
4745
4746         * config.gcc: Add t-spe for eabispe.
4747
4748         * config/rs6000/t-spe: New.
4749
4750 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
4751
4752         Re-apply this patch:
4753
4754         2002-05-16  Dale Johannesen  <dalej@apple.com>
4755           * combine.c (cant_combine_insn_p):  Reenable combinations
4756           involving hard regs unless CLASS_LIKELY_SPILLED_P.
4757
4758 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4759
4760         PR/10271
4761         * pa-protos.h (function_arg): Remove last argument.
4762         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
4763         * pa.h (struct hppa_args): Add member incoming.
4764         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
4765         member incoming.
4766         (FUNCTION_ARG): Revise call to function_arg.
4767         (FUNCTION_INCOMING_ARG): Delete.
4768
4769 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
4770
4771         * configure.in: Unify the code which creates symlinks to a
4772         just-built as, ld, objdump, and nm with the code that detects
4773         their presence for purposes of feature tests.
4774         * configure: Regenerate.
4775
4776 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
4777
4778         * varasm.c (output_constant_def): Do not consult
4779         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
4780         (after_function_constants, output_after_function_constants): Delete.
4781         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
4782         * config/mips/mips-protos.h, config/mips/mips.c
4783         (mips16_constant_after_function_p): Delete.
4784         * config/mips/mips.h: Delete #if-0-ed definition of
4785         CONSTANT_AFTER_FUNCTION_P.
4786         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
4787         mention of CONSTANT_AFTER_FUNCTION_P in comment.
4788
4789 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
4790
4791         * tree.c (next_decl_uid): Mark with GTY.
4792         (next_type_uid): Likewise.
4793
4794 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
4795
4796         PR target/9594:
4797         * sh.c (barrier_align): Also recognize stuff_delay_slot as
4798         an indicator that a barrier was created by branch splitting.
4799
4800 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
4801
4802         * c-decl.c (implicitly_declare): Copy declarations that are going
4803         to be placed in a local scope.
4804
4805 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
4806
4807         * invoke.texi (Spec Files): Wrap if-exists-else example.
4808         (MCore): Remove duplicate @itemx entries and @opindex entries.
4809
4810 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
4811
4812         * unwind.inc (_Unwind_Backtrace): New function.
4813         * unwind.h (_Unwind_Backtrace): Declare it.
4814         * libgcc-std.ver (_Unwind_Backtrace): Export it.
4815
4816 2003-04-14  Jason Merrill  <jason@redhat.com>
4817
4818         PR middle-end/10336, c++/10401
4819         * jump.c (never_reached_warning): Also stop looking if we reach the
4820         beginning of the function.
4821
4822 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4823
4824         PR target/10338
4825         PR bootstrap/10198
4826         PR bootstrap/10140
4827         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
4828
4829 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
4830
4831         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
4832
4833 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4834
4835         * optabs.c (expand_binop): In multi-word add cases, ensure
4836         XTARGET is copied to TARGET if they are different.
4837
4838 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
4839
4840         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
4841         to region, possible after integration of function with unreachable
4842         regions that were optimized away.
4843
4844 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
4845
4846         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
4847         instead of TOC_REGISTER in epilogue in
4848         current_function_calls_eh_return functions.
4849
4850 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
4851
4852         * doc/extend.texi (Empty Structures): Correct description of G++'s
4853         handling of these structures.
4854
4855         * c-decl.c (grokdeclarator): Reject extern redeclarations of
4856         static variables.
4857
4858 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
4859
4860         * config/rs6000/rs6000.md (define_constants): Define constants for
4861         all UNSPEC usage, including new values for TLS support.
4862         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
4863         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
4864         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
4865         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
4866         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
4867         eh_set_lr_di): Use them.
4868         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
4869         rs6000_emit_epilogue) Use them.
4870
4871         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
4872
4873 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
4874
4875         * Makefile.in (c-opts.o): Use custom action.
4876
4877 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
4878
4879         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
4880
4881 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4882
4883         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
4884         handle "superflat arrays" in Ada.
4885
4886         * integrate.c (expand_inline_function): Don't inline if would
4887         lose /u on a BLKmode TARGET.
4888
4889 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
4890
4891         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
4892         extracted from dbxout_type.
4893         (dbxout_range_type): print large bounds in octal format.
4894         (dbxout_type): Replace extracted code by call to
4895         print_int_cst_bounds_in_octal_p.
4896
4897         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
4898         of DW_LANG_Ada83 for Ada units.
4899
4900 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
4901
4902         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
4903         temporary used to round CONST_INT sizes.
4904
4905         * tree.c (int_fits_type_p): Extract generic checks from the case
4906         of constant type bounds. Refine the checks against constant type
4907         bounds to allow for possible decisions against each of these bounds
4908         without requiring both bounds to be constant.
4909         (tree_int_cst_msb): Put back.
4910         * tree.h (tree_int_cst_msb): Likewise.
4911
4912         * global.c (global_conflicts): Prevent allocation of call clobbered
4913         hard regs to pseudos live across abnormal edges, as later passes are
4914         not ready to handle them.
4915
4916         * fold-const.c (fold): Reorder tests for conditional expressions.
4917
4918         * expr.c (highest_pow2_factor): Return unsigned.
4919         * expr.h (offset_address): Likewise.
4920         * emit-rtl.c (offset_address): POW2 argument now unsigned.
4921
4922 2003-04-14  Roger Sayle  <roger@eyesopen.com>
4923
4924         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
4925         string literals at compile-time.
4926
4927 2003-04-14  Roger Sayle  <roger@eyesopen.com>
4928
4929         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
4930         comparison operation and c1/c2 are floating point constants into
4931         x swap(cmp) (c1 - c2).
4932
4933 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
4934
4935         * genautomata.c (output_translate_vect): Fix a typo in loop
4936         condition.
4937
4938 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
4939
4940         PR target/10377
4941         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
4942         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
4943         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
4944         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
4945         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
4946         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
4947         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
4948         ("*extopqihi_swap_side", "*extopqisi_swap_side")
4949         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
4950         When next to constraint R, replace constraint i with n.
4951
4952 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
4953
4954         PR opt/10024
4955         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
4956
4957 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
4958
4959         * doc/contrib.texi (Contributors): Correct my entry.
4960
4961 2003-04-13  Roger Sayle  <roger@eyesopen.com>
4962
4963         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
4964         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
4965         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
4966         implies DECL_BUILT_IN to simplify logic.
4967         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
4968
4969 2003-04-13  Roger Sayle  <roger@eyesopen.com>
4970
4971         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
4972         (BT_FN_PTR_SIZE_SIZE): Likewise.
4973         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
4974         New built-in functions for malloc, calloc and strdup respectively.
4975         * calls.c (special_function_p): No need to handle malloc-like
4976         functions any longer.  ECF_MALLOC is set via built-in attributes.
4977
4978         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
4979
4980         * doc/extend.texi: Document these new built-in functions.
4981
4982 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4983
4984         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
4985         (expand_builtin_stpcpy): New.
4986         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
4987         * builtins.def: Add mempcpy & stpcpy support.
4988         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
4989
4990 2003-04-13  Nick Clifton  <nickc@redhat.com>
4991
4992         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
4993         "GCC".
4994         * config/rs6000/40x.md, config/rs6000/603.md,
4995         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
4996         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
4997         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
4998         config/rs6000/aix43.h, config/rs6000/aix51.h,
4999         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
5000         config/rs6000/altivec.h, config/rs6000/altivec.md,
5001         config/rs6000/beos.h, config/rs6000/darwin.h,
5002         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
5003         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
5004         config/rs6000/freebsd.h, config/rs6000/gnu.h,
5005         config/rs6000/host-darwin.c, config/rs6000/linux.h,
5006         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
5007         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
5008         config/rs6000/netbsd.h, config/rs6000/power4.md,
5009         config/rs6000/rios1.md, config/rs6000/rios2.md,
5010         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
5011         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5012         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
5013         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
5014         config/rs6000/spe.md, config/rs6000/sysv4.h,
5015         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
5016         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
5017
5018 2003-04-13  Nick Clifton  <nickc@redhat.com>
5019
5020         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
5021         support for -mcall-aix switch.
5022         * config/rs6000/eabiaix.h: Delete.
5023         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
5024         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
5025         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
5026         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
5027         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
5028         debug_stack_info, output_function_profiler,
5029         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
5030         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
5031         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
5032         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
5033         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
5034         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
5035         multilibs.
5036         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
5037         (MULTILIB_EXCEPTIONS): Delete.
5038         (MULTILIB_MATCHES): Remove mcall-aix matches.
5039
5040         * doc/fragments.texi: Replace -mcall-aix example with an ARM
5041         one.
5042         * doc/install.texi: Delete powerpc-*-eabiaix target.
5043         * doc/invoke.texi: Remove documentation of mcall-aix switch.
5044         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
5045         * config.gcc: Delete powerpc-*-eabiaix target.
5046
5047 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
5048
5049         * doc/invoke.texi: Fix typos.
5050         * doc/tm.texi: Likewise.
5051
5052 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5053
5054         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
5055
5056 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5057
5058         * tree.c (build_constructor): New function.
5059         * tree.h: Prototype it.
5060
5061         * c-typeck.c (build_c_cast, pop_init_level)
5062         * profile.c (build_function_info_value, build_gcov_info_value)
5063         (create_profiler):
5064         Use build_constructor.
5065
5066         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
5067
5068         * objc/objc-act.c (build_constructor):
5069         Rename objc_build_constructor. Use build_constructor.
5070         (build_objc_string_object, objc_add_static_instance)
5071         (init_def_list, init_objc_symtab, init_module_descriptor)
5072         (generate_static_references, build_selector_translation_table)
5073         (build_descriptor_table_initializer, generate_descriptor_table)
5074         (build_protocol_initializer, build_ivar_list_initializer)
5075         (generate_ivars_list, build_dispatch_table_initializer)
5076         (generate_dispatch_table, generate_protocol_list)
5077         (build_category_initializer, build_shared_structure_initializer):
5078         Update to match.
5079
5080 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5081
5082         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
5083
5084 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5085
5086         * config/m68hc11/m68hc11-protos.h
5087         (m68hc11_eq_compare_operator): Declare
5088         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
5089         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
5090         (d_register_operand): Check the operand mode.
5091         (hard_addr_reg_operand): Likewise.
5092
5093 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5094
5095         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
5096         pattern for dbcc/ibcc generation for 68HC12.
5097         ("doloop_end"): New pattern.
5098         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
5099         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
5100         ("m68hc12_dbcc_dec_qi"): New pattern.
5101         ("m68hc12_dbcc_inc_qi"): New pattern.
5102         (split): Add split for the above when we can't use dbcc/ibcc due to
5103         reloading.
5104         (peephole2): Add peephole2 to generate the above when possible.
5105
5106 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5107
5108         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
5109         mode of operand 0.
5110         (peephole2 optimize const load): Likewise for operand 2.
5111         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
5112         clobbers CC_REGNUM.
5113         ("*rotrhi3_with_carry"): Likewise.
5114         (ashift:DI 1 split): Update pattern to create the above rotate.
5115         (lshiftrt:DI 1 split): Likewise.
5116
5117 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5118
5119         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
5120         ("tstqi_z_used" split): Use it.
5121         ("cmphi_z_used"): Likewise.
5122         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
5123         ("cmpqi_z_used"): Likewise.
5124
5125 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
5126
5127         PR c++/7910
5128         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
5129
5130 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5131
5132         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
5133         * configure, config.in: Regenerate.
5134         * intl.c (gcc_gettext_width): New function.
5135         * intl.h: Prototype it.
5136
5137 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5138
5139         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
5140         recognize -mnorelax.
5141         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
5142         (REG_CLASS_NAMES): Add its name.
5143         (REG_CLASS_CONTENTS): Define its content.
5144
5145 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5146
5147         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
5148         parameters so that offsets are valid for far definition.
5149         (__mulsi3): Likewise and use ret to return.
5150         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
5151
5152 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
5153
5154         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
5155
5156 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
5157
5158         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
5159         containing a libgcc.a, move lib* to the corresponding stage dir.
5160
5161         * Makefile.in (stage1-start, stage2-start, stage3-start,
5162         stage4-start): Move $(SPECS) to specs in stage dir.
5163         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
5164         back as $(SPECS).
5165
5166         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
5167         object files from the non-libgcc/ multilib directories as well.
5168
5169 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
5170
5171         * profile.c (read_counts_file): Initialise 'checksum'.
5172
5173         * emit-rtl.c (gen_rtx): Really correct typo.
5174
5175         PR c++/9393
5176         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
5177         * configure.in: Check for gettimeofday.
5178         * tree.c (flag_random_seed): Define.
5179         (default_flag_random_seed): New.
5180         (append_random_chars): Use flag_random_seed rather than trying
5181         to acquire randomness here.
5182         * tree.h (default_flag_random_seed): Declare.
5183         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
5184         descriptions.
5185         (decode_f_option): Handle -frandom-seed.
5186         (print_switch_values): Call default_flag_random_seed.
5187         * flags.h (flag_random_seed): Declare.
5188         * configure: Regenerate.
5189         * config.in: Regenerate.
5190         * config/alpha/t-crtfm: Use -frandom-seed.
5191
5192         * doc/extend.texi (Empty Structures): New.
5193
5194         * c-pch.c: Include flags.h.  Add comments to routines.
5195         (struct c_pch_validity): New.
5196         (get_ident): Update PCH file version number.
5197         (pch_init): Output current debugging type.
5198         (c_common_valid_pch): Check debugging type.
5199         * Makefile.in (c-pch.o): Update dependencies.
5200         * flags.h (debug_type_names): Declare.
5201         * toplev.c (debug_type_names): Move out of decode_g_option.
5202
5203 2003-04-11  Eric Christopher  <echristo@redhat.com>
5204
5205         * emit-rtl.c (gen_rtx): Fix typos.
5206
5207 2003-04-11  Richard Henderson  <rth@redhat.com>
5208
5209         * emit-rtl.c (gen_rtx): Zero '0' fields.
5210
5211 2003-04-11  Richard Henderson  <rth@redhat.com>
5212
5213         PR c++/10202
5214         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
5215         not COMPLETE_TYPE_P for re-invoking layout_decl.
5216
5217 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
5218
5219         * doc/bugreport.texi: Fix paragraph breaking between sections
5220         in preparation for TeXinfo's paragraph indentation fixes.
5221         * doc/extend.texi: Ditto.
5222         * doc/invoke.texi: Ditto.
5223         * doc/objc.texi: Ditto.
5224         * doc/gcov.texi: Wrap 'gcov' in @command{}.
5225         * doc/invoke.texi (Darwin Options): Add a preamble.
5226
5227 2003-04-11  Richard Henderson  <rth@redhat.com>
5228
5229         * config/i386/i386.c (tls_model_chars): Remove.
5230         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
5231         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
5232         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
5233         (tls_symbolic_operand_1): Likewise.
5234         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
5235         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
5236         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
5237         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
5238         bits "copied from i386.h" with default_encode_section_info.
5239
5240 2003-04-11  Richard Henderson  <rth@redhat.com>
5241
5242         * rtl.def (SYMBOL_REF): Add two 0 fields.
5243         * gengtype.c (adjust_field_rtx_def): Handle them.
5244         * print-rtl.c (print_rtx): Print them.
5245         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
5246         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
5247         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
5248         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
5249         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
5250         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
5251         (SYMBOL_FLAG_MACH_DEP): New.
5252         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
5253         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
5254         (assemble_static_space): Set SYMBOL_REF_FLAGS.
5255         (assemble_trampoline_template): Likewise.
5256         (output_constant_def, force_const_mem): Likewise.
5257         (default_encode_section_info): New.
5258         * output.h: Declare it.
5259         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
5260
5261 2003-04-11  Richard Henderson  <rth@redhat.com>
5262
5263         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
5264         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
5265         * optabs.c (init_optabs): Initialize them.
5266         (init_libfuncs): Use init_one_libfunc.
5267         * calls.c (expand_call): Use gcov_flush_libfunc.
5268         * expr.c (store_constructor): Use setbits_libfunc.
5269         * function.c (expand_main_function): Use init_one_libfunc.
5270         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
5271
5272 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
5273
5274         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
5275         documentation; add DECL_FRIEND_CONTEXT.
5276
5277 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5278
5279         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
5280         notes on linker selection and configuration for 64-bit HP-UX port.
5281         * doc/invoke.texi (hppa): Remove hppa text from description for
5282         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
5283         and -threads options.
5284
5285         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
5286         libc.a on libdld.sl when -static is specified and -nolibdld is not
5287         specified.
5288         * pa64-hpux.h (LIB_SPEC): Likewise.
5289         * pa-hpux11.h (LIB_SPEC): Likewise.
5290         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
5291         is not specified.
5292
5293 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
5294
5295         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
5296         not IDENTIFIER_LOCAL_VALUE.
5297
5298 2003-04-11  Richard Henderson  <rth@redhat.com>
5299
5300         PR c/10201
5301         * expr.c (expand_expr): Move DECL_RTL frobbing ...
5302         * stor-layout.c (layout_decl): ... here.
5303
5304 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
5305
5306         * doc/invoke.texi: Eliminate extra white-space caused by
5307         @gccoptlist{ on its own line.
5308         * doc/invoke.texi: Ensured there are two spaces between each option.
5309         * doc/invoke.texi: Re-wrapped option lines that were too wide.
5310         Added @gol to options that didn't have them.
5311
5312 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
5313
5314         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
5315         gcov-iov.h.
5316
5317         Simplify interface to gcov reading and writing.
5318         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
5319         gcov_alloc, gcov_modified, gcov_errored): Move into ...
5320         (struct gcov_var gcov_var): ... this static structure.
5321         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
5322         Return void.
5323         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
5324         read object.
5325         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
5326         (gcov_reserve_length): Remove.
5327         (gcov_write_tag): New.
5328         (gcov_write_length): Adjust.
5329         (gcov_read_summary, gcov_write_summary): Adjust.
5330         (gcov_eof, gcov_ok): Rename to ...
5331         (gcov_is_eof, gcov_is_error): ... here. Return error code.
5332         (gcov_save_position, gcov_resync): Rename to ...
5333         (gcov_position, gcov_seek): ... here.
5334         (gcov_skip, gcov_skip_string): Remove.
5335         (gcov_error): Remove.
5336         (gcov_open, gcov_close): Adjust.
5337         * gcov.c (find_source): Take const char *, copy it on allocation.
5338         (read_graph_file): Adjust.
5339         (read_count_file): Adjust.
5340         * libgcov.c (gcov_exit): Adjust.
5341         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
5342         tag_arc_counts, tag_summary): Return void. Adjust.
5343         (struct tag_format): Adjust proc member.
5344         (dump_file): Adjust gcov calls.
5345
5346 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
5347
5348         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
5349         mkfixinc.sh.
5350         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
5351         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
5352         build != host sysrooted builds.
5353         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
5354         TARGET_SYSTEM_ROOT even on sysrooted natives.
5355         * configure: Rebuilt.
5356
5357 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5358
5359         * c-decl.c (struct binding_level): Add shadowed_tags and
5360         function_body; remove this_block, tag_transparent, and
5361         subblocks_tag_transparent; update comments.
5362         (clear_binding_level, lookup_tag_reverse): Kill.
5363         (make_binding_level): Use ggc_alloc_cleared or memset.
5364         (lookup_tag): Remove struct binding_level* parameter.  All
5365         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
5366         current_binding_level->tags if asked for thislevel_only or if
5367         we might have to diagnose "struct foo; union foo;"
5368         (pushlevel): Ignore argument.  Do not push another binding
5369         level on the transition from the parameters to the top level
5370         of the function body; just tweak the flags and proceed.
5371         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
5372         a function body, separate the parameter list from the
5373         top-level local variables.
5374         (set_block): Do nothing.
5375         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
5376         shadowed_tags if necessary.
5377         (warn_if_shadowing): Nuke the special case for local shadowing
5378         parameter.
5379         (pushdecl): Do not create a shadow entry if we are replacing
5380         an older decl in the same binding level.
5381         (pushdecl_function_level): Tweak for new way of indicating
5382         function scope.
5383         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
5384         (start_function): Don't set subblocks_tag_transparent.
5385         (finish_function): Fix up the binding_level stack for totally
5386         empty functions.  Otherwise, don't call poplevel.
5387
5388         * c-common.c (shadow_warning): MANDATORY argument is no longer
5389         necessary.  Always use plain warning.
5390         * c-common.h: Update to match.
5391
5392         * cfglayout.c (scope_to_insns_initialize): Clear block when we
5393         hit the FUNCTION_DECL.
5394         * function.c: Do not create cyclic tree structure.
5395
5396 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5397
5398         * c-tree.h (struct lang_identifier): Replace global_value,
5399         local_value members with symbol_value, tag_value.  Kill
5400         implicit_decl and limbo_value.
5401         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
5402         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
5403         C_MISSING_PROTOTYPE_WARNED): Kill.
5404         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
5405         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
5406         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
5407         (implicit_decl_warning, lookup_name_current_level,
5408         record_function_scope_shadow): Don't prototype.
5409         (pushdecl_function_level): Prototype.
5410
5411         * c-decl.c (truly_local_externals): New variable.
5412         (struct binding_level): Adjust commentary.
5413         (get_function_binding_level, clear_limbo_values,
5414         record_function_scope_shadow): Kill.
5415         (lookup_name_current_level, implicit_decl_warning): Are now static.
5416         (any_external_decl, record_external_decl): New static functions.
5417         (clone_underlying type): Split out of pushdecl.
5418         (c_print_identifier): Update to match changes to struct
5419         lang_identifier.
5420         (poplevel): Delete #if 0 block.  Make externals invisible
5421         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
5422         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
5423         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
5424         (duplicate-decls): For real parm decl after a forward decl,
5425         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
5426         foo(...) { } with only a warning.  Say whether a previous
5427         declaration was implicit.
5428         (warn_if_shadowing): Now handles all shadowing, not just
5429         local-over-local.  Clarify comments.
5430         (pushdecl): Rewritten.  There is no longer a distinction
5431         between global and local symbol values; they're all
5432         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
5433         DECL_EXTERNAL decls, and use any_external_decl to check
5434         against previous externals.  Kill #if 0 blocks.  Don't
5435         tolerate error_mark_node being NULL.
5436         (pushdecl_top_level): Handle only those cases which
5437         Objective C (the only user) needs.
5438         (pushdecl_function_level): New function.
5439         (implicitly_declare): Create ordinary decls with
5440         C_DECL_IMPLICIT set.  Recycle old decls, however they got
5441         created.
5442         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
5443         for C_DECL_INVISIBLE symbols.
5444         (lookup_name_current_level): Likewise.  Use chain_member.
5445         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
5446         Use pushdecl_function_level.
5447         (builtin_function): Use C_DECL_INVISIBLE.
5448         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
5449         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
5450         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
5451         (identifier_global_value): Same.  Must scan
5452         global_binding_level in extremis.
5453
5454         * c-typeck.c (undeclared_variable): New static function, split
5455         from build_external_ref.
5456         (build_external_ref): Use DECL_CONTEXT, not
5457         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
5458         an instance variable.  Restructure for clarity.
5459         * objc/objc-act.c: Use identifier_global_value, not
5460         IDENTIFIER_GLOBAL_VALUE.
5461
5462 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
5463
5464         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
5465         not Working Paper.
5466         * doc/invoke.texi (C++ Dialect Options): Same.
5467
5468 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5469
5470         * tree.c (tree_operand_check_failed): New function.
5471         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
5472         TREE_RTL_OPERAND_CHECK): New checking macros.
5473         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
5474         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
5475         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
5476         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
5477         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
5478         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
5479         checking macros.
5480
5481 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
5482
5483         PR inline-asm/8803
5484         * function.c (instantate_virtual_regs):  Verify that all ASM statements
5485         match after the virutal regs instantiation.
5486
5487 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
5488
5489         * ia64-protos.h (addp4_optimize_ok): New.
5490         * ia64.c (addp4_optimize_ok): New.
5491         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
5492         (*ptr_extend_plus_2): Ditto.
5493
5494 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
5495
5496         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
5497         not with convert_memory_address.
5498         (store_constructor): Ditto, and same for copy_size_rtx.
5499         (expand_expr): Ditto.
5500
5501 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
5502
5503         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
5504
5505 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
5506
5507         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
5508         even if it is configured to be write-through.
5509
5510 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
5511
5512         * config/s390/s390.c (larl_operand): Do not allow symbols
5513         marked with '@'.
5514         (s390_encode_section_info): Mark symbols with forced 1-byte
5515         alignment with '@'.
5516         (s390_strip_name_encoding): Strip '@'.
5517         (legitimize_pic_address): Handle symbols that are not valid
5518         LARL operands in 64-bit mode.
5519
5520 2003-04-10  Andrew Haley  <aph@redhat.com>
5521
5522         * tree-inline.c (inlinable_function_p): Disable inlining for
5523         synchronized methods.
5524
5525 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
5526
5527         * c-common.h (lang_statement_code_p): Remove declaration.
5528         (statement_code_p): Ditto.
5529         (c_common_stmt_codes): Define; list of c-common statement codes.
5530         (statement_code_p): New extern declaration.
5531         (STATEMENT_CODE_P): Define.
5532         (INIT_STATEMENT_CODES): Define.
5533         * c-common.c (statement_code_p): Kill the function, declare
5534         as an array of bools instead.
5535         (lang_statement_code_p): Remove.
5536         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
5537         (c_safe_from_p): Ditto.
5538         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
5539         to initialize the statement_code_p array.
5540         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
5541         statement_code_p.
5542         (copy_tree_r): Ditto.
5543         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
5544         statement tree codes.
5545         * cp/lex.c (cxx_init): Add missing print line break.  Use
5546         INIT_STATEMENT_CODES to initialize the statement_code_p array.
5547         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
5548         instead of statement_code_p.
5549         * cp/pt.c (tsubst_expr): Ditto.
5550         * cp/tree.c (verify_stmt_tree_r): Ditto.
5551         (cp_statement_code_p): Remove.
5552         (init_tree): Don't set lang_statement_code_p, it's gone.
5553
5554 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
5555             Zack Weinberg  <zack@codesourcery.com>
5556
5557         * regrename.c (struct du_chain): Use a bitfield for reg_class.
5558         * cse.c (struct qty_table_elem, struct table_elt, struct set):
5559         Use bitfields for fields holding enum rtx_code or
5560         enum machine_mode values.  Add comments explaining size choices.
5561
5562 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
5563
5564         * config/fp-bit.c (unpack_d): Handle pair of doubles with
5565         different signs correctly.
5566
5567 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5568
5569         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
5570         (reg_pending_barrier): Make it of the enumeration type.
5571         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
5572         TRUE_BARRIER.
5573         (sched_analyze): Ditto.
5574         (sched_analyze_insn): Ditto.  Use anti-dependencies for
5575         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
5576         (init_deps_global): Initialize the barrier as NO_BARRIER.
5577
5578 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5579
5580         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
5581         Check that asm insn starts on a new cycle.  Add nops after asm
5582         insn to end bundle.
5583         (bundling): Move insn type evaluation from the loop.  Call
5584         issue_nops_and_insn with the new parameter.  Ignore changing
5585         position for nops after asm insn.
5586
5587 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
5588
5589         * optabs.c: Comment that gen_add2_insn and others may actually
5590         return emitted insns, if the gen functions turn out to return
5591         emitted insns.
5592         * reload1.c (reload_cse_move2add): Cope with emitted insns from
5593         gen_add2_insn.
5594
5595 2003-04-09  Richard Henderson  <rth@redhat.com>
5596
5597         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
5598         but not tls_symbolic_operand.
5599         (ia64_expand_load_address): Remove scratch operand.
5600         (ia64_expand_tls_address): Split out from ia64_expand_move.
5601         (ia64_expand_move): Split symbolics only after reload.
5602         (ia64_emit_cond_move): New.
5603         * config/ia64/ia64-protos.h: Update.
5604         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
5605         (symbolic splitter): Accept SImode operands too.
5606         (cmove splitter): Use ia64_emit_cond_move.
5607
5608 2003-04-09  Nick Clifton  <nickc@redhat.com>
5609
5610         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
5611         newer.
5612         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
5613         instead of -mno-fpu.
5614         * config/arm/semi.h (ASM_SPEC): Likewise.
5615         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
5616         but only if -msoft-float is specified pass.  Otherwise pass
5617         -mfpu=softvfp.
5618
5619 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5620
5621         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
5622         free_EXPR_LIST_node.
5623
5624 2003-04-08  Roger Sayle  <roger@eyesopen.com>
5625
5626         * fold-const.c (fold):  Use "fold" following build in more places.
5627         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
5628         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
5629
5630 2003-04-08  Roger Sayle  <roger@eyesopen.com>
5631
5632         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
5633         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
5634         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
5635         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
5636         Delete function scope "fcode" variable to avoid shadowing.
5637
5638 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
5639
5640         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
5641         Take into account DWARF_INITIAL_LENGTH_SIZE.
5642
5643 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
5644
5645         * reorg.c (fill_slots_from_thread): When considering changing the
5646         insn following a reg-to-reg copy insn to use the source reg of the
5647         copy, bail out if there's overlap between the registers.
5648
5649 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5650
5651         * function.c (postponed_insns): New.
5652         (purge_addressof_1): Postpone processing of insns if addressofs
5653         are not put into stack.
5654         (purge_addressof): Process postponed insns.
5655
5656 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
5657
5658         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
5659         this is FP_MODE_DOUBLE .
5660         * sh.c (ra.h): #include.
5661         (push_regs): Add second parameter.  Changed all callers.
5662         If necessary, set fpscr before saving floating point registers.
5663         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
5664         do saves / restores with SZ == 1.
5665         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
5666         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
5667         registers are being restored, restore FPSCR only after restoring them.
5668
5669 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
5670
5671         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
5672         regardless of architecture.
5673         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
5674
5675 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
5676
5677         * sh.c (push_regs, calc_live_regs): Return int.  Take single
5678         HARD_REG_SET * parameter.  Changed all callers.
5679
5680 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
5681
5682         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
5683         GOTOFF operand.
5684         (legitimize_pic_address): Move plus outside the unspec.
5685         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
5686         for validity.
5687
5688 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
5689
5690         * gcov-io.h (gcov_save_position): Remove __inline__ from
5691         declaration.
5692
5693 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
5694
5695         * doc/install.texi: Use @command and @samp for single- and
5696         multi-word commands respectively.
5697         * doc/makefile.texi: Likewise.
5698         * doc/sourcebuild.texi: Likewise.
5699
5700 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
5701             Richard Henderson  <rth@redhat.com>
5702
5703         PR c/9516
5704         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
5705         favour of looping and tail recursion for TREE_LIST and binops.
5706
5707 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5708
5709         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
5710         for insns without luid.
5711
5712 2003-04-07  Glen Nakamura  <glen@imodulo.com>
5713
5714         PR opt/8634
5715         * explow.c (maybe_set_unchanging): Don't flag non-static const
5716         aggregate type initializers with RTX_UNCHANGING_P.
5717
5718 2003-04-07  Richard Henderson  <rth@redhat.com>
5719
5720         PR opt/8634
5721         * function.c (purge_addressof_1): Don't try arithmetics for
5722         unchanging memories.
5723
5724 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
5725
5726         * doc/sourcebuild.texi (Test Suites): Document testing support for
5727         gcov and profile-directed optimizations; describe gcc.misc-tests.
5728
5729 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
5730
5731         PR target/10077
5732         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
5733
5734 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5735
5736         * doc/rtl.texi (Comparison operations): Update to
5737         record the allowed comparison modes.
5738
5739 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
5740
5741         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
5742         V2SI_type_node to opaque_V2SI_type_node.  Rename all
5743         V2SF_type_node to opaque_V2SF_type_node.
5744         (rs6000_init_builtins): Define opaque_V2SI_type_node and
5745         opaque_V2SF_type_node.
5746         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
5747         opaque_V2SF_type_node are opaque types.
5748
5749 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
5750
5751         * gcse.c (replace_store_insn): Use single_set.
5752
5753 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
5754
5755         Change gcov file interface to single file at a time.
5756         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
5757         Convert to C89 prototypes.
5758         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
5759         gcov_error, gcov_modified): New static variables.
5760         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
5761         functions.
5762         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
5763         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
5764         (gcov_read_summary, gcov_write_summary): Adjust.
5765         (gcov_save_position, gcov_reserve_length, gcov_write_length):
5766         Adjust.
5767         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
5768         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
5769         (da_file_position, da_file_seek, da_file_write, da_file_read):
5770         Remove.
5771         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
5772         * gcov.c (gcov_type): Don't typedef here.
5773         (IN_GCOV): #define
5774         (read_graph_file, read_count_file): Adjust.
5775         * gcov-dump.c (gcov_type): Don't typedef here.
5776         (IN_GCOV): #define.
5777         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
5778         Remove FILE parameter, adjust.
5779         (struct tag_format): Adjust proc member.
5780         (dump_file): Adjust.
5781         * libgcov.c (IN_LIBGCOV): #define.
5782         (gcov_exit): Adjust.
5783         * loop-init.c: Don't #include gcov-io.h
5784         * profile.c (struct counts_entry): New structure to hold counter
5785         values.
5786         (struct section_reference, struct da_index_entry): Remove.
5787         (bbg_file, da_file): Remove.
5788         (htab_counts_index_hash, htab_counts_index_eq,
5789         htab_counts_index_del): Replace with ...
5790         (htab_counts_entry_hash, htab_counts_entry_eq,
5791         htab_counts_entry_del): ... these.
5792         (cleanup_counts_index, index_counts_file): Remove.
5793         (read_counts_file): New function.
5794         (get_exec_counts): Adjust.
5795         (compute_branch_probabilities): Don't free the exec counts here.
5796         (branch_prob): Adjust.
5797         (init_branch_prob): Adjust.
5798         (end_branch_prob): Adjust.
5799
5800 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
5801
5802         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5803         -mfloat-gprs.
5804
5805         * config/rs6000/rs6000.c: Delete rs6000_fprs.
5806         Declare rs6000_float_gprs.
5807         Declare rs6000_float_gprs_string.
5808         (rs6000_parse_float_gprs_option): New.
5809         (rs6000_override_options): Genericize rs6000_parse_* calls to use
5810         rs6000_parse_yes_no_option.
5811         Change check for cpu=8540, to use TARGET_E500.
5812         (rs6000_parse_isel_option): Delete.
5813         (rs6000_parse_spe_option): Delete.
5814         (rs6000_parse_vrsave_option): Delete.
5815
5816         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
5817         Define rs6000_float_gprs_string.
5818         (TARGET_OPTIONS): Add rs6000_float_gprs option.
5819
5820         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
5821
5822         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
5823
5824 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
5825
5826         PR opt/10024
5827         * cfglayout.c (cfg_layout_redirect_edge):
5828         Redirect any branch edges unified with the fallthru one.
5829         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
5830         case fallthru edges when called via cfglayout.c
5831
5832 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
5833
5834         * c-typeck.c (output_init_element): Check for type == error_mark_node.
5835
5836 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
5837
5838         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
5839         split.
5840         (a splitter): Do zero-extension via HImode.
5841
5842 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
5843
5844         * doc/invoke.texi: Eliminate extra white-space caused by
5845         @gccoptlist{ on its own line.
5846         * doc/invoke.texi: Ensured there are two spaces between each option.
5847         * doc/invoke.texi: Re-wrapped option lines that were too wide.
5848         Added @gol to options that didn't have them.
5849
5850 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
5851
5852         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
5853
5854 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
5855
5856         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
5857         at the sizes of the relevant structures, rather than relying
5858         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
5859         sizes of any such we don't know about.  Use
5860         lang_hooks.identifier_size for IDENTIFIER_NODE.
5861
5862         (initializer_zerop): Use CONSTRUCTOR_ELTS.
5863         * tree.def: Update commentary.  Make fourth element of
5864         the definition for all 'c' and 'x' nodes zero.
5865
5866         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
5867         * langhooks-def.h: Update to match.
5868         * langhooks.c: New default, lhd_tree_size.
5869
5870         * c-common.def (SRCLOC): Kill.
5871         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
5872         Remove entirely - was already #if-ed out.
5873
5874
5875 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
5876
5877         * mklibgcc.in: Use a here document to avoid running afoul of
5878         shells that generate control-A from "echo \1".
5879
5880 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
5881
5882         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
5883         option.
5884
5885         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5886         rs6000_spe.
5887
5888         * config/rs6000/eabi.h (TARGET_E500): Define.
5889
5890         * config/rs6000/rs6000.h (TARGET_E500): Define.
5891         (TARGET_OPTIONS): Add spe= option.
5892         Declare rs6000_spe and rs6000_spe_string extern.
5893
5894         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
5895         Change TARGET_SPE to TARGET_E500.
5896         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
5897         !TARGET_FPRS.
5898         (print_operand): Same.
5899         (rs6000_generate_compare): Same.
5900         (output_cbranch): Same.
5901         (rs6000_spe): Declare.
5902         (rs6000_spe_string): Declare.
5903         (rs6000_override_options): Call rs6000_parse_spe_option.
5904         (rs6000_parse_spe_option): New.
5905
5906 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
5907
5908         * hashtable.c (gcc_obstack_init): Delete this function
5909         and everything related to it.
5910         * hashtable.h: Remove prototype.
5911         * bitmap.c (bitmap_element_allocate): Cleanup redundant
5912         defines.  Cleanup some unnecessary whitespace.
5913         * defaults.h (obstack_chunk_alloc): Redefine with
5914         appropriate casts for libiberty obstacks.
5915         (obstack_chunk_free): Ditto.
5916         (OBSTACK_CHUNK_SIZE): Define, default to 0.
5917         (gcc_obstack_init): Define as a call to _obstack_begin.
5918         * tree.c (print_obstack_statistics): Delete this unused
5919         function.
5920         * tree.h (obstack): Don't forward-declare.
5921         (print_obstack_statistics): Delete prototype.
5922         (print_obstack_name): Ditto.
5923         (gcc_obstack_init): Ditto.
5924         * rtl.h (gcc_obstack_init): Ditto.
5925         * java/jv-scan.c (gcc_obstack_init): Delete this
5926         function, its prototype and related defines.
5927         * java/jvgenmain.c (gcc_obstack_init): Delete this
5928         function, and related defines.
5929         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
5930         (obstack_chunk_free): Ditto
5931
5932 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
5933
5934         * dbxout.c (dbxout_handle_pch): Move prototype out from
5935         #if defined DBX_DEBUGGING_INFO.
5936
5937 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
5938
5939         * gcov.c (struct arc_info): Replace local_span with cycle.
5940         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
5941         (solve_flow_graph): Set is_call_return.
5942         (add_line_counts): Adjust. In block mode, blocks attach to last line.
5943         (accumulate_line_counts): Find graph cycles, not spanning tree.
5944         (output_branch_count): Adjust.
5945         (output_lines): Adjust.
5946         * doc/gcov.texi: Update.
5947
5948 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
5949
5950         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
5951         the second alternative to "#".
5952
5953 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
5954
5955         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
5956         (single_zero_operand): Likewise.
5957
5958 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
5959
5960         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
5961         * df.c: Include alloc-pool.h, not obstack.h.
5962         (df_ref_obstack): Remove.
5963         (df_ref_pool, df_link_pool): Add pools.
5964         (df_alloc): Init the new pools.
5965         (df_free): And free them.
5966         (df_link_create): Use the pools.
5967         (df_ref_create): Ditto.
5968
5969 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
5970
5971         * simplify-rtx.c: Fix formatting.
5972
5973 2003-04-05  Andrew Pinski  <apinski@apple.com>
5974
5975         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
5976         reg with reg1 == reg2 and offset1 = -8.
5977
5978 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
5979
5980         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
5981         multiply costs.  Correct Power4 divide costs.
5982         * config/rs6000/power4.md: Restore multiply and FP latency.
5983
5984 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5985
5986         * alias.c (find_base_term): Export.
5987         * rtl.h (find_base_term): Declare.
5988         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
5989         instead of flag_exceptions.  Move test for parameter passing ...
5990         (store_killed_in_insn): ... here.
5991
5992 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5993
5994         PR bootstrap/10267
5995         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
5996         for configuring.
5997
5998 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
5999
6000         * dbxout.c (scope_labelno): Add GTY.
6001         (have_used_extensions): Add GTY.
6002         (source_label_number): Add GTY.
6003         (lastfile): Add GTY.
6004         (lastfile_is_base): New.
6005         (base_input_file): New.
6006         (dbxout_handle_pch): New.
6007         (dbx_debug_hooks): Add handle_pch.
6008         (xcoff_debug_hooks): Likewise.
6009         (dbxout_function_end): Remove scope_labelno.
6010         (dbxout_init): Set base_input_file.
6011         (dbxout_handle_pch): New.
6012         (dbxout_source_file): Honour lastfile_is_base.
6013         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
6014         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
6015         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
6016         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
6017         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
6018         * debug.h (struct gcc_debug_hooks): Add handle_pch.
6019         * c-pch.c (pch_init): Don't call start_source_file, but do call
6020         handle_pch.
6021         (c_common_write_pch): Call handle_pch.
6022         (c_common_read_pch): Don't call start_source_file,
6023         or end_source_file.
6024
6025 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
6026
6027         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
6028         use of default attributes to agree MEM_ALIGN macro.
6029
6030 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
6031
6032         * dbxout.c (dbxout_type): When printing type index of range type
6033         whose bounds are printed in octal format, print type of parent type if
6034         it exists so enumerated type descriptions are not transformed
6035         into unsigned types.
6036
6037 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
6038
6039         * config/h8300/h8300-protos.h: Add a prototype for
6040         compute_a_shift_cc.
6041         * config/h8300/h8300.c (shift_one): Update the CC status.
6042         (shift_two): Likewise.
6043         (output_a_shift_cc): Set cc_inline and cc_special.
6044         (compute_a_shift_cc): New.
6045         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
6046
6047 2003-04-04  Richard Henderson  <rth@redhat.com>
6048
6049         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
6050
6051 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
6052
6053         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
6054         * fixinc/fixincl.x: Rebuilt.
6055         * fixinc/tests/base/stdio.h: Regenerated.
6056
6057 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
6058
6059         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
6060
6061 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
6062
6063         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
6064         (NORMAL_MODE).
6065         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
6066
6067 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6068
6069         * doc/contrib.texi (Contributors): Add entries for Wolfgang
6070         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
6071         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
6072         Danny Smith, and Ulrich Weigand.
6073         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
6074         entry.
6075
6076 2003-04-04  Nick Clifton  <nickc@redhat.com>
6077
6078         * config/sparc/sol2-bi.h: Revert previous delta.
6079         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
6080
6081 2003-04-04  Nick Clifton  <nickc@redhat.com>
6082
6083         * config/v850/v850.c (expand_prologue): Only use register save
6084         helper functions if long calls are not being used.
6085         Add a clobber of r11 id using long calls.
6086         (pattern_is_ok_for_prologue): Account for the extra clobber.
6087         (construct_save_jarl): Likewise.
6088         * config/v850/v850.md (prolog pattern): Do not use this pattern
6089         for v850e's.
6090
6091 2003-04-04  Andreas Schwab  <schwab@suse.de>
6092
6093         * stor-layout.c (layout_decl): Avoid syntax error in last change
6094         when PCC_BITFIELD_TYPE_MATTERS is defined but not
6095         EMPTY_FIELD_BOUNDARY.
6096
6097 2003-04-03  Jason Merrill  <jason@redhat.com>
6098
6099         PR c/10175
6100         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
6101         Look backwards for a line note.
6102
6103 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
6104
6105         * fix-header.c (read_scan_file): Defer switch processing.
6106
6107 2003-04-03  Matt Austern  <austern@apple.com>
6108
6109         * cpppch.c (reset_ht): Remove.
6110         (cpp_read_state): Remove loop to reset hashtable identifiers.
6111         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
6112         after pch file is written.
6113         * ggc.h (gt_pch_fixup_stringpool): Declare.
6114         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
6115         hashnode's value to another hashtable, then clear the original.
6116         (saved_ident_hash): Define.
6117         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
6118         store definitions in ident_hash, and clear ident_hash.
6119         (gt_pch_fixup_stringpool): Define.  Restore definitions from
6120         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
6121
6122 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
6123
6124         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
6125
6126 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6127
6128         PR optimization/10157
6129         * gcse.c (can_copy_p): Rename it to can_copy.
6130         (can_copy_init_p): Remove.
6131         (compute_can_copy): Use can_copy instead of can_copy_p.
6132         (can_copy_p): New exported function. Call compute_can_copy.
6133         (hash_scan_set): Use it.
6134         (gcse_main): Don't call compute_can_copy.
6135         (bypass_jumps): Don't call compute_can_copy.
6136         * rtl.h (can_copy_p): Declare.
6137         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
6138         copy if the mode doesn't support copy operations.
6139
6140 2003-04-03  Jason Merrill  <jason@redhat.com>
6141
6142         * Makefile.in (unstrap): Also remove stage_last.
6143
6144         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
6145         (dwarf2out_source_line): Don't do anything if line==0.
6146
6147         * stor-layout.c (do_type_align): New fn, split out from...
6148         (layout_decl): ...here.  Do all alignment calculations for
6149         FIELD_DECLs here.
6150         (update_alignment_for_field): Not here.
6151         (start_record_layout, debug_rli): Remove unpadded_align.
6152         * tree.h (struct record_layout_info_s): Remove unpadded_align.
6153         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
6154         or DECL_MODE on the CONST_DECLs.
6155         (finish_struct): Don't mess with DECL_ALIGN.
6156
6157 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
6158
6159         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
6160
6161 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
6162
6163         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
6164         function is an interrupt handler.
6165
6166         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
6167         restoring target registers with EH_RETURN_STACKADJ_RTX; use
6168         multiple registers in round-robin fashion.
6169
6170 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6171
6172         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
6173         * system.h (CHAR_BITFIELD): New.
6174
6175 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
6176
6177         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
6178         and LE.
6179         (another peephole2): Likewise.
6180
6181 2003-04-03  Nick Clifton  <nickc@redhat.com>
6182
6183         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
6184         (DEF_ARCH64_SPEC): Likewise.
6185
6186 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
6187
6188         * i386.c (constant_address_p): Use legitimate_constant_p.
6189         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
6190
6191 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6192
6193         * config/h8300/h8300-protos.h: Add a prototype for
6194         gtle_operator.
6195         * config/h8300/h8300.c (gtle_operator): New.
6196         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
6197         gtle_operator.
6198         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
6199         and LE.
6200
6201 2003-04-02  Richard Henderson  <rth@redhat.com>
6202
6203         * libgcc-std.ver (_Unwind_GetCFA): New.
6204         * unwind-dw2.c (_Unwind_GetCFA): New.
6205         * unwind-libunwind.c (_Unwind_GetCFA): New.
6206         * unwind-sjlj.c (_Unwind_GetCFA): New.
6207         * unwind.h: Declare it.
6208
6209 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
6210
6211         PR inline-asm/8088
6212         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
6213         when MMX/SSE is not available.
6214
6215 2003-04-02  Mike Stump  <mrs@apple.com>
6216
6217         * doc/install.texi (Specific): Update pointers to apple.com.
6218
6219 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
6220
6221         * i386.c (override_options):  Disable red zone by default on i386.
6222         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
6223         Do not test TARGET_64BIT together with TARGET_RED_ZONE
6224
6225 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6226
6227         * config/h8300/h8300.md (a peephole2): Tighten the condition.
6228
6229 2003-04-02  Richard Henderson  <rth@redhat.com>
6230
6231         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
6232
6233 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6234
6235         * config/h8300/h8300.md (a peephole2): New.
6236
6237 2003-04-02  Richard Henderson  <rth@redhat.com>
6238
6239         * except.c (sjlj_find_directly_reachable_regions): Recognize when
6240         must-not-throw region has been deleted.
6241
6242 2003-04-02  Richard Henderson  <rth@redhat.com>
6243
6244         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
6245         optimization when flag_exceptions not enabled.
6246
6247 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
6248
6249         * config/rs6000/rs6000.c
6250         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
6251         macros.
6252         (rs6000_issue_rate): Add case for 8540.
6253         (rs6000_use_sched_lookahead): New function.
6254
6255         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
6256         units into MU ones.
6257         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
6258         reservation before retirement.
6259         (ppc8540_multiply, ppc8540_load, ppc8540_store,
6260         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
6261         Remove additional cycle in the reservation before retirement.
6262         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
6263         reservation of ppc8540_issue.
6264
6265 2003-04-02  Andreas Schwab  <schwab@suse.de>
6266
6267         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
6268
6269 2003-04-01  Richard Henderson  <rth@redhat.com>
6270
6271         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
6272         notes for nothrow calls if flag_forced_unwind_exceptions.
6273         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
6274         (sjlj_find_directly_reachable_regions): Likewise.
6275         (reachable_handlers): Likewise.
6276         (can_throw_external): Likewise.
6277         (collect_one_action_chain): Record cleanups after catch-all and
6278         must-not-throw if flag_forced_unwind_exceptions.
6279         * flags.h (flag_forced_unwind_exceptions): Declare.
6280         * toplev.c (flag_forced_unwind_exceptions): New.
6281         (lang_independent_options): Add it.
6282         * doc/invoke.text: Add it.
6283
6284 2003-04-01  David Mosberger <davidm@hpl.hp.com>
6285
6286         * config/ia64/crti.asm: Clean up trailing whitespace.
6287         Remove trailing hashes (#) from identifiers.
6288
6289         * config/ia64/crtn.asm: Ditto.
6290
6291         * config/ia64/crtend.asm: Remove trailing hashes (#) from
6292         identifiers.
6293         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
6294         directives.  Drop explicit bundling---it just makes the code
6295         harder to read.  Don't save/restore gp needlessly.
6296
6297         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
6298         identifiers (they're only needed if the identifier would clash
6299         with a register name otherwise).
6300         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
6301         directives.  Drop explicit bundling---it just makes the code
6302         harder to read.
6303         (__do_jv_register_classes): Ditto.
6304         (.fini_array): Remove "progbits" (newer
6305         assemblers don't like wrong section-types).
6306         (.init_array): Ditto.
6307
6308 2003-04-01  Roger Sayle  <roger@eyesopen.com>
6309
6310         PR fortran/9974
6311         * gcse.c (reg_killed_on_edge): New function to test whether the
6312         given reg is overwritten by any instruction queued on an edge.
6313         (bypass_block): Ignore substitutions killed on incoming edges.
6314         Don't bypass outgoing edges that have queued instructions.
6315
6316 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
6317
6318         * real.h (EXP_BITS): Make room for...
6319         (struct real_value): ... added canonical bit.
6320         (struct real_format): Added pnan.
6321         (mips_single_format, mips_double_format, mips_extended_format,
6322         mips_quad_format): New.
6323         * real.c: Copy p to pnan in all formats.
6324         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
6325         (real_nan): Use pnan to compute significand's shift.
6326         (real_identical): Disregard significand in canonical
6327         NaNs.
6328         (real_hash): Likewise.  Take signalling into account.
6329         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
6330         Disregard significand bits in canonical NaNs.  Set all bits of
6331         canonical NaN if !qnan_msb_set.
6332         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
6333         qnan_msb_set to tell the base double format.
6334         (ibm_extended_format): Use 53 as pnan.
6335         (mips_single_format, mips_double_format, mips_extended_format,
6336         mips_quad_format): Copied from the corresponding ieee/ibm
6337         formats, with qnan_msb_set false.
6338         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
6339         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
6340         * config/mips/mips.c (override_options): Use mips_single_format
6341         and mips_double_format.  Default TFmode to mips_quad_format.
6342         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
6343         * config/mips/t-irix6: Likewise.
6344         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
6345         * config/fp-bit.c (pack_d, unpack_d): Obey it.
6346
6347 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
6348
6349         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
6350         (live_image_destructor): Reset image to initial state.
6351         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
6352
6353 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
6354
6355         * config/sparc/sparc.c (input_operand): Accept bare
6356         CONSTANT_P_RTX operands.
6357
6358 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6359
6360         * gcse.c (struct ls_expr): Added pattern_regs field.
6361         (ldst_entry): Initialize it.
6362         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
6363         (store_ops_ok): Use regs precomputed by them.
6364         (find_loads, store_killed_in_insn, load_kills_store): Change return
6365         type to bool.
6366         (store_killed_before, store_killed_after): Take position of register
6367         set in account.
6368         (reg_set_info): Store position of the setter.
6369         (gcse_main): Enable store motion.
6370         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
6371         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
6372         sharing.
6373         (simple_mem): Enable store motion of non-symbol mems.
6374         (regvec): Type changed.
6375         (LAST_AVAIL_CHECK_FAILURE): New.
6376         (compute_store_table_current_insn): New.
6377         (build_store_vectors): Computation of availability and anticipatability
6378         moved ...
6379         (compute_store_table, find_moveable_store): ... here.
6380         (delete_store): Remove senseless comment.
6381         (store_motion): Reorganize.
6382
6383 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
6384
6385         * config/mips/mips.c (override_options): Provide mappings for
6386         HI_REGNUM and LO_REGNUM.
6387         * config/mips/mips.h (MD_DBX_FIRST): Define.
6388
6389 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6390
6391         * combine.c (merge_outer_ops): Fix typo.
6392
6393         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
6394
6395 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
6396
6397         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
6398         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
6399         imul_compare.  Add lmul_compare.
6400         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
6401         in second pair of dispatch slots.  Model stores more accurately.
6402         Tweak multiply model.  Add bypasses for CR instructions dependent
6403         on complicated compares.
6404         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
6405         (muldi3): Add lmul_compare patterns.
6406         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
6407         and FPSTORE_UX to split instructions and add COMPARE,
6408         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
6409         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
6410         (rs6000_rtx_costs): Separate POWER4 multiply case.
6411
6412 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
6413
6414         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
6415         Do nothing if __builtin_return_address was not used.
6416
6417 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
6418
6419         * i386.md (test patterns):  Allow memory operand in operand1.
6420
6421 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
6422
6423         * testsuite/gcc.c-torture/execute/simd-3.c: New.
6424
6425         * expr.c (expand_expr): Handle VECTOR_CST.
6426         (const_vector_from_tree): New.
6427
6428         * varasm.c (output_constant): Handle VECTOR_CST.
6429
6430         * c-typeck.c (digest_init): Build a vector constant from a
6431         VECTOR_TYPE.
6432
6433         * config/rs6000/rs6000.c: Remove prototype for
6434         easy_vector_constant.
6435         (easy_vector_constant): Add mode parameter.  Rewrite to handle
6436         more easy constants.
6437         (rs6000_emit_move): Pass mode to easy_vector_constant.
6438         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
6439         (emit_easy_vector_insn): New.
6440         (easy_vector_same): New.
6441         (EASY_VECTOR_15): New macro.
6442         (EASY_VECTOR_15_ADD_SELF): New macro.
6443         (bdesc_2arg): Rename to xorv2si3.
6444         (easy_vector_constant_add_self): New.
6445         (input_operand): Allow vector constants.
6446
6447         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6448         easy_vector_constant, easy_vector_constant_add_self.
6449         (EXTRA_CONSTRAINT): Add 'W'.
6450
6451         * config/rs6000/rs6000-protos.h: Add prototype for
6452         easy_vector_constant, emit_easy_vector_insn.
6453
6454         * config/rs6000/altivec.md (xorv8hi3): New.
6455         (xorv16qi3): New.
6456         Remove all _const0 patterns.
6457         (movv4si_internal): Rewrite to use code.  Add vector constant to
6458         vector alternative.  Add splitter.
6459         (movv8hi_internal): Same.
6460         (movv16qi_internal): Same.
6461         (movv4sf_internal): Same.
6462         Change the unspecs for vspltis* to use constants.
6463
6464         * config/rs6000/spe.md ("xorv4hi3"): New.
6465         ("spe_evxor"): Rename to xorv2si3.
6466         ("xorv1di3"): New.
6467         Remove all _const0 patterns.
6468         (movv2si_internal): Rewrite to use code.  Add vector constant to
6469         alternatives.  Add splitter.
6470         (movv4hi_internal): Add vector constant to alternatives.
6471         (movv1di_internal): Same.
6472         (movv2sf_internal): Same.
6473
6474 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
6475
6476         PR c/9936
6477         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
6478         variably-sized arrays in parameters.
6479         (set_save_expr_context): New function.
6480         (c_expand_body): Use it, via walk_tree.
6481
6482 2003-03-31  Eric Christopher  <echristo@redhat.com>
6483
6484         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
6485         (combinable_i3pat): Remove call to expand_field_assignment and
6486         #if 0'd code.
6487
6488 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
6489
6490         PR c++/10278
6491         * c-common.c (finish_label_address_expr): Handle the
6492         error_mark_node.
6493
6494 2003-03-31  Richard Henderson  <rth@redhat.com>
6495
6496         * real.c (real_identical): Reorg so as to not compare
6497         signalling for normals.
6498
6499 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6500
6501         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
6502
6503 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6504
6505         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
6506         notes as they are boggus.
6507         (m68hc11_gen_movqi): Likewise.
6508
6509 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6510
6511         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
6512         save the soft registers after the frame pointer so that gdb can unwind
6513         the frame more easily.
6514         (expand_epilogue): Likewise in opposite order; allow to use X register
6515         as scratch if the return value is by reference.
6516
6517 2003-03-31  Jason Merrill  <jason@redhat.com>
6518
6519         PR java/10145
6520         * stor-layout.c (update_alignment_for_field): Respect
6521         DECL_USER_ALIGN for zero-length bitfields, too.
6522         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
6523         fields.
6524
6525 2003-03-31  Matt Austern  <austern@apple.com>
6526
6527         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
6528         (count_defs): Keep track of number of defs as well as total size.
6529         (write_defs): Put every definition in cpp_savedstate's defs array.
6530         (comp_hashnode): Define.  Comparison function for qsort.
6531         (cpp_write_pch_deps): Sort definitions before writing them.
6532         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
6533         (collect_ht_nodes): Define.
6534         (cpp_valid_state): When verifying that undefined identifiers in
6535         the pch file are still undefined, read a sorted list of undefined
6536         identifiers, collect all defined identifiers into a sorted list,
6537         and walk through both lists to make sure there's no match.
6538
6539 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6540
6541         * config/h8300/h8300.md (a peephole2): New.
6542
6543 2003-03-31  Michael Matz  <matz@suse.de>
6544
6545         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
6546
6547 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
6548
6549         PR target/10177
6550         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
6551         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
6552         all call-clobbered registers as used.
6553
6554 2003-03-31  Michael Matz  <matz@suse.de>
6555
6556         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
6557         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
6558
6559 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
6560
6561         * gcov.c: Add -a & -u options.
6562         (struct arc_info): Add local_span, is_call_non_return,
6563         is_nonlocal_return, is_unconditional flags, remove is_call flag.
6564         (struct block_info): Add flags, is_call_site, is_nonlocal_return
6565         members. Make encodings a union with span member.
6566         (struct function_info): Add blocks_executed, line, src, line_next
6567         members.
6568         (struct coverage_info): Make branches a union with blocks member.
6569         (struct source_info): Add functions member.
6570         (object_summary, program_count): New global variables.
6571         (flag_all_blocks, flag_unconditional): New flags.
6572         (find_source, output_branch_count): New functions.
6573         (print_usage): Adjust.
6574         (options): Adjust.
6575         (process_args): Adjust.
6576         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
6577         <GCOV_TAG_BLOCKS>: Read flags.
6578         <GCOV_TAG_LINES>: Adjust.
6579         (read_count_file): Process SUMMARY tags.
6580         (solve_flow_graph): Set is_unconditional and clear is_call_site
6581         appropriately.
6582         (add_branch_counts): Adjust. Don't count unconditional branches.
6583         (add_line_counts): Deal with all-blocks mode, accumulate block
6584         coverage.
6585         (accumulate_line_counts): Adjust, generate local spanning tree for
6586         all-blocks mode.
6587         (output_lines): Adjust.
6588         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
6589         * doc/gcov.texi: Document.
6590
6591 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6592
6593         * config/h8300/h8300.md: Organize peephole2's that transform
6594         (compare (reg:HI) (const_int)).
6595
6596 2003-03-31  Roger Sayle  <roger@eyesopen.com>
6597
6598         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
6599         (init_emit_once): Initialize dconstm2 and dconsthalf here.
6600         * real.h (dconstm2, dconsthalf): Add prototypes here.
6601         * real.c (real_sqrt): Use dconsthalf rather than local copy.
6602         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
6603         exp(x/2.0) remember to fold the division if possible.
6604         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
6605         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
6606         1.0/(x*x) and pow(x,0.5) as sqrt(x).
6607
6608 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6609
6610         * config/h8300/h8300.md (a new peephole2): New.
6611
6612 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
6613
6614         * gcse.c (simple_mem): Return false for floating-point accesses
6615         if flag_float_store is true.
6616
6617 2003-03-30  Roger Sayle  <roger@eyesopen.com>
6618
6619         * gcse.c (gcse_constant_p): New function to identify constants
6620         suitable for constant propagation, including COMPARE with two
6621         integer constant arguments.
6622         (hash_scan_set): Use gcse_constant_p.
6623         (find_avail_set): Likewise.
6624         (cprop_insn): Likewise.
6625         (do_local_cprop): Likewise.
6626         (find_implicit_sets): Likewise.
6627         (find_bypass_set): Likewise.
6628
6629 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
6630
6631         * except.h: Remove definition of varray_type.
6632
6633 2003-03-30  Richard Henderson  <rth@redhat.com>
6634
6635         PR opt/10011, opt/10252:
6636         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
6637         before post-gcse cse pass.
6638
6639 2003-03-30  Roger Sayle  <roger@eyesopen.com>
6640
6641         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
6642
6643 2003-03-30  DJ Delorie  <dj@redhat.com>
6644
6645         * profile.c (instrument_edges): Make sure any newly created
6646         jump insns have correct jump label info.
6647
6648 2003-03-30  Richard Henderson  <rth@redhat.com>
6649
6650         * cfgbuild.c (make_edges): Use tablejump_p.
6651         * cfgcleanup.c (label_is_jump_target_p): Likewise.
6652         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
6653         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
6654         (try_redirect_by_replacing_jump): Likewise.
6655         (redirect_edge_and_branch): Likewise.
6656         * cse.c (fold_rtx): Likewise.
6657         * jump.c (delete_related_insns): Likewise.
6658         * rtlanal.c (get_jump_table_offset): Likewise.
6659         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
6660
6661 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6662
6663         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
6664         (STRICT2_WARN): Likewise.
6665
6666 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6667
6668         PR other/6955
6669         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
6670         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
6671
6672 2003-03-30  Richard Henderson  <rth@redhat.com>
6673
6674         PR c/10083
6675         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
6676         don't zero_extend const inputs.
6677
6678 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
6679
6680         * reload1.c (reload_cse_move2add): Fix a comment typo.
6681
6682 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
6683
6684         * config/h8300/h8300.md (a peephole2): Remove useless code.
6685
6686 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
6687
6688         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
6689         (*iorsi3_and_lshiftrt): Likewise.
6690         (*iorsi3_zero_extract): Likewise.
6691
6692 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
6693
6694         * config/h8300/h8300.md (*insv_si_8_8): New.
6695         (*insv_si_8_8_lshiftrt_8): Likewise.
6696         (a peephole2): Likewise.
6697
6698 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6699
6700         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
6701         Uniformly use bugfix instead of bug fix.
6702
6703 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6704
6705         PR doc/895
6706         * ONEWS: Remove those items that already appear in the EGCS
6707         release notes on our web pages.
6708
6709 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
6710
6711         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
6712         TARGET_HARD_FLOAT.  Reformat.
6713         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
6714
6715 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
6716
6717         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
6718         work on Solaris 2.5.1.
6719
6720 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
6721
6722         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
6723         section of h8300.md
6724         (*addsi3_and_nor_r_1): Likewise.
6725
6726 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
6727
6728         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
6729         set up before any trapping memory access if flag_non_call_exceptions.
6730
6731 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
6732
6733         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
6734
6735         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
6736
6737 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
6738
6739         * configure.in: Clarify comments.
6740         * configure: Regenerate.
6741
6742 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
6743
6744         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
6745         label even if pool empty when generating PIC.
6746         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
6747
6748 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
6749             Dhananjay Deshpande  <dhananjayd@kpit.com>
6750
6751         PR target/10205
6752         * config/h8300/h8300.c (h8300_initial_elimination_offset):
6753         Correct the offset computation when TARGET_NORMAL.
6754
6755 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6756
6757         PR target/10067
6758         * config/sparc/sparc.md (jump pattern): Correct order
6759         when issuing the annuling marker.
6760
6761 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6762
6763         PR c/8281
6764         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
6765         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
6766
6767 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
6768
6769         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
6770         globalize_label.
6771         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6772         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6773         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6774         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6775         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6776         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6777         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
6778
6779 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
6780
6781         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
6782         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
6783         notes after hoisting.
6784         (load_mems): Adjust replace_loop_mems call.
6785
6786 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6787             Richard Henderson  <rth@redhat.com>
6788
6789         PR target/10114 and PR target/10084
6790         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
6791
6792 2003-03-27  Richard Henderson  <rth@redhat.com>
6793
6794         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
6795
6796 2003-03-27  Roger Sayle  <roger@eyesopen.com>
6797
6798         * fold-const.c (fold_inf_compare):  New function to simplify FP
6799         comparisons against +Infinity or -Infinity.
6800         (fold):  Optimize floating point comparisons against Infs and NaNs.
6801
6802 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
6803
6804         * libgcov.c: Provide only dummy functions if libc is not available.
6805
6806 2003-03-27  Richard Henderson  <rth@redhat.com>
6807
6808         * real.h (struct real_value): Add signalling.
6809         (EXP_BITS): Decrement.
6810         * real.c (get_canonical_qnan): Don't set MSB-1.
6811         (get_canonical_snan): Likewise.  Set signalling.
6812         (real_identical): Compare signalling.
6813         (round_for_format): Remove force-one-bit on code.
6814         (real_nan): Likewise.  Set signalling.
6815         (encode_ieee_single): Add force-one-bit code; honor signalling.
6816         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
6817         (decode_ieee_single): Set signalling.
6818         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
6819
6820 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
6821
6822         PR ada/9953
6823         * ada/Makefile.in (gnatlib configuration for HPUX): Split
6824         the general section for HPUX into specific sections for
6825         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
6826         11 case.
6827
6828 2003-03-27  Glen Nakamura  <glen@imodulo.com>
6829
6830         PR opt/10087
6831         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
6832         while incrementing giv.
6833         (record_biv): Check for duplicate biv locations and
6834         set (struct induction *) v->same if found.
6835
6836 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
6837
6838         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
6839         v0.9 API change: replace read of UNW_REG_HANDLER with
6840         unw_get_proc_info().
6841         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
6842         with unw_get_proc_info().
6843         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
6844         unw_get_proc_info().
6845
6846 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
6847
6848         * config/rs6000/8540.md: Use presence_set instead of absence_set.
6849
6850 2003-03-26  Richard Henderson  <rth@redhat.com>
6851
6852         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
6853
6854 2003-03-26  Roger Sayle  <roger@eyesopen.com>
6855
6856         PR bootstrap/10051, PR bootstrap/10169.
6857         * mips-tfile.c (init_file): Don't provide a static initializer.
6858         (initialize_init_file): Initialize the contents of init_file.
6859         (add_file): Call initialize_init_file if not already initialized.
6860
6861 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
6862
6863         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
6864         registers used for global asm variables.
6865         (s390_frame_info, s390_arg_frame_offset): Likewise.
6866         (s390_emit_prologue, s390_emit_epilogue): Likewise.
6867
6868 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
6869
6870         * config/rs6000/8540.md: New file.
6871
6872         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
6873         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
6874         reservations for imul.
6875
6876         * config/rs6000/rs6000.md: Include 8540.md.  Change
6877         delayed_compare onto mult_compare for insns generating
6878         multiplication.
6879         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
6880         New type attribute values.
6881
6882         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
6883         fpsimple instead of fp.
6884         (*divsf3_gpr): Use type vecfdiv instead of fp.
6885         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
6886         instead of vecfloat.
6887         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
6888         (spe_brinc): Use type brinc instead of veccomplex.
6889         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
6890         veccomplex.
6891         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
6892         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
6893         *movv2sf_internal): Define type attribute values for all
6894         alternatives.
6895         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
6896         of fpcompare.
6897         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
6898         instead of fpcompare.
6899
6900 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
6901
6902         * config/rs6000/power4.md: Allow delay between dispatch and
6903         function units for simple instructions.  Correct store units.
6904         Allow branch to occupy as many dispatch slots as necessary.
6905
6906 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
6907
6908         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
6909         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
6910         zero extend old to it.
6911         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
6912         operand.
6913
6914 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
6915
6916         PR target/7784
6917         * reload.c (find_reloads_address): Handle
6918         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
6919         all base registers.
6920
6921 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
6922
6923         PR other/10203
6924         * version.c: Reference the GCC web site in the URL.
6925
6926 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
6927
6928         * c-incpath.c (add_standard_paths): Add both "translated" and
6929         non-translated header paths.
6930
6931 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
6932
6933         * doc/install.texi (*-*-freebsd*): Update with known status.
6934
6935 2003-03-21  Jason Merrill  <jason@redhat.com>
6936
6937         PR optimization/10171
6938         * unroll.c (unroll_loop): Don't delete the jump at the end unless
6939         we also delete a jump at the beginning.
6940
6941 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
6942
6943         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
6944         contributor.
6945
6946 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
6947
6948         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
6949         constants are not expensive.
6950
6951 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
6952
6953         PR opt/10056
6954         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
6955         jump jumping to the next instruction.
6956         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
6957
6958 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6959
6960         * doc/passes.texi (Passes): Properly document that we do not
6961         perform jump2 any longer; remove command-line option -dJ.
6962
6963 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
6964
6965         PR optimization/8746
6966         * config/i386/i386.md (and promoting splitters): Disable HImode to
6967         SImode promoting when the sign bit matters and is not preserved, or
6968         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
6969         for size.
6970
6971 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
6972
6973         * config/h8300/h8300.md (a peephole2): Extend to support loads
6974         in QImode and HImode.
6975
6976 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
6977
6978         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
6979         _return_far
6980         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
6981         (MULTILIB_EXCEPTIONS): Likewise.
6982         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
6983         by calling some board support routine.
6984         ("call_value"): Likewise.
6985         ("*return_void"): Likewise for return.
6986         ("*return_16bit"): Likewise.
6987         ("*return_32bit"): Likewise.
6988         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
6989         for 68HC11 too.
6990         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
6991         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
6992         -mlong-calls for 68HC11.
6993         * config/m68hc11/larith.asm (declare_near): New macro.
6994         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
6995         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
6996         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
6997         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
6998         (__mulhi32): Likewise.
6999         (ret): Update macro for 68HC11.
7000         (__far_trampoline): Implement for 68HC11.
7001         (__call_a16, __call_a32, __return_void, __return_16): New support
7002         routines for 68HC11 memory bank switching calling support.
7003         (__return_32): Likewise.
7004
7005 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
7006
7007         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
7008
7009 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
7010
7011         * doc/install.texi (Testing): Mention test result links from build
7012         status pages.
7013
7014 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
7015
7016         * function.c (put_var_into_stack): Change bool parameter to int.
7017         (gen_mem_addressof): Likewise.
7018         * rtl.h (gen_mem_addressof): Likewise.
7019         * tree.h (put_var_into_stack): Likewise.
7020         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
7021         gen_mem_addressof or put_var_into_stack.
7022         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
7023         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
7024
7025 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
7026
7027         * config/h8300/h8300.md (a peephole2): New.
7028
7029 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
7030
7031         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
7032
7033 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7034
7035         * doc/contrib.texi (Contributors): Update Janis Johnson.
7036
7037 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7038
7039         PR target/10072
7040         * combine.c (simplify_if_then_else): Check that the mode
7041         has MODE_INT class before applying the (OP Z (mult COND C2))
7042         transformation.
7043
7044 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7045
7046         PR optimization/9414
7047         * config/sparc/sparc.md (widening peepholes): Use
7048         widen_memory_access instead of change_address.
7049
7050 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
7051
7052         PR c++/7086
7053         * c-typeck.c (c_mark_addressable): Adjust calls to
7054         put_var_into_stack.
7055         * expr.c (expand_expr): Likewise.
7056         * function.c (put_var_into_stack): Add rescan parameter.  Do not
7057         call fixup_var_refs when rescan is false.
7058         (gen_mem_addressof): Likewise.
7059         (assign_parms): Adjust calls to put_var_into_stack.
7060         (setjmp_protect): Likewise.
7061         (setjmp_protect_args): Likewise.
7062         * rtl.h (gen_mem_addressof): Change prototype.
7063         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
7064         * tree.h (put_var_into_stack): Change prototype.
7065
7066 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
7067
7068         PR middle-end/9967
7069         * builtins.c (expand_builtin_fputs): When optimizing for size,
7070         don't transform fputs into fwrite.
7071
7072 2003-03-23  Glen Nakamura <glen@imodulo.com>
7073
7074         PR c/8224
7075         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
7076         when signedness changes for division or modulus.
7077
7078 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
7079
7080         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
7081         globalize_label.
7082
7083 2003-03-23  Roger Sayle  <roger@eyesopen.com>
7084
7085         PR c/10178
7086         * stmt.c (expand_end_case_type): Check for overflow in range when
7087         determining whether to use a bit-test implementation.
7088
7089 2003-03-23  Richard Henderson  <rth@redhat.com>
7090
7091         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
7092         before flow2.
7093         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
7094
7095 2003-03-23  Richard Henderson  <rth@redhat.com>
7096
7097         PR opt/10116
7098         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
7099         from then_bb or else_bb after flow2.
7100
7101 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
7102
7103         * configure.in: Check whether it is necessary to link against
7104         libm to use ldexp.
7105         * configure: Regenerate.
7106         * Makefile.in: Add LDEXP_LIB substitution variable.
7107
7108 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
7109
7110         * config/h8300/h8300.md: Fix comment typos.
7111
7112 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7113
7114         * pa.c (output_cbranch): Fix typo in comment.
7115
7116 2003-03-22  Richard Henderson <rth@redhat.com>
7117
7118         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
7119         after reload.
7120
7121 2003-03-22  DJ Delorie  <dj at redhat dot com>,
7122         Bruce Korb  <bkorb at gnu dot org>
7123
7124         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
7125         buggy Solaris 2.6 mutex/cond initializers.
7126         (solaris_mutex_init): Rename to solaris_mutex_init_2.
7127         * fixinc/fixincl.x: Regenerate.
7128         * fixinc/tests/base/pthread.h: Update.
7129         * fixinc/fixincl.c(initialize): be explicit about the default case
7130         and indicate verbose level when being very, very verbose.
7131         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
7132
7133 2003-03-22  Andreas Jaeger  <aj@suse.de>
7134
7135         * config/i386/i386.c (ix86_init_machine_status): Return value.
7136
7137 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7138
7139         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
7140         conditional branch to the following instruction.  Use next_real_insn
7141         instead of next_active_insn.
7142         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
7143         instead of next_active_insn.
7144
7145 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
7146
7147         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
7148         instead of 'm' constraint in forced-split alternatives.
7149         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
7150         VALIDATE_ADDRESS parameter to operand_subword.
7151
7152 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
7153
7154         * config/h8300/h8300.c (notice_update_cc): Correctly handle
7155         the case where the set destination is STRICT_LOW_PART.
7156
7157 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
7158
7159         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
7160         c30 instead of a c40 processor.
7161
7162 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
7163
7164         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
7165
7166 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
7167
7168         * c-common.c: Include intl.h.
7169         (shadow_warning): Rewrite to allow better diagnostic translations.
7170         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
7171         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
7172         use it throughout.
7173         * Makefile.in (c-common.o): Add intl.h.
7174
7175 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
7176
7177         * config.gcc: Remove 'float_format'.
7178
7179         * fixproto: Define NULL and size_t in generated stdlib.h and
7180         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
7181         Rearrange file generation loop for readability.  Generate time.h,
7182         string.h if missing.
7183         * tsystem.h: Include <string.h>, <time.h> unconditionally.
7184         * config.gcc: Blow away POSIX defines.
7185
7186 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
7187
7188         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
7189
7190 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
7191
7192         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
7193         writing .interrupt command.
7194         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
7195         if it's a far or near function.
7196         ("call_value"): Likewise.
7197         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
7198         near attributes.
7199         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
7200         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
7201         (m68hc11_initial_elimination_offset): Set current_function_far
7202         according to attributes.
7203         (expand_prologue): Likewise.
7204         (trap_handler_symbol): New global to keep track of trap handlers.
7205         (m68hc11_encode_section_info): Mark symbol as far if needed; set
7206         trap symbol.
7207         (m68hc11_is_far_symbol): New function.
7208         (m68hc11_is_trap_symbol): New function.
7209         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
7210         (m68hc11_is_trap_symbol): Declare.
7211
7212 2003-03-21  Jan Hubicka  <jh@suse.cz>
7213
7214         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
7215         only when amount of saved regs changed.
7216         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
7217         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
7218
7219 2003-03-21  Jan Hubicka  <jh@suse.cz>
7220
7221         PR inline-asm/7916
7222         * function.c (instantiate_virtual_regs_lossage): New function.
7223         (instantiate_virtual_regs_1): Use it.
7224         (instantiate_virtual_regs): Do not continue in substition when insn has
7225         been deleted.
7226
7227 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7228
7229         * combine.c (make_field_assignment): Fix a warning.
7230
7231 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7232
7233         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
7234
7235 2003-03-21  Dale Johannesen  <dalej@apple.com>
7236
7237         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
7238         priority for R2 on Darwin.
7239         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
7240
7241 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7242
7243         * combine.c (make_field_assignment): Remove unnecessary AND
7244         when storing into zero_extract.
7245
7246 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
7247
7248         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
7249         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
7250         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
7251         in comment.
7252
7253 2003-03-21  DJ Delorie  <dj@redhat.com>
7254
7255         * optabs.c (init_integral_libfuncs): Make sure we init at least up
7256         to "long long" size words.
7257
7258 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
7259
7260         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
7261         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
7262         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
7263
7264 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7265
7266         PR doc-bug/9813
7267         * doc/extend.texi: Move misplaced paragraph about underscores in
7268         variables in macros.
7269
7270 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
7271             Richard Henderson  <rth@redhat.com>
7272
7273         PR optimization/8366
7274         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
7275         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
7276         PIC+SYMBOLIC_CONST in other modes than Pmode.
7277         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
7278         the form PIC+SYMBOLIC_CONST as mode dependent.
7279
7280 2003-03-21  DJ Delorie  <dj@redhat.com>
7281
7282         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
7283         sure we always emit at least one insn.
7284
7285 2003-03-21  Christopher Faylor  <cgf@redhat.com>
7286
7287         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
7288         stub t-cygming. Use common target header cygming.h. Add extra
7289         c_target_obj and cxx_target_obj file. Default cygwin to posix
7290         threading. Enforce i386 as float format.
7291         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
7292         Remove cygwin.h as target header. Use common target header
7293         cygming.h  Enforce i386 as float format. Correct typo.
7294         * config/i386/cygming.h: New file, containing definitions
7295         common to mingw32 and cygwin.
7296         * config/i386/cygwin.h: Remove definitions common to cygwin and
7297         mingw.  Simplify special spec logic.  Define "wrappers" around
7298         certain include path defines to accommodate -mno-cygwin.
7299         Remove some #if 0'ed code.
7300         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
7301         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
7302         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
7303         * config/i386/mingw32.h: Remove definitions common to cygwin and
7304         mingw.
7305         (EXTRA_OS_CPP_BUILTINS): Adjust.
7306         (TARGET_VERSION): Define.
7307         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
7308         mingw32.h definitions.
7309         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
7310         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
7311         Add compilation rules for cygwin1.o cygwin2.o.
7312         * config/i386/cygwin1.c: New file.
7313         * config/i386/cygwin2.c: New file.
7314         * config/i386/t-cygming: New makefile stub.
7315
7316 2003-03-20  Richard Henderson  <rth@redhat.com>
7317
7318         * fold-const.c (extract_muldiv_1): Revert changing order of
7319         operands in case MULT_EXPR of 2003-02-16 patch.
7320
7321 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
7322         Merge changes from new-regalloc-branch
7323
7324         From Michael Matz  <matz@suse.de>
7325         * df.c (df_ref_record_1): Move init of loc to safe point.
7326         Only recurse on interesting things in parallels.
7327         Handle CLASS_CANNOT_CHANGE_MODE smarter.
7328         (df_uses_record): Ditto.
7329
7330         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
7331         it's already okay to use memory operands in (IE doesn't require
7332         adding another insn or anything).
7333
7334 2003-03-20  Richard Henderson  <rth@redhat.com>
7335
7336         PR middle-end/6348
7337         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
7338         different from word_mode.
7339
7340 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7341
7342         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
7343         source operand to those that can be extracted with bld.
7344
7345 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
7346
7347         PR 10066
7348         * arm.md (UNSPEC_PIC_BASE): New constant.
7349         (pic_add_dot_plus_four): Wrap with unspec.
7350         (pic_add_dot_plus_eight): Likewise.
7351
7352 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7353
7354         * config/h8300/h8300.md (*insv_si_1_n): New.
7355         (*insv_si_1_n_lshiftrt): Likewise.
7356
7357 2003-03-20  Roger Sayle  <roger@eyesopen.com>
7358
7359         * fold-const.c (fold_mathfn_compare): New function to simplify
7360         comparisons against built-in math functions.  Fold comparisons
7361         of sqrt against constants.
7362         (fold): Call fold_mathfn_compare when appropriate.
7363
7364 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
7365
7366         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
7367         information.
7368
7369 2003-03-20  Per Bothner  <pbothner@apple.com>
7370
7371         Various cleanups to help compile server.
7372
7373         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
7374         and pass that to _cpp_init_hashtable.
7375         (cpp_read_main_file):  Drop hash_table* argument; don't call
7376         _cpp_init_hashtable.
7377         * cpplib.h:  Update declarations to match.
7378         * c-opts.c (c_common_init_options):  Pass ident_hash to
7379         cpp_create_reader.
7380         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
7381         * fix-header.c (read_scan_file):  Likewise pass NULL table to
7382         cpp_create_reader rather than cpp_read_main_file.
7383
7384         * cppfiles.c (cpp_rename_file):  Generalized and renamed
7385         to cpp_change_file.
7386         * cpplib.h:  Update declaration to match.
7387         * c-opts.c (push_command_line_line, finish_options):  Change
7388         cpp_rename_file calls to cpp_change_file.
7389
7390         * line-map.c (add_line_map):  Allow leaving the outermost file.
7391         Allowing entering an outermost-file after the initial time.
7392
7393         * toplev.c (pop_srcloc):  Allow popping from initial file.
7394
7395 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
7396
7397         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
7398
7399 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7400
7401         * config/h8300/h8300.md (a peephole2): New.
7402
7403 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7404
7405         * config/h8300/h8300.md (*addsi3_and_r_1): New.
7406         (*addsi3_and_not_r_1): Likewise.
7407
7408 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
7409
7410         * Makefile.in (STRICT2_WARN): Add @WERROR@.
7411         (GCC_WARN_CFLAGS): Remove $(WERROR).
7412         (fixinc.sh-warn): New.
7413         * ada/Make-lang.in (ada-warn): Add $(WERROR).
7414         * cp/Make-lang.in (cp-warn): Add $(WERROR).
7415         * f/Make-lang.in (f-warn): Add $(WERROR).
7416         * java/Make-lang.in (java-warn): Add $(WERROR).
7417         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
7418
7419 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
7420
7421         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
7422         langhooks-def.h (lhd_tree_dump_dump_tree),
7423         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
7424         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
7425         true and false in return statements.
7426
7427 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
7428
7429         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
7430         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
7431         DWARF_INITIAL_LENGTH_SIZE.
7432         (output_compilation_unit_header, output_pubnames, output_aranges)
7433         (output_line_info): Output 0xffffffff escape value for 64-bit
7434         DWARF extension.
7435         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
7436
7437 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
7438
7439         * config/s390/s390.c (s390_preferred_reload_class): Do not
7440         force constants to the pool unless necessary.
7441         (s390_decompose_address): Prefer to use pointer as base,
7442         not index register.
7443         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
7444         Q alternative.
7445         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
7446         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
7447         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
7448         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
7449         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
7450
7451 2003-03-19  Jan Hubicka  <jh@suse.cz>
7452
7453         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
7454         * i386.c (use_fast_prologue_epilogue): Remove.
7455         (ix86_frame): New field save_regs-using_mov;
7456         (ix86_compute_frame_layout):  Decide on fast prologues;
7457         allocate saved registers in red zone.
7458         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
7459
7460 2003-03-19  Nick Clifton  <nickc@redhat.com>
7461
7462         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
7463
7464 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7465
7466         PR 10062
7467         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
7468         * pa-protos.h (output_lbranch): New prototype.
7469         * pa.c (compute_frame_size): Change size of the frame marker on the
7470         64-bit ports to 48 bytes.
7471         (pa_output_function_prologue): Document why SAVE_SP is set.
7472         (hppa_expand_prologue): Save previous stack pointer into frame marker
7473         on targets which use the hpux unwind library.
7474         (output_cbranch): Use output_lbranch.
7475         (output_lbranch): New function to output long unconditional branches.
7476         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
7477         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
7478         64-bit ports.
7479         * pa.md (jump): Use output_lbranch.
7480         (allocate_stack): New expander for dynamic stack allocation.
7481
7482 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
7483
7484         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
7485         when debugging on XCOFF targets.  Delete "abi" temp.
7486
7487         PR target/10073
7488         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
7489
7490 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
7491
7492         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
7493         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
7494         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
7495
7496         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
7497         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
7498         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
7499
7500 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
7501
7502         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
7503         the result of machopic_function_base_name.
7504         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
7505         string rather than a static array.
7506
7507         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
7508
7509         * gengtype.c: Include rtl.h.
7510         (enum rtx_code): Don't define.
7511         (rtx_format): Make declaration match rtl.h.
7512         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
7513         users.
7514         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
7515         * Makefile.in (gengtype.o): Update dependencies.
7516
7517 2003-03-18  Andreas Schwab  <schwab@suse.de>
7518
7519         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
7520         martin@blom.org.
7521
7522 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
7523
7524         * function.c (next_block_index): Mark with GTY.
7525
7526         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
7527
7528 2003-03-18  Richard Henderson  <rth@redhat.com>
7529
7530         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
7531         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
7532         until after reload.
7533
7534 2003-03-18  Richard Henderson  <rth@redhat.com>
7535
7536         * builtins.c (expand_builtin_unop): New target_mode operand;
7537         use it to convert the result to the correct mode.
7538         (expand_builtin): Update all callers.
7539
7540 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
7541
7542         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
7543
7544 2003-03-18  Jan Hubicka  <jh@suse.cz>
7545
7546         * i386.md:  Fix previous commit that mistakely applied the patch
7547         twice.
7548
7549         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
7550         canonicalized.
7551         (memrefs_conflict_p): Likewise.
7552         (addr_side_effect_eval): Canonicalize the constructed address.
7553
7554 2003-03-18  Jan Hubicka  <jh@suse.cz>
7555
7556         * i386.md (cvtts?2si peep2): New.
7557
7558 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
7559
7560         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
7561
7562 2003-03-18  Andreas Schwab  <schwab@suse.de>
7563
7564         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
7565         for format.
7566
7567 2003-03-17  Jason Merrill  <jason@redhat.com>
7568
7569         PR c++/10091
7570         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
7571         an unaligned member of TREE_ADDRESSABLE type.
7572
7573 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
7574
7575         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
7576         (TARGET_PROFILE_KERNEL): Define.
7577         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
7578         (PROFILE_BEFORE_PROLOGUE): Don't define.
7579         (PROFILE_KERNEL): Remove hacks.
7580         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
7581         (rs6000_stack_info): No need to save lr if just for profiling when
7582         TARGET_PROFILE_KERNEL.
7583         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
7584         (output_function_profiler): Localize label generation.  Emit code
7585         for kernel profiling.
7586
7587 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
7588
7589         * config/h8300/h8300-protos.h: Add a prototype for
7590         byte_accesses_mergeable_p.
7591         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
7592         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
7593         (a splitter): Likewise.
7594         (*iorsi3_ashift_16_ashift_24): Likewise.
7595         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
7596
7597 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7598
7599         * dwarf2asm.h: Delete obsolete comment.
7600         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
7601         dw2_asm_output_pcrel, dw2_asm_output_addr,
7602         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
7603         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
7604         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
7605         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
7606
7607 2003-03-17  Zack Weinberg <zack@codesourcery.com>
7608
7609         * c-tree.h (struct lang_identifier): Remove error_locus field.
7610         (IDENTIFIER_ERROR_LOCUS): Kill.
7611         (record_function_scope_shadow): New prototype.
7612         * c-typeck.c (build_external_ref): Don't complain if
7613         decl is error_mark_node.  When not at file scope, bind the
7614         decl's local value to error_mark_node to suppress further
7615         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
7616
7617         * c-decl.c (get_function_binding_level): New static function.
7618         (record_function_scope_shadow): New exported function.
7619         (c_make_fname_decl): Use get_function_binding_level.
7620
7621 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
7622
7623         * stmt.c (tail_recursion_args): Call promote_mode to set
7624         unsignedp flag correctly before calling convert_move.
7625
7626 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7627
7628         * loop-unroll.c (decide_peel_completely,
7629         decide_unroll_constant_iterations, decide_unroll_stupid,
7630         decide_unroll_runtime_iterations, decide_peel_simple): Set
7631         loop->has_desc.
7632
7633 2003-03-17  Jan Hubicka  <jh@suse.cz>
7634
7635         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
7636
7637 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
7638
7639         * function.c (assign_parms): For a struct value address passed as
7640         first argument, delay the function's result RTL setup code until
7641         after the emission of parameter conversions.
7642
7643 2003-03-17  Dave Love  <fx@gnu.org>
7644             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7645
7646         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
7647         __arch64__ to match Compaq cc.
7648
7649 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
7650
7651         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
7652         (c_common_init): Set EBCDIC in cpp options.
7653         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
7654         not conditional compilation.
7655         * cpplib.h (struct cpp_options): New entry EBCDIC.
7656
7657 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
7658
7659         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
7660
7661 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7662
7663         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
7664         argument to 0 for redirect_jump.
7665
7666 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
7667
7668         PR c++/8805
7669         * except.c (eh_region_u_cleanup): Add prev_try.
7670         (expand_eh_region_end_cleanup): Set it.
7671         (reachable_handlers): Use it to skip over cleanup blocks.
7672
7673 2003-03-17  Andreas Jaeger  <aj@suse.de>
7674
7675         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
7676
7677 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
7678
7679         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
7680         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
7681         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
7682         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
7683
7684 2003-03-16  Richard Henderson  <rth@redhat.com>
7685
7686         * simplify-rtx (simplify_binary_operation): Don't abort for
7687         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
7688
7689 2003-03-16  Richard Henderson  <rth@redhat.com>
7690
7691         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
7692         optimize_size as well.
7693
7694 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
7695
7696         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
7697         for D register to specify the low part of it, aka B.
7698         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
7699         the register if we are loading 1 or -1 to it; avoid using temp
7700         register when moving X/Y to Y/X.
7701         (m68hc11_gen_movqi): Likewise.
7702         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
7703
7704 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
7705
7706         PR optimization/9016
7707         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
7708         into the constant pool.
7709
7710 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7711
7712         PR target/9164
7713         * tree.c (get_narrower): For extensions with unchanged bit number,
7714         return the unsignedness of the outer mode.
7715
7716 2003-03-16  Roger Sayle  <roger@eyesopen.com>
7717
7718         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
7719         to avoid "may be used uninitialized" warning on ia64-hpux.
7720         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
7721
7722 2003-03-16  Andreas Jaeger  <aj@suse.de>
7723
7724         * configure.in: Improve check for memcheck.h.
7725         * configure: Regenerated.
7726
7727 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
7728
7729         * doc/cppopts.texi: Remove documentation of -A-.
7730
7731 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
7732
7733         * doc/libgcc.texi: Remove @tie.
7734
7735 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
7736
7737         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
7738         (rtx_pair): Added new element update_label_nuses, renamed to
7739         replace_label_data.
7740         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
7741         replace_label_data instead of rtx_pair.
7742         * loop.c (load_mems): Likewise.
7743         * rtlanal.c (replace_label): Replace label in pool constants and in
7744         INSN_LIST (in REG_LABEL note).
7745         (subrtx_p): Renamed to rtx_referenced_p.
7746         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
7747         LABEL_REF with CODE_LABEL, traverse constants from pool.
7748
7749 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
7750             Zack Weinberg  <zack@codesourcery.com>
7751
7752         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
7753         * doc/libgcc.texi: New file.
7754         * doc/interface.texi: Delete paragraph about libgcc interface.
7755         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
7756
7757 2003-03-15  Jason Merrill  <jason@redhat.com>
7758
7759         PR debug/9039
7760         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
7761
7762         PR debug/6387
7763         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
7764         function DIEs at toplevel.
7765         (decls_for_scope): At -g1, don't descend into subblocks.
7766
7767 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
7768
7769         * varasm.c (struct rtx_const): Change type of un.addr member
7770         to struct holding an additional 'symbol' member.
7771         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
7772         with equal string addresses as equal.
7773         (simplify_subtraction): Adapt to struct rtx_const change.
7774
7775 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
7776
7777         * fix-header.c (read_scan_file): Read main file before handling -D.
7778
7779 2003-03-15  Roger Sayle  <roger@eyesopen.com>
7780
7781         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
7782         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
7783         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
7784         (find_sub_basic_blocks): Likewise.
7785         * cgraphunit.c (cgraph_expand_functions): Likewise.
7786         * dwarf2out.c (prune_unused_types): Likewise.
7787         * expr.c (store_field): Likewise.
7788         * genextract.c (print_path): Likewise.
7789         * haifa-sched.c (schedule_insn): Likewise.
7790         * lcm.c (compute_antinout_edge): Likewise.
7791         * loop-unroll.c (decide_peel_once_rolling): Likewise.
7792         * ra-colorize.c (ra_colorize_free_all): Likewise.
7793         * ra-debug.c (dump_igraph): Likewise.
7794         (debug_hard_reg_set): Likewise.
7795         * reg-stack.c (reg_to_stack): Likewise.
7796         * rtlanal.c (refers_to_regno_p): Likewise.
7797         * tracer.c (layout_superblocks): Likewise.
7798
7799 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
7800
7801         * fix-header.c (read_scan_file): Fix thinko.
7802
7803 2003-03-15  Glen Nakamura  <glen@imodulo.com>
7804
7805         * reload1.c (choose_reload_regs): Use && instead of ||
7806         with REG_CANNOT_CHANGE_MODE_P condition.
7807
7808 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
7809
7810         * Makefile.in: Update.
7811         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
7812         * c-lex.c (init_c_lex): Register builtins hook is dead.
7813         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
7814         (c_common_decode_option): Don't call cpp_handle_option.
7815         Handle -A, -D and -U.
7816         (handle_deferred_opts): Simplify.
7817         (finish_options): Define builtins and command line macros.
7818         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
7819         * cppinit.c: Don't include intl.h.
7820         (init_builtins): Rename cpp_init_builtins.  No hook to call.
7821         (init_library): Don't need to sort options.
7822         (cpp_create_reader): Don't set pending.
7823         (cpp_destroy): Don't free pending.
7824         (struct pending_option, cl_directive_handler, struct cpp_pending,
7825         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
7826         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
7827         cl_options, cpp_handle_option): Remove.
7828         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
7829         cpp_finish_options): Remove.
7830         (cpp_init_builtins): New.
7831         * fix-header.c (read_scan_file): Update to handle -D.  Fix
7832         handling of -I.  Replace call to cpp_finish_options.
7833
7834 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7835
7836         PR optimization/9387
7837         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
7838         for conditional returns.
7839
7840 2003-03-14  Jason Merrill  <jason@redhat.com>
7841
7842         PR optimization/6871
7843         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
7844
7845 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
7846
7847         * c-opts.c (finish_options): New.
7848         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
7849         (missing_arg): Handle OPT_include and OPT_imacros.
7850         (c_common_init, c_common_parse_file): Use finish_options.
7851         (handle_deferred_opts): Update.
7852         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
7853         (cpp_finish_options): Don't handle -imacros here.
7854         (no_fil): Remove.
7855         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
7856
7857 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
7858
7859         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
7860         rs6000_maybe_dead if !fromprolog.
7861
7862 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
7863
7864         * Makefile.in: Update.
7865         * c-common.h (fe_file_change, pp_file_change): New.
7866         * c-lex.c (init_c_lex): Don't set cb_file_change.
7867         (c_common_parse_file): Move to c-opts.c.
7868         (cb_file_change): Rename fe_file_change.
7869         * c-opts.c: Include debug.h.
7870         (warn_unused_macros, include_cursor): New.
7871         (push_command_line_include, cb_file_change): New.
7872         (COMMAND_LINE_OPTIONS): Handle -include.
7873         (c_common_decode_option): Use local warn_unused_macros.
7874         Handle OPT_include.
7875         (c_common_post_options): Set file change callback.
7876         (handle_deferred_opts): Skip -include.  Don't free the array.
7877         (c_common_init): Call cpp_finish_options here, and push an
7878         initial -include file.
7879         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
7880         (preprocess_file): Don't call cpp_finish_options.
7881         (init_pp_output): Don't set the file change callback.
7882         (pp_file_change): Return if no line commands or no output.
7883         * cpphash.h (next_include_file, first_unused_line): Remove.
7884         * cppinit.c (include_head, include_tail): Remove.
7885         (cpp_destroy): Don't free -include chain.
7886         (cpp_finish_options): Don't handle -include, or worry about
7887         -Wunused-macros.
7888         (_cpp_maybe_push_include_file): Remove.
7889         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
7890         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
7891         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
7892         Used flag is set based upon the state of the warn_unused_macros
7893         flag, and so use of first_unused_line is unnecessary.
7894
7895 2003-03-13  Jan Hubicka  <jh@suse.cz>
7896
7897         * cselib.c (clear_table): Do not take argument; always clear just
7898         used slots.
7899         (cselib_process_insn):  Update call of clear_table
7900         (cselib_init): Do not call clear_table.
7901         (cselib_finish): Clear table.
7902
7903         * cse.c (count_reg_usage): Do not check side_effects_p.
7904         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
7905         like noop.
7906         (find_reg_equal_equiv_note): Do not use find_reg_note.
7907
7908 2003-03-14  Richard Henderson  <rth@redhat.com>
7909
7910         PR target/9700
7911         * config/alpha/alpha.c (alpha_va_start): Account for
7912         current_function_pretend_args_size in the AP offset.
7913
7914         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
7915         (INITIAL_ELIMINATION_OFFSET): Move out of line.
7916         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
7917         (alpha_initial_elimination_offset) New.
7918         * config/alpha/alpha-protos.h: Update.
7919
7920 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
7921
7922         * stmt.c (expand_start_case): Call emit_queue ().
7923
7924 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
7925             Alexandre Oliva  <aoliva@redhat.com>
7926
7927         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
7928         words in new abis.
7929
7930 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
7931
7932         PR optimization/8396
7933         * tree-inline.c (initialize_inlined_parameters): Make sure the value
7934         of read-only constant arguments is passed with the right type.
7935
7936 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
7937
7938         * doc/extend.texi (Function Names): Make the example compilable.
7939
7940 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
7941
7942         * config/rs6000/rs6000.c (processor_target_table): Really allow
7943         GP optional instructions on Power4.
7944
7945 2003-03-13  Roger Sayle  <roger@eyesopen.com>
7946
7947         * calls.c (flags_from_decl_or_type): Factor and remove redundant
7948         conditional tests.
7949
7950 2003-03-13  Mike Stump  <mrs@apple.com>
7951
7952         * ggc-page.c (struct page_entry): Remove varray.h header.
7953         Add index_by_depth field.
7954         Remove save_in_use_p field.
7955         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
7956         by_depth_max, by_depth, and save_in_use fields.
7957         (INITIAL_PTE_COUNT): Add.
7958         (save_in_use_p_i): Add.
7959         (save_in_use_p): Add.
7960         (adjust_depth): Add.
7961         (move_ptes_to_front): Add.
7962         (push_depth): Add.
7963         (push_by_depth): Add.
7964         (prefetch): Add.
7965         (free_page): Add support for and use faster data structures.
7966         (ggc_alloc): Likewise.
7967         (init_ggc): Likewise.
7968         (ggc_recalculate_in_use_p): Likewise.
7969         (ggc_pop_context): Likewise.
7970         (clear_marks): Likewise.
7971         (ggc_pch_read): Likewise.
7972         * Makefile.in (ggc-page.o): Remove varray.h.
7973
7974 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
7975
7976         * ChangeLog: Rotated last year's entries to...
7977         * ChangeLog.8: New.
7978
7979         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
7980         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
7981         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
7982         config/ia64/ia64-protos.h, config/ia64/ia64.c,
7983         config/ia64/ia64.h, config/ia64/ia64.md,
7984         config/ia64/itanium1.md, config/ia64/itanium2.md,
7985         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
7986         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
7987
7988 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
7989
7990         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
7991         Differentiate endianness.
7992         (s6000_override_options): Use cpu type instead of TARGET_SPE.
7993
7994 2003-03-13  Nick Clifton  <nickc@redhat.com>
7995
7996         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
7997         LDM instructions with writeback enabled.
7998         (output_return_instruction): Likewise.
7999
8000         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
8001         (CALL_USED_REGISTERS): Remove definition.
8002         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
8003
8004 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
8005
8006         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
8007         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
8008         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
8009         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
8010         (rs6000_legitimize_address): Formatting.
8011         (rs6000_emit_move): Likewise.
8012         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
8013         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
8014         (rs6000_elf_select_section): Comment reason for shlib being
8015         set for ABI_AIX.
8016         (rs6000_elf_unique_section): Likewise.
8017         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
8018         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
8019         as well as flag_pic.
8020         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8021         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8022         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
8023
8024 2003-03-13  Richard Henderson  <rth@redhat.com>
8025
8026         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
8027
8028         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
8029         (ia64_gp_save_reg): Remove.
8030         (struct ia64_frame_info): Move to the beginning of the file;
8031         add reg_save_gp.
8032         (ia64_expand_call): Rearrange for new call patterns.
8033         (ia64_reload_gp): New.
8034         (ia64_split_call): New.
8035         (ia64_compute_frame_size): Allocate reg_save_gp.
8036         (ia64_expand_prologue): Save reg_save_gp.
8037         (ia64_expand_epilogue): Don't restore gp.
8038         (ia64_hard_regno_rename_ok): Remove R4 hack.
8039         (ia64_function_ok_for_sibcall): New.
8040         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
8041         call try_split on sibcall pattern.
8042         * config/ia64/ia64-protos.h: Update.
8043         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
8044         Rename from nopic versions.  Confiscate 2nd argument to call as
8045         a marker.
8046         (call_pic, call_value_pic, sibcall_pic): Remove.
8047         (call_gp, call_value_gp, sibcall_gp): New.
8048         (builtin_setjmp_setup): Remove.
8049         (builtin_setjmp_receiver): Call ia64_reload_gp.
8050
8051 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8052
8053         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
8054         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
8055         "GNU CC" with "GCC".
8056
8057         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
8058         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8059         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
8060         GCC, not GNU CC.
8061
8062         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
8063         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
8064
8065         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
8066         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
8067         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
8068         "GNU CC" with "GCC".
8069
8070         * config/v850/lib1funcs.asm, config/v850/rtems.h,
8071         config/v850/v850-c.c, config/v850/v850-protos.h,
8072         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
8073         GCC, not GNU CC.
8074
8075         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
8076         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
8077         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
8078         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
8079         GNU CC.
8080
8081 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
8082
8083         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
8084
8085 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8086
8087         * fixinc/fixinc.interix: Remove dead code (most of it).
8088         * fixinc/fixinc.dgux: Remove.
8089
8090         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
8091         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
8092
8093 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8094
8095         * pa.c (pa_init_builtins): Fix warning.
8096
8097 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
8098
8099         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
8100         (ASM_OUTPUT_XDATA_SHORT): Remove.
8101         (ASM_OUTPUT_XDATA_INT): Remove.
8102         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
8103         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
8104         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
8105         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
8106
8107 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
8108
8109         PR c++/7050
8110         * expr.c (store_expr): Don't attempt to store void-typed trees,
8111         just evaluate them for side effects.
8112
8113 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8114
8115         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
8116         * cppinit.c (push_include): Move with changes to cppfiles.c.
8117         (cpp_read_main_file): Mark named operators here...
8118         (cpp_finish_options): ...not here.  Update.
8119         (_cpp_maybe_push_include_file): Update.
8120         * cpplib.h (cpp_push_include, cpp_rename_file): New.
8121
8122 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8123
8124         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
8125         _gcc_COMPUTE_GAS_VERSION.
8126         * configure.in: Use them.
8127         * configure: Regenerate.
8128
8129 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
8130
8131         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
8132         to detect carry.
8133         (subdi3): Reorder emitted instructions.
8134
8135 2003-03-12  Andreas Jaeger  <aj@suse.de>
8136
8137         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
8138         NETBSD_OS_CPP_BUILTINS_LP64.
8139
8140 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8141
8142         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
8143         Rearrange.  Reorganize.
8144         * configure.in: Rearrange.
8145         * configure: Regenerate.
8146
8147 2003-03-12  Andreas Jaeger  <aj@suse.de>
8148
8149         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
8150         LP64 targets.
8151
8152         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
8153         _LP64.
8154
8155         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
8156         _LP64 macros here.
8157         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8158
8159         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
8160         NETBSD_OS_CPP_BUILTINS_LP64.
8161         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
8162         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
8163
8164         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
8165
8166 2003-03-12  Jan Hubicka  <jh@suse.cz>
8167
8168         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
8169
8170 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
8171
8172         Fix PR target/9797 and PR c/9853.
8173         * stmt.c (expand_decl_init): Call push_temp_slots () and
8174         pop_temp_slots ().
8175
8176 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
8177
8178         * sh.c: Include basic-block.h.
8179         (sh_output_mi_thunk, emit_load_ptr): New functions.
8180         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
8181
8182 2003-03-12  Nick Clifton  <nickc@redhat.com>
8183
8184         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
8185         (CALL_USED_REGISTERS): Likewise.
8186         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
8187         describing how this value is calculated.
8188
8189 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
8190
8191         * configure.in (rlim_t): Define to long if no valid definition
8192         found in sys/resource.h.
8193         * config.in, configure: Regenerate.
8194
8195 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8196
8197         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
8198         TARGET_OS_CPP_BUILTINS.
8199         * config/mcore/mcore-pe.h: Similarly.
8200         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
8201         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
8202
8203 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8204
8205         PR c/9928
8206         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
8207         only if it is a VAR_DECL.
8208
8209 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8210
8211         PR optimization/9888
8212         * config/i386/i386.md (jcc_1): Fix range.
8213         (jcc_2): Likewise.
8214         (jump): LIkewise.
8215         (doloop_end_internal): Likewise.
8216
8217 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
8218
8219         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
8220         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
8221         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
8222         DLL_IMPORT_EXPORT_PREFIX and "i."
8223         (i386_pe_dllexport_name_p): Here.
8224         (i386_pe_dllimport_name_p): Here.
8225         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
8226         not 9 chars when getting identifier name.
8227         (i386_pe_mark_dllimport): Here.
8228         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
8229         not 9 chars when getting identifier name. Correct comment.
8230         (i386_pe_strip_name_encoding): Here. Add comments for different
8231         cases.
8232         (gen_fastcall_suffix): Break down xmalloc() argument to
8233         components.
8234         (gen_stdcall_suffix): Likewise.
8235         Update copyright year.
8236
8237 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8238
8239         PR optimization/9888
8240         * config/i386/i386.md (movsi_1): Remove special alternatives
8241         for %eax register.
8242         (movsi_1_nointernunit): Likewise.
8243         (movhi_1): Likewise.
8244         * config/i386/i386.c (memory_address_length): Do not use
8245         short displacement when there is no base.
8246         (ix86_attr_length_address_default): Handle LEA instructions.
8247
8248 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8249
8250         * c-cppbuiltin.c (builtin_define_std): Make non-static.
8251
8252 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
8253
8254         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
8255         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
8256         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
8257         * config/freebsd.h (CPP_PREDEFINES): Remove.
8258         (TARGET_OS_CPP_BUILTINS): New.
8259         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
8260         instead of TARGET_OS_CPP_BUILTINS.
8261         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
8262
8263 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
8264
8265         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
8266
8267 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8268
8269         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
8270         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
8271
8272         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
8273
8274 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
8275
8276         * toplev.c (independent_decode_option): Return success for --help,
8277         --target-help and --version.
8278
8279 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
8280
8281         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
8282         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
8283         specified.
8284         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
8285         DRIVER_SELF_SPECS.
8286         (LINK_SPEC): Let endian options affect the linker emulation name.
8287
8288 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
8289
8290         * sh.md (reload_inqi): Fix mode for source in second set.
8291
8292 2003-03-11  Jan Hubicka  <jh@suse.cz>
8293
8294         * cselib.c (cselib_invalidate_mem_1): Move too ...
8295         (cselib_invalidate_mem): ... here; use new list
8296         (dummy_val, first_containing_mem): New static variables.
8297         (clear_table): Initialize first_containing_mem.
8298         (discard_useless_values):  Compact the containing_mem list.
8299         (add_mem_for_addr): Add to the list.
8300         * cselib.h (cselib_val): Add next_containing_mem.
8301
8302 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8303
8304         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
8305         instructions for e500.
8306
8307 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
8308
8309         * Makefile.in: Update.
8310         * c-cppbuiltin.c: Include tm_p.h.
8311
8312 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8313
8314         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
8315
8316         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
8317         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
8318         (_Unwind_SetGR): Same.
8319         (_Unwind_GetGRPtr): New.
8320         (_Unwind_SetGRPtr): New.
8321         (uw_update_context_1): Use accesor functions instead of accessing
8322         context->reg[] directly.
8323         (uw_install_context_1): Same.
8324         (execute_cfa_program): Same.
8325         (__frame_state_for): Same.
8326
8327         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
8328         the synthetic register offset.
8329
8330         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
8331
8332 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
8333
8334         * config/cris/cris.md: Remove lingering EGCS reference.
8335         ("*extopqihi_side_biap"): For HI operation, match
8336         cris_additive_operand_extend_operator, not
8337         cris_operand_extend_operator.  Adjust condition.
8338         ("*extopqihi_side", "*extopqihi"): Ditto.
8339         ("*extopqisi_side_biap"): Correct operand numbers in condition.
8340         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
8341         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
8342         ("*extophisi_swap"): Ditto.
8343         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
8344         PLUS, not cris_operand_extend_operator.  Adjust condition and
8345         output template.
8346         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
8347         * config/cris/cris.h (PREDICATE_CODES): Add
8348         cris_additive_operand_extend_operator.
8349         * config/cris/cris.c (cris_additive_operand_extend_operator):
8350         New predicate.
8351
8352 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
8353
8354         * df.c (read_modify_subreg_p): Change from static to global.
8355         * df.h (read_modify_subreg_p): Add prototype.
8356         * sched-deps.c (sched_analyze_1): Generate true dependency for
8357         strict_low_part, certain subregs and zero/sign_extract.
8358
8359 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
8360
8361         * Makefile.in: Update.
8362         * c-common.c: Don't include real.h or except.h.
8363         (REGISTER_PREFIX): Remove.
8364         (builtin_define_std, builtin_define_with_value,
8365         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
8366         builtin_define_type_max, builtin_define_type_precision,
8367         builtin_define_float_constants): Move to c-cppbuiltin.c.
8368         (c_stddef_cpp_builtins): New.
8369         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
8370         * c-cppbuiltin.c: New, extracted from c-common.c.
8371         (define__GNUC__): New.
8372         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
8373         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
8374         (cpp_unique_options): Don't support no-gcc.
8375         (do_spec_1): Remove support of version specs.
8376         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
8377         * doc/passes.texi: Update.
8378         * doc/tm.texi: Update.
8379
8380 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8381
8382         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
8383
8384 2003-03-10  Andrew Pinski  <apinski@apple.com>
8385
8386         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
8387         is on should not get here.
8388         (machopic_indirect_data_reference): If dynamic-no-pic is on just
8389         generate high/low parts of the address.
8390         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
8391         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
8392         symbol and labels with a new reg.  Dynamic-no-pic does not have a
8393         pic_offset_table_rtx.
8394         (machopic_select_section): Change references of flag_pic to
8395         MACHOPIC_INDIRECT.
8396         (machopic_asm_out_destructor): Likewise.
8397         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
8398         reference of flag_pic to MACHOPIC_INDIRECT.
8399         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
8400         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
8401         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
8402         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
8403         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
8404         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
8405         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
8406         (TARGET_DYNAMIC_NO_PIC): Define.
8407         (SUBTARGET_SWITCHES): Define, have sub-target switches for
8408         dynamic-no-pic.
8409         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
8410         rs6000_override_options to here. Dynamic-no-pic overrides
8411         pic.
8412         (CC1_SPEC): Change from not static then pic to not static and not
8413         dynamic-no-pic then pic.
8414         * config/rs6000/rs6000.c (rs6000_override_options): Move the
8415         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
8416         (rs6000_legitimize_reload_address): Add case for loading floating in
8417         dynamic-no-pic.
8418         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
8419         of flag_pic to MACHOPIC_INDIRECT.
8420         (secondary_reload_class): Conditional change the reference of
8421         flag_pic to MACHOPIC_INDIRECT.
8422         (rs6000_output_mi_thunk): Change reference of flag_pic to
8423         MACHOPIC_INDIRECT.
8424         (output_profile_hook): Likewise.
8425         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
8426         * config/rs6000/rs6000.md (movdf_low): Add the case for
8427         MACHO_DYNAMIC_NO_PIC_P.
8428         (call): Change references for flag_pic in TARGET_MACHO to
8429         MACHOPIC_INDIRECT.
8430         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
8431         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
8432         * doc/invoke.texi (-mdynamic-no-pic): Document.
8433
8434 2003-03-10  Devang Patel  <dpatel@apple.com>
8435
8436         PR c++/9394
8437         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
8438         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
8439         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
8440         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
8441         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
8442         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
8443
8444 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
8445
8446         PR optimization/7189
8447         * toplev.c (rest_of_compilation):  Move
8448         check_function_return_warnings up to just after
8449         delete_unreachable_blocks.
8450
8451 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8452
8453         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
8454         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
8455         Declare.
8456         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
8457         for reg rename optimization to avoid using Z and Y registers.
8458
8459 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8460
8461         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
8462         when adding to X and Y since leax/leay are fast.
8463         ("*addhi3"): Accept 'I' constraint when adding to address register.
8464         ("rotlhi3"): Operand 1 must be a register_operand.
8465         (peephole2): New peephole to optimize some adds.
8466         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
8467         to represent -2 .. 2 small integer range.
8468
8469 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8470
8471         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
8472         each 16-bit rotation.
8473
8474 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
8475
8476         * c-opts.c (add_prefixed_path): Don't use concat.  When
8477         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
8478         cpp_GCC_INCLUDE_DIR_len characters.
8479
8480 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
8481
8482         * testsuite/gcc.dg/altivec-9.c: New file.
8483
8484         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
8485         (rs6000_emit_prologue): Use rs6000_frame_related instead.
8486
8487 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8488
8489         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
8490         vectors.
8491         (__ev_convert_u64): Remove macro.  Define as inline.
8492         (__ev_convert_s64): Same.
8493
8494 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8495
8496         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
8497         (rs6000_stack_t): Add spe_64bit_regs_used.
8498
8499         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
8500         spe_64bit_regs_used, and use it to determine the size of the
8501         frame.
8502         (spe_func_has_64bit_regs_p): New.
8503         (spe_synthesize_frame_save): New.
8504         (rs6000_frame_related): Handle SPE synthetic registers.
8505         (rs6000_emit_prologue): Only save in 64-bits if the function used
8506         any registers in 64-bit mode.
8507         (rs6000_emit_epilogue): Same, but for restore.
8508
8509 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
8510
8511         * arm.h (enum floating_point_type): Delete.  Replace with...
8512         (enum fputype): ... new.
8513         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
8514         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
8515         * arm.md (attr fpu): Reworked for new underlying enum values.
8516         * arm.c (arm_fpu_arch): Now enum fputype.
8517         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
8518         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
8519         Update uses of arm_fpu_arch and arm_fpu_tune.
8520
8521 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
8522
8523         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
8524         (try_crossjump_to_edge): Replace refereces to one jump table by
8525         references to identical jump table.
8526         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
8527         (replace_label): Moved to rtlanal.c.
8528         (struct rtx_pair): Moved to rtl.h.
8529         * rtl.h (struct rtx_pair): Moved from loop.c.
8530         (replace_label): New extern function.
8531         (subrtx_p): New extern function.
8532         (tablejump_p): New extern function.
8533         * rtlanal.c (replace_label): Moved from loop.c.
8534         (subrtx_p_1): New static function.
8535         (subrtx_p): New function.
8536         (tablejump_p): New function.
8537
8538 2003-03-10  Jan Hubicka  <jh@suse.cz>
8539
8540         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
8541
8542         * cfgcleanup.c (merge_blocks): Return where to iterate next.
8543         (try_optimize_cfg): Use return value of merge_blocks
8544
8545 2003-03-10  Michael Matz  <matz@suse.de>
8546
8547         * cfg.c (unchecked_make_edge): New.
8548         (cached_make_edge): Use it.
8549         * basic-block.h (unchecked_make_edge): Declare.
8550         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
8551
8552 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
8553
8554         * fpa.md: New file.  Move all patterns relating to FPA co-processor
8555         to here...
8556         * arm.md: ... from here.
8557         (cirrus.md, fpa.md): Include at end of description.
8558         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
8559         (pic_load_addr_based): Remove register constraint from expander.
8560         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
8561         (sordered, sungt, sunle, sunge, sunlt): Likewise.
8562         (eh_epilogue, tablejump): Likewise.
8563
8564 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8565
8566         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
8567         on operands if it has a PLACEHOLDER_EXPR.
8568
8569 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
8570             Mostafa Hagog
8571
8572         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
8573         condition.
8574
8575 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
8576
8577         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
8578         * config/ip2k/ip2k.h: Similarly.
8579         * config/m32r/m32r.h: Similarly.
8580         * config/m68hc11/m68hc11.h: Similarly.
8581         * config/mn10200/mn10200.h: Similarly.
8582         * config/mn10300/mn10300.h: Similarly.
8583         * config/pdp11/pdp11.h: Similarly.
8584         * config/v850/v850.h: Similarly.
8585         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
8586         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
8587         * config/mips/iris3.h: Remove #if 0 block.
8588
8589 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8590             Joern Rennecke <joern.rennecke@superh.com>
8591
8592         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
8593         pending argument upon return from handle_braces here.
8594         (do_spec_2): Instead handle it upon return from do_spec_1 here.
8595
8596 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8597             Joern Rennecke <joern.rennecke@superh.com>
8598
8599         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
8600         pending argument upon return from handle_braces here.
8601         (do_spec_2): Instead handle it upon return from do_spec_1 here.
8602
8603 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8604
8605         * varasm.c (make_decl_one_only): Use declare_weak().
8606
8607 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8608
8609         PR middle-end/9986
8610         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
8611         after the common builtins.
8612         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
8613         * pa.c (TARGET_INIT_BUILTINS): Define.
8614         (pa_init_builtins): New function.
8615
8616         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
8617         space has been allocated for the outgoing arguments, set the arg
8618         pointer for a call emitted after virtuals have been instantiated
8619         using the stack pointer offset, otherwise abort.
8620
8621 2003-03-09  DJ Delorie  <dj@redhat.com>
8622
8623         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
8624
8625 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
8626
8627         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
8628         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
8629         conversion to integer.
8630         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
8631
8632 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8633
8634         * builtins.def: Fix typo and improve grammar.
8635         * loop-unroll.c (decide_peel_completely): Tidy log message.
8636
8637 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
8638
8639         * config/h8300/h8300.md (*tstsi_upper_bit): New.
8640         (*iorsi3_e2f): Likewise.
8641
8642 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8643
8644         * config/h8300/h8300.c (h8300_and_costs): Return the number of
8645         assembly instructions needed.
8646         (h8300_shift_costs): Likewise.
8647
8648 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
8649
8650         * config/cris/aout.h (ENDFILE_SPEC): Undef.
8651
8652         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
8653         moves from here ...
8654         * expr.c (emit_move_insn_1): ... to here.
8655
8656         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
8657         (TARGET_OS_CPP_BUILTINS): New macro.
8658         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
8659         (TARGET_OS_CPP_BUILTINS): New macro.
8660         (CPP_PREDEFINES): Don't define.  Move old definitions and...
8661         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
8662         (TARGET_CPU_CPP_BUILTINS): New macro.
8663         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
8664         definitions and the optional __PIC__, __pic__ and
8665         __NO_UNDERSCORES__ definitions to...
8666         (TARGET_OS_CPP_BUILTINS): New macro.
8667
8668         * flags.h (flag_leading_underscore): Declare.
8669
8670         * c-opts.c (c_common_post_options): On fopen failure, return
8671         false, not NULL.
8672
8673 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
8674
8675         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
8676         config.h.
8677         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
8678         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
8679
8680 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8681
8682         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
8683         CPP_PREDEFINES.
8684         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
8685         CPP_PREDEFINES.
8686
8687 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8688
8689         * c-common.h (c_common_init, c_common_post_options): Update.
8690         * c-objc-common.c (c_objc_common_init): Update for new prototype.
8691         * c-opts.c (saved_lineno): New.
8692         (c_common_post_options, c_common_init): Update prototypes,
8693         move call to cpp_read_main_file from latter to former.
8694         * c-tree.h (c_ojbc_common_init): Update.
8695         * langhooks-def.h (lhd_post_options): New.
8696         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
8697         * langhooks.c (lhd_post_options): New.
8698         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
8699         * toplev.c (no_backend): New.
8700         (process_options): Call post_options hook and set main_input_filename
8701         and input_filename here.
8702         (lang_dependent_init, do_compile): post_options hook moved to
8703         process_options.
8704         * objc/objc-act.c (objc_init): Update prototype.
8705         * objc/objc-act.h (objc_init): Update prototype.
8706
8707 2003-03-08  Roger Sayle  <roger@eyesopen.com>
8708
8709         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
8710         a complex or vector type, using a load in the original mode.
8711
8712 2003-03-08  Jan Hubicka  <jh@suse.cz>
8713
8714         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
8715         * gt-cgraph.h: New GC file.
8716         * cgraph.c (known_fns): New static variable.
8717         (cgraph_node): Add the decl into varray.
8718
8719 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
8720
8721         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
8722
8723 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
8724
8725         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
8726         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
8727         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
8728         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
8729         All callers changed.
8730         * arm.md, arm.h, arm-protos.h: Updated.
8731
8732         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
8733         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
8734         * arm.c (arm_regno_class, f_register_operand): Updated.
8735
8736 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
8737
8738         * config/cris/cris.h: Remove EGCS references.
8739         (CPP_SPEC): Remove "-$".
8740         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
8741
8742 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8743
8744         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
8745         preference to CPP_PREDEFINES.
8746
8747 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8748
8749         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
8750
8751 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8752
8753         * config/h8300/h8300.md (*extzv_16_8): New.
8754
8755 2003-03-08  Jan Hubicka  <jh@suse.cz>
8756
8757         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
8758         * cgraph.h: (cgraph_local_info): Add can_inline_once
8759         (cgraph_global_info): Add inline_once.
8760         (cgraph_node): Add previous.
8761         (cgraph_remove_node): New.
8762         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
8763         function.
8764         (cgraph_optimize): Call it.
8765         (cgraph_finalize_function):  Set inlinable flags.
8766         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
8767         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
8768         (cgraph_expand_function): Likewise.
8769         * cgraph.c
8770         (cgraph_node): Put nodes into doubly linked chain.
8771         (cgraph_remove_node): New function.
8772         * flags.h (flag_inline_functions_called_once): Declare.
8773         * tree-inline.c: Include cgraph.h
8774         (inlinable_functions_p): Add extra argument to bypass limits.
8775         (expand_call_inline):  Obey cgraph flag.
8776         * tree-inline.h (tree_inlinable_function_p): Update prototype.
8777
8778 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8779
8780         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
8781         irreducible loops.
8782
8783         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
8784         loops info correctly.
8785
8786 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8787
8788         PR middle-end/7796
8789         * unroll.c (calculate_giv_inc): Handle constants being
8790         loaded with LSHIFTRT.
8791
8792 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
8793
8794         * config/rs6000/rs6000.c (processor_target_table): Do not disable
8795         GP optional instructions on Power3, Power4, 620, and 630.
8796
8797 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8798
8799         * calls.c: Fix comment formatting.
8800         * cfgloopanal.c: Likewise.
8801         * cfgloopmanip.c: Likewise.
8802         * combine.c: Likewise.
8803         * dwarf2out.c: Likewise.
8804         * ggc-common.c: Likewise.
8805         * langhooks.c: Likewise.
8806         * loop-unroll.c: Likewise.
8807         * loop.c: Likewise.
8808         * ra-build.c: Likewise.
8809         * sbitmap.c: Likewise.
8810         * toplev.c: Likewise.
8811
8812 2003-03-07  James E Wilson  <wilson@tuliptree.org>
8813
8814         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
8815
8816 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
8817
8818         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
8819         support -no-integrated-cpp.
8820
8821         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
8822         than langhooks.name.
8823
8824 2003-03-07  Michael Matz  <matz@suse.de>
8825
8826         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
8827         (DF_FOR_REGALLOC): New.
8828         * df.c (df_ref_record): Set DF_REF_STRIPPED.
8829         (read_modify_subreg_p): Simplify.
8830         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
8831         Use DF_FOR_REGALLOC.
8832         * ra.h (struct web): New member subreg_stripped.
8833         (invalid_mode_change_regs): Declare.
8834         * ra.c (invalid_mode_change_regs): New.
8835         (init_ra): Initialize it.
8836         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
8837         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
8838         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
8839         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
8840         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
8841
8842 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
8843
8844         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
8845         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
8846         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
8847         machine description file from ...
8848         * cirrus.md: ... here.
8849
8850 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8851
8852         * config/h8300/h8300.md (a peephole2): Don't use
8853         reg_overlap_mentioned_p.
8854
8855 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
8856
8857         * c-pch.c: Include langhooks.h.
8858         (IDENT_LENGTH): New.
8859         (get_ident): New.
8860         (pch_ident): Delete.
8861         (pch_init): Use get_ident, IDENT_LENGTH.
8862         (c_common_valid_pch): Likewise.  Also, use actual language
8863         in warning message.
8864         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
8865
8866         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
8867         c-parse.in.
8868         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
8869         gt-objc-objc-act.h.
8870         (gt-objc-objc-act.h): New rule.
8871         * objc/lang-specs.h: Support PCH.
8872         * objc/objc-act.c: Include gt-objc-objc-act.h.
8873         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
8874         (build_selector_reference_decl): Move idx out, mark for PCH.
8875         (build_class_reference_decl): Likewise.
8876         (build_objc_string_decl): Move *_idx out, mark for PCH.
8877         (build_tmp_function_decl): Move xxx out, mark for PCH.
8878
8879 2003-03-06  Dale Johannesen  <dalej@apple.com>
8880
8881         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
8882         global functions for inlining on Darwin.
8883
8884 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
8885
8886         * haifa-sched.c (schedule_block): Don't call reorder when sorting
8887         is prohibited.
8888
8889 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
8890
8891         * Makefile.in (c-ppoutput.o): Update.
8892         * c-common.h (init_pp_output): New.
8893         (preprocess_file): Update.
8894         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
8895         Register builtins.
8896         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
8897         Make call to cpp_read_main_file common to whether preprocessing
8898         or not.  Don't register builtins.
8899         * c-ppoutput.c: Include c-pragma.h.
8900         (setup_callbacks): Rename init_pp_output.
8901         (preprocess_file): No longer setup callbacks or call
8902         cpp_read_main_file.
8903         * cpphash.h (_cpp_init_mbchar): New.
8904         * cppinit.c (init_library): Call _cpp_init_mbchar.
8905         * cpplex.c (_cpp_init_mbchar): New.
8906
8907 2003-03-06  Roger Sayle  <roger@eyesopen.com>
8908
8909         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
8910         MEM, try loading the MEM into a register and taking the low-part
8911         of that, to help CSE see the use of the MEM in its true mode.
8912
8913 2003-03-05  Tom Tromey  <tromey@redhat.com>
8914
8915         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
8916         Define.
8917
8918 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
8919
8920         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
8921         operand 2.
8922         ("*ineqbranchsi"): Likewise.
8923
8924 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
8925
8926         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
8927         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
8928         register store followed by a stack increment.
8929
8930 2003-03-05  Chris Moller  <cmoller@redhat.com>
8931
8932         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
8933         to inhibit saving CARRY_REGS.
8934
8935         * config/stormy16/stormy16.c (xs_hi_general_operand):
8936         added predicate to detect and error-out on out-of-range
8937         const_ints for movhi.
8938         * config/stormy16/stormy16.md (movhi): use
8939         xs_hi_general_operand.
8940
8941         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
8942         added a check for local vbl size overflow.
8943         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
8944         added predicate to detect and error-out on out-of-range
8945         const_ints for addhi and subhi.
8946         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
8947         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
8948
8949         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8950         add a term to accept PRE_MODIFY addresses.
8951         * config/stormy16/stormy16.c (xstormy16_expand_move):
8952         add code to expand PRE_MODIFY addresses to an add followed
8953         by a move.
8954
8955 2003-03-06  Jason Merrill  <jason@redhat.com>
8956
8957         * tree-inline.c (inlinable_function_p): Revert earlier change
8958         pending investigation.
8959
8960 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8961
8962         * config/h8300/h8300.md (a new peephole2): New.
8963
8964 2003-03-06  Jan Hubicka  <jh@suse.cz>
8965
8966         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
8967
8968 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8969
8970         * dwarf2out.c (size_of_die): Compute size of external reference to
8971         die correctly.
8972
8973 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
8974
8975         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
8976         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
8977         expanders.
8978
8979 2003-03-05  Roger Sayle  <roger@eyesopen.com>
8980
8981         * expr.h (lang_expand_expr): Delete obsolete prototype.
8982
8983 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8984
8985         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
8986
8987 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8988
8989         * config/h8300/h8300.md (a peephole2): Generalize to
8990         accept a memory operand.
8991
8992 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
8993
8994         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
8995         * config/alpha/alpha.c (print_operand, case '+'): New.
8996         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
8997         (call_value_osf_1_noreturn): Likewise.
8998
8999 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9000
9001         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
9002         (expand_end_bindings): Likewise.
9003
9004 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9005
9006         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
9007         (epilogue): Don't generate return_external_pic when emitting PA 2.0
9008         code.
9009
9010 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
9011
9012         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
9013
9014         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
9015
9016         * hooks.c (hook_rtx_rtx_null): New.
9017
9018         * hooks.h (hook_rtx_rtx_null): Protoize.
9019
9020         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
9021         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
9022
9023         * target.h (struct gcc_target): Add dwarf_register_span.
9024
9025         * dwarf2out.c (multiple_reg_loc_descriptor): New.
9026         (one_reg_loc_descriptor): New.
9027         (reg_loc_descriptor): Add support for values that span more than
9028         one register.
9029
9030 2003-03-05  Jan Hubicka  <jh@suse.cz>
9031
9032         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
9033         * alias.c:  Include cgraph.h
9034         (mark_constant_function): Use cgraph_rtl_info.
9035         * calls.c:  Include cgraph.h
9036         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
9037         calls.
9038         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
9039         * cgraph.c (cgraph_rtl_info): New function.
9040         * cgraph.h (cgraph_rtl_info): Declare
9041         (cgraph_rtl_info): Likewise.
9042         * function.h (struct function): Add recursive_call_emit.
9043         * toplev.c: Include cgraph.h.
9044         (rest_of_compilation): Set preferred_incoming_stack_boundary.
9045
9046 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
9047
9048         * config/h8300/h8300.c (output_simode_bld): Clear the
9049         destination first if possible.
9050         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
9051         alternative.
9052         (extzv_1_r_inv_h8300hs): Likewise.
9053
9054 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9055
9056         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
9057         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
9058         * cfgloop.c (flow_loop_free): Made global.
9059         (establish_preds): New static function.
9060         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
9061         (get_loop_exit_edges): New.
9062         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
9063         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
9064         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
9065         loops.
9066         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
9067         removability of an edge.
9068         (fix_irreducible_loops): New static function.
9069         (find_path, remove_path): Add ability to remove enclosing loops.
9070         (unloop): New.
9071         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
9072         flags.
9073         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
9074         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
9075         not neccessary.
9076         (decide_peel_completely, peel_loops_completely): Allow complete peeling
9077         of non-duplicable once rolling loops.
9078         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
9079
9080 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
9081
9082         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
9083         for align_jumps is 4.
9084
9085         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
9086         use GENERAL_REGS.
9087
9088 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
9089
9090         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
9091         according to va_arg type.
9092         (EXPAND_BUILTIN_VA_ARG): Remove.
9093         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
9094         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
9095
9096 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
9097
9098         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
9099         else clauses.
9100
9101 2003-03-05  Michael Matz  <matz@suse.de>
9102
9103         * i386/i386.c (ix86_save_reg): Also test
9104         current_function_uses_const_pool.
9105
9106 2003-03-05  Michael Matz  <matz@suse.de>
9107
9108         * unwind.h: Add the GPL exception.
9109         * Makefile.in (USER_H): Add unwind.h.
9110
9111 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
9112
9113         PR c/9799
9114         * c-typeck.c (push_init_level): Add sanity check.
9115
9116 2003-03-05  Jan Hubicka  <jh@suse.cz>
9117
9118         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
9119         RTL inlining is done.
9120
9121         * cgraphunit.c (cgraph_mark_local_functions): New local function.
9122         (cgraph_optimize): Mark local functions.
9123         * i386-protos.h (init_cumulative_args): Update prototype.
9124         * i386.c (init_cumulative_args): Use register passing convention for
9125         local functions.
9126
9127         * cgraph.c (cgraph_global_info_ready): New global variable
9128         (cgraph_local_info, cgraph_global_info): New functions.
9129         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
9130         structures.
9131         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
9132         Declare.
9133         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
9134         (cgraph_mark_functions_to_output): Use inline_many.
9135         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
9136         (cgraph_expand_functions): Expand inline functions last.
9137         (cgraph_optimize): Do not emit uneeded functions.
9138
9139 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
9140
9141         * expr.c (convert_modes): Check for legal hard register.
9142
9143 2003-03-04  Tom Tromey  <tromey@redhat.com>
9144
9145         * doc/sourcebuild.texi (Front End Directory): Document tags.
9146         * configure: Rebuilt.
9147         * configure.in (target_list): Added tags.
9148         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
9149         TAGS files by reference.
9150         * objc/Make-lang.in (objc.tags): New target.
9151
9152 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9153
9154         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
9155         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
9156         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
9157         gcov_read_string, gcov_write_length): Modified to enable reading/
9158         writing of whole .da file just once.
9159         (da_file_open, da_file_close, da_file_eof, da_file_error,
9160         da_file_position, da_file_seek, da_file_write, da_file_read): New
9161         functions.
9162         (actual_da_file, actual_da_file_position, actual_da_file_length,
9163         actual_da_file_buffer, actual_da_file_buffer_size): New static
9164         functions.
9165         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
9166         just once.
9167
9168
9169 2003-03-04  Andreas Schwab  <schwab@suse.de>
9170
9171         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
9172         offset without frame pointer.
9173
9174 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
9175
9176         * expr.c (expand_expr): Call promote_mode to set unsignedp.
9177
9178 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
9179
9180         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
9181         * configure: Regenerated.
9182         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
9183
9184 2003-03-04  Andreas Jaeger  <aj@suse.de>
9185
9186         * configure.in: Check for <memcheck.h>.
9187         * configure: Regenerated.
9188
9189         * config.in: Define HAVE_MEMCHECK_H.
9190
9191         * ggc-common.c: Use <memcheck.h> if available instead of
9192         <valgrind.h>.
9193         * ggc-page.c: Likewise.
9194         * cppfiles.c: Likewise.
9195
9196 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
9197
9198         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
9199
9200 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9201
9202         PR c/9262
9203         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
9204         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
9205
9206 2003-03-04  Jan Hubicka  <jh@suse.cz>
9207
9208         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
9209         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
9210         for -O3.
9211
9212 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
9213
9214         * configure.in: Delete three unused variables.  Move a variable
9215         definition closer to its use.  Simplify use_collect2 logic.  Start to
9216         organize.  Simplify tests for in-tree gas and ld.
9217         * configure: Regenerate.
9218
9219 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
9220
9221         * Makefile.in: Update.
9222         * c-common.c (flag_no_line_commands, flag_no_output,
9223         flag_dump_macros, flag_dump_includes): New.
9224         * c-common.h (flag_no_line_commands, flag_no_output,
9225         flag_dump_macros, flag_dump_includes, preprocess_file): New.
9226         (init_c_lex): Update prototype.
9227         * c-lex.c (init_c_lex): Update prototype; move some code to
9228         c_common_init.
9229         * c-opts.c (preprocess_file): Subsume into c_common_init.
9230         (c_common_decode_option): Update flags.
9231         (c_common_init): Move code from preprocess_file and init_c_lex.
9232         (sanitize_cpp_opts): Update.
9233         * c-ppoutput.c: New, cppmain.c almost verbatim.
9234         * cpphash.h (struct printer): Remove.
9235         (struct cpp_reader): Remove print.
9236         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
9237         cpp_preprocess_file): Remove.
9238         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
9239         and dump_includes.
9240         * cppmain.c: Remove.
9241         * doc/passes.texi: Update.
9242
9243 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9244
9245         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
9246         (assign_stack_local_1): Perform overall stack alignment only when
9247         STACK_ALIGNMENT_NEEDED is non-zero.
9248         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
9249
9250         * pa.c (compute_frame_size): Rename fsize to size.  Account for
9251         alignment to a word boundary before general register save block.  Only
9252         account for double-word alignment before floating point register save
9253         block if one or more are saved.  Don't allocate space for %r3 when
9254         frame pointer is needed.
9255         (hppa_expand_prologue): Include alignment to word boundary in local
9256         frame size.
9257         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
9258         (STACK_ALIGNMENT_NEEDED): Define.
9259
9260 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
9261
9262         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
9263         global register variables.
9264
9265 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
9266
9267         * reload.c (reload_adjust_reg_for_mode): New function.
9268         (subst_reloads): Call it.
9269         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
9270         * reload.h (reload_adjust_reg_for_mode): Declare.
9271         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
9272         Call it.
9273
9274 2003-03-03  James E Wilson  <wilson@tuliptree.org>
9275
9276         * optabs.c (add_equal_note): Delete SUBREG_REG use.
9277         Fixes PR c/7872.
9278
9279 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9280
9281         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
9282         (*ixorsi3_lshiftrt_16): New.
9283         (*iorsi3_ashift_16): Remove.
9284
9285 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9286
9287         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
9288         pattern.
9289
9290 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
9291
9292         * doc/install.texi (Specific): Update entry for powerpc-darwin.
9293
9294 2003-03-03  Richard Henderson  <rth@redhat.com>
9295
9296         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
9297
9298 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
9299
9300         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
9301         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
9302         (rs6000_variable_issue): Do not return negative value.
9303         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
9304         scheduling pass.
9305
9306 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9307
9308         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
9309         prune_unused_types calls.
9310
9311 2003-03-03  Jason Merrill  <jason@redhat.com>
9312
9313         * tree-inline.c (find_builtin_longjmp_call): Save and restore
9314         lineno and input_filename.
9315         (find_alloca_call): Likewise.
9316         (inlinable_function_p): Run the langhook earlier.
9317
9318         * calls.c (compute_argument_addresses): Give the new MEMs a
9319         minimum alignment of PARM_BOUNDARY.
9320
9321 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
9322
9323         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
9324         subtarget_asm_isa_spec.
9325         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
9326         (ASM_SPEC): Define as SH_ASM_SPEC.
9327         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
9328         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
9329         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
9330         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
9331
9332         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
9333         and align_jumps if not set.
9334         Force align_jumps to be at least 2.
9335         When relaxing, force align_functions to be at least the maximum of
9336         align_loops, align_jumps and 4.
9337         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
9338         (sh_loop_align): Honour align_loops_log.
9339
9340         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
9341         to check for indirect_jump_scratch.
9342         (indirect_jump_scratch): Add second set.
9343         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
9344         when looking for indirect_jump_scratch.
9345         Extract scratch register taking new structure of indirect_jump_scratch
9346         into account.
9347         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
9348
9349 2003-03-03  Jan Hubicka  <jh@suse.cz>
9350
9351         * calls.c (rtx_for_function_call): Take the address as an argument
9352         (expand_call): Do not modify the expression.
9353
9354         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
9355         optimizing.
9356
9357 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9358
9359         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
9360         TARGET_H8300H and TARGET_H8300S.
9361
9362 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9363
9364         * config/h8300/h8300.md (a peephole2): New.
9365
9366 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9367
9368         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
9369         operands[0] and operands[1] are different.
9370
9371 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9372
9373         * reload1.c (reload_cse_move2add): Remove variable success.
9374
9375 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9376
9377         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
9378         warnings.
9379
9380 2003-03-02  Richard Henderson  <rth@redhat.com>
9381
9382         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
9383         * config.in, configure: Rebuild.
9384         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
9385         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
9386         paired ldtoffx and ldxmov annotations.
9387         (load_symptr_internal1): Remove.
9388         (load_symptr_high, load_symptr_low): New.
9389
9390 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9391
9392         * c-incpath.c (add_path): Fix sysp assignment.
9393
9394 2003-03-02  Kurt Garloff  <garloff@suse.de>
9395
9396         * params.def: Introduce parameter max-inline-insns-rtl for
9397         a separate limit for the RTL inliner.
9398         * params.h: Likewise.
9399         * integrate.c (function_cannot_inline_p): Use it.
9400         * toplev.c (decode_f_option): Set multiple parameters
9401         controlling inlining with -finline-limit.
9402         * params.def: Fix orthographic and typographic errors.
9403         * doc/invoke.texi: Document parameters controlling inlining
9404         and the way -finline-limit sets multiple of them.
9405
9406         * tree.h (struct tree_decl): Introduce inlined_function_flag,
9407         recording whether the function became eligible for inlining
9408         by a compiler flag rather than the declaration.
9409         Provide DID_INLINE_FUNC macro to access it.
9410         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
9411         * cp/decl.c (grokfndecl): Likewise.
9412         * toplev.c (rest_of_compilation): Likewise.
9413         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
9414         * print-tree.c (print_node): Report it.
9415         * params.def: Introduce new max-inline-insns-auto limit.
9416         * params.h: Likewise.
9417         * tree-inline.c (inlinable_function_p): Apply it to functions
9418         with DID_INLINE_FUNC set.
9419         * toplev.c (decode_f_option): Initialize it from -finline-limit
9420         value.
9421         * doc/invoke.texi: Document new parameter.
9422
9423 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
9424
9425         * fix-header.c (read_scan_file): Don't reference simplify_path.
9426
9427 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9428
9429         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
9430         min/max instructions by default as may result in reload errors.
9431
9432 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9433
9434         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
9435         avoid reload problems; define split for it.
9436
9437 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9438
9439         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
9440         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
9441         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
9442         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
9443         rotatert and rotate.
9444         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
9445         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
9446         ("*rotrhi3_addr"): New split for shift insns on address register.
9447         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
9448         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
9449         (___rotrhi3): Likewise.
9450         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
9451
9452 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9453
9454         * toplev.c (aux_base_name): Moved from toplev.h.
9455         (filename): Constify.
9456         (lang_dependent_init): Don't duplicate name.
9457         (process_options): Set aux_base_name here, not...
9458         (do_compile): ...here.  Change protoype.
9459         (toplev_main): Move some code from do_compile.
9460         * toplev.h: Remove aux_base_name.
9461
9462 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
9463
9464         * config/h8300/h8300-protos.h: Add a prototype for
9465         iorxor_operator.
9466         * config/h8300/h8300.c (print_operand): Handle 'c'.
9467         (iorxor_operator): New.
9468         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
9469         * config/h8300/h8300.md (*iorhi3_zext): Remove.
9470         (*iorsi3_zexthi): Likewise.
9471         (*iorsi3_zextsi): Likewise.
9472         (*xorhi3_zextqi): Likewise.
9473         (*xorsi3_zexthi): Likewise.
9474         (*xorsi3_zextsi): Likewise.
9475         (*ixorhi3_zext): New.
9476         (*ixorsi3_zext_qi): Likewise.
9477         (*ixorsi3_zext_hi): Likewise.
9478
9479 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9480
9481         * c-incpath.c (remove_component_p, simplify_path): Move back to
9482         cppfiles.c.
9483         (remove_duplicates): Use cpp_simplify_path.
9484         * c-incpath.h (simplify_path): Remove.
9485         * c-lex.c: Don't include c-incpath.h.
9486         (init_c_lex): Remove simplify_path.
9487         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
9488         (find_or_create_entry, validate_pch): Revert.
9489
9490 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
9491
9492         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
9493           an external cpp during compilation.
9494         (option_map): Likewise.
9495         * objc/lang-specs.h (default_compilers): Similarly.
9496         * doc/invoke.texi: Document -no-integrated-cpp flag.
9497
9498 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
9499
9500         * config/h8300/h8300.md (zero_extendqisi2): Change to an
9501         expander.
9502         (*zero_extendqisi2_h8300): New.
9503         (*zero_extendqisi2_h8300hs): New.
9504         (two splitters): New.
9505
9506 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9507
9508         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
9509
9510 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9511
9512         * config/h8300/h8300.md (a peephole2): Remove dead code.
9513
9514 2003-03-01  Roger Sayle  <roger@eyesopen.com>
9515
9516         PR c++/9367
9517         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
9518         (BT_FN_INT_CONST_STRING_VALIST_ARG,
9519         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
9520         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
9521         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
9522         BT_FN_INT_STRING_CONST_STRING_VAR,
9523         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
9524         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
9525         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
9526         ATTR_NONNULL_3): Also include the nothrow attribute.
9527         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
9528         vsnprintf, vscanf, vsscanf): Don't define attributes here.
9529         * builtins.def (putchar, puts): Make full C89 built-ins.
9530         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
9531         vsscanf, vsnprintf, vsprintf): New built-ins.
9532         * c-common.c (c_common_nodes_and_builtins): Handle new macro
9533         DEF_FUNCTION_TYPE_VAR_3.
9534
9535         * doc/extend.texi: Document these new built-in functions.
9536
9537 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9538
9539         * config/h8300/h8300.md (a peephole2): New.
9540
9541 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
9542
9543         * predict.c (estimate_bb_frequencies): Correctly set
9544         real_values_initialized after initialization.
9545
9546 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
9547
9548         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
9549         cppinit.o, cppdefault.o, fix-header): Update.
9550         * c-incpath.c: New file.
9551         * c-incpath.h: New file.
9552         * c-lex.c: Include c-incpath.h.
9553         (init_c_lex): Register path simplifier.
9554         * c-opts.c: Include cppdefault.h and c-incpath.h.
9555         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
9556         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
9557         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
9558         (missing_arg, c_common_decode_option): Handle them.
9559         (c_common_post_options): Register include chains.
9560         (print_help): Update.
9561         * cppdefault.h (struct default include): Update.
9562         Move some macros to ...
9563         * cppdefault.c: ... here.
9564         (cpp_include_defaults): Add extra field add_sysroot.
9565         * cppfiles.c (include_file, search_from, find_or_create_entry,
9566         cpp_included, find_include_file, remap_filename): Update for
9567         renaming of search_path to cpp_path, and of the chain headers.
9568         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
9569         * cpphash.h (struct search_path): Move to cpplib.h.
9570         (struct cpp_buffer, struct cpp_reader): Update.
9571         (_cpp_simplify_pathname): Remove.
9572         * cppinit.c: Don't include prefix.h and cppdefault.h.
9573         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
9574         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
9575         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
9576         no_pth, cpp_handle_options): Remove.
9577         (struct pending_option): Remove chain members.
9578         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
9579         cpp_handle_option): Update.
9580         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
9581         (struct cpp_options): Remove quote_include, bracket_include,
9582         include_prefix, include_prefix_len, verbose, ignore_srcdir,
9583         no_standard_includes, no_standard_cplusplus_includes.
9584         (struct cpp_callbacks): Add simplify_path.
9585         (cpp_handle_options): Remove.
9586         * fix-header.c: Include c-incpath.h.
9587         (read_scan_file): Update to use c-incpath functionality.
9588         * doc/passes.texi: Update.
9589
9590 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9591
9592         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
9593         satisfies EXTRA_CONSTRAINT 'U'.
9594
9595 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9596
9597         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
9598         register.
9599         (*tst_extzv_memqi_1_n): Change to a splitter.
9600         (a peephole2): Update.
9601
9602 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
9603
9604         * predict.c (estimate_bb_frequencies): Initialize the sreal
9605         constants once per compilation.
9606
9607 2003-02-28  Richard Henderson  <rth@redhat.com>
9608
9609         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
9610
9611 2003-02-28  scott snyder  <snyder@fnal.gov>
9612
9613         * flags.h: Add flag_eliminate_unused_debug_types.
9614         * toplev.c: Add flag_eliminate_unused_debug_types.
9615         (f_options): Add -feliminate-unused-debug-types.
9616         * dwarf2out.c (struct file_table): Add emitted member.
9617         (splice_child_die): Fix the parent pointer for the child being
9618         spliced.
9619         (lookup_filename): Maintain file_table.emitted array.  Don't
9620         output .file directive here.
9621         (maybe_emit_file): (new)
9622         (init_file_table): Set up file_table.emitted.
9623         (dwarf2out_source_line): Use maybe_emit_file.
9624         (dwarf2out_start_source_file): Use maybe_emit_file.
9625         (dwarf2out_init): Use maybe_emit_file.
9626         (prune_unused_types_walk_attribs): (new)
9627         (prune_unused_types_mark): (new)
9628         (prune_unused_types_walk): (new)
9629         (prune_unused_types_prune): (new)
9630         (prune_unused_types): (new)
9631         (dwarf2out_finish): Call prune_unused_types if
9632         flag_eliminate_unused_debug_types is set.
9633         * doc/invoke.texi (Option Summary): Add
9634         -feliminate-unused-debug-types.
9635         (Debugging Options): Likewise.
9636
9637 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
9638
9639         * doc/invoke.texi: Change .pch to .gch.
9640         * cppfiles.c (open_file_pch): Likewise.
9641         * gcc.c (default_compilers): Likewise.
9642
9643 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
9644
9645         * floatlib.c: Remove.
9646
9647 2003-02-28  Jason Merrill  <jason@redhat.com>
9648
9649         * stor-layout.c (variable_size): Leave a "minus 1" outside the
9650         SAVE_EXPR.
9651
9652 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
9653
9654         * config/rs6000/power4.md: Add compare bypass.
9655
9656 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
9657
9658         * config/netbsd.h: Update copyright years.
9659         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
9660         -pthread is specified on the command line.
9661
9662 2003-02-28  Dale Johannesen <dalej@apple.com>
9663
9664         * loop.c (struct movable): Add insert_temp, shrink savemode.
9665         (scan_loop): Accept invariants that require copying; mark as
9666         insert_temp.
9667         (combine_movables): Don't combine insert_temp movables.
9668         (move_movables): Insert copies for insert_temp movables.
9669         Don't record the info based on regno for insert_temp's.
9670
9671 2003-02-28  Joel Sherrill <joel@OARcorp.com>
9672
9673         PR 9638/other
9674         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
9675         this constant defaults to 1.
9676
9677 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
9678
9679         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
9680
9681 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
9682
9683         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
9684         ARMv5e processor, not just for XScale.  Instructions are predicable.
9685         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
9686
9687 2003-02-28  Nick Clifton  <nickc@redhat.com>
9688
9689         * config/arm/arm.c (note_invalid_constants): Change parameter type
9690         from bool to int.
9691
9692 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
9693
9694         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
9695         test of bit 7.
9696         (*tst_extzv_memqi_1_n): Likewise.
9697         (a peephole2): New.
9698
9699 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
9700
9701         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
9702         #ifndef __mips16.
9703
9704 2003-02-28  Jan Hubicka  <jh@suse.cz>
9705
9706         * combine.c (gen_lowpart_for_combine): Update handling of
9707         subregs_of_mode
9708         * flow.c (life_analysis, mark_used_regs): Likewise.
9709         * regclass.c (subregs_of_mode): Turn into single bitmap.
9710         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
9711         dealing with subregs_of_mode
9712         * regs.h (subregs_of_mode): Update prototype.
9713
9714 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
9715
9716         * emit-rtl.c (set_reg_attrs_for_parm): New function.
9717         * rtl.h (set_reg_attrs_for_parm): New exported function.
9718         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
9719         set_reg_attrs_from_mem.
9720
9721 2003-02-27  Roger Sayle  <roger@eyesopen.com>
9722             Zack Weinberg <zack@codesourcery.com>
9723
9724         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
9725
9726 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
9727
9728         * reload1.c (sext_for_mode): Remove.
9729         (reload_cse_move2add): Use trunc_int_for_mode instead of
9730         sext_for_mode.
9731         (move2add_note_store): Likewise.
9732         Reset register information if we see a set in non-integer
9733         mode.
9734
9735 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
9736
9737         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
9738         option.
9739         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
9740         * config/rs6000/aix51.h: Same.
9741         * config/rs6000/aix52.h: Same.
9742         * config/rs6000/power4.md: Additional VMX bypasses.
9743
9744 2003-02-27   Geert Bosch <bosch@gnat.com>
9745
9746         * toplev.c (print_version): Add indentation for GGC heuristics and
9747         output after printing version information.
9748
9749 2003-02-27  James E Wilson  <wilson@tuliptree.org>
9750
9751         * combine.c (simplify_comparison): Require integral mode when
9752         permuting SUBREG with AND.
9753
9754 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
9755
9756         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
9757
9758 2003-02-27  Nick Clifton  <nickc@redhat.com>
9759
9760         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
9761         deleted when cirrus instructions were added.
9762
9763 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
9764
9765         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
9766         POSIX thread support by default.
9767
9768 2003-02-27  Roger Sayle  <roger@eyesopen.com>
9769
9770         * config/i386/cygwin.h: Don't include any other files directly.
9771         * config/i386/mingw32.h: Don't include cygwin.h directly.
9772         * config.gcc (cygwin, mingw32, uwin): Instead make these files
9773         explicit in the tm_files variable.
9774
9775 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
9776
9777         * config/rs6000/rs6000.md: Add TI constant splitter.
9778
9779 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
9780
9781         * builtins.c (purge_builtin_constant_p): Handle subreg of
9782         constant_p_rtx too.
9783
9784         * function.c (assign_stack_local_1): Truncate constant added to
9785         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
9786
9787 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
9788
9789         * config.gcc: Add power4 to PowerPC with_cpu list.
9790
9791 2003-02-26  Jan Hubicka  <jh@suse.cz>
9792
9793         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
9794
9795 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9796
9797         * gcov-dump.c (print_prefix): Fix signedness warning.
9798         * gcov-io.h (struct counter_section, struct counter_section_data): New.
9799         (struct function_info): n_arc_counts field removed, n_counter_sections,
9800         counter_sections fields added.
9801         (struct gcov_info): arc_counts, n_arc_counts fields removed,
9802         n_counter_sections, counter_sections fields added.
9803         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
9804         profile sections.
9805         * profile.h (MAX_COUNTER_SECTIONS): New.
9806         (struct section_info): New.
9807         (struct profile_info): count_instrumented_edges,
9808         count_edges_instrumented_now fields removed, n_sections, section_info
9809         fields added.
9810         (find_counters_section): Declare.
9811         * profile.c (struct function_list): count_edges field removed,
9812         n_counter_sections, counter_sections fields added.
9813         (set_purpose, label_for_tag, build_counter_section_fields,
9814         build_counter_section_value, build_counter_section_data_fields,
9815         build_counter_section_data_value, build_function_info_fields,
9816         build_function_info_value, build_gcov_info_fields,
9817         build_gcov_info_value): New static functions.
9818         (find_counters_section): New function.
9819         (instrument_edges, get_exec_counts, compute_branch_probabilities,
9820         branch_prob, create_profiler): Modified to support multiple profile
9821         sections.
9822
9823 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9824
9825         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
9826         is 8 * STACK_BOUNDARY.
9827         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
9828
9829 2003-02-26  Michael Matz  <matz@suse.de>
9830
9831         * ra-colorize.c (merge_moves): Fix list handling.
9832
9833 2003-02-26  Nick Clifton  <nickc@redhat.com>
9834
9835         * config/arm/arm.c (is_load_address): Rename to...
9836         (arm_memory_load_p) ... this and make it check for SUBREGs and
9837         constant loads that will be converted into loads from the
9838         minipool.
9839         (is_cirrus_insn): Rename to ...
9840         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
9841         of CIRRUS_NO with CIRRUS_NOT.
9842         (cirrus_reorg): Use renamed functions.
9843         (note_invalid_constants): Change from a void function to bool.
9844         Add an extra parameter, saying whether the fixups should be
9845         pushed.  Return true if fixups are needed.
9846         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
9847         of CIRRUS_NO with CIRRUS_NOT.
9848         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
9849         other floating point co-processors can also affect this.
9850         * config/arm/arm.md ("type" attribute): Add mav_farith and
9851         mav_dmult.  Replace references to "cirrus_type" attribute with
9852         "type".
9853         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
9854         ("cirrus_type" attribute): Delete - use "type" instead.
9855         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
9856         'normal'.
9857
9858 2003-02-25  Jan Hubicka  <jh@suse.cz>
9859
9860         * objc-act.c: Include cgraph.h
9861         (mark_referenced_methods): New function.
9862         (objc_init): Call it.
9863         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
9864
9865         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
9866         mode.
9867
9868         * optabs.c (expand_fix): Do not widen the input operand.
9869
9870         * expr.c (emit_group_store):  Fix crash when converting single
9871         register into complex register.
9872
9873         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
9874         * alias.c: Include timevar.h
9875         (init_alias_analysis):  Set timevar
9876         * jump.c: Include timevar.h
9877         (rebuild_jump_labels):  Set timevar
9878         * regcalss.c: Include timevar.h
9879         (reg_scan):  Set timevar
9880         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
9881
9882 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9883
9884         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
9885
9886         * Makefile.in (loop-unroll.o): New.
9887         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
9888         (unroll_and_peel_loops): Declare.
9889         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
9890         flag_old_unroll_loops.
9891         * loop.c (loop_invariant_p): Ditto.
9892         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
9893         flag_old_unroll_all_loops.
9894         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
9895         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
9896         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
9897         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
9898         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
9899         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
9900         PARAM_MAX_ONCE_PEELED_INSNS): New.
9901         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
9902         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
9903         instead of old one.
9904         (flag_peel_loops): New.
9905         (lang_independent_options): The new flags added.
9906         (rest_of_compilation): Call new unroller.
9907         (process_options): Setup flags for coexistence of old and new unroller.
9908         * doc/invoke.texi: Document new options.
9909         * doc/passes.texi: Document new unroller pass.
9910
9911 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
9912
9913         * fixinc/fixincl.x: Regenerate
9914
9915 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
9916
9917         * function.c (assign_parms): Set reg_attrs for parameters passed in
9918         registers.
9919
9920 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
9921
9922         PR target/9681
9923         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
9924
9925 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
9926
9927         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
9928         pseudo-op.
9929
9930 2003-02-25  Roger Sayle  <roger@eyesopen.com>
9931
9932         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
9933         * cse.c (invalidate_skipped_set):  Likewise.
9934         * integrate.c (subst_constants):  Likewise.
9935         * jump.c (reversed_comparison_code_parts):  Likewise.
9936         * loop.c (canonicalize_condition):  Likewise.
9937         * simplify-rtx.c (simplify_relational_operation):  Likewise.
9938
9939 2003-02-25  Roger Sayle  <roger@eyesopen.com>
9940
9941         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
9942         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
9943         the appropriate macro to define built-in function.
9944         (fmod,fmodf,fmodl): New built-in functions.
9945
9946         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
9947
9948 2003-02-25  Richard Henderson  <rth@redhat.com>
9949
9950         * config/i386/i386.c (function_arg): Pass variable sized
9951         structures correctly on the stack.
9952
9953 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
9954
9955         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
9956         does not reduce the cost of SET.
9957
9958 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9959
9960         PR target/9732
9961         * config/rs6000/rs6000.c (first_reg_to_save): Handle
9962         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
9963         (rs6000_emit_prologue): Likewise.
9964         (rs6000_emit_epilogue): Likewise.
9965         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
9966         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
9967
9968 2003-02-25  Richard Henderson  <rth@redhat.com>
9969
9970         * real.c (real_to_integer2): Force overflow result only for
9971         unsigned overflow.
9972
9973 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
9974
9975         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
9976
9977 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9978             Richard Henderson  <rth@redhat.com>
9979
9980         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
9981         there is no similar load.
9982
9983 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
9984             Richard Henderson  <rth@redhat.com>
9985
9986         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
9987         sched-rgn.c.
9988         (add_forward_dependence): New function prototype.
9989
9990         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
9991         sched-init.h.
9992         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
9993         them to haifa-sched.c.
9994
9995         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
9996         haifa_classify_insn): Move them from sched-rgn.c.
9997
9998         * sched-deps.c (add_dependence): Return flag of creating a new
9999         entry.
10000         (add_forward_dependence): New function.
10001         (compute_forward_dependences): Use the function.
10002
10003         * sched-ebb.c (earliest_block_with_similiar_load): New function.
10004         (add_deps_for_risky_insns): New function.
10005         (schedule_ebb): Call the function.
10006
10007 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
10008
10009         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
10010         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
10011
10012         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
10013         opaque types fail.
10014
10015         * c-typeck.c (comptypes): Change call to vector_types_compatible
10016         to vector_opaque_p.
10017         (convert_for_assignment): Call vector_opaque_p instead of
10018         vector_types_compatible.
10019         (really_start_incremental_init): Disallow initialization of opaque
10020         types.
10021
10022         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
10023         Define TARGET_VECTOR_OPAQUE_P.
10024         (TARGET_INITIALIZER): Same.
10025
10026         * target.h (struct gcc_target): Remove vector_types_compatible.
10027         Add vector_opaque_p.
10028
10029         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
10030         Remove.
10031         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
10032         a vector type.  Change return type to bool.
10033         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
10034         (TARGET_VECTOR_OPAQUE_P): Define.
10035
10036         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
10037         target hook.
10038         Include target.h.
10039         (cp_parser_init_declarator): Fix typo in function comments.
10040
10041 2003-02-25  Jan Hubicka  <jh@suse.cz>
10042
10043         * Makefile.in (lcm.o):  Add dependency on function.h
10044         * lcm.c (function.h): Include.
10045         * i386.c (machine_function, ix86_stack_locals,
10046         * ix86_save_varrargs_registers) : Move to
10047         ...
10048         * i386.h (machine_function, ix86_stack_locals,
10049         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
10050         (ix86_optimize_mode_switching): New.
10051         * i386.md (fix patterns): Set ix86_optimize_mode_switching
10052
10053 2003-02-25  Nick Clifton  <nickc@redhat.com>
10054
10055         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
10056         of fourth arg is 'fndecl' not 'indirect'.  Update comment
10057         describing the function's parameters.
10058
10059 2003-02-24  Jan Hubicka  <jh@suse.cz>
10060
10061         * combine.c (simplify_shift_const):  Fix previous patch.
10062
10063 2003-02-24  Jeff Law  <law@redhat.com>
10064
10065         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
10066         alternative.
10067         (testsi_1, testhi_1, testqi_1): Likewise.
10068
10069 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10070
10071         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
10072         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
10073         * doc/extend.texi (Tru64 Pragmas): Reflect this.
10074
10075         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
10076         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
10077         * fixinc/fixincl.x: Regenerate.
10078         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
10079         testcase.
10080         Fixes PR c/5059, c/6126, other/9671.
10081
10082 2003-02-24  Roger Sayle  <roger@eyesopen.com>
10083
10084         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
10085         from handle_braces in "%{...}".
10086
10087 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
10088
10089         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
10090         (prepare_move_operands): Handle TLS operands.
10091         (tls_symbolic_operand): New.
10092         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
10093         (legitimize_pic_address): Do nothing for the TLS symbol.
10094         (sh_encode_section_info): Handle TLS case.
10095         (sh_strip_name_encoding): Drop TLS encoding.
10096         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
10097         * config/sh/sh.h (SH_TLS_ENCODING): Define.
10098         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
10099         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
10100         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
10101         * config/sh/sh.md: Define TLS UNSPEC constants.
10102         (type): Add tls_load.
10103         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
10104         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
10105         ("tls_initial_exec"): New insn.
10106         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
10107         ("load_gbr"): New insn.
10108
10109         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
10110         * configure: Regenerate.
10111
10112 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
10113
10114         PR 9297, PR 9722
10115         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
10116         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
10117         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
10118         (enum block_op_methods): Reorder for better store_expr optimization.
10119         * expr.c (store_expr): Test bit 1 of "want_value" for call param
10120         stores, test bit 0 for original want_value meaning.  Pass
10121         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
10122         recursive calls, and calls to expand_param.
10123         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
10124         expected, set target to 0 rather than to subtarget.  Formatting.
10125
10126 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
10127
10128         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
10129
10130 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10131
10132         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
10133         new default behavior.
10134         * ggc-common.c: Include sys/resource.h.
10135         (ggc_rlimit_bound): New function.
10136         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
10137         defaults to account for rlimits.
10138
10139 2003-02-22  Richard Henderson  <rth@redhat.com>
10140
10141         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
10142
10143 2003-02-22  Kelley Cook <kelley@dwhoops.info>
10144
10145         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
10146         (ix86_tune_string): Rename from ix86_cpu_string.
10147
10148 2003-02-22  Kelley Cook <kelleycook@comcast.net>
10149
10150         * config/i386/i386.c: Replace "mcpu" with "mtune".
10151         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
10152         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
10153         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
10154         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
10155
10156 2003-02-23  Andreas Schwab  <schwab@suse.de>
10157
10158         * config.gcc: Delete references to m68k/t-linux and
10159         m68k/t-linux-aout.
10160         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
10161
10162 2003-02-22  Jan Hubicka  <jh@suse.cz>
10163
10164         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
10165         of track scheduling patch.
10166
10167 2003-02-22  Jan Hubicka  <jh@suse.cz>
10168
10169         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
10170         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
10171
10172 2003-02-22  Jan Hubicka  <jh@suse.cz>
10173
10174         * c-decl.c (c_expand_body_1): Fix.
10175
10176 2003-02-22  Jan Hubicka  <jh@suse.cz>
10177
10178         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
10179
10180         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
10181         when not optimizing.
10182         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
10183         when not expensive.
10184         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
10185         optimizing;  Delete trivially dead insns early; fix optimize check.
10186
10187         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
10188         dependency on cgraph.h
10189         * c-decl.c: Include cgraph.h
10190         (finish_function): Update call of tree_inlinable_function_p.
10191         * c-objc-common.c: Include cgraph.h
10192         * cgraph.h: New file.
10193         * cgraphunit.c: New file.
10194         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
10195         (cgraph_nodes, cgraph_n_nodes): Globalize.
10196         (cgraph_finalize_function, cgraph_finalize_compilation_unit
10197         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
10198         Move into cgraphunit.c
10199         * tree-inline.c: Include cgraph.h
10200         * tree-inline.c: Include cgraph.h
10201
10202 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
10203
10204         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
10205         for copying a register.
10206
10207 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
10208
10209         PR other/3782
10210         * toplev.c (process_options): If flag_detailed_statistics is set,
10211         then set time_report as well.
10212
10213         PR c/8828
10214         * jump.c (never_reached_warning): Don't fall through BARRRIER
10215         insns.  Update comments to reflect what the function really does.
10216
10217 2003-02-21  Roger Sayle  <roger@eyesopen.com>
10218
10219         * fold-const.c (omit_one_operand): No longer static.
10220         * tree.h (omit_one_operand): Prototype here.
10221         (div_and_round_double): Keep fold-const.c prototypes together.
10222         * builtins.c (builtin_mathfn_code): Handle binary built-in
10223         funtions, such as "pow" and "atan2".
10224         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
10225         Simplify optimizations using "type" the builtin's return type.
10226
10227 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
10228
10229         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
10230         Fix functionalization typo.
10231
10232         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
10233         in an asm.
10234
10235 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10236
10237         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
10238         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
10239         documentation.
10240         * ggc-common.c: Include params.h
10241         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
10242         init_ggc_heuristics): New functions.
10243         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
10244         init_ggc_heuristics): Prototype.
10245         * toplev.c (print_version):  Output GGC heuristics.
10246         (parse_options_and_default_flags): Call init_ggc_heuristics.
10247
10248 2003-02-22  Jan Hubicka  <jh@suse.cz>
10249
10250         * i386.c (def_builtin):  Special case 64bit builtins.
10251         (MASK_SSE164, MASK_SSE264): New constants.
10252         (builtin_description): Add 64bit builtins.
10253         (ix86_init_mmx_sse_builtins): Likewise.
10254         * i386.h (enum ix86_builtins): Likewise.
10255         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
10256         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
10257         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
10258         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
10259         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
10260         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
10261         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
10262
10263 2003-02-22  Jan Hubicka  <jh@suse.cz>
10264
10265         * i386.c (builtin_description): Add __builtin_ia32_paddq and
10266         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
10267          and __builtin_ia32_psubq128.
10268         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
10269         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
10270         (mmx_adddi3, mmx_subdi3): New.
10271         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
10272         * xmmintrin.h (_mm_movepi64_pi64): New.
10273         (_mm_add_epi64, _mm_sub_epi64): fix.
10274         (_mm_mul_pu16): Rename to...
10275         (_mm_mul_su32): ... this one.
10276
10277         * builtins.c (expand_builtin_expect):  Do not predict
10278         flag_guess_branch_prob is not set.
10279         * c-semantics.c (expand_stmt): Likewise.
10280         * predict.c (predict_insn): Likewise.
10281         * stmt.c (expand_continue_loop): Likewise.
10282         * toplev.c (rest_of_compilation): Do not call
10283         note_prediction_to_br_prob and note_prediction_to_br_prob
10284         when not optimizing.
10285
10286 2003-02-21  Jan Hubicka  <jh@suse.cz>
10287
10288         * cfgrtl.c (commit_edge_insertions):  Call
10289         find_many_sub_basic_block only when some code has been emitted.
10290         (commit_edge_insertions_watch_calls): Bring into sync with
10291         commit_edge_insertions
10292
10293 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
10294
10295         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
10296
10297         * sh.md (binary_sf_op): Use extra constant operand instead of
10298         negating constant operand 4.
10299         * sh.c (sh_expand_binop_v2sf): Supply it.
10300
10301 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
10302
10303         * cpphash.h (struct lexer_state): Add directive_wants_padding.
10304         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
10305         for directives of type INCL.
10306         (glue_header_name, parse_include): Use get_token_no_padding.
10307         * cppmacro.c (replace_args): If directive_wants_padding,
10308         provide padding tokens.
10309
10310 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
10311
10312         * config/h8300/h8300.md (a peephole2): New.
10313
10314 2003-02-21  Jan Hubicka  <jh@suse.cz>
10315
10316         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
10317         (commit_edge_insertions): Call find_many_sub_basic_blocks
10318
10319         * reg-stack.c (convert_regs): Cleax aux for blocks.
10320
10321 2003-02-21  Jan Hubicka  <jh@suse.cz>
10322
10323         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
10324
10325 2003-02-21  Glen Nakamura  <glen@imodulo.com>
10326
10327         PR optimization/8613
10328         * builtins.c (expand_builtin): Emit postincrements before expanding
10329         builtin functions.
10330
10331 2003-02-21  Ben Elliston  <bje@redhat.com>
10332
10333         PR other/5634
10334         * doc/install.texi (Configuration): Explain using $HOME instead of
10335         the ~ metacharacter when referring to home directories.
10336
10337 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
10338
10339         * configure.in (TARGET_SYSTEM_ROOT): Set default to
10340         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
10341         '${exec_prefix}' (in addition to the expansion thereof) as
10342         relocatable.
10343         * configure: Rebuilt.
10344
10345 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
10346
10347         * config/h8300/h8300.md (addhi3_incdec): Change the name to
10348         *addhi3_incdec.
10349         (addsi3_incdec): Change the name to *addsi3_incdec.
10350
10351 2003-02-20  Roger Sayle  <roger@eyesopen.com>
10352
10353         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
10354
10355 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
10356
10357         PR fortran/9038
10358         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
10359         options to be ignored.
10360         (c_common_decode_option): Ignore them when preprocessing.
10361
10362 2003-02-20  Jan Hubicka  <jh@suse.cz>
10363
10364         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
10365         global variables.
10366         (lang_independent_options):  Add -fsched2-use-superblocks
10367         -fsced2-use-traces.
10368         (rest_of_compilation): Deal with it.
10369         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
10370         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
10371         Declare.
10372         * rtl.h (reg_to_stack):  Update prototype.
10373         * reg-stack.c (reg_to_stack): Return when something has changed;
10374         update liveness when executing after superblock scheduling.
10375
10376         * combine.c (simplify_shift_const):  Simplify few special cases
10377         into constants.
10378
10379 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
10380
10381         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
10382         (add.,subf.,neg.): Change attribute to fast_compare.
10383         All DFA descriptions updated.
10384
10385 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
10386
10387         Change base class access representation.
10388         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
10389         TREE_VIA_PRIVATE): Remove.
10390         (BINFO_BASEACCESSES): New binfo elt.
10391         (BINFO_BASEACCESS): New accessor.
10392         (BINFO_ELTS): Increase.
10393         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
10394         (access_public_node, access_protected_node,
10395         access_private_node): New global nodes.
10396         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
10397         * dbxout.c (dbxout_type): Adjust.
10398         * dwarf2out.c (gen_inheritance_die): Add access parameter.
10399         (gen_member_die): Adjust.
10400         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
10401         (output_type): Adjust.
10402         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
10403
10404         Change base class access representation. Share virtual base
10405         binfos.
10406         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
10407         call.
10408         * cp/class.c (build_base_path): Likewise.
10409         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
10410         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
10411         (make_new_vtable): Adjust.
10412         (force_canonical_binfo_r): Delete.
10413         (force_canonical_binfo): Delete.
10414         (mark_primary_virtual_base): Delete.
10415         (dfs_unshared_virtual_bases): Delete.
10416         (mark_primary_bases): Adjust.
10417         (maybe_warn_about_overly_private_class): Adjust.
10418         (dfs_base_derived_from): Delete.
10419         (base_derived_from): Follow the inheritance chain.
10420         (struct find_final_overrider_data): Add vpath member.
10421         (dfs_find_final_overrider): Adjust.
10422         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
10423         (find_final_overrider): Adjust.
10424         (update_vtable_entry_for_fn): Adjust.
10425         (modify_all_vtables): Adjust.
10426         (walk_subobject_offsets): Adjust.
10427         (layout_nonempty_base_or_field): Adjust.
10428         (layout_empty_base): Remove last parameter. Adjust.
10429         (build_base_field): Adjust.
10430         (build_base_fields): Adjust.
10431         (propagate_binfo_offsets): Remove last parameter. Adjust.
10432         (dfs_set_offset_for_unshared_vbases): Delete.
10433         (layout_virtual_bases): Adjust.
10434         (finish_struct_1): Adjust.
10435         (init_class_processing): Don't init access nodes.
10436         (dfs_get_primary_binfo): Delete.
10437         (get_primary_binfo): Adjust.
10438         (dump_class_hierarchy_r): Remove most derived arg, add IGO
10439         parameter. Adjust.
10440         (dump_class_hierarchy): Adjust.
10441         (finish_vtbls): Adjust.
10442         (get_original_base): Delete.
10443         (build_vtt_inits): Adjust.
10444         (dfs_build_secondary_vptr_vtt_inits): Adjust.
10445         (dfs_ctor_vtable_bases_queue_p): Adjust.
10446         (build_ctor_vtbl_group): Adjust.
10447         (dfs_accumulate_vtbl_inits): Adjust.
10448         (build_vtbl_initializer): Adjust.
10449         (build_vbase_offset_vtbl_entries): Adjust.
10450         (add_vcall_offset_vtbl_entries_1): Adjust.
10451         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
10452         (access_*_node): Remove.
10453         (CANONICAL_BINFO): Delete.
10454         (BINFO_UNSHARED_MARKED): Remove.
10455         (BINFO_MARKED): Set LANG_FLAG_0 directly.
10456         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
10457         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
10458         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
10459         Delete.
10460         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
10461         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
10462         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
10463         Delete.
10464         (BINFO_DEPENDENT_BASE_P): New.
10465         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
10466         index.
10467         (markedp, unmarkedp): Adjust.
10468         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
10469         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
10470         find_vbase_instance, binfo_for_vbase): Delete.
10471         (copied_binfo, original_binfo): Declare.
10472         (finish_base_specifier): Add virtual_p arg.
10473         (unshare_base_binfos): Delete.
10474         (copy_base_binfos): Declare.
10475         (reverse_path): Delete.
10476         * cp/decl.c (xref_basetypes): Access and virtuality passed
10477         differently. Don't copy direct base binfos here. Call
10478         copy_base_binfos.
10479         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
10480         (initialize_vtbl_ptrs): Adjust.
10481         (expand_member_init): Adjust.
10482         * cp/parser.c (cp_parser_base_specifier): Adjust.
10483         * cp/pt.c (instantiate_class_template): Adjust.
10484         (get_template_base_recursive): Adjust.
10485         * cp/rtti.c (get_pseudo_ti_init): Adjust.
10486         (get_pseudo_ti_desc): Adjust.
10487         * cp/tree.c (unshare_base_binfos): Rename to ...
10488         (copy_base_binfos): ... here, reimplement.
10489         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
10490         (reverse_path): Remove.
10491         * cp/typeck.c (get_delta_difference): Adjust error messages.
10492         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
10493         * cp/search.c (lookup_base_r): Adjust.
10494         (dynamic_cast_base_recurse): Adjust.
10495         (canonical_binfo): Remove.
10496         (dfs_canonical_queue): Remove.
10497         (dfs_assert_unmarked_p): Remove.
10498         (assert_canonical_unmarked): Remove.
10499         (shared_marked_p, shared_unmarked_p): Remove.
10500         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
10501         (dfs_access_in_type): Adjust.
10502         (access_in_type): Adjust.
10503         (dfs_accessible_queue_p): Adjust.
10504         (dfs_accessible_p): Adjust.
10505         (is_subobject_of_p_1, is_subobject_of_p): Remove.
10506         (struct lookup_field_info): Remove from_dep_base_p field.
10507         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
10508         (lookup_field_r): Remove dependent base code.
10509         (lookup_member): Likewise.
10510         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
10511         (dfs_unmarked_real_bases_queue_p): Remove.
10512         (dfs_marked_real_bases_queue_p): Remove.
10513         (dfs_skip_vbases): Remove.
10514         (dfs_get_pure_virtuals): Adjust.
10515         (markedp, unmarkedp): Adjust.
10516         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
10517         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
10518         (dfs_unmark): Adjust.
10519         (dfs_get_vbase_types):Remove.
10520         (dfs_build_inheritance_graph_order): Remove.
10521         (get_vbase_types): Remove
10522         (dfs_find_vbase_instance): Remove.
10523         (find_vbase_instance): Remove.
10524         (dfs_debug_unmarkedp): Adjust.
10525         (dependent_base_p): Remove.
10526         (dfs_push_type_decls): Adjust.
10527         (dfs_push_decls): Adjust.
10528         (dfs_no_overlap_yet): Adjust.
10529         (copied_binfo): New function.
10530         (original_binfo): New function.
10531         (binfo_for_vbase): Remove.
10532
10533         Change base class access representation.
10534         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
10535         (add_interface_do): Likewise.
10536
10537 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
10538
10539         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10540         * config/rs6000/power4.md (power4-store,power4-vecstore): New
10541         insn reservations.
10542         (power4-fpstore): Compact.
10543
10544 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
10545
10546         * config/h8300/h8300.md (*iorsi3_w): New.
10547
10548 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
10549
10550         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
10551         * rtl.c (reg_note_name): Likewise.
10552         * rtl.h (enum reg_note): Likewise.
10553         * doc/invoke.texi: Likewise.
10554         * doc/rtl.texi: Likewise.
10555
10556 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
10557
10558         * bb-reorder.c (find_traces_1_round): Fix comment typo.
10559
10560 2003-02-19  Roger Sayle  <roger@eyesopen.com>
10561
10562         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
10563         addition in the presence of signaling NaNs.
10564
10565 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
10566
10567         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
10568
10569 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10570
10571         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
10572         ORing with 0xffff??00 with the highest bit of the ?? part set.
10573         (compute_logical_op_length): Update.
10574         (compute_logical_op_cc): Likewise.
10575
10576 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
10577
10578         * bb-reorder.c (find_traces_1_round): Fixed condition for small
10579         destination block with multiple predecessors.
10580         (connect_traces): Check whether the block is a start of trace.
10581
10582 2003-02-19  Jan Hubicka  <jh@suse.cz>
10583
10584         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
10585         * function.c (assign_params): Likewise.
10586         * arm-protos.h (arm_init_cumulative_args): Update prototype.
10587         * arm.c (arm_init_cumulative_args): Update function.
10588         * arm.h (INIT_CUMULATIVE_ARGS): Update.
10589         * avr-protos.h (init_cumulative_args): Update prototype.
10590         * avr.c (init_cumulative_args): Update function.
10591         * avr.h (INIT_CUMULATIVE_ARGS): Update.
10592         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
10593         * d30v.c (d30v_init_cumulative_args): Update function.
10594         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
10595         * frv-protos.h (frv_init_cumulative_args): Update prototype.
10596         * frv.c (frv_init_cumulative_args): Update function.
10597         * frv.h (INIT_CUMULATIVE_ARGS): Update.
10598         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
10599         * pa.h (INIT_CUMULATIVE_ARGS): Update.
10600         * sparc-protos.h (init_cumulative_args): Update prototype.
10601         * sparc.c (init_cumulative_args): Update function.
10602         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
10603         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
10604
10605 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10606
10607         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
10608         (*ashiftsi_sextqi_7): Likewise.
10609
10610 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10611
10612         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
10613         ISO C99 and C++.
10614
10615         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
10616         for C++ on IRIX 6.5.1[89].
10617         * fixinc/tests/base/internal/sgimacros.h: New file.
10618
10619         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
10620         * fixinc/tests/base/internal/wchar_core.h: New file.
10621
10622         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
10623         socklen_t definition.
10624         * fixinc/fixincl.x: Regenerate.
10625         * fixinc/tests/base/sys/socket.h: New file.
10626         Fixes PR libgcj/9652.
10627
10628 2003-02-19  Jan Hubicka  <jh@suse.cz>
10629
10630         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
10631
10632 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
10633
10634         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
10635         align_jumps_max_skip and align_loops_max_skip.
10636
10637 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
10638
10639         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
10640         test size if named section.
10641
10642 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
10643
10644         * expr.c (expand_expr): Use gen_int_mode for the argument
10645         to gen_rtx_MULT.
10646
10647 2003-02-19  Jan Hubicka  <jh@suse.cz>
10648
10649         * i386.md (cosxf2):  Fix conditional.
10650
10651 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10652
10653         * config/h8300/h8300.md (extendqisi2): Change to an expander.
10654         (*extendqisi2_h8300): New.
10655         (*extendqisi2_h8300hs): Likewise.
10656
10657 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10658
10659         * config/h8300/h8300-protos.h: Update the prototype for
10660         split_adds_subs.  Remove the prototypes for
10661         const_int_le_2_operand and const_int_le_6_operand.
10662         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
10663         (const_int_le_2_operand): Remove.
10664         (const_int_le_6_operand): Likewise.
10665         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
10666         for const_int_le_2_operand and const_int_le_6_operand.
10667         * config/h8300/h8300.md: Update all uses of split_adds_subs.
10668         (a peephole2): New.
10669
10670 2003-02-18  Jan Hubicka  <jh@suse.cz>
10671
10672         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
10673         (cgraph_expand_function): Rewrite.
10674
10675 2003-02-18  Matt Austern <austern@apple.com>
10676
10677         * toplev.c, langhooks.c, langhooks-def.h: Move
10678         write_global_declarations from toplev.c to langhooks.c.
10679
10680 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
10681
10682         * config/h8300/h8300.c (general_operand_src): Always check
10683         MODE.
10684         (general_operand_dst): Likewise.
10685
10686 2003-02-18  Roger Sayle  <roger@eyesopen.com>
10687
10688         * convert.c (convert_to_real): Also optimize (float)log(x) into
10689         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
10690
10691 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10692
10693         * config/sh/sh.c (unspec_caller_rtx_p): New.
10694         (sh_cannot_copy_insn_p): New.
10695         (TARGET_CANNOT_COPY_INSN_P): New.
10696
10697 2003-02-18  Richard Henderson  <rth@redhat.com>
10698
10699         * c-common.c (handle_used_attribute): Accept static data too.
10700
10701 2003-02-18  Nick Clifton  <nickc@redhat.com>
10702             Aldy Hernandez  <aldyh@redhat.com>
10703
10704         * testsuite/gcc.dg/20030218-1.c: New.
10705
10706         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
10707
10708         * target-def.h (TARGET_INITIALIZER): Add
10709         TARGET_VECTOR_TYPES_COMPATIBLE.
10710         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
10711
10712         * target.h (struct gcc_target): Add field vector_types_compatible.
10713
10714         * c-typeck.c (comptypes): Take into account
10715         TARGET_VECTOR_TYPES_COMPATIBLE.
10716         (convert_for_assignment): Same.
10717
10718         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
10719         (rs6000_spe_vector_types_compatible): New.
10720         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
10721
10722 2003-02-19  Andreas Schwab  <schwab@suse.de>
10723
10724         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
10725         * toplev.c: Include langhooks-def.h.
10726
10727 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
10728
10729         * config/mips/mips.h (enum processor_type): Sort entries
10730         alphabetically.
10731         * config/mips/mips.md (define_attr cpu): Sync with processor_type
10732         enum values, including adding entries that were missing.
10733
10734 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
10735
10736         * sh.c (calc_live_regs): Also check GET_CODE when checking if
10737         initial value for PR_REG is still the PR_REG register.
10738
10739 2003-02-18  Jim Wilson  <wilson@redhat.com>
10740
10741         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
10742         instruction in output template.
10743         (bsp_value): Change output template from string to C code, add %,
10744         before actual instruction.
10745         (flushrs): Mark as not predicable.
10746
10747 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
10748
10749         * inclhack.def (netbsd_bogus_semicolon): New fix.
10750         * fixincl.x: Rebuilt.
10751         * tests/base/ctype.h: Update.
10752
10753 2003-02-18  Roger Sayle  <roger@eyesopen.com>
10754
10755         * fold-const.c (negate_expr_p): New function to determine whether
10756         an expression can be negated cheaply.
10757         (fold) [MINUS_EXPR]: Use it to determine whether to transform
10758         -A - B into -B - A for floating point types.
10759
10760 2003-02-18  Roger Sayle  <roger@eyesopen.com>
10761
10762         * sbitmap.c (sbitmap_resize): New function.
10763         * sbitmap.h (sbitmap_resize): Prototype here.
10764         * recog.c (split_all_insns): Use sbitmap_resize.
10765
10766 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
10767
10768         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
10769         insn length.
10770         (extendqisi2): Likewise.
10771         (*extendhisi2_h8300): Likewise.
10772
10773 2003-02-18  Matt Austern <austern@apple.com>
10774
10775         * langhooks.h, langhooks-def.h: introduce new langhook,
10776         final_write_globals, with write_global_declarations as default.
10777         * toplev.c: Move invocation of wrapup_global_declarations from
10778         compile_file to new function, write_global_declarations.  Change
10779         compile_file to use final_write_globals hook.  Change
10780         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
10781         conditional.
10782
10783 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10784
10785         * pa.md: Correct and enhance comment.
10786
10787 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
10788
10789         * gcc.c (validate_switches): Don't scan past closing '}'.
10790
10791 2003-02-18  Ben Elliston  <bje@redhat.com>
10792
10793         PR c++/1607
10794         * doc/extend.texi (Function Attributes): Document the effect of
10795         the C++ "this" parameter on the counting of arguments for the
10796         "format" and "format_arg" attributes.
10797
10798 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
10799
10800         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
10801         (__ev_stdw): Same.
10802         (__ev_stdh): Same.
10803
10804 2003-02-17  Jan Hubicka  <jh@suse.cz>
10805
10806         * recog.c (split_all_insns):  Fix memory overflow.
10807
10808 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
10809
10810         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
10811         (cmphi): Likewise.
10812         (*cmphi_h8300): Likewise.
10813         (*cmphi_h8300hs): Likewise.
10814         (cmpsi): Likewise.
10815         (7 peephole2): Likewise.
10816
10817 2003-02-16  Jan Hubicka  <jh@suse.cz>
10818
10819         * c-typeck.c (build_c_cast):  Fold constant variables into
10820         initial values.
10821
10822 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10823
10824         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
10825         (Binaries): Ditto for Sinix/Reliant Unix.
10826
10827 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
10828
10829         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
10830         not overlap the final result register.
10831
10832 2003-02-16 Arend Bayer <arend.bayer@web.de>
10833            Richard Henderson  <rth@redhat.com>
10834
10835         PR c/8068
10836         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
10837         rearrange mult arguments for less recursion.
10838         (extract_muldiv): New.  Prevent runaway recursion.
10839
10840 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
10841
10842         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
10843         MASK_ALIGN_DOUBLE.
10844
10845 2003-02-15  Roger Sayle  <roger@eyesopen.com>
10846
10847         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
10848         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
10849         (ext_80387_constants_table): Global table of 80387 special constants
10850         guarded by ext_80387_constants_init flag when not initialized.
10851         (init_ext_80387_constants): New function to initialize this table.
10852         (standard_80387_constant_p): Extend to recognize extra 80387
10853         constants, in XFmode, on processors where this is a win.
10854         (standard_80387_constant_opcode): New function to return the
10855         opcode associated with standard_80387_constant_p.
10856         (standard_80387_constant_rtx): New function to return the XFmode
10857         CONST_DOUBLE associated with standard_80387_constant_p.
10858         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
10859
10860         * config/i386/i386-protos.h (standard_80387_constant_opcode):
10861         Prototype here.
10862         (standard_80387_constant_rtx): Likewise.
10863
10864         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
10865         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
10866         *movtf_integer): Simplify using new standard_80387_constant_opcode.
10867
10868 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
10869
10870         * doc/invoke.texi (Optimize Options): Correct @option syntax.
10871
10872 2003-02-15  Richard Henderson  <rth@redhat.com>
10873
10874         * Makefile.in (cfglayout.o): Depend on TARGET_H.
10875         * cfglayout.c: Include target.h.
10876         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
10877         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
10878         * target.h (struct gcc_target): Add cannot_copy_insn_p.
10879
10880         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
10881         (TARGET_CANNOT_COPY_INSN_P): New.
10882         (override_options): Revert 2003-02-08 hack.
10883
10884 2003-02-15  Richard Henderson  <rth@redhat.com>
10885
10886         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
10887         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
10888
10889 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
10890
10891         * config/rs6000/rs6000.h (processor_type): Add PPC440.
10892         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10893         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10894         TARGET_SCHED_VARIABLE_ISSUE): Define.
10895         (rs6000_use_dfa_pipeline_interface): New function.
10896         (rs6000_multipass_dfa_lookahead): New Function.
10897         (rs6000_variable_issue): New function.
10898         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
10899         (rs6000_issue_rate): Add PPC440.
10900         * config/rs6000/rs6000.md (unspec list): Correct typo.
10901         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
10902         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
10903         cmp, delayed_cr, mfcr, mtcr.
10904         (automata_option): Set "ndfa".
10905         (extendMMNN2): Update attributes.
10906         (movcc_internal1): Discourage move to non-cr0.  Update
10907         attributes.
10908         (movMM_update): Update attributes.
10909         (cmpMM_internal): Update attributes.
10910         (sCC CR materialization): Update attributes.
10911         (branch patterns): Do not discourage non-cr0.
10912         (cr logical patterns): Prefer destructive register allocation.
10913         Update attributes.
10914         (movesi_from_cr): Update attribute.
10915         (mtcrf_operation): Update attribute.
10916         (mtcrfsi): Update attribute.
10917         * config/rs6000/40x.md: New file.
10918         * config/rs6000/603.md: New file.
10919         * config/rs6000/6xx.md: New file.
10920         * config/rs6000/7450.md: New file.
10921         * config/rs6000/7xx.md: New file.
10922         * config/rs6000/mpc.md: New file.
10923         * config/rs6000/power4.md: New file.
10924         * config/rs6000/rios1.md: New file.
10925         * config/rs6000/rios2.md: New file.
10926         * config/rs6000/rs64.md: New file.
10927         [Some DFA descriptions based on work by Michael Hayes]
10928
10929 2003-02-15  Richard Henderson  <rth@redhat.com>
10930
10931         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
10932         successors with multiple predecessors.
10933         (connect_traces): Try harder to copy traces of length 1.
10934
10935         * function.h (struct function): Add computed_goto_common_label,
10936         computed_goto_common_reg.
10937         * function.c (free_after_compilation): Zap them.
10938         * stmt.c (expand_computed_goto): Use them to produce one
10939         indirect branch per function.
10940
10941 2003-02-15  Richard Henderson  <rth@redhat.com>
10942
10943         * cfgcleanup.c: Include params.h.
10944         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
10945         too many outgoing edges from a block.
10946         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
10947         * params.def (max-crossjump-edges): New.
10948         * doc/invoke.texi: Document it.
10949
10950 2003-02-15  Richard Henderson  <rth@redhat.com>
10951
10952         * recog.c (split_all_insns): Include new blocks in life update;
10953         do a global life update.
10954
10955 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
10956
10957         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
10958         Update copyright.
10959         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
10960         -mno-cygwin case.
10961
10962 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10963
10964         PR optimization/7702
10965         * reload1.c (reload_cse_simplify_set): Honor
10966         CANNOT_CHANGE_MODE_CLASS.
10967
10968 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
10969
10970         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
10971         function.
10972         * config/mn10300/mn10300-protos.h: Declare it.
10973         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
10974         attribute cc of instructions that may use clr.
10975
10976 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
10977
10978         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
10979         (x - (x & y)) is found.
10980
10981 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10982
10983         * configure.in: Fix typo.
10984         * configure: Regenerate.
10985
10986 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
10987
10988         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
10989
10990 2003-02-13  Adam Nemet  <anemet@lnxw.com>
10991
10992         PR opt/2391
10993         * combine.c: Fix spelling in comment.
10994         (cached_nonzero_bits): New function.
10995         (cached_num_sign_bit_copies): New function.
10996         (nonzero_bits_with_known): New macro.
10997         (num_sign_bit_copies_with_known): New macro.
10998         (nonzero_bits1): Rename from nonzero_bits.  Add three new
10999         arguments.  Change calls from nonzero_bits to
11000         nonzero_bits_with_known.
11001         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
11002         three new arguments.  Change calls from num_sign_bit_copies to
11003         num_sign_bit_copies_with_known.
11004         (nonzero_bits): New macro.
11005         (num_sign_bit_copies): New macro.
11006         (update_table_tick): Don't traverse identical subexpression more
11007         than once.
11008         (get_last_value_validate): Likewise.
11009
11010 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
11011
11012         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
11013         * function.h (struct emit_status): Length of regno_pointer_align
11014         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
11015         not regno_pointer_align_length (i.e. length actually used, not
11016         length as allocated)
11017
11018         * config/i386/i386.c (struct stack_local_entry): New.
11019         (struct machine_function): Replace huge array with alist.
11020         (assign_386_stack_local): Change to match.
11021
11022 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
11023
11024         * inclhack.def (hpux_long_double): Tighten select and add bypass
11025         regexp.
11026         * fixincl.x: Rebuilt.
11027
11028 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
11029
11030         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
11031         edge and block ends with a jump insn it must be simple jump.
11032
11033 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
11034
11035         * Makefile.in (PREPROCESSOR_DEFINES): Add
11036         @TARGET_SYSTEM_ROOT_DEFINE@.
11037         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
11038         is specified or if building a cross compiler.
11039         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
11040         if the sysroot is under $exec_prefix.
11041         * configure: Regenerated.
11042         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
11043         defined.
11044         (struct default_include): Add add_sysroot field.
11045         (cpp_SYSROOT): Declare.
11046         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
11047         field.
11048         (cpp_SYSROOT): New variable.
11049         * cppinit.c (cpp_create_reader): Initialize
11050         CPP_OPTION (pfile, sysroot).
11051         (init_standard_includes): Handle add_sysroot.  Do not
11052         add unrelocated copies of relocated directories.
11053         (COMMAND_LINE_OPTIONS): Add -isysroot.
11054         (cpp_handle_option): Handle -isysroot.
11055         * cpplib.h (struct cpp_options): Add sysroot member.
11056         * gcc.c (The Specs Language): Update description of %I.
11057         (target_system_root_changed): New variable.
11058         (process_command): Conditionalize make_relative_prefix call
11059         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
11060         target_system_root_changed.
11061         (do_spec_1): Add -isysroot to %I.
11062         * doc/invoke.texi (Spec Files): Update description of %I.
11063         * doc/install.texi (--with-sysroot): Update comment about
11064         relocation.
11065
11066 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
11067
11068         * config/h8300/h8300.md (a peephole2): New.
11069
11070 2003-02-13  Robert Lipe <robertlipe@usa.net>
11071             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11072
11073         * doc/install.texi (Specific): Update three SCO-related URLs.
11074
11075 2003-02-13  Andreas Schwab  <schwab@suse.de>
11076
11077         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
11078         Parenthesize properly.
11079         (NPREDECESORS): Parenthesize properly.
11080
11081 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11082
11083         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
11084
11085 2003-02-12  Roger Sayle  <roger@eyesopen.com>
11086
11087         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
11088         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
11089
11090         * reg-stack.c (subst_stack_regs_pat): Add support for binary
11091         UNSPEC instructions (e.g. "fpatan").
11092
11093 2003-02-12  Mike Stump  <mrs@apple.com>
11094
11095         * varray.c (element_size): Remove.
11096         (uses_ggc): Remove.
11097         (element): Add.
11098         (varray_init): Use new interface.
11099         (varray_grow): Use new interface.
11100         (varray_clear): Use new interface.
11101
11102 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
11103
11104         * config/rs6000/spe.h: Add casts to the arguments of the following
11105         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
11106         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
11107         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
11108         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
11109         __ev_get_u16, __ev_get_s16.
11110
11111 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11112
11113         * config/h8300/h8300.md (a peephole2): New.
11114
11115 2003-02-12  Jan Hubicka  <jh@suse.cz>
11116
11117         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
11118         (OBJS): Add callgraph.o
11119         (callgraph.o): New.
11120         * c-decl.c (expand_body_1): Break out from ...
11121         (expand_body): This one;  change calling convention
11122         (finish_function): Move some of expand_body logic here.
11123         (c_expand_deferred_function): Update call of expand_body
11124         (c_expand_stmt): Use c_expand_body_1.
11125         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
11126         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
11127         * c-tree.h (c_expand_body): Declare.
11128         * callgraph.c: New file.
11129         * flags.h (flag_unit_at_a_time): Declare.
11130         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
11131         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
11132         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
11133         * langhooks.h (struct lang_hooks_for_callgraph): New.
11134         (struct lang_hooks): Add callgraph field.
11135         * toplev.c (flag_unit_at_a_time): New.
11136         (lang_independent_options): Add flag_unit_at_a_time.
11137         (process_options): Disable unit-at-a-time mode for frontends not
11138         supporting callgraph.
11139         * tree-inline.c (typedef struct inline_data): Add "decl"
11140         (expand_call_inline): Update callgraph.
11141         (optimize_inline_calls): Set id.decl.
11142         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
11143         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
11144         cgraph_calls_p): Declare.
11145         * invoke.texi (-funit-at-a-time): Document
11146
11147 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
11148
11149         * config/rs6000/spe.h: Fix misc formatting.
11150         (__ev_create_ufix32_fs): Cast ev argument.
11151         (__ev_create_sfix32_fs): Same.
11152         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
11153         (__ev_get_ufix32_fs_internal): Same.
11154
11155 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
11156
11157         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
11158         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
11159
11160 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
11161
11162         * cpplib.c (do_include_common): Move warnings for
11163         #include_next and #import out to callers.  Use early-return
11164         instead of nested ifs.  Don't do check_eol here.
11165         (parse_include): Do check_eol here with the rest of the
11166         parsing stuff.
11167         (do_include_next, do_import): Now handle warnings.
11168
11169 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11170
11171         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
11172
11173 2003-02-12  Jan Hubicka  <jh@suse.cz>
11174
11175         * predict.c (estimate_probability):  Fix roundoff error.
11176
11177 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11178
11179         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
11180         (two peephole2): New.
11181
11182 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11183
11184         * config/h8300/h8300.md (several peephole2): Replace
11185         find_regno_note with peep2_reg_dead_p.
11186
11187 2003-02-11  Richard Henderson  <rth@redhat.com>
11188
11189         * gcse.c (lookup_set): Remove unused argument PAT.  Update
11190         both callers.
11191
11192 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
11193
11194         * diagnostic.c (real_abort): New.
11195         (diagnostic_report_diagnostic): Call real_abort on error.
11196         * diagnostic.h (diagnostic_abort_on_error): New.
11197         (struct diagnostic_context): Add abort_on_error field.
11198         * toplev.c (setup_core_dumping): New.
11199         (decode_d_option): Handle 'H' case.
11200         * doc/invoke.texi (Debugging Options): Document -dH.
11201
11202 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
11203
11204         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
11205         which refers to obsolete directories.
11206
11207 2003-02-11  Richard Henderson  <rth@redhat.com>
11208
11209         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
11210
11211 2002-10-21  Jan Hubicka  <jh@suse.cz>
11212
11213         * i386.c (contains_128bit_aligned_vector_p): New function.
11214         (ix86_function_arg_boundary): Properly align vector modes.
11215
11216 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
11217
11218         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
11219         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
11220         as a SET pattern.
11221
11222 2003-02-11  Roger Sayle  <roger@eyesopen.com>
11223
11224         * builtins.c:  Fix failure caused by commiting wrong patch.
11225
11226 2003-02-11  Dale Johannesen  <dalej@apple.com>
11227         * ra-build.c (compare_and_free_webs):  Relax checking.
11228         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
11229         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
11230
11231 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11232
11233         PR optimization/9651
11234         * rtlanal.c (may_trap_p): Handle FIX.
11235
11236 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
11237
11238         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
11239         * doc/invoke.texi: Extra alias.
11240
11241 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
11242
11243         * config/rs6000/host-darwin.c: Fix comment.
11244
11245 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
11246
11247         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
11248         predicate for mod result.
11249
11250 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11251
11252         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
11253         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
11254         * fixincl.x: Rebuilt.
11255         * tests/base/stdlib.h: Update.
11256         * tests/base/ctype.h: New file.
11257
11258 2003-02-11  Jan Hubicka  <jh@suse.cz>
11259
11260         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
11261
11262 2003-02-11  Richard Henderson  <rth@redhat.com>
11263
11264         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
11265         appropriated as globals.
11266         (ix86_expand_clrstr): Similarly.
11267         * config/i386/i386.md (cmpstrsi): Similarly.
11268
11269 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11270
11271         * config/h8300/h8300.md (a peephole2): Add a case of 255.
11272
11273 2003-02-11  Roger Sayle  <roger@eyesopen.com>
11274
11275         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
11276         (pow_optab, atan2_optab): Define corresponding macros.
11277         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
11278         * genopinit.c (optabs): Implement pow_optab and atan2_optab
11279         using pow?f3 and atan2?f3 patterns.
11280         * builtins.c (expand_errno_check): New function to update errno
11281         if necessary, split out from expand_builtin_mathfn.
11282         (expand_builtin_mathfn): Use expand_errno_check.
11283         (expand_builtin_mathfn_2): New function to handle expanding binary
11284         math functions, reusing the code in expand_errno_check.
11285         (expand_builtin): Handle the pow and atan2 math built-ins,
11286         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
11287         expand_builtin_mathfn_2.
11288
11289         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
11290
11291 2003-02-11  Jan Hubicka  <jh@suse.cz>
11292
11293         * combine.c (combine_simplify_rtx): Fix folding of
11294         nested float_truncates.
11295
11296 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11297
11298         * config/h8300/h8300.md (a peephole2): Fix a typo.
11299
11300 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
11301
11302         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
11303         register number.
11304
11305 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11306
11307         * config/h8300/h8300-protos.h: Add a prototype for
11308         gtuleu_operator.
11309         * config/h8300/h8300.c (gtuleu_operator): New.
11310         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
11311         * config/h8300/h8300.md (a peephole2): New.
11312
11313 2003-02-11  Jan Hubicka  <jh@suse.cz>
11314
11315         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
11316
11317 2003-02-11  Jan Hubicka  <jh@suse.cz>
11318
11319         * predict.c (choose_function_section): Choose sections correctly.
11320
11321 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11322
11323         * reload1.c (first_label_num): New.
11324         (reload): Index offsets_known_at and offsets_at using difference of
11325         label number and first label number.  Don't use offset pointers.
11326         (set_label_offsets, set_initial_label_offsets): Likewise.
11327
11328 2003-02-10  Roger Sayle  <roger@eyesopen.com>
11329
11330         * mips-tfile.c (init_file): Add missing initializers in the
11331         "#ifdef __alpha" case.
11332         (file_offset, max_file_offset): Declare as unsigned long.
11333         (write_varray): Cast to "unsigned long" in comparisons against
11334         either file_offset or max_file_offset.
11335         (write_object): Likewise.
11336         (read_seek): Likewise.
11337         (copy_object): Likewise. Declare "ifd" as int to match its use
11338         in add_ext_symbol, and avoid signed/unsigned conditional warning.
11339
11340 2003-02-10  Nick Clifton  <nickc@redhat.com>
11341             Aldy Hernandez  <aldyh@redhat.com>
11342
11343         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
11344         override options which have been specified on the command line.
11345
11346 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
11347
11348         * config/h8300/h8300.md (abssf2): New.
11349         (*abssf2_h8300): Likewise.
11350         (*abssf2_h8300hs): Likewise.
11351
11352 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
11353
11354         * tree.c (build_tree_list):  Fix parameter names in comment.
11355
11356 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
11357
11358         * config/rs6000/ppc64-fp.c: New file.
11359         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
11360
11361 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
11362
11363         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
11364         * bb-reorder.c (make_reorder_chain): Deleted.
11365         (make_reorder_chain_1): Deleted.
11366         (find_traces): New function.
11367         (rotate_loop): New function.
11368         (mark_bb_visited): New function.
11369         (find_traces_1_round): New function.
11370         (copy_bb): New function.
11371         (bb_to_key): New function.
11372         (better_edge_p): New function.
11373         (connect_traces): New function.
11374         (copy_bb_p): New function.
11375         (get_uncond_jump_length): New function.
11376         (reorder_basic_blocks): Use new functions (Software Trace Cache).
11377         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
11378         boundaries.
11379
11380 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
11381
11382         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
11383
11384 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
11385
11386         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
11387         (DECL_LIVE_RANGE_RTL): Remove.
11388
11389 2003-02-10  Nick Clifton  <nickc@redhat.com>
11390
11391         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
11392         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
11393         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
11394         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
11395         config/arm/freebsd.h, config/arm/linux-elf.h,
11396         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
11397         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
11398         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
11399         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
11400         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
11401         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
11402         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
11403         and reformat as appropriate.
11404
11405 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
11406
11407         * config/h8300/clzsi2.c: Remove.
11408         * config/h8300/ctzsi2.c: Likewise.
11409         * config/h8300/paritysi2.c: Likewise.
11410         * config/h8300/popcountsi2.c: Likewise.
11411         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
11412         ctzsi2, paritysi2, and popcountsi2.
11413
11414 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
11415             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
11416
11417         PR c/7741
11418         * c-decl.c (duplicate_decls): Discard the initializer of the
11419         new decl when the types are conflicting.
11420
11421 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
11422
11423         * Makefile.in (sreal.o): Added.
11424         (predict.o): Depends on sreal.h instead of real.h.
11425         * sreal.c: New file.
11426         * sreal.h: New file.
11427         * predict.c: Use sreal.c instead of real.c.
11428
11429 2003-02-10  Nick Clifton  <nickc@redhat.com>
11430
11431         * Contributed support for the Cirrus EP9312 "Maverick"
11432         floating point co-processor.  Written by Aldy Hernandez
11433         <aldyh@redhat.com>.
11434         (config/arm/arm.c): Add Cirrus support.
11435         (config/arm/arm.h): Likewise.
11436         (config/arm/aout.h): Likewise.
11437         (config/arm/arm.md): Likewise.
11438         (config/arm/arm-protos.h): Likewise.
11439         (config.gcc): Likewise.
11440         (doc/invoke.texi): Describe new -mcpu value and new
11441         -mcirrus-fix-invalid-insns switch,
11442         (cirrus.md): New file.
11443
11444 2003-02-10  Jan Hubicka  <jh@suse.cz>
11445
11446         * combine.c (combine_simplify_rtx): Simplify using
11447         (float_truncate (float x)) is (float x)
11448         (float_extend (float_extend x)) is (float_extend x).
11449
11450 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
11451
11452         * calls.c (try_to_integrate): Tidy stack_usage_map access.
11453         (emit_library_call_value_1): Likewise.  Formatting.
11454         (store_one_arg): Likewise.
11455
11456 2003-02-09  Nick Clifton  <nickc@redhat.com>
11457             Aldy Hernandez  <aldyh@redhat.com>
11458
11459         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
11460         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
11461         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
11462         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
11463         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
11464         docs.  Add range test for immediate value.
11465
11466 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
11467
11468         Rename spe_evxor to xorv2si3.
11469         (xorv4hi3): New.
11470         (xorv1di3): New.
11471
11472 2003-02-10  Glen Nakamura  <glen@imodulo.com>
11473
11474         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
11475         tag.
11476
11477 2003-02-10  Jan Hubicka  <jh@suse.cz>
11478
11479         * i386.c (vector_move_operand): New predicate.
11480         (ix86_expand_vector_move): Be happy about 0.
11481         * i386.h (PREDICATE_CODES): Add sse-move_operand.
11482         * i386.md (mov*_internal): Add 'C' alternative.
11483
11484 2003-02-09  Jan Hubicka  <jh@suse.cz>
11485
11486         * i386.md (floathi*): Deal with SSE.
11487
11488 2003-02-09  Jan Hubicka  <jh@suse.cz>
11489
11490         * simplify-rtx.c (simplify_unary_operation,
11491         simplify_binary_operation):  Deal with vector modes
11492         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
11493
11494 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
11495
11496         * toplev.c (rest_of_compilation): Recompute register usage after
11497         split_all_insns.
11498
11499 2003-02-09  Richard Henderson  <rth@redhat.com>
11500
11501         * libgcc-std.ver (__clztf2): New.
11502         (__ctztf2, __popcounttf2, __paritytf2): New.
11503         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
11504         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
11505         adjust code to match the different type sizes.
11506         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
11507         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
11508
11509         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
11510         TImode; select word_mode and twice that.
11511         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
11512         select the modes from float, double, and long double.
11513         (init_optabs): Remove duplicate initializations.
11514
11515 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
11516
11517         * doc/install.texi: Squeeze and streamline section on
11518         testing and regression checking.
11519
11520 2003-02-09  Jan Hubicka  <jh@suse.cz>
11521
11522         * i386.md (ahi?v*3): Set third operand type to TImode.
11523         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
11524
11525         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
11526         integer mode.
11527
11528         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
11529         Change code so they are arithmetic expressions now.
11530         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
11531         simplify_ternary_operation): Deal with VEC_* expressions.
11532
11533         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
11534
11535 2003-02-08  Jan Hubicka  <jh@suse.cz>
11536
11537         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
11538         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
11539         possibly got duplicated.
11540
11541 2003-02-08  Richard Henderson  <rth@redhat.com>
11542
11543         * config/alpha/alpha.c (override_options): Turn off explicit
11544         relocs until post-peep2 code duplication resolved.
11545
11546 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11547
11548         * optabs.c (expand_unop): Widen clz properly when clz is done
11549         via libcall.
11550
11551 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11552
11553         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
11554         * config/h8300/crti.asm: Likewise.
11555         * config/h8300/crtn.asm: Likewise.
11556         * config/h8300/ctzsi2.c: Likewise.
11557         * config/h8300/fixunssfsi.c: Likewise.
11558         * config/h8300/h8300-protos.h: Likewise.
11559         * config/h8300/h8300.c: Likewise.
11560         * config/h8300/h8300.h: Likewise.
11561         * config/h8300/h8300.md: Likewise.
11562         * config/h8300/paritysi2.c: Likewise.
11563         * config/h8300/popcountsi2.c: Likewise.
11564         * config/h8300/rtems.h: Likewise.
11565
11566 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11567
11568         * doc/invoke.texi: Documentation for my previous commit.
11569         * doc/passes.texi: Ditto.
11570
11571 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11572
11573         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
11574         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
11575         Declare.
11576         (DLTHE_FLAG_UPDATE_FREQ): New.
11577         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
11578         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
11579         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
11580         fix_bb_placement, fix_bb_placements, place_new_loop,
11581         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
11582         New static functions.
11583         (fix_loop_placement, can_duplicate_loop_p,
11584         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
11585         New functions.
11586
11587         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
11588         unswitch_loops): Declare.
11589         * loop-init.c: New file.
11590         * loop-unswitch.c: New file.
11591         * Makefile.in (loop-init.o, loop-unswitch.o): New.
11592         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
11593         * toplev.c (DFI_loop2): New dump.
11594         (flag_unswitch_loops): New.
11595         (lang_independent_options): Add it.
11596         (rest_of_compilation): Call new loop optimizer.
11597         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
11598
11599 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11600
11601         * config/h8300/clzsi2.c: New.
11602         * config/h8300/ctzsi2.c: Likewise.
11603         * config/h8300/paritysi2.c: Likewise.
11604         * config/h8300/popcountsi2.c: Likewise.
11605         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
11606
11607 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
11608
11609         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11610         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
11611         (ctzsi2): New pattern.
11612         (ffssi2): Use clz instead of unspec.
11613         (clzdi2): Rename from cntlzd2.
11614         (ctzdi2): New pattern.
11615         (ffsdi2): Use clz instead of unspec.
11616
11617 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
11618
11619         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
11620         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
11621         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11622         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
11623
11624 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
11625
11626         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
11627
11628 2003-02-07  Richard Henderson  <rth@redhat.com>
11629
11630         PR 9226
11631         * gcse.c (local_cprop_find_used_regs): New.
11632         (local_cprop_pass): Use it.
11633
11634 2003-02-07  Fred Fish  <fnf@intrinsity.com>
11635
11636         * mips-tfile.c (parse_def): Parenthesize assignments to fix
11637         precedence bugs.
11638
11639 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
11640
11641         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
11642
11643 2003-02-07  Roger Sayle  <roger@eyesopen.com>
11644
11645         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
11646         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
11647         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
11648         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
11649         builtin functions (and their __builtin_* variants).
11650         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
11651         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
11652         when not optimizing.
11653
11654         * doc/extend.texi: Document new pow and atan2 builtins, and
11655         their float and long double variants.  Realphabetize builtins.
11656
11657 2003-02-07  Jan Hubicka  <jh@suse.cz>
11658
11659         * i386.md (sse2_nandv2di3): Fix.
11660
11661 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
11662
11663         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
11664         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
11665         definition.
11666         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
11667         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
11668
11669 2003-02-07  Jan Hubicka  <jh@suse.cz>
11670
11671         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
11672
11673 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
11674
11675         * cfg.c (dump_flow_info): Add back accidently deleted line.
11676
11677 2003-02-07  Andrey Petrov <petrov@netbsd.org>
11678
11679         * optabs.c (expand_float): Search wider integer modes first.
11680
11681 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
11682
11683         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
11684         based on preprocessor flag.
11685
11686 2003-02-07  Roger Sayle  <roger@eyesopen.com>
11687             Richard Henderson  <rth@redhat.com>
11688
11689         * gcse.c (implicit_sets): New.
11690         (compute_hash_table_work): Include them in hash table.
11691         (find_implicit_sets, fis_get_condition): New.
11692         (one_cprop_pass): Allocate and free implicit_sets; call
11693         find_implicit_sets before building hash table.
11694
11695 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
11696
11697         * config/t-netbsd (USER_H): Revert previous change.
11698
11699 2003-02-07  Gabor Greif  <ggreif@lucent.com>
11700
11701         * doc/c-tree.texi (Namespaces): Fix typo.
11702
11703 2003-02-07  Jan Hubicka  <jh@suse.cz>
11704
11705         * regrename.c (do_replace, find_oldest_value_reg,
11706         copyprop_hardreg_forward_1): Update register attributes.
11707
11708 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
11709
11710         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
11711         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
11712         variables starting with underscore.
11713         (struct unit_usage): New structure.
11714         (unit_usages, cycle_alt_unit_usages): New global variables.
11715         (check_unit_distribution_in_reserv): Remove it.
11716         (store_alt_unit_usage): New function.
11717         (check_regexp_units_distribution): Rewrite it.
11718
11719 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11720
11721         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
11722         target_cpu_default.
11723         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
11724         if not MASK_NO_SPACE_REGS.
11725         (output_call): Adjust return pointer, don't load new space register
11726         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
11727         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
11728         TARGET_NO_SPACE_REGS is true.
11729         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
11730         conditions.
11731         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
11732         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
11733         true.  Use bve when TARGET_64BIT is true.
11734
11735 2003-02-06  Richard Henderson  <rth@redhat.com>
11736
11737         * combine.c (nonzero_bits): Fix double break.
11738
11739 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
11740             Richard Henderson <rth@redhat.com>
11741
11742         PR c/9530
11743         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
11744         from functions that return a float to functions that don't.
11745
11746 2003-02-06  Jan Hubicka  <jh@suse.cz>
11747
11748         * i386.c (x86_inter_unit_moves): New variable.
11749         (ix86_secondary_memory_needed): Fix 64bit case, honor
11750         TARGET_INTER_UNIT_MOVES
11751         * i386.h (x86_inter_unit_moves): Declare.
11752         (TARGET_INTER_UNIT_MOVES): New macro.
11753         * i386.md (movsi_1): Cleanup constraints; disable
11754         when not doing inter-unit moves.
11755         (movsi_1_nointernunit): New.
11756         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
11757         (movdi_1_rex64_nointerunit): New.
11758         (mivsf_1): disable when not doing inter-unit moves.
11759         (movsf_1_nointerunit): New.
11760
11761         * basic-block.h (inside_basic_block_p):  Declare.
11762         * cfgbuild.c (inside_basic_block_p): Make global.
11763         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
11764         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
11765         update CFG.
11766         (fix_basic_block_boundaries, add_missing_bbs): New.
11767         (rank): Use profile.
11768         (scheudle_ebbs): Rely on CFG; update coments.
11769
11770 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
11771
11772         * Makefile.in (host_hook_obj): New.
11773         (OBJS): Add $(host_hook_obj).
11774         (host_default.o): New rule.
11775         * config.gcc (host_hook_obj): New, default to host-default.o.
11776         (powerpc-*-darwin*): Use host-darwin.o.
11777         (out_host_hook_obj): New.
11778         * configure: Regenerate.
11779         * configure.in: Print information about out_host_hook_obj, substitute
11780         into output files.
11781         * host-default.c: New file.
11782         * hosthooks.h: New file.
11783         * toplev.c (general_init): Call host_hooks.extra_signals.
11784         * config/rs6000/host-darwin.c: New file.
11785         * config/rs6000/x-darwin: New file.
11786         * doc/hostconfig.texi: Add documentation for new host hook.
11787         Rearrange existing documentation.
11788
11789 2003-02-05  Roger Sayle  <roger@eyesopen.com>
11790
11791         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
11792         with *targetm.delegitimize_address.
11793         (rtl_for_decl_location): Likewise.
11794         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
11795         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
11796
11797         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
11798         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
11799         prototype.
11800         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
11801         i386_simplify_dwarf_addr.  Made static.  Prototyped.
11802         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
11803         i386_simplify_dwarf_addr to ix86_delegitimize_address.
11804         (ix86_find_base_term): Likewise.
11805         (maybe_get_pool_constant): Likewise.
11806
11807         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
11808         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
11809         prototype.
11810         * config/s390/s390.c (s390_delegitimize_address): Renamed from
11811         s390_simplify_dwarf_addr.  Made static.  Prototyped.
11812         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
11813
11814 2003-02-05  Richard Henderson  <rth@redhat.com>
11815
11816         PR c/8602
11817         * integrate.c (output_inline_function): Reset input_filename
11818         and lineno from the decl before rest_of_compilation.
11819
11820 2003-02-05  Richard Henderson  <rth@redhat.com>
11821
11822         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11823         (CTZ_DEFINED_VALUE_AT_ZERO): New.
11824         * doc/rtl.texi, doc/tm.texi: Document them.
11825
11826         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
11827         of the value at zero properly.
11828         * fold-const.c (tree_expr_nonnegative_p): Likewise.
11829         * simplify-rtx.c (simplify_unary_operation): Likewise.
11830
11831         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11832         (CTZ_DEFINED_VALUE_AT_ZERO): New.
11833
11834         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
11835         (TARGET_EXPAND_BUILTIN): Remove.
11836         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
11837         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11838         (enum arm_builtins): Remove.
11839         * config/arm/arm.md (UNSPEC_CLZ): Remove.
11840         (clzsi2): Rename from clz; use clz instead of unspec.
11841         (ctzsi2): New.
11842         * config/arm/arm-protos.h: Update.
11843
11844 2003-02-05  Jan Hubicka  <jh@suse.cz>
11845
11846         * i386-protos.h (x86_emit_floatuns):  Declare.
11847         * i386.c (x86_emit_floatuns): New global function.
11848         * i386.md (floatunssisf2, floatunsdisf2,
11849         floatunsdidf2):  New patterns.
11850
11851 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11852
11853         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
11854
11855 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
11856
11857         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
11858           config/ia64/linux.h
11859
11860 2003-02-05  Roger Sayle  <roger@eyesopen.com>
11861
11862         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
11863
11864 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
11865
11866         PR optimization/8555
11867         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
11868         instead of aborting.
11869
11870 2003-02-04  Richard Henderson  <rth@redhat.com>
11871
11872         * config/i386/i386.md (UNSPEC_BSF): Remove.
11873         (ffssi2): Split into cmove and no_cmove insns and splitters;
11874         lose pentium float trick for now.
11875         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
11876         (ctzsi2, clzsi2, bsr): New.
11877
11878 2003-02-04  Richard Henderson  <rth@redhat.com>
11879
11880         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
11881         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
11882         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
11883         (ffsdi2): Use popcount instead of unspec.
11884         (popcountdi2): Rename from *popcnt.
11885         (ctzdi2, clzdi2, getf_exp_tf): New.
11886
11887 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11888
11889         * genconfig.c (main): Generate CC0_P.
11890         * rtl.h (CC0_P): Remove.
11891
11892 2003-02-04  Richard Henderson  <rth@redhat.com>
11893
11894         * libgcc2.h, libgcc2.c (__ffsSI2): New.
11895         (__ffsDI2): Rename from __ffsdi2.
11896         * mklibgcc.in (lib2funcs): Add _ffssi2.
11897
11898 2003-02-04  Richard Henderson  <rth@redhat.com>
11899
11900         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
11901         rounds with a "bit table" lookup.
11902
11903 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11904
11905         * reload.c (find_reloads): Do not use the mode specified in the insn
11906         pattern as reload mode for address operands.  Do not generate optional
11907         reloads for operands where a mandatory reload was already pushed.
11908
11909 2003-02-04  Richard Henderson  <rth@redhat.com>
11910
11911         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
11912         builtins instead of inline assembly.
11913
11914 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11915
11916         PR c/9376
11917         * libgcc2.c (__subvdi3): Fix typo.
11918
11919 2003-02-04  Jan Hubicka  <jh@suse.cz>
11920
11921         * i386.md (movti_rex64):  Fix constraint.
11922
11923 2003-02-04  Jan Hubicka  <jh@suse.cz>
11924
11925         * i386.md (vector push splitters):  Fix typo in resolving conflict.
11926
11927 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
11928
11929         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
11930
11931 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
11932
11933         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
11934         for recent libstdc++.  Remove formatting cruft.
11935
11936 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
11937
11938         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
11939         attribute even if input file name is absolute, but one of the
11940         includes is relative.
11941
11942 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
11943
11944         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
11945         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
11946         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
11947
11948 2003-02-03  Richard Henderson  <rth@redhat.com>
11949
11950         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
11951         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
11952         return type to "int".  Shuffle declarations and undef int trap.
11953         * libgcc2.h: Remove their declarations.
11954         * optabs.c (expand_unop): Force outmode to int for bitops.
11955
11956 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
11957
11958         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
11959         coprocessor registers before floating-point registers.
11960         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
11961         to account for a previously removed register.
11962         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
11963         Delete unused macros.
11964
11965 2003-02-03  Jan Hubicka  <jh@suse.cz>
11966
11967         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
11968         (mov*_internal): Fix predicates; require one of operands to not be
11969         memory.
11970         (SSE?MMX move expanders):  Fix predicates; force one of operands to
11971         register.
11972         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
11973         (movups/movupd/movdqu patterns): Force one of operands to not be
11974         memory.
11975
11976 2003-02-03  Roger Sayle  <roger@eyesopen.com>
11977
11978         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
11979         takes a single rtx and returns it unmodified.
11980         * hooks.h (hook_rtx_rtx_identity): Prototype here.
11981         * target.h (struct gcc_target): Add "delegitimize_address"
11982         field to target structure.
11983         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
11984         for delegitimize_address target using hook_rtx_rtx_identity.
11985         (TARGET_INITIALIZER): Initialize delegitimize_address field
11986         using TARGET_DELEGITIMIZE_ADDRESS macro.
11987         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
11988         extensions of constant pool references.  Use delegitimize_address
11989         to undo the obfuscation of "-fpic".
11990         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
11991
11992         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
11993         i386_simplify_dwarf_addr.
11994         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
11995         (maybe_get_pool_constant): Likewise.
11996
11997 2003-02-03  Jan Hubicka  <jh@suse.cz>
11998
11999         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
12000
12001 2003-02-03  Jan Hubicka  <jh@suse.cz>
12002
12003         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
12004
12005 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12006
12007         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
12008         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
12009
12010 2003-02-02  Andreas Schwab  <schwab@suse.de>
12011
12012         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
12013
12014 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
12015
12016         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
12017         (epilogue_insns): Likewise.
12018
12019 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12020
12021         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
12022
12023 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12024
12025         * pa-protos.h (attr_length_millicode_call): Remove second argument.
12026         (attr_length_indirect_call, attr_length_indirect_call,
12027         attr_length_save_restore_dltp): New prototypes.
12028         * pa.c (attr_length_millicode_call): Remove second argument.  Check
12029         INSN_ADDRESSES_SET_P in distance calculation.
12030         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
12031         INSN_ADDRESSES.
12032         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
12033         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
12034         Call attr_length_call directly.
12035         (attr_length_indirect_call, output_indirect_call,
12036         attr_length_save_restore_dltp): New functions.
12037         * pa.md (attr_length_millicode_call): Drop second argument from all
12038         patterns.
12039         (return_internal_pic): Delete.
12040         (return_external_pic): Remove use of PIC register and pic operand and
12041         flag checks.
12042         (epilogue): Use return_internal for both normal and pic code.
12043         (call, call_value): Emit new 32-bit pic patterns for symref and
12044         indirect calls.  Remove uses for arg pointer and pic register.
12045         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
12046         call_reg_pic_post_reload, call_val_symref_pic,
12047         call_val_symref_pic_post_reload, call_val_reg_pic,
12048         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
12049         Implement define_split and define_peephole2 patterns for pre reload
12050         patterns.
12051         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
12052         call_value_internal_reg_64bit): Shorten names.
12053         (all call patterns): Explicitly indicate registers used and clobbered.
12054         Use attr_length_indirect_call and attr_length_save_restore_dltp for
12055         attribute length calculation.  Move code generation for indirect calls
12056         to output_indirect_call.
12057         (sibcall, sibcall_value): Don't restore PIC register.
12058         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
12059         register retore.
12060
12061 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12062
12063         * doc/install.texi (Testing): Simplify and compress instructions
12064         concerning Dejagnu.
12065
12066 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12067
12068         * collect2.c (pexecute_pid): Rename to pid.
12069         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
12070         pid.
12071
12072 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
12073
12074         * doc/extend.texi (Function Attributes): Remove documentation
12075         for PowerPC Windows NT function attributes..
12076
12077 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
12078
12079         * dwarf2out.c (gen_type_die): Check for typedefs before calling
12080         for TYPE_MAIN_VARIANT.
12081
12082 2003-02-01  Richard Henderson  <rth@redhat.com>
12083
12084         * libgcc2.c: Include auto-host.h.
12085         (ATTRIBUTE_HIDDEN): New.
12086         (__clz_tab): Don't declare here for clz and ctz.
12087         (__clzsi2, __clzdi2): Use count_leading_zeros.
12088         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
12089         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
12090         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
12091         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
12092
12093 2003-02-01  Richard Henderson  <rth@redhat.com>
12094
12095         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
12096         to the conditional.
12097         (ashlsi3_1_zext splitter): Likewise.
12098
12099 2003-02-01  Richard Henderson  <rth@redhat.com>
12100
12101         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
12102         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
12103         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
12104         return type to Wtype.
12105
12106         * libgcc-std.ver (GCC_3.4): Fix inheritance.
12107
12108         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
12109         expander input constraint.
12110
12111 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
12112
12113         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
12114         OTI_parity.
12115         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
12116         * optabs.c (widen_clz, expand_parity): New.
12117         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
12118         for libcalls to clz, ctz, popcount, and parity.
12119         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
12120         parity_optab, and set up libfunc handlers.
12121         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
12122         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
12123         __popcount_tab): New.
12124         * libgcc2.h: Declare them.
12125         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
12126         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
12127         and parity_optab.
12128         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
12129         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
12130         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
12131         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
12132         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
12133         BUILT_IN_PARITYLL): New.
12134         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
12135         and add optab argument.
12136         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
12137         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
12138         * expr.c (expand_expr): Handle them.
12139         * fold-const.c (tree_expr_nonnegative_p): Likewise.
12140         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
12141         * reload1.c (eliminate_regs): Handle them.
12142         (elimination_effects): Likewise.
12143         * function.c (instantiate_virtual_regs_1): Likewise
12144         * genattrtab.c (check_attr_value): Likewise.
12145         * simplify-rtx.c (simplify_unary_operation): Likewise.
12146         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
12147         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
12148         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
12149         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
12150         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
12151         __builtin_arm_clz.
12152         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
12153         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
12154         * doc/extend.texi (Other Builtins): Add new builtins.
12155         * doc/md.texi (Standard Names): Add new patterns.
12156
12157 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
12158
12159         * reload.c: Revert 2003-01-31 change.
12160
12161 2003-02-01  Jan Hubicka  <jh@suse.cz>
12162
12163         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
12164
12165 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
12166
12167         * flags.h (flag_volatile): Remove declaration.
12168         (flag_volatile_global, flag_volatile_static): Likewise.
12169         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
12170         * toplev.c (flag_volatile): Remove definition.
12171         (flag_volatile_global, flag_volatile_static): Likewise.
12172         (f_options): Remove corresponding entries here.
12173         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
12174         or flag_volatile_static.
12175         * doc/invoke.texi: Remove documentation of -fvolatile,
12176         -fvolatile-global and -fvolatile-static.
12177
12178 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12179
12180         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
12181         updating of total_code_bytes from prologue to epilogue.
12182
12183 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
12184
12185         * reload.c (find_reloads): Do not use the mode specified in the insn
12186         pattern as reload mode for address operands.  Do not generate optional
12187         reloads for operands where a mandatory reload was already pushed.
12188         Generate optional reloads only in the final pass though find_reloads.
12189         (have_replacement_p): New function.
12190
12191 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12192
12193         * doc/install.texi (Testing): Remove a reference to our obsolete
12194         /testresults web pages and strip redundant information concerning
12195         test results.
12196         (Binaries): Refer to Microsoft Windows instead of listing all
12197         possible variants.
12198
12199 2003-02-01  Jan Hubicka  <jh@suse.cz>
12200
12201         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
12202         RTL chain.
12203
12204         * combine.c (simplify_set): Reverse order of ragumetns to
12205         REG_CANNOT_CHANGE_MODE_P
12206         * df.c (df_def_record_1): Likewise.
12207         * recog.c (register_operand): Likewise.
12208         * simplify-rtx.c (simplify_subreg): Likewise.
12209         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
12210         CANNOT_CHANGE_MODE_CLASS.
12211         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
12212         Likewise.
12213         * reload.c (push_reload): Likewise.
12214         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12215         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12216         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12217         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
12218         * mips.c (mips_cannot_change_mode_class): Update.
12219         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12220         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12221         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12222         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12223         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
12224         * sh.c (sh_cannot_change_mode_class): Update.
12225         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
12226         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
12227
12228 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
12229
12230         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
12231         change to LINK_COMMAND_SPEC in gcc.c.
12232
12233 2003-01-31  Jan Hubicka  <jh@suse.cz>
12234
12235         PR c/9506
12236         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
12237
12238 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12239
12240         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
12241         duplicated code.
12242
12243 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
12244
12245         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
12246         (BINFO_ELTS): New #define.
12247         * stor-layout.c (finalize_record_size): Don't set them.
12248         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
12249         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
12250         (BINFO_LANG_ELTS): New #define.
12251         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
12252         * java/class.c (make_class): Use BINFO_ELTS.
12253         (set_super_info): Likewse.
12254         (add_interface_do): Likewise.
12255         * objc/objc-act.c (start_class): Use BINFO_ELTS.
12256
12257 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
12258
12259         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
12260         (times): Don't ever declare if not HAVE_TIMES.
12261         (clock): Don't ever declare if not HAVE_CLOCK.
12262
12263 2003-01-30  Richard Henderson  <rth@redhat.com>
12264
12265         * flow.c (update_life_info): Zap life info after cleanup_cfg.
12266         (regno_uninitialized): Use correct live at function entry set.
12267         (regno_clobbered_at_setjmp): Likewise.
12268
12269         * expr.c (store_expr): Promote all MEM intermediates to regs.
12270
12271 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12272
12273         * config/arm/arm.c: Fix comment typos.
12274         * config/arm/arm.h: Likewise.
12275         * config/arm/netbsd-elf.h: Likewise.
12276         * config/arm/netbsd.h: Likewise.
12277
12278 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
12279
12280         * gengtype.c (struct walk_type_data): Add needs_cast_p.
12281         (walk_type): Set needs_cast_p in walk_type_data.
12282         (write_types_process_field): Supply casts when required to suppress
12283         warnings.
12284         (write_root): Cast gt_pch_n_S to suppress warning.
12285         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
12286         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
12287         when they might exist.
12288         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
12289         insn-conditions.o, and rs6000.o.
12290
12291 2003-01-30  Richard Henderson  <rth@redhat.com>
12292
12293         * ggc-page.c (G.context_depth_allocations): New.
12294         (G.context_depth_collections): New.
12295         (alloc_page): Set G.context_depth_allocations.
12296         (ggc_collect): Set G.context_depth_collections.
12297         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
12298         (ggc_pop_context): Early exit for no allocations or collections.
12299
12300 2003-01-30  Richard Henderson  <rth@redhat.com>
12301
12302         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
12303
12304 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
12305
12306         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
12307         size, the link register is always saved if any other register is
12308         saved.
12309
12310 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12311
12312         * config/h8300/h8300-protos.h: Update the prototype for
12313         compute_plussi_cc.
12314         (cpp_reader): Declare before it is used.
12315         * config/h8300/h8300.c (compute_plussi_cc): Change the return
12316         type to int.
12317         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
12318         see an unknown H8 variant.
12319
12320 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
12321
12322         PR target/9316
12323         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
12324         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
12325         * config/rs6000/t-rtems: New file. multilib variants to match OS.
12326         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
12327         rs6000/t-ppcgas so we get the desired multilibs.
12328
12329 2003-01-30  Nick Clifton  <nickc@redhat.com>
12330
12331         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
12332         when popping saved IP register off the stack.
12333
12334 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12335
12336         * config/rs6000/aix43.h: Fix comment typos.
12337         * config/rs6000/aix51.h: Likewise.
12338         * config/rs6000/aix52.h: Likewise.
12339         * config/rs6000/altivec.h: Likewise.
12340         * config/rs6000/rs6000.c: Likewise.
12341         * config/rs6000/rs6000.h: Likewise.
12342         * config/rs6000/rs6000.md: Likewise.
12343         * config/rs6000/spe.md: Likewise.
12344
12345 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
12346
12347         * c-common.c (builtin_define_float_constants): Define
12348         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
12349
12350 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12351
12352         * config/sh/lib1funcs.asm: Fix comment typos.
12353         * config/sh/linux.h: Likewise.
12354         * config/sh/sh.c: Likewise.
12355         * config/sh/sh.md: Likewise.
12356
12357 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
12358
12359         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
12360
12361 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
12362
12363         * config/fp-bit.h (__make_dp): Declare if TMODES.
12364
12365 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
12366
12367         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
12368         general_operand_src and general_operand_dst.
12369
12370 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
12371
12372         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
12373         Return true for variable sized types.
12374         (rs6000_va_arg): Handle variable sized types passed by reference
12375         on non-SVR4 ABI.
12376
12377 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
12378
12379         * arm.c (arm_legtimize_address): New function.
12380         * arm-protos.h (arm_legtimize_address): Add prototype.
12381         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
12382         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
12383         do ... while (0)
12384
12385 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12386
12387         PR bootstrap/9296
12388         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
12389         depended on it being defined until now.
12390
12391 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12392
12393         PR target/9295
12394         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
12395         RTEMS code knows which C++ initialization style the toolset
12396         configuration is using.
12397
12398 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12399
12400         PR bootstrap/9293
12401         * config/m68k/t-crtstuff: Replace spaces with tabs, add
12402          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
12403
12404 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12405
12406         PR bootstrap/9292
12407         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
12408         RTEMS threads.
12409         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
12410
12411 2003-01-29  Nick Clifton  <nickc@redhat.com>
12412
12413         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
12414         not $(srcdir).
12415
12416 2003-01-29  Andrew Haley  <aph@redhat.com>
12417
12418         * tree-inline.c (walk_tree): Add CHAR_TYPE.
12419
12420 2003-01-29  Jan Hubicka  <jh@suse.cz>
12421
12422         * i386.md (subdi3_carry_rex64): Fix typo.
12423
12424 2003-01-28  Stan Shebs  <shebs@apple.com>
12425
12426         * coretypes.h (cpp_reader): Forward declare struct.
12427         * c-pragma.h (cpp_reader): Remove forward declaration.
12428         * hashtable.h (cpp_reader): Likewise.
12429         * scan.h (cpp_reader): Likewise.
12430         * tree.h (cpp_reader): Likewise.
12431         * config/darwin-protos.h (cpp_reader): Likewise.
12432         * config/arm/arm-protos.h (cpp_reader): Likewise.
12433         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
12434         struct cpp_reader in prototypes.
12435
12436 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
12437
12438         * doc/install.texi: Add documentation for installation into
12439         tooldirs and with DESTDIR.
12440
12441 2003-01-28  Richard Henderson  <rth@redhat.com>
12442
12443         * config.gcc (ia64*-*-aix*): Remove.
12444         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
12445         * config/ia64/unwind-aix.c: Remove file.
12446
12447 2003-01-28  Andreas Schwab  <schwab@suse.de>
12448
12449         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
12450         register.
12451         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
12452         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
12453         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
12454         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
12455         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
12456         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
12457         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
12458
12459 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
12460
12461         * combine.c (nonzero_bits): Fix check for negative divide operands.
12462
12463 2003-01-28  Richard Henderson  <rth@redhat.com>
12464
12465         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
12466         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
12467
12468 2003-01-28  Richard Henderson  <rth@redhat.com>
12469
12470         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
12471
12472         * config/cris/cris.c (cris_address_cost): Make static.
12473         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
12474         * config/cris/cris.h (ADDRESS_COST): Remove.
12475         * config/cris/cris-protos.h: Update.
12476
12477 2003-01-23  Mike Stump  <mrs@apple.com>
12478
12479         * regclass.c (init_reg_autoinc): New function.
12480         (regclass): Move initialization of forbidden_inc_dec_class from
12481         here...
12482         (init_regs): to here.  Avoids reinitialization for each function,
12483         saving compilation time.
12484
12485 2003-01-28  Jason Merrill  <jason@redhat.com>
12486
12487         * cpplib.h (struct cpp_options): Add warn_deprecated field.
12488         * cppinit.c (cpp_create_reader): Turn it on by default.
12489         * c-opts.c (c_common_decode_option): Set it.
12490         * cpplib.c (do_pragma_once): Only complain about #pragma once
12491         if warn_deprecated is set.
12492
12493 2003-01-28  Dale Johannesen  <dalej@apple.com>
12494
12495         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
12496         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
12497         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
12498
12499 2003-01-28  Richard Henderson  <rth@redhat.com>
12500
12501         * target.h (targetm.address_cost): New.
12502         * target-def.h (TARGET_ADDRESS_COST): New.
12503         (TARGET_RTX_COSTS): Uncomment.  Oops.
12504         * cse.c (address_cost): Use new target hook.
12505         (default_address_cost): New.
12506         * output.h (default_address_cost): Declare.
12507         * hooks.c (hook_int_rtx_0): New.
12508         * hooks.h (hook_int_rtx_0): Declare.
12509         * loop.c (combine_givs_p): Remove if 0 code.
12510         * system.h (ADDRESS_COST): Poison.
12511
12512         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
12513         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
12514         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
12515         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
12516         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
12517         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
12518         config/xtensa/xtensa.c, config/xtensa/xtensa.h
12519         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
12520         (ADDRESS_COST): Remove.
12521
12522         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
12523         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12524         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12525         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
12526         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
12527         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
12528         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
12529         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
12530         config/mips/mips.c, config/mips/mips.h,
12531         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12532         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
12533         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
12534         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
12535         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
12536         config/vax/vax.c, config/vax/vax.h
12537         (foo_address_cost): Make static.
12538         (TARGET_ADDRESS_COST): New.
12539         (ADDRESS_COST): Remove.
12540
12541         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
12542         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
12543         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
12544         config/stormy16/stormy16.h
12545         (ADDRESS_COST): Move code ...
12546         (foo_address_cost): ... here.
12547         (TARGET_ADDRESS_COST): New.
12548
12549         * config/m32r/m32r.c (m32r_address_cost): Remove.
12550         * config/m32r/m32r-protos.h: Update.
12551
12552         * config/mmix/mmix.c (mmix_address_cost): Remove.
12553         * config/mmix/mmix-protos.h: Update.
12554
12555         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
12556         mn10300_address_cost; move unsig allocation ...
12557         (mn10300_address_cost): ... here.
12558         (TARGET_ADDRESS_COST): New.
12559         * config/mn10300/mn10300-protos.h: Update.
12560         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
12561
12562         * doc/tm.texi: Update.
12563
12564 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
12565
12566         * haifa-sched.c (schedule_insn): Return necessary cycle advance
12567         after issuing the insn.
12568         (rank_for_schedule): Make a insn with /S the highest priority
12569         insn.
12570         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
12571         (choose_ready): Check SCHED_GROUP_P.
12572         (schedule_block): Advance cycle after issuing insn if it is
12573         necessary.  Don't reorder insns if there is an insn with /S.
12574         (set_priorities): Ignore schedule groups.
12575
12576         * sched-deps.c (remove_dependence, group_leader): Remove the
12577         functions.
12578         (add_dependence): Ignore schedule groups.
12579         (set_sched_group_p): Don't make copy of dependencies from previous
12580         insn of the schedule group.  Add anti-dependency to the previous
12581         insn of the schedule group.
12582         (compute_forward_dependences): Ignore schedule groups.
12583
12584         * sched-ebb.c (init_ready_list): Ignore schedule groups.
12585
12586         * sched-rgn.c (init_ready_list): Ditto.
12587         (can_schedule_ready_p): Ditto.
12588
12589 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
12590
12591         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
12592         register to another one.
12593
12594 2003-01-28  Richard Henderson  <rth@redhat.com>
12595
12596         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
12597
12598 2003-01-28  Roger Sayle  <roger@eyesopen.com>
12599
12600         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
12601
12602 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
12603
12604         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
12605         class contains a floating-point register, return the size of the
12606         mode in half words.
12607
12608 2003-01-28  Jan Hubicka  <jh@suse.cz>
12609
12610         * i386.c (ix86_carry_flag_operator):  New predicate.
12611         (fcmov_operator): Fix whitespace.
12612         (ix86_expand_carry_flag_compare):  Deal with floating point.
12613         (ix86_expand_int_movcc): Deal with fp; update insn expansion
12614         (ix86_expand_int_addcc): Likewise.
12615         (ix86_expand_strlensi_unroll_1): likewsie.
12616         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
12617         * i386.md (add?i_carry_rex64): Use new predicate.
12618         (sub?i3_carry_rex64): Likewise.
12619         (x86_mov?icc_0_m1*): Likewise.
12620
12621 2003-01-28  Andreas Schwab  <schwab@suse.de>
12622
12623         * cfgloopmanip.c (create_preheader): Initialize src to avoid
12624         warning.
12625
12626         * expmed.c (emit_store_flag): Fix cast to avoid sign
12627         comparison warning.
12628
12629         * combine.c (force_to_mode): Add cast to fix warning when
12630         STORE_FLAG_VALUE is negative.
12631
12632 2003-01-27  Richard Henderson  <rth@redhat.com>
12633
12634         * Makefile.in (cse.o): Depend on TARGET_H.
12635         * cse.c (rtx_cost): Use targetm.rtx_costs.
12636         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
12637         * doc/tm.texi: Update.
12638
12639         * target.h (targetm.rtx_costs): New.
12640         * target-def.h (TARGET_RTX_COSTS): New.
12641         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
12642         * hooks.h: Update.
12643
12644         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
12645         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
12646         * config/alpha/alpha.h (PROCESSOR_MAX): New.
12647         (CONST_COSTS, RTX_COSTS): Remove.
12648
12649         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
12650         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
12651         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
12652         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
12653         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
12654         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
12655         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
12656         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
12657         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
12658         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
12659         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
12660         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
12661         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
12662         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
12663         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
12664         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
12665         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
12666         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
12667         config/v850/v850.c, config/v850/v850.h,
12668         config/xtensa/xtensa.c, config/xtensa/xtensa.h
12669         (CONST_COSTS, RTX_COSTS): Move code ...
12670         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
12671
12672         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
12673         (arm_rtx_costs, TARGET_RTX_COSTS): New.
12674         * config/arm/arm-protos.h: Update.
12675         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
12676
12677         * config/avr/avr.h (CONST_COSTS): Move code ...
12678         * config/avr/avr.c (avr_rtx_costs): ... here.
12679         (default_rtx_costs): Make static.
12680         * config/avr/avr-protos.h: Update.
12681
12682         * config/h8300/h8300.c (const_costs): Make static.
12683         (h8300_and_costs, h8300_shift_costs): Likewise.
12684         * config/h8300/h8300-protos.h: Update.
12685
12686         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
12687         (CONST_COSTS): Move code ...
12688         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
12689         default_rtx_costs; update for signature change.
12690         * config/ip2k/ip2k-protos.h: Update.
12691
12692         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
12693         (CONST_COSTS): Move code ...
12694         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
12695         (TARGET_RTX_COSTS): New.
12696         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
12697         * config/m68hc11/m68hc11-protos.h: Update.
12698
12699         * config/m68k/m68k.c (const_int_cost): Make static.
12700         * config/m68k/m68k-protos.h: Update.
12701
12702         * config/mcore/mcore.c (mcore_const_costs): Make static.
12703         (mcore_and_cost, mcore_ior_cost): Likewise.
12704         * config/mcore/mcore-protos.h: Update.
12705
12706         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
12707         (mmix_rtx_cost_recalculated): Remove.
12708         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
12709         * config/mmix/mmix-protos.h: Update.
12710
12711         * config/sh/sh.c (shiftcosts): Make static.
12712         (addsubcosts, andcosts, multcosts): Likewise.
12713         * config/sh/sh-protos.h: Update.
12714
12715         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
12716         (sparc_rtx_costs): Make static; update for change in signature.
12717         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
12718         * config/sparc/sparc-protos.h: Update.
12719
12720         * config/v850/v850.c (const_costs): Make static.
12721         * config/v850/v850-protos.h: Update.
12722
12723         * config/vax/vax.h (RTX_COSTS): Remove.
12724         (CONST_COSTS): Move code ...
12725         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
12726         from vax_rtx_cost.
12727         (vax_rtx_costs, TARGET_RTX_COSTS): New.
12728
12729 2003-01-27  Richard Henderson  <rth@redhat.com>
12730
12731         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
12732         * config/vax/vax-protos.h: Update.  Really.
12733
12734 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
12735
12736         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
12737         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
12738         zero if no hardware floating point.
12739         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
12740         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
12741         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
12742         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
12743         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
12744         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
12745         even FP registers on N32 and N64.
12746         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
12747         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
12748         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
12749         even-register-like alignment to 128-bit arguments.
12750         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
12751         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
12752         on N32 or N64.
12753         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
12754         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
12755         (TPBIT): Set to tp-bit.c.
12756         (tp-bit.c): Create out of fp-bit.c.
12757
12758 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12759
12760         * c-parse.in: Remove '%expect 32' directive in objc mode.
12761
12762 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
12763
12764         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
12765         (LIBGCOV): New variable.
12766         (libgcc.mk): Add LIBGCOV.
12767         (LIBGCC_DEPS): Add libgcov.c.
12768         (libgcov.a): New target.
12769         (clean): Remove libgcov.a.
12770         (install-libgcc): Do libgcov too.
12771         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
12772         with libgcov.a.
12773         * libgcc2.c (L_gcov): Move into ...
12774         * libgcov.c: ... here. New file.
12775         * mklibgcc.in: Add libgcov rules.
12776         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
12777
12778         * doc/invoke.texi (profile-arcs, test-coverage): Update and
12779         clarify.
12780
12781         * profile.c (index_counts_file): Remove duplicate check for open file.
12782
12783 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
12784
12785         * gcc/doc/invoke.texi (Optimization Options): Group together
12786         optional and experimental flags.  Move trapv and bounds-check
12787         out of this section.  Group floating point flags together.
12788         (Code Gen Options): Move trapv and bounds-check to here.
12789
12790 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
12791
12792         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
12793
12794 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
12795
12796         PR optimization/9090
12797         * function.c (purge_addressof_1): After pushing an addressed register
12798         onto the stack, simplify the result.
12799
12800 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12801
12802         * doc/extend.texi: Fix typo.
12803
12804 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12805
12806         * doc/cppopts.texi: Fix typo.
12807         * doc/objc.texi: Likewise.
12808         * doc/passes.texi: Likewise.
12809
12810 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
12811
12812         * real.c (ibm_extended_format): Add 53 to minimum exponent.
12813         (encode_ibm_extended): Adjust.
12814
12815 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
12816
12817         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
12818         timevar_id enumerations.
12819
12820 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12821
12822         * combine.c: Fix formatting.
12823
12824 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12825
12826         * doc/gccint.texi: Update the copyright.
12827
12828 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12829
12830         * doc/cpp.texi: Fix typos.
12831         * doc/extend.texi: Likewise.
12832         * doc/gty.texi: Likewise.
12833         * doc/install.texi: Likewise.
12834         * doc/passes.texi: Likewise.
12835         * doc/rtl.texi: Likewise.
12836         * doc/tm.texi: Likewise.
12837
12838 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12839
12840         * config/ia64/fde-glibc.c: Fix comment typos.
12841         * config/ia64/hpux.h: Likewise.
12842         * config/ia64/ia64.c: Likewise.
12843         * config/ia64/ia64.h: Likewise.
12844         * config/ia64/unwind-ia64.c: Likewise.
12845
12846 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12847
12848         * config/i386/i386-modes.def: Fix comment typos.
12849         * config/i386/i386.c: Likewise.
12850         * config/i386/i386.md: Likewise.
12851
12852 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
12853
12854         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
12855         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
12856         ASM_FINISH_DECLARE_OBJECT before defining it.
12857         * toplev.c (rest_of_decl_compilation):  Don't define
12858         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
12859         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
12860         parameters for DWARF2 targets because they _are_ used.
12861
12862 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
12863
12864         * fp-bit.h: Define macros for TFmode floating-point constants
12865         in IBM-extended TFmode types.
12866         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
12867         widths.
12868         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
12869         TFmode type.
12870
12871         * config/fp-bit.h: Define macros for TFmode floating-point
12872         constants in IEEE quad TFmode type.  Declare functions according
12873         to L_ macros.
12874         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
12875         (TFtype, TItype, UTItype): Define if TMODES is defined.
12876         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
12877         (F_T_BITOFF, D_T_BITOFF): Define.
12878         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
12879         guaranteed to be wide enough.
12880         * config/fp-bit.c: Check for L_ macros for tf functions.
12881         (__thenan_tf): New.
12882         (nan): Adjust.
12883         (pack_d, unpack_d): Support IEEE 854 quad type.
12884         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
12885         from FRAC_NBITS, FRAC_BITS and NGARDS.
12886         (usi_to_float): Cast constants to be shifted to fractype
12887         instead of assuming long long is wide enough.
12888         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
12889
12890 2003-01-26  Andreas Jaeger  <aj@suse.de>
12891
12892         * df.c: Remove prototype of unused function df_regno_rtl_debug.
12893
12894 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
12895
12896         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
12897         (DBBIT_FUNCS): Added _df_to_tf.
12898         (TPBIT_FUNCS): New.
12899         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
12900         (LIBGCC_DEPS): Added TPBIT.
12901         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
12902
12903         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
12904         been able to move the result to target.
12905
12906         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
12907         for the appropriate mode.
12908
12909         * calls.c (emit_library_call_value_1): Handle return values
12910         in a PARALLEL.
12911
12912         * rtl.c (get_mode_alignment): Moved to...
12913         * stor-layout.c: ... here.
12914
12915         * print-rtl.c (print_rtx): Don't print MEM details in
12916         GENERATOR_FILEs.
12917
12918 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
12919
12920         * df.h: Update comments, tidy formatting.
12921         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
12922         REVERSE, UNION, INTERSECTION.  All uses updated.
12923         (OLD_DF_INTERFACE): Remove.
12924         (struct insn_info): Remove commented out insn field.
12925         * df.c: Update comments, tidy formatting.
12926         (df_def_table_realloc): Remove.
12927
12928
12929 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
12930
12931         * calls.c (save_fixed_argument_area): Tidy.
12932         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
12933         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
12934         call chain loop at 1 if !try_tail_call.  Formatting.
12935         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
12936         Use save_fixed_argument_area and restore_fixed_argument_area.
12937
12938 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12939
12940         * df.c (df_uses_record): Handle CC0.
12941
12942 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
12943
12944         * reload.c (maybe_memory_address_p): New function.
12945         (find_reloads_address): Use it instead of memory_address_p.
12946
12947 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12948
12949         * final.c (shorten_branches): Align the address of code label
12950         when computing initial lengths and addresses.
12951
12952 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
12953
12954         * config/m68hc11/m68hc11.md: Fix a comment typo.
12955
12956 2003-01-25  Andreas Jaeger  <aj@suse.de>
12957
12958         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
12959         TARGET_MACHO.
12960
12961 2003-01-25  Roger Sayle  <roger@eyesopen.com>
12962
12963         * gcse.c (bypass_last_basic_block): New global variable.
12964         (bypass_block):  Use redirect_edge_and_branch_force to redirect
12965         fall-through edges.  Use bypass_last_basic_block to determine
12966         which blocks have valid PRE information.
12967         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
12968
12969 2003-01-25  Jan Hubicka  <jh@suse.cz>
12970
12971         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
12972
12973 2003-01-25  Jan Hubicka  <jh@suse.cz>
12974                               Eric Botcazou <ebotcazou@libertysurf.fr>
12975         PR opt/8492
12976         * gcse.c (one_cprop_pass): Delete unreachable blocks.
12977
12978 2003-01-25  Richard Henderson  <rth@redhat.com>
12979
12980         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
12981         from ia64_aix_select_rtx_section.
12982         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
12983         instead of saving and restoring flag_pic.
12984         (ia64_rwreloc_unique_section): Similarly.
12985         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
12986         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
12987         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
12988         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
12989
12990 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
12991
12992         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
12993         comment.
12994
12995 2003-01-25  Richard Henderson  <rth@redhat.com>
12996
12997         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
12998
12999 2003-01-25  Kelley Cook <kelleycook@comcast.net>
13000
13001         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
13002
13003 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
13004
13005         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
13006         type for bitmaps.  Use unsigned long.
13007         (nBITMAP_WORD_BITS): New macro.
13008         (BITMAP_WORD_BITS): New macro.
13009         (rest of file): Use it.
13010         * bitmap.c: Use it.
13011
13012 2003-01-25  Richard Henderson  <rth@redhat.com>
13013
13014         2002-02-19  Robert Lipe  <robertlipe@usa.net>
13015         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
13016
13017 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13018
13019         * builtins.c (purge_builtin_constant_p): Scan insn stream
13020         sequentially rather than by basic block.
13021         * function.c (purge_addressof): Simplify test with INSN_P.
13022
13023 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13024
13025         * combine.c (simplify_comparison, case AND): Remove a redundant test.
13026
13027 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13028
13029         * function.h (struct function): New field calls_constant_p.
13030         (current_function_calls_constant_p): New macro for above.
13031         * function.c (prepare_function_start): Initialize calls_eh_return
13032         and calls_constant_p.
13033         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
13034         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
13035         when the current_function_calls_constant_p.
13036         * integrate.c (expand_inline_function): Set calls_constant_p if
13037         the function being inlined has calls_constant_p set.
13038
13039 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13040
13041         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
13042         optimizing, even if flag_gcse is true.
13043         * toplev.c (rest_of_compilation): purge_builtin_constant_p
13044         only needs to be called when "optimize > 0 && flag_gcse".
13045
13046 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13047
13048         * stmt.c (emit_case_bit_tests): New routine to implement suitable
13049         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
13050         (case_bit_test_cmp): New comparison function for "qsort" to order
13051         case_bit_tests by decreasing number of destination nodes.
13052         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
13053         (expand_end_case_type): Use emit_case_bit_tests to implement
13054         suitable switch statments.
13055         (CASE_USE_BIT_TESTS): New target macro to disable the above.
13056         * Makefile.in (stmt.o): Add dependency on optab.h.
13057         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
13058
13059 2003-01-23  Andreas Schwab  <schwab@suse.de>
13060
13061         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
13062         __do_global_ctors_aux hidden global and don't put it in
13063         .init_array.
13064         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
13065         instead so that it comes first.
13066
13067 2003-01-25  Jan Hubicka  <jh@suse.cz>
13068
13069         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
13070         subreg is read/modify.
13071
13072 2003-01-25  Jan Hubicka  <jh@suse.cz>
13073
13074         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
13075         do libcall for large blocks.
13076         * i386.md (comi patterns): Set type to ssecomi.
13077         (sse2_unpck?pd): Fix mode of vec_select.
13078
13079         * cse.c: Include except.h
13080         (cse_set_around_loop):  Do not create new basic blocks.
13081         * Makefile.in (cse.o): Add dependnecy on except.h
13082
13083 2003-01-25  Jan Hubicka  <jh@suse.cz>
13084
13085         * builtins.c (fold_trunc_transparent_mathfn): New function.
13086         (fold_builtin): Use it.
13087         * convert.c (convert_to_real): Re-enable code to convert
13088         math functions; add support for floor familly functions.
13089
13090 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13091
13092         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
13093         dependencies on coretypes.h and $(TM_H).
13094
13095 2003-01-25  Jan Hubicka  <jh@suse.cz>
13096
13097         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
13098
13099 2003-01-24  Stuart Hastings  <stuart@apple.com>
13100
13101         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
13102
13103 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13104
13105         * config/c4x/c4x.md (UNSPEC_BU): New constants.
13106         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
13107         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
13108         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
13109         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
13110         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
13111         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
13112         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
13113
13114 2003-01-24  Jan Hubicka  <jh@suse.cz>
13115
13116         * emit-rtl.c (reg_attrs_htab): New static variable.
13117         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
13118         functions.
13119         (reg_rtx): Do not maintain regno_decl.
13120         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
13121         set_mem_attrs_from_reg): New global function.
13122         (init_emit): Do not initialize regno_decl.
13123         (init_emit_once): initialize reg_attrs_htab.
13124         * final.c (alter_subreg): Do not replace REG by SUBREG.
13125         (gen_mem_expr_from_op): Improve output.
13126         (output_asm_operands): Likewise.
13127         * function.c (assign_params): Do not set REGNO_DECL.
13128         * function.h (struct function): Kill regno_decl.
13129         (REGNO_DECL): Kill.
13130         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
13131         * print_rtl.c (print_rtx): Output REG information.
13132         * regclass.c (reg_scan_mark_refs): Update attrs.
13133         * reload1.c (alter_reg): Likewise.
13134         * simplify_rtx.c (simplify_subreg): Likewise.
13135         * stmt.c (expand_decl): Likewise.
13136         * rtl.def (REG): Add new field.
13137         * rtl.h (struct reg_attrs): New.
13138         (rtunion_def): At rtreg.
13139         (X0MEMATTR): Add checking.
13140         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
13141         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
13142         Declare.
13143         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
13144
13145 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
13146
13147         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
13148         (xtensa_emit_call, print_operand): Fix printf format strings
13149         to avoid compile warnings.
13150         (xtensa_function_prologue, xtensa_function_epilogue): Change type
13151         of "size" argument to HOST_WIDE_INT to fix compile warnings.
13152         * config/xtensa/xtensa-protos.h
13153         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
13154
13155 2003-01-24  Jan Hubicka  <jh@suse.cz>
13156
13157         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
13158         (implicit_built_in_decls): New global array.
13159         (mathfn_built_in): New global function.
13160         (fold_trunc_transparent_mathfn): New static function
13161         (expand_builtin_strstr, expand_bultin_strchr,
13162         expand_builtin_strpbrk, expand_builtin_strcpy,
13163         expand_builtin_strncpy, expand_bultin_strcmp,
13164         expand_bultin_strncat, expand_builtin_fputs): Use
13165         implicint_built_in_decls.
13166         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
13167         * builtins.def: Fix comments.
13168         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
13169         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
13170         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
13171         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
13172         (DEF_C99_C90RES_BULTIN): New.
13173         (*f, *l builtins): Update.
13174         * c-common.c (DEF_BUILTIN): Initialize implicit array.
13175         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
13176         * convert.c (strip_float_extensions): New global function.
13177         * tree.h (DEF_BUILTIN): Accept 10 arguments.
13178         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
13179         Declare.
13180         * java/builtins.c (define_builtin): Handle implicit.
13181         (DEF_BUILTIN): Update.
13182         * tm.texi (TARGET_C99_FUNCTIONS): Document.
13183         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
13184         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
13185         when using glibc2.
13186
13187 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
13188
13189         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
13190         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
13191         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
13192         * config/xtensa/crti.asm: New file.
13193         * config/xtensa/crtn.asm: New file.
13194         * config/xtensa/t-elf: New file.
13195         * config/xtensa/t-linux: New file.
13196         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
13197         Move various CFLAGS settings to new t-elf file.
13198
13199 2003-01-24  Richard Henderson  <rth@redhat.com>
13200
13201         PR optimization/4382
13202         * tree-inline.c (find_builtin_longjmp_call_1): New.
13203         (find_builtin_longjmp_call): New.
13204         (inlinable_function_p): Use it.
13205
13206 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13207
13208         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
13209         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
13210         * config/i386/i386.c (function_arg_pass_by_reference): New.
13211         (ix86_va_arg): Support arguments passed by reference.
13212
13213 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13214
13215         * cfgloopanal.c: New file.
13216         * cfgloopmanip.c: New file.
13217         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
13218         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
13219         cfglayout.o): Add dependency on cfgloop.h.
13220         (cfgloop.o): Add flags.h dependency.
13221         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
13222         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
13223         (struct loop, struct loops, flow_loops_find, flow_loops_update,
13224         flow_loops_free, flow_loops_dump, flow_loop_dump,
13225         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
13226         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
13227         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
13228         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
13229         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
13230         find_common_loop, verify_loop_structure): Declarations moved to ...
13231         * cfgloop.h: New file.
13232         * bb-reorder.c (reorder_basic_blocks): Modified.
13233         * cfglayout.c: Include cfgloop.h.
13234         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
13235         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
13236         (break_superblocks): New static function.
13237         (cfg_layout_finalize): Use it.
13238         (cfg_layout_split_block): New function.
13239         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
13240         fields.
13241         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
13242         changed.
13243         (cfg_layout_split_block): Declare.
13244         * cfgloop.c: Include cfgloop.h and flags.h.
13245         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
13246         get_loop_body): Avoid signed versus unsigned comparison warnings.
13247         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
13248         loop_latch_edge): Modified.
13249         (verify_loop_structure): Modified to use flags stored in loop structure;
13250         check irreducible loops.
13251         (cancel_loop, cancel_loop_tree): New functions.
13252         (estimate_probability): Use loop analysis code for predictions.
13253         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
13254         warnings.
13255         * doloop.c: Include cfgloop.h.
13256         * loop.c: Include cfgloop.h.
13257         * predict.c: Include cfgloop.h.
13258         * toplev.c: Include cfgloop.h.
13259         * unroll.c: Include cfgloop.h.
13260         * tracer.c (tracer): Modified.
13261
13262 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13263
13264         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
13265
13266 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
13267
13268         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
13269         * configure: Regenerate.
13270
13271         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
13272         (tls_symbolic_reference_mentioned_p): Add prototype.
13273         (s390_tls_get_offset): Add prototype.
13274         (emit_pic_move): Remove prototype, replace by ...
13275         (emit_symbolic_move): .. this new prototype.
13276
13277         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
13278         (tls_model_chars): New global variable.
13279         (s390_encode_section_info): Encode TLS model.
13280         Use targetm.binds_local_p to check for local symbols.
13281         (s390_strip_name_encoding): New function.
13282         (TARGET_STRIP_NAME_ENCODING): Define.
13283
13284         (get_thread_pointer): New function.
13285         (legitimize_tls_address): New function.
13286         (legitimize_address): Call it.
13287         (emit_pic_move): Remove, replace by ...
13288         (emit_symbolic_move): ... this new function.
13289
13290         (larl_operand): Handle TLS operands.
13291         (legitimate_constant_p): Likewise.
13292         (s390_decompose_address): Likewise.
13293         (s390_cannot_force_const_mem): New function.
13294         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13295
13296         (s390_output_symbolic_const): Handle TLS unspecs.
13297         (print_operand): New code 'J'.
13298         (machine_function): Add struct member 'some_ld_name'.
13299         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
13300
13301         (enum s390_builtin): New type.
13302         (code_for_builtin_64, code_for_builtin_31): New global variables.
13303         (s390_init_builtins, s390_expand_builtin): New functions.
13304         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
13305
13306         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
13307         (ASM_OUTPUT_LABELREF): Define.
13308         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
13309
13310         * config/s390/s390.md: Define TLS UNSPEC constants.
13311         ("movdi", "movsi"): Handle TLS operands.
13312         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
13313         ("*tls_load_64", "*tls_load_31"): New insns.
13314         ("call_value_tls", "call_value_tls_exp"): New expanders.
13315         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
13316         "bas_tls_64", "bas_tls_31"): New insns.
13317
13318 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
13319
13320         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
13321         spe ABI is configured, if requested.
13322
13323 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13324
13325         * doc/passes.texi: Fix typo.
13326
13327 2003-01-24  Andreas Schwab  <schwab@suse.de>
13328
13329         * stor-layout.c (excess_unit_span): Only define if used.
13330
13331 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
13332
13333         * gcc/doc/invoke.texi (Optimization Options): List -O levels
13334         for each optimization flag.
13335
13336 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13337
13338         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
13339
13340 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13341
13342         * doc/bugreport.texi: Use @command instead of @code for commands.
13343         * doc/collect2.texi: Likewise.
13344         * doc/headerdirs.texi: Likewise.
13345         * doc/invoke.texi: Likewise.
13346         * doc/standards.texi: Likewise.
13347         * doc/tm.texi: Likewise.
13348         * doc/trouble.texi: Likewise.
13349
13350 2003-01-24  Nick Clifton  <nickc@redhat.com>
13351
13352         * config/arm/arm.c (use_return_insn): Do not use a single return
13353         instruction for interrupt handelrs which have to create a stack
13354         frame.
13355         (arm_expand_prologue): Do not pre-bias the return address of
13356         interrupt handlers which create a stack frame.
13357
13358 2003-01-24  Nick Clifton  <nickc@redhat.com>
13359
13360         * Add sh2e support:
13361
13362         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
13363
13364                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
13365                 med_cbranches.  Fix logic in short_cbranches.
13366
13367         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
13368
13369                 * config/sh/sh.md (delay for cbranch): Don't annul delay
13370                 slots on SH2e.
13371                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
13372                 cbranch with unfilled delay slot on SH2e.
13373                 (output_branch): Fill with a nop the delay slot of a
13374                 branch that required a delay slot but didn't get one.
13375
13376         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
13377
13378                 * doc/invoke.texi (SH options): Document -m2e.
13379                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
13380                 * config/sh/lib1funcs.asm: Likewise.
13381                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
13382                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
13383                 not __sh1__.
13384                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
13385                 SH2E up.
13386                 (SH3E_BIT): Renamed to...
13387                 (SH_E_BIT): ... this.  Replace all uses.
13388                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
13389                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
13390                 (TARGET_SWITCHES): Added 2e.
13391                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
13392                 (processor_type): Added PROCESSOR_SH2E.
13393                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
13394                 TARGET_SH2E, except in sqrtsf2_i.
13395                 (attribute cpu): Added sh2e.
13396                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
13397                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
13398                 * config.gcc: Add sh2e target support.
13399
13400 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
13401
13402         Rename -W to -Wextra.
13403         * c-decl.c:  Update comments.
13404         * c-typeck.c:  Likewise.
13405         * flags.h:  Likewise.
13406         * function.c:  Likewise.
13407         * stmt.c:  Likewise.
13408         * toplev.c:  Update comments.
13409         (W_options):  Add 'extra'.
13410         (display_help):  Remove '-W'.
13411         (decode_W_option):  Special warn_uninitialized treatment in the case
13412         of -Wextra.
13413         * doc/invoke.texi:  Update with new entries.
13414
13415 2003-01-23  Richard Henderson  <rth@redhat.com>
13416
13417         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
13418         in no-else-block case.  Add commentary.
13419
13420 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13421
13422         * configure.in: Revert last change.
13423
13424 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13425
13426         * configure.in: Don't include ansidecl.h in tconfig.h.
13427         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
13428         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
13429         ATTRIBUTE_UNUSED.
13430
13431         * configure: Regenerate.
13432
13433 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13434
13435         PR java/6748
13436         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
13437         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
13438         kernels.
13439
13440 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13441
13442         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
13443
13444 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
13445
13446         * genattrtab.c (write_attr_get): Mark 'insn' paramter
13447         as ATTRIBUTE_UNUSED.
13448
13449 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
13450
13451         * arm.c (thumb_base_register_rtx_p): New function.
13452         (thumb_index_register_rtx_p): New function.
13453         (thumb_legitimate_address_p): New function.
13454         (thumb_legitimate_offset_p): New function.
13455         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
13456         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
13457         definitions.
13458         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
13459         (THUMB_LEGITIMATE_OFFSET): Delte.
13460         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
13461         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
13462         (thumb_legitimate_offset_p): Likewise.
13463
13464 2003-01-23  Andreas Schwab  <schwab@suse.de>
13465
13466         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
13467
13468 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13469
13470         * fixinc/Makefile.in (FL_LIST): Revert last change.
13471
13472 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13473
13474         PR other/7341
13475         * invoke.texi (ftest-coverage): Fix broken cross-reference.
13476         Change @code to @command for gcov command.
13477
13478         * gcc.texi: Adjust title of gcov section.
13479         Adjust copyright.
13480         * gcov.texi: Likewise.
13481
13482 2003-01-22  Roger Sayle  <roger@eyesopen.com>
13483
13484         PR optimization/8423
13485         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
13486         its argument is constant, or 0 if !flag_gcse.
13487         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
13488         if it's argument is constant.
13489         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
13490         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
13491         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
13492         * builtins.c (purge_builtin_constant_p): New function to force
13493         instantiation of any remaining CONSTANT_P_RTX nodes.
13494         * rtl.h (purge_builtin_constant_p): Prototype here.
13495         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
13496         pass after GCSE and before loop.
13497         (flag_gcse): No longer static.
13498         * flags.h (flag_gcse): Prototype here.
13499
13500 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
13501
13502         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
13503         introduced by last change.
13504
13505 2003-01-22  Andreas Schwab  <schwab@suse.de>
13506
13507         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
13508
13509 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
13510
13511         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
13512         request a scratch reg on H8S when the shift count is 8.
13513
13514 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
13515
13516         * config/s390/s390-protos.h (preferred_la_operand_p):
13517         Remove second parameter.
13518         * config/s390/s390.c (preferred_la_operand_p): Likewise.
13519         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
13520         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
13521         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
13522         Add peepholes to transform ADD to LOAD ADDRESS.
13523
13524 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
13525
13526         * arm.c (arm_address_register_rtx_p): New function.
13527         (arm_legitimate_address_p): New function.
13528         (arm_legitimate_index_p): New function.
13529         (legitimize_pic_address): Use arm_legitimate_index_p.
13530         * arm-protos.h (arm_legtimate_address_p): Add prototype.
13531         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
13532         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
13533
13534 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
13535
13536         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
13537         * config/s390/2064.md (define_bypass): Correct 'Load' and
13538         'Load-address' bypass values.
13539
13540 2003-01-22  Andreas Schwab  <schwab@suse.de>
13541
13542         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
13543
13544 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13545
13546         * genautomata.c (output_internal_insn_latency_func,
13547         output_print_reservation_func): Short circuit when there is no
13548         automaton to generate code for.
13549
13550 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13551
13552         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
13553         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
13554
13555 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
13556
13557         * config/rs6000/rs6000.md: Remove warning.
13558         (builtin_setjmp_receiver): Likewise.
13559         * config/darwin.c (update_stubs): Slightly improve terrible hack
13560         with identifiers.  Add comment pointing out problems with it.
13561         (update_non_lazy_ptrs): Likewise.
13562
13563 2003-01-21  Richard Henderson  <rth@redhat.com>
13564
13565         * dwarf2out.c (lookup_filename): Fix printf format warning.
13566         * system.h (fread_unlocked, fwrite_unlocked): Undef.
13567
13568         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
13569         (fixincl.o-warn, gnu-regex.o-warn): New.
13570         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
13571         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
13572         * fixinc/fixincl.c (process): Fix printf format warning.
13573
13574 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
13575
13576         * dwarf2out (output_file_names): Don't crash if called
13577         with empty file_table.
13578
13579 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13580
13581         * genautomata.c (output_internal_insn_latency_func): Add
13582         missing break statement to generated code.
13583
13584 2003-01-21  Roger Sayle  <roger@eyesopen.com>
13585
13586         * stmt.c (same_case_target_p): New function to determine whether
13587         two case labels branch to the same target.  Split out from...
13588         (group_case_nodes): ... here.  Use same_case_target_p instead.
13589         (strip_default_case_nodes): Remove explicit case nodes
13590         that branch to the default destination.
13591         (expand_end_case_type): Call strip_default_case_nodes after
13592         group_case_nodes, to simplify the case-list before we count it.
13593         Only generate table_label RTX when actually needed.  Try to share
13594         thiscase->exit_label and thiscase->data.case_stmt.default_label
13595         when a switch has no explicit default case.  Simplify test for
13596         constant index.
13597
13598 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
13599
13600         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
13601         \t.
13602         (*negsf2_h8300hs): Likewise.
13603         (*addsi3_lshiftrt_16_zexthi): Likewise.
13604         (*iorhi3_lshiftrt_8): Likewise.
13605
13606 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
13607
13608         * dwarf2out.c (fde_table_in_use): Mark GTY.
13609         (dwarf2out_cfi_label_num): New variable, marked GTY.
13610         (dwarf2out_cfi_label): Use it instead of static label_num.
13611         * emit-rtl.c (label_num): Mark GTY.
13612
13613 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
13614
13615         * config/h8300/h8300.c (output_plussi): Support H8/300.
13616         (compute_plussi_length): Likewise.
13617         (compute_plussi_cc): Likewise.
13618         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
13619         output assembly instructions.
13620
13621 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13622
13623         * calls.c (fix_unsafe_tree): Prototype.
13624
13625         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
13626         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
13627         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
13628         c-parse.o-warn): Add -Wno-error.
13629         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
13630
13631         * configure.in (--enable-werror): Add new flag.
13632         * doc/install.texi (--enable-werror): Document.
13633         * configure: Regenerate.
13634
13635         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
13636
13637 2003-01-21  Andreas Schwab  <schwab@suse.de>
13638
13639         * genautomata.c (output_internal_insn_latency_func): Fix missing
13640         close paren in output.
13641
13642 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13643
13644         * genautomata.c: Space savings in generated code:
13645         (output_dfa_insn_code_func): Split out the table-enlargement
13646         path to an out-of-line static function, dfa_insn_code_enlarge.
13647         (output_internal_insn_latency_func): Use a lookup table for the
13648         default latencies.
13649         (output_print_reservation_func): Use a lookup table for the
13650         strings.
13651
13652 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
13653
13654         PR opt/7507
13655         * calls.c (fix_unsafe_tree): Split out from ...
13656         (expand_call): ... here.  Use it on the function address too.
13657
13658 2003-01-20  Richard Henderson  <rth@redhat.com>
13659
13660         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
13661
13662 2003-01-20  Richard Henderson  <rth@redhat.com>
13663
13664         PR opt/7154
13665         * stmt.c (expand_asm_operands): Validize memory operands.
13666
13667 2003-01-20  Richard Henderson  <rth@redhat.com>
13668
13669         PR opt/8848
13670         * ifcvt.c (noce_process_if_block): Correct arguments to
13671         modified_between_p for no-else-block case.
13672
13673 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13674
13675         * config/h8300/h8300.c (const_costs): Remove a warning.
13676         (output_plussi): Likewise.
13677         (compute_plussi_length): Likewise.
13678         (compute_plussi_cc): Likewise.
13679
13680 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13681
13682         * config/h8300/h8300.md (addsi_h8300): Remove the last
13683         alternative.
13684
13685 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13686
13687         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
13688
13689 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13690
13691         * system.h (__NO_STRING_INLINES): Define.
13692
13693 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13694
13695         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
13696         is not a scalar int mode.
13697
13698 2003-01-20  Roger Sayle  <roger@eyesopen.com>
13699
13700         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
13701         insn's notes following a substitution inside a libcall.
13702
13703 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
13704
13705         * configure.in: Check for system-provided 'uchar' type.
13706         * configure, config.in: Regenerate.
13707         * cpphash.h: Only typedef 'uchar' if the system doesn't.
13708
13709 2003-01-20  Richard Henderson  <rth@redhat.com>
13710
13711         * expr.h (MUST_PASS_IN_STACK): Move implementation...
13712         * calls.c (default_must_pass_in_stack): ... here.
13713
13714 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
13715
13716         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
13717
13718         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
13719
13720         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
13721         Wrap up definition of `insn_alts'.
13722
13723         * genattrtab.c (main): Wrap up `insn_alts'.
13724
13725 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13726
13727         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
13728         prototyping.
13729         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
13730
13731         * config.in, configure: Regenerate.
13732
13733 2003-01-20  Nick Clifton  <nickc@redhat.com>
13734
13735         * config/arm/arm.md (sibcall_epilogue): Add an
13736         UNSPEC_PROLOGUE_USE to prevent the link register from being
13737         considered dead.
13738
13739 2003-01-20  Jan Hubicka  <jh@suse.cz>
13740
13741         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
13742
13743 2003-01-20  Andreas Schwab  <schwab@suse.de>
13744
13745         * system.h: Don't declare strsignal if the decl test hasn't been
13746         run yet.
13747
13748 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13749
13750         * config/h8300/h8300.c (notice_update_cc): Don't assume that
13751         recog_data.operands[0] is always associated with cc0.
13752
13753 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
13754
13755         * collect2.c (ldgetname): Expand declaration to prototype.
13756         * read-rtl.c (atoll): Add prototype.
13757         * system.h (strsignal): Also declare if no declaration found.
13758
13759 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
13760
13761         * config.gcc (mips64*-*-linux*): Added.
13762         * config/mips/linux64.h, config/mips/t-linux64: New file.
13763         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
13764         * config/mips/mips.c (override_options): Use it.
13765         * config/mips/mips.h (TARGET_SWITCHES): Added...
13766         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
13767         * Makefile.in (SPECS): New.
13768         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
13769         * gcc.c (process_command): Move self-spec processing past spec
13770         file loading.
13771         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
13772         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
13773         CRTSTUFF_T_CFLAGS.
13774         (SPECS): Document.
13775         * doc/invoke.texi (-mabi-fake-default): Document.
13776
13777 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
13778
13779         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
13780         z_reg, z_reg_qi): Declare static and GTY().
13781         (da_reg): Remove.
13782         (create_regs_rtx): Don't create da_reg.
13783         ("gt-m68hc11.h"): Include for GTY roots.
13784         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
13785         and GTY() here.
13786         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
13787         (m68hc11_soft_tmp_reg): Likewise.
13788         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
13789
13790 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
13791
13792         * basic-block.h: Fix comment formatting.
13793         * calls.c: Likewise.
13794         * combine.c: Likewise.
13795         * convert.c: Likewise.
13796         * gcov.c: Likewise.
13797         * haifa-sched.c: Likewise.
13798         * libgcc2.c: Likewise.
13799         * loop.c: Likewise.
13800         * profile.c: Likewise.
13801         * system.h: Likewise.
13802
13803 2003-01-18  Roger Sayle  <roger@eyesopen.com>
13804
13805         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
13806
13807 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13808
13809         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
13810
13811 2003-01-17  Dale Johannesen  <dalej@apple.com>
13812
13813         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
13814           (*floatunssidf2_internal):  Ditto.
13815
13816 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
13817
13818         * alias.c: Fix comment typos.
13819         * basic-block.h: Likewise.
13820         * c-common.c: Likewise.
13821         * c-common.h: Likewise.
13822         * c-decl.c: Likewise.
13823         * c-opts.c: Likewise.
13824         * c-pragma.c: Likewise.
13825         * c-pretty-print.h: Likewise.
13826         * cfg.c: Likewise.
13827         * cfganal.c: Likewise.
13828         * cfgbuild.c: Likewise.
13829         * cfgcleanup.c: Likewise.
13830         * cfglayout.c: Likewise.
13831         * cfgrtl.c: Likewise.
13832         * convert.c: Likewise.
13833         * cpphash.h: Likewise.
13834         * cpplex.c: Likewise.
13835         * cpplib.h: Likewise.
13836         * df.h: Likewise.
13837         * diagnostic.c: Likewise.
13838         * diagnostic.h: Likewise.
13839         * dwarf2.h: Likewise.
13840
13841 2003-01-17  Stan Shebs  <shebs@apple.com>
13842
13843         * config/darwin-protos.h: Forward-declare struct cpp_reader.
13844
13845 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
13846
13847         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
13848         mistake in last checkin.
13849
13850 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
13851
13852         * et-forest.c: Fix comment typos.
13853         * et-forest.h: Likewise.
13854         * except.c: Likewise.
13855         * expr.c: Likewise.
13856         * flags.h: Likewise.
13857         * flow.c: Likewise.
13858         * gcc.c: Likewise.
13859         * gcse.c: Likewise.
13860         * genattrtab.c: Likewise.
13861         * genautomata.c: Likewise.
13862         * gengtype.c: Likewise.
13863         * genrecog.c: Likewise.
13864         * global.c: Likewise.
13865         * gthr-rtems.h: Likewise.
13866
13867 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13868
13869         * i386.c (x86_function_profiler): Fix format specifier.
13870
13871 2003-01-17  Richard Henderson  <rth@redhat.com>
13872
13873         * gengtype.c (walk_type): Allow paramN_is.
13874
13875 2003-01-17  Nick Clifton  <nickc@redhat.com>
13876
13877         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
13878
13879 2003-01-16  Richard Henderson  <rth@redhat.com>
13880
13881         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
13882
13883 2003-01-16  Richard Henderson  <rth@redhat.com>
13884
13885         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
13886         (alpha_next_sequence_number): Likewise.
13887         (alpha_this_literal_sequence_number): Likewise.
13888         (alpha_this_gpdisp_sequence_number): Likewise.
13889         (struct alpha_funcs, alpha_funcs_num): Likewise.
13890         (struct alpha_links): Fix branch merge error.
13891         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
13892
13893 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
13894
13895         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
13896         R. Ghazi.
13897
13898 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
13899
13900         * ifcvt.c: Fix comment typos.
13901         * lcm.c: Likewise.
13902         * libgcc2.c: Likewise.
13903         * local-alloc.c: Likewise.
13904         * loop.c: Likewise.
13905         * predict.c: Likewise.
13906         * ra-build.c: Likewise.
13907         * ra.c: Likewise.
13908         * ra-colorize.c: Likewise.
13909         * ra.h: Likewise.
13910         * ra-rewrite.c: Likewise.
13911         * regmove.c: Likewise.
13912         * reload.h: Likewise.
13913         * rtlanal.c: Likewise.
13914         * toplev.c: Likewise.
13915         * tree.h: Likewise.
13916         * unwind-dw2-fde-glibc.c: Likewise.
13917         * vmsdbgout.c: Likewise.
13918
13919 2003-01-16  Richard Henderson  <rth@redhat.com>
13920
13921         * dwarf2out.c (struct file_table): Remove.
13922         (FILE_TABLE_INCREMENT): Remove.
13923         (file_table): Make a varray; mark for GC.  Update all users.
13924         (file_table_last_lookup_index): Extract from struct file_table.
13925         (output_file_names): Fix unsigned compare warnings.
13926         (add_name_attribute): Remove inline marker.
13927         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
13928         (lookup_filename): Don't manage size of file_table.
13929         (init_file_table): Allocate file_table with GC.
13930         (dwarf2out_init): Don't record main_input_filename here.
13931         (dwarf2out_finish): Do it here instead.
13932
13933 2003-01-16  Bruce Korb  <bkorb@gnu.org>
13934
13935         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
13936
13937 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
13938
13939         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
13940         instead of rotldi3_mextr.
13941
13942 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
13943
13944         * haifa-sched.c (move_insn): Restore moving all schedule group.
13945         (set_priorities): Restore taking SCHED_GROUP_P into account.
13946
13947         * sched-deps.c (add_dependence): Restore processing the last group
13948         insn.
13949         (remove_dependence, group_leader): Restore the functions.
13950         (set_sched_group_p): Restore adding dependencies from previous insn
13951         in the group.
13952         (compute_forward_dependences): Restore usage of group_leader.
13953
13954         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
13955         account.
13956
13957         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
13958         account.
13959         (can_schedule_ready_p): Ditto.
13960         (add_branch_dependences): Restore skipping over the group insns.
13961
13962 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
13963
13964         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
13965         68HC12 pre/post inc/dec side effects.
13966
13967 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
13968
13969         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
13970
13971 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
13972
13973         * sh.md (mshflo_w_x): Fix description of operation.
13974
13975 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
13976
13977         * config/rs6000/rs6000.h: Mention Altivec registers in
13978         commentary.  Fix typo.
13979
13980 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
13981
13982         * config/rs6000/rs6000.md (movti_string): Remove clobber.
13983         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
13984         generate PARALLEL with clobber for TARGET_POWER.
13985
13986 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13987
13988         * ra-colorize.c (colorize_one_web): Initialize variable.
13989         * regmove.c (fixup_match_1): Likewise.
13990         * reload1.c (reload_as_needed): Likewise.
13991         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
13992
13993 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13994
13995         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
13996
13997 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13998
13999         * dbxout.c (lastfile, cwd): Fix `unused' warning.
14000         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
14001         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
14002         is_main_source, file_table, decl_die_table_in_use,
14003         abbrev_die_table_in_use, line_info_table_in_use,
14004         separate_line_info_table_in_use, pubname_table_in_use,
14005         arange_table_in_use, ranges_table_in_use,
14006         current_function_has_inlines): Likewise.
14007         * flow.c (life_analysis): Likewise.
14008         * genemit.c (gen_insn): Likewise.
14009         * protoize.c (cplus_suffix): Likewise.
14010
14011         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
14012         * arm.h (ROUND_UP_WORD): Likewise.
14013
14014         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
14015         warning.
14016         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
14017         init_emit_once): Likewise.
14018         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
14019         Likewise.
14020         * function.c (assign_stack_temp_for_type): Likewise.
14021         * loop.c (loop_invariant_p): Likewise.
14022         * recog.c (push_operand): Likewise.
14023         * regclass.c (init_reg_sets_1): Likewise.
14024         * reload.c (update_auto_inc_notes): Likewise.
14025         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
14026         * stmt.c (expand_asm_operands): Likewise.
14027         * stor-layout.c (start_record_layout): Likewise.
14028
14029 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
14030
14031         * config/c4x/c4x.md (epilogue): Correct last patch.
14032
14033 2003-01-15  Richard Henderson  <rth@redhat.com>
14034
14035         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
14036         also check that GP is being used.
14037         (alpha_find_lo_sum_using_gp): New.
14038         (alpha_does_function_need_gp): Use get_attr_usegp.
14039         * config/alpha/alpha-protos.h: Update.
14040         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
14041         as needed.
14042
14043 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14044
14045         * gcse.c (one_cprop_pass): Change function arguments to take both
14046         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
14047         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
14048         (bypass_jumps): New function to perform separate jump bypassing pass.
14049         * rtl.h (bypass_jumps): Add function prototype.
14050         * timevar.def (TV_BYPASS): New timing variable.
14051         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
14052         (dump_file): New entry for the bypass RTL dump file.
14053         (rest_of_compilation): Insert new jump bypassing optimization
14054         pass after loop.
14055         * doc/passes.texi: Document new pass.
14056
14057 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14058
14059         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
14060         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
14061         * pa.h (TARGET_SOM_SDEF): Define.
14062         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
14063
14064 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
14065
14066         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
14067         allocate 4-bytes of locals on 68HC11.
14068         (expand_epilogue): Likewise.
14069         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
14070
14071 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
14072
14073         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
14074         and -mshort-double to the assembler to specify the ABI.
14075         (LINK_SPEC): Likewise.
14076         (CPP_SPEC): Pass HCS12 specific define.
14077         (MASK_M68S12): New define.
14078         (TARGET_M68S12): Likewise.
14079         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
14080         (TARGET_VERSION): Update.
14081         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
14082         (LINK_SPEC): Update.
14083         (ASM_SPEC): Update.
14084         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
14085         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
14086
14087 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
14088
14089         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
14090         the return code.
14091
14092 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
14093
14094         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
14095         flag before setting it.
14096
14097 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14098
14099         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
14100         when loop condition is known true, i.e.  "while (1) { ... }".
14101         (genrtl_for_stmt): Similarly for "for" statements.
14102
14103 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14104
14105         * real.c (real_sqrt): Return a bool result indicating whether
14106         a floating point exception or trap should be raised.
14107         * real.h (real_sqrt): Update function prototype.
14108         * builtins.c (fold_builtin): Only fold non-trapping square
14109         roots unless we're ignoring errno and trapping math.
14110
14111 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
14112
14113         * expr.h (emit_conditional_add): Add PARAMS to declaration.
14114         * gengtype-lex.l (malloc, realloc): Move defines after include of
14115         system.h.  Remove duplicate include of system.h.
14116
14117 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14118
14119         PR middle-end/9009
14120         * optabs.c (expand_unop):  When manipulating the FP sign bit
14121         using integer operations, account for targets with different
14122         integer and FP word orders.
14123         (expand_abs): Likewise.
14124
14125 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
14126
14127         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
14128         file extension in section name.
14129
14130 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
14131
14132         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
14133         constant offset.
14134
14135 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
14136
14137         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
14138         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
14139         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
14140         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
14141
14142 2003-01-15  Jan Hubicka  <jh@suse.cz>
14143
14144         PR f/9258
14145         * global.c (struct allocno): Add no_stack_reg.
14146         (global_conflicts): Set no_stack_reg.
14147         (find_reg): Use it.
14148
14149         * convert.c (convert_to_real): Fold - and abs only when profitable.
14150         * fold-const.c (fold): Fold truncates in - and abs.
14151
14152 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
14153
14154         Segher Boessenkool  <segher@koffie.nl>
14155
14156         * predict.c (real_inv_br_prob_base): New variable.
14157         (propagate_freq): Use multiply by reciprocal instead of
14158         division.  Don't divide by 1.0 at all.
14159         (estimate_bb_frequencies): Similar.
14160
14161 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
14162
14163         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
14164         * configure: Rebuilt.
14165
14166 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
14167
14168         * config/s390/s390.c (s390_safe_attr_type): New function.
14169         (s390_use_dfa_pipeline_interface): New function, return true for z900.
14170         (s390_issue_rate): New function.
14171         (s390_agen_dep_p): New function.
14172         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
14173         (s390_adjust_cost): Return 'cost' if new DFA is used.
14174         (s390_adjust_priority): Delete function.
14175         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
14176         * config/s390/s390.md (atype attribute): Attribute 'atype' default
14177         determined by 'op_type'.
14178         (type attribute): Added more type attributes.
14179         * config/s390/2064.md: New DFA description for z900 pipeline.
14180
14181 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
14182
14183         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
14184         forced to memory.  Fixes PR bootstrap/9036.
14185
14186         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
14187         to set $gp before the call.
14188
14189 2003-01-14  Richard Henderson  <rth@redhat.com>
14190
14191         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
14192         for force_const_mem.
14193
14194 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14195
14196         * genattr.c (main): Rearrange output to avoid prototype warning.
14197         * genautomata.c (transform_3): Fix ambiguous-else warning.
14198         * local-alloc.c (requires_inout): Add parentheses around
14199         assignment used as truth-value.
14200         * timevar.c: Move system includes above local includes.  Include
14201         toplev.h
14202         * Makefile.in (timevar.o): Depend on toplev.h.
14203
14204 2003-01-14  Denis Chertykov  <denisc@overta.ru>
14205
14206         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
14207         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
14208
14209         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
14210         attributes.
14211         (TARGET_ATTRIBUTE_TABLE): New macro.
14212         (valid_machine_type_attribute): Remove.
14213         (valid_machine_decl_attribute): Remove.
14214         (ip2k_handle_progmem_attribute): New function.
14215         (ip2k_handle_fndecl_attribute): New function.
14216
14217 2003-01-10  Andrew Haley  <aph@redhat.com>
14218
14219         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
14220         registers to be in correct order.  Add rip.
14221
14222 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
14223
14224         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
14225         (*iorsi3_and_lshiftrt_9_sb): Likewise.
14226
14227 2003-01-14  Jan Hubicka  <jh@suse.cz>
14228
14229         * convert.c (strip_float_extensions):  Look for narrowest type handling
14230         FP constants.
14231
14232         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
14233         float1 CMP float2.
14234         * convert.c (strip_float_extensions): Make global.
14235         * tree.h (strip_float_extensions): Declare.
14236
14237 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14238
14239         * timevar.def: define TV_NAME_LOOKUP.
14240         * timevar.c (timevar_pop): Be verbose when aborting.
14241
14242 2003-01-13  Andreas Schwab  <schwab@suse.de>
14243
14244         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
14245         $(parsedir), just move the temporary file at the end.
14246         ($(parsedir)/gengtype-yacc.c): Likewise.
14247
14248 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
14249
14250         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
14251         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
14252         splitting.
14253         * configure: Rebuilt.
14254
14255 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14256
14257         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
14258         internal_mcount): Don't use PARAMS.
14259         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
14260         ISO C style.
14261         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
14262
14263 2003-01-13  Andreas Schwab  <schwab@suse.de>
14264
14265         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
14266         directive.
14267
14268 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
14269
14270         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
14271         (*iorsi3_and_lshiftrt_n_sb): Likewise.
14272
14273 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
14274
14275         PR c++/9264
14276         * c-lex.c (c_lex): Set the token value to error_mark_node for
14277         invalid numeric constants.
14278
14279 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14280
14281         * c-pch.c (asm_file_startpos): Change to `long'.
14282         (pch_init): Use ftell, not ftello.
14283         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
14284         Use `long' instead of `off_t'.
14285         (c_common_read_pch): Likewise.
14286         * ggc-common.c (gt_pch_save): Use long/ftell instead of
14287         off_t/ftello.
14288
14289 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
14290
14291         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
14292
14293 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
14294
14295         * arm-protos.h (struct cpp_reader): Add declaration.
14296
14297 2003-01-11  Jan Hubicka  <jh@suse.cz>
14298
14299         PR target/9068
14300         * i386.c (output_fp_compare): Fix typo.
14301
14302 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
14303
14304         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
14305
14306 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
14307
14308         * Makefile.in (parsedir): New variable.
14309         (docobjdir): New variable.
14310         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
14311         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
14312         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
14313         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
14314         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
14315         Use docobjdir.
14316         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
14317         objc.maintainer-clean): Use parsedir.
14318
14319         * varasm.c (struct constant_descriptor_rtx): Remove unused
14320         `label' field.
14321
14322         * toplev.c (documented_lang_options): Document -Winvalid-pch.
14323
14324 2003-01-10  Richard Henderson  <rth@redhat.com>
14325
14326         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
14327         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
14328
14329 2003-01-10  Richard Henderson  <rth@redhat.com>
14330
14331         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
14332         not INTEGRAL_MODE_P when widening extensions.
14333
14334 2003-01-10  Richard Henderson  <rth@redhat.com>
14335
14336         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
14337
14338 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
14339
14340         * ggc-page.c (ggc_collect): Avoid overflow computing
14341         min_expand.
14342
14343         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
14344         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
14345         Remove calls.
14346         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
14347
14348 2003-01-10  Jan Hubicka  <jh@suse.cz>
14349
14350         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
14351         with weird operands.
14352
14353 2003-01-10  Dale Johannesen <dalej@apple.com>
14354
14355         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
14356         parameters.  Call check_sibcall_argument_overlap if indicated.
14357         (check_sibcall_argument_overlap):  Add mark_stored_args_map
14358         parameter.  Don't mark parameter area as clobbered if not set.
14359         (expand_call):  Adjust calls to above.
14360
14361 2003-01-10 Kelley Cook <kelleycook@comcast.net>
14362
14363         * configure.in (linker read-only and read-write section mixing):
14364         Squelch some assembler warnings.
14365         * configure: Likewise.
14366
14367 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
14368
14369         * doc/invoke.texi: Document -mtune, delete -mcpu
14370         option for S/390 and zSeries.
14371         * config/s390/s390.c (s390_tune_string) New variable.
14372         (s390_cpu_string) Delete variable.
14373         (override_options): Use s390_tune_string instead of
14374         s390_cpu_string.
14375         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
14376
14377 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
14378
14379         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
14380
14381 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
14382
14383         * jump.c (next_nonnote_insn_in_loop): New function.
14384         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
14385         next_nonnote_insn.
14386         (duplicate_loop_exit_test). Likewise.
14387
14388 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
14389
14390         Merge from pch-branch:
14391
14392         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
14393
14394         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
14395         load.
14396
14397         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
14398
14399         * cpplib.c (count_registered_pragmas): New function.
14400         (save_registered_pragmas): New function.
14401         (_cpp_save_pragma_names): New function.
14402         (restore_registered_pragmas): New function.
14403         (_cpp_restore_pragma_names): New function.
14404         * cpphash.h (_cpp_save_pragma_names): Prototype.
14405         (_cpp_restore_pragma_names): Likewise.
14406         * cpppch.c (struct save_macro_item): Split from save_macro_data.
14407         (struct save_macro_data): New field 'saved_pragmas'.
14408         (save_macros): Update for changes to struct save_macro_data.
14409         (cpp_prepare_state): Call _cpp_save_pragma_names, update
14410         for changes to struct save_macro_data.
14411         (cpp_read_state): Call _cpp_restore_pragma_names, update
14412         for changes to struct save_macro_data.
14413
14414         * cpppch.c (cpp_read_state): Restore the hashtable references
14415         in the cpp_reader.
14416
14417         * tree.h (built_in_decls): Mark for PCH.
14418
14419         * dbxout.c (lastfile): Don't mark for PCH.
14420
14421         * ggc.h: Document PCH calls into memory managers.
14422
14423         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
14424
14425         * doc/invoke.texi (Precompiled Headers): Document the
14426         directory form of PCH.
14427         * cppfiles.c (validate_pch): New function.
14428         (open_file_pch): Search suitably-named directories for PCH files.
14429
14430         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
14431
14432         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
14433         reorder options.
14434         (Type Information): Mention that the information is also
14435         used to implement PCH.
14436         * doc/passes.texi (Passes): Improve documentation of
14437         language-specific files.
14438
14439         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
14440
14441         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
14442         (struct walk_type_data): Add reorder_fn field.
14443         (walk_type): Process 'reorder' option.
14444         (write_types_process_field): Reorder parameters to gt_pch_note_object,
14445         call reorder_note_routine.
14446         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
14447         (ggc_wtd): Update for change to struct write_types_data.
14448         (pch_wtd): Likewise.
14449         * ggc.h (gt_pch_note_object): Reorder parameters.
14450         (gt_handle_reorder): New definition.
14451         (gt_pch_note_reorder): New prototype.
14452         * ggc-common.c (struct ptr_data): Add reorder_fn.
14453         (gt_pch_note_object): Reorder parameters.
14454         (gt_pch_note_reorder): New.
14455         (gt_pch_save): Call reorder_fn.
14456         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
14457
14458         * dbxout.c (cwd): Don't mark for PCH.
14459
14460         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
14461
14462         * gengtype.c (finish_root_table): Fix some warnings.
14463         (write_root): Handle TYPE_STRING.
14464         * ggc.h (gt_ggc_m_S): Add prototype.
14465         * stringpool.c (gt_ggc_m_S): New function.
14466
14467         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
14468
14469         * dwarf2out.c (dw2_string_counter): New.
14470         (AT_string_form): Use it.
14471         (same_dw_val_p): Update for removal of hashtable.h hash tables.
14472
14473         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
14474
14475         * dbxout.c: Include gt-dbxout.h.
14476         (lastfile): Mark for PCH/GGC.
14477         (cwd): Likewise.
14478         (struct typeinfo): Likewise.
14479         (typevec): Likewise.
14480         (typevec_len): Likewise.
14481         (next_type_number): Likewise.
14482         (struct dbx_file): Likewise.
14483         (current_file): Likewise.
14484         (next_file_number): Likewise.
14485         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
14486         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
14487         (dbxout_end_source_file): Don't free struct dbx_file.
14488         (dbxout_type): Use GGC to allocate typevec.
14489         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
14490         (GTFILES): Add dbxout.c.
14491         (gt-dbxout.h): New rule.
14492
14493         * Makefile.in (c-pch.o): Add debug.h as dependency.
14494         * c-pch.c: Include debug.h.
14495         (pch_init): Call start_source_file to keep nesting right.
14496         (c_common_read_pch): Add orig_name parameter.  Call
14497         start_source_file debug hook.  Call end_source_file debug hook.
14498         * c-common.h (c_common_read_pch): Update prototype.
14499         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
14500         callback.
14501         * cppfiles.c (struct include_file): Add new field `header_name'.
14502         (find_or_create_entry): Default it to `name'.
14503         (open_file_pch): Set it to the original header file searched for.
14504         (stack_include_file): Don't stack an empty buffer, just handle
14505         PCH files immediately.  Pass header_name field to read_pch callback.
14506
14507         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
14508
14509         * function.c (funcdef_no): Mark to be saved in a PCH.
14510
14511         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
14512
14513         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
14514
14515         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
14516
14517         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
14518
14519         * optabs.h (code_to_optab): Add GTY marker.
14520
14521         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
14522
14523         * Makefile.in (GTFILES): Add cpplib.h.
14524         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
14525         * c-decl.c (build_compound_literal): Don't use var_labelno.
14526         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
14527         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
14528         * varasm.c (const_labelno): Use gengtype to mark.
14529         (var_labelno): Likewise.
14530         (in_section): Likewise.
14531         (in_named_name): Likewise.
14532         (struct in_named_entry): Likewise.
14533         (in_named_htab): Likewise.
14534         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
14535         (init_varasm_once): Use GGC to allocate in_named_htab.
14536         * config/darwin.c (current_pic_label_num): Mark for PCH.
14537
14538         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
14539
14540         * ggc-simple.c (init_ggc_pch): New stub procedure.
14541         (ggc_pch_count_object): Likewise.
14542         (ggc_pch_total_size): Likewise.
14543         (ggc_pch_this_base): Likewise.
14544         (ggc_pch_alloc_object): Likewise.
14545         (ggc_pch_prepare_write): Likewise.
14546         (ggc_pch_write_object): Likewise
14547         (ggc_pch_finish): Likewise.
14548         (ggc_pch_read): Likewise.
14549
14550         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
14551
14552         * c-pch.c (c_common_write_pch): Write the macro definitions after
14553         the GCed data.
14554         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
14555         definitions after the GCed data.
14556         * cpplib.c (save_macros): New.
14557         (reset_ht): New.
14558         (cpp_write_pch_deps): Split out of cpp_write_pch.
14559         (cpp_write_pch_state): Split out of cpp_write_pch.
14560         (cpp_write_pch): Delete.
14561         (struct save_macro_data): Delete.
14562         (cpp_prepare_state): New.
14563         (cpp_read_state): Erase and restore initial macro definitions.
14564         * cpplib.h (struct save_macro_data): Forward-declare.
14565         (cpp_write_pch_deps): Prototype.
14566         (cpp_write_pch_state): Prototype.
14567         (cpp_write_pch): Delete prototype.
14568         (cpp_prepare_state): Prototype.
14569         (cpp_read_state): Add fourth argument.
14570
14571         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
14572
14573         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
14574         (write_array): Remove warning.
14575
14576         * gengtype.c (contains_scalar_p): New.
14577         (finish_root_table): Add the table to all languages, even if it's
14578         empty.
14579         (write_roots): Output gt_pch_scalar_rtab.
14580         * ggc-common.c (gt_pch_save): Write out scalars.
14581         (gt_pch_restore): Read scalars back.
14582
14583         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
14584         (struct page_entry): Delete pch_page field.
14585         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
14586         (clear_marks): Likewise.
14587         (sweep_pages): Likewise.
14588         (poison_pages): Likewise.
14589         (ggc_print_statistics): Likewise.
14590         (ggc_pch_read): Don't free objects read from a PCH.
14591         Properly set up in_use_p and page_tails.
14592
14593         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
14594
14595         * gengtype.c (struct write_types_data): New.
14596         (struct walk_type_data): Make `cookie' const; add extra
14597         prev_val item; add `orig_s' field.
14598         (walk_type): Update prev_val[3].
14599         (write_types_process_field): New.
14600         (write_func_for_structure): Take write_types_data structure.
14601         (write_types): New.
14602         (ggc_wtd): New.
14603         (pch_wtd): New.
14604         (write_types_local_process_field): New.
14605         (gc_mark_process_field): Delete.
14606         (write_local_func_for_structure): New.
14607         (gc_mark_func_name): Delete.
14608         (write_gc_types): Delete.
14609         (write_local): New.
14610         (finish_root_table): Don't include 'ggc_' in PFX.
14611         (write_root): Rename from write_root.  Fill pchw field of structures.
14612         (write_array): New.
14613         (write_roots): Rename from write_gc_roots.  Split out to write_array.
14614         Update to changes to other routines.  Write gt_pch_cache_rtab table.
14615         (main): Write PCH walking routines.
14616         * ggc-common.c: Include toplev.h, sys/mman.h.
14617         (ggc_mark_roots): For cache hashtables, also mark the hash table
14618         and the array of entries.
14619         (saving_htab): New.
14620         (struct ptr_data): New.
14621         (POINTER_HASH): New.
14622         (gt_pch_note_object): New.
14623         (saving_htab_hash): New.
14624         (saving_htab_eq): New.
14625         (struct traversal_state): New.
14626         (call_count): New.
14627         (call_alloc): New.
14628         (compare_ptr_data): New.
14629         (relocate_ptrs): New.
14630         (write_pch_globals): New.
14631         (struct mmap_info): New.
14632         (gt_pch_save): New.
14633         (gt_pch_restore): New.
14634         * ggc-page.c (ROUND_UP_VALUE): New.
14635         (ROUND_UP): New.
14636         (struct page_entry): Add field `pch_page'.
14637         (init_ggc): Use ROUND_UP.
14638         (struct ggc_pch_data): Declare.
14639         (init_ggc_pch): New.
14640         (ggc_pch_count_object): New.
14641         (ggc_pch_total_size): New.
14642         (ggc_pch_this_base): New.
14643         (ggc_pch_alloc_object): New.
14644         (ggc_pch_prepare_write): New.
14645         (ggc_pch_write_object): New.
14646         (ggc_pch_finish): New.
14647         (ggc_pch_read): New.
14648         * ggc.h (gt_pointer_operator): New.
14649         (gt_note_pointers): New.
14650         (gt_pch_note_object): New prototype.
14651         (gt_pointer_walker): New.
14652         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
14653         (LAST_GGC_ROOT_TAB): Update.
14654         (gt_pch_cache_rtab): Declare.
14655         (gt_pch_scalar_rtab): Declare.
14656         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
14657         (LAST_GGC_CACHE_TAB): Update.
14658         (gt_pch_save_stringpool): Declare.
14659         (gt_pch_restore_stringpool): Declare.
14660         (gt_pch_p_S): Declare.
14661         (gt_pch_n_S): Declare.
14662         (struct ggc_pch_data): Forward-declare.
14663         (init_ggc_pch): Declare.
14664         (ggc_pch_count_object): Declare.
14665         (ggc_pch_total_size): Declare.
14666         (ggc_pch_this_base): Declare.
14667         (ggc_pch_alloc_object): Declare.
14668         (ggc_pch_prepare_write): Declare.
14669         (ggc_pch_write_object): Declare.
14670         (ggc_pch_finish): Declare.
14671         (ggc_pch_read): Declare.
14672         (gt_pch_save): Declare.
14673         (gt_pch_restore): Declare.
14674         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
14675         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
14676         const_double_htab, mem_attrs_htab using GGC.
14677         * c-pch.c: Include ggc.h.
14678         (pch_init): Allow reading PCH file back.
14679         (c_common_write_pch): Call gt_pch_save.
14680         (c_common_read_pch): Call gt_pch_restore.
14681         * c-parse.in (init_reswords): Delete now-untrue comment.
14682         Allocate ridpointers using GGC.
14683         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
14684         calling expand_deferred_fns.
14685         * c-common.h (ridpointers): Mark for GTY machinery.
14686         * Makefile.in (stringpool.o): Update dependencies.
14687         (c-pch.o): Update dependencies.
14688         (ggc-common.o): Update dependencies.
14689         * stringpool.c: Include gt-stringpool.h.
14690         (gt_pch_p_S): New.
14691         (gt_pch_n_S): New.
14692         (struct string_pool_data): New.
14693         (spd): New.
14694         (gt_pch_save_stringpool): New.
14695         (gt_pch_restore_stringpool): New.
14696         * tree.c (init_ttree): Make type_hash_table allocated using GC.
14697
14698         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
14699
14700         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
14701         (output_mangled_typename): Don't pass size_t to printf.
14702
14703         * tree.h (union tree_type_symtab): Add tag to `address' field.
14704         (union tree_decl_u2): Add tag to 'i' field.
14705         * varasm.c (union rtx_const_un): Add tags to all fields.
14706         * gengtype.c (struct walk_type_data): New.
14707         (output_escaped_param): Take struct walk_type_data parameter.
14708         (write_gc_structure_fields): Delete.
14709         (walk_type): New.
14710         (write_gc_marker_routine_for_structure): Delete.
14711         (write_func_for_structure): New.
14712         (gc_mark_process_field): New.
14713         (gc_mark_func_name): New.
14714         (gc_counter): Delete.
14715         (write_gc_types): Use write_func_for_structure.
14716         (write_gc_roots): Use walk_type.
14717
14718         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
14719
14720         * ggc-common.c (ggc_mark_roots): Delete 'x'.
14721         (ggc_splay_dont_free): Fix warning about unused 'x'.
14722         (ggc_print_common_statistics): Remove warnings.
14723
14724         2002-10-01  Mike Stump  <mrs@apple.com>
14725
14726         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
14727         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
14728
14729         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
14730             Catherine Moore  <clm@redhat.com>
14731
14732         * Makefile (c-pch.o): Update dependencies.
14733         (LIBCPP_OBJS): Add cpppch.o.
14734         (cpppch.o): New.
14735         * c-common.c (c_common_init): Don't call pch_init here.
14736         * c-common.h (c_common_read_pch): Update prototype.
14737         * c-lex.c (c_common_parse_file): Call pch_init here.
14738         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
14739         (c_common_decode_option): Handle them.
14740         * c-pch.c: Include c-pragma.h.
14741         (save_asm_offset): Delete.
14742         (pch_init): Move contents of save_asm_offset into here, call
14743         cpp_save_state.
14744         (c_common_write_pch): Call cpp_write_pch.
14745         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
14746         cpp_valid_state.
14747         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
14748         * cppfiles.c (stack_include_file): Update for change to
14749         parameters of cb.read_pch.
14750         * cpphash.h (struct cpp_reader): Add `savedstate' field.
14751         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
14752         `restore_pch_deps' fields.
14753         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
14754         (cpp_save_state): Prototype.
14755         (cpp_write_pch): Prototype.
14756         (cpp_valid_state): Prototype.
14757         (cpp_read_state): Prototype.
14758         * cpppch.c: New file.
14759         * flags.h (version_flag): Remove prototype.
14760         * mkdeps.c (deps_save): New.
14761         (deps_restore): New.
14762         * mkdeps.h (deps_save): Prototype.
14763         (deps_restore): Prototype.
14764         * toplev.c (late_init_hook): Delete.
14765         (version_flag): Make static again.
14766         (compile_file): Don't call late_init_hook.
14767         * toplev.h (late_init_hook): Delete.
14768         * doc/cppopts.texi: Document -fpch-deps.
14769         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
14770
14771         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
14772
14773         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
14774         callers.
14775         (c_common_valid_pch): Rename from c_valid_pch, change callers.
14776         (c_common_read_pch): Rename from c_read_pch, change callers.
14777
14778         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
14779         a space between it and its argument.
14780
14781         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
14782
14783         * c-pch.c: New file.
14784         * toplev.h (late_init_hook): Declare.
14785         * toplev.c (late_init_hook): Define.
14786         (version_flag): Make globally visible.
14787         (compile_file): Call late_init_hook.
14788         (init_asm_output): Make output file seekable.
14789         * gcc.c (default_compilers): Update c-header rule.
14790         * flags.h (version_flag): Declare.
14791         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
14792         fields.
14793         * cppfiles.c (struct include_file): Add 'pch' field.
14794         (INCLUDE_PCH_P): New.
14795         (open_file_pch): New.
14796         (stack_include_file): Handle PCH files specially.
14797         (find_include_file): Call open_file_pch instead of open_file.
14798         (_cpp_read_file): Explain why open_file is used instead of
14799         open_file_pch.
14800         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
14801         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
14802         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
14803         in cpplib callbacks.
14804         * c-common.c (pch_file): Correct comment.
14805         (allow_pch): Define.
14806         (c_common_init): Call pch_init.
14807         * c-common.h (allow_pch): Declare.
14808         (pch_init): Declare.
14809         (c_valid_pch): Declare.
14810         (c_read_pch): Declare.
14811         (c_write_pch): Declare.
14812         * Makefile.in (c-pch.o): New.
14813         (C_AND_OBJC_OBJS): Add c-pch.o.
14814         * doc/invoke.texi (Precompiled Headers): Add index entries,
14815         complete truncated paragraph.
14816
14817         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
14818
14819         * c-common.c: (pch_file): Define.
14820         * c-common.h (pch_file): Declare.
14821         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
14822         (missing_arg): Require --output-pch= to have an argument.
14823         (c_common_decode_option): Handle --output-pch=.
14824         * gcc.c: Document new %V.
14825         (default_compilers): Handle compiling C header files.
14826         (do_spec_1): Implement %V.
14827         (main): Handle "gcc foo.h" without trying to run linker.
14828         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
14829         (Overall Options): Document what the driver does with header files,
14830         document new -x option possibilities.
14831         (Invoking G++): More documentation for PCH.
14832         (Precompiled Headers): New.
14833
14834         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
14835
14836         * ggc.h: Don't include varray.h.  Rearrange functions to be more
14837         organized.
14838         (ggc_add_root): Delete.
14839         (ggc_mark_rtx): Delete.
14840         (ggc_mark_tree): Delete.
14841         (struct ggc_statistics): Remove contents.
14842         * ggc-common.c: Remove unneeded includes.
14843         (struct ggc_root): Delete.
14844         (roots): Delete.
14845         (ggc_add_root): Delete.
14846         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
14847         (ggc_print_common_statistics): Remove most of the contents.
14848         * Makefile.in (GGC_H): No longer uses varray.h.
14849         (ggc-common.o): Update dependencies.
14850         (c-parse.o): Add varray.h to dependencies.
14851         (c-common.o): Add varray.h.
14852         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
14853         (mark_ident_hash): Rename to ggc_mark_stringpool.
14854         (init_stringpool): Don't use ggc_add_root.
14855         * c-parse.in: Include varray.h.
14856         * c-common.c: Include varray.h.
14857         * objc/Make-lang.in (objc-act.o): Add varray.h.
14858         * objc/objc-act.c: Include varray.h.
14859
14860         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
14861
14862         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
14863         (dw_cfi_oprnd1_desc): Likewise.
14864
14865         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
14866
14867         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
14868         move out of ifdef.
14869         (alpha_links): Use gengtype to mark; move out of ifdef.
14870         (mark_alpha_links_node): Delete.
14871         (mark_alpha_links): Delete.
14872         (alpha_need_linkage): Use GGC to allocate splay tree, struct
14873         alpha_links, strings.  Don't use ggc_add_root.
14874         * ggc-common.c (ggc_splay_alloc): New.
14875         (ggc_splay_dont_free): New.
14876         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
14877         (ggc_mark_tree): Likewise.
14878         (splay_tree_new_ggc): New.
14879         (ggc_splay_alloc): Declare.
14880         (ggc_splay_dont_free): Declare.
14881         * dwarf2asm.c: Include gt-dwarf2asm.h.
14882         (mark_indirect_pool_entry): Delete.
14883         (mark_indirect_pool): Delete.
14884         (indirect_pool): Use gengtype to mark.
14885         (dw2_force_const_mem): Don't use ggc_add_root.
14886         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
14887         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
14888         (gt-dwarf2asm.h): Depend on s-gtype.
14889
14890         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
14891
14892         * tree.h (union tree_type_symtab): Mark `die' field.
14893         * Makefile.in (dwarf2out.o): Update dependencies.
14894         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
14895         hash tables.
14896         (dw_cfi_oprnd1_desc): New function.
14897         (dw_cfi_oprnd2_desc): New function.
14898         (indirect_string_alloc): Delete.
14899         (debug_str_do_hash): New function.
14900         (debug_str_eq): New function.
14901         (mark_limbo_die_list): Delete.
14902         (dwarf2out_init): Don't call ggc_add_root.
14903
14904 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
14905
14906         The following changes are merged from itanium-sched-branch:
14907
14908         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
14909
14910         * doc/md.texi: Clarify assignment of units to automata description.
14911
14912         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
14913
14914         * genautomata.c (unit_decl): Remove members
14915         `the_same_automaton_unit' and
14916         `the_same_automaton_message_reported_p'.
14917         (process_unit_to_form_the_same_automaton_unit_lists,
14918         form_the_same_automaton_unit_lists_from_regexp,
14919         form_the_same_automaton_unit_lists, the_same_automaton_lists):
14920         Remove them.
14921         (annotation_message_reported_p): New global variable.
14922         (check_unit_distribution_in_reserv,
14923         check_regexp_units_distribution): New functions.
14924         (check_unit_distributions_to_automata): Rewrite it.
14925
14926         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
14927
14928         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
14929         Use continue instead of break if cycle is too big.
14930
14931         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
14932
14933         * genautomata.c (check_unit_distributions_to_automata): Output at
14934         most one message for a unit.
14935         (process_unit_to_form_the_same_automaton_unit_lists): Check
14936         automaton of units instead of units themself.
14937
14938         * doc/md.texi: Describe the constraint about assigning unit to
14939         automata.
14940
14941         2002-12-20  Jan Hubicka  <jH@suse.cz>
14942                     Vladimir Makarov  <vmakarov@redhat.com>
14943
14944         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
14945         and `in_set_p'.
14946         (gen_cpu_unit): Initialize the new members.
14947         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
14948         up `min_occ_cycle_num'.
14949         (evaluate_max_reserv_cycles): Change the function call.
14950         (CLEAR_BIT): New macro.
14951         (states_union, state_shift): Use the mask.
14952         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
14953         (form_reservs_matter): New function.
14954         (make_automaton): Call the function and use the mask.
14955         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
14956         account.
14957
14958         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
14959
14960         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
14961
14962         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
14963
14964         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
14965         for Itanium.
14966
14967         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
14968
14969         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
14970         default cpu.
14971
14972         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
14973                 2002-10-31  Dale Johannesen <dalej@apple.com>
14974
14975         * haifa-sched.c (find_set_reg_weight): New function.
14976         (find_insn_reg_weight): Use the new function.
14977         (schedule_block): Do sorting ready queue always
14978         after insn issue.
14979
14980         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
14981
14982         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
14983
14984         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
14985
14986         * haifa-sched.c (choice_entry): New structure.
14987         (choice_stack, cycle_issued_insns): New variables.
14988         (max_issue): Rewrite it.
14989         (choose_ready): Set up ready_try for unknown insns too.
14990         (schedule_block): Allocate and free choice_stack.  Set up
14991         and modify cycle_issued_insns.
14992
14993         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
14994         with and without filling the bundle.
14995         (bundling): Combine calls of issue_nops_and_insn.
14996
14997         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
14998
14999         * config/ia64/itanium1.md: New file.
15000
15001         * config/ia64/itanium2.md: New file.
15002
15003         * config/ia64/ia64.md: Move DFA descriptions into the new files.
15004         Remove the old pipeline description.
15005
15006         * config/ia64/ia64.c (ia64_override_options): Add aliases of
15007         itanium processor names.
15008
15009         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
15010
15011         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
15012         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
15013
15014         * config/ia64/ia64.md: Add descriptions for Itanium2.
15015
15016         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
15017
15018         * config/ia64/ia64.h (processor_type): New enumeration.
15019         (ia64_tune, ia64_tune_string): New external declarations.
15020         (TARGET_OPTIONS): Add option `tune='.
15021
15022         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
15023         variables.
15024         (ia64_override_options): Set up `ia64_tune'.
15025         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
15026         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
15027         (bundling): Add nops for MM-insns only for Itanium.
15028         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
15029         Itanium.
15030
15031         * config/ia64/ia64.md (cpu): New attribute.
15032         (DFA description): Enable it only for Itanium.
15033
15034         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
15035                     Richard Henderson  <rth@redhat.com>
15036
15037         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
15038         MASK_EARLY_STOP_BITS.
15039         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
15040         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
15041         `early-stop-bits'.
15042
15043         * config/ia64/ia64.c (ia64_dfa_new_cycle,
15044         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
15045         instead of TARGET_TUNE_STOP_BITS.
15046
15047         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
15048         `-mearly-stop-bits'.
15049
15050         * config/ia64/ia64.c (automata_option "v"): Comment it.
15051
15052         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
15053
15054         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
15055         New macros.
15056         (TARGET_SWITCHES): Add entries for the new option.
15057
15058         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
15059         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
15060         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
15061         global variables.
15062         (ia64_sched_reorder2): Set up `clocks'.
15063         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
15064         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
15065         queue when TARGET_TUNE_STOP_BITS.
15066         (bundling): Insert additional nops for MM-insns.
15067         (final_emit_insn_group_barriers): Add insertion of stop bits
15068         according `stops_p'.
15069         (ia64_reorg): Initiate the new varibales.
15070
15071         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
15072
15073         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
15074
15075         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
15076         insns at the end of block insn scheduling.
15077
15078         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
15079
15080         * sched-deps.c (remove_dependence, group_leader): Remove it.
15081         (add_dependence): Add dependence to group leader to.
15082         (set_sched_group_p): Add dependence to the first insn of the
15083         schedule group too.
15084         (sched_analyze_insn): Make dependence to jump as anti-dependence.
15085         Change true dependence by anti-dependence when
15086         `reg_pending_barrier'.
15087
15088         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
15089         add_branch_dependences): Ignore schedule groups.
15090
15091         * sched-ebb.c (init_ready_list): Ditto.
15092
15093         * (move_insn, set_priorities): Ditto.
15094
15095         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
15096         flag is clear after reload.
15097         (adjust_cost): Change cost only for output dependencies.
15098
15099         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
15100
15101         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
15102
15103         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
15104
15105         * target.h (gcc_target): Add member
15106         `dependencies_evaluation_hook'.
15107
15108         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
15109         macro.
15110         (TARGET_SCHED): Add initiatialization of the new member.
15111
15112         * sched-ebb.c: Include `target.h'.
15113         (schedule_ebb): Call `dependencies_evaluation_hook'.
15114
15115         * sched-rgn.c (schedule_region): Call
15116         `dependencies_evaluation_hook'.
15117
15118         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
15119         New macro.
15120         (ia64_dependencies_evaluation_hook): New function.
15121
15122         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
15123         Describe the new hook.
15124
15125         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
15126
15127         * target.h (gcc_target): Add members
15128         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
15129
15130         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
15131         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
15132         macros.
15133         (TARGET_SCHED): Add initiatialization of the new members.
15134
15135         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
15136         insn scheduling too.
15137         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
15138         initialize `ready_try'.
15139         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
15140         `dfa_new_cycle' says not to do it.
15141
15142         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
15143         bundling.
15144
15145         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
15146
15147         * config/ia64/ia64.c: Include `hashtab.h'.
15148         (ia64_first_cycle_multipass_dfa_lookahead_guard,
15149         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
15150         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
15151         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
15152         bundle_state_eq_p, insert_bundle_state,
15153         initiate_bundle_state_table, finish_bundle_state_table,
15154         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
15155         get_template, get_next_important_insn, bundling): New functions.
15156         (ia64_internal_sched_reorder): Remove it.
15157         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
15158         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
15159         (ia64_safe_itanium_requires_unit0): Remove it.
15160         (group_barrier_needed_p): Place group barrier right before a real
15161         insn.
15162         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
15163         Remove them.
15164         (bundle_name): New variable.
15165         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
15166         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
15167         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
15168         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
15169         temp_dfa_state, prev_cycle_state): New global variables.
15170         (insn_matches_slot, maybe_rotate, finish_last_head,
15171         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
15172         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
15173         find_best_packet, itanium_reorder, dump_current_packet,
15174         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
15175         (sched_data, sched_ready, sched_types): Remove them.
15176         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
15177         `init_insn_group_barriers'.
15178         (ia64_sched_reorder, ia64_sched_reorder2): Call
15179         ia64_dfa_sched_reorder.
15180         (ia64_variable_issue): Rewrite it.
15181         (bundle_state): New structure.
15182         (index_to_bundle_states, bundle_states_num,
15183         allocated_bundle_states_chain, free_bundle_state_chain): New
15184         global variables.
15185         (ia64_sched_finish): Add stop bits and call `bundling' after the
15186         2nd insn scheduling.
15187         (ia64_use_dfa_pipeline_interface): Return zero always.
15188         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
15189         insn scheduling.
15190         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
15191         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
15192         (ia64_reorg): Add bundling insns.
15193
15194         * doc/tm.texi
15195         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
15196         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
15197
15198         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
15199
15200         * config/ia64/ia64.md: Add Itanium1 DFA description.
15201         (itanium_class): Add `nop' and `pre_cycle'.  Add
15202         define_function_unit for `nop'.
15203         (nop): Change attribute `itanium_class'.
15204         (pre_cycle): New define_insn.
15205
15206         * config/ia64/ia64-protos.h (bundling_p): New external variable.
15207         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
15208         ia64_produce_address_p): New function prototypes.
15209
15210         * config/ia64/ia64.c (bundling_p): New global variable.
15211         (ia64_use_dfa_pipeline_interface,
15212         ia64_first_cycle_multipass_dfa_lookahead,
15213         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
15214         functions.
15215         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15216         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15217         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
15218         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
15219         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
15220         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
15221         (dfa_pre_cycle_insn): New variable.
15222
15223         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15224
15225         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
15226         constructions.
15227
15228         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
15229         New function prototypes.
15230
15231         * genattrtab.c (main): Process the new constructions.
15232
15233         * genautomata.c (gen_presence_absence_set,
15234         process_presence_absence_names, process_presence_absence_patterns,
15235         add_presence_absence, check_absence_pattern_sets): Add parameter
15236         `final_p'.
15237         (unit_decl): Add new members `final_presence_list' and
15238         `final_absence_list'.
15239         (unit_pattern_rel_decl): Add new member `final_p'.
15240         (gen_final_presence_set, gen_final_absence_set): New functions.
15241         (process_decls): Use member `final_p'.
15242         (temp_reserv): New global variable.
15243         (reserv_sets_are_intersected): Add processing `final_presence_set'
15244         and `final_absence_set'.
15245         (initiate_states): Allocate `temp_reserv'.
15246         (unit_final_presence_set_table, unit_final_absence_set_table): New
15247         gloabal variables.
15248         (initiate_presence_absence_pattern_sets): Initiate them.
15249         (NDFA_to_DFA): Fix typo.
15250         (output_description): Output `final_presence_set' and
15251         `final_absence_set'.
15252
15253         * doc/md.texi (final_presence_set, final_absence_set): Describe
15254         them.
15255
15256         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15257
15258         * genautomata.c (transform_3): Process a missing case (nothing on
15259         unit place).
15260
15261         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15262
15263         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
15264         comments about queried units and the minimization.
15265
15266         * doc/md.texi: Ditto.
15267
15268         * genautomata.c (create_composed_state): Return nonzero if the new
15269         state has been created.
15270         (first_cycle_unit_presence): New function.
15271         (state_is_differed): Add new parameter.  Use the new function.
15272         Take queried units into account.
15273         (partition_equiv_class): Pass additional parameter to
15274         `state_is_differed'.
15275         (merge_states): Process composed states too.
15276         (build_automaton, create_automata, output_min_issue_delay_table,
15277         output_tables, output_statistics): Output more information.
15278         (output_reserved_units_table): Use function
15279         `first_cycle_unit_presence'.
15280         (output_tables): Output table of queried units even if the
15281         minimization is switched on.
15282         (write_automata): Output code for querying units even if the
15283         minimization is switched on.
15284
15285         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
15286
15287         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
15288         syntax of the constructions.
15289
15290         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
15291         extended syntax of the constructions.
15292
15293         * genautomata.c (unit_rel_decl): Rename it to
15294         `unit_pattern_rel_decl'.
15295         (pattern_set_el, pattern_reserv): New structures.
15296         (pattern_set_el_t, pattern_reserv_t): New types.
15297         (gen_presence_absence_set): New function.
15298         (process_presence_absence): Remove it.
15299         (process_presence_absence_names,
15300         process_presence_absence_patterns): New functions.
15301         (get_presence_absence_set): Remove it.
15302         (initiate_presence_absence_sets): Rename it on
15303         `initiate_presence_absence_pattern_sets'.  Use new function
15304         `form_reserv_sets_list'.
15305         (form_reserv_sets_list, check_presence_pattern_sets,
15306         check_absence_pattern_sets, output_pattern_set_el_list): New
15307         functions.
15308         (unit_decl): Change types of members `presence_list' and
15309         `absence_list'.
15310         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
15311         (decl): Change types of members `excl', `presence', and `absence'.
15312         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
15313         at the end of the vector.
15314         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
15315         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
15316         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
15317         (gen_presence_set, gen_absence_set): Use new function
15318         `gen_presence_absence_set'.
15319         (add_presence_absence): Process `pattern_list' instead of
15320         `source_list'.
15321         (process_decls): USe new functions
15322         `process_presence_absence_names' and
15323         `process_presence_absence_patterns'.
15324         (reserv_sets_are_intersected): Use new function
15325         `check_presence_pattern_sets'.
15326         (presence_set, absence_set): Remove them.
15327         (unit_presence_set_table, unit_absence_set_table): New global
15328         variables.
15329         (output_description): Use new function
15330         `output_pattern_set_el_list'.
15331         (generate): Use `initiate_presence_absence_pattern_sets'.
15332
15333         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
15334
15335         * genattr.c (main): Add output of prototype of new interface
15336         function `dfa_clean_insn_cache'.
15337
15338         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
15339         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
15340         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
15341         the generated code.
15342         (write_automata): Call the new function.
15343
15344 2003-01-09  Jan Hubicka  <jh@suse.cz>
15345
15346         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
15347         correctly.
15348
15349 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
15350
15351         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
15352
15353 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
15354
15355         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
15356         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
15357         (CONSTRAINT_LEN): Provide default definition.
15358         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
15359         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
15360         (EXTRA_CONSTRAINT_STR): Likewise.
15361         (REG_CLASS_FROM_CONSTRAINT): Define.
15362         * genoutput.c (check_constraint_len, constraint_len): New functions.
15363         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
15364         constraint / modifier.
15365         (gen_insn): Call check_constraint_len.
15366         * local-alloc.c (block_alloc): Update to use new macros / pass
15367         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
15368         * ra-build.c (handle_asm_insn): Likewise.
15369         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15370         (constrain_operands, peep2_find_free_register): Likewise.
15371         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
15372         * regmove.c (find_matches): Likewise.
15373         * reload.c (push_secondary_reload, find_reloads): Likewise.
15374         (alternative_allows_memconst): Likewise.
15375         * reload1.c (maybe_fix_stack_asms): Likewise.
15376         (reload_cse_simplify_operands): Likewise.
15377         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15378         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
15379         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
15380         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
15381         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
15382         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
15383
15384         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
15385
15386 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15387
15388         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
15389         length.
15390         (*extzv_1_r_h8300hs): Likewise.
15391         (*extzv_1_r_inv_h8300): Likewise.
15392         (*extzv_1_r_inv_h8300hs): Likewise.
15393
15394 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15395
15396         * config/h8300/h8300.h (PREDICATE_CODES): New.
15397
15398 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15399
15400         * config/h8300/h8300.md (*addsi3_upper): New.
15401         (*iorsi3_shift): Likewise.
15402         (two splitters): Likewise.
15403         (*addsi3_shift): Likewise.
15404         (two splitters): Likewise.
15405
15406 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
15407
15408         * Makefile.in (optabs.o): Add dependency on basic-block.h.
15409         * basic-block.h (control_flow_insn_p): Fuction was exported.
15410         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
15411         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
15412         notes only when the region is contained in a single basic block.
15413
15414 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15415
15416         PR inline-asm/8832
15417         * tree.h (expand_asm): New prototype.
15418         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
15419         to do so.
15420         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
15421         down to expand_asm.
15422         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
15423         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
15424         (volatile_refs_p) [ASM_INPUT]: Likewise.
15425         (side_effects_p) [ASM_INPUT]: Likewise.
15426
15427 2003-01-09  Jan Hubicka  <jh@suse.cz>
15428
15429         * i386.md (*mul*): FIx constraints; remove confused comment; fix
15430         athlon_decode attributes
15431         (imul/k8 optimization peep2s): New.
15432
15433         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
15434         * i386.md (type attribute): Add ssecomi.
15435         (unit, memory, prefix attributes): Handle ssecomi.
15436         (cvt?2? patterns): Fix athlon_decode attribute
15437         (comi patterns): Set attribute to ssecomi.
15438
15439         PR target/8343
15440         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
15441
15442 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
15443
15444         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
15445         that match register_operands.
15446         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
15447         register_operand the default case.
15448
15449 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15450
15451         PR c/8032
15452         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
15453         an empty element, do not advance the pointer to unfilled
15454         fields if there are pending initializers.
15455
15456 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
15457
15458         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
15459         (install-gcc-tooldir, install-cpp, installdirs,
15460         install-common, install-driver, install-info, install-man,
15461         install-headers, install-include-dir, install-headers-tar,
15462         install-headers-cpio, install-headers-cp, install-mkheaders,
15463         install-collect2, uninstall): Prepend $(DESTDIR) to
15464         destination paths in all (un)installation commands.
15465         (install-driver): Rewrite $(LN) commands to support DESTDIR
15466         with "ln" as well as with "ln -s".
15467         (installdirs): Simply use mkinstalldirs.
15468         (install-libgcc, install-multilib): Also pass DESTDIR.
15469         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
15470         installation destination variable ldir.
15471         * config/alpha/t-osf4, config/arm/t-netbsd,
15472         config/ia64/t-hpux, config/mips/t-iris5-6,
15473         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
15474         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
15475         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
15476         in the definition of SHLIB_INSTALL.
15477         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
15478         $(libsubdir) in the installation commands.
15479
15480 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15481
15482         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
15483         non-optimizing compile.
15484         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
15485         compile.
15486
15487 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
15488
15489         * config/i386/i386.c (ix86_attribute_table): Add new attributes
15490         ms_struct and gcc_struct.
15491         (ix86_handle_struct_attribute): New function.
15492         (ix86_ms_bitfield_layout_p): Update to take new attributes
15493         into account.
15494         * doc/extend.texi: Document new attributes.
15495         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
15496
15497 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
15498
15499         PR optimization/8750
15500         * config/i386/i386.c (ix86_expand_prologue): Don't allow
15501         scheduling pass to move insns across __alloca call.
15502
15503 2003-01-08  Dale Johannesen  <dalej@apple.com>
15504
15505         * config/rs6000/rs6000.md:  Replace *store_multiple_string
15506         with *stmsi[3-8].
15507
15508 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
15509
15510         PR target/9210
15511         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
15512         Set SYMBOL_REF_FLAG on local data sym_ref.
15513
15514 2003-01-08  Dale Johannesen  <dalej@apple.com>
15515
15516         * function.c (assign_parms):  Don't set pretend_args_size if
15517           REG_PARM_STACK_SPACE.
15518           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
15519           pretend_args_size.
15520
15521 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
15522
15523         * gcc.hlp: Delete.
15524
15525 2003-01-09  Jan Hubicka  <jh@suse.cz>
15526
15527         * i386.c  (ix86_expand_int_addcc): Fix thinko.
15528
15529 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
15530
15531         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
15532         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
15533         as hook_bool_tree_hwi_hwi_tree_true.
15534         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
15535         (rs6000_emit_epilogue): Same.
15536         (rs6000_output_mi_thunk): Re-implement as RTL.
15537         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
15538         xcoffout_declare_function if any debugging enabled.
15539
15540 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
15541
15542         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
15543         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
15544         * config/mips/mips.h (enum processor_type): Rename
15545         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
15546         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
15547         Add PROCESSOR_M4K.
15548         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
15549         (ISA_MIPS32R2): New define.
15550         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
15551         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
15552         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
15553         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
15554         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
15555         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
15556         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
15557         compiling MIPS16 code.
15558         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
15559         comment.
15560         (ISA_HAS_SEB_SEH): New define.
15561         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
15562         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
15563         processor_type value renaming.  Add support for MIPS32R2.
15564         Clean up comments, and move "sb1" entry with other MIPS64 CPU
15565         entries.
15566         (override_options): Reimplement -mipsN option handling so that
15567         it will work correctly for -mips32r2.  Avoid branch-likely
15568         instructions on MIPS32R2.
15569         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
15570         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
15571         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
15572         (extendhisi2_hw, extendqisi2_hw): New.
15573         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
15574         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
15575         MIPS32R2, and MIPS64.
15576         (LINK_SPEC): Pass -mips32r2 to linker.
15577         * config/mips/t-isa3264: Built -mips32r2 multilibs.
15578         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
15579         for mips32r2 in the -march description.  Alphabetically sort
15580         CPU names in the -march description.  Add long-missed -mips32
15581         and -mips64 to MIPS option summary.
15582
15583         * config.gcc: Update copyright years to include 2003.
15584         * config/mips/mips.c: Likewise.
15585         * config/mips/mips.h: Likewise.
15586         * config/mips/mips.md: Likewise.
15587         * config/mips/netbsd.h: Likewise.
15588         * doc/invoke.texi: Likewise.
15589
15590 2003-01-08  Andreas Schwab  <schwab@suse.de>
15591
15592         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
15593         variable.
15594         * configure: Regenerated.
15595
15596 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
15597
15598         * config/h8300/h8300.c (output_logical_op): Replace byte/word
15599         extraction of det with b0, b1, w0, w2, etc.
15600         (compute_logical_op_length): Likewise.
15601         (compute_logical_op_cc): Likewise.
15602
15603 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
15604
15605         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
15606         HIGH on all variants.
15607
15608 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
15609
15610         * Makefile.in (PARTITION_H): New.
15611         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
15612         * basic-block.h: Include hard-reg-set.h.
15613
15614 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
15615
15616         * arm.h (ENABLE_XF_PATTERNS): Delete.
15617         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
15618         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
15619         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
15620         (cmpxf_trap): Delete.
15621         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
15622
15623 2003-01-08  Jan Hubicka  <jh@suse.cz>
15624
15625         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
15626         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
15627         (add??cc): New expanders.
15628         * i386.c (expand_int_addcc): New function.
15629         * i386-protos.h (expand_int_addcc): Declare.
15630
15631         * alias.c (memory_modified_1): New static function.
15632         (memory_modified): New static varaible.
15633         (memory_modified_in_insn_p): New global function.
15634         * rtl.h (memory_modified_in_insn_p): Declare.
15635         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
15636         references.
15637
15638         * expr.h (emit_conditional_add): Declare.
15639
15640 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
15641
15642         PR other/8947
15643         * doc/invoke.texi (-malign-double): Explain that the option breaks
15644         binary compatibility.
15645
15646 2003-01-08  Andreas Schwab  <schwab@suse.de>
15647
15648         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
15649         should come from the generic *-*-linux* entry.
15650
15651 2003-01-07  Jan Hubicka  <jh@suse.cz>
15652
15653         * cselib.c (cselib_current_insn_in_libcall): New static variable.
15654         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
15655         we are inside libcall.
15656         * cselib.h (elt_loc_list): Add in_libcall.
15657         * gcse.c (do_local_cprop): Do not copy propagate using insns
15658         in libcalls.
15659
15660 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
15661
15662         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
15663         not normally affect to issue rate.
15664
15665 2003-01-07  Jan Hubicka  <jh@suse.cz>
15666
15667         * genopinit.c (optabs): Add addc_optab.
15668         * ifcvt.c (noce_try_store_flag): Rename to ...
15669         (noce_try_addcc): ... this one; handle generic conditional increment.
15670         (noce_process_if_block): Update noce_try_addcc call.
15671         * optabs.c (emit_conditional_add): New.
15672         (init_obtabs): Initialize addc_optab.
15673         * optabs.h (optab_index): Add OTI_addcc.
15674         (addcc_optab): New macro.
15675         * md.texi: Document addMcc
15676
15677         PR target/8322
15678         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
15679         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
15680         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
15681
15682         * reload1.c (delete_output_reload): Avoid repeated attempts
15683         to delete insn.
15684
15685 2003-01-07  Andreas Schwab  <schwab@suse.de>
15686
15687         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
15688         Move --enable-initfini-array check ...
15689         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
15690         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
15691         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
15692         * configure: Rebuild.
15693
15694 2003-01-07  Richard Henderson  <rth@redhat.com>
15695
15696         * alias.c (find_base_value): Only use new_reg_base_value shortcut
15697         if the register is set once.
15698
15699 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
15700
15701         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
15702         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
15703         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
15704
15705 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
15706             Sunil Davasam  <sunil.k.davasam@intel.com>
15707
15708         PR libstdc++/9076
15709         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
15710         DW_CFA_same_value, read next and ignore.
15711
15712 2003-01-07  Richard Henderson  <rth@redhat.com>
15713
15714         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
15715
15716 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
15717
15718         * cfg.c: Include alloc-pool.h
15719         (edge_pool): New pool.
15720         (bb_pool): New pool.
15721         (first_deleted_edge): Remove.
15722         (first_deleted_block): Remove.
15723         (init_flow): Alloc/free the pools.
15724         (free_edge): Use pools.
15725         (alloc_block): Ditto.
15726         (expunge_block): Ditto.
15727         (cached_make_edge): Ditto.
15728
15729         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
15730
15731 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
15732
15733         * et-forest.c: Include alloc-pool.h.
15734         (struct et_forest): Add node_pool and occur_pool.
15735         (et_forest_create): Create the new pools.
15736         (et_forest_delete): Delete them.
15737         (et_forest_add_node): Allocate and free using pools.
15738         (et_forest_add_edge): Ditto.
15739         (et_forest_remove_node): Ditto.
15740         (et_forest_remove_edge): Ditto.
15741
15742         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
15743
15744 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
15745
15746         * config/h8300/h8300.c (output_logical_op): Simplify and
15747         optimize the handling of SImode.
15748         * config/h8300/h8300.c (compute_logical_op_length): Update
15749         accordingly.
15750         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
15751
15752 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
15753
15754         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
15755         big-endian correction to indirect arguments too.
15756
15757 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
15758
15759         Segher Boessenkool  <segher@koffie.nl>
15760
15761         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
15762         (alt_reg_names): Ditto, fix formatting.
15763         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
15764
15765 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15766
15767         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
15768         (output_logical_op): Constify intval and det.
15769         (compute_logical_length): Likewise.
15770         (compute_logical_cc): Likewise.
15771         (output_a_shift): Constify mask.
15772         (h8300_encode_label): Constify len.
15773
15774 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15775
15776         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
15777         (h8300_expand_epilogue): Likewise.
15778
15779 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
15780
15781         Segher Boessenkool  <segher@koffie.nl>
15782
15783         * config/rs6000/altivec.md: Remove spaces from assembler
15784         instruction argument lists.
15785
15786 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15787
15788         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
15789         c4x_assembler_function_p.
15790         (c4x_null_epilogue_p): Complement return value, all uses updated.
15791         (c4x_insert_attributes): Add naked.
15792         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
15793         * doc/extend.texi: Update C4x function attributes.
15794
15795 2003-01-06  Richard Henderson  <rth@redhat.com>
15796
15797         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
15798         properly when changing "local-ness".
15799         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
15800
15801 2003-01-06  Dale Johannesen  <dalej@apple.com>
15802
15803         * config/darwin-protos.h:  Add prototypes for new section functions.
15804
15805 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
15806
15807         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
15808         to EABI.
15809
15810 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
15811
15812         * hwint.h: If the current compiler has no 64-bit type at all,
15813         make HOST_WIDEST_INT 32 bits.
15814
15815 2003-01-06  Eric Christopher  <echristo@redhat.com>
15816
15817         * config/mips/mips.md (movdf_internal2): Fix constraints.
15818
15819 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15820
15821         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
15822
15823 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
15824
15825         * config/mips/mips.md (leadi): Use dla rather than la.
15826
15827 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
15828
15829         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
15830         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
15831
15832 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
15833
15834         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
15835         redefinition.
15836
15837 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15838
15839         * config/h8300/h8300.md (*extzv_8_23): New.
15840
15841 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15842
15843         * pa64-hpux.h (JCR_SECTION_NAME): Define.
15844         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
15845         USE_EH_FRAME_REGISTRY when defining.
15846
15847 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15848
15849         * config/h8300/h8300.c (output_a_shift): Do not output a
15850         variable shift.
15851         * config/h8300/h8300.md (two splitters): New.
15852
15853 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
15854
15855         * config/mips/mips.md: Disable the movstrsi define_split.
15856
15857 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15858
15859         * alloc-pool.c: Don't include "libiberty.h".
15860         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
15861         * convert.c (convert_to_real): Hide unused variable.
15862
15863 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15864
15865         * Makefile.in (gtyp-gen.h): Const-ify.
15866         * gcov-dump.c (tag_table): Likewise.
15867
15868 2003-01-04  Bruce Korb  <bkorb@gnu.org>
15869
15870         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
15871         of *both* the file name and the fix name.
15872
15873 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
15874
15875         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
15876         collect2.
15877         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
15878         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
15879         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
15880         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
15881         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
15882         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
15883         elfos.h.
15884         (EH_FRAME_IN_DATA_SECTION): Delete define.
15885         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
15886         (STARTFILE_SPEC): Use crtbegin.o.
15887         (ENDFILE_SPEC): Use crtend.o.
15888         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
15889         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
15890         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
15891         DTOR_LIST_BEGIN): Define.
15892         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
15893         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
15894         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
15895
15896 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
15897
15898         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
15899         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
15900         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
15901         Cleanup handling of replacement text.
15902         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
15903
15904 2003-01-04  Bruce Korb  <bkorb@gnu.org>
15905
15906         * fixinc/tests/base/math.h: removed obsolete results
15907         * fixinc/tests/base/stdlib.h: ditto
15908         * fixinc/tests/base/sys/param.h: ditto
15909         * fixinc/tests/base/sys/stat.h: ditto
15910         * fixinc/tests/base/time.h: ditto
15911         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
15912         * fixinc/tests/base/sys/byteorder.h: ditto
15913         * fixinc/inclhack.def: Remove superfluous backslashes
15914
15915 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
15916
15917         * config/h8300/h8300-protos.h: Add prototypes for
15918         the new functions defined below.
15919         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
15920         define.
15921         (dosize): Emit RTL instead of assembly code.
15922         (push): Likewise.
15923         (pop): Likewise.
15924         (h8300_output_function_prologue): Remove.
15925         (h8300_expand_prologue): New.
15926         (h8300_expand_epilogue): New.
15927         (h8300_output_function_epilogue): Do only the reset of
15928         pragma_saveall.
15929         * config/h8300/h8300.md (push_h8300): New.
15930         (push_h8300hs): Likewise.
15931         (pop_h8300): Likewise.
15932         (pop_h8300hs): Likewise.
15933         (*stm_h8300s_2): Change the name to stm_h8300s_2.
15934         (*stm_h8300s_3): Change the name to stm_h8300s_3.
15935         (*stm_h8300s_4): Change the name to stm_h8300s_4.
15936         (*ldm_h8300s_2): New.
15937         (*ldm_h8300s_3): Likewise.
15938         (*ldm_h8300s_4): Likewise.
15939         (return): Likewise.
15940         (*return_1): Likewise.
15941         (prologue): Likewise.
15942         (epilogue): Likewise.
15943         (monitor_prologue): Likewise.
15944
15945 2003-01-03  Dale Johannesen  <dalej@apple.com>
15946
15947         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
15948           machopic_picsymbol_stub1.
15949           (EXTRA_SECTION_FUNCTIONS):  Ditto.
15950         * rs6000/rs6000.c:  Update copyright.
15951           (machopic_output_stub):  Use them.  Remove an insn from stub code.
15952
15953 2003-01-02  Jason Merrill  <jason@redhat.com>
15954
15955         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
15956
15957         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
15958         static/external decls.
15959
15960         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
15961         outermost scope.
15962         * c-decl.c (c_make_fname_decl): Push the decls there, too.
15963
15964 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
15965
15966         * config/h8300/h8300-protos.h: Add a prototype for
15967         h8300_current_function_interrupt_function_p.
15968         * config/h8300/h8300.c (interrupt_handler): Remove.
15969         (os_task): Likewise.
15970         (monitor): Likewise.
15971         (pragma_interrupt): New.
15972         (WORD_REG_USED): Use
15973         h8300_current_function_interrupt_function_p.
15974         (dosize): Likewise.
15975         (h8300_output_function_prologue): Likewise.
15976         Do not set interrupt_handler, os_task, monitor.
15977         (h8300_output_function_prologue): Use
15978         h8300_current_function_interrupt_function_p.
15979         Do not set interrupt_handler, os_task, monitor.
15980         (h8300_current_function_interrupt_function_p): New.
15981         (h8300_pr_interrupt): Set pragma_interrupt.
15982         (h8300_insert_attributes): Reset pragma_interrupt.
15983
15984 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15985
15986         * doc/install.texi (Configuration): Fix markup for reference to
15987         gcc/config.gcc.
15988
15989 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
15990
15991         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
15992         (*iorhi3_two_qi): Likewise.
15993         (*iorsi3_zexthi): Likewise.
15994         (*xorhi3_zextqi): Likewise.
15995         (*xorsi3_zexthi): Likewise.
15996         (*xorsi3_zextqi): Likewise.
15997
15998 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
15999
16000         * config/h8300/h8300.c (stack_pointer_operand): New.
16001         (const_int_gt_2_operand): Likewise.
16002         (const_int_ge_8_operand): Likewise.
16003         * config/h8300/h8300.md (a splitter): Likewise.
16004         (a peephole2): Likewise.
16005         * config/h8300/h8300-protos.h: Add prototypes for the new
16006         functions above.
16007
16008 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
16009
16010         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
16011         objc/objc-act.h: Fix copyright years.
16012
16013 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16014
16015         * doc/passes.texi: Fix documentation for -fssa-ccp
16016
16017 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
16018
16019         * gccbug.in: Update for new categories.
16020
16021 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16022
16023         * config/h8300/h8300.md: Reorder some patterns.
16024
16025 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16026
16027         * config/h8300/h8300.c (output_logical_op): Fix a warning.
16028
16029 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16030
16031         * config/darwin-protos.h, config/c4x/c4x-protos.h,
16032         config/cris/cris-protos.h, config/i370/i370-protos.h,
16033         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
16034         config/v850/v850-protos.h: Use struct, and don't conditionally
16035         compile on GCC_C_PRAGMA_H.
16036
16037 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16038
16039         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
16040         * config/h8300/h8300-protos.h: Likewise.
16041         * config/sh/sh-protos.h: Likewise.
16042
16043 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16044
16045         * config/arm/arm-protos.h: Use struct cpp_reader instead of
16046         cpp_reader.
16047         * config/h8300/h8300-protos.h: Likewise.
16048         * config/sh/sh-protos.h: Likewise.
16049
16050 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16051
16052         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
16053         arm_pr_long_calls_off): Use struct.
16054         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
16055         : Similarly.
16056         Don't include cpplib.h.
16057         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
16058         sh_pr_nosave_low_regs): Similarly.
16059
16060 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16061
16062         * config/h8300/h8300.c: Include cpplib.h.
16063
16064 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16065
16066         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
16067           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
16068           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
16069           "GCC" in the copyright header.
16070
16071 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16072
16073         * c-pragma.c (c_register_pragma): New.
16074         (init_pragma): Use it.
16075         * c-pragma.h (cpp_register_pragma): Don't declare.
16076         (c_register_pragma): New.
16077         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
16078         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
16079         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
16080         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
16081         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
16082         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
16083         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
16084         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
16085         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
16086         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
16087         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
16088         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
16089
16090 See ChangeLog.8 for earlier changes.