OSDN Git Service

1da64c9c90d841246d86006791f92cd8b50e7d7a
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2
3         * m68k.c (m68k_output_function_epilogue): Fix format specifier
4         warnings.
5
6         * stormy16-protos.h (xs_hi_general_operand,
7         xs_hi_nonmemory_operand): Prototype.
8         * stormy16.c (xstormy16_output_shift): Fix format specifier
9         warnings.
10
11         * cris.c: Fix format specifier warnings.
12
13 2003-05-16  Nick Clifton  <nickc@redhat.com>
14
15         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
16
17 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
18
19         * doc/bugreport.texi: Remove most of the of the preface of the
20         bugs section.
21
22 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
23
24         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
25         .save XX, r0.
26
27 2003-05-15  Roger Sayle  <roger@eyesopen.com>
28
29         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
30
31 2003-05-15  Eric Christopher  <echristo@redhat.com>
32
33         * cfgcleanup.c (merge_blocks): Fix return value.
34
35 2003-05-15 Eric Christopher <echristo@redhat.com>
36
37         * combine.c (expand_compound_operation): Make sure
38         that zero_extend operation is profitable.
39
40 2003-05-15  Richard Henderson  <rth@redhat.com>
41
42         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
43         code protected by USE_GNULIBC_1.
44
45 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
46
47         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
48         remove hppa*-*-mpeix* which could not be built, and prune
49         files from tmake_file= or tm_file= lists that don't exist.
50
51         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
52         * config/alpha/t-interix, config/arm/conix-elf.h
53         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
54         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
55         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
56         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
57         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
58         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
59         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
60         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
61         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
62         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
63         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
64         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
65         * config/m68k/tower-as.h, config/m68k/tower.h
66         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
67         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
68         * config/m88k/m88k-protos.h, config/m88k/m88k.c
69         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
70         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
71         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
72         * config/mips/rtems64.h, config/mips/sni-gas.h
73         * config/mips/sni-svr4.h, config/mips/t-ecoff
74         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
75         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
76         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
77         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
78         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
79         * config/romp/romp-protos.h, config/romp/romp.c
80         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
81         * config/rs6000/aix3newas.h, config/rs6000/mach.h
82         * config/sparc/bsd.h, config/sparc/hal.h
83         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
84         * config/sparc/lynx.h, config/sparc/netbsd.h
85         * config/sparc/sp86x-aout.h, config/sparc/splet.h
86         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
87         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
88         * config/sparc/t-halos, config/sparc/t-sparcbare
89         * config/sparc/t-splet, config/sparc/t-sunos41
90         * config/v850/rtems.h: Delete file.
91
92 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
93
94         * config/rs6000/rs6000-protos.h (function_value): Protoize.
95
96         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
97
98         * config/rs6000/rs6000.c (rs6000_function_value): New.
99
100 2003-05-15  Philip Blundell  <philb@gnu.org>
101
102         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
103         All uses updated.
104         (arm_tune_xscale): New variable.
105         (arm_override_options): Set it.
106         (arm_adjust_cost): Use it in place of arm_arch_xscale.
107         (arm_gen_load_multiple): Likewise.
108         (arm_gen_store_multiple): Likewise.
109         * config/arm/arm.md (is_xscale): Likewise.
110         * config/arm/arm.h (arm_tune_xscale): Declare.
111
112 2003-05-15  Philip Blundell  <philb@gnu.org>
113
114         PR target/10730
115         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
116         involving invalid constants.
117
118 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
119
120         * pa.c (hppa_expand_prologue): Remove blockage.
121
122 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
123
124         * doc/bugreport.texi: Remove most of the bug reporting
125         instructions and merge them into bugs.html.
126
127 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
128
129         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
130         g_switch_value to unsigned HOST_WIDE_INT.
131
132 2003-05-14  Eric Christopher  <echristo@redhat.com>
133
134         * combine.c: Fix header comments.
135         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
136         to all calls and prototype.
137
138 2003-05-14  Roger Sayle  <roger@eyesopen.com>
139
140         PR optimization/10764
141         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
142         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
143         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
144         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
145         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
146         the corresponding *fyl2x_?fxf3 instructions.
147
148 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
149
150         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
151         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
152         XCHAL_HAVE_L32R): New.
153         * config/xtensa/xtensa-protos.h (non_const_move_operand,
154         xtensa_load_constant, xtensa_function_prologue,
155         xtensa_function_epilogue): Delete prototypes.
156         (xtensa_expand_prologue): New.
157         * config/xtensa/xtensa.c (frame_size_const,
158         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
159         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
160         xtensa_function_prologue): Delete.
161         (add_operand, xtensa_mem_offset): Formatting.
162         (move_operand): If the const16 option is available, allow any SFmode
163         and SImode constants.
164         (xtensa_emit_move_sequence): Inline the former contents of
165         xtensa_load_constant with modifications to handle the const16 option.
166         (override_options): Add xtensa_char_to_class['W'] and set it to
167         the general register class only if the const16 option is enabled.
168         Fix formatting.  Disallow PIC when using the const16 option.
169         (print_operand): Reorganize to switch on "letter" instead of the
170         RTL code.  Add output_operand_lossage calls for invalid cases.
171         Add support for 't' and 'b' letters.
172         (xtensa_expand_prologue): New function to replace
173         xtensa_function_prologue and xtensa_reorg.
174         (xtensa_function_epilogue): Declare this as static.  Delete code
175         to print the retw.n or retw instruction.
176         (xtensa_return_addr): Use A0_REG instead of 0.
177         (xtensa_rtx_costs): Add costs for using the const16 option.
178         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
179         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
180         (TARGET_SWITCHES): Add "const16" and "no-const16".
181         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
182         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
183         using the const16 option.
184         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
185         (TRAMPOLINE_SIZE): Change from 49 to 59.
186         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
187         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
188         when using the const16 option.
189         (PREDICATE_CODES): Delete non_const_move_operand.
190         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
191         UNSPECV_ENTRY.
192         (movdi, movdf): If the source is a constant, always expand to a
193         sequence of movsi insns.
194         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
195         (movsi_internal, movsf_internal): Add alternative using const16 insns.
196         (movsf): Add const16 support.
197         (entry, prologue, epilogue): New.
198         (set_frame_ptr): Add missing mode for unspec_volatile operation.
199         Likewise for subsequent split pattern.
200         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
201         "-mconst16" and "-mno-const16" options.
202
203 2003-05-14  Richard Henderson  <rth@redhat.com>
204
205         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
206         to be DImode register.  Merge load_symptr.
207         * config/ia64/ia64.md (load_symptr): Remove.
208
209 2003-05-14  Richard Henderson  <rth@redhat.com>
210
211         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
212         DEFERRED_CONSTANT_P.
213         * integrate.c (copy_rtx_and_substitute): Update use.
214         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
215         to the copy generated.
216         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
217         of the constant to see if we should emit.
218         (mark_constant): Similarly.
219         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
220
221 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
222
223         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
224         move record condition.
225         (movdi_internal2): Same.
226
227 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
228
229         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
230         (GCOV_TAG_*) Force type to gcov_unsigned_t.
231         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
232         (struct gcov_var): Remove modified. Add start, length, offset,
233         overread. Have buffer array for libgcov.
234         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
235         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
236         * gcov-io.c (gcov_open): Set mode, do not read anything.
237         (gcov_close): Write final block.
238          (gcov_write_block, gcov_allocate): New.
239         (gcov_write_bytes): Make static. Write or allocate buffer.
240         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
241         null.
242         (gcov_write_string): Adjust.
243         (gcov_write_tag)
244         (gcov_write_length): Adjust. Flush the block.
245         (gcov_write_tag_length): Buffer can never be null.
246         (gcov_read_bytes): Make static. Read in block.
247         (gcov_sync): Moved here. Adjust.
248         (gcov_seek): Moved here. Adjust.
249         * coverage.c (read_counts_file): Adjust.
250         * gcov-dump.c (print_prefix): Add position parameter.
251         (flag_dump_positions): New flag.
252         (options, main, print_usage): Add it.
253         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
254         tag_summary): Adjust.
255         * gcov.c (read_graph_file, read_count_file): Adjust.
256         * libgcov.c (gcov_exit): Adjust.
257
258         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
259         (libgcov.a): Depend on libgcc.a.
260         (gcov.o, gcov-dump.o): Add gcov-io.c.
261         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
262
263         * loop.c (check_dbra_loop): Factor common test.
264
265 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
266
267         * doc/md.texi (Automaton pipeline description): Grammar fixes.
268
269 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
270
271         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
272         (TARGET_INITIALIZER): Include it.
273         * target.h (struct gcc_target): Add machine_dependent_reorg field.
274         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
275         * system.h: Poison MACHINE_DEPENDENT_REORG.
276
277         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
278         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
279         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
280         (alpha_handle_trap_shadows): Remove "first insn" parameter.
281         (alpha_align_insns): Likewise.
282         (alpha_reorg): Likewise.  Make static.  Update calls to above
283         functions.
284
285         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
286         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
287         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
288         (arm_reorg): Remove parameter.  Make static.
289
290         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
291         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
292         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
293         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
294         Remove parameter.
295
296         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
297         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
298         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
299         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
300         Remove parameter.
301
302         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
303         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
304         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
305
306         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
307         * config/frv/frv.c: Remove orphaned comment.
308
309         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
310         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
311         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
312         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
313         Remove parameter.
314
315         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
316         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
317         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
318         (emit_insn_group_barriers): Remove "first insn" parameter.
319         (emit_all_insn_group_barriers): Likewise.
320         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
321         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
322
323         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
324         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
325         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
326         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
327         Remove parameter.
328
329         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
330         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
331         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
332         (m68hc11_reorg): Make static.  Remove parameter.
333
334         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
335         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
336         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
337         (conditionalize_optimization): Remove parameter.
338         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
339         Make static.  Update call to conditionalize_optimization.
340
341         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
342         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
343         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
344         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
345         Make static.
346
347         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
348         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
349         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
350         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
351         Remove parameter.
352
353         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
354         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
355         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
356         (pa_combine_instructions): Remove "first insn" parameter.
357         (remove_useless_addtr_insns): Likewise.
358         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
359
360         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
361         commented-out definition.
362
363         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
364         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
365         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
366         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
367         Remove parameter.
368
369         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
370         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
371         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
372         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
373         Remove parameter.
374         (sh_output_mi_thunk): Call sh_reorg directly.
375         * config/sh/sh.md: Update comment.
376
377         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
378         commented-out definition.
379
380         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
381         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
382         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
383         (v850_reorg): Make static.  Remove parameter.
384
385         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
386         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
387         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
388         (xtensa_reorg): Make static.  Remove parameter.
389
390         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
391         (TARGET_MACHINE_DEPENDENT_REORG): Document.
392
393 2003-05-13  Richard Henderson  <rth@redhat.com>
394
395         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
396         the old decl had instantiated DECL_RTL.
397
398 2003-05-13  Mike Stump  <mrs@apple.com>
399
400         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
401
402 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
403
404         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
405         HOST_WIDE_INT argument.
406
407 2003-05-13  Jason Merrill  <jason@redhat.com>
408
409         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
410
411         * tree.c (iterative_hash_expr): New fn.
412
413         * c-semantics.c (emit_local_var): Don't mess with temp slots if
414         there's no initializer.
415
416 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
417
418         * final.c (final_scan_insn): Apply the effects of frame-related
419         delay slot insns before emitting a delayed branch.
420
421 2003-05-13  Nick Clifton  <nickc@redhat.com>
422
423         * config/mcore/mcore.md (jump): Use emit_jump_insn.
424
425 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
426
427         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
428         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
429
430 2003-05-12  DJ Delorie  <dj@redhat.com>
431
432         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
433         (emit_push_insn): Don't use push when the source alignment is less
434         than the stack's push rounding.
435
436 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
437
438         * diagnostic.c (output_format): Add support for %m.
439         (output_printf, output_verbatim, diagnostic_set_info,
440         verbatim): Set err_no field of the text_info structure being
441         initialized.
442         (fatal_io_error): Delete function.
443         * diagnostic.h (text_info): Add err_no field.
444         * toplev.h (fatal_io_error): Delete prototype.
445
446         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
447         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
448         * objc/objc-act.c: Replace all calls to fatal_io_error with
449         calls to fatal_error; add ": %m" to the end of all the affected
450         error messages.
451
452 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
453
454         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
455         * rtl.h: Prototype it.
456         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
457         when appropriate.
458
459 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
460
461         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
462         ("*iorsi3_oi"): Likewise.
463
464 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
465
466         * arm.md (compare_scc): Use shorter sequence for EQ case.
467         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
468         (and_scc_scc): Ensure split only applies when there is a dominance
469         of the comparisons.
470         (and_scc_scc_nodom): New insn-and-split pattern.
471
472 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
473
474         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
475         to _Unwind_SetGRPtr().
476
477 2003-05-13  Michael Eager <eager@mvista.com>
478
479         * Makefile.in: Initialize program_transform_cross_name from
480         @program_transform_name@ instead of target_alias.
481
482 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
483             Alan Modra  <amodra@bigpond.net.au>
484             Jakub Jelinek  <jakub@redhat.com>
485
486         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
487         * configure: Rebuild.
488         * config/rs6000/rs6000-protos.h: Update.
489         * config/rs6000/rs6000.c (rs6000_tls_size): New.
490         (rs6000_tls_size_string): New.
491         (rs6000_parse_tls_size_option): New.
492         (rs6000_legitimize_tls_address): New.
493         (rs6000_tls_get_addr): New.
494         (rs6000_got_sym): New.
495         (rs6000_tls_symbol_ref): New.
496         (rs6000_tls_symbol_ref_1): New.
497         (rs6000_get_some_local_dynamic_name): New.
498         (rs6000_get_some_local_dynamic_name_1): New.
499         (TARGET_HAVE_TLS): New.
500         (TARGET_CANNOT_FORCE_CONST_MEM): New.
501         (rs6000_override_options): Handle -mtls-size option.
502         (constant_pool_expr_1): Handle TLS symbols.
503         (rs6000_legitimize_address): Handle TLS symbols.
504         (rs6000_tls_referenced_p): New.
505         (rs6000_legitimate_address): Handle TLS symbols.
506         (rs6000_emit_move): Handle TLS symbols.
507         (print_operand): Handle TLS symbols.
508         (uses_TOC): Handle TLS symbols.
509         (rs6000_emit_prologue): Use symbol for unspec constant.
510         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
511         (some_ld_name): New.
512         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
513         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
514         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
515         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
516         Support TLS.
517         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
518         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
519         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
520         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
521         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
522         tls_tls_64): New.
523         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
524
525 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
526
527         * Makefile.in (stage2_build, stage3_build, stage4_build):
528         Set BUILD_CC to the same as CC.
529
530 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
531
532         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
533
534 2003-05-12  Andreas Schwab  <schwab@suse.de>
535
536         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
537         as unused.
538         (bundling): Initialize 'pos'.
539         (ia64_expand_builtin): Initialize 'rmode'.
540
541 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
542
543         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
544         (ASM_OUTPUT_ALIGNED_COMMON): Same.
545         (ASM_OUTPUT_LOCAL): Same.
546
547 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
548
549         * varasm.c (output_constant):  Fix underflow.
550
551 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
552
553         PR other/10745
554         * configure.in: Correct detection of GNU ld version number.
555         * configure: Regenerated.
556
557 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
558
559         * diagnostic.c (diagnostic_for_decl): Take a
560         diagnostic_context argument.  Restructure to be consistent
561         with diagnostic_report_diagnostic.
562         (diagnostic_count_diagnostic): Now static.  Take a
563         diagnostic_info argument, not just a diagnostic_t.  Some code
564         moved here from internal_error.  Move a case label for
565         clarity.
566         (diagnostic_action_after_output): New function.  Code moved
567         here from internal_error and fatal_error.
568         (bug_report_request): New #define so that this text appears in
569         only one place.
570         (diagnostic_report_diagnostic): Update to match changes to
571         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
572         (diagnostic_set_info): Call gettext here.
573
574         (pedwarn): Update comment.  Don't call gettext here.
575         (sorry): Use report_diagnostic.  Don't call gettext here.
576         (fatal_error): Remove final fnotice and exit, but call
577         real_abort to prevent warnings about noreturn function returning.
578         (internal_error): Likewise.  Don't do ICE suppression here nor
579         call context->internal_error.
580         (warning_with_decl): Suppress for decls in system headers.
581         Adjust call to diagnostic_for_decl.
582         (pedwarn_with_decl): Likewise.
583         (error_with_decl): Adjust call to diagnostic_for_decl.
584         (error_recursion): Use bug_report_request.
585
586         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
587         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
588         diagnostic_count_diagnostic.
589
590 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
591
592         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
593
594 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
595
596         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
597         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
598         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
599
600 2003-05-12  Roger Sayle  <roger@eyesopen.com>
601
602         * doc/rtl.texi: Document zero_extract as a valid destination
603         of a set insn.
604
605 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
606
607         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
608         '.'.  Change all local symbol definitions and references to use LSYM.
609
610 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
611
612         * expr.h (assemble_static_space): Update prototype.
613         * output.h (assemble_zeros, output_constant): Likewise.
614         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
615         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
616         it 64bit clean.
617         * elf.h (ASM_OTUPUT_SKIP): Likewise.
618         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
619         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
620         Expect HOST_WIDE_INT operand.
621         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
622         Expect HOST_WIDE_INT operand.
623         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
624         Expect HOST_WIDE_INT operand.
625         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
626         HOST_WIDE_INT operand.
627         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
628         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
629         * aout.h (ASM_OTUPUT_SKIP): Likewise.
630         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
631         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
632         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
633         * frv.h (ASM_OTUPUT_SKIP): Likewise.
634         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
635         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
636         Make it 64bit
637         clean.
638         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
639         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
640         Make it 64bit clean.
641         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
642         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
643         HOST_WIDE_INT operand
644         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
645         Expect HOST_WIDE_INT operand
646         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
647         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
648         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
649         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
650         Likewise.
651         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
652         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
653         Likewise.
654         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
655         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
656         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
657         ASM_OUTPUT_SKIP): Likewise.
658         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
659         Likewise.
660         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
661         ASM_OUTPUT_SKIP): Likewise.
662         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
663         ASM_OUTPUT_SKIP): Likewise.
664         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
665         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
666         ASM_OUTPUT_SKIP): Likewise.
667         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
668         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
669         ASM_OUTPUT_SKIP): Likewise.
670         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
671         Likewise.
672         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
673         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
674         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
675         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
676         ASM_OUTPUT_SKIP): Make it 64bit clean.
677         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
678         Make it 64bit clean.
679         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
680         ASM_OUTPUT_SKIP): Make it 64bit clean.
681         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
682         64bit clean.
683         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
684         HOST_WIDE_INT argument
685         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
686         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
687         HOST_WIDE_INT argument
688         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
689         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
690         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
691         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
692         HOST_WIDE_INT argument
693         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
694         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
695         * varasm.c (asm_output_bss, asm_output_aligned_bss,
696         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
697         HOST_WIDE_INT argument
698
699 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
700
701         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
702         favor of walk_tree_without_duplicates.  Add comments.
703
704 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
705
706         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
707         (struct alloc_pool_def): New element 'id'.
708         * alloc-pool.c (fancy_abort): Extern function prototype.
709         (abort): Macro which uses fancy_abort.
710         (struct allocation_object_def): New structure.
711         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
712         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
713         (last_id): New variable.
714         (create_alloc_pool): Add the offset of u.data to size of element,
715         increase and use last_id.
716         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
717         (pool_alloc): Likewise. Set ID for elements.
718         (pool_free): Check whether the PTR was allocated from POOL.
719
720 2003-05-11  Richard Henderson  <rth@redhat.com>
721
722         PR c/10675
723         * c-decl.c: Include hashtab.h.
724         (detect_field_duplicates): New.
725         (finish_struct): Use it.
726         * Makefile.in (c-decl.o): Update.
727         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
728         (component_decl_list, component_decl_list2,
729         components, components_notype): Build list in reverse order.
730         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
731
732         * tree.c (chainon): Special case op2 null as well.
733         Reorg for clarity.
734
735 2003-05-11  Roger Sayle  <roger@eyesopen.com>
736
737         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
738         to implement log, logf and logl built-ins as inline x87 intrinsics.
739         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
740         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
741         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
742
743         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
744         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
745
746 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
747
748         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
749
750         * sparc.c (print_operand): Fix uninitialized warning.
751
752 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
753
754         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
755         real insns.
756         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
757         condition.
758
759 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
760
761         * doc/cpp.texi: Fix typos.
762
763 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
764
765         * config/s390/s390.c (s390_function_arg_float): New function.
766         (s390_function_arg_pass_by_reference): Use it.
767         (s390_function_arg_advance): Likewise.
768         (s390_function_arg): Likewise.
769         (s390_va_arg): Likewise
770
771 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
772
773         * coverage.h (coverage_counter_alloc): New function.
774         * function.h (struct function): Remove arc_profile flag.
775         * coverage.c (fn_ident): Remove.
776         (fn_b_ctrs, no_coverage): New.
777         (get_coverage_counts): Use current_function_funcdef_no.
778         (coverage_counter_alloc): New.
779         (coverage_counter_ref): Adjust.
780         (coverage_begin_output): Check no_coverage. Use
781         current_function_funcdef_no.
782         (coverage_end_function): Likewise.
783         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
784         than clearing flag_inline_functions. Do not clear arc_profile
785         flag.
786         * function.c (prepare_function_start): Do not set arc_profile
787         flag.
788         * profile.c (instrument_edges): Return number of instrumented
789         edges. Use a for loop.
790         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
791         local to here and simplify. Use profile_arc_flag not arc_profile
792         flag.
793         (find_spanning_tree): Reformat.
794         * toplev.c (rest_of_compilation): Use profile_arc_flags and
795         flag_test_coverage rather than arc_profile flag.
796
797 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
798
799         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
800
801 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
802
803         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
804
805 2003-05-11  Bruno Haible  <bruno@clisp.org>
806
807         * cppfiles.c (find_or_create_entry): Preserve errno.
808
809 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
810
811         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
812         cpplib as it's a Standard Predefined Macro.
813         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
814         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
815         __STDC_HOSTED__ appropriately.
816         * cpplib.h (_cpp_init_builtins): Update.
817         * fix-header.c (read_scan_file): Update.
818         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
819
820 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
821
822         PR C++/689
823         PR C++/9257
824         * c-opts.c (c_common_decode_option): Don't set
825         warn_ctor_dtor_privacy wen -Wall.
826         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
827
828 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
829
830         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
831         patch.
832
833 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
834
835         * diagnostic.c: Reorder functions for clarity, putting all the
836         functions in the "error" family next to each other, and
837         likewise all the functions in the "error_with_decl" family.
838         Some other routines were moved too.  Add comments.
839         (vbuild_message_string): Fold into sole caller.
840
841
842 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
843
844         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
845         (EH_RETURN_HANDLER_RTX): Likewise.
846         (expand_builtin_eh_return): Do not copy stack adjustment
847         if EH_RETURN_STACKADJ_RTX is not defined.
848         (expand_eh_return): Likewise.  Also, do not pass stack
849         adjustment as argument to the eh_return pattern.
850         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
851         because EH_RETURN_STACKADJ_RTX is not defined.
852         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
853         is not defined, treat stack pointer like a regular register.
854         (uw_init_context_1): Set up fake initial stack pointer register.
855         (uw_install_context_1): Do not compute stack adjustment if
856         EH_RETURN_STACKADJ_RTX is not defined.
857
858         * config/i386/i386.md ("eh_return"): Remove first argument.
859         * config/mips/mips.md ("eh_return"): Likewise.
860         * config/rs6000/rs6000.md ("eh_return"): Likewise.
861         * config/sh/sh.md ("eh_return"): Likewise.
862
863         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
864
865 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
866
867         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
868
869 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
870
871         * defaults.h (GCOV_TYPE_SIZE): Remove.
872         * gcov-io.h (gcov_type): Set to specific mode int on target.
873         (gcov_unsigned_t, gcov_position_t): New.
874         (GCOV_TYPE_NODE): New.
875         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
876         (GCOV_COUNTERS_SUMMABLE): New.
877         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
878         gcov_ctr_info, gcov_info): Adjust types.
879         (gcov_var): Adjust types.
880         (gcov_write_unsigned, gcov_write_tag,
881         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
882         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
883         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
884         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
885         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
886         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
887         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
888         __gcov_init, __gcov_merge_add): Adjust gcov types.
889         * coverage.c (ctr_merge_functions): Constify.
890         (ctr_names): New.
891         (read_counts_file): Adjust gcov types. Only summarize & merge
892         summable counters.
893         (coverage_counter_ref): Use GCOV_TYPE_NODE.
894         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
895         build_ctr_info_value, build_gcov_info): Adjust types.
896         * profile.c (branch_prob): Adjust gcov types.
897         * gcov_dump (dump_file): Adjust gcov types.
898
899 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
900
901         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
902         constants.
903         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
904         * arm.c (arm_select_dominance_cc_mode): Renamed from
905         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
906         Callers updated.
907         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
908
909 2003-05-09  Roger Sayle  <roger@eyesopen.com>
910
911         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
912         as unsigned to avoid signed/unsigned comparison warnings.
913
914 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
915
916         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
917         instruction if the Xtensa density option is enabled.
918
919 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
920
921        * mklibgcc.in: Remove extra quotes.
922
923 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
924
925         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
926         of int_ftype_void.
927
928 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
929
930         * reload1.c (reload_cse_move2add): Don't turn an implicit
931         truncation into a self-set in the narrow mode.
932
933 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
934
935         * arm.md (clzsi2): The CLZ instruction is predicable.
936
937 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
938
939         * config/xtensa/xtensa.c: Formatting.
940
941 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
942
943         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
944         instead of TREE_OPERAND to access the operand of a
945         CONSTRUCTOR node.
946
947 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
948
949         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
950         one operand.
951
952 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
953
954         * toplev.h (warning_with_file_and_line): Don't declare.
955         (error_with_file_and_line): Likewise.
956         * diagnostic.c (error_with_file_and_line): Remove.
957         (warning_with_file_and_line): Likewise.
958
959 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
960
961         * c-parse.in (if_stmt_locus): New object.
962         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
963         (select_or_iter_stmt rule): Likewise.
964         (if_stmt_file): Remove.
965         (if_stmt_line): Likewise.
966         * jump.c: include "diagnostic.h"
967         (never_reached_warning): Don't use warning_with_file_and_line.
968         * Makefile.in (jump.o): Add dependce on diagnostic.h
969
970 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
971
972         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
973         Move code handling pieces not larger than a word to..
974         * function.c (assign_parms): ..here, but use change_address instead
975         of adjust_address and operand_subword, and expand_binop instead of
976         expand_shift.  Adjust calls to move_block_from_reg.
977         * expr.h (move_block_from_reg): Update declaration.
978         (copy_blkmode_from_reg): Formatting.
979         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
980         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
981         move_block_from_reg calls.
982         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
983         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
984         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
985         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
986         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
987         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
988         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
989         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
990         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
991
992 2003-05-08  DJ Delorie  <dj@redhat.com>
993
994         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
995         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
996         variable-sized types).
997         (xstormy16_function_arg): New.  Pass them that way too.
998         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
999         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
1000
1001 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
1002
1003         * mklibgcc.in: Use mkinstalldirs when installing multilib
1004         directories.
1005
1006 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
1007
1008         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
1009         instead of CODE_FOR_jump
1010
1011 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
1012
1013         * objc/objc-act.c (error_with_ivar): Don't use
1014         error_with_file_and_line.
1015         (warn_with_method): Don't use warning_with_file_and_line.
1016
1017 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1018
1019         * stmt.c (emit_locus): New macro.
1020         (emit_filename): Remove.
1021         (emit_lineno): Likewise.
1022         (struct stmt_status): Replace members x_emit_filename and
1023         x_emit_lineno with x_emit_locus.
1024         (set_file_and_line_for_stmt): Adjust.
1025         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
1026         (warn_if_unused_value): Likewise.
1027         (check_seenlabel): Likewise.
1028
1029 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1030
1031         * c-decl.c (define_label): Tidy.  Don't use any of
1032         error_with_file_and_line or warning_with_file_and_file.
1033         (pending_xref_error): Likewise.
1034         (store_parm_decls): Likewise.
1035         (current_function_prototype_locus): New object.  Package from
1036         current_function_prototype_file and current_function_prototype_line.
1037         (start_function): Use it.
1038         (current_function_prototype_file): Remove.
1039         (current_function_prototype_line): Remove;
1040
1041 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1042
1043         * builtins.c (readonly_data_expr): New function.
1044         (expand_builtin_memmove): Optimize any rodata source, not just
1045         strings.
1046
1047 2003-05-07  David Mosberger <davidm@hpl.hp.com>
1048
1049         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
1050
1051 2003-05-07  Richard Henderson  <rth@redhat.com>
1052
1053         * config/i386/i386.c (ix86_split_long_move): Fix base register
1054         mode for XFmode splits for TARGET_64BIT.
1055
1056 2003-05-07  Richard Henderson  <rth@redhat.com>
1057
1058         * sched-ebb.c (schedule_ebb): Supply the correct starting
1059         block number to save_line_notes.
1060
1061 2003-05-07  Richard Henderson  <rth@redhat.com>
1062
1063         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
1064         (dump_file): Likewise.
1065
1066 2003-05-07  David Mosberger <davidm@hpl.hp.com>
1067
1068         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
1069         forget to preserve gp.
1070         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
1071
1072         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
1073         .prologue directive.
1074         Use .skip instead of data8 for .bss section to make Intel
1075         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
1076         explicit in the .mib bundles and remove the unnecessary stop
1077         bits.  Replace local labels with normal labels, to make ias
1078         happy.  Don't register __do_global_ctors_aux here, do it in
1079         crtend.asm instead.
1080
1081         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
1082         __do_global_ctors_aux in .init_array section instead of
1083         declaring it as a hidden global.  Replace local labels with
1084         ordinary labels to make ias happy.
1085
1086 2003-05-07  Richard Henderson  <rth@redhat.com>
1087
1088         PR c++/10570
1089         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
1090         * flags.h, toplev.c, doc/invoke.texi: Likewise.
1091
1092         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
1093         * unwind.inc (_Unwind_DeleteException): Check for null
1094         exception_cleanup.
1095
1096         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
1097         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
1098         * unwind.h: Declare them.
1099         * libgcc-std.ver (GCC_3.3): Export them.
1100
1101 2003-05-07  Richard Henderson  <rth@redhat.com>
1102
1103         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
1104         not _Unwind_Word.
1105
1106 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
1107
1108         * stmt.c (force_label_rtx): New function, based on logic
1109         formerly found in expand_expr.
1110         * expr.h: Prototype it.
1111         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
1112         appropriate.
1113         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
1114
1115         * print-tree.c (debug_tree): Free the table after we're done
1116         with it.  Use putc.
1117
1118 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
1119
1120         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
1121         Unreverse arguments for __ev_subw.
1122
1123         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
1124
1125 2003-05-07  Nick Clifton  <nickc@redhat.com>
1126
1127         * config/stormy16/stormy-abi: Update to include
1128         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
1129         R_XSTORMY16_12 relocs.
1130
1131 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
1132
1133         * function.c (assign_parms): Correct reversed reg_parm_stack_space
1134         test.  Add partial in-regs size to stack_args_size.
1135
1136 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1137
1138         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
1139         as a C only option.
1140
1141 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
1142
1143         * gcov-io.h (GCOV_LOCKED): New #define.
1144         (GCOV_LINKAGE): Make sure it is #defined.
1145         (gcov_write_string, gcov_write_tag, gcov_write_length,
1146         gcov_read_string, gcov_time): Poison in libgcov.
1147         (gcov_seek_end): Remove.
1148         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
1149         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
1150         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
1151         GCOV_TAG_SUMMARY_LENGTH): New #defines.
1152         (gcov_write_tag, gcov_write_length): Not in libgcov.
1153         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
1154         (gcov_write_tag, gcov_write_length): Not in libgcov.
1155         (gcov_write_tag_length): New.
1156         (gcov_write_summary): Use gcov_write_tag_length.
1157         * libgcov.c: Always #include gcov-io.h.
1158         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
1159         (GCOV_LINKAGE): Define to nothing for L_gcov.
1160         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
1161         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
1162         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
1163         (read_count_file): Likewise.
1164         * gcov-dump.c (dump_file): Likewise.
1165         * coverag.c (read_counts_file): Likewise.
1166
1167 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
1168
1169         PR other/10658
1170         * gcc.c (process_command): Update copyright date.
1171
1172 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
1173
1174         * doc/install.texi (mips-*-*):  Add note about libstdc++.
1175
1176 2003-05-06  DJ Delorie  <dj@redhat.com>
1177
1178         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
1179         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
1180         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
1181
1182 2003-05-06    <neil@cat.daikokuya.co.uk>
1183
1184         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
1185         and -Wstrict-prototypes if C++.
1186
1187 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
1188
1189         * config/rs6000/linuxspe.h: New file.
1190
1191         * config.gcc: Add powerpc-*-linux-gnuspe* target.
1192
1193 2003-05-06  Richard Henderson  <rth@redhat.com>
1194
1195         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
1196         previous frame didn't save sp.  Clear sp for next frame.
1197         (uw_install_context_1): Honor saved sp from frame.
1198
1199 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
1200
1201         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
1202         (mips_move_1word, mips_move_2words): Remove declaration.
1203         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
1204         (mips_restore_gp): Remove insn argument.
1205         * config/mips/mips.h (FP_REG_RTX_P): New macro.
1206         * config/mips/mips.c (volatile_buffer): Remove.
1207         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
1208         (mips_move_1word, mips_move_2words): Remove, replacing with...
1209         (mips_output_move): ...this new function.
1210         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
1211         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
1212         handling of floating-point constants.  Handle zero CONST_DOUBLE
1213         arguments.
1214         (mips_annotate_frame_insn): Replace with...
1215         (mips_set_frame_expr): ...this, which just takes one argument.
1216         (mips_frame_set): Change the register argument to an rtx.
1217         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
1218         check whether moves should be split.  Use mips_split_64bit_move
1219         to split them.  Use mips_subword to generate the high and low
1220         parts of a paired FPR.  Adjust calls to frame_set and
1221         mips_set_frame_expr.
1222         (mips_expand_prologue): Simplify due to above changes.
1223         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
1224         targets, replacing xisting register-only versions.
1225         (UNSPEC_STORE_DF_HIGH): New unspec.
1226         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
1227         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
1228         (*paradoxical_extendhidi2): Remove.
1229         (movdi_internal, movdi_internal2): Use mips_output_move.
1230         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
1231         (movsf_internal1, movsf_internal2): Likewise.
1232         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
1233         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
1234         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
1235         Add m <- G alternative.
1236         (load_df_low, load_df_high, store_df_low): New patterns.
1237         (movhi_internal): Use @ template instead of calling a function.
1238         Remove unnecessary 'z' alternatives.
1239         (movqi_internal): Likewise.
1240         (exception_receiver): Update call to mips_restore_gp.
1241
1242 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
1243
1244         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
1245         (mips_delegitimize_address): Declare.
1246         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
1247         (FIND_BASE_TERM): Define.
1248         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
1249         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
1250         Handle small-data addresses.
1251
1252 2003-05-05  Roger Sayle  <roger@eyesopen.com>
1253
1254         * real.c (real_powi): New function to calculate the value of
1255         a real raised to an integer power, i.e. pow(x,n) for int n.
1256         (real_sqrt): Convert to using the faster do_add, do_multiply
1257         and do_divide API for consistency with the rest of real.c.
1258         * real.h (real_powi): Prototype here.
1259         * builtins.c (fold_builtin):  Avoid local variable mode when
1260         evaluating sqrt at compile time.  Attempt to evaluate pow at
1261         compile-time, by checking for an integral exponent.
1262
1263 2003-05-05  Richard Henderson  <rth@redhat.com>
1264
1265         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
1266
1267 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
1268
1269         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
1270         other FreeBSD ports.
1271         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
1272         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
1273
1274 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
1275
1276         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
1277         expanded variables.
1278         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
1279
1280 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
1281
1282         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
1283         * varasm.c (struct varasm_status): Add deferred_constants field.
1284         (n_deferred_strings): Delete variable.
1285         (n_deferred_constants): New #define.
1286         (struct constant_descriptor_tree): Kill next and label fields.
1287         (const_hash_table, MAX_HASH_TABLE): Delete.
1288         (const_desc_htab): New static variable.
1289         (const_hash): Rename const_desc_hash, and make it fit the
1290         hashtab.h interface.
1291         (const_desc_eq): New.
1292         (const_hash_1, compare_constant): Const-ify arguments.
1293         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
1294         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
1295         (output_constant_def): Do the lookup/insert using the
1296         hashtab.h interface.  Don't muck with n_deferred_constants or
1297         DEFERRED_CONSTANT_P here.
1298         Always call maybe_output_constant_def_contents.
1299         (maybe_output_constant_def_contents): Take a pointer to the
1300         descriptor, not the EXP and RTL separately.  Return
1301         immediately if this constant is not deferred.  Defer output of
1302         everything, except writable string constants.  Update
1303         n_deferred_constants here.
1304         (output_constant_def_contents): Now takes just one argument,
1305         an rtx.  Clear DEFERRED_CONSTANT_P here.
1306         (mark_constant_pool): Update for rename of n_deferred_strings.
1307         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
1308
1309         (init_varasm_status): Clear p->deferred_constants.
1310         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
1311
1312 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1313
1314         * builtins.c (expand_builtin_stpcpy): Only expand when the length
1315         of the source string can be evaluated at compile-time.
1316
1317 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
1318
1319         * testsuite/gcc.c-torture/compile/simd-6.c: New.
1320
1321         * c-typeck.c (digest_init): Handle arrays of vector constants.
1322
1323 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
1324
1325         * builtins.c (expand_builtin_mempcpy): New function.
1326         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
1327         ignored into strcpy no matter what arguments it has.
1328         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
1329         expand_builtin_mempcpy.
1330
1331 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
1332
1333         * testsuite/gcc.dg/20030505.c: New.
1334
1335         * c-typeck.c (convert_for_assignment): Opaque pointers can
1336         interconvert.
1337
1338         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
1339         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
1340         (spe_init_builtins): Rename all pv2si_type_node to
1341         opaque_p_V2SI_type_node.
1342         Remove declaration of pv2si_type_node.
1343         (is_ev64_opaque_type): Accept opaque pointers.
1344
1345 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
1346
1347         * config/rs6000/rs6000.c (validate_condition_mode): Use
1348         flag_finite_math_only.
1349         (rs6000_reverse_condition): Never return UNKNOWN; use
1350         flag_finite_math_only.
1351         (rs6000_generate_compare): Use flag_finite_math_only.
1352         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
1353         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
1354         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
1355
1356         * toplev.c (check_global_declarations): Suppress not-used warning
1357         for volatile variables.
1358
1359 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
1360
1361         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
1362         usage of bitfield instructions for mode1 != BLKmode, only ignoring
1363         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
1364         (store_field): Likewise.
1365
1366 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
1367
1368         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
1369         evsubifw to builtins accepting 5-bit unsigned constants.
1370         (easy_vector_constant): Return if V1DImode.  Fix typo.
1371
1372 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
1373
1374         * config/rs6000/spe.h: Revert licensing change from last patch.
1375
1376 2003-05-05  DJ Delorie  <dj@redhat.com>
1377
1378         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
1379         before reload, but defer the split until after.
1380         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
1381         to match.
1382
1383 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
1384
1385         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
1386         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
1387
1388 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1389
1390         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
1391         is defined.
1392
1393 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1394
1395         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
1396         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
1397         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
1398
1399         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
1400         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
1401         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
1402         New.
1403
1404         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
1405         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
1406
1407         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
1408         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
1409         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
1410         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
1411         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
1412         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
1413         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
1414         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
1415         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
1416         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
1417         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
1418         BUILT_IN_STRDUP): Add "nonnull" attribute.
1419
1420 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1421
1422         * expr.c (store_field): Don't clobber TEMP in shift: it might be
1423         a variable.
1424         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
1425         whose purpose is to step up the alignment.
1426         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
1427
1428         * stor-layout.c (compute_record_mode): Relax restriction
1429         on fields crossing word boundaries forcing BLKmode.
1430
1431 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
1432
1433         * cppinit.c (cpp_create_reader, post_options): Warn about
1434         trigraphs unless explicity set or -trigraphs.
1435         * cpplex.c (warn_in_comment): New.
1436         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
1437         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
1438         * doc/cppopts.texi, doc/cpp.texi: Update.
1439
1440 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1441
1442         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
1443         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
1444         namespace clash.
1445         (GCOV_MERGE_FUNCTIONS): New.
1446         (gcov_merge_fn): Declare.
1447         (struct gcov_ctr_info): New field "merge".
1448         (__gcov_merge_add): Declare.
1449         * coverage.c (ctr_merge_functions): New.
1450         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
1451         of gcov_ctr_info type.
1452         * libgcov.c (__gcov_merge_add): New.
1453         (gcov_exit): Call a hook to merge values of counters.
1454
1455 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
1456
1457         * toplev.h (pedwarn_with_file_and_line): Don't declare.
1458         * diagnostic.c (pedwarn_with_file_and_line): Remove.
1459
1460 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1461
1462         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
1463
1464 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1465
1466         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
1467         expand_builtin_frame_address): Update prototypes.
1468         (expand_builtin_constant_p, expand_builtin_strlen,
1469         expand_builtin_strcpy, expand_builtin_memset,
1470         expand_builtin_bzero, expand_builtin_args_info,
1471         expand_builtin_frame_address): Pass in just the argument(s)
1472         needed, not the entire expression `exp'.
1473         (expand_builtin): Update all calls to these functions.
1474
1475 2003-05-03  Richard Henderson  <rth@redhat.com>
1476
1477         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
1478         <BUILT_IN_DWARF_SP_COLUMN>: New.
1479         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
1480         (BUILT_IN_DWARF_SP_COLUMN): New.
1481         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
1482         (expand_builtin_dwarf_sp_column): New.
1483         * except.h: Update to match.
1484         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
1485         (execute_cfa_program): Record location expression address
1486         before extracting length.
1487         (uw_update_context_1): Install old CFA into stack pointer column.
1488         (uw_init_context_1): Set cfa_reg to stack pointer column.
1489
1490 2003-05-03  Richard Henderson  <rth@redhat.com>
1491
1492         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
1493         return bool.
1494         (toc_relative_expr_p): Likewise.
1495         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
1496         (legitimate_constant_pool_address_p): Move from rs6000.h, change
1497         into a function, downcase all users.
1498         (legitimate_small_data_p): Likewise.
1499         (legitimate_offset_address_p): Likewise.
1500         (legitimate_indexed_address_p): Likewise.
1501         (legitimate_indirect_address_p): Likewise.
1502         (legitimate_lo_sum_address_p): Likewise.
1503         (rs6000_mode_dependent_address): Likewise.
1504         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
1505         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
1506         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
1507         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
1508         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
1509         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
1510         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
1511         * config/rs6000/rs6000-protos.h: Update.
1512
1513 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
1514
1515         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
1516         (REVERSE_CONDITION): Define.
1517
1518         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
1519         to branch_positive_comparison_operator.
1520         (ccr_bit): Check that sCOND conditions are actually a positive bit.
1521         (print_operand): Remove %D substitution.
1522         (rs6000_emit_sCOND): Generate complement operation to ensure that
1523         sCOND input is a positive bit.
1524         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
1525         same order as bCOND, and add the missing ones.  Remove the %D
1526         substitutions from the scc patterns.
1527
1528         * simplify-rtx.c (simplify_relational_operation): Add case for
1529         ! (fabs(x) < 0.0).
1530
1531 2003-05-03  Bruce Korb  <bkorb@gnu.org>
1532
1533         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
1534         in fixincl.x
1535         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
1536
1537 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
1538
1539         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
1540
1541 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
1542
1543         PR c/10604
1544         * c-common.c (warn_sign_compare): Initialize to -1.
1545         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
1546         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
1547         for C++ only.
1548         (c_common_post_options): Set warn_sign_compare from extra_warnings
1549         if it's still -1 at this point.
1550
1551         * toplev.c (maybe_warn_unused_parameter): New static variable.
1552         (set_Wextra): New static function.
1553         (W_options): Remove "extra".
1554         (decode_W_option): Call set_Wextra.
1555         (independent_decode_option): Likewise.
1556         (set_Wunused): Cooperate with set_Wextra in setting
1557         warn_unused_parameter.
1558         (rest_of_compilation): No need to check extra_warnings as
1559         well as warn_uninitialized.
1560
1561         * c-typeck.c (build_binary_op, build_conditional_expr):
1562         No need to check extra_warnings as well as warn_sign_compare.
1563         (internal_build_compound_expr): No need to check extra_warnings
1564         as well as warn_unused_value.
1565         * function.c (expand_function_end): No need to check extra_warnings
1566         as well as warn_unused_parameter.
1567         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
1568         as well as warn_unused_value.
1569
1570         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
1571
1572         * Makefile.in: Disable -Werror for gengtype-lex.o.
1573
1574 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
1575
1576         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
1577         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
1578         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
1579         * calls.c (emit_call_1): Likewise.
1580         (expand_call): For calls initializing constant memory, replace
1581         emission of standalone mem /u clobber with function usage entry.
1582         * expr.c (emit_block_move_via_libcall): Likewise.
1583         * cse.c (count_reg_usage, case EXPR_LIST): New case.
1584         * flow.c (propagate_one_insn): Pass entire operand of
1585         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
1586         * integrate.c (try_constants): For CALL_INSNs, substitute constants
1587         within the FUNCTION_USAGE also.
1588         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
1589         FUNCTION_USAGE lists.
1590         * reload1.c (replace_pseudos_in): Renamed.
1591         (reload): Use it for clobbers surviving until the end of the reload.
1592
1593 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1594
1595         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
1596         gen_lowpart on non-integer modes.
1597
1598         * stor-layout.c (place_field): When adjusting offset_align, use
1599         desired_align, not DECL_ALIGN.
1600
1601 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
1602
1603         * c-decl.c (pending_invalid_xref_file): Remove.
1604         (pending_invalid_xref_line): Remove.
1605         (pending_invalid_xref_location): New.
1606         (lookup_label): Use location_t and input_location directly.
1607         (lookup_tag): Likewise.
1608         (pending_xref_error): Likewise.
1609         (c_expand_body_1): Likewise.
1610         * c-common.c (x_expand_start_cond): Likewise.
1611         * c-semantics.c (genrtl_for_stmt): Likewise.
1612         (find_reachable_label): Likewise.
1613         * expr.c (expand_expr): Likewise.
1614         * integrate.c (output_inline_function): Likewise.
1615         * tree-inline.c (find_alloca_call): Likewise.
1616         (find_builtin_longjmp_call): Likewise.
1617         * gcc.c (input_filename): Make static.
1618
1619 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
1620
1621         * config/mips/mips.md: Fix comment typo.
1622
1623         * config/mips/mips.c (mips_integer_op): New structure.
1624         (MIPS_MAX_INTEGER_OPS): Define.
1625         (mips_const_insns): Use mips_build_integer to determine the number
1626         of instructions needed to load a CONST_INT.
1627         (move_operand): Reject compound CONST_INTs.
1628         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
1629         (mips_move_integer): New fn.
1630         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
1631         (mips_legitimize_move): Only legitimize constants when moving
1632         word or subword values.
1633
1634 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
1635
1636         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
1637
1638 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1639
1640         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
1641         modifying it.
1642
1643 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1644             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1645
1646         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
1647         Hernandez, and Kazu Hirata.  Update Richard Henderson.
1648
1649 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
1650
1651         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
1652         to tentative declaration.
1653
1654         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
1655         (SYMBOL_FLAG_SMALL_V4): Delete.
1656         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
1657         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
1658         (rs6000_elf_in_small_data_p): Add extra section names.  Add
1659         comment about TREE_PUBLIC test.
1660
1661         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
1662         expand_stmt on result of expand_unreachable_stmt.
1663
1664 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1665
1666         * doc/contrib.texi (Contributors): Add Daniel Berlin.
1667
1668 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
1669
1670         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
1671         number of automata.
1672
1673         * config/rs6000/rs6000.c (symbol_ref_operand): Check
1674         SYMBOL_REF_FUNCTION_P on AIX.
1675         (current_file_function_operand): Same.
1676         * config/rs6000/rs6000.md (call,call_value): Force non-function
1677         symbol_ref into register on AIX.
1678
1679 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
1680
1681         * calls.c (struct arg_data): Move offset, slot_offset, size and
1682         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
1683         (initialize_argument_information): Adjust call to locate_and_pad_parm.
1684         Delete alignment_pad var.  Don't calculate slot_offset here.
1685         (emit_library_call_value_1): Delete alignment_pad, offset and size
1686         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
1687         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
1688         partial in-regs here.  Formatting fixes.
1689         * expr.h (struct locate_and_pad_arg_data): New struct.
1690         (locate_and_pad_parm): Adjust declaration.
1691         * function.c (assign_parms): Localize vars.  Use "locate" instead of
1692         other arg location vars.  Don't invoke FUNCTION_ARG or
1693         FUNCTION_INCOMING_ARG unless pretend_named is different from
1694         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
1695         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
1696         Use slot_offset for stack home of reg parms.  Correct test for
1697         parm passed in memory.  Formatting fixes.
1698         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
1699         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
1700         Correct initial_offset_ptr handling.  Localize vars.  Always pad
1701         locate->offset even when in_regs.
1702
1703 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
1704
1705         * Makefile.in (TREE_H): Replace location.h with input.h.
1706         (GTFILES) Remove location.h
1707         (gt-lists.h): Replace gt-location.h with gt-input.h
1708         * input.h (input_filename, input_line): Remove variables.
1709         (location_s, location_t): Move from location.h.
1710         (input_location): New.
1711         (input_filename, input_line): New #defines.
1712         * location.h: Remove.
1713         * tree.h: Replace location.h with input.h.
1714         (input_filename, input_line): Remove.
1715         * diagnostic.h: Replace location.h with input.h.
1716         * gcc.h (input_filename, input_filename_length): Remove declarations.
1717         * toplev.c (input_filename, input_line): Remove.
1718         (input_location): Define.
1719         (push_srcloc, pop_srcloc): Adjust.
1720         * diagnostic.c (diagnostic_report_current_module): Adjust.
1721
1722 2003-05-02  Nick Clifton  <nickc@redhat.com>
1723
1724         * configure.in: Add xstormy16 to list of targets that has a nop
1725         instruction and hence which can be tested to see if the
1726         assembler supports the --gdwarf2 switch.
1727         * configure: Regenerate.
1728
1729 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1730
1731         PR target/8257
1732         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
1733         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
1734         Avoid undefined shifts by making the shift operand unsigned.
1735
1736 2003-05-01  DJ Delorie  <dj@redhat.com>
1737
1738         * reload.c (find_reloads): Also check that all of a multi-reg
1739         value is in the class.
1740
1741 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
1742
1743         * scan.h (lineno): Revert the rename here.
1744
1745 2003-05-01  Stan Shebs  <shebs@apple.com>
1746
1747         * config/darwin.c (darwin_encode_section_info): Call
1748         default_encode_section_info.
1749
1750 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
1751
1752         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
1753         (movsi_internal1): Use new mfjmpr attribute.
1754         (movhi_internal): Same.
1755         (movqi_internal): Same.
1756         (movcc_internal1): Same.
1757         (movdi_internal64): Same.
1758         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
1759         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
1760         * config/rs6000/40x.md: Add fpu_405.
1761         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
1762         into power4misc automata.  Remove extraneous parentheses.
1763         * config/rs6000/440.md: New file.
1764         * config/rs6000/rs6000.c (processor_target_table): Add 440,
1765         440fp.  Rename 405f to 405fp.
1766         (function_arg_padding): Correct formatting.
1767         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
1768
1769 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
1770
1771         * input.h (lineno): Rename to ...
1772         (input_line): ... here.
1773         * tree.h (lineno): Rename to ...
1774         (input_line): ... here.
1775         * scan.h (lineno): Rename to ...
1776         (input_line): ... here.
1777         * toplev.c (lineno): Rename to ...
1778         (input_line): ... here.
1779         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
1780         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
1781         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
1782         store_parm_decls, c_expand_body_1): Likewise.
1783         * c-errors.c (pedwarn_c99): Likewise.
1784         * c-format.c (status_warning): Likewise.
1785         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
1786         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
1787         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
1788         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
1789         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
1790         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
1791         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
1792         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
1793         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
1794         * coverage.c (create_coverage): Likewise.
1795         * diagnostic.c (pedwarn, sorry, error, fatal_error,
1796         internal_error, warning, diagnostic_report_current_module,
1797         inform): Likewise.
1798         * expr.c (expand_expr): Likewise.
1799         * integrate.c (expand_inline_function,
1800         output_inline_function): Likewise.
1801         * rtl-error.c (file_and_line_for_asm): Likewise.
1802         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
1803         walk_tree): Likewise.
1804         * tree.c (make_node): Likewise.
1805         * ada, cp, f, java, objc, treelang: Likewise.
1806         * objc/objc-act.c (objc_init): Rename lineno to input_line.
1807         (build_module_descriptor, build_selector_translation_table,
1808         build_protocol_template, build_method_prototype_list_template,
1809         build_category_template, build_selector_table,
1810         build_class_template, build_super_template, build_ivar_template,
1811         build_ivar_list_template, build_method_list_template,
1812         build_method_template, add_instance_variable): Likewise.
1813
1814         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
1815         name from input_filename.
1816
1817 2003-04-30  Eric Christopher  <echristo@redhat.com>
1818             Richard Sandiford <rsandifo@redhat.com>
1819
1820         * configure: Regenerate from patches below.
1821         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
1822         for all symbolic operands.
1823         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
1824         to function.
1825         * config/mips/linux.h: Fix typo.
1826         * Merge from mips-3_4-rewrite branch:
1827
1828         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
1829
1830                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
1831                 handling local labels when TARGET_ABICALLS.
1832
1833         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
1834
1835                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
1836                 integer argument.
1837                 (mips_expand_call): Likewise.
1838                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
1839                 (FIXED_REGISTERS): Clear $31 entry.
1840                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
1841                 (EPILOGUE_USES): Define.
1842                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
1843                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
1844                 (override_options): Add a 'j' register class.
1845                 (mips_expand_call): Handle sibcalls
1846                 (mips_expand_epilogue): Handle epilogues for sibcalls.
1847                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
1848                 (sibcall_epilogue): New pattern.
1849                 (call, call_value): Adjust calls to mips_expand_call.
1850                 (sibcall, sibcall_value): New expanders.
1851                 (sibcall_internal, sibcall_value_internal): New patterns.
1852                 (sibcall_value_multiple_internal): New pattern.
1853
1854         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
1855
1856                 * config/mips/mips.md (extended_mips16): New attribute.
1857                 (define_attr length): Default to 8 if extended_mips16 == yes.
1858                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
1859                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
1860                 (call_internal): Set extended_mips16 to yes for direct jumps.
1861                 Remove redundant mode attribute.
1862                 (call_value_internal, call_value_multiple_internal): Likewise.
1863                 (call_split): Remove redundant mode attribute.
1864                 (call_value_split, call_value_multiple_split): Likewise.
1865
1866                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
1867                 of unaligned offsets.
1868
1869                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
1870                 of SYMBOL_GENERAL.
1871
1872         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
1873
1874                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
1875                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
1876                 for mips16 code.
1877
1878         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
1879
1880                 * config/mips/mips.h (ADDRESS_COST): Define.
1881
1882         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
1883
1884                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
1885                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
1886                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
1887
1888         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
1889
1890                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
1891                 of a two-instruction sequence.  Add register->memory alternative.
1892                 (truncdihi2, truncdiqi2): Likewise.
1893                 Rework shift/truncate instructions so that they only handle right
1894                 shifts of 32 (or more, in the case of arithmetic shifts).
1895                 Add patterns for truncate/sign-extend.
1896
1897         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
1898
1899                 * configure.in (mips*-*-*): Check for explicit relocation support.
1900                 * configure: Regenerate.
1901
1902         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
1903
1904                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
1905                 and -mno-explicit-relocs.
1906                 (MASK_EXPLICIT_RELOCS): Define.
1907                 (TARGET_EXPLICIT_RELOCS): Use it.
1908                 (mips_split_addresses): Remove declaration.
1909                 * config/mips/mips.c (override_options): Update comment for
1910                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
1911
1912         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
1913
1914                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
1915                 a CONST as identity.  Check the return value of gen_lowpart_common.
1916
1917         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
1918
1919                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
1920                 references for TARGET_EXPLICIT_RELOCS.
1921                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
1922                 !TARGET_MIPS16.
1923
1924         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
1925
1926                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
1927                 (addsi3): Remove redundant constraints.
1928                 (addsi3_internal): Use separate register & constant alternatives.
1929                 Use a 'Q' constraint and "addiu" insn for the latter.
1930                 (adddi3_internal_3, addsi3_internal_2): Likewise.
1931
1932         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
1933
1934                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
1935                 (mips_expand_unaligned_store): Declare.
1936                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
1937                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
1938                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
1939                 (UNSPEC_ULD, UNSPEC_USD): Remove.
1940                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
1941                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
1942                 (extv, extzv): Use mips_expand_unaligned_load.
1943                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
1944                 predicate for operand 3.
1945                 (movsi_ulw, movsi_usw): Replace with...
1946                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
1947                 (movdi_uld, movdi_usd): Likewise replace with...
1948                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
1949
1950         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
1951
1952                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
1953                 * config/mips/mips.h (LEA_REGS): New register class.
1954                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
1955                 (GR_REG_CLASS_P): Include LEA_REGS.
1956                 (DANGEROUS_FOR_LA25_P): New macro.
1957                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
1958                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
1959                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
1960                 entries to LEA_REGS.
1961                 (mips_global_pic_constant_p): New function.
1962                 (override_options): Add 'e' register constraint.
1963                 (mips_secondary_reload_class): Return LEA_REGS when reloading
1964                 a dangerous constant into a class containing $25.
1965                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
1966                 (movsi_internal): Likewise.
1967
1968         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
1969
1970                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
1971                 * config/mips/mips.md (call_split): New insn.
1972                 (call_value_split, call_value_multiple_split): New insns.
1973                 (call_internal): Turn into a define_insn_and_split.  Split the
1974                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
1975                 (call_value_internal, call_value_multiple_internal): Likewise.
1976
1977         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
1978
1979                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
1980                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
1981                 (mips_encode_section_info): Don't take symbol visibility into
1982                 account if TARGET_ABICALLS.  Add more commentary.
1983                 * config/mips/mips.md: Add commentary above reloc constants.
1984
1985         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
1986
1987                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
1988                 from mips_legitimize_move.  Legitimize constant pool references.
1989                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
1990                 a REG_EQUAL note to the last instruction.
1991
1992         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
1993
1994                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
1995                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
1996                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
1997                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
1998                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
1999                 (UNSPEC_RELOC_GPREL16): Rename to...
2000                 (RELOC_GPREL16): ...this.
2001                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
2002                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
2003                 (macro_calls): New attribute.
2004                 (length): Use it to set the default length of calls.  Don't allow
2005                 calls to have delay slots if macro_calls is "yes".
2006                 (luisi, luidi): New patterns.
2007                 (lowsi, lowdi): Use '%R' to print the relocation.
2008                 (lowdi_extend): Remove.
2009                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
2010                 (call_internal): Merge alternatives.  Always use "jal".
2011                 (call_value_internal, call_value_multiple_internal): Likewise.
2012                 (reloc_gprel16): Remove.
2013                 * config/mips/mips.c (mips_got_alias_set): New variable.
2014                 (mips_classify_constant): Handle the new relocation constants.
2015                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
2016                 (mips_symbolic_address_p): Return false if generating explicit relocs.
2017                 Otherwise allow local PIC symbols to have an offset.
2018                 (mips_splittable_symbol_p): New function.
2019                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
2020                 (mips_const_insns): Always accept HIGH.
2021                 (call_insn_operand): Don't accept global symbols if using explicit
2022                 relocs.
2023                 (move_operand): Don't accept HIGH when generating PIC.
2024                 (mips_reloc, mips_lui_reloc): New functions.
2025                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
2026                 be a valid right-hand-side for a SET pattern.
2027                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
2028                 (mips_emit_high): New function.
2029                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
2030                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
2031                 address should be used.  Use mips_emit_high to generate the
2032                 high part of such an address.  Adjust the global symbol + offset
2033                 case to match the change to mips_force_temprorary.
2034                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
2035                 If generating explicit-reloc PIC, load the address of global
2036                 symbols from the GOT.  Use mips_emit_high to emit the high part
2037                 of an address.
2038                 (mips_simplify_dwarf_addr): New function.
2039                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
2040                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
2041                 (mips_expand_call): Load the addresses of global functions using
2042                 %call* relocs if generating explicit-reloc PIC.  Don't generate
2043                 an exception_receiver pattern.
2044                 (override_options): Initialize mips_got_alias_set.
2045                 (print_relocation): Remove in favour of...
2046                 (mips_reloc_string): ...this new function.
2047                 (print_operand): Handle '%R'.  Use mips_reloc_string.
2048                 (print_operand_address): Use print_operand to print the symbolic
2049                 part of a LO_SUM address.
2050                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
2051                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
2052                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
2053                 for local symbols.
2054
2055         2003-02-02  Eric Christopher  <echristo@redhat.com>
2056
2057                 * config/mips/mips.c (mips_sign_extend): Remove.
2058                 * config/mips/mips-protos.h: Ditto.
2059                 * config/mips/mips.md (movdi_internal2_extend): Remove.
2060                 (extendsidi2): Fix mode of convert_memory_address.
2061
2062         2003-01-24  Eric Christopher  <echristo@redhat.com>
2063
2064                 * config/mips/mips.md: Rewrite zero_extend* and extend*
2065                 patterns. Use explicit instructions and split after reload
2066                 for register extensions.
2067                 (ashlsi3_internal1_extend): New combiner pattern for
2068                 shift and extend combinations.
2069                 * config/mips/mips.h: Change Pmode back to ptr_mode
2070                 for performance enhancement.
2071                 * combine.c (expand_compound_operation): Make sure
2072                 that zero_extend operation is profitable.
2073
2074         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
2075
2076                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
2077                 addresses depend on ptr_mode rather than Pmode.
2078                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
2079                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
2080                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
2081                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
2082                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
2083                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
2084                 (tablejump_internal1): Remove condition.
2085                 (tablejump_internal2): Change condition to TARGET_64BIT.
2086                 (cpaddsi): Rename to...
2087                 (cpadd): ...this.
2088                 (cpadddi): Remove.
2089
2090         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
2091
2092                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
2093                 mips_address_cost, mips_check_split, double_memory_operand,
2094                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
2095                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
2096                 (mips_legitimate_address_p): Return bool.
2097                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
2098                 mips_legitimize_address, mips_legitimize_move,
2099                 mips_expand_call): Declare.
2100                 (mips_return_addr): Move outside #ifdef RTX_CODE.
2101
2102                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
2103                 (PIC_FN_ADDR_REG): New reg_class.
2104                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
2105                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
2106                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
2107                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
2108                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
2109                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
2110                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
2111                 (LEGITIMATE_PIC_OPERAND): Undefine.
2112                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
2113                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
2114                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
2115                 (FUNCTION_MODE): Change to SImode.
2116                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
2117                 most constants.  Treat const_artih_operands specially if they
2118                 occur in a PLUS or MINUS.
2119                 (CONSTANT_POOL_COST): New macro.
2120                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
2121                 Add LO_SUM handling.
2122                 (ADDRESS_COST): Undefine.
2123                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
2124                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
2125                 to call_insn_operand and remove CONST_INT.
2126
2127                 * config/mips/mips.c: Include integrate.h.
2128                 (SINGLE_WORD_MODE_P): New macro.
2129                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
2130                 (mips_constant_info, mips_address_info): New structs.
2131                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
2132                 (mips_classify_constant, mips_classify_symbol,
2133                 mips_valid_base_register_p, mips_symbolic_address_p,
2134                 mips_classify_address, mips_symbol_insns,
2135                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
2136                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
2137                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
2138                 mips_print_relocation): New functions.
2139                 (const_arith_operand): New operand predicate.
2140                 (arith_operand): Use it.
2141                 (mips_const_double_ok, mips16_simple_memory_operand,
2142                 simple_memory_operand, double_memory_operand, mips_check_split,
2143                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
2144                 mips16_gp_offset_p, mips16_output_gp_offset,
2145                 mips16_constant_after_function_p, mips16_constant): Remove.
2146                 (call_insn_operand): Be more fussy about symbolic constants.
2147                 Use register_operand.
2148                 (move_operand): Use mips_symbolic_address_p to check symbolic
2149                 operands and general_operand to check the rest.
2150                 (symbolic_operand): Use mips_classify_constant.
2151                 (mips_legitimate_address_p): Use mips_classify_address.
2152                 (mips_move_1word): Combine handling of symbolic addresses.
2153                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
2154                 (move_move_2words): Likewise.  Assume addresses are offsettable
2155                 if they need to refer to more than one word.  Add HIGH handling.
2156                 (mips_restore_gp): Use ptr_mode for the GP save slot.
2157                 (mips_expand_call): New function, combining the old mips.md
2158                 call and call_internal define_expands.  If the address isn't
2159                 a call_insn_operand, force it into a register.  For SVR4 PIC,
2160                 emit an exception_receiver instruction after the call.
2161                 (override_options): Only override flag_pic for TARGET_ABICALLS
2162                 if it is currently zero.  Allow mips_split_addresses when
2163                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
2164                 Add new register class letter, 'c'.
2165                 (print_operand): Use mips_classify_constant for constant operands.
2166                 (print_operand_address): Use mips_classify_address.
2167                 (mips_output_function_prologue): Don't use .cprestore.
2168                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
2169                 via the frame pointer if current_function_calls_eh_return.
2170                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
2171                 to mark whether a symbol is local or global.
2172                 (build_mips16_call_stub): Expect the address of the function rather
2173                 than a MEM reference to it.  Update call generation sequences.
2174                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
2175                 small-data adjustments.
2176
2177                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
2178                 length for loads and stores.
2179                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
2180                 (define_attr type): Add const and prefetch.
2181                 (define_attr length): Use mips_const_insns for const instructions.
2182                 Use mips_fetch_insns for load and store instructions.
2183                 (define_attr single_insn): New.
2184                 (define_attr can_delay): Use it.
2185                 (define_attr abicalls): Remove.
2186                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
2187                 (addsi3_internal_2): Add 'Q' constraint.
2188                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
2189                 (high): Remove.
2190                 (lowsi): Renamed from low.
2191                 (lowdi): New pattern.
2192                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
2193                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
2194                 (loadgp): Change operand 0 to an immediate_operand.
2195                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
2196                 beforehand.
2197                 (cpaddsi, cpadddi): New patterns.
2198                 (tablejump_internal3, tablejump_internal4): Remove define_expands
2199                 and associated define_splits.
2200                 (call, call_value): Use mips_expand_call.
2201                 (call_internal): New, replacing all existing call_internal* insns.
2202                 (call_value_internal): Likewise call_value_internal*.
2203                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
2204                 (untyped_call): Remove if (operands[0]) magic.
2205                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
2206                 (prefetch_di_address, prefetch_di): Likewise.
2207                 (leasi, leadi): Remove.
2208                 (reloc_gprel16): New.
2209
2210                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
2211                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
2212                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
2213
2214         2003-01-08  Eric Christopher  <echristo@redhat.com>
2215
2216                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
2217                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
2218                 configure check for libgloss.
2219                 * config/mips/elf64.h: Ditto.
2220                 * config/mips/mips.c: Remove ABI_MEABI.
2221                 * config/mips/mips.h: Ditto.
2222
2223         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
2224
2225                 Fix merge fallout.
2226                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
2227                 (muldi3_internal): Remove outdated comment.
2228                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
2229                 (*smsac_di, *umsac_di): Likewise.  Reformat.
2230                 (umulsi3_highpart): Minor formatting tweaks.
2231                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
2232                 redundant scratch operand.  Minor formatting tweak.
2233                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
2234                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
2235                 (smulsi3_highpart): As for the unsigned version.
2236                 (smulsi3_highpart_internal): Likewise.
2237                 (smulsi3_highpart_mulhi_internal): Likewise.
2238                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
2239                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
2240                 (*smul_acc_di): Remove duplicated pattern.
2241                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
2242                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
2243                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
2244
2245         2002-10-22  Eric Christopher  <echristo@redhat.com>
2246
2247                 * config/mips/mips-protos.h (mips_return_addr): New.
2248                 * config/mips/mips.c (mips_return_addr): New.
2249                 (movdi_operand): Remove.
2250                 (se_register_operand): Ditto.
2251                 (se_reg_or_0_operand): Ditto.
2252                 (se_uns_arith_operand): Ditto.
2253                 (se_arith_operand): Ditto.
2254                 (se_nonmemory_operand): Ditto.
2255                 (extend_operator): Ditto.
2256                 (highpart_shift_operator): Ditto.
2257                 (mips_initial_elimination_offset): Remove return address pointer
2258                 elimination.
2259                 (mips_reg_names): Remove $ra.
2260                 (mips_regno_to_class): Ditto.
2261                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
2262                 and TARGET_64BIT.
2263                 (POINTER_BOUNDARY): Remove.
2264                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
2265                 (PROMOTE_MODE): Promote to Pmode.
2266                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
2267                 (Pmode): Define to TARGET_64BIT.
2268                 (FUNCTION_MODE): Define as Pmode.
2269                 (mips_args): Remove deleted functions.
2270                 (SIZE_TYPE): Depend on POINTER_SIZE.
2271                 (PTRDIFF_TYPE): Ditto.
2272                 (FIXED_REGISTERS): Fix extra registers.
2273                 (CALL_USED_REGISTERS): Ditto.
2274                 (CALL_REALLY_USED_REGISTERS): Ditto.
2275                 (RAP_REG_NUM): Remove.
2276                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
2277                 (RETURN_ADDR_RTX): Define to mips_return_addr.
2278                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
2279                 (CAN_ELIMINATE): Ditto.
2280                 * config/mips/mips.md: For DImode patterns, take into account
2281                 deletions above. Split mulsidi patterns into sign_extend and
2282                 zero_extend.
2283
2284         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
2285                     Michael Meissner  <meissner@redhat.com>
2286
2287                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
2288                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
2289                 mop up unnecessarly moves through LO.
2290                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
2291                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
2292                 change mtlo/macc sequences into mul/add sequences when a three-
2293                 address mul is available.
2294                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
2295                 (*mul_sub_si): Fix contraint for operand 5.
2296                 (*muls): Use in 32-bit code as well.
2297                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
2298                 if the destination is LO.  Remove duplicate define_split.
2299                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
2300                 (*msac_di): Likewise.  Fix formatting.
2301                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
2302                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
2303                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
2304                 (*xmulsi3_neg_highpart_mulhi): Likewise.
2305                 (*mul_acc_64bit_di): Remove.
2306                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
2307
2308         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
2309
2310                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
2311                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
2312                 (MULTILIB_DIRNAMES): Remove long32.
2313                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
2314                 (MULTILIB_REDUNDANT_DIRS): Remove.
2315
2316         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
2317
2318                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
2319                 * gcc.c (driver_self_specs): New variable.
2320                 (do_self_spec): New function.
2321                 (main): Use it to process driver_self_specs.
2322
2323         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
2324
2325                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
2326                 Remove DImode define_split for !TARGET_64BIT.
2327                 (anddi3): Remove !TARGET_64BIT support from here as well.
2328                 Change operand 2's predicate to se_uns_arith_operand.
2329                 Add constant alternatives to define_insn.
2330                 (iordi3, xordi3, *nordi3): Likewise.
2331                 (anddi3_internal1, xordi3_immed): Remove.
2332
2333         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
2334
2335                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
2336                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
2337                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
2338                 * config/mips/mips.md: Apply same renaming here.
2339
2340         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
2341
2342                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
2343                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
2344                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
2345                 * config/mips/mips.md (define_attr cpu): Remove r4320.
2346                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
2347
2348         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
2349
2350                 * config/mips/mips.c (mips16_strings): New variable.
2351                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
2352                 symbol in mips16_strings.  Free the list.
2353                 (mips_encode_section_info): Keep track of local strings.
2354
2355         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
2356
2357                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
2358                 (sordered_df, sordered_sf): Remove.
2359                 * config/mips/mips.c (get_float_compare_codes): New fn.
2360                 (gen_int_relational, gen_conditional_move): Use it.
2361
2362         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
2363
2364                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
2365                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
2366                 * config/mips/mips.c (fcc_register_operand): New function.
2367                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
2368                 (override_options): Allow TFmode values in float registers
2369                 if ISA_HAS_8CC.
2370                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
2371                 to fcc_register_operand.  Remove misleading source constraint.
2372                 Use mips_emit_fcc_reload.
2373                 (reload_outcc): Duplicate reload_incc.
2374
2375
2376 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
2377
2378         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
2379
2380 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
2381
2382         * tree-inline.c (inlinable_function_p): Back out last change, it's
2383         unnecessary.
2384
2385 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
2386
2387         * ggc-page.c (TREE_EXP_SIZE): Define.
2388         (extra_order_size_table): New entry for expr trees with
2389         two operands.
2390
2391 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
2392
2393         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
2394         (c_expand_start_cond): Adjust.
2395         (c_expand_end_cond): Don't use warning_with_file_and_file.
2396         (shadow_warning): Likewise.
2397
2398 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
2399
2400         * tree.h (DECL_POINTER_DEPTH): Remove.
2401         (struct tree_decl): Remove pointer_depth.
2402
2403 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
2404
2405         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
2406         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
2407         (rs6000_xcoff_encode_section_info): Remove.
2408         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
2409         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
2410         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
2411         Use SYMBOL_REF_FLAGS.
2412         (rs6000_elf_encode_section_info): Call default_encode_section_info for
2413         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
2414         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
2415         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
2416         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
2417         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
2418
2419 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
2420
2421         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
2422
2423 2003-04-30  Andreas Schwab  <schwab@suse.de>
2424
2425         * doc/extend.texi (Other Builtins): Enclose multiple word data
2426         type in braces for @deftypefn.
2427
2428 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2429
2430         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
2431
2432         * doc/install.texi (--enable-threads): Document "gnat" option.
2433
2434 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
2435
2436         * diagnostic.h (output_formatted_scalar): Tweak.
2437         * diagnostic.c (output_long_decimal): Likewise.
2438         (output_unsigned_decimal): Likewise.
2439         (output_long_unsigned_decimal): Likewise.
2440         (output_octal): Likewise.
2441         (output_long_octal): Likewise.
2442         (output_hexadecimal): Likewise.
2443         (output_long_hexadecimal): Likewise.
2444         (output_pointer): New function.
2445         (output_format): Use it.  Recognize "%p" format specifier.
2446
2447 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2448
2449         * function.c (purge_addressof_1): Postpone insn in fewer cases.
2450
2451 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
2452
2453         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
2454         call abort() after running out of stack space.
2455
2456         * c-typeck.c (function_types_compatible_p): Ignore incompatible
2457         'volatile' qualifiers on a function's return type in GNU mode.
2458
2459 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
2460
2461         * expr.c (emit_group_load): Dump parallels of simd types to
2462         memory.
2463
2464 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
2465
2466         * genautomata.c (add_vect): Check undefined value for range type
2467         too.
2468
2469 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2470
2471         * configure.in:  More general test for cmp --ignore-initial.
2472         * configure:  Regenerate.
2473
2474 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2475
2476         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
2477         (layout_decl, place_field): Likewise.
2478         Also make minor type and whitespace changes.
2479
2480         * tree.c (save_expr): Don't fold a COMPONENT_REF.
2481
2482 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
2483
2484         * calls.c (expand_call): When modes of target and valreg match, force
2485         sibcall failure when target is a MEM.
2486
2487 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
2488
2489         * tree-inline.c (inlinable_function_p): Don't support inlining
2490         functions using varargs.
2491
2492         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
2493
2494         * dwarf2out.c (output_call_frame_info): No need to output EH
2495         unwind information if all_throwers_are_sibcalls.
2496
2497         * c-semantics.c (expand_unreachable_stmt): Return a tree.
2498         (expand_stmt): Update for change to expand_unreachable_stmt.
2499         (expand_unreachable_if_stmt): Likewise.
2500
2501         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
2502
2503 2003-04-29  Jason Merrill  <jason@redhat.com>
2504
2505         PR middle-end/10336
2506         * jump.c (never_reached_warning): Really stop looking if we reach
2507         the beginning of the function.
2508
2509 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
2510
2511         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
2512         Remove redundant macros.
2513         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
2514         (LOCAL_LABEL_PREFIX): Define unconditionally.
2515         (NO_DOT_IN_LABEL): Clarify comment.
2516         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
2517         definition to "long int".
2518
2519 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
2520
2521         bootstrap/10452
2522         * gengtype-yacc.y: Improve portability.
2523
2524 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
2525
2526         * config.gcc: Install obsolete target list for GCC 3.3.
2527         * doc/install.texi: Mention in specific-target instructions
2528         that certain configurations are deprecated.
2529
2530 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
2531
2532         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
2533
2534 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2535
2536         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
2537         * gcc.c (display_help): Likewise.
2538         * toplev.c (f_options): Likewise.
2539         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
2540         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
2541         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
2542         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
2543         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
2544
2545 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
2546
2547         * varasm.c (default_assemble_visibility): Use assemble_name.
2548
2549 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
2550
2551         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
2552         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
2553         (SIZE_TYPE): New macro.
2554         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
2555         (SET_ASM_OP): New macro.
2556         (HANDLE_SYSV_PRAGMA): New macro.
2557         (ASM_WEAKEN_LABEL): New macro.
2558
2559 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
2560
2561         PR c++/10180
2562         * tree-inline.c (expand_call_inline): Call push_srcloc when
2563         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
2564
2565 2003-04-28  Mike Stump  <mrs@apple.com>
2566
2567         * gdbinit.in: Update to reflect new identifier structure.
2568
2569 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
2570
2571         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
2572         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
2573         struct tree_complex, struct tree_vector): Remove RTL field.
2574         (CONSTRUCTOR_ELTS): Use elt 0.
2575         * tree.def (CONSTRUCTOR): Delete first of its two operands.
2576         * varasm.c (output_constant_def): Remove early exit if
2577         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
2578         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
2579         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
2580         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
2581
2582 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
2583
2584         * c-decl.c (finish_decl): When prototype with asmspec is found
2585         for built-in, adjust built_in_decls as well as expr.c decls.
2586         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
2587         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
2588         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
2589
2590 2003-04-28  Richard Henderson  <rth@redhat.com>
2591
2592         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
2593         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
2594         integral constant mult operand.
2595         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
2596         (const_smulsi3_highpart_v8plus): Likewise.
2597         (const_smulsi3_highpart): Likewise.
2598         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
2599         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
2600         (const_umulsi3_highpart_v8plus): Likewise.
2601         (const_umulsi3_highpart): Likewise.
2602
2603 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
2604
2605         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
2606         Define as 1.
2607
2608 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
2609
2610         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
2611
2612 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
2613
2614         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
2615         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
2616         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
2617         functions.
2618         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
2619
2620 2003-04-28  Nick Clifton  <nickc@redhat.com>
2621
2622         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
2623
2624 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
2625
2626         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
2627         output_constant_def, use its result instead of TREE_CST_RTL (exp).
2628         Can assume it has the form (mem (symbol_ref ".LCxxx")).
2629         (expand_expr <COMPONENT_REF>): Can always just extract the
2630         relevant field of a CONSTRUCTOR.
2631         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
2632         ARRAY_RANGE_REF>): Make control flow explicit.
2633         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
2634         an INTEGER_CST.
2635
2636 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
2637
2638         * reload1.c (reg_set_luid): Fix a comment typo.
2639
2640 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
2641
2642         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
2643         struct deferred_string, const_str_htab): Kill.
2644         (n_deferred_strings): New static variable.
2645         (build_constant_desc): Set SYMBOL_REF_DECL of the new
2646         symbol_ref to point to the constant.
2647         (output_constant_def): When a deferred string is forced out,
2648         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
2649         (mark_constant): Likewise.
2650         (maybe_output_constant_def_contents): When deferring a string
2651         constant, just set STRING_POOL_ADDRESS_P and increment
2652         n_deferred_strings.
2653         (mark_constant_pool): Check n_deferred_strings, not the size
2654         of const_str_htab.
2655         (init_varasm_once): No need to create const_str_htab.
2656
2657         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
2658         SYMBOL_REF_DECL points to a constant.
2659
2660 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
2661
2662         * varasm.c (output_constant_def): Split out two new static
2663         functions, build_constant_desc and maybe_output_constant_def_contents.
2664         Restructure for comprehensibility.  Don't call
2665         output_addressed_constants.  Treat defstr being non-NULL for
2666         STRING_POOL_ADDRESS_P constants as an invariant.
2667         (struct deferred_string): Remove labelno field.
2668         (output_constant_def_contents): Kill labelno argument. Call
2669         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
2670         asm_out.internal_label.
2671         (mark_constant): Update call to output_constant_def_contents.
2672         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
2673         constants as an invariant.
2674
2675 2003-04-26  Richard Henderson  <rth@redhat.com>
2676
2677         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
2678         (ix86_expand_call, ix86_rtx_consts): Likewise.
2679
2680 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2681
2682         * doc/md.texi (cmpstr): Document additional restrictions.
2683
2684 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
2685
2686         * flags.h (time_report): Remove.
2687         * timevar.c (timevar_enable): New.
2688         (TIMEVAR_ENABLE): Remove, use timevar_enable.
2689         (timevar_init): Rename from init_timevar.
2690         * timevar.h (timevar_init): Rename from init_timevar.
2691         * toplev.c (time_report): Make static.
2692         (do_compile): Conditionally call init_timevar first.
2693         (preprocess_options): Move some code to do_compile.
2694
2695 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
2696
2697         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
2698
2699 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
2700
2701         * _cpp_lex_direct: Remove pointless code.
2702
2703 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
2704
2705         * doc/extend.texi (Function Attributes): Document "near" and "far"
2706         for 68HC11 and 68HC12.
2707
2708 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2709
2710         * expr.c (store_field): When making temporary for store, don't
2711         make it TYPE_QUAL_CONST.
2712
2713 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
2714
2715         * toplev.c (read_integral_parameter):  Use "argument" in error
2716         message to distinguish it from actual invalid options.
2717
2718 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
2719
2720         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
2721         addition of __PIC__ and __pic__ macros.
2722         * config/xtensa/xtensa.h: Clean up indentation.
2723
2724 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
2725
2726         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
2727         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
2728         (SUBTARGET_CPP_SPEC): Define.
2729         (LIB_SPEC): Delete.
2730         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
2731         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
2732         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
2733         Define.
2734         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2735         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
2736
2737 2003-04-25  H.J. Lu <hjl@gnu.org>
2738
2739         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
2740         for return mode.
2741         (ia64_expand_builtin): Set rmode to SImode for
2742         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
2743         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
2744         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
2745         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
2746
2747 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
2748
2749         * configure.in (make_compare_target):  Test for GNU cmp and set this
2750         variable appropriately.
2751         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
2752         compare4-lean): Rename actual targets to slowcompare*.  New compare*
2753         targets depend on names based on make_compare_target.
2754         * configure:  Regenerated.
2755
2756 2003-04-25  Richard Henderson  <rth@redhat.com>
2757
2758         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
2759         to clobber ar.pfs and ar.unat.
2760         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
2761         fix test for spilling ar.pfs to the stack.
2762
2763 2003-04-25  Richard Henderson  <rth@redhat.com>
2764
2765         PR opt/10315
2766         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
2767         checks during reload; use validize_mem instead of adjust_address.
2768
2769 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
2770
2771         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
2772         return values from recog_memoized().
2773
2774 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2775
2776         PR opt/8705
2777         * gcse.c (try_replace_reg): On a successful substitution of a constant
2778         into a single set, try to simplify the source of the set.
2779         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
2780         constant source.
2781
2782 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
2783
2784         * cpplex.c (cpp_token_len): Tighten up.
2785         (cpp_token_as_text): Need extra byte now.
2786         * cpplib.c (glue_header_name): Need extra 2 bytes.
2787         * cppmacro.c (cpp_macro_definition): Need extra byte.
2788
2789 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
2790
2791         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
2792         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
2793         where they might be not present. Use their _sp64 equivalent
2794         instead.
2795
2796 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
2797
2798         * i386.md (cvtsi2sdq): Fix typo in previous patch.
2799
2800 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
2801
2802         * configure.in: Check whether mbstowcs works.
2803         * configure, config.in: Regenerate.
2804         * intl.c: Use HAVE_WORKING_MBSTOWCS.
2805
2806 2003-04-24  H.J. Lu <hjl@gnu.org>
2807
2808         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
2809         for __sync_bool_compare_and_swap_di for int return type.
2810
2811         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
2812         Change return type to int.
2813         (__sync_bool_compare_and_swap): Likewise.
2814
2815 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
2816
2817         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
2818         looking for fallthru edge.
2819
2820         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
2821         Fix.
2822         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
2823         athlon-fvector): New.
2824         (athlon_*): Revisit to match new optimization guide.
2825         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
2826         * i386.md (cvt??2?? patterns): Fix modes.
2827         (fistp patterns): Set modes.
2828
2829         Accidentaly commited with my earlier reload patch:
2830         PR c/10308
2831         * reload.c (find_reloads_address_1): Reload plus at the place of
2832         index register.
2833
2834 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
2835
2836         New GCOV_TAG_FUNCTION layout
2837         * coverage.c (struct function_list): Replace name with ident.
2838         (struct counts_entry): Likewise.
2839         (fn_ident): New.
2840         (htab_counts_entry_hash, htab_counts_entry_eq,
2841         htab_counts_entry_del): Adjust.
2842         (reads_count_file, get_coverage_counts,
2843         coverage_begin_output, coverage_end_function): Adjust.
2844         (build_fn_info_type, build_fn_info_value): Likewise.
2845         * gcov-dump.c (tag_function): Adjust.
2846         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
2847         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
2848         * gcov.c (struct function_info): Add ident.
2849         (read_graph_file, read_count_file): Adjust.
2850         * libgcov.c (gcov_exit): Adjust.
2851
2852 2003-04-23  Richard Henderson  <rth@redhat.com>
2853
2854         PR opt/8300
2855         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
2856         after initialize_uninitialized_subregs; update reg info assuming
2857         new pseudos were created.
2858
2859 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
2860
2861         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
2862         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
2863         (lex_string): Take cpp_string with full spelling.
2864         (cb_ident): Update.
2865         (c_lex): Update diagnostics.
2866         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
2867         (create_literal): New.
2868         (lex_string): Unterminated literals have type CPP_OTHER.
2869         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
2870         for CPP_OTHER.
2871         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
2872         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
2873         * cpplib.c (parse_include, do_line, do_linemarker,
2874         destringize_and_run): Update for token storing full spelling.
2875         * cpplib.h: Update token spelling types.
2876         * cppmacro.c (stringify_arg, check_trad_stringification):
2877         Update for token storing full spelling.
2878
2879 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
2880
2881         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
2882
2883 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
2884
2885         * arm.h (TARGET_OPTIONS): Add value field.
2886
2887 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
2888
2889         * doc/extend.texi: Remove duplicate 2003 copyright date.
2890
2891 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
2892
2893         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
2894         (libgcov.a): Depends on LIBGCC_DEPS.
2895         * basic-block.h (profile_info): Moved here from coverage.h. Made
2896         a pointer.
2897         * coverage.c (struct function_list): Fixed array of counter types.
2898         (struct counts_entry): Keyed by counter type, contains summary.
2899         (profile_info): Moved to profile.c.
2900         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
2901         vars.
2902         (profiler_label): Remove.
2903         (ctr_labels): New.
2904         (set_purpose, label_for_tag, build_counter_section_fields,
2905         build_counter_section_value, build_counter_section_data_fields,
2906         build_counter_section_data_values, build_function_info_fields,
2907         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
2908         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
2909         build_ctr_info_value, build_gcov_info): New.
2910         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
2911         (reads_counts_file): Adjust.
2912         (get_coverage_counts): Takes counter number. Add summary
2913         parameter. Adjust.
2914         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
2915         create counter array labels.
2916         (coverage_end_function): Adjust.
2917         (create_coverage): Adjust.
2918         (find_counters_section): Remove.
2919         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
2920         (struct section_info, struct profile_info): Remove.
2921         (profile_info): Moved to basic-block.h.
2922         (coverage_counter_ref): Takes a counter number.
2923         (get_coverage_counts): Takes a counter number. Added summary
2924         parameter.
2925         (find_counters_section): Remove.
2926         * gcov-dump.c (tag_arc_counts): Rename to ...
2927         (tag_counters): ... here. Adjust.
2928         (tag_table): Move tag_counters to 3rd entry. Remove
2929         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
2930         (dump_file): Check for counter tag values here.
2931         (tag_summary): Adjust.
2932         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
2933         * gcov-io.h (GCOV_LOCKED): New.
2934         (GCOV_TAG_ARC_COUNTS): Rename to ...
2935         (GCOV_TAG_COUNTS_BASE): ... here.
2936         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
2937         Remove.
2938         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
2939         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
2940         GCOV_TAG_IS_COUNTER): New.
2941         (struct gcov_ctr_summary): New.
2942         (struct gcov_summary): Adjust.
2943         (struct gcov_counter_section): Remove.
2944         struct gcov_counter_section_data): Remove.
2945         (struct gcov_function_info): Rename to ...
2946         (struct gcov_fn_info): ... here. Adjust.
2947         (struct gcov_ctr_info): New.
2948         (struct gcov_info): Adjust.
2949         * gcov.c (read_count_file): Adjust.
2950         (output_lines): Adjust.
2951         * libgcov.c (gcov_exit): Adjust.
2952         (__gcov_flush): Adjust.
2953         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
2954         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
2955         probably_never_executed_bb_p, compute_frequency_function): Adjust
2956         profile_info use.
2957         * profile.c (struct counts_entry): Remove.
2958         (profile_info): Define here.
2959         (get_exec_counts): Adjust get_coverage_counts call.
2960         (compute_branch_probablilities): Remove find_counters_section
2961         call.
2962         (gen_edge_profiler): Adjust coverage_counter_ref call.
2963         * tracer.c (tail_duplicate): Adjust profile_info use.
2964
2965 2003-04-23  Roger Sayle  <roger@eyesopen.com>
2966
2967         PR optimization/10339
2968         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
2969         directly instead of unsafely transforming call into a memcmp.
2970         (expand_builtin_strncmp): Likewise.
2971
2972 2003-04-22  Roger Sayle  <roger@eyesopen.com>
2973
2974         * alias.c (mark_constant_function):  Check for constancy and
2975         purity even of void functions.  Update both the function decl
2976         and the cgraph RTL info with the results.
2977
2978 2003-04-22  Roger Sayle  <roger@eyesopen.com>
2979
2980         * real.c (do_add): Change to return a bool indicating that the
2981         result of the operation may be inexact due to loss of precision.
2982         (do_multiply): Likewise.
2983         (do_divide): Likewise.
2984
2985 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
2986             Loren James Rittle  <ljrittle@acm.org>
2987
2988         * dwarf2out.c (fde_table_allocated): Mark with GTY.
2989         (decl_die_table_allocated): Likewise.
2990         (abbrev_die_table_allocated): Likewise.
2991         (line_info_table_allocated): Likewise.
2992         (separate_line_info_table_allocated): Likewise.
2993         (pubname_table_allocated): Likewise.
2994         (arange_table_allocated): Likewise.
2995         (ranges_table_allocated): Likewise.
2996         (decl_die_table_in_use): Unconditionalize; mark with GTY.
2997         (abbrev_die_table_in_use): Likewise.
2998         (line_info_table_in_use): Likewise.
2999         (separate_line_info_table_in_use): Likewise.
3000         (pubname_table_in_use): Likewise.
3001         (arange_table_in_use): Likewise.
3002         (ranges_table_in_use): Likewise.
3003         (have_location_lists): Likewise.
3004         (emitcount): New GTY-marked static, moved...
3005         (maybe_emit_file): ...from here.
3006         (label_num): New GTY-marked static, moved...
3007         (gen_internal_sym): ...from here.
3008
3009 2003-04-22  Richard Henderson  <rth@redhat.com>
3010
3011         PR 8866
3012         * rtl.h (MEM_NOTRAP_P): New.
3013         (MEM_COPY_ATTRIBUTES): Copy it.
3014         * rtlanal.c (may_trap_p): Check it.
3015         * expr.c (do_tablejump): Set it.
3016         * doc/rtl.texi (Flags): Document it.
3017
3018         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
3019
3020 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
3021
3022         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
3023         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
3024
3025 2003-04-22  Vincent Celier <celier@gnat.com>
3026
3027         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
3028         --enable-threads=gnat.
3029         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
3030         * configure.in: Add gnat to the list of thread packages
3031         * configure: Rebuild.
3032         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
3033
3034 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
3035
3036         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
3037
3038 2003-04-22  Devang Patel  <dpatel@apple.com>
3039
3040         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
3041         parameter count.
3042         (_cpp_copy_replacement_text): Same.
3043
3044 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
3045
3046         * c-lex.c (c_lex): Handle CPP_OTHER differently.
3047         * cppexp.c (_cpp_parse_expr): Similarly.
3048         * cpplex.c (SPELL_CHAR): Remove.
3049         (_cpp_lex_direct): Stray chars are saved as byte strings.
3050         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
3051         handle SPELL_CHAR.
3052         (cpp_avoid_paste): Update handling of CPP_OTHER.
3053         * cpplib.h: Spell CPP_OTHER like a number.
3054         (struct cpp_token): Remove member c.
3055         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
3056
3057 2003-04-22  David Turner <novalis@gnu.org>
3058
3059         * gbl-ctors.h: Add special license exception.
3060         * libgcc2.h: Likewise.
3061         * tsystem.h: Likewise.
3062         * gcov-io.h: Likewise.
3063
3064 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
3065
3066         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
3067         macro defaulting to original BRANCH_COST heuristic.
3068         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
3069
3070         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
3071
3072 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
3073
3074         * config/rs6000/t-spe: Merge in t-fprules into file.
3075
3076         * config.gcc: Add t-spe to powerpc-eabispe.
3077
3078 2003-04-22  Kean Johnston  <jkj@sco.com>
3079
3080         * tlink.c (recompile_files): Add missing '=' to putenv calls
3081
3082 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
3083
3084         * ginclude/stddef.h: Provide C++ safe offsetof.
3085
3086 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
3087
3088         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
3089         for reg notes, if there are no substitutions, just use a SUBREG.
3090
3091 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
3092
3093         * Makefile.in (calls.o): Depend on except.h.
3094         * calls.c: Include except.h.
3095         (emit_call_1): Call note_eh_region_may_contain_throw if
3096         appropriate.
3097         * except.c (eh_region): Add may_contain_throw.
3098         (expand_eh_region_end_cleanup): Do not include handler code when
3099         it cannot be reached.
3100         (note_eh_region_may_contain_throw): New function.
3101         * except.h (note_eh_region_may_contain_throw): New function.
3102
3103 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
3104
3105         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
3106         changes.
3107
3108 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
3109
3110         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
3111         64-bit long doubles.
3112
3113 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
3114
3115         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
3116         a number of conversions required for type consistency and previously
3117         stripped off by STRIP_NOPS.
3118
3119         * calls.c (expand_call): Prevent sibcall optimization for calls to
3120         nested subprograms.
3121
3122         * expmed.c (extract_bit_field): Reverse operands of && condition to
3123         prevent a potential division by zero in the previously first branch.
3124         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
3125
3126 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
3127
3128         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
3129         (subrange_type_die): Likewise.
3130         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
3131         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
3132
3133 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
3134
3135         Break out coverage routines to new file.
3136         * Makefile.in (COVERAGE_H): New variable
3137         (C_OBJS): Add coverage.o
3138         (coverage.o): New target.
3139         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
3140         dependencies.
3141         (GTFILES): Adjust.
3142         (gt-coverage.h): New target.
3143         (gt-profile.h): Remove.
3144         * profile.h: Remove. Move to ...
3145         * coverage.h: ... here. New. #include gcov-io.h.
3146         * gcov-io.h: Move function definitions to ...
3147         * gcov-io.c: ... here. New.
3148         * profile.c: Move coverage routines to coverage.c.
3149         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
3150         end_branch_prob): Adjust.
3151         * coverage.c: New. Coverage routines from profile.c
3152         (coverage_counter_ref, coverage_init, coverage_finish,
3153         coverage_end_function, coverage_begin_output,
3154         coverage_counter_ref, get_coverage_counts): Define.
3155         * gcov-dump.c, gcov.c: #include gcov-io.c.
3156         * libgcov.c: Likewise. Adjust.
3157         * loop-init.c: Don't #include profile.h
3158         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
3159         * rtl.h: Add coverage prototypes.
3160         * toplev.c (compile_file): Init coverage, not branch_prob.
3161         Always call coverage_finish.
3162         (rest_of_compilation): Call coverage_end_function.
3163
3164 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
3165
3166         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
3167
3168 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
3169
3170         * c-ppoutput.c (cb_include): Don't take a cpp_token.
3171         * cppfiles.c: Don't undef strcmp.
3172         (find_include_file): Don't take a cpp_token.  Check for empty
3173         file names.
3174         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
3175         (cpp_push_include): Simplify.
3176         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
3177         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
3178         (parse_include): Similary.  Don't check for zero-length filenames.
3179         (do_include_common, do_pragma_dependency): Update accordingly.
3180         * cpplib.h (struct cpp_callbacks): Change prototype of include.
3181
3182 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3183
3184         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
3185         details of conflict handling.
3186
3187         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
3188         when conversion overflows.
3189
3190         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
3191
3192         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
3193         before clearing.
3194
3195 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
3196
3197         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
3198         have the same form as the old RTL.
3199
3200 2003-04-21  Andreas Jaeger  <aj@suse.de>
3201
3202         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
3203
3204 2003-04-20  Chris Lattner  <sabre@nondot.org>
3205             Zack Weinberg  <zack@codesourcery.com>
3206
3207         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
3208         genrtl_cleanup_stmt.  Correct comment at head of
3209         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
3210
3211         * stmt.c (struct nesting): Kill n_function_calls.
3212         (expand_start_bindings): Don't set
3213         thisblock->data.block.n_function_calls.
3214         (expand_end_bindings): Compare function_call_count against 0.
3215         (expand_cleanups): Kill DONT_DO argument; all callers passed
3216         NULL_TREE. All callers updated to match.
3217
3218 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
3219
3220         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
3221         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
3222         (output_constant_def): Remove code predicated on
3223         defer_addressed_constants_flag.
3224
3225         * output.h: Remove prototypes of deleted functions.
3226         * c-typeck.c (constructor_subconstants_deferred): Kill.
3227         (struct initializer_stack): Remove 'deferred' field.
3228         (start_init): Remove all references to the above.
3229         (finish_init): Likewise. Also remove never-executed call to
3230         output_deferred_addressed_constants.  Pull assignment to
3231         defstr out of if expression.
3232
3233 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
3234
3235         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
3236         NOTE_NEWLINE): Remove.
3237         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
3238         to handle new form of line note type.
3239
3240 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
3241
3242         * target.h (encode_section_info): Add new argument carrying
3243         the RTL to be modified by the hook.
3244
3245         * varasm.c (make_decl_rtl, output_constant_def): Update calls
3246         to encode_section_info.
3247         (default_encode_section_info): Take and use RTL argument,
3248         don't use TREE_CST_RTL or DECL_RTL.
3249         * output.h: Update prototype of default_encode_section_info.
3250         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
3251         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
3252         Update calls to encode_section_info.
3253
3254         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
3255         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
3256         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
3257         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
3258         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
3259         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
3260         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
3261         except for PE dllimport/dllexport.  Update calls to
3262         default_encode_section_info.
3263
3264         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
3265         Update prototypes.
3266
3267         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
3268
3269 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3270
3271         PR/8705
3272         * pa.md (movccfp): New expander.
3273         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
3274         Reverse fcmp conditions.
3275
3276 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3277
3278         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
3279         of operand 1 correctly.
3280
3281 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
3282
3283         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
3284         * gcov.c (output_lines): Don't be so fussy about going past EOF.
3285
3286 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
3287
3288         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
3289         (cppcharset.o): New target.
3290         * c-lex.c (is_extended_char): Move to cppcharset.c.
3291         (utf8_extend_token): Delete.
3292         * cppcharset.c: New file.
3293         * cpphash.h (_cpp_valid_ucn): New.
3294         * cpplex.c (lex_identifier): Update prototype.
3295         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
3296         escapes.
3297         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
3298         in cppcharset.c.
3299         (lex_number, lex_identifier, cpp_parse_escape): Update.
3300         (_cpp_lex_direct): Update to handle UCNs.
3301         (cpp_avoid_paste): Don't paste to form a UCN.
3302
3303 2003-04-19  Roger Sayle  <roger@eyesopen.com>
3304
3305         * builtins.c (expand_builtin):  Don't expand a pure or const
3306         built-in function if the result will be ignored and none of
3307         its arguments are volatile.
3308
3309 2003-04-19  Kean Johnston  <jkj@sco.com>
3310
3311         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
3312         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
3313         target fragment now: t-sco5; dont compile crti.o.
3314         * config/i386/sco5.h: major overhaul to remove all COFF remnants
3315         and to use elfos.h for most definitions.
3316         (BSS_SECTION_ASM_OP): set correct segment attributes.
3317         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
3318         (DWARF2_UNWIND_INFO): Always set to 1.
3319         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
3320         (MD_STARTFILE_PREFIX_1): Define.
3321         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
3322         (DEFAULT_LINKER): Define if not specified to configure.
3323         (CTORS_SECTION_ASM_OP): Remove COFF crud.
3324         (DTORS_SECTION_ASM_OP): Remove COFF crud.
3325         (WINT_TYPE): Define.
3326         (SDB_DEBUGGING_INFO): Remove.
3327         (EXTRA_SECTIONS): Likewise.
3328         (EXTRA_SECTION_FUNCTIONS): Likewise.
3329         (CTOR_LIST_BEGIN): Likewise.
3330         (CTOR_LIST_END): Likewise.
3331         (INIT_SECTION_FUNCTION): Likewise.
3332         (FINI_SECTION_FUNCTION): Likewise.
3333         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
3334         (LOCAL_LABEL_PREFIX): Likewise.
3335         (NON_SAVING_SETJMP): Likewise.
3336         (RETURN_POPS_ARGS): Likewise.
3337         (ASM_OUTPUT_SKIP): Likewise.
3338         (TARGET_ASM_NAMED_SECTION): Likewise.
3339         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3340         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
3341         (ASM_OUTPUT_IDENT): Likewise.
3342         (ASM_OUTPUT_CASE_LABEL): Likewise.
3343         (ASM_OUTPUT_ASCII): Likewise.
3344         (ASM_OUTPUT_LIMITED_STRING): Likewise.
3345         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3346         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3347         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3348         (ASM_FINISH_DECLARE_OBJECT): Likewise.
3349         (ASM_DECLARE_OBJECT_NAME): Likewise.
3350         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
3351         (ASM_DECLARE_FUNCTION_NAME): Likewise.
3352         (ASM_DECLARE_RESULT): Likewise.
3353         (ASM_WEAKEN_LABEL): Likewise.
3354         (SUPPORTS_WEAK): Likewise.
3355         (APPLY_RESULT_SIZE): Likewise.
3356         (LPREFIX): Likewise.
3357         (ALIGN_ASM_OP): Likewise.
3358         (ASCII_DATA_ASM_OP): Likewise.
3359         (IDENT_ASM_OP): Likewise.
3360         (ASM_SHORT): Likewise.
3361         (ASM_LONG): Likewise.
3362         (TYPE_ASM_OP): Likewise.
3363         (SIZE_ASM_OP): Likewise.
3364         (STRING_ASM_OP): Likewise.
3365         (SKIP_ASM_OP): Likewise.
3366         (EH_FRAME_SECTION_ASM_OP): Likewise.
3367         (READONLY_DATA_SECTION_ASM_OP): Likewise.
3368         (INIT_SECTION_ASM_OP): Likewise.
3369         (FINI_SECTION_ASM_OP): Likewise.
3370         (TEXT_SECTION_ASM_OP): Likewise.
3371         (DATA_SECTION_ASM_OP): Likewise.
3372         (TYPE_OPERANT_FORMAT): Likewise.
3373         (ASM_SPEC): Remove COFF code.
3374         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
3375         cause -pg to emit an error; use pcrt1elf.o with -pp
3376         (ENDFILE_SPEC): Likewise.
3377         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
3378         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
3379         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
3380         add -z alt_resolve to support weak symbols the way GCC wants them.
3381         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
3382         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
3383         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
3384         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
3385         (CRTSTUFF_T_CFLAGS_S): Define.
3386         (MULTILIB_OPTIONS): Likewise.
3387         (MULTILIB_DIRNAMES): Likewise.
3388         (MULTILIB_MATCHES): Likewise.
3389         (MULTILIB_EXTRA_OPTS): Likewise.
3390         (LIBGCC): Likewise.
3391         (INSTALL_LIBGCC): Likewise.
3392         (crti.o): Remove.
3393         * config/i386/t-sco5gas: Remove.
3394         * doc/install.texi: Updated for new OpenServer instructions.
3395         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
3396
3397 2003-04-19  Kean Johnston  <jkj@sco.com>
3398
3399         * fixinc/check.tpl: Allow user to over-ride diff program.
3400         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
3401         (sco_math): Added test for SCO math header files.
3402         (sco_regset): Added check for conflicts with ieeefp.h.
3403         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
3404         * fixinc/fixincl.x: Regenerated
3405         * fixinc/tests/base/math.h: Added sco_math tests.
3406         * fixinc/tests/base/string.h: New file.
3407         * fixinc/tests/base/sys/regset.h: New file.
3408
3409 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
3410
3411         * cpphash.h (struct cpp_buffer): Remove backup_to.
3412         * cpplex.c (BACKUP, get_effective_char): Die.
3413         (_cpp_skip_block_comment): Assume '*' is location on entry.
3414         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
3415         (IF_NEXT_IS): Update.
3416         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
3417
3418 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
3419
3420         * README.Portability: Move to a new section and obsolete K+R
3421         portability issues.
3422
3423 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
3424
3425         * rtlanal.c (subreg_offset_representable_p):  Fix call of
3426         subreg_lowpart.
3427
3428 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
3429
3430         * cpphash.h (struct cpp_reader): New member warned_dollar.
3431         * cpplex.c (continues_identifier_p): New function.
3432         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
3433         lex_number and lex_string, and simplify.
3434         (parse_slow, unescaped_terminator_p): Die.
3435         (_cpp_lex_direct): Update.
3436
3437 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3438
3439         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
3440
3441 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
3442
3443         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
3444         fork behaviour.
3445
3446 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
3447
3448         * cppexp.c (eval_token): Permit true and false even if pedantic.
3449
3450 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
3451
3452         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
3453
3454 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
3455
3456         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
3457         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
3458         (struct include_file): Remove fefcnt, mapped members.
3459         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
3460         (read_include_file): Don't use mmap, terminate buffers in '\r'.
3461         (purge_cache): Don't use munmap.
3462         * cpphash.h (CPP_BUF_COLUMN): Update.
3463         (lexer_state): Remove lexing_comment.
3464         (struct _cpp_line_note): New.
3465         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
3466         next_line and need_line.  Remove col_adjust and saved_flags.
3467         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
3468         _cpp_skip_block_comment, scan_out_logical_line): New.
3469         (_cpp_init_mbchar): Remove.
3470         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
3471         (cpp_read_main_file): Set line to 1 earlier.
3472         (post_options): -traditional-cpp doesn't want trigraphs.
3473         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
3474         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
3475         _cpp_get_fresh_line): New.
3476         (handle_newline, skip_escaped_newlines, trigraph_p,
3477         continue_after_nul, _cpp_init_mbchar): Remove.
3478         (get_effective_char): Update.
3479         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
3480         (skip_line_comment): Simplify.
3481         (skip_whitespace, parse_identifier, parse_slow, parse_number,
3482         parse_string): Update.
3483         (cpp_lex_direct): Use clean lines and process line notes.  Update.
3484         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
3485         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
3486         directly.
3487         (_cpp_handle_directive): Don't set saved_flags.
3488         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
3489         cpp_undef, handle_assertion, cpp_push_buffer): Update.
3490         (_cpp_pop_buffer): Free notes.
3491         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
3492         * cpppch.c (cpp_read_state): \n terminate buffer.
3493         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
3494         (copy_comment): Use _cpp_skip_block_comment.
3495         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
3496         Simplify.
3497         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
3498         save_replacement_text): Update.
3499         (scan_out_logical_line): Update to use clean lines and process
3500         line notes.
3501         * fix-header.c (read_scan_file): Update.
3502
3503 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
3504
3505         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
3506         null begin parameter (as well as pointer to null).
3507         (__deregister_frame_info_bases): Likewise.
3508
3509 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3510
3511         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
3512         hard or virtual register and copy into pseudo if replacement fails.
3513
3514         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
3515
3516         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
3517
3518 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
3519
3520         * calls.c (expand_call): Move special case for constructor calls
3521         to right place. Ensures constructor calls used to initialize
3522         arguments get a clean outgoing argument block for themselves.
3523         Move check for stack deallocation completeness until after last
3524         deallocation.  Add stack_pointer_delta to set of state
3525         variables saved and restored along with current stack_level.
3526
3527         * integrate.c (expand_inline_function): Ensure non-const actuals
3528         don't end up const in the caller's flow after conversion to possibly
3529         const formal type.
3530
3531 2003-04-18  Vincent Celier  <celier@gnat.com>
3532
3533         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
3534         and *_DIV_EXPR as TRUNC_*_EXPR.
3535
3536 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
3537
3538         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
3539         for orphaned jump tables.
3540
3541 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
3542
3543         * reload1.c: Revert my previous patch on 2002-04-17.
3544
3545 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3546
3547         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
3548         Add Segher Boessenkool.
3549
3550 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
3551
3552         PR c/9177
3553         * c-decl.c (c_expand_body): Don't garbage collect the function
3554         body if we are going to dump it later.
3555
3556 2003-04-18  Richard Henderson  <rth@redhat.com>
3557
3558         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
3559         (alpha_end_function): Don't set them.
3560         (decl_in_text_section): Remove.
3561         (alpha_encode_section_info): Remove.
3562         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
3563         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
3564         sections, rather than decl_in_text_section results.
3565
3566 2003-04-18  Roger Sayle  <roger@eyesopen.com>
3567
3568         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
3569         and SIGN_EXTRACT.
3570
3571 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3572
3573         PR optimization/7675
3574         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
3575         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
3576         nested functions if they refer to declarations from parent functions.
3577         * stmt.c (expand_decl): Don't put automatic variables in registers
3578         if the DECL_NONLOCAL flag is set.
3579
3580 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
3581
3582         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
3583         consider those to be movable where the source matches
3584         want_to_gcse_p.
3585         (update_ld_motion_stores): In comment, refer to
3586         compute_ld_motion_mems for validity of replacement.
3587
3588 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
3589
3590         * gcov-dump.c (tag_summary): Remove max_sum
3591         * gcov-io.h (gcov_summary, gcov_write_summary,
3592         gcov_read_summary): Kill max_sum.
3593         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
3594         message more verbose.
3595
3596         * emit-rtl.c (subreg_hard_regno):  Check that register is
3597         representable.
3598
3599         * reload.c (reload_inner_reg_of_subreg):  When register is not
3600         representable, reload the whole thing.
3601         (find_reloads): Likewsie.
3602         * rtlanal.c (subreg_representable_p):  New function.
3603
3604         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
3605         allow negative probabilities for edges from the call to exit.
3606         (branch_prob): Do not add fake edges for functions that may return
3607         twice.
3608
3609 2003-04-17  DJ Delorie  <dj@redhat.com>
3610
3611         * toplev.c (target_options): Add value field.
3612         (set_target_switch): Handle target options with values.
3613         * doc/tm.texi: Document how fixed vs variable target
3614         options work.
3615         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3616         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
3617         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3618         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
3619         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
3620         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
3621         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
3622         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
3623         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
3624         Add value initializer to target options.
3625
3626 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
3627
3628         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
3629
3630 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
3631
3632         * reload1.c (move2add_last_cc0): New.
3633         (reload_cse_move2add): Detect implicit sets.
3634         (move2add_note_store): Notice a store into cc0.
3635
3636 2003-04-17  Roger Sayle  <roger@eyesopen.com>
3637
3638         PR c/10375
3639         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
3640         function attributes.
3641
3642 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
3643
3644         * doc/sourcebuild.texi (Test Suites): Document support for testing
3645         binary compatibility (moved from testsuite/README.compat).
3646
3647 2003-04-17  Richard Henderson  <rth@redhat.com>
3648
3649         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
3650
3651 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
3652
3653         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
3654         the one provided by the FSF.
3655
3656 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3657
3658         * doc/install.texi (Binaries): Update URL and list of platforms
3659         provided by ftp.thewrittenword.com.
3660
3661 2003-04-17  Richard Henderson  <rth@redhat.com>
3662
3663         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
3664         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
3665         * config/xtensa/xtensa.md (call, call_value): Likewise.
3666
3667 2003-04-17  Richard Henderson  <rth@redhat.com>
3668
3669         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
3670         (print_operand_address): Likewise.
3671         (ep_memory_operand): Likewise.
3672         (special_symbolref_operand): Likewise.
3673         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
3674         (v850_encode_section_info): Call default_encode_section_info.
3675         (v850_strip_name_encoding): Remove.
3676         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
3677         (ASM_OUTPUT_LABELREF): Remove.
3678         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
3679         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
3680         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
3681         (ENCODED_NAME_P): Remove.
3682         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
3683         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
3684         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
3685
3686 2003-04-17  Richard Henderson  <rth@redhat.com>
3687
3688         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
3689         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
3690         SYMBOL_REF_FUNCTION_P.
3691
3692 2003-04-17  Richard Henderson  <rth@redhat.com>
3693
3694         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
3695         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
3696         (text_segment_operand): Likewise.
3697
3698 2003-04-17  Richard Henderson  <rth@redhat.com>
3699
3700         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
3701         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
3702         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
3703         (sh_encode_section_info): Remove.
3704         (sh_strip_name_encoding): Remove.
3705         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
3706         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
3707         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
3708         (ASM_OUTPUT_LABELREF): Remove.
3709         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
3710         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
3711
3712 2003-04-17  Richard Henderson  <rth@redhat.com>
3713
3714         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
3715         (tls_model_chars): Remove.
3716         (larl_operand): Use SYMBOL_REF_FLAGS.
3717         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
3718         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
3719         (s390_output_mi_thunk): Likewise.
3720         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
3721         (s390_function_profiler): Likewise.
3722         (s390_encode_section_info): Use default_encode_section_info
3723         and SYMBOL_FLAG_ALIGN1.
3724         (s390_strip_name_encoding): Remove.
3725         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
3726         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
3727         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
3728
3729 2003-04-17  Richard Henderson  <rth@redhat.com>
3730
3731         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
3732         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
3733         (print_operand_address): Likewise.
3734
3735         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
3736         * config/ns32k/ns32k.c (expand_block_move): Don't check
3737         flag_unroll_loops.
3738
3739 2003-04-17  Richard Henderson  <rth@redhat.com>
3740
3741         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
3742         SYMBOL_REF_FLAG.
3743
3744 2003-04-17  Richard Henderson  <rth@redhat.com>
3745
3746         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
3747
3748         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
3749         (SYMBOL_REF_MODEL): New.
3750         (LIT_NAME_P): Move from m32r.h.
3751         (m32r_select_section): Remove.
3752         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
3753         (m32r_strip_name_encoding): Remove.
3754         (m32r_in_small_data_p): New.
3755         (small_data_operand): Use SYMBOL_REF_SMALL_P.
3756         (addr24_operand): Use SYMBOL_REF_MODEL.
3757         (call26_operand): Likewise.
3758         (addr32_operand): Tidy.
3759         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
3760         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
3761         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
3762         (READONLY_DATA_SECTION_ASM_OP): Remove.
3763         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3764         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
3765         (TARGET_ASM_SELECT_SECTION): Remove.
3766         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
3767         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
3768         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
3769         (ASM_OUTPUT_LABELREF): Remove.
3770
3771 2003-04-17  Richard Henderson  <rth@redhat.com>
3772
3773         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
3774         (encode_section_info): Remove.
3775         * config/ip2k/ip2k-protos.h: Update.
3776
3777 2003-04-17  Richard Henderson  <rth@redhat.com>
3778
3779         * varasm.c (default_encode_section_info): Don't set
3780         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
3781         * config/i370/i370.c (i370_encode_section_info): Remove.
3782         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
3783         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
3784         * config/i370/i370.md (movsi): Likewise.
3785
3786         * config/i370/t-i370: Add missing backslash.
3787
3788 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3789
3790         * doc/invoke.texi (inline-limit): Fix pasto.
3791
3792 2003-04-17  Richard Henderson  <rth@redhat.com>
3793
3794         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
3795         (small_call_insn_operand): Use it.
3796         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
3797         (h8300_eightbit_constant_address_p): Use it.
3798         (SYMBOL_FLAG_TINY_DATA): New.
3799         (h8300_tiny_constant_address_p): Use it.
3800         (h8300_encode_label, h8300_strip_name_encoding): Remove.
3801         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
3802         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
3803         (ASM_OUTPUT_LABELREF): Remove.
3804
3805 2003-04-16  Richard Henderson  <rth@redhat.com>
3806
3807         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
3808         all users with SYMBOL_REF_SMALL_P.
3809         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
3810         (frv_encode_section_info): Remove.
3811         (frv_strip_name_encoding): Remove.
3812         (frv_in_small_data_p): Merge tests from encode_section_info.
3813         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
3814         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
3815         (SDATA_NAME_P): Remove.
3816         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
3817         (ASM_OUTPUT_LABELREF): Remove.
3818         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
3819
3820         * config/frv/frv.c (frv_asm_out_constructor): New.
3821         (frv_asm_out_destructor): New.
3822         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
3823         (DTORS_SECTION_ASM_OP): New.
3824         (ASM_OUTPUT_CONSTRUCTOR): Remove.
3825         (ASM_OUTPUT_DESTRUCTOR): Remove.
3826
3827 2003-04-16  Richard Henderson  <rth@redhat.com>
3828
3829         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
3830         SYMBOL_REF_LOCAL_P; abort if not pic.
3831         (cris_encode_section_info): Remove.
3832
3833 2003-04-16  Richard Henderson  <rth@redhat.com>
3834
3835         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
3836         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
3837
3838         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
3839         flag_inline_trees.
3840
3841 2003-04-16  Richard Henderson  <rth@redhat.com>
3842
3843         * config/avr/avr.c (avr_encode_section_info): Remove.
3844         (avr_insert_attributes): New.
3845         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
3846         (avr_assemble_integer): Likewise.
3847
3848 2003-04-16  Richard Henderson  <rth@redhat.com>
3849
3850         * arc.c (arc_encode_section_info): Remove.
3851         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
3852         (arc_print_operand, arc_print_operand_address): Likewise.
3853         * arc.h (EXTRA_CONSTRAINT): Likewise.
3854
3855 2003-04-16  Roger Sayle  <roger@eyesopen.com>
3856
3857         * c-semantics.c (find_reachable_label): New function to find a
3858         potentially reachable label in an expression.
3859         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
3860         assumes the start of the IF_STMT is unreachable (dead) code.
3861         (expand_unreachable_stmt): Similar to expand_stmt but assumes
3862         the start of the statement list is unreachable (dead) code.
3863         (genrtl_if_stmt):  If the controlling expression of the IF
3864         is constant, use expand_unreachable_stmt for the THEN or ELSE
3865         clause as appropriate.
3866         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
3867         the body of a SWITCH statement.
3868         (expand_stmt): The code immediately following a "return",
3869         "break", "continue" or "goto" is unreachable.
3870         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
3871
3872 2003-04-16  Richard Henderson  <rth@redhat.com>
3873
3874         * rtl.h (MEM_ALIAS_SET): Update documentation.
3875         * doc/rtl.texi (Special Accessors): New node.
3876         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
3877
3878 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
3879
3880         * reload1.c (reload_cse_noop_set_p): Return false if mode of
3881         SET_DEST is not the same as that returned by...
3882         * cselib.h (cselib_reg_set_mode): ... new function.
3883         * cselib.c (cselib_reg_set_mode): Define it.
3884         (REG_VALUES): Document semantics of first element as set mode.
3885         (cselib_subst_to_values): Skip first element if ELT is NULL.
3886         (cselib_lookup): Likewise.  Insert past the first element.
3887         (cselib_invalidate_regno): NULLify first element.
3888         (cselib_record_set): Set first element.
3889
3890 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
3891
3892         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
3893         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
3894         * tree.h: Add prototypes for the two new functions.
3895         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
3896         updates introduced in the previous revision by call to saved_expr_p.
3897         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
3898
3899         * expr.c (store_field): Force usage of bitfield instructions when
3900         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
3901         (expand_expr, case BIT_FIELD_REF): likewise.
3902
3903 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
3904
3905         PR middle-end/8866
3906         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
3907         jumptables.
3908
3909 2003-04-16  Richard Henderson  <rth@redhat.com>
3910
3911         * config/ia64/ia64.c (sdata_symbolic_operand): Use
3912         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
3913         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
3914         (function_operand): Use SYMBOL_REF_FUNCTION_P.
3915         (ia64_expand_load_address): Likewise.
3916         (ia64_assemble_integer): Likewise.
3917         (ia64_encode_section_info): Remove.
3918         (ia64_strip_name_encoding): Remove.
3919         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
3920         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
3921
3922 2003-04-16  Richard Henderson  <rth@redhat.com>
3923
3924         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
3925         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
3926         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
3927         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
3928         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
3929         (global_symbolic_operand): Similarly.
3930         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
3931         (tls_symbolic_operand_type): Likewise.
3932         (alpha_encode_section_info): Use default_encode_section_info.
3933         (alpha_strip_name_encoding): Remove.
3934         (get_tls_get_addr): Split out from ...
3935         (alpha_legitimize_address): ... here.
3936         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
3937         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
3938         (alpha_initialize_trampoline): Use init_one_libfunc.
3939         (alpha_setup_incoming_varargs): Mark unused parameters.
3940         (alpha_initial_elimination_offset): Likewise.
3941         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
3942         (unicosmk_unique_section): Use default_strip_name_encoding.
3943         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
3944
3945 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
3946
3947         * config.gcc: Add t-spe for eabispe.
3948
3949         * config/rs6000/t-spe: New.
3950
3951 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
3952
3953         Re-apply this patch:
3954
3955         2002-05-16  Dale Johannesen  <dalej@apple.com>
3956           * combine.c (cant_combine_insn_p):  Reenable combinations
3957           involving hard regs unless CLASS_LIKELY_SPILLED_P.
3958
3959 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3960
3961         PR/10271
3962         * pa-protos.h (function_arg): Remove last argument.
3963         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
3964         * pa.h (struct hppa_args): Add member incoming.
3965         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
3966         member incoming.
3967         (FUNCTION_ARG): Revise call to function_arg.
3968         (FUNCTION_INCOMING_ARG): Delete.
3969
3970 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
3971
3972         * configure.in: Unify the code which creates symlinks to a
3973         just-built as, ld, objdump, and nm with the code that detects
3974         their presence for purposes of feature tests.
3975         * configure: Regenerate.
3976
3977 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
3978
3979         * varasm.c (output_constant_def): Do not consult
3980         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
3981         (after_function_constants, output_after_function_constants): Delete.
3982         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
3983         * config/mips/mips-protos.h, config/mips/mips.c
3984         (mips16_constant_after_function_p): Delete.
3985         * config/mips/mips.h: Delete #if-0-ed definition of
3986         CONSTANT_AFTER_FUNCTION_P.
3987         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
3988         mention of CONSTANT_AFTER_FUNCTION_P in comment.
3989
3990 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
3991
3992         * tree.c (next_decl_uid): Mark with GTY.
3993         (next_type_uid): Likewise.
3994
3995 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
3996
3997         PR target/9594:
3998         * sh.c (barrier_align): Also recognize stuff_delay_slot as
3999         an indicator that a barrier was created by branch splitting.
4000
4001 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
4002
4003         * c-decl.c (implicitly_declare): Copy declarations that are going
4004         to be placed in a local scope.
4005
4006 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
4007
4008         * invoke.texi (Spec Files): Wrap if-exists-else example.
4009         (MCore): Remove duplicate @itemx entries and @opindex entries.
4010
4011 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
4012
4013         * unwind.inc (_Unwind_Backtrace): New function.
4014         * unwind.h (_Unwind_Backtrace): Declare it.
4015         * libgcc-std.ver (_Unwind_Backtrace): Export it.
4016
4017 2003-04-14  Jason Merrill  <jason@redhat.com>
4018
4019         PR middle-end/10336, c++/10401
4020         * jump.c (never_reached_warning): Also stop looking if we reach the
4021         beginning of the function.
4022
4023 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4024
4025         PR target/10338
4026         PR bootstrap/10198
4027         PR bootstrap/10140
4028         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
4029
4030 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
4031
4032         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
4033
4034 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4035
4036         * optabs.c (expand_binop): In multi-word add cases, ensure
4037         XTARGET is copied to TARGET if they are different.
4038
4039 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
4040
4041         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
4042         to region, possible after integration of function with unreachable
4043         regions that were optimized away.
4044
4045 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
4046
4047         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
4048         instead of TOC_REGISTER in epilogue in
4049         current_function_calls_eh_return functions.
4050
4051 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
4052
4053         * doc/extend.texi (Empty Structures): Correct description of G++'s
4054         handling of these structures.
4055
4056         * c-decl.c (grokdeclarator): Reject extern redeclarations of
4057         static variables.
4058
4059 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
4060
4061         * config/rs6000/rs6000.md (define_constants): Define constants for
4062         all UNSPEC usage, including new values for TLS support.
4063         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
4064         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
4065         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
4066         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
4067         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
4068         eh_set_lr_di): Use them.
4069         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
4070         rs6000_emit_epilogue) Use them.
4071
4072         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
4073
4074 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
4075
4076         * Makefile.in (c-opts.o): Use custom action.
4077
4078 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
4079
4080         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
4081
4082 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4083
4084         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
4085         handle "superflat arrays" in Ada.
4086
4087         * integrate.c (expand_inline_function): Don't inline if would
4088         lose /u on a BLKmode TARGET.
4089
4090 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
4091
4092         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
4093         extracted from dbxout_type.
4094         (dbxout_range_type): print large bounds in octal format.
4095         (dbxout_type): Replace extracted code by call to
4096         print_int_cst_bounds_in_octal_p.
4097
4098         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
4099         of DW_LANG_Ada83 for Ada units.
4100
4101 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
4102
4103         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
4104         temporary used to round CONST_INT sizes.
4105
4106         * tree.c (int_fits_type_p): Extract generic checks from the case
4107         of constant type bounds. Refine the checks against constant type
4108         bounds to allow for possible decisions against each of these bounds
4109         without requiring both bounds to be constant.
4110         (tree_int_cst_msb): Put back.
4111         * tree.h (tree_int_cst_msb): Likewise.
4112
4113         * global.c (global_conflicts): Prevent allocation of call clobbered
4114         hard regs to pseudos live across abnormal edges, as later passes are
4115         not ready to handle them.
4116
4117         * fold-const.c (fold): Reorder tests for conditional expressions.
4118
4119         * expr.c (highest_pow2_factor): Return unsigned.
4120         * expr.h (offset_address): Likewise.
4121         * emit-rtl.c (offset_address): POW2 argument now unsigned.
4122
4123 2003-04-14  Roger Sayle  <roger@eyesopen.com>
4124
4125         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
4126         string literals at compile-time.
4127
4128 2003-04-14  Roger Sayle  <roger@eyesopen.com>
4129
4130         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
4131         comparison operation and c1/c2 are floating point constants into
4132         x swap(cmp) (c1 - c2).
4133
4134 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
4135
4136         * genautomata.c (output_translate_vect): Fix a typo in loop
4137         condition.
4138
4139 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
4140
4141         PR target/10377
4142         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
4143         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
4144         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
4145         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
4146         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
4147         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
4148         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
4149         ("*extopqihi_swap_side", "*extopqisi_swap_side")
4150         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
4151         When next to constraint R, replace constraint i with n.
4152
4153 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
4154
4155         PR opt/10024
4156         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
4157
4158 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
4159
4160         * doc/contrib.texi (Contributors): Correct my entry.
4161
4162 2003-04-13  Roger Sayle  <roger@eyesopen.com>
4163
4164         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
4165         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
4166         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
4167         implies DECL_BUILT_IN to simplify logic.
4168         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
4169
4170 2003-04-13  Roger Sayle  <roger@eyesopen.com>
4171
4172         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
4173         (BT_FN_PTR_SIZE_SIZE): Likewise.
4174         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
4175         New built-in functions for malloc, calloc and strdup respectively.
4176         * calls.c (special_function_p): No need to handle malloc-like
4177         functions any longer.  ECF_MALLOC is set via built-in attributes.
4178
4179         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
4180
4181         * doc/extend.texi: Document these new built-in functions.
4182
4183 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4184
4185         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
4186         (expand_builtin_stpcpy): New.
4187         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
4188         * builtins.def: Add mempcpy & stpcpy support.
4189         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
4190
4191 2003-04-13  Nick Clifton  <nickc@redhat.com>
4192
4193         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
4194         "GCC".
4195         * config/rs6000/40x.md, config/rs6000/603.md,
4196         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
4197         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
4198         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
4199         config/rs6000/aix43.h, config/rs6000/aix51.h,
4200         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
4201         config/rs6000/altivec.h, config/rs6000/altivec.md,
4202         config/rs6000/beos.h, config/rs6000/darwin.h,
4203         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
4204         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
4205         config/rs6000/freebsd.h, config/rs6000/gnu.h,
4206         config/rs6000/host-darwin.c, config/rs6000/linux.h,
4207         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
4208         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
4209         config/rs6000/netbsd.h, config/rs6000/power4.md,
4210         config/rs6000/rios1.md, config/rs6000/rios2.md,
4211         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
4212         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4213         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
4214         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
4215         config/rs6000/spe.md, config/rs6000/sysv4.h,
4216         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
4217         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
4218
4219 2003-04-13  Nick Clifton  <nickc@redhat.com>
4220
4221         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
4222         support for -mcall-aix switch.
4223         * config/rs6000/eabiaix.h: Delete.
4224         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
4225         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
4226         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
4227         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
4228         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
4229         debug_stack_info, output_function_profiler,
4230         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
4231         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
4232         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
4233         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
4234         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
4235         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
4236         multilibs.
4237         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
4238         (MULTILIB_EXCEPTIONS): Delete.
4239         (MULTILIB_MATCHES): Remove mcall-aix matches.
4240
4241         * doc/fragments.texi: Replace -mcall-aix example with an ARM
4242         one.
4243         * doc/install.texi: Delete powerpc-*-eabiaix target.
4244         * doc/invoke.texi: Remove documentation of mcall-aix switch.
4245         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
4246         * config.gcc: Delete powerpc-*-eabiaix target.
4247
4248 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
4249
4250         * doc/invoke.texi: Fix typos.
4251         * doc/tm.texi: Likewise.
4252
4253 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
4254
4255         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
4256
4257 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
4258
4259         * tree.c (build_constructor): New function.
4260         * tree.h: Prototype it.
4261
4262         * c-typeck.c (build_c_cast, pop_init_level)
4263         * profile.c (build_function_info_value, build_gcov_info_value)
4264         (create_profiler):
4265         Use build_constructor.
4266
4267         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
4268
4269         * objc/objc-act.c (build_constructor):
4270         Rename objc_build_constructor. Use build_constructor.
4271         (build_objc_string_object, objc_add_static_instance)
4272         (init_def_list, init_objc_symtab, init_module_descriptor)
4273         (generate_static_references, build_selector_translation_table)
4274         (build_descriptor_table_initializer, generate_descriptor_table)
4275         (build_protocol_initializer, build_ivar_list_initializer)
4276         (generate_ivars_list, build_dispatch_table_initializer)
4277         (generate_dispatch_table, generate_protocol_list)
4278         (build_category_initializer, build_shared_structure_initializer):
4279         Update to match.
4280
4281 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
4282
4283         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
4284
4285 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
4286
4287         * config/m68hc11/m68hc11-protos.h
4288         (m68hc11_eq_compare_operator): Declare
4289         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
4290         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
4291         (d_register_operand): Check the operand mode.
4292         (hard_addr_reg_operand): Likewise.
4293
4294 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
4295
4296         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
4297         pattern for dbcc/ibcc generation for 68HC12.
4298         ("doloop_end"): New pattern.
4299         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
4300         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
4301         ("m68hc12_dbcc_dec_qi"): New pattern.
4302         ("m68hc12_dbcc_inc_qi"): New pattern.
4303         (split): Add split for the above when we can't use dbcc/ibcc due to
4304         reloading.
4305         (peephole2): Add peephole2 to generate the above when possible.
4306
4307 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
4308
4309         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
4310         mode of operand 0.
4311         (peephole2 optimize const load): Likewise for operand 2.
4312         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
4313         clobbers CC_REGNUM.
4314         ("*rotrhi3_with_carry"): Likewise.
4315         (ashift:DI 1 split): Update pattern to create the above rotate.
4316         (lshiftrt:DI 1 split): Likewise.
4317
4318 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
4319
4320         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
4321         ("tstqi_z_used" split): Use it.
4322         ("cmphi_z_used"): Likewise.
4323         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
4324         ("cmpqi_z_used"): Likewise.
4325
4326 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
4327
4328         PR c++/7910
4329         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
4330
4331 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
4332
4333         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
4334         * configure, config.in: Regenerate.
4335         * intl.c (gcc_gettext_width): New function.
4336         * intl.h: Prototype it.
4337
4338 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
4339
4340         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
4341         recognize -mnorelax.
4342         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
4343         (REG_CLASS_NAMES): Add its name.
4344         (REG_CLASS_CONTENTS): Define its content.
4345
4346 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
4347
4348         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
4349         parameters so that offsets are valid for far definition.
4350         (__mulsi3): Likewise and use ret to return.
4351         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
4352
4353 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
4354
4355         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
4356
4357 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
4358
4359         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
4360         containing a libgcc.a, move lib* to the corresponding stage dir.
4361
4362         * Makefile.in (stage1-start, stage2-start, stage3-start,
4363         stage4-start): Move $(SPECS) to specs in stage dir.
4364         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
4365         back as $(SPECS).
4366
4367         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
4368         object files from the non-libgcc/ multilib directories as well.
4369
4370 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
4371
4372         * profile.c (read_counts_file): Initialise 'checksum'.
4373
4374         * emit-rtl.c (gen_rtx): Really correct typo.
4375
4376         PR c++/9393
4377         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
4378         * configure.in: Check for gettimeofday.
4379         * tree.c (flag_random_seed): Define.
4380         (default_flag_random_seed): New.
4381         (append_random_chars): Use flag_random_seed rather than trying
4382         to acquire randomness here.
4383         * tree.h (default_flag_random_seed): Declare.
4384         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
4385         descriptions.
4386         (decode_f_option): Handle -frandom-seed.
4387         (print_switch_values): Call default_flag_random_seed.
4388         * flags.h (flag_random_seed): Declare.
4389         * configure: Regenerate.
4390         * config.in: Regenerate.
4391         * config/alpha/t-crtfm: Use -frandom-seed.
4392
4393         * doc/extend.texi (Empty Structures): New.
4394
4395         * c-pch.c: Include flags.h.  Add comments to routines.
4396         (struct c_pch_validity): New.
4397         (get_ident): Update PCH file version number.
4398         (pch_init): Output current debugging type.
4399         (c_common_valid_pch): Check debugging type.
4400         * Makefile.in (c-pch.o): Update dependencies.
4401         * flags.h (debug_type_names): Declare.
4402         * toplev.c (debug_type_names): Move out of decode_g_option.
4403
4404 2003-04-11  Eric Christopher  <echristo@redhat.com>
4405
4406         * emit-rtl.c (gen_rtx): Fix typos.
4407
4408 2003-04-11  Richard Henderson  <rth@redhat.com>
4409
4410         * emit-rtl.c (gen_rtx): Zero '0' fields.
4411
4412 2003-04-11  Richard Henderson  <rth@redhat.com>
4413
4414         PR c++/10202
4415         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
4416         not COMPLETE_TYPE_P for re-invoking layout_decl.
4417
4418 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
4419
4420         * doc/bugreport.texi: Fix paragraph breaking between sections
4421         in preparation for TeXinfo's paragraph indentation fixes.
4422         * doc/extend.texi: Ditto.
4423         * doc/invoke.texi: Ditto.
4424         * doc/objc.texi: Ditto.
4425         * doc/gcov.texi: Wrap 'gcov' in @command{}.
4426         * doc/invoke.texi (Darwin Options): Add a preamble.
4427
4428 2003-04-11  Richard Henderson  <rth@redhat.com>
4429
4430         * config/i386/i386.c (tls_model_chars): Remove.
4431         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
4432         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
4433         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4434         (tls_symbolic_operand_1): Likewise.
4435         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
4436         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
4437         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
4438         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
4439         bits "copied from i386.h" with default_encode_section_info.
4440
4441 2003-04-11  Richard Henderson  <rth@redhat.com>
4442
4443         * rtl.def (SYMBOL_REF): Add two 0 fields.
4444         * gengtype.c (adjust_field_rtx_def): Handle them.
4445         * print-rtl.c (print_rtx): Print them.
4446         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
4447         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
4448         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
4449         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
4450         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
4451         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
4452         (SYMBOL_FLAG_MACH_DEP): New.
4453         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
4454         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
4455         (assemble_static_space): Set SYMBOL_REF_FLAGS.
4456         (assemble_trampoline_template): Likewise.
4457         (output_constant_def, force_const_mem): Likewise.
4458         (default_encode_section_info): New.
4459         * output.h: Declare it.
4460         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
4461
4462 2003-04-11  Richard Henderson  <rth@redhat.com>
4463
4464         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
4465         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
4466         * optabs.c (init_optabs): Initialize them.
4467         (init_libfuncs): Use init_one_libfunc.
4468         * calls.c (expand_call): Use gcov_flush_libfunc.
4469         * expr.c (store_constructor): Use setbits_libfunc.
4470         * function.c (expand_main_function): Use init_one_libfunc.
4471         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
4472
4473 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
4474
4475         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
4476         documentation; add DECL_FRIEND_CONTEXT.
4477
4478 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4479
4480         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
4481         notes on linker selection and configuration for 64-bit HP-UX port.
4482         * doc/invoke.texi (hppa): Remove hppa text from description for
4483         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
4484         and -threads options.
4485
4486         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
4487         libc.a on libdld.sl when -static is specified and -nolibdld is not
4488         specified.
4489         * pa64-hpux.h (LIB_SPEC): Likewise.
4490         * pa-hpux11.h (LIB_SPEC): Likewise.
4491         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
4492         is not specified.
4493
4494 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
4495
4496         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
4497         not IDENTIFIER_LOCAL_VALUE.
4498
4499 2003-04-11  Richard Henderson  <rth@redhat.com>
4500
4501         PR c/10201
4502         * expr.c (expand_expr): Move DECL_RTL frobbing ...
4503         * stor-layout.c (layout_decl): ... here.
4504
4505 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
4506
4507         * doc/invoke.texi: Eliminate extra white-space caused by
4508         @gccoptlist{ on its own line.
4509         * doc/invoke.texi: Ensured there are two spaces between each option.
4510         * doc/invoke.texi: Re-wrapped option lines that were too wide.
4511         Added @gol to options that didn't have them.
4512
4513 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
4514
4515         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
4516         gcov-iov.h.
4517
4518         Simplify interface to gcov reading and writing.
4519         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
4520         gcov_alloc, gcov_modified, gcov_errored): Move into ...
4521         (struct gcov_var gcov_var): ... this static structure.
4522         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
4523         Return void.
4524         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
4525         read object.
4526         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
4527         (gcov_reserve_length): Remove.
4528         (gcov_write_tag): New.
4529         (gcov_write_length): Adjust.
4530         (gcov_read_summary, gcov_write_summary): Adjust.
4531         (gcov_eof, gcov_ok): Rename to ...
4532         (gcov_is_eof, gcov_is_error): ... here. Return error code.
4533         (gcov_save_position, gcov_resync): Rename to ...
4534         (gcov_position, gcov_seek): ... here.
4535         (gcov_skip, gcov_skip_string): Remove.
4536         (gcov_error): Remove.
4537         (gcov_open, gcov_close): Adjust.
4538         * gcov.c (find_source): Take const char *, copy it on allocation.
4539         (read_graph_file): Adjust.
4540         (read_count_file): Adjust.
4541         * libgcov.c (gcov_exit): Adjust.
4542         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
4543         tag_arc_counts, tag_summary): Return void. Adjust.
4544         (struct tag_format): Adjust proc member.
4545         (dump_file): Adjust gcov calls.
4546
4547 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
4548
4549         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
4550         mkfixinc.sh.
4551         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
4552         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
4553         build != host sysrooted builds.
4554         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
4555         TARGET_SYSTEM_ROOT even on sysrooted natives.
4556         * configure: Rebuilt.
4557
4558 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
4559
4560         * c-decl.c (struct binding_level): Add shadowed_tags and
4561         function_body; remove this_block, tag_transparent, and
4562         subblocks_tag_transparent; update comments.
4563         (clear_binding_level, lookup_tag_reverse): Kill.
4564         (make_binding_level): Use ggc_alloc_cleared or memset.
4565         (lookup_tag): Remove struct binding_level* parameter.  All
4566         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
4567         current_binding_level->tags if asked for thislevel_only or if
4568         we might have to diagnose "struct foo; union foo;"
4569         (pushlevel): Ignore argument.  Do not push another binding
4570         level on the transition from the parameters to the top level
4571         of the function body; just tweak the flags and proceed.
4572         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
4573         a function body, separate the parameter list from the
4574         top-level local variables.
4575         (set_block): Do nothing.
4576         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
4577         shadowed_tags if necessary.
4578         (warn_if_shadowing): Nuke the special case for local shadowing
4579         parameter.
4580         (pushdecl): Do not create a shadow entry if we are replacing
4581         an older decl in the same binding level.
4582         (pushdecl_function_level): Tweak for new way of indicating
4583         function scope.
4584         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
4585         (start_function): Don't set subblocks_tag_transparent.
4586         (finish_function): Fix up the binding_level stack for totally
4587         empty functions.  Otherwise, don't call poplevel.
4588
4589         * c-common.c (shadow_warning): MANDATORY argument is no longer
4590         necessary.  Always use plain warning.
4591         * c-common.h: Update to match.
4592
4593         * cfglayout.c (scope_to_insns_initialize): Clear block when we
4594         hit the FUNCTION_DECL.
4595         * function.c: Do not create cyclic tree structure.
4596
4597 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
4598
4599         * c-tree.h (struct lang_identifier): Replace global_value,
4600         local_value members with symbol_value, tag_value.  Kill
4601         implicit_decl and limbo_value.
4602         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
4603         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
4604         C_MISSING_PROTOTYPE_WARNED): Kill.
4605         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
4606         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
4607         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
4608         (implicit_decl_warning, lookup_name_current_level,
4609         record_function_scope_shadow): Don't prototype.
4610         (pushdecl_function_level): Prototype.
4611
4612         * c-decl.c (truly_local_externals): New variable.
4613         (struct binding_level): Adjust commentary.
4614         (get_function_binding_level, clear_limbo_values,
4615         record_function_scope_shadow): Kill.
4616         (lookup_name_current_level, implicit_decl_warning): Are now static.
4617         (any_external_decl, record_external_decl): New static functions.
4618         (clone_underlying type): Split out of pushdecl.
4619         (c_print_identifier): Update to match changes to struct
4620         lang_identifier.
4621         (poplevel): Delete #if 0 block.  Make externals invisible
4622         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
4623         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
4624         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
4625         (duplicate-decls): For real parm decl after a forward decl,
4626         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
4627         foo(...) { } with only a warning.  Say whether a previous
4628         declaration was implicit.
4629         (warn_if_shadowing): Now handles all shadowing, not just
4630         local-over-local.  Clarify comments.
4631         (pushdecl): Rewritten.  There is no longer a distinction
4632         between global and local symbol values; they're all
4633         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
4634         DECL_EXTERNAL decls, and use any_external_decl to check
4635         against previous externals.  Kill #if 0 blocks.  Don't
4636         tolerate error_mark_node being NULL.
4637         (pushdecl_top_level): Handle only those cases which
4638         Objective C (the only user) needs.
4639         (pushdecl_function_level): New function.
4640         (implicitly_declare): Create ordinary decls with
4641         C_DECL_IMPLICIT set.  Recycle old decls, however they got
4642         created.
4643         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
4644         for C_DECL_INVISIBLE symbols.
4645         (lookup_name_current_level): Likewise.  Use chain_member.
4646         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
4647         Use pushdecl_function_level.
4648         (builtin_function): Use C_DECL_INVISIBLE.
4649         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
4650         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
4651         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
4652         (identifier_global_value): Same.  Must scan
4653         global_binding_level in extremis.
4654
4655         * c-typeck.c (undeclared_variable): New static function, split
4656         from build_external_ref.
4657         (build_external_ref): Use DECL_CONTEXT, not
4658         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
4659         an instance variable.  Restructure for clarity.
4660         * objc/objc-act.c: Use identifier_global_value, not
4661         IDENTIFIER_GLOBAL_VALUE.
4662
4663 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
4664
4665         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
4666         not Working Paper.
4667         * doc/invoke.texi (C++ Dialect Options): Same.
4668
4669 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
4670
4671         * tree.c (tree_operand_check_failed): New function.
4672         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
4673         TREE_RTL_OPERAND_CHECK): New checking macros.
4674         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
4675         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
4676         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
4677         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
4678         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
4679         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
4680         checking macros.
4681
4682 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
4683
4684         PR inline-asm/8803
4685         * function.c (instantate_virtual_regs):  Verify that all ASM statements
4686         match after the virutal regs instantiation.
4687
4688 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
4689
4690         * ia64-protos.h (addp4_optimize_ok): New.
4691         * ia64.c (addp4_optimize_ok): New.
4692         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
4693         (*ptr_extend_plus_2): Ditto.
4694
4695 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
4696
4697         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
4698         not with convert_memory_address.
4699         (store_constructor): Ditto, and same for copy_size_rtx.
4700         (expand_expr): Ditto.
4701
4702 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
4703
4704         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
4705
4706 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
4707
4708         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
4709         even if it is configured to be write-through.
4710
4711 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
4712
4713         * config/s390/s390.c (larl_operand): Do not allow symbols
4714         marked with '@'.
4715         (s390_encode_section_info): Mark symbols with forced 1-byte
4716         alignment with '@'.
4717         (s390_strip_name_encoding): Strip '@'.
4718         (legitimize_pic_address): Handle symbols that are not valid
4719         LARL operands in 64-bit mode.
4720
4721 2003-04-10  Andrew Haley  <aph@redhat.com>
4722
4723         * tree-inline.c (inlinable_function_p): Disable inlining for
4724         synchronized methods.
4725
4726 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
4727
4728         * c-common.h (lang_statement_code_p): Remove declaration.
4729         (statement_code_p): Ditto.
4730         (c_common_stmt_codes): Define; list of c-common statement codes.
4731         (statement_code_p): New extern declaration.
4732         (STATEMENT_CODE_P): Define.
4733         (INIT_STATEMENT_CODES): Define.
4734         * c-common.c (statement_code_p): Kill the function, declare
4735         as an array of bools instead.
4736         (lang_statement_code_p): Remove.
4737         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
4738         (c_safe_from_p): Ditto.
4739         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
4740         to initialize the statement_code_p array.
4741         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
4742         statement_code_p.
4743         (copy_tree_r): Ditto.
4744         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
4745         statement tree codes.
4746         * cp/lex.c (cxx_init): Add missing print line break.  Use
4747         INIT_STATEMENT_CODES to initialize the statement_code_p array.
4748         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
4749         instead of statement_code_p.
4750         * cp/pt.c (tsubst_expr): Ditto.
4751         * cp/tree.c (verify_stmt_tree_r): Ditto.
4752         (cp_statement_code_p): Remove.
4753         (init_tree): Don't set lang_statement_code_p, it's gone.
4754
4755 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
4756             Zack Weinberg  <zack@codesourcery.com>
4757
4758         * regrename.c (struct du_chain): Use a bitfield for reg_class.
4759         * cse.c (struct qty_table_elem, struct table_elt, struct set):
4760         Use bitfields for fields holding enum rtx_code or
4761         enum machine_mode values.  Add comments explaining size choices.
4762
4763 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
4764
4765         * config/fp-bit.c (unpack_d): Handle pair of doubles with
4766         different signs correctly.
4767
4768 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
4769
4770         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
4771         (reg_pending_barrier): Make it of the enumeration type.
4772         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
4773         TRUE_BARRIER.
4774         (sched_analyze): Ditto.
4775         (sched_analyze_insn): Ditto.  Use anti-dependencies for
4776         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
4777         (init_deps_global): Initialize the barrier as NO_BARRIER.
4778
4779 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
4780
4781         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
4782         Check that asm insn starts on a new cycle.  Add nops after asm
4783         insn to end bundle.
4784         (bundling): Move insn type evaluation from the loop.  Call
4785         issue_nops_and_insn with the new parameter.  Ignore changing
4786         position for nops after asm insn.
4787
4788 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
4789
4790         * optabs.c: Comment that gen_add2_insn and others may actually
4791         return emitted insns, if the gen functions turn out to return
4792         emitted insns.
4793         * reload1.c (reload_cse_move2add): Cope with emitted insns from
4794         gen_add2_insn.
4795
4796 2003-04-09  Richard Henderson  <rth@redhat.com>
4797
4798         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
4799         but not tls_symbolic_operand.
4800         (ia64_expand_load_address): Remove scratch operand.
4801         (ia64_expand_tls_address): Split out from ia64_expand_move.
4802         (ia64_expand_move): Split symbolics only after reload.
4803         (ia64_emit_cond_move): New.
4804         * config/ia64/ia64-protos.h: Update.
4805         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
4806         (symbolic splitter): Accept SImode operands too.
4807         (cmove splitter): Use ia64_emit_cond_move.
4808
4809 2003-04-09  Nick Clifton  <nickc@redhat.com>
4810
4811         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
4812         newer.
4813         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
4814         instead of -mno-fpu.
4815         * config/arm/semi.h (ASM_SPEC): Likewise.
4816         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
4817         but only if -msoft-float is specified pass.  Otherwise pass
4818         -mfpu=softvfp.
4819
4820 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4821
4822         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
4823         free_EXPR_LIST_node.
4824
4825 2003-04-08  Roger Sayle  <roger@eyesopen.com>
4826
4827         * fold-const.c (fold):  Use "fold" following build in more places.
4828         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
4829         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
4830
4831 2003-04-08  Roger Sayle  <roger@eyesopen.com>
4832
4833         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
4834         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
4835         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
4836         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
4837         Delete function scope "fcode" variable to avoid shadowing.
4838
4839 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
4840
4841         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
4842         Take into account DWARF_INITIAL_LENGTH_SIZE.
4843
4844 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
4845
4846         * reorg.c (fill_slots_from_thread): When considering changing the
4847         insn following a reg-to-reg copy insn to use the source reg of the
4848         copy, bail out if there's overlap between the registers.
4849
4850 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4851
4852         * function.c (postponed_insns): New.
4853         (purge_addressof_1): Postpone processing of insns if addressofs
4854         are not put into stack.
4855         (purge_addressof): Process postponed insns.
4856
4857 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
4858
4859         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
4860         this is FP_MODE_DOUBLE .
4861         * sh.c (ra.h): #include.
4862         (push_regs): Add second parameter.  Changed all callers.
4863         If necessary, set fpscr before saving floating point registers.
4864         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
4865         do saves / restores with SZ == 1.
4866         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
4867         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
4868         registers are being restored, restore FPSCR only after restoring them.
4869
4870 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
4871
4872         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
4873         regardless of architecture.
4874         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
4875
4876 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
4877
4878         * sh.c (push_regs, calc_live_regs): Return int.  Take single
4879         HARD_REG_SET * parameter.  Changed all callers.
4880
4881 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
4882
4883         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
4884         GOTOFF operand.
4885         (legitimize_pic_address): Move plus outside the unspec.
4886         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
4887         for validity.
4888
4889 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
4890
4891         * gcov-io.h (gcov_save_position): Remove __inline__ from
4892         declaration.
4893
4894 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
4895
4896         * doc/install.texi: Use @command and @samp for single- and
4897         multi-word commands respectively.
4898         * doc/makefile.texi: Likewise.
4899         * doc/sourcebuild.texi: Likewise.
4900
4901 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
4902             Richard Henderson  <rth@redhat.com>
4903
4904         PR c/9516
4905         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
4906         favour of looping and tail recursion for TREE_LIST and binops.
4907
4908 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4909
4910         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
4911         for insns without luid.
4912
4913 2003-04-07  Glen Nakamura  <glen@imodulo.com>
4914
4915         PR opt/8634
4916         * explow.c (maybe_set_unchanging): Don't flag non-static const
4917         aggregate type initializers with RTX_UNCHANGING_P.
4918
4919 2003-04-07  Richard Henderson  <rth@redhat.com>
4920
4921         PR opt/8634
4922         * function.c (purge_addressof_1): Don't try arithmetics for
4923         unchanging memories.
4924
4925 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
4926
4927         * doc/sourcebuild.texi (Test Suites): Document testing support for
4928         gcov and profile-directed optimizations; describe gcc.misc-tests.
4929
4930 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
4931
4932         PR target/10077
4933         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
4934
4935 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4936
4937         * doc/rtl.texi (Comparison operations): Update to
4938         record the allowed comparison modes.
4939
4940 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
4941
4942         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
4943         V2SI_type_node to opaque_V2SI_type_node.  Rename all
4944         V2SF_type_node to opaque_V2SF_type_node.
4945         (rs6000_init_builtins): Define opaque_V2SI_type_node and
4946         opaque_V2SF_type_node.
4947         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
4948         opaque_V2SF_type_node are opaque types.
4949
4950 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
4951
4952         * gcse.c (replace_store_insn): Use single_set.
4953
4954 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
4955
4956         Change gcov file interface to single file at a time.
4957         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
4958         Convert to C89 prototypes.
4959         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
4960         gcov_error, gcov_modified): New static variables.
4961         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
4962         functions.
4963         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
4964         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
4965         (gcov_read_summary, gcov_write_summary): Adjust.
4966         (gcov_save_position, gcov_reserve_length, gcov_write_length):
4967         Adjust.
4968         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
4969         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
4970         (da_file_position, da_file_seek, da_file_write, da_file_read):
4971         Remove.
4972         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
4973         * gcov.c (gcov_type): Don't typedef here.
4974         (IN_GCOV): #define
4975         (read_graph_file, read_count_file): Adjust.
4976         * gcov-dump.c (gcov_type): Don't typedef here.
4977         (IN_GCOV): #define.
4978         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
4979         Remove FILE parameter, adjust.
4980         (struct tag_format): Adjust proc member.
4981         (dump_file): Adjust.
4982         * libgcov.c (IN_LIBGCOV): #define.
4983         (gcov_exit): Adjust.
4984         * loop-init.c: Don't #include gcov-io.h
4985         * profile.c (struct counts_entry): New structure to hold counter
4986         values.
4987         (struct section_reference, struct da_index_entry): Remove.
4988         (bbg_file, da_file): Remove.
4989         (htab_counts_index_hash, htab_counts_index_eq,
4990         htab_counts_index_del): Replace with ...
4991         (htab_counts_entry_hash, htab_counts_entry_eq,
4992         htab_counts_entry_del): ... these.
4993         (cleanup_counts_index, index_counts_file): Remove.
4994         (read_counts_file): New function.
4995         (get_exec_counts): Adjust.
4996         (compute_branch_probabilities): Don't free the exec counts here.
4997         (branch_prob): Adjust.
4998         (init_branch_prob): Adjust.
4999         (end_branch_prob): Adjust.
5000
5001 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
5002
5003         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5004         -mfloat-gprs.
5005
5006         * config/rs6000/rs6000.c: Delete rs6000_fprs.
5007         Declare rs6000_float_gprs.
5008         Declare rs6000_float_gprs_string.
5009         (rs6000_parse_float_gprs_option): New.
5010         (rs6000_override_options): Genericize rs6000_parse_* calls to use
5011         rs6000_parse_yes_no_option.
5012         Change check for cpu=8540, to use TARGET_E500.
5013         (rs6000_parse_isel_option): Delete.
5014         (rs6000_parse_spe_option): Delete.
5015         (rs6000_parse_vrsave_option): Delete.
5016
5017         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
5018         Define rs6000_float_gprs_string.
5019         (TARGET_OPTIONS): Add rs6000_float_gprs option.
5020
5021         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
5022
5023         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
5024
5025 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
5026
5027         PR opt/10024
5028         * cfglayout.c (cfg_layout_redirect_edge):
5029         Redirect any branch edges unified with the fallthru one.
5030         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
5031         case fallthru edges when called via cfglayout.c
5032
5033 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
5034
5035         * c-typeck.c (output_init_element): Check for type == error_mark_node.
5036
5037 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
5038
5039         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
5040         split.
5041         (a splitter): Do zero-extension via HImode.
5042
5043 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
5044
5045         * doc/invoke.texi: Eliminate extra white-space caused by
5046         @gccoptlist{ on its own line.
5047         * doc/invoke.texi: Ensured there are two spaces between each option.
5048         * doc/invoke.texi: Re-wrapped option lines that were too wide.
5049         Added @gol to options that didn't have them.
5050
5051 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
5052
5053         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
5054
5055 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
5056
5057         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
5058         at the sizes of the relevant structures, rather than relying
5059         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
5060         sizes of any such we don't know about.  Use
5061         lang_hooks.identifier_size for IDENTIFIER_NODE.
5062
5063         (initializer_zerop): Use CONSTRUCTOR_ELTS.
5064         * tree.def: Update commentary.  Make fourth element of
5065         the definition for all 'c' and 'x' nodes zero.
5066
5067         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
5068         * langhooks-def.h: Update to match.
5069         * langhooks.c: New default, lhd_tree_size.
5070
5071         * c-common.def (SRCLOC): Kill.
5072         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
5073         Remove entirely - was already #if-ed out.
5074
5075
5076 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
5077
5078         * mklibgcc.in: Use a here document to avoid running afoul of
5079         shells that generate control-A from "echo \1".
5080
5081 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
5082
5083         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
5084         option.
5085
5086         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5087         rs6000_spe.
5088
5089         * config/rs6000/eabi.h (TARGET_E500): Define.
5090
5091         * config/rs6000/rs6000.h (TARGET_E500): Define.
5092         (TARGET_OPTIONS): Add spe= option.
5093         Declare rs6000_spe and rs6000_spe_string extern.
5094
5095         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
5096         Change TARGET_SPE to TARGET_E500.
5097         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
5098         !TARGET_FPRS.
5099         (print_operand): Same.
5100         (rs6000_generate_compare): Same.
5101         (output_cbranch): Same.
5102         (rs6000_spe): Declare.
5103         (rs6000_spe_string): Declare.
5104         (rs6000_override_options): Call rs6000_parse_spe_option.
5105         (rs6000_parse_spe_option): New.
5106
5107 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
5108
5109         * hashtable.c (gcc_obstack_init): Delete this function
5110         and everything related to it.
5111         * hashtable.h: Remove prototype.
5112         * bitmap.c (bitmap_element_allocate): Cleanup redundant
5113         defines.  Cleanup some unnecessary whitespace.
5114         * defaults.h (obstack_chunk_alloc): Redefine with
5115         appropriate casts for libiberty obstacks.
5116         (obstack_chunk_free): Ditto.
5117         (OBSTACK_CHUNK_SIZE): Define, default to 0.
5118         (gcc_obstack_init): Define as a call to _obstack_begin.
5119         * tree.c (print_obstack_statistics): Delete this unused
5120         function.
5121         * tree.h (obstack): Don't forward-declare.
5122         (print_obstack_statistics): Delete prototype.
5123         (print_obstack_name): Ditto.
5124         (gcc_obstack_init): Ditto.
5125         * rtl.h (gcc_obstack_init): Ditto.
5126         * java/jv-scan.c (gcc_obstack_init): Delete this
5127         function, its prototype and related defines.
5128         * java/jvgenmain.c (gcc_obstack_init): Delete this
5129         function, and related defines.
5130         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
5131         (obstack_chunk_free): Ditto
5132
5133 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
5134
5135         * dbxout.c (dbxout_handle_pch): Move prototype out from
5136         #if defined DBX_DEBUGGING_INFO.
5137
5138 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
5139
5140         * gcov.c (struct arc_info): Replace local_span with cycle.
5141         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
5142         (solve_flow_graph): Set is_call_return.
5143         (add_line_counts): Adjust. In block mode, blocks attach to last line.
5144         (accumulate_line_counts): Find graph cycles, not spanning tree.
5145         (output_branch_count): Adjust.
5146         (output_lines): Adjust.
5147         * doc/gcov.texi: Update.
5148
5149 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
5150
5151         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
5152         the second alternative to "#".
5153
5154 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
5155
5156         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
5157         (single_zero_operand): Likewise.
5158
5159 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
5160
5161         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
5162         * df.c: Include alloc-pool.h, not obstack.h.
5163         (df_ref_obstack): Remove.
5164         (df_ref_pool, df_link_pool): Add pools.
5165         (df_alloc): Init the new pools.
5166         (df_free): And free them.
5167         (df_link_create): Use the pools.
5168         (df_ref_create): Ditto.
5169
5170 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
5171
5172         * simplify-rtx.c: Fix formatting.
5173
5174 2003-04-05  Andrew Pinski  <apinski@apple.com>
5175
5176         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
5177         reg with reg1 == reg2 and offset1 = -8.
5178
5179 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
5180
5181         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
5182         multiply costs.  Correct Power4 divide costs.
5183         * config/rs6000/power4.md: Restore multiply and FP latency.
5184
5185 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5186
5187         * alias.c (find_base_term): Export.
5188         * rtl.h (find_base_term): Declare.
5189         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
5190         instead of flag_exceptions.  Move test for parameter passing ...
5191         (store_killed_in_insn): ... here.
5192
5193 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5194
5195         PR bootstrap/10267
5196         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
5197         for configuring.
5198
5199 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
5200
5201         * dbxout.c (scope_labelno): Add GTY.
5202         (have_used_extensions): Add GTY.
5203         (source_label_number): Add GTY.
5204         (lastfile): Add GTY.
5205         (lastfile_is_base): New.
5206         (base_input_file): New.
5207         (dbxout_handle_pch): New.
5208         (dbx_debug_hooks): Add handle_pch.
5209         (xcoff_debug_hooks): Likewise.
5210         (dbxout_function_end): Remove scope_labelno.
5211         (dbxout_init): Set base_input_file.
5212         (dbxout_handle_pch): New.
5213         (dbxout_source_file): Honour lastfile_is_base.
5214         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
5215         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
5216         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
5217         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
5218         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
5219         * debug.h (struct gcc_debug_hooks): Add handle_pch.
5220         * c-pch.c (pch_init): Don't call start_source_file, but do call
5221         handle_pch.
5222         (c_common_write_pch): Call handle_pch.
5223         (c_common_read_pch): Don't call start_source_file,
5224         or end_source_file.
5225
5226 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
5227
5228         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
5229         use of default attributes to agree MEM_ALIGN macro.
5230
5231 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
5232
5233         * dbxout.c (dbxout_type): When printing type index of range type
5234         whose bounds are printed in octal format, print type of parent type if
5235         it exists so enumerated type descriptions are not transformed
5236         into unsigned types.
5237
5238 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
5239
5240         * config/h8300/h8300-protos.h: Add a prototype for
5241         compute_a_shift_cc.
5242         * config/h8300/h8300.c (shift_one): Update the CC status.
5243         (shift_two): Likewise.
5244         (output_a_shift_cc): Set cc_inline and cc_special.
5245         (compute_a_shift_cc): New.
5246         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
5247
5248 2003-04-04  Richard Henderson  <rth@redhat.com>
5249
5250         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
5251
5252 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
5253
5254         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
5255         * fixinc/fixincl.x: Rebuilt.
5256         * fixinc/tests/base/stdio.h: Regenerated.
5257
5258 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
5259
5260         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
5261
5262 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
5263
5264         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
5265         (NORMAL_MODE).
5266         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
5267
5268 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5269
5270         * doc/contrib.texi (Contributors): Add entries for Wolfgang
5271         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
5272         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
5273         Danny Smith, and Ulrich Weigand.
5274         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
5275         entry.
5276
5277 2003-04-04  Nick Clifton  <nickc@redhat.com>
5278
5279         * config/sparc/sol2-bi.h: Revert previous delta.
5280         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
5281
5282 2003-04-04  Nick Clifton  <nickc@redhat.com>
5283
5284         * config/v850/v850.c (expand_prologue): Only use register save
5285         helper functions if long calls are not being used.
5286         Add a clobber of r11 id using long calls.
5287         (pattern_is_ok_for_prologue): Account for the extra clobber.
5288         (construct_save_jarl): Likewise.
5289         * config/v850/v850.md (prolog pattern): Do not use this pattern
5290         for v850e's.
5291
5292 2003-04-04  Andreas Schwab  <schwab@suse.de>
5293
5294         * stor-layout.c (layout_decl): Avoid syntax error in last change
5295         when PCC_BITFIELD_TYPE_MATTERS is defined but not
5296         EMPTY_FIELD_BOUNDARY.
5297
5298 2003-04-03  Jason Merrill  <jason@redhat.com>
5299
5300         PR c/10175
5301         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
5302         Look backwards for a line note.
5303
5304 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
5305
5306         * fix-header.c (read_scan_file): Defer switch processing.
5307
5308 2003-04-03  Matt Austern  <austern@apple.com>
5309
5310         * cpppch.c (reset_ht): Remove.
5311         (cpp_read_state): Remove loop to reset hashtable identifiers.
5312         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
5313         after pch file is written.
5314         * ggc.h (gt_pch_fixup_stringpool): Declare.
5315         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
5316         hashnode's value to another hashtable, then clear the original.
5317         (saved_ident_hash): Define.
5318         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
5319         store definitions in ident_hash, and clear ident_hash.
5320         (gt_pch_fixup_stringpool): Define.  Restore definitions from
5321         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
5322
5323 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
5324
5325         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
5326
5327 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
5328
5329         PR optimization/10157
5330         * gcse.c (can_copy_p): Rename it to can_copy.
5331         (can_copy_init_p): Remove.
5332         (compute_can_copy): Use can_copy instead of can_copy_p.
5333         (can_copy_p): New exported function. Call compute_can_copy.
5334         (hash_scan_set): Use it.
5335         (gcse_main): Don't call compute_can_copy.
5336         (bypass_jumps): Don't call compute_can_copy.
5337         * rtl.h (can_copy_p): Declare.
5338         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
5339         copy if the mode doesn't support copy operations.
5340
5341 2003-04-03  Jason Merrill  <jason@redhat.com>
5342
5343         * Makefile.in (unstrap): Also remove stage_last.
5344
5345         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
5346         (dwarf2out_source_line): Don't do anything if line==0.
5347
5348         * stor-layout.c (do_type_align): New fn, split out from...
5349         (layout_decl): ...here.  Do all alignment calculations for
5350         FIELD_DECLs here.
5351         (update_alignment_for_field): Not here.
5352         (start_record_layout, debug_rli): Remove unpadded_align.
5353         * tree.h (struct record_layout_info_s): Remove unpadded_align.
5354         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
5355         or DECL_MODE on the CONST_DECLs.
5356         (finish_struct): Don't mess with DECL_ALIGN.
5357
5358 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
5359
5360         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
5361
5362 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
5363
5364         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
5365         function is an interrupt handler.
5366
5367         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
5368         restoring target registers with EH_RETURN_STACKADJ_RTX; use
5369         multiple registers in round-robin fashion.
5370
5371 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5372
5373         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
5374         * system.h (CHAR_BITFIELD): New.
5375
5376 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
5377
5378         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
5379         and LE.
5380         (another peephole2): Likewise.
5381
5382 2003-04-03  Nick Clifton  <nickc@redhat.com>
5383
5384         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
5385         (DEF_ARCH64_SPEC): Likewise.
5386
5387 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
5388
5389         * i386.c (constant_address_p): Use legitimate_constant_p.
5390         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
5391
5392 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
5393
5394         * config/h8300/h8300-protos.h: Add a prototype for
5395         gtle_operator.
5396         * config/h8300/h8300.c (gtle_operator): New.
5397         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
5398         gtle_operator.
5399         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
5400         and LE.
5401
5402 2003-04-02  Richard Henderson  <rth@redhat.com>
5403
5404         * libgcc-std.ver (_Unwind_GetCFA): New.
5405         * unwind-dw2.c (_Unwind_GetCFA): New.
5406         * unwind-libunwind.c (_Unwind_GetCFA): New.
5407         * unwind-sjlj.c (_Unwind_GetCFA): New.
5408         * unwind.h: Declare it.
5409
5410 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
5411
5412         PR inline-asm/8088
5413         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
5414         when MMX/SSE is not available.
5415
5416 2003-04-02  Mike Stump  <mrs@apple.com>
5417
5418         * doc/install.texi (Specific): Update pointers to apple.com.
5419
5420 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
5421
5422         * i386.c (override_options):  Disable red zone by default on i386.
5423         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
5424         Do not test TARGET_64BIT together with TARGET_RED_ZONE
5425
5426 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
5427
5428         * config/h8300/h8300.md (a peephole2): Tighten the condition.
5429
5430 2003-04-02  Richard Henderson  <rth@redhat.com>
5431
5432         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
5433
5434 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
5435
5436         * config/h8300/h8300.md (a peephole2): New.
5437
5438 2003-04-02  Richard Henderson  <rth@redhat.com>
5439
5440         * except.c (sjlj_find_directly_reachable_regions): Recognize when
5441         must-not-throw region has been deleted.
5442
5443 2003-04-02  Richard Henderson  <rth@redhat.com>
5444
5445         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
5446         optimization when flag_exceptions not enabled.
5447
5448 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
5449
5450         * config/rs6000/rs6000.c
5451         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
5452         macros.
5453         (rs6000_issue_rate): Add case for 8540.
5454         (rs6000_use_sched_lookahead): New function.
5455
5456         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
5457         units into MU ones.
5458         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
5459         reservation before retirement.
5460         (ppc8540_multiply, ppc8540_load, ppc8540_store,
5461         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
5462         Remove additional cycle in the reservation before retirement.
5463         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
5464         reservation of ppc8540_issue.
5465
5466 2003-04-02  Andreas Schwab  <schwab@suse.de>
5467
5468         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
5469
5470 2003-04-01  Richard Henderson  <rth@redhat.com>
5471
5472         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
5473         notes for nothrow calls if flag_forced_unwind_exceptions.
5474         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
5475         (sjlj_find_directly_reachable_regions): Likewise.
5476         (reachable_handlers): Likewise.
5477         (can_throw_external): Likewise.
5478         (collect_one_action_chain): Record cleanups after catch-all and
5479         must-not-throw if flag_forced_unwind_exceptions.
5480         * flags.h (flag_forced_unwind_exceptions): Declare.
5481         * toplev.c (flag_forced_unwind_exceptions): New.
5482         (lang_independent_options): Add it.
5483         * doc/invoke.text: Add it.
5484
5485 2003-04-01  David Mosberger <davidm@hpl.hp.com>
5486
5487         * config/ia64/crti.asm: Clean up trailing whitespace.
5488         Remove trailing hashes (#) from identifiers.
5489
5490         * config/ia64/crtn.asm: Ditto.
5491
5492         * config/ia64/crtend.asm: Remove trailing hashes (#) from
5493         identifiers.
5494         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
5495         directives.  Drop explicit bundling---it just makes the code
5496         harder to read.  Don't save/restore gp needlessly.
5497
5498         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
5499         identifiers (they're only needed if the identifier would clash
5500         with a register name otherwise).
5501         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
5502         directives.  Drop explicit bundling---it just makes the code
5503         harder to read.
5504         (__do_jv_register_classes): Ditto.
5505         (.fini_array): Remove "progbits" (newer
5506         assemblers don't like wrong section-types).
5507         (.init_array): Ditto.
5508
5509 2003-04-01  Roger Sayle  <roger@eyesopen.com>
5510
5511         PR fortran/9974
5512         * gcse.c (reg_killed_on_edge): New function to test whether the
5513         given reg is overwritten by any instruction queued on an edge.
5514         (bypass_block): Ignore substitutions killed on incoming edges.
5515         Don't bypass outgoing edges that have queued instructions.
5516
5517 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
5518
5519         * real.h (EXP_BITS): Make room for...
5520         (struct real_value): ... added canonical bit.
5521         (struct real_format): Added pnan.
5522         (mips_single_format, mips_double_format, mips_extended_format,
5523         mips_quad_format): New.
5524         * real.c: Copy p to pnan in all formats.
5525         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
5526         (real_nan): Use pnan to compute significand's shift.
5527         (real_identical): Disregard significand in canonical
5528         NaNs.
5529         (real_hash): Likewise.  Take signalling into account.
5530         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
5531         Disregard significand bits in canonical NaNs.  Set all bits of
5532         canonical NaN if !qnan_msb_set.
5533         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
5534         qnan_msb_set to tell the base double format.
5535         (ibm_extended_format): Use 53 as pnan.
5536         (mips_single_format, mips_double_format, mips_extended_format,
5537         mips_quad_format): Copied from the corresponding ieee/ibm
5538         formats, with qnan_msb_set false.
5539         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
5540         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
5541         * config/mips/mips.c (override_options): Use mips_single_format
5542         and mips_double_format.  Default TFmode to mips_quad_format.
5543         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
5544         * config/mips/t-irix6: Likewise.
5545         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
5546         * config/fp-bit.c (pack_d, unpack_d): Obey it.
5547
5548 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
5549
5550         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
5551         (live_image_destructor): Reset image to initial state.
5552         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
5553
5554 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5555
5556         * config/sparc/sparc.c (input_operand): Accept bare
5557         CONSTANT_P_RTX operands.
5558
5559 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5560
5561         * gcse.c (struct ls_expr): Added pattern_regs field.
5562         (ldst_entry): Initialize it.
5563         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
5564         (store_ops_ok): Use regs precomputed by them.
5565         (find_loads, store_killed_in_insn, load_kills_store): Change return
5566         type to bool.
5567         (store_killed_before, store_killed_after): Take position of register
5568         set in account.
5569         (reg_set_info): Store position of the setter.
5570         (gcse_main): Enable store motion.
5571         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
5572         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
5573         sharing.
5574         (simple_mem): Enable store motion of non-symbol mems.
5575         (regvec): Type changed.
5576         (LAST_AVAIL_CHECK_FAILURE): New.
5577         (compute_store_table_current_insn): New.
5578         (build_store_vectors): Computation of availability and anticipatability
5579         moved ...
5580         (compute_store_table, find_moveable_store): ... here.
5581         (delete_store): Remove senseless comment.
5582         (store_motion): Reorganize.
5583
5584 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
5585
5586         * config/mips/mips.c (override_options): Provide mappings for
5587         HI_REGNUM and LO_REGNUM.
5588         * config/mips/mips.h (MD_DBX_FIRST): Define.
5589
5590 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5591
5592         * combine.c (merge_outer_ops): Fix typo.
5593
5594         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
5595
5596 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
5597
5598         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
5599         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
5600         imul_compare.  Add lmul_compare.
5601         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
5602         in second pair of dispatch slots.  Model stores more accurately.
5603         Tweak multiply model.  Add bypasses for CR instructions dependent
5604         on complicated compares.
5605         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
5606         (muldi3): Add lmul_compare patterns.
5607         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
5608         and FPSTORE_UX to split instructions and add COMPARE,
5609         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
5610         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
5611         (rs6000_rtx_costs): Separate POWER4 multiply case.
5612
5613 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
5614
5615         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
5616         Do nothing if __builtin_return_address was not used.
5617
5618 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
5619
5620         * i386.md (test patterns):  Allow memory operand in operand1.
5621
5622 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
5623
5624         * testsuite/gcc.c-torture/execute/simd-3.c: New.
5625
5626         * expr.c (expand_expr): Handle VECTOR_CST.
5627         (const_vector_from_tree): New.
5628
5629         * varasm.c (output_constant): Handle VECTOR_CST.
5630
5631         * c-typeck.c (digest_init): Build a vector constant from a
5632         VECTOR_TYPE.
5633
5634         * config/rs6000/rs6000.c: Remove prototype for
5635         easy_vector_constant.
5636         (easy_vector_constant): Add mode parameter.  Rewrite to handle
5637         more easy constants.
5638         (rs6000_emit_move): Pass mode to easy_vector_constant.
5639         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
5640         (emit_easy_vector_insn): New.
5641         (easy_vector_same): New.
5642         (EASY_VECTOR_15): New macro.
5643         (EASY_VECTOR_15_ADD_SELF): New macro.
5644         (bdesc_2arg): Rename to xorv2si3.
5645         (easy_vector_constant_add_self): New.
5646         (input_operand): Allow vector constants.
5647
5648         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5649         easy_vector_constant, easy_vector_constant_add_self.
5650         (EXTRA_CONSTRAINT): Add 'W'.
5651
5652         * config/rs6000/rs6000-protos.h: Add prototype for
5653         easy_vector_constant, emit_easy_vector_insn.
5654
5655         * config/rs6000/altivec.md (xorv8hi3): New.
5656         (xorv16qi3): New.
5657         Remove all _const0 patterns.
5658         (movv4si_internal): Rewrite to use code.  Add vector constant to
5659         vector alternative.  Add splitter.
5660         (movv8hi_internal): Same.
5661         (movv16qi_internal): Same.
5662         (movv4sf_internal): Same.
5663         Change the unspecs for vspltis* to use constants.
5664
5665         * config/rs6000/spe.md ("xorv4hi3"): New.
5666         ("spe_evxor"): Rename to xorv2si3.
5667         ("xorv1di3"): New.
5668         Remove all _const0 patterns.
5669         (movv2si_internal): Rewrite to use code.  Add vector constant to
5670         alternatives.  Add splitter.
5671         (movv4hi_internal): Add vector constant to alternatives.
5672         (movv1di_internal): Same.
5673         (movv2sf_internal): Same.
5674
5675 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
5676
5677         PR c/9936
5678         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
5679         variably-sized arrays in parameters.
5680         (set_save_expr_context): New function.
5681         (c_expand_body): Use it, via walk_tree.
5682
5683 2003-03-31  Eric Christopher  <echristo@redhat.com>
5684
5685         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
5686         (combinable_i3pat): Remove call to expand_field_assignment and
5687         #if 0'd code.
5688
5689 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
5690
5691         PR c++/10278
5692         * c-common.c (finish_label_address_expr): Handle the
5693         error_mark_node.
5694
5695 2003-03-31  Richard Henderson  <rth@redhat.com>
5696
5697         * real.c (real_identical): Reorg so as to not compare
5698         signalling for normals.
5699
5700 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
5701
5702         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
5703
5704 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
5705
5706         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
5707         notes as they are boggus.
5708         (m68hc11_gen_movqi): Likewise.
5709
5710 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
5711
5712         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
5713         save the soft registers after the frame pointer so that gdb can unwind
5714         the frame more easily.
5715         (expand_epilogue): Likewise in opposite order; allow to use X register
5716         as scratch if the return value is by reference.
5717
5718 2003-03-31  Jason Merrill  <jason@redhat.com>
5719
5720         PR java/10145
5721         * stor-layout.c (update_alignment_for_field): Respect
5722         DECL_USER_ALIGN for zero-length bitfields, too.
5723         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
5724         fields.
5725
5726 2003-03-31  Matt Austern  <austern@apple.com>
5727
5728         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
5729         (count_defs): Keep track of number of defs as well as total size.
5730         (write_defs): Put every definition in cpp_savedstate's defs array.
5731         (comp_hashnode): Define.  Comparison function for qsort.
5732         (cpp_write_pch_deps): Sort definitions before writing them.
5733         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
5734         (collect_ht_nodes): Define.
5735         (cpp_valid_state): When verifying that undefined identifiers in
5736         the pch file are still undefined, read a sorted list of undefined
5737         identifiers, collect all defined identifiers into a sorted list,
5738         and walk through both lists to make sure there's no match.
5739
5740 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
5741
5742         * config/h8300/h8300.md (a peephole2): New.
5743
5744 2003-03-31  Michael Matz  <matz@suse.de>
5745
5746         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
5747
5748 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
5749
5750         PR target/10177
5751         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
5752         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
5753         all call-clobbered registers as used.
5754
5755 2003-03-31  Michael Matz  <matz@suse.de>
5756
5757         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
5758         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
5759
5760 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
5761
5762         * gcov.c: Add -a & -u options.
5763         (struct arc_info): Add local_span, is_call_non_return,
5764         is_nonlocal_return, is_unconditional flags, remove is_call flag.
5765         (struct block_info): Add flags, is_call_site, is_nonlocal_return
5766         members. Make encodings a union with span member.
5767         (struct function_info): Add blocks_executed, line, src, line_next
5768         members.
5769         (struct coverage_info): Make branches a union with blocks member.
5770         (struct source_info): Add functions member.
5771         (object_summary, program_count): New global variables.
5772         (flag_all_blocks, flag_unconditional): New flags.
5773         (find_source, output_branch_count): New functions.
5774         (print_usage): Adjust.
5775         (options): Adjust.
5776         (process_args): Adjust.
5777         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
5778         <GCOV_TAG_BLOCKS>: Read flags.
5779         <GCOV_TAG_LINES>: Adjust.
5780         (read_count_file): Process SUMMARY tags.
5781         (solve_flow_graph): Set is_unconditional and clear is_call_site
5782         appropriately.
5783         (add_branch_counts): Adjust. Don't count unconditional branches.
5784         (add_line_counts): Deal with all-blocks mode, accumulate block
5785         coverage.
5786         (accumulate_line_counts): Adjust, generate local spanning tree for
5787         all-blocks mode.
5788         (output_lines): Adjust.
5789         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
5790         * doc/gcov.texi: Document.
5791
5792 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
5793
5794         * config/h8300/h8300.md: Organize peephole2's that transform
5795         (compare (reg:HI) (const_int)).
5796
5797 2003-03-31  Roger Sayle  <roger@eyesopen.com>
5798
5799         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
5800         (init_emit_once): Initialize dconstm2 and dconsthalf here.
5801         * real.h (dconstm2, dconsthalf): Add prototypes here.
5802         * real.c (real_sqrt): Use dconsthalf rather than local copy.
5803         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
5804         exp(x/2.0) remember to fold the division if possible.
5805         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
5806         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
5807         1.0/(x*x) and pow(x,0.5) as sqrt(x).
5808
5809 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
5810
5811         * config/h8300/h8300.md (a new peephole2): New.
5812
5813 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
5814
5815         * gcse.c (simple_mem): Return false for floating-point accesses
5816         if flag_float_store is true.
5817
5818 2003-03-30  Roger Sayle  <roger@eyesopen.com>
5819
5820         * gcse.c (gcse_constant_p): New function to identify constants
5821         suitable for constant propagation, including COMPARE with two
5822         integer constant arguments.
5823         (hash_scan_set): Use gcse_constant_p.
5824         (find_avail_set): Likewise.
5825         (cprop_insn): Likewise.
5826         (do_local_cprop): Likewise.
5827         (find_implicit_sets): Likewise.
5828         (find_bypass_set): Likewise.
5829
5830 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
5831
5832         * except.h: Remove definition of varray_type.
5833
5834 2003-03-30  Richard Henderson  <rth@redhat.com>
5835
5836         PR opt/10011, opt/10252:
5837         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
5838         before post-gcse cse pass.
5839
5840 2003-03-30  Roger Sayle  <roger@eyesopen.com>
5841
5842         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
5843
5844 2003-03-30  DJ Delorie  <dj@redhat.com>
5845
5846         * profile.c (instrument_edges): Make sure any newly created
5847         jump insns have correct jump label info.
5848
5849 2003-03-30  Richard Henderson  <rth@redhat.com>
5850
5851         * cfgbuild.c (make_edges): Use tablejump_p.
5852         * cfgcleanup.c (label_is_jump_target_p): Likewise.
5853         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
5854         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
5855         (try_redirect_by_replacing_jump): Likewise.
5856         (redirect_edge_and_branch): Likewise.
5857         * cse.c (fold_rtx): Likewise.
5858         * jump.c (delete_related_insns): Likewise.
5859         * rtlanal.c (get_jump_table_offset): Likewise.
5860         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
5861
5862 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5863
5864         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
5865         (STRICT2_WARN): Likewise.
5866
5867 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5868
5869         PR other/6955
5870         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
5871         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
5872
5873 2003-03-30  Richard Henderson  <rth@redhat.com>
5874
5875         PR c/10083
5876         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
5877         don't zero_extend const inputs.
5878
5879 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
5880
5881         * reload1.c (reload_cse_move2add): Fix a comment typo.
5882
5883 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
5884
5885         * config/h8300/h8300.md (a peephole2): Remove useless code.
5886
5887 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
5888
5889         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
5890         (*iorsi3_and_lshiftrt): Likewise.
5891         (*iorsi3_zero_extract): Likewise.
5892
5893 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
5894
5895         * config/h8300/h8300.md (*insv_si_8_8): New.
5896         (*insv_si_8_8_lshiftrt_8): Likewise.
5897         (a peephole2): Likewise.
5898
5899 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5900
5901         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
5902         Uniformly use bugfix instead of bug fix.
5903
5904 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5905
5906         PR doc/895
5907         * ONEWS: Remove those items that already appear in the EGCS
5908         release notes on our web pages.
5909
5910 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
5911
5912         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
5913         TARGET_HARD_FLOAT.  Reformat.
5914         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
5915
5916 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
5917
5918         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
5919         work on Solaris 2.5.1.
5920
5921 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
5922
5923         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
5924         section of h8300.md
5925         (*addsi3_and_nor_r_1): Likewise.
5926
5927 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
5928
5929         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
5930         set up before any trapping memory access if flag_non_call_exceptions.
5931
5932 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
5933
5934         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
5935
5936         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
5937
5938 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
5939
5940         * configure.in: Clarify comments.
5941         * configure: Regenerate.
5942
5943 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
5944
5945         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
5946         label even if pool empty when generating PIC.
5947         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
5948
5949 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
5950             Dhananjay Deshpande  <dhananjayd@kpit.com>
5951
5952         PR target/10205
5953         * config/h8300/h8300.c (h8300_initial_elimination_offset):
5954         Correct the offset computation when TARGET_NORMAL.
5955
5956 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
5957
5958         PR target/10067
5959         * config/sparc/sparc.md (jump pattern): Correct order
5960         when issuing the annuling marker.
5961
5962 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
5963
5964         PR c/8281
5965         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
5966         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
5967
5968 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
5969
5970         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
5971         globalize_label.
5972         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5973         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5974         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5975         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5976         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5977         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5978         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
5979
5980 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
5981
5982         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
5983         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
5984         notes after hoisting.
5985         (load_mems): Adjust replace_loop_mems call.
5986
5987 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
5988             Richard Henderson  <rth@redhat.com>
5989
5990         PR target/10114 and PR target/10084
5991         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
5992
5993 2003-03-27  Richard Henderson  <rth@redhat.com>
5994
5995         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
5996
5997 2003-03-27  Roger Sayle  <roger@eyesopen.com>
5998
5999         * fold-const.c (fold_inf_compare):  New function to simplify FP
6000         comparisons against +Infinity or -Infinity.
6001         (fold):  Optimize floating point comparisons against Infs and NaNs.
6002
6003 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
6004
6005         * libgcov.c: Provide only dummy functions if libc is not available.
6006
6007 2003-03-27  Richard Henderson  <rth@redhat.com>
6008
6009         * real.h (struct real_value): Add signalling.
6010         (EXP_BITS): Decrement.
6011         * real.c (get_canonical_qnan): Don't set MSB-1.
6012         (get_canonical_snan): Likewise.  Set signalling.
6013         (real_identical): Compare signalling.
6014         (round_for_format): Remove force-one-bit on code.
6015         (real_nan): Likewise.  Set signalling.
6016         (encode_ieee_single): Add force-one-bit code; honor signalling.
6017         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
6018         (decode_ieee_single): Set signalling.
6019         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
6020
6021 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
6022
6023         PR ada/9953
6024         * ada/Makefile.in (gnatlib configuration for HPUX): Split
6025         the general section for HPUX into specific sections for
6026         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
6027         11 case.
6028
6029 2003-03-27  Glen Nakamura  <glen@imodulo.com>
6030
6031         PR opt/10087
6032         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
6033         while incrementing giv.
6034         (record_biv): Check for duplicate biv locations and
6035         set (struct induction *) v->same if found.
6036
6037 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
6038
6039         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
6040         v0.9 API change: replace read of UNW_REG_HANDLER with
6041         unw_get_proc_info().
6042         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
6043         with unw_get_proc_info().
6044         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
6045         unw_get_proc_info().
6046
6047 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
6048
6049         * config/rs6000/8540.md: Use presence_set instead of absence_set.
6050
6051 2003-03-26  Richard Henderson  <rth@redhat.com>
6052
6053         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
6054
6055 2003-03-26  Roger Sayle  <roger@eyesopen.com>
6056
6057         PR bootstrap/10051, PR bootstrap/10169.
6058         * mips-tfile.c (init_file): Don't provide a static initializer.
6059         (initialize_init_file): Initialize the contents of init_file.
6060         (add_file): Call initialize_init_file if not already initialized.
6061
6062 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
6063
6064         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
6065         registers used for global asm variables.
6066         (s390_frame_info, s390_arg_frame_offset): Likewise.
6067         (s390_emit_prologue, s390_emit_epilogue): Likewise.
6068
6069 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
6070
6071         * config/rs6000/8540.md: New file.
6072
6073         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
6074         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
6075         reservations for imul.
6076
6077         * config/rs6000/rs6000.md: Include 8540.md.  Change
6078         delayed_compare onto mult_compare for insns generating
6079         multiplication.
6080         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
6081         New type attribute values.
6082
6083         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
6084         fpsimple instead of fp.
6085         (*divsf3_gpr): Use type vecfdiv instead of fp.
6086         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
6087         instead of vecfloat.
6088         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
6089         (spe_brinc): Use type brinc instead of veccomplex.
6090         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
6091         veccomplex.
6092         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
6093         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
6094         *movv2sf_internal): Define type attribute values for all
6095         alternatives.
6096         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
6097         of fpcompare.
6098         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
6099         instead of fpcompare.
6100
6101 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
6102
6103         * config/rs6000/power4.md: Allow delay between dispatch and
6104         function units for simple instructions.  Correct store units.
6105         Allow branch to occupy as many dispatch slots as necessary.
6106
6107 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
6108
6109         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
6110         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
6111         zero extend old to it.
6112         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
6113         operand.
6114
6115 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
6116
6117         PR target/7784
6118         * reload.c (find_reloads_address): Handle
6119         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
6120         all base registers.
6121
6122 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
6123
6124         PR other/10203
6125         * version.c: Reference the GCC web site in the URL.
6126
6127 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
6128
6129         * c-incpath.c (add_standard_paths): Add both "translated" and
6130         non-translated header paths.
6131
6132 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
6133
6134         * doc/install.texi (*-*-freebsd*): Update with known status.
6135
6136 2003-03-21  Jason Merrill  <jason@redhat.com>
6137
6138         PR optimization/10171
6139         * unroll.c (unroll_loop): Don't delete the jump at the end unless
6140         we also delete a jump at the beginning.
6141
6142 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
6143
6144         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
6145         contributor.
6146
6147 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
6148
6149         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
6150         constants are not expensive.
6151
6152 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
6153
6154         PR opt/10056
6155         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
6156         jump jumping to the next instruction.
6157         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
6158
6159 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6160
6161         * doc/passes.texi (Passes): Properly document that we do not
6162         perform jump2 any longer; remove command-line option -dJ.
6163
6164 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
6165
6166         PR optimization/8746
6167         * config/i386/i386.md (and promoting splitters): Disable HImode to
6168         SImode promoting when the sign bit matters and is not preserved, or
6169         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
6170         for size.
6171
6172 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
6173
6174         * config/h8300/h8300.md (a peephole2): Extend to support loads
6175         in QImode and HImode.
6176
6177 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
6178
6179         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
6180         _return_far
6181         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
6182         (MULTILIB_EXCEPTIONS): Likewise.
6183         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
6184         by calling some board support routine.
6185         ("call_value"): Likewise.
6186         ("*return_void"): Likewise for return.
6187         ("*return_16bit"): Likewise.
6188         ("*return_32bit"): Likewise.
6189         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
6190         for 68HC11 too.
6191         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
6192         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
6193         -mlong-calls for 68HC11.
6194         * config/m68hc11/larith.asm (declare_near): New macro.
6195         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
6196         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
6197         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
6198         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
6199         (__mulhi32): Likewise.
6200         (ret): Update macro for 68HC11.
6201         (__far_trampoline): Implement for 68HC11.
6202         (__call_a16, __call_a32, __return_void, __return_16): New support
6203         routines for 68HC11 memory bank switching calling support.
6204         (__return_32): Likewise.
6205
6206 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
6207
6208         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
6209
6210 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
6211
6212         * doc/install.texi (Testing): Mention test result links from build
6213         status pages.
6214
6215 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
6216
6217         * function.c (put_var_into_stack): Change bool parameter to int.
6218         (gen_mem_addressof): Likewise.
6219         * rtl.h (gen_mem_addressof): Likewise.
6220         * tree.h (put_var_into_stack): Likewise.
6221         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
6222         gen_mem_addressof or put_var_into_stack.
6223         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
6224         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
6225
6226 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
6227
6228         * config/h8300/h8300.md (a peephole2): New.
6229
6230 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
6231
6232         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
6233
6234 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6235
6236         * doc/contrib.texi (Contributors): Update Janis Johnson.
6237
6238 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
6239
6240         PR target/10072
6241         * combine.c (simplify_if_then_else): Check that the mode
6242         has MODE_INT class before applying the (OP Z (mult COND C2))
6243         transformation.
6244
6245 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
6246
6247         PR optimization/9414
6248         * config/sparc/sparc.md (widening peepholes): Use
6249         widen_memory_access instead of change_address.
6250
6251 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
6252
6253         PR c++/7086
6254         * c-typeck.c (c_mark_addressable): Adjust calls to
6255         put_var_into_stack.
6256         * expr.c (expand_expr): Likewise.
6257         * function.c (put_var_into_stack): Add rescan parameter.  Do not
6258         call fixup_var_refs when rescan is false.
6259         (gen_mem_addressof): Likewise.
6260         (assign_parms): Adjust calls to put_var_into_stack.
6261         (setjmp_protect): Likewise.
6262         (setjmp_protect_args): Likewise.
6263         * rtl.h (gen_mem_addressof): Change prototype.
6264         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
6265         * tree.h (put_var_into_stack): Change prototype.
6266
6267 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
6268
6269         PR middle-end/9967
6270         * builtins.c (expand_builtin_fputs): When optimizing for size,
6271         don't transform fputs into fwrite.
6272
6273 2003-03-23  Glen Nakamura <glen@imodulo.com>
6274
6275         PR c/8224
6276         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
6277         when signedness changes for division or modulus.
6278
6279 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
6280
6281         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
6282         globalize_label.
6283
6284 2003-03-23  Roger Sayle  <roger@eyesopen.com>
6285
6286         PR c/10178
6287         * stmt.c (expand_end_case_type): Check for overflow in range when
6288         determining whether to use a bit-test implementation.
6289
6290 2003-03-23  Richard Henderson  <rth@redhat.com>
6291
6292         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
6293         before flow2.
6294         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
6295
6296 2003-03-23  Richard Henderson  <rth@redhat.com>
6297
6298         PR opt/10116
6299         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
6300         from then_bb or else_bb after flow2.
6301
6302 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
6303
6304         * configure.in: Check whether it is necessary to link against
6305         libm to use ldexp.
6306         * configure: Regenerate.
6307         * Makefile.in: Add LDEXP_LIB substitution variable.
6308
6309 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
6310
6311         * config/h8300/h8300.md: Fix comment typos.
6312
6313 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6314
6315         * pa.c (output_cbranch): Fix typo in comment.
6316
6317 2003-03-22  Richard Henderson <rth@redhat.com>
6318
6319         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
6320         after reload.
6321
6322 2003-03-22  DJ Delorie  <dj at redhat dot com>,
6323         Bruce Korb  <bkorb at gnu dot org>
6324
6325         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
6326         buggy Solaris 2.6 mutex/cond initializers.
6327         (solaris_mutex_init): Rename to solaris_mutex_init_2.
6328         * fixinc/fixincl.x: Regenerate.
6329         * fixinc/tests/base/pthread.h: Update.
6330         * fixinc/fixincl.c(initialize): be explicit about the default case
6331         and indicate verbose level when being very, very verbose.
6332         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
6333
6334 2003-03-22  Andreas Jaeger  <aj@suse.de>
6335
6336         * config/i386/i386.c (ix86_init_machine_status): Return value.
6337
6338 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6339
6340         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
6341         conditional branch to the following instruction.  Use next_real_insn
6342         instead of next_active_insn.
6343         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
6344         instead of next_active_insn.
6345
6346 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
6347
6348         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
6349         instead of 'm' constraint in forced-split alternatives.
6350         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
6351         VALIDATE_ADDRESS parameter to operand_subword.
6352
6353 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
6354
6355         * config/h8300/h8300.c (notice_update_cc): Correctly handle
6356         the case where the set destination is STRICT_LOW_PART.
6357
6358 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
6359
6360         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
6361         c30 instead of a c40 processor.
6362
6363 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
6364
6365         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
6366
6367 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
6368
6369         * c-common.c: Include intl.h.
6370         (shadow_warning): Rewrite to allow better diagnostic translations.
6371         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
6372         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
6373         use it throughout.
6374         * Makefile.in (c-common.o): Add intl.h.
6375
6376 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
6377
6378         * config.gcc: Remove 'float_format'.
6379
6380         * fixproto: Define NULL and size_t in generated stdlib.h and
6381         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
6382         Rearrange file generation loop for readability.  Generate time.h,
6383         string.h if missing.
6384         * tsystem.h: Include <string.h>, <time.h> unconditionally.
6385         * config.gcc: Blow away POSIX defines.
6386
6387 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
6388
6389         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
6390
6391 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
6392
6393         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
6394         writing .interrupt command.
6395         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
6396         if it's a far or near function.
6397         ("call_value"): Likewise.
6398         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
6399         near attributes.
6400         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
6401         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
6402         (m68hc11_initial_elimination_offset): Set current_function_far
6403         according to attributes.
6404         (expand_prologue): Likewise.
6405         (trap_handler_symbol): New global to keep track of trap handlers.
6406         (m68hc11_encode_section_info): Mark symbol as far if needed; set
6407         trap symbol.
6408         (m68hc11_is_far_symbol): New function.
6409         (m68hc11_is_trap_symbol): New function.
6410         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
6411         (m68hc11_is_trap_symbol): Declare.
6412
6413 2003-03-21  Jan Hubicka  <jh@suse.cz>
6414
6415         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
6416         only when amount of saved regs changed.
6417         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
6418         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
6419
6420 2003-03-21  Jan Hubicka  <jh@suse.cz>
6421
6422         PR inline-asm/7916
6423         * function.c (instantiate_virtual_regs_lossage): New function.
6424         (instantiate_virtual_regs_1): Use it.
6425         (instantiate_virtual_regs): Do not continue in substition when insn has
6426         been deleted.
6427
6428 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6429
6430         * combine.c (make_field_assignment): Fix a warning.
6431
6432 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6433
6434         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
6435
6436 2003-03-21  Dale Johannesen  <dalej@apple.com>
6437
6438         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
6439         priority for R2 on Darwin.
6440         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
6441
6442 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6443
6444         * combine.c (make_field_assignment): Remove unnecessary AND
6445         when storing into zero_extract.
6446
6447 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
6448
6449         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
6450         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
6451         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
6452         in comment.
6453
6454 2003-03-21  DJ Delorie  <dj@redhat.com>
6455
6456         * optabs.c (init_integral_libfuncs): Make sure we init at least up
6457         to "long long" size words.
6458
6459 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
6460
6461         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
6462         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
6463         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
6464
6465 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6466
6467         PR doc-bug/9813
6468         * doc/extend.texi: Move misplaced paragraph about underscores in
6469         variables in macros.
6470
6471 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6472             Richard Henderson  <rth@redhat.com>
6473
6474         PR optimization/8366
6475         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
6476         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
6477         PIC+SYMBOLIC_CONST in other modes than Pmode.
6478         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
6479         the form PIC+SYMBOLIC_CONST as mode dependent.
6480
6481 2003-03-21  DJ Delorie  <dj@redhat.com>
6482
6483         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
6484         sure we always emit at least one insn.
6485
6486 2003-03-21  Christopher Faylor  <cgf@redhat.com>
6487
6488         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
6489         stub t-cygming. Use common target header cygming.h. Add extra
6490         c_target_obj and cxx_target_obj file. Default cygwin to posix
6491         threading. Enforce i386 as float format.
6492         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
6493         Remove cygwin.h as target header. Use common target header
6494         cygming.h  Enforce i386 as float format. Correct typo.
6495         * config/i386/cygming.h: New file, containing definitions
6496         common to mingw32 and cygwin.
6497         * config/i386/cygwin.h: Remove definitions common to cygwin and
6498         mingw.  Simplify special spec logic.  Define "wrappers" around
6499         certain include path defines to accommodate -mno-cygwin.
6500         Remove some #if 0'ed code.
6501         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
6502         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
6503         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
6504         * config/i386/mingw32.h: Remove definitions common to cygwin and
6505         mingw.
6506         (EXTRA_OS_CPP_BUILTINS): Adjust.
6507         (TARGET_VERSION): Define.
6508         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
6509         mingw32.h definitions.
6510         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
6511         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
6512         Add compilation rules for cygwin1.o cygwin2.o.
6513         * config/i386/cygwin1.c: New file.
6514         * config/i386/cygwin2.c: New file.
6515         * config/i386/t-cygming: New makefile stub.
6516
6517 2003-03-20  Richard Henderson  <rth@redhat.com>
6518
6519         * fold-const.c (extract_muldiv_1): Revert changing order of
6520         operands in case MULT_EXPR of 2003-02-16 patch.
6521
6522 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
6523         Merge changes from new-regalloc-branch
6524
6525         From Michael Matz  <matz@suse.de>
6526         * df.c (df_ref_record_1): Move init of loc to safe point.
6527         Only recurse on interesting things in parallels.
6528         Handle CLASS_CANNOT_CHANGE_MODE smarter.
6529         (df_uses_record): Ditto.
6530
6531         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
6532         it's already okay to use memory operands in (IE doesn't require
6533         adding another insn or anything).
6534
6535 2003-03-20  Richard Henderson  <rth@redhat.com>
6536
6537         PR middle-end/6348
6538         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
6539         different from word_mode.
6540
6541 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6542
6543         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
6544         source operand to those that can be extracted with bld.
6545
6546 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
6547
6548         PR 10066
6549         * arm.md (UNSPEC_PIC_BASE): New constant.
6550         (pic_add_dot_plus_four): Wrap with unspec.
6551         (pic_add_dot_plus_eight): Likewise.
6552
6553 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6554
6555         * config/h8300/h8300.md (*insv_si_1_n): New.
6556         (*insv_si_1_n_lshiftrt): Likewise.
6557
6558 2003-03-20  Roger Sayle  <roger@eyesopen.com>
6559
6560         * fold-const.c (fold_mathfn_compare): New function to simplify
6561         comparisons against built-in math functions.  Fold comparisons
6562         of sqrt against constants.
6563         (fold): Call fold_mathfn_compare when appropriate.
6564
6565 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
6566
6567         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
6568         information.
6569
6570 2003-03-20  Per Bothner  <pbothner@apple.com>
6571
6572         Various cleanups to help compile server.
6573
6574         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
6575         and pass that to _cpp_init_hashtable.
6576         (cpp_read_main_file):  Drop hash_table* argument; don't call
6577         _cpp_init_hashtable.
6578         * cpplib.h:  Update declarations to match.
6579         * c-opts.c (c_common_init_options):  Pass ident_hash to
6580         cpp_create_reader.
6581         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
6582         * fix-header.c (read_scan_file):  Likewise pass NULL table to
6583         cpp_create_reader rather than cpp_read_main_file.
6584
6585         * cppfiles.c (cpp_rename_file):  Generalized and renamed
6586         to cpp_change_file.
6587         * cpplib.h:  Update declaration to match.
6588         * c-opts.c (push_command_line_line, finish_options):  Change
6589         cpp_rename_file calls to cpp_change_file.
6590
6591         * line-map.c (add_line_map):  Allow leaving the outermost file.
6592         Allowing entering an outermost-file after the initial time.
6593
6594         * toplev.c (pop_srcloc):  Allow popping from initial file.
6595
6596 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
6597
6598         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
6599
6600 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6601
6602         * config/h8300/h8300.md (a peephole2): New.
6603
6604 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6605
6606         * config/h8300/h8300.md (*addsi3_and_r_1): New.
6607         (*addsi3_and_not_r_1): Likewise.
6608
6609 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
6610
6611         * Makefile.in (STRICT2_WARN): Add @WERROR@.
6612         (GCC_WARN_CFLAGS): Remove $(WERROR).
6613         (fixinc.sh-warn): New.
6614         * ada/Make-lang.in (ada-warn): Add $(WERROR).
6615         * cp/Make-lang.in (cp-warn): Add $(WERROR).
6616         * f/Make-lang.in (f-warn): Add $(WERROR).
6617         * java/Make-lang.in (java-warn): Add $(WERROR).
6618         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
6619
6620 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
6621
6622         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
6623         langhooks-def.h (lhd_tree_dump_dump_tree),
6624         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
6625         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
6626         true and false in return statements.
6627
6628 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
6629
6630         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
6631         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
6632         DWARF_INITIAL_LENGTH_SIZE.
6633         (output_compilation_unit_header, output_pubnames, output_aranges)
6634         (output_line_info): Output 0xffffffff escape value for 64-bit
6635         DWARF extension.
6636         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
6637
6638 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
6639
6640         * config/s390/s390.c (s390_preferred_reload_class): Do not
6641         force constants to the pool unless necessary.
6642         (s390_decompose_address): Prefer to use pointer as base,
6643         not index register.
6644         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
6645         Q alternative.
6646         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
6647         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
6648         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
6649         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
6650         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
6651
6652 2003-03-19  Jan Hubicka  <jh@suse.cz>
6653
6654         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
6655         * i386.c (use_fast_prologue_epilogue): Remove.
6656         (ix86_frame): New field save_regs-using_mov;
6657         (ix86_compute_frame_layout):  Decide on fast prologues;
6658         allocate saved registers in red zone.
6659         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
6660
6661 2003-03-19  Nick Clifton  <nickc@redhat.com>
6662
6663         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
6664
6665 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6666
6667         PR 10062
6668         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
6669         * pa-protos.h (output_lbranch): New prototype.
6670         * pa.c (compute_frame_size): Change size of the frame marker on the
6671         64-bit ports to 48 bytes.
6672         (pa_output_function_prologue): Document why SAVE_SP is set.
6673         (hppa_expand_prologue): Save previous stack pointer into frame marker
6674         on targets which use the hpux unwind library.
6675         (output_cbranch): Use output_lbranch.
6676         (output_lbranch): New function to output long unconditional branches.
6677         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
6678         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
6679         64-bit ports.
6680         * pa.md (jump): Use output_lbranch.
6681         (allocate_stack): New expander for dynamic stack allocation.
6682
6683 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
6684
6685         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
6686         when debugging on XCOFF targets.  Delete "abi" temp.
6687
6688         PR target/10073
6689         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
6690
6691 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
6692
6693         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
6694         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
6695         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
6696
6697         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
6698         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
6699         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
6700
6701 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
6702
6703         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
6704         the result of machopic_function_base_name.
6705         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
6706         string rather than a static array.
6707
6708         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
6709
6710         * gengtype.c: Include rtl.h.
6711         (enum rtx_code): Don't define.
6712         (rtx_format): Make declaration match rtl.h.
6713         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
6714         users.
6715         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
6716         * Makefile.in (gengtype.o): Update dependencies.
6717
6718 2003-03-18  Andreas Schwab  <schwab@suse.de>
6719
6720         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
6721         martin@blom.org.
6722
6723 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
6724
6725         * function.c (next_block_index): Mark with GTY.
6726
6727         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
6728
6729 2003-03-18  Richard Henderson  <rth@redhat.com>
6730
6731         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
6732         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
6733         until after reload.
6734
6735 2003-03-18  Richard Henderson  <rth@redhat.com>
6736
6737         * builtins.c (expand_builtin_unop): New target_mode operand;
6738         use it to convert the result to the correct mode.
6739         (expand_builtin): Update all callers.
6740
6741 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
6742
6743         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
6744
6745 2003-03-18  Jan Hubicka  <jh@suse.cz>
6746
6747         * i386.md:  Fix previous commit that mistakely applied the patch
6748         twice.
6749
6750         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
6751         canonicalized.
6752         (memrefs_conflict_p): Likewise.
6753         (addr_side_effect_eval): Canonicalize the constructed address.
6754
6755 2003-03-18  Jan Hubicka  <jh@suse.cz>
6756
6757         * i386.md (cvtts?2si peep2): New.
6758
6759 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6760
6761         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
6762
6763 2003-03-18  Andreas Schwab  <schwab@suse.de>
6764
6765         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
6766         for format.
6767
6768 2003-03-17  Jason Merrill  <jason@redhat.com>
6769
6770         PR c++/10091
6771         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
6772         an unaligned member of TREE_ADDRESSABLE type.
6773
6774 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
6775
6776         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
6777         (TARGET_PROFILE_KERNEL): Define.
6778         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
6779         (PROFILE_BEFORE_PROLOGUE): Don't define.
6780         (PROFILE_KERNEL): Remove hacks.
6781         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
6782         (rs6000_stack_info): No need to save lr if just for profiling when
6783         TARGET_PROFILE_KERNEL.
6784         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
6785         (output_function_profiler): Localize label generation.  Emit code
6786         for kernel profiling.
6787
6788 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6789
6790         * config/h8300/h8300-protos.h: Add a prototype for
6791         byte_accesses_mergeable_p.
6792         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
6793         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
6794         (a splitter): Likewise.
6795         (*iorsi3_ashift_16_ashift_24): Likewise.
6796         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
6797
6798 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6799
6800         * dwarf2asm.h: Delete obsolete comment.
6801         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
6802         dw2_asm_output_pcrel, dw2_asm_output_addr,
6803         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
6804         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
6805         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
6806         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
6807
6808 2003-03-17  Zack Weinberg <zack@codesourcery.com>
6809
6810         * c-tree.h (struct lang_identifier): Remove error_locus field.
6811         (IDENTIFIER_ERROR_LOCUS): Kill.
6812         (record_function_scope_shadow): New prototype.
6813         * c-typeck.c (build_external_ref): Don't complain if
6814         decl is error_mark_node.  When not at file scope, bind the
6815         decl's local value to error_mark_node to suppress further
6816         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
6817
6818         * c-decl.c (get_function_binding_level): New static function.
6819         (record_function_scope_shadow): New exported function.
6820         (c_make_fname_decl): Use get_function_binding_level.
6821
6822 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
6823
6824         * stmt.c (tail_recursion_args): Call promote_mode to set
6825         unsignedp flag correctly before calling convert_move.
6826
6827 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6828
6829         * loop-unroll.c (decide_peel_completely,
6830         decide_unroll_constant_iterations, decide_unroll_stupid,
6831         decide_unroll_runtime_iterations, decide_peel_simple): Set
6832         loop->has_desc.
6833
6834 2003-03-17  Jan Hubicka  <jh@suse.cz>
6835
6836         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
6837
6838 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
6839
6840         * function.c (assign_parms): For a struct value address passed as
6841         first argument, delay the function's result RTL setup code until
6842         after the emission of parameter conversions.
6843
6844 2003-03-17  Dave Love  <fx@gnu.org>
6845             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6846
6847         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
6848         __arch64__ to match Compaq cc.
6849
6850 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
6851
6852         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
6853         (c_common_init): Set EBCDIC in cpp options.
6854         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
6855         not conditional compilation.
6856         * cpplib.h (struct cpp_options): New entry EBCDIC.
6857
6858 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
6859
6860         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
6861
6862 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6863
6864         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
6865         argument to 0 for redirect_jump.
6866
6867 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
6868
6869         PR c++/8805
6870         * except.c (eh_region_u_cleanup): Add prev_try.
6871         (expand_eh_region_end_cleanup): Set it.
6872         (reachable_handlers): Use it to skip over cleanup blocks.
6873
6874 2003-03-17  Andreas Jaeger  <aj@suse.de>
6875
6876         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
6877
6878 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
6879
6880         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
6881         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
6882         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
6883         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
6884
6885 2003-03-16  Richard Henderson  <rth@redhat.com>
6886
6887         * simplify-rtx (simplify_binary_operation): Don't abort for
6888         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
6889
6890 2003-03-16  Richard Henderson  <rth@redhat.com>
6891
6892         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
6893         optimize_size as well.
6894
6895 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
6896
6897         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
6898         for D register to specify the low part of it, aka B.
6899         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
6900         the register if we are loading 1 or -1 to it; avoid using temp
6901         register when moving X/Y to Y/X.
6902         (m68hc11_gen_movqi): Likewise.
6903         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
6904
6905 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
6906
6907         PR optimization/9016
6908         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
6909         into the constant pool.
6910
6911 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
6912
6913         PR target/9164
6914         * tree.c (get_narrower): For extensions with unchanged bit number,
6915         return the unsignedness of the outer mode.
6916
6917 2003-03-16  Roger Sayle  <roger@eyesopen.com>
6918
6919         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
6920         to avoid "may be used uninitialized" warning on ia64-hpux.
6921         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
6922
6923 2003-03-16  Andreas Jaeger  <aj@suse.de>
6924
6925         * configure.in: Improve check for memcheck.h.
6926         * configure: Regenerated.
6927
6928 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
6929
6930         * doc/cppopts.texi: Remove documentation of -A-.
6931
6932 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
6933
6934         * doc/libgcc.texi: Remove @tie.
6935
6936 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
6937
6938         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
6939         (rtx_pair): Added new element update_label_nuses, renamed to
6940         replace_label_data.
6941         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
6942         replace_label_data instead of rtx_pair.
6943         * loop.c (load_mems): Likewise.
6944         * rtlanal.c (replace_label): Replace label in pool constants and in
6945         INSN_LIST (in REG_LABEL note).
6946         (subrtx_p): Renamed to rtx_referenced_p.
6947         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
6948         LABEL_REF with CODE_LABEL, traverse constants from pool.
6949
6950 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
6951             Zack Weinberg  <zack@codesourcery.com>
6952
6953         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
6954         * doc/libgcc.texi: New file.
6955         * doc/interface.texi: Delete paragraph about libgcc interface.
6956         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
6957
6958 2003-03-15  Jason Merrill  <jason@redhat.com>
6959
6960         PR debug/9039
6961         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
6962
6963         PR debug/6387
6964         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
6965         function DIEs at toplevel.
6966         (decls_for_scope): At -g1, don't descend into subblocks.
6967
6968 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
6969
6970         * varasm.c (struct rtx_const): Change type of un.addr member
6971         to struct holding an additional 'symbol' member.
6972         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
6973         with equal string addresses as equal.
6974         (simplify_subtraction): Adapt to struct rtx_const change.
6975
6976 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
6977
6978         * fix-header.c (read_scan_file): Read main file before handling -D.
6979
6980 2003-03-15  Roger Sayle  <roger@eyesopen.com>
6981
6982         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
6983         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
6984         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
6985         (find_sub_basic_blocks): Likewise.
6986         * cgraphunit.c (cgraph_expand_functions): Likewise.
6987         * dwarf2out.c (prune_unused_types): Likewise.
6988         * expr.c (store_field): Likewise.
6989         * genextract.c (print_path): Likewise.
6990         * haifa-sched.c (schedule_insn): Likewise.
6991         * lcm.c (compute_antinout_edge): Likewise.
6992         * loop-unroll.c (decide_peel_once_rolling): Likewise.
6993         * ra-colorize.c (ra_colorize_free_all): Likewise.
6994         * ra-debug.c (dump_igraph): Likewise.
6995         (debug_hard_reg_set): Likewise.
6996         * reg-stack.c (reg_to_stack): Likewise.
6997         * rtlanal.c (refers_to_regno_p): Likewise.
6998         * tracer.c (layout_superblocks): Likewise.
6999
7000 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
7001
7002         * fix-header.c (read_scan_file): Fix thinko.
7003
7004 2003-03-15  Glen Nakamura  <glen@imodulo.com>
7005
7006         * reload1.c (choose_reload_regs): Use && instead of ||
7007         with REG_CANNOT_CHANGE_MODE_P condition.
7008
7009 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
7010
7011         * Makefile.in: Update.
7012         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
7013         * c-lex.c (init_c_lex): Register builtins hook is dead.
7014         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
7015         (c_common_decode_option): Don't call cpp_handle_option.
7016         Handle -A, -D and -U.
7017         (handle_deferred_opts): Simplify.
7018         (finish_options): Define builtins and command line macros.
7019         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
7020         * cppinit.c: Don't include intl.h.
7021         (init_builtins): Rename cpp_init_builtins.  No hook to call.
7022         (init_library): Don't need to sort options.
7023         (cpp_create_reader): Don't set pending.
7024         (cpp_destroy): Don't free pending.
7025         (struct pending_option, cl_directive_handler, struct cpp_pending,
7026         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
7027         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
7028         cl_options, cpp_handle_option): Remove.
7029         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
7030         cpp_finish_options): Remove.
7031         (cpp_init_builtins): New.
7032         * fix-header.c (read_scan_file): Update to handle -D.  Fix
7033         handling of -I.  Replace call to cpp_finish_options.
7034
7035 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7036
7037         PR optimization/9387
7038         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
7039         for conditional returns.
7040
7041 2003-03-14  Jason Merrill  <jason@redhat.com>
7042
7043         PR optimization/6871
7044         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
7045
7046 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
7047
7048         * c-opts.c (finish_options): New.
7049         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
7050         (missing_arg): Handle OPT_include and OPT_imacros.
7051         (c_common_init, c_common_parse_file): Use finish_options.
7052         (handle_deferred_opts): Update.
7053         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
7054         (cpp_finish_options): Don't handle -imacros here.
7055         (no_fil): Remove.
7056         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
7057
7058 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
7059
7060         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
7061         rs6000_maybe_dead if !fromprolog.
7062
7063 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
7064
7065         * Makefile.in: Update.
7066         * c-common.h (fe_file_change, pp_file_change): New.
7067         * c-lex.c (init_c_lex): Don't set cb_file_change.
7068         (c_common_parse_file): Move to c-opts.c.
7069         (cb_file_change): Rename fe_file_change.
7070         * c-opts.c: Include debug.h.
7071         (warn_unused_macros, include_cursor): New.
7072         (push_command_line_include, cb_file_change): New.
7073         (COMMAND_LINE_OPTIONS): Handle -include.
7074         (c_common_decode_option): Use local warn_unused_macros.
7075         Handle OPT_include.
7076         (c_common_post_options): Set file change callback.
7077         (handle_deferred_opts): Skip -include.  Don't free the array.
7078         (c_common_init): Call cpp_finish_options here, and push an
7079         initial -include file.
7080         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
7081         (preprocess_file): Don't call cpp_finish_options.
7082         (init_pp_output): Don't set the file change callback.
7083         (pp_file_change): Return if no line commands or no output.
7084         * cpphash.h (next_include_file, first_unused_line): Remove.
7085         * cppinit.c (include_head, include_tail): Remove.
7086         (cpp_destroy): Don't free -include chain.
7087         (cpp_finish_options): Don't handle -include, or worry about
7088         -Wunused-macros.
7089         (_cpp_maybe_push_include_file): Remove.
7090         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
7091         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
7092         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
7093         Used flag is set based upon the state of the warn_unused_macros
7094         flag, and so use of first_unused_line is unnecessary.
7095
7096 2003-03-13  Jan Hubicka  <jh@suse.cz>
7097
7098         * cselib.c (clear_table): Do not take argument; always clear just
7099         used slots.
7100         (cselib_process_insn):  Update call of clear_table
7101         (cselib_init): Do not call clear_table.
7102         (cselib_finish): Clear table.
7103
7104         * cse.c (count_reg_usage): Do not check side_effects_p.
7105         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
7106         like noop.
7107         (find_reg_equal_equiv_note): Do not use find_reg_note.
7108
7109 2003-03-14  Richard Henderson  <rth@redhat.com>
7110
7111         PR target/9700
7112         * config/alpha/alpha.c (alpha_va_start): Account for
7113         current_function_pretend_args_size in the AP offset.
7114
7115         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
7116         (INITIAL_ELIMINATION_OFFSET): Move out of line.
7117         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
7118         (alpha_initial_elimination_offset) New.
7119         * config/alpha/alpha-protos.h: Update.
7120
7121 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
7122
7123         * stmt.c (expand_start_case): Call emit_queue ().
7124
7125 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
7126             Alexandre Oliva  <aoliva@redhat.com>
7127
7128         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
7129         words in new abis.
7130
7131 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
7132
7133         PR optimization/8396
7134         * tree-inline.c (initialize_inlined_parameters): Make sure the value
7135         of read-only constant arguments is passed with the right type.
7136
7137 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
7138
7139         * doc/extend.texi (Function Names): Make the example compilable.
7140
7141 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
7142
7143         * config/rs6000/rs6000.c (processor_target_table): Really allow
7144         GP optional instructions on Power4.
7145
7146 2003-03-13  Roger Sayle  <roger@eyesopen.com>
7147
7148         * calls.c (flags_from_decl_or_type): Factor and remove redundant
7149         conditional tests.
7150
7151 2003-03-13  Mike Stump  <mrs@apple.com>
7152
7153         * ggc-page.c (struct page_entry): Remove varray.h header.
7154         Add index_by_depth field.
7155         Remove save_in_use_p field.
7156         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
7157         by_depth_max, by_depth, and save_in_use fields.
7158         (INITIAL_PTE_COUNT): Add.
7159         (save_in_use_p_i): Add.
7160         (save_in_use_p): Add.
7161         (adjust_depth): Add.
7162         (move_ptes_to_front): Add.
7163         (push_depth): Add.
7164         (push_by_depth): Add.
7165         (prefetch): Add.
7166         (free_page): Add support for and use faster data structures.
7167         (ggc_alloc): Likewise.
7168         (init_ggc): Likewise.
7169         (ggc_recalculate_in_use_p): Likewise.
7170         (ggc_pop_context): Likewise.
7171         (clear_marks): Likewise.
7172         (ggc_pch_read): Likewise.
7173         * Makefile.in (ggc-page.o): Remove varray.h.
7174
7175 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
7176
7177         * ChangeLog: Rotated last year's entries to...
7178         * ChangeLog.8: New.
7179
7180         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
7181         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
7182         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
7183         config/ia64/ia64-protos.h, config/ia64/ia64.c,
7184         config/ia64/ia64.h, config/ia64/ia64.md,
7185         config/ia64/itanium1.md, config/ia64/itanium2.md,
7186         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
7187         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
7188
7189 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
7190
7191         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
7192         Differentiate endianness.
7193         (s6000_override_options): Use cpu type instead of TARGET_SPE.
7194
7195 2003-03-13  Nick Clifton  <nickc@redhat.com>
7196
7197         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
7198         LDM instructions with writeback enabled.
7199         (output_return_instruction): Likewise.
7200
7201         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
7202         (CALL_USED_REGISTERS): Remove definition.
7203         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
7204
7205 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
7206
7207         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
7208         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
7209         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
7210         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
7211         (rs6000_legitimize_address): Formatting.
7212         (rs6000_emit_move): Likewise.
7213         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
7214         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
7215         (rs6000_elf_select_section): Comment reason for shlib being
7216         set for ABI_AIX.
7217         (rs6000_elf_unique_section): Likewise.
7218         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
7219         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
7220         as well as flag_pic.
7221         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
7222         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7223         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
7224
7225 2003-03-13  Richard Henderson  <rth@redhat.com>
7226
7227         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
7228
7229         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
7230         (ia64_gp_save_reg): Remove.
7231         (struct ia64_frame_info): Move to the beginning of the file;
7232         add reg_save_gp.
7233         (ia64_expand_call): Rearrange for new call patterns.
7234         (ia64_reload_gp): New.
7235         (ia64_split_call): New.
7236         (ia64_compute_frame_size): Allocate reg_save_gp.
7237         (ia64_expand_prologue): Save reg_save_gp.
7238         (ia64_expand_epilogue): Don't restore gp.
7239         (ia64_hard_regno_rename_ok): Remove R4 hack.
7240         (ia64_function_ok_for_sibcall): New.
7241         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
7242         call try_split on sibcall pattern.
7243         * config/ia64/ia64-protos.h: Update.
7244         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
7245         Rename from nopic versions.  Confiscate 2nd argument to call as
7246         a marker.
7247         (call_pic, call_value_pic, sibcall_pic): Remove.
7248         (call_gp, call_value_gp, sibcall_gp): New.
7249         (builtin_setjmp_setup): Remove.
7250         (builtin_setjmp_receiver): Call ia64_reload_gp.
7251
7252 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
7253
7254         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
7255         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
7256         "GNU CC" with "GCC".
7257
7258         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
7259         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7260         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
7261         GCC, not GNU CC.
7262
7263         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
7264         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
7265
7266         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
7267         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
7268         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
7269         "GNU CC" with "GCC".
7270
7271         * config/v850/lib1funcs.asm, config/v850/rtems.h,
7272         config/v850/v850-c.c, config/v850/v850-protos.h,
7273         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
7274         GCC, not GNU CC.
7275
7276         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
7277         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
7278         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
7279         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
7280         GNU CC.
7281
7282 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
7283
7284         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
7285
7286 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
7287
7288         * fixinc/fixinc.interix: Remove dead code (most of it).
7289         * fixinc/fixinc.dgux: Remove.
7290
7291         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
7292         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
7293
7294 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7295
7296         * pa.c (pa_init_builtins): Fix warning.
7297
7298 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
7299
7300         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
7301         (ASM_OUTPUT_XDATA_SHORT): Remove.
7302         (ASM_OUTPUT_XDATA_INT): Remove.
7303         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
7304         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
7305         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
7306         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
7307
7308 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
7309
7310         PR c++/7050
7311         * expr.c (store_expr): Don't attempt to store void-typed trees,
7312         just evaluate them for side effects.
7313
7314 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
7315
7316         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
7317         * cppinit.c (push_include): Move with changes to cppfiles.c.
7318         (cpp_read_main_file): Mark named operators here...
7319         (cpp_finish_options): ...not here.  Update.
7320         (_cpp_maybe_push_include_file): Update.
7321         * cpplib.h (cpp_push_include, cpp_rename_file): New.
7322
7323 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
7324
7325         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
7326         _gcc_COMPUTE_GAS_VERSION.
7327         * configure.in: Use them.
7328         * configure: Regenerate.
7329
7330 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
7331
7332         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
7333         to detect carry.
7334         (subdi3): Reorder emitted instructions.
7335
7336 2003-03-12  Andreas Jaeger  <aj@suse.de>
7337
7338         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
7339         NETBSD_OS_CPP_BUILTINS_LP64.
7340
7341 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
7342
7343         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
7344         Rearrange.  Reorganize.
7345         * configure.in: Rearrange.
7346         * configure: Regenerate.
7347
7348 2003-03-12  Andreas Jaeger  <aj@suse.de>
7349
7350         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
7351         LP64 targets.
7352
7353         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
7354         _LP64.
7355
7356         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
7357         _LP64 macros here.
7358         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7359
7360         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
7361         NETBSD_OS_CPP_BUILTINS_LP64.
7362         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
7363         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
7364
7365         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
7366
7367 2003-03-12  Jan Hubicka  <jh@suse.cz>
7368
7369         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
7370
7371 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
7372
7373         Fix PR target/9797 and PR c/9853.
7374         * stmt.c (expand_decl_init): Call push_temp_slots () and
7375         pop_temp_slots ().
7376
7377 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
7378
7379         * sh.c: Include basic-block.h.
7380         (sh_output_mi_thunk, emit_load_ptr): New functions.
7381         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
7382
7383 2003-03-12  Nick Clifton  <nickc@redhat.com>
7384
7385         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
7386         (CALL_USED_REGISTERS): Likewise.
7387         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
7388         describing how this value is calculated.
7389
7390 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
7391
7392         * configure.in (rlim_t): Define to long if no valid definition
7393         found in sys/resource.h.
7394         * config.in, configure: Regenerate.
7395
7396 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
7397
7398         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
7399         TARGET_OS_CPP_BUILTINS.
7400         * config/mcore/mcore-pe.h: Similarly.
7401         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
7402         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
7403
7404 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
7405
7406         PR c/9928
7407         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
7408         only if it is a VAR_DECL.
7409
7410 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
7411
7412         PR optimization/9888
7413         * config/i386/i386.md (jcc_1): Fix range.
7414         (jcc_2): Likewise.
7415         (jump): LIkewise.
7416         (doloop_end_internal): Likewise.
7417
7418 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
7419
7420         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
7421         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
7422         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
7423         DLL_IMPORT_EXPORT_PREFIX and "i."
7424         (i386_pe_dllexport_name_p): Here.
7425         (i386_pe_dllimport_name_p): Here.
7426         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
7427         not 9 chars when getting identifier name.
7428         (i386_pe_mark_dllimport): Here.
7429         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
7430         not 9 chars when getting identifier name. Correct comment.
7431         (i386_pe_strip_name_encoding): Here. Add comments for different
7432         cases.
7433         (gen_fastcall_suffix): Break down xmalloc() argument to
7434         components.
7435         (gen_stdcall_suffix): Likewise.
7436         Update copyright year.
7437
7438 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
7439
7440         PR optimization/9888
7441         * config/i386/i386.md (movsi_1): Remove special alternatives
7442         for %eax register.
7443         (movsi_1_nointernunit): Likewise.
7444         (movhi_1): Likewise.
7445         * config/i386/i386.c (memory_address_length): Do not use
7446         short displacement when there is no base.
7447         (ix86_attr_length_address_default): Handle LEA instructions.
7448
7449 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
7450
7451         * c-cppbuiltin.c (builtin_define_std): Make non-static.
7452
7453 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
7454
7455         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
7456         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
7457         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
7458         * config/freebsd.h (CPP_PREDEFINES): Remove.
7459         (TARGET_OS_CPP_BUILTINS): New.
7460         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
7461         instead of TARGET_OS_CPP_BUILTINS.
7462         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
7463
7464 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
7465
7466         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
7467
7468 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
7469
7470         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
7471         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
7472
7473         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
7474
7475 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
7476
7477         * toplev.c (independent_decode_option): Return success for --help,
7478         --target-help and --version.
7479
7480 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
7481
7482         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
7483         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
7484         specified.
7485         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
7486         DRIVER_SELF_SPECS.
7487         (LINK_SPEC): Let endian options affect the linker emulation name.
7488
7489 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
7490
7491         * sh.md (reload_inqi): Fix mode for source in second set.
7492
7493 2003-03-11  Jan Hubicka  <jh@suse.cz>
7494
7495         * cselib.c (cselib_invalidate_mem_1): Move too ...
7496         (cselib_invalidate_mem): ... here; use new list
7497         (dummy_val, first_containing_mem): New static variables.
7498         (clear_table): Initialize first_containing_mem.
7499         (discard_useless_values):  Compact the containing_mem list.
7500         (add_mem_for_addr): Add to the list.
7501         * cselib.h (cselib_val): Add next_containing_mem.
7502
7503 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
7504
7505         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
7506         instructions for e500.
7507
7508 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
7509
7510         * Makefile.in: Update.
7511         * c-cppbuiltin.c: Include tm_p.h.
7512
7513 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
7514
7515         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
7516
7517         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
7518         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
7519         (_Unwind_SetGR): Same.
7520         (_Unwind_GetGRPtr): New.
7521         (_Unwind_SetGRPtr): New.
7522         (uw_update_context_1): Use accesor functions instead of accessing
7523         context->reg[] directly.
7524         (uw_install_context_1): Same.
7525         (execute_cfa_program): Same.
7526         (__frame_state_for): Same.
7527
7528         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
7529         the synthetic register offset.
7530
7531         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
7532
7533 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
7534
7535         * config/cris/cris.md: Remove lingering EGCS reference.
7536         ("*extopqihi_side_biap"): For HI operation, match
7537         cris_additive_operand_extend_operator, not
7538         cris_operand_extend_operator.  Adjust condition.
7539         ("*extopqihi_side", "*extopqihi"): Ditto.
7540         ("*extopqisi_side_biap"): Correct operand numbers in condition.
7541         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
7542         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
7543         ("*extophisi_swap"): Ditto.
7544         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
7545         PLUS, not cris_operand_extend_operator.  Adjust condition and
7546         output template.
7547         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
7548         * config/cris/cris.h (PREDICATE_CODES): Add
7549         cris_additive_operand_extend_operator.
7550         * config/cris/cris.c (cris_additive_operand_extend_operator):
7551         New predicate.
7552
7553 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
7554
7555         * df.c (read_modify_subreg_p): Change from static to global.
7556         * df.h (read_modify_subreg_p): Add prototype.
7557         * sched-deps.c (sched_analyze_1): Generate true dependency for
7558         strict_low_part, certain subregs and zero/sign_extract.
7559
7560 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
7561
7562         * Makefile.in: Update.
7563         * c-common.c: Don't include real.h or except.h.
7564         (REGISTER_PREFIX): Remove.
7565         (builtin_define_std, builtin_define_with_value,
7566         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
7567         builtin_define_type_max, builtin_define_type_precision,
7568         builtin_define_float_constants): Move to c-cppbuiltin.c.
7569         (c_stddef_cpp_builtins): New.
7570         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
7571         * c-cppbuiltin.c: New, extracted from c-common.c.
7572         (define__GNUC__): New.
7573         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
7574         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
7575         (cpp_unique_options): Don't support no-gcc.
7576         (do_spec_1): Remove support of version specs.
7577         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
7578         * doc/passes.texi: Update.
7579         * doc/tm.texi: Update.
7580
7581 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
7582
7583         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
7584
7585 2003-03-10  Andrew Pinski  <apinski@apple.com>
7586
7587         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
7588         is on should not get here.
7589         (machopic_indirect_data_reference): If dynamic-no-pic is on just
7590         generate high/low parts of the address.
7591         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
7592         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
7593         symbol and labels with a new reg.  Dynamic-no-pic does not have a
7594         pic_offset_table_rtx.
7595         (machopic_select_section): Change references of flag_pic to
7596         MACHOPIC_INDIRECT.
7597         (machopic_asm_out_destructor): Likewise.
7598         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
7599         reference of flag_pic to MACHOPIC_INDIRECT.
7600         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
7601         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
7602         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
7603         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
7604         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
7605         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
7606         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
7607         (TARGET_DYNAMIC_NO_PIC): Define.
7608         (SUBTARGET_SWITCHES): Define, have sub-target switches for
7609         dynamic-no-pic.
7610         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
7611         rs6000_override_options to here. Dynamic-no-pic overrides
7612         pic.
7613         (CC1_SPEC): Change from not static then pic to not static and not
7614         dynamic-no-pic then pic.
7615         * config/rs6000/rs6000.c (rs6000_override_options): Move the
7616         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
7617         (rs6000_legitimize_reload_address): Add case for loading floating in
7618         dynamic-no-pic.
7619         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
7620         of flag_pic to MACHOPIC_INDIRECT.
7621         (secondary_reload_class): Conditional change the reference of
7622         flag_pic to MACHOPIC_INDIRECT.
7623         (rs6000_output_mi_thunk): Change reference of flag_pic to
7624         MACHOPIC_INDIRECT.
7625         (output_profile_hook): Likewise.
7626         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
7627         * config/rs6000/rs6000.md (movdf_low): Add the case for
7628         MACHO_DYNAMIC_NO_PIC_P.
7629         (call): Change references for flag_pic in TARGET_MACHO to
7630         MACHOPIC_INDIRECT.
7631         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
7632         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
7633         * doc/invoke.texi (-mdynamic-no-pic): Document.
7634
7635 2003-03-10  Devang Patel  <dpatel@apple.com>
7636
7637         PR c++/9394
7638         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
7639         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
7640         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
7641         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
7642         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
7643         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
7644
7645 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
7646
7647         PR optimization/7189
7648         * toplev.c (rest_of_compilation):  Move
7649         check_function_return_warnings up to just after
7650         delete_unreachable_blocks.
7651
7652 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
7653
7654         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
7655         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
7656         Declare.
7657         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
7658         for reg rename optimization to avoid using Z and Y registers.
7659
7660 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
7661
7662         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
7663         when adding to X and Y since leax/leay are fast.
7664         ("*addhi3"): Accept 'I' constraint when adding to address register.
7665         ("rotlhi3"): Operand 1 must be a register_operand.
7666         (peephole2): New peephole to optimize some adds.
7667         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
7668         to represent -2 .. 2 small integer range.
7669
7670 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
7671
7672         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
7673         each 16-bit rotation.
7674
7675 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
7676
7677         * c-opts.c (add_prefixed_path): Don't use concat.  When
7678         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
7679         cpp_GCC_INCLUDE_DIR_len characters.
7680
7681 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
7682
7683         * testsuite/gcc.dg/altivec-9.c: New file.
7684
7685         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
7686         (rs6000_emit_prologue): Use rs6000_frame_related instead.
7687
7688 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
7689
7690         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
7691         vectors.
7692         (__ev_convert_u64): Remove macro.  Define as inline.
7693         (__ev_convert_s64): Same.
7694
7695 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
7696
7697         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
7698         (rs6000_stack_t): Add spe_64bit_regs_used.
7699
7700         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
7701         spe_64bit_regs_used, and use it to determine the size of the
7702         frame.
7703         (spe_func_has_64bit_regs_p): New.
7704         (spe_synthesize_frame_save): New.
7705         (rs6000_frame_related): Handle SPE synthetic registers.
7706         (rs6000_emit_prologue): Only save in 64-bits if the function used
7707         any registers in 64-bit mode.
7708         (rs6000_emit_epilogue): Same, but for restore.
7709
7710 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
7711
7712         * arm.h (enum floating_point_type): Delete.  Replace with...
7713         (enum fputype): ... new.
7714         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
7715         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
7716         * arm.md (attr fpu): Reworked for new underlying enum values.
7717         * arm.c (arm_fpu_arch): Now enum fputype.
7718         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
7719         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
7720         Update uses of arm_fpu_arch and arm_fpu_tune.
7721
7722 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
7723
7724         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
7725         (try_crossjump_to_edge): Replace refereces to one jump table by
7726         references to identical jump table.
7727         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
7728         (replace_label): Moved to rtlanal.c.
7729         (struct rtx_pair): Moved to rtl.h.
7730         * rtl.h (struct rtx_pair): Moved from loop.c.
7731         (replace_label): New extern function.
7732         (subrtx_p): New extern function.
7733         (tablejump_p): New extern function.
7734         * rtlanal.c (replace_label): Moved from loop.c.
7735         (subrtx_p_1): New static function.
7736         (subrtx_p): New function.
7737         (tablejump_p): New function.
7738
7739 2003-03-10  Jan Hubicka  <jh@suse.cz>
7740
7741         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
7742
7743         * cfgcleanup.c (merge_blocks): Return where to iterate next.
7744         (try_optimize_cfg): Use return value of merge_blocks
7745
7746 2003-03-10  Michael Matz  <matz@suse.de>
7747
7748         * cfg.c (unchecked_make_edge): New.
7749         (cached_make_edge): Use it.
7750         * basic-block.h (unchecked_make_edge): Declare.
7751         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
7752
7753 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
7754
7755         * fpa.md: New file.  Move all patterns relating to FPA co-processor
7756         to here...
7757         * arm.md: ... from here.
7758         (cirrus.md, fpa.md): Include at end of description.
7759         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
7760         (pic_load_addr_based): Remove register constraint from expander.
7761         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
7762         (sordered, sungt, sunle, sunge, sunlt): Likewise.
7763         (eh_epilogue, tablejump): Likewise.
7764
7765 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7766
7767         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
7768         on operands if it has a PLACEHOLDER_EXPR.
7769
7770 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
7771             Mostafa Hagog
7772
7773         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
7774         condition.
7775
7776 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
7777
7778         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
7779         * config/ip2k/ip2k.h: Similarly.
7780         * config/m32r/m32r.h: Similarly.
7781         * config/m68hc11/m68hc11.h: Similarly.
7782         * config/mn10200/mn10200.h: Similarly.
7783         * config/mn10300/mn10300.h: Similarly.
7784         * config/pdp11/pdp11.h: Similarly.
7785         * config/v850/v850.h: Similarly.
7786         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
7787         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
7788         * config/mips/iris3.h: Remove #if 0 block.
7789
7790 2003-03-09  Roger Sayle  <roger@eyesopen.com>
7791             Joern Rennecke <joern.rennecke@superh.com>
7792
7793         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
7794         pending argument upon return from handle_braces here.
7795         (do_spec_2): Instead handle it upon return from do_spec_1 here.
7796
7797 2003-03-09  Roger Sayle  <roger@eyesopen.com>
7798             Joern Rennecke <joern.rennecke@superh.com>
7799
7800         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
7801         pending argument upon return from handle_braces here.
7802         (do_spec_2): Instead handle it upon return from do_spec_1 here.
7803
7804 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7805
7806         * varasm.c (make_decl_one_only): Use declare_weak().
7807
7808 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7809
7810         PR middle-end/9986
7811         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
7812         after the common builtins.
7813         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
7814         * pa.c (TARGET_INIT_BUILTINS): Define.
7815         (pa_init_builtins): New function.
7816
7817         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
7818         space has been allocated for the outgoing arguments, set the arg
7819         pointer for a call emitted after virtuals have been instantiated
7820         using the stack pointer offset, otherwise abort.
7821
7822 2003-03-09  DJ Delorie  <dj@redhat.com>
7823
7824         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
7825
7826 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
7827
7828         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
7829         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
7830         conversion to integer.
7831         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
7832
7833 2003-03-09  Roger Sayle  <roger@eyesopen.com>
7834
7835         * builtins.def: Fix typo and improve grammar.
7836         * loop-unroll.c (decide_peel_completely): Tidy log message.
7837
7838 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7839
7840         * config/h8300/h8300.md (*tstsi_upper_bit): New.
7841         (*iorsi3_e2f): Likewise.
7842
7843 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7844
7845         * config/h8300/h8300.c (h8300_and_costs): Return the number of
7846         assembly instructions needed.
7847         (h8300_shift_costs): Likewise.
7848
7849 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
7850
7851         * config/cris/aout.h (ENDFILE_SPEC): Undef.
7852
7853         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
7854         moves from here ...
7855         * expr.c (emit_move_insn_1): ... to here.
7856
7857         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
7858         (TARGET_OS_CPP_BUILTINS): New macro.
7859         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
7860         (TARGET_OS_CPP_BUILTINS): New macro.
7861         (CPP_PREDEFINES): Don't define.  Move old definitions and...
7862         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
7863         (TARGET_CPU_CPP_BUILTINS): New macro.
7864         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
7865         definitions and the optional __PIC__, __pic__ and
7866         __NO_UNDERSCORES__ definitions to...
7867         (TARGET_OS_CPP_BUILTINS): New macro.
7868
7869         * flags.h (flag_leading_underscore): Declare.
7870
7871         * c-opts.c (c_common_post_options): On fopen failure, return
7872         false, not NULL.
7873
7874 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
7875
7876         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
7877         config.h.
7878         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
7879         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
7880
7881 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
7882
7883         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
7884         CPP_PREDEFINES.
7885         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
7886         CPP_PREDEFINES.
7887
7888 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
7889
7890         * c-common.h (c_common_init, c_common_post_options): Update.
7891         * c-objc-common.c (c_objc_common_init): Update for new prototype.
7892         * c-opts.c (saved_lineno): New.
7893         (c_common_post_options, c_common_init): Update prototypes,
7894         move call to cpp_read_main_file from latter to former.
7895         * c-tree.h (c_ojbc_common_init): Update.
7896         * langhooks-def.h (lhd_post_options): New.
7897         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
7898         * langhooks.c (lhd_post_options): New.
7899         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
7900         * toplev.c (no_backend): New.
7901         (process_options): Call post_options hook and set main_input_filename
7902         and input_filename here.
7903         (lang_dependent_init, do_compile): post_options hook moved to
7904         process_options.
7905         * objc/objc-act.c (objc_init): Update prototype.
7906         * objc/objc-act.h (objc_init): Update prototype.
7907
7908 2003-03-08  Roger Sayle  <roger@eyesopen.com>
7909
7910         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
7911         a complex or vector type, using a load in the original mode.
7912
7913 2003-03-08  Jan Hubicka  <jh@suse.cz>
7914
7915         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
7916         * gt-cgraph.h: New GC file.
7917         * cgraph.c (known_fns): New static variable.
7918         (cgraph_node): Add the decl into varray.
7919
7920 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
7921
7922         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
7923
7924 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
7925
7926         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
7927         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
7928         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
7929         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
7930         All callers changed.
7931         * arm.md, arm.h, arm-protos.h: Updated.
7932
7933         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
7934         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
7935         * arm.c (arm_regno_class, f_register_operand): Updated.
7936
7937 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
7938
7939         * config/cris/cris.h: Remove EGCS references.
7940         (CPP_SPEC): Remove "-$".
7941         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
7942
7943 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
7944
7945         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
7946         preference to CPP_PREDEFINES.
7947
7948 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
7949
7950         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
7951
7952 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7953
7954         * config/h8300/h8300.md (*extzv_16_8): New.
7955
7956 2003-03-08  Jan Hubicka  <jh@suse.cz>
7957
7958         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
7959         * cgraph.h: (cgraph_local_info): Add can_inline_once
7960         (cgraph_global_info): Add inline_once.
7961         (cgraph_node): Add previous.
7962         (cgraph_remove_node): New.
7963         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
7964         function.
7965         (cgraph_optimize): Call it.
7966         (cgraph_finalize_function):  Set inlinable flags.
7967         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
7968         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
7969         (cgraph_expand_function): Likewise.
7970         * cgraph.c
7971         (cgraph_node): Put nodes into doubly linked chain.
7972         (cgraph_remove_node): New function.
7973         * flags.h (flag_inline_functions_called_once): Declare.
7974         * tree-inline.c: Include cgraph.h
7975         (inlinable_functions_p): Add extra argument to bypass limits.
7976         (expand_call_inline):  Obey cgraph flag.
7977         * tree-inline.h (tree_inlinable_function_p): Update prototype.
7978
7979 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7980
7981         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
7982         irreducible loops.
7983
7984         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
7985         loops info correctly.
7986
7987 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
7988
7989         PR middle-end/7796
7990         * unroll.c (calculate_giv_inc): Handle constants being
7991         loaded with LSHIFTRT.
7992
7993 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
7994
7995         * config/rs6000/rs6000.c (processor_target_table): Do not disable
7996         GP optional instructions on Power3, Power4, 620, and 630.
7997
7998 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
7999
8000         * calls.c: Fix comment formatting.
8001         * cfgloopanal.c: Likewise.
8002         * cfgloopmanip.c: Likewise.
8003         * combine.c: Likewise.
8004         * dwarf2out.c: Likewise.
8005         * ggc-common.c: Likewise.
8006         * langhooks.c: Likewise.
8007         * loop-unroll.c: Likewise.
8008         * loop.c: Likewise.
8009         * ra-build.c: Likewise.
8010         * sbitmap.c: Likewise.
8011         * toplev.c: Likewise.
8012
8013 2003-03-07  James E Wilson  <wilson@tuliptree.org>
8014
8015         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
8016
8017 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
8018
8019         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
8020         support -no-integrated-cpp.
8021
8022         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
8023         than langhooks.name.
8024
8025 2003-03-07  Michael Matz  <matz@suse.de>
8026
8027         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
8028         (DF_FOR_REGALLOC): New.
8029         * df.c (df_ref_record): Set DF_REF_STRIPPED.
8030         (read_modify_subreg_p): Simplify.
8031         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
8032         Use DF_FOR_REGALLOC.
8033         * ra.h (struct web): New member subreg_stripped.
8034         (invalid_mode_change_regs): Declare.
8035         * ra.c (invalid_mode_change_regs): New.
8036         (init_ra): Initialize it.
8037         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
8038         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
8039         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
8040         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
8041         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
8042
8043 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
8044
8045         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
8046         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
8047         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
8048         machine description file from ...
8049         * cirrus.md: ... here.
8050
8051 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8052
8053         * config/h8300/h8300.md (a peephole2): Don't use
8054         reg_overlap_mentioned_p.
8055
8056 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
8057
8058         * c-pch.c: Include langhooks.h.
8059         (IDENT_LENGTH): New.
8060         (get_ident): New.
8061         (pch_ident): Delete.
8062         (pch_init): Use get_ident, IDENT_LENGTH.
8063         (c_common_valid_pch): Likewise.  Also, use actual language
8064         in warning message.
8065         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
8066
8067         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
8068         c-parse.in.
8069         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
8070         gt-objc-objc-act.h.
8071         (gt-objc-objc-act.h): New rule.
8072         * objc/lang-specs.h: Support PCH.
8073         * objc/objc-act.c: Include gt-objc-objc-act.h.
8074         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
8075         (build_selector_reference_decl): Move idx out, mark for PCH.
8076         (build_class_reference_decl): Likewise.
8077         (build_objc_string_decl): Move *_idx out, mark for PCH.
8078         (build_tmp_function_decl): Move xxx out, mark for PCH.
8079
8080 2003-03-06  Dale Johannesen  <dalej@apple.com>
8081
8082         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
8083         global functions for inlining on Darwin.
8084
8085 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
8086
8087         * haifa-sched.c (schedule_block): Don't call reorder when sorting
8088         is prohibited.
8089
8090 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
8091
8092         * Makefile.in (c-ppoutput.o): Update.
8093         * c-common.h (init_pp_output): New.
8094         (preprocess_file): Update.
8095         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
8096         Register builtins.
8097         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
8098         Make call to cpp_read_main_file common to whether preprocessing
8099         or not.  Don't register builtins.
8100         * c-ppoutput.c: Include c-pragma.h.
8101         (setup_callbacks): Rename init_pp_output.
8102         (preprocess_file): No longer setup callbacks or call
8103         cpp_read_main_file.
8104         * cpphash.h (_cpp_init_mbchar): New.
8105         * cppinit.c (init_library): Call _cpp_init_mbchar.
8106         * cpplex.c (_cpp_init_mbchar): New.
8107
8108 2003-03-06  Roger Sayle  <roger@eyesopen.com>
8109
8110         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
8111         MEM, try loading the MEM into a register and taking the low-part
8112         of that, to help CSE see the use of the MEM in its true mode.
8113
8114 2003-03-05  Tom Tromey  <tromey@redhat.com>
8115
8116         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
8117         Define.
8118
8119 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
8120
8121         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
8122         operand 2.
8123         ("*ineqbranchsi"): Likewise.
8124
8125 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
8126
8127         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
8128         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
8129         register store followed by a stack increment.
8130
8131 2003-03-05  Chris Moller  <cmoller@redhat.com>
8132
8133         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
8134         to inhibit saving CARRY_REGS.
8135
8136         * config/stormy16/stormy16.c (xs_hi_general_operand):
8137         added predicate to detect and error-out on out-of-range
8138         const_ints for movhi.
8139         * config/stormy16/stormy16.md (movhi): use
8140         xs_hi_general_operand.
8141
8142         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
8143         added a check for local vbl size overflow.
8144         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
8145         added predicate to detect and error-out on out-of-range
8146         const_ints for addhi and subhi.
8147         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
8148         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
8149
8150         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8151         add a term to accept PRE_MODIFY addresses.
8152         * config/stormy16/stormy16.c (xstormy16_expand_move):
8153         add code to expand PRE_MODIFY addresses to an add followed
8154         by a move.
8155
8156 2003-03-06  Jason Merrill  <jason@redhat.com>
8157
8158         * tree-inline.c (inlinable_function_p): Revert earlier change
8159         pending investigation.
8160
8161 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8162
8163         * config/h8300/h8300.md (a new peephole2): New.
8164
8165 2003-03-06  Jan Hubicka  <jh@suse.cz>
8166
8167         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
8168
8169 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8170
8171         * dwarf2out.c (size_of_die): Compute size of external reference to
8172         die correctly.
8173
8174 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
8175
8176         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
8177         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
8178         expanders.
8179
8180 2003-03-05  Roger Sayle  <roger@eyesopen.com>
8181
8182         * expr.h (lang_expand_expr): Delete obsolete prototype.
8183
8184 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8185
8186         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
8187
8188 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8189
8190         * config/h8300/h8300.md (a peephole2): Generalize to
8191         accept a memory operand.
8192
8193 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
8194
8195         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
8196         * config/alpha/alpha.c (print_operand, case '+'): New.
8197         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
8198         (call_value_osf_1_noreturn): Likewise.
8199
8200 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8201
8202         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
8203         (expand_end_bindings): Likewise.
8204
8205 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8206
8207         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
8208         (epilogue): Don't generate return_external_pic when emitting PA 2.0
8209         code.
8210
8211 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
8212
8213         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
8214
8215         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
8216
8217         * hooks.c (hook_rtx_rtx_null): New.
8218
8219         * hooks.h (hook_rtx_rtx_null): Protoize.
8220
8221         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
8222         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
8223
8224         * target.h (struct gcc_target): Add dwarf_register_span.
8225
8226         * dwarf2out.c (multiple_reg_loc_descriptor): New.
8227         (one_reg_loc_descriptor): New.
8228         (reg_loc_descriptor): Add support for values that span more than
8229         one register.
8230
8231 2003-03-05  Jan Hubicka  <jh@suse.cz>
8232
8233         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
8234         * alias.c:  Include cgraph.h
8235         (mark_constant_function): Use cgraph_rtl_info.
8236         * calls.c:  Include cgraph.h
8237         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
8238         calls.
8239         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
8240         * cgraph.c (cgraph_rtl_info): New function.
8241         * cgraph.h (cgraph_rtl_info): Declare
8242         (cgraph_rtl_info): Likewise.
8243         * function.h (struct function): Add recursive_call_emit.
8244         * toplev.c: Include cgraph.h.
8245         (rest_of_compilation): Set preferred_incoming_stack_boundary.
8246
8247 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8248
8249         * config/h8300/h8300.c (output_simode_bld): Clear the
8250         destination first if possible.
8251         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
8252         alternative.
8253         (extzv_1_r_inv_h8300hs): Likewise.
8254
8255 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8256
8257         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
8258         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
8259         * cfgloop.c (flow_loop_free): Made global.
8260         (establish_preds): New static function.
8261         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
8262         (get_loop_exit_edges): New.
8263         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
8264         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
8265         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
8266         loops.
8267         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
8268         removability of an edge.
8269         (fix_irreducible_loops): New static function.
8270         (find_path, remove_path): Add ability to remove enclosing loops.
8271         (unloop): New.
8272         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
8273         flags.
8274         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
8275         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
8276         not neccessary.
8277         (decide_peel_completely, peel_loops_completely): Allow complete peeling
8278         of non-duplicable once rolling loops.
8279         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
8280
8281 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
8282
8283         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
8284         for align_jumps is 4.
8285
8286         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
8287         use GENERAL_REGS.
8288
8289 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
8290
8291         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
8292         according to va_arg type.
8293         (EXPAND_BUILTIN_VA_ARG): Remove.
8294         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
8295         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
8296
8297 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
8298
8299         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
8300         else clauses.
8301
8302 2003-03-05  Michael Matz  <matz@suse.de>
8303
8304         * i386/i386.c (ix86_save_reg): Also test
8305         current_function_uses_const_pool.
8306
8307 2003-03-05  Michael Matz  <matz@suse.de>
8308
8309         * unwind.h: Add the GPL exception.
8310         * Makefile.in (USER_H): Add unwind.h.
8311
8312 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
8313
8314         PR c/9799
8315         * c-typeck.c (push_init_level): Add sanity check.
8316
8317 2003-03-05  Jan Hubicka  <jh@suse.cz>
8318
8319         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
8320         RTL inlining is done.
8321
8322         * cgraphunit.c (cgraph_mark_local_functions): New local function.
8323         (cgraph_optimize): Mark local functions.
8324         * i386-protos.h (init_cumulative_args): Update prototype.
8325         * i386.c (init_cumulative_args): Use register passing convention for
8326         local functions.
8327
8328         * cgraph.c (cgraph_global_info_ready): New global variable
8329         (cgraph_local_info, cgraph_global_info): New functions.
8330         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
8331         structures.
8332         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
8333         Declare.
8334         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
8335         (cgraph_mark_functions_to_output): Use inline_many.
8336         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
8337         (cgraph_expand_functions): Expand inline functions last.
8338         (cgraph_optimize): Do not emit uneeded functions.
8339
8340 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
8341
8342         * expr.c (convert_modes): Check for legal hard register.
8343
8344 2003-03-04  Tom Tromey  <tromey@redhat.com>
8345
8346         * doc/sourcebuild.texi (Front End Directory): Document tags.
8347         * configure: Rebuilt.
8348         * configure.in (target_list): Added tags.
8349         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
8350         TAGS files by reference.
8351         * objc/Make-lang.in (objc.tags): New target.
8352
8353 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8354
8355         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
8356         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
8357         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
8358         gcov_read_string, gcov_write_length): Modified to enable reading/
8359         writing of whole .da file just once.
8360         (da_file_open, da_file_close, da_file_eof, da_file_error,
8361         da_file_position, da_file_seek, da_file_write, da_file_read): New
8362         functions.
8363         (actual_da_file, actual_da_file_position, actual_da_file_length,
8364         actual_da_file_buffer, actual_da_file_buffer_size): New static
8365         functions.
8366         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
8367         just once.
8368
8369
8370 2003-03-04  Andreas Schwab  <schwab@suse.de>
8371
8372         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
8373         offset without frame pointer.
8374
8375 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
8376
8377         * expr.c (expand_expr): Call promote_mode to set unsignedp.
8378
8379 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
8380
8381         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
8382         * configure: Regenerated.
8383         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
8384
8385 2003-03-04  Andreas Jaeger  <aj@suse.de>
8386
8387         * configure.in: Check for <memcheck.h>.
8388         * configure: Regenerated.
8389
8390         * config.in: Define HAVE_MEMCHECK_H.
8391
8392         * ggc-common.c: Use <memcheck.h> if available instead of
8393         <valgrind.h>.
8394         * ggc-page.c: Likewise.
8395         * cppfiles.c: Likewise.
8396
8397 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8398
8399         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
8400
8401 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
8402
8403         PR c/9262
8404         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
8405         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
8406
8407 2003-03-04  Jan Hubicka  <jh@suse.cz>
8408
8409         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
8410         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
8411         for -O3.
8412
8413 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
8414
8415         * configure.in: Delete three unused variables.  Move a variable
8416         definition closer to its use.  Simplify use_collect2 logic.  Start to
8417         organize.  Simplify tests for in-tree gas and ld.
8418         * configure: Regenerate.
8419
8420 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
8421
8422         * Makefile.in: Update.
8423         * c-common.c (flag_no_line_commands, flag_no_output,
8424         flag_dump_macros, flag_dump_includes): New.
8425         * c-common.h (flag_no_line_commands, flag_no_output,
8426         flag_dump_macros, flag_dump_includes, preprocess_file): New.
8427         (init_c_lex): Update prototype.
8428         * c-lex.c (init_c_lex): Update prototype; move some code to
8429         c_common_init.
8430         * c-opts.c (preprocess_file): Subsume into c_common_init.
8431         (c_common_decode_option): Update flags.
8432         (c_common_init): Move code from preprocess_file and init_c_lex.
8433         (sanitize_cpp_opts): Update.
8434         * c-ppoutput.c: New, cppmain.c almost verbatim.
8435         * cpphash.h (struct printer): Remove.
8436         (struct cpp_reader): Remove print.
8437         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
8438         cpp_preprocess_file): Remove.
8439         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
8440         and dump_includes.
8441         * cppmain.c: Remove.
8442         * doc/passes.texi: Update.
8443
8444 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8445
8446         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
8447         (assign_stack_local_1): Perform overall stack alignment only when
8448         STACK_ALIGNMENT_NEEDED is non-zero.
8449         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
8450
8451         * pa.c (compute_frame_size): Rename fsize to size.  Account for
8452         alignment to a word boundary before general register save block.  Only
8453         account for double-word alignment before floating point register save
8454         block if one or more are saved.  Don't allocate space for %r3 when
8455         frame pointer is needed.
8456         (hppa_expand_prologue): Include alignment to word boundary in local
8457         frame size.
8458         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
8459         (STACK_ALIGNMENT_NEEDED): Define.
8460
8461 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
8462
8463         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
8464         global register variables.
8465
8466 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
8467
8468         * reload.c (reload_adjust_reg_for_mode): New function.
8469         (subst_reloads): Call it.
8470         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
8471         * reload.h (reload_adjust_reg_for_mode): Declare.
8472         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
8473         Call it.
8474
8475 2003-03-03  James E Wilson  <wilson@tuliptree.org>
8476
8477         * optabs.c (add_equal_note): Delete SUBREG_REG use.
8478         Fixes PR c/7872.
8479
8480 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8481
8482         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
8483         (*ixorsi3_lshiftrt_16): New.
8484         (*iorsi3_ashift_16): Remove.
8485
8486 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8487
8488         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
8489         pattern.
8490
8491 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
8492
8493         * doc/install.texi (Specific): Update entry for powerpc-darwin.
8494
8495 2003-03-03  Richard Henderson  <rth@redhat.com>
8496
8497         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
8498
8499 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
8500
8501         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
8502         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
8503         (rs6000_variable_issue): Do not return negative value.
8504         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
8505         scheduling pass.
8506
8507 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8508
8509         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
8510         prune_unused_types calls.
8511
8512 2003-03-03  Jason Merrill  <jason@redhat.com>
8513
8514         * tree-inline.c (find_builtin_longjmp_call): Save and restore
8515         lineno and input_filename.
8516         (find_alloca_call): Likewise.
8517         (inlinable_function_p): Run the langhook earlier.
8518
8519         * calls.c (compute_argument_addresses): Give the new MEMs a
8520         minimum alignment of PARM_BOUNDARY.
8521
8522 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
8523
8524         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
8525         subtarget_asm_isa_spec.
8526         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
8527         (ASM_SPEC): Define as SH_ASM_SPEC.
8528         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
8529         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
8530         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
8531         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
8532
8533         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
8534         and align_jumps if not set.
8535         Force align_jumps to be at least 2.
8536         When relaxing, force align_functions to be at least the maximum of
8537         align_loops, align_jumps and 4.
8538         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
8539         (sh_loop_align): Honour align_loops_log.
8540
8541         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
8542         to check for indirect_jump_scratch.
8543         (indirect_jump_scratch): Add second set.
8544         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
8545         when looking for indirect_jump_scratch.
8546         Extract scratch register taking new structure of indirect_jump_scratch
8547         into account.
8548         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
8549
8550 2003-03-03  Jan Hubicka  <jh@suse.cz>
8551
8552         * calls.c (rtx_for_function_call): Take the address as an argument
8553         (expand_call): Do not modify the expression.
8554
8555         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
8556         optimizing.
8557
8558 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8559
8560         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
8561         TARGET_H8300H and TARGET_H8300S.
8562
8563 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8564
8565         * config/h8300/h8300.md (a peephole2): New.
8566
8567 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8568
8569         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
8570         operands[0] and operands[1] are different.
8571
8572 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8573
8574         * reload1.c (reload_cse_move2add): Remove variable success.
8575
8576 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8577
8578         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
8579         warnings.
8580
8581 2003-03-02  Richard Henderson  <rth@redhat.com>
8582
8583         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
8584         * config.in, configure: Rebuild.
8585         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
8586         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
8587         paired ldtoffx and ldxmov annotations.
8588         (load_symptr_internal1): Remove.
8589         (load_symptr_high, load_symptr_low): New.
8590
8591 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
8592
8593         * c-incpath.c (add_path): Fix sysp assignment.
8594
8595 2003-03-02  Kurt Garloff  <garloff@suse.de>
8596
8597         * params.def: Introduce parameter max-inline-insns-rtl for
8598         a separate limit for the RTL inliner.
8599         * params.h: Likewise.
8600         * integrate.c (function_cannot_inline_p): Use it.
8601         * toplev.c (decode_f_option): Set multiple parameters
8602         controlling inlining with -finline-limit.
8603         * params.def: Fix orthographic and typographic errors.
8604         * doc/invoke.texi: Document parameters controlling inlining
8605         and the way -finline-limit sets multiple of them.
8606
8607         * tree.h (struct tree_decl): Introduce inlined_function_flag,
8608         recording whether the function became eligible for inlining
8609         by a compiler flag rather than the declaration.
8610         Provide DID_INLINE_FUNC macro to access it.
8611         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
8612         * cp/decl.c (grokfndecl): Likewise.
8613         * toplev.c (rest_of_compilation): Likewise.
8614         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
8615         * print-tree.c (print_node): Report it.
8616         * params.def: Introduce new max-inline-insns-auto limit.
8617         * params.h: Likewise.
8618         * tree-inline.c (inlinable_function_p): Apply it to functions
8619         with DID_INLINE_FUNC set.
8620         * toplev.c (decode_f_option): Initialize it from -finline-limit
8621         value.
8622         * doc/invoke.texi: Document new parameter.
8623
8624 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
8625
8626         * fix-header.c (read_scan_file): Don't reference simplify_path.
8627
8628 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8629
8630         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
8631         min/max instructions by default as may result in reload errors.
8632
8633 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8634
8635         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
8636         avoid reload problems; define split for it.
8637
8638 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8639
8640         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
8641         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
8642         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
8643         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
8644         rotatert and rotate.
8645         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
8646         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
8647         ("*rotrhi3_addr"): New split for shift insns on address register.
8648         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
8649         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
8650         (___rotrhi3): Likewise.
8651         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
8652
8653 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
8654
8655         * toplev.c (aux_base_name): Moved from toplev.h.
8656         (filename): Constify.
8657         (lang_dependent_init): Don't duplicate name.
8658         (process_options): Set aux_base_name here, not...
8659         (do_compile): ...here.  Change protoype.
8660         (toplev_main): Move some code from do_compile.
8661         * toplev.h: Remove aux_base_name.
8662
8663 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8664
8665         * config/h8300/h8300-protos.h: Add a prototype for
8666         iorxor_operator.
8667         * config/h8300/h8300.c (print_operand): Handle 'c'.
8668         (iorxor_operator): New.
8669         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
8670         * config/h8300/h8300.md (*iorhi3_zext): Remove.
8671         (*iorsi3_zexthi): Likewise.
8672         (*iorsi3_zextsi): Likewise.
8673         (*xorhi3_zextqi): Likewise.
8674         (*xorsi3_zexthi): Likewise.
8675         (*xorsi3_zextsi): Likewise.
8676         (*ixorhi3_zext): New.
8677         (*ixorsi3_zext_qi): Likewise.
8678         (*ixorsi3_zext_hi): Likewise.
8679
8680 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
8681
8682         * c-incpath.c (remove_component_p, simplify_path): Move back to
8683         cppfiles.c.
8684         (remove_duplicates): Use cpp_simplify_path.
8685         * c-incpath.h (simplify_path): Remove.
8686         * c-lex.c: Don't include c-incpath.h.
8687         (init_c_lex): Remove simplify_path.
8688         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
8689         (find_or_create_entry, validate_pch): Revert.
8690
8691 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
8692
8693         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
8694           an external cpp during compilation.
8695         (option_map): Likewise.
8696         * objc/lang-specs.h (default_compilers): Similarly.
8697         * doc/invoke.texi: Document -no-integrated-cpp flag.
8698
8699 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8700
8701         * config/h8300/h8300.md (zero_extendqisi2): Change to an
8702         expander.
8703         (*zero_extendqisi2_h8300): New.
8704         (*zero_extendqisi2_h8300hs): New.
8705         (two splitters): New.
8706
8707 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8708
8709         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
8710
8711 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
8712
8713         * config/h8300/h8300.md (a peephole2): Remove dead code.
8714
8715 2003-03-01  Roger Sayle  <roger@eyesopen.com>
8716
8717         PR c++/9367
8718         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
8719         (BT_FN_INT_CONST_STRING_VALIST_ARG,
8720         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
8721         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
8722         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
8723         BT_FN_INT_STRING_CONST_STRING_VAR,
8724         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
8725         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
8726         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
8727         ATTR_NONNULL_3): Also include the nothrow attribute.
8728         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
8729         vsnprintf, vscanf, vsscanf): Don't define attributes here.
8730         * builtins.def (putchar, puts): Make full C89 built-ins.
8731         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
8732         vsscanf, vsnprintf, vsprintf): New built-ins.
8733         * c-common.c (c_common_nodes_and_builtins): Handle new macro
8734         DEF_FUNCTION_TYPE_VAR_3.
8735
8736         * doc/extend.texi: Document these new built-in functions.
8737
8738 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
8739
8740         * config/h8300/h8300.md (a peephole2): New.
8741
8742 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
8743
8744         * predict.c (estimate_bb_frequencies): Correctly set
8745         real_values_initialized after initialization.
8746
8747 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
8748
8749         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
8750         cppinit.o, cppdefault.o, fix-header): Update.
8751         * c-incpath.c: New file.
8752         * c-incpath.h: New file.
8753         * c-lex.c: Include c-incpath.h.
8754         (init_c_lex): Register path simplifier.
8755         * c-opts.c: Include cppdefault.h and c-incpath.h.
8756         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
8757         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
8758         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
8759         (missing_arg, c_common_decode_option): Handle them.
8760         (c_common_post_options): Register include chains.
8761         (print_help): Update.
8762         * cppdefault.h (struct default include): Update.
8763         Move some macros to ...
8764         * cppdefault.c: ... here.
8765         (cpp_include_defaults): Add extra field add_sysroot.
8766         * cppfiles.c (include_file, search_from, find_or_create_entry,
8767         cpp_included, find_include_file, remap_filename): Update for
8768         renaming of search_path to cpp_path, and of the chain headers.
8769         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
8770         * cpphash.h (struct search_path): Move to cpplib.h.
8771         (struct cpp_buffer, struct cpp_reader): Update.
8772         (_cpp_simplify_pathname): Remove.
8773         * cppinit.c: Don't include prefix.h and cppdefault.h.
8774         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
8775         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
8776         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
8777         no_pth, cpp_handle_options): Remove.
8778         (struct pending_option): Remove chain members.
8779         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
8780         cpp_handle_option): Update.
8781         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
8782         (struct cpp_options): Remove quote_include, bracket_include,
8783         include_prefix, include_prefix_len, verbose, ignore_srcdir,
8784         no_standard_includes, no_standard_cplusplus_includes.
8785         (struct cpp_callbacks): Add simplify_path.
8786         (cpp_handle_options): Remove.
8787         * fix-header.c: Include c-incpath.h.
8788         (read_scan_file): Update to use c-incpath functionality.
8789         * doc/passes.texi: Update.
8790
8791 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
8792
8793         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
8794         satisfies EXTRA_CONSTRAINT 'U'.
8795
8796 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
8797
8798         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
8799         register.
8800         (*tst_extzv_memqi_1_n): Change to a splitter.
8801         (a peephole2): Update.
8802
8803 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
8804
8805         * predict.c (estimate_bb_frequencies): Initialize the sreal
8806         constants once per compilation.
8807
8808 2003-02-28  Richard Henderson  <rth@redhat.com>
8809
8810         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
8811
8812 2003-02-28  scott snyder  <snyder@fnal.gov>
8813
8814         * flags.h: Add flag_eliminate_unused_debug_types.
8815         * toplev.c: Add flag_eliminate_unused_debug_types.
8816         (f_options): Add -feliminate-unused-debug-types.
8817         * dwarf2out.c (struct file_table): Add emitted member.
8818         (splice_child_die): Fix the parent pointer for the child being
8819         spliced.
8820         (lookup_filename): Maintain file_table.emitted array.  Don't
8821         output .file directive here.
8822         (maybe_emit_file): (new)
8823         (init_file_table): Set up file_table.emitted.
8824         (dwarf2out_source_line): Use maybe_emit_file.
8825         (dwarf2out_start_source_file): Use maybe_emit_file.
8826         (dwarf2out_init): Use maybe_emit_file.
8827         (prune_unused_types_walk_attribs): (new)
8828         (prune_unused_types_mark): (new)
8829         (prune_unused_types_walk): (new)
8830         (prune_unused_types_prune): (new)
8831         (prune_unused_types): (new)
8832         (dwarf2out_finish): Call prune_unused_types if
8833         flag_eliminate_unused_debug_types is set.
8834         * doc/invoke.texi (Option Summary): Add
8835         -feliminate-unused-debug-types.
8836         (Debugging Options): Likewise.
8837
8838 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
8839
8840         * doc/invoke.texi: Change .pch to .gch.
8841         * cppfiles.c (open_file_pch): Likewise.
8842         * gcc.c (default_compilers): Likewise.
8843
8844 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
8845
8846         * floatlib.c: Remove.
8847
8848 2003-02-28  Jason Merrill  <jason@redhat.com>
8849
8850         * stor-layout.c (variable_size): Leave a "minus 1" outside the
8851         SAVE_EXPR.
8852
8853 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
8854
8855         * config/rs6000/power4.md: Add compare bypass.
8856
8857 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
8858
8859         * config/netbsd.h: Update copyright years.
8860         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
8861         -pthread is specified on the command line.
8862
8863 2003-02-28  Dale Johannesen <dalej@apple.com>
8864
8865         * loop.c (struct movable): Add insert_temp, shrink savemode.
8866         (scan_loop): Accept invariants that require copying; mark as
8867         insert_temp.
8868         (combine_movables): Don't combine insert_temp movables.
8869         (move_movables): Insert copies for insert_temp movables.
8870         Don't record the info based on regno for insert_temp's.
8871
8872 2003-02-28  Joel Sherrill <joel@OARcorp.com>
8873
8874         PR 9638/other
8875         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
8876         this constant defaults to 1.
8877
8878 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
8879
8880         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
8881
8882 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
8883
8884         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
8885         ARMv5e processor, not just for XScale.  Instructions are predicable.
8886         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
8887
8888 2003-02-28  Nick Clifton  <nickc@redhat.com>
8889
8890         * config/arm/arm.c (note_invalid_constants): Change parameter type
8891         from bool to int.
8892
8893 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
8894
8895         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
8896         test of bit 7.
8897         (*tst_extzv_memqi_1_n): Likewise.
8898         (a peephole2): New.
8899
8900 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
8901
8902         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
8903         #ifndef __mips16.
8904
8905 2003-02-28  Jan Hubicka  <jh@suse.cz>
8906
8907         * combine.c (gen_lowpart_for_combine): Update handling of
8908         subregs_of_mode
8909         * flow.c (life_analysis, mark_used_regs): Likewise.
8910         * regclass.c (subregs_of_mode): Turn into single bitmap.
8911         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
8912         dealing with subregs_of_mode
8913         * regs.h (subregs_of_mode): Update prototype.
8914
8915 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
8916
8917         * emit-rtl.c (set_reg_attrs_for_parm): New function.
8918         * rtl.h (set_reg_attrs_for_parm): New exported function.
8919         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
8920         set_reg_attrs_from_mem.
8921
8922 2003-02-27  Roger Sayle  <roger@eyesopen.com>
8923             Zack Weinberg <zack@codesourcery.com>
8924
8925         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
8926
8927 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
8928
8929         * reload1.c (sext_for_mode): Remove.
8930         (reload_cse_move2add): Use trunc_int_for_mode instead of
8931         sext_for_mode.
8932         (move2add_note_store): Likewise.
8933         Reset register information if we see a set in non-integer
8934         mode.
8935
8936 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
8937
8938         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
8939         option.
8940         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
8941         * config/rs6000/aix51.h: Same.
8942         * config/rs6000/aix52.h: Same.
8943         * config/rs6000/power4.md: Additional VMX bypasses.
8944
8945 2003-02-27   Geert Bosch <bosch@gnat.com>
8946
8947         * toplev.c (print_version): Add indentation for GGC heuristics and
8948         output after printing version information.
8949
8950 2003-02-27  James E Wilson  <wilson@tuliptree.org>
8951
8952         * combine.c (simplify_comparison): Require integral mode when
8953         permuting SUBREG with AND.
8954
8955 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
8956
8957         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
8958
8959 2003-02-27  Nick Clifton  <nickc@redhat.com>
8960
8961         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
8962         deleted when cirrus instructions were added.
8963
8964 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
8965
8966         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
8967         POSIX thread support by default.
8968
8969 2003-02-27  Roger Sayle  <roger@eyesopen.com>
8970
8971         * config/i386/cygwin.h: Don't include any other files directly.
8972         * config/i386/mingw32.h: Don't include cygwin.h directly.
8973         * config.gcc (cygwin, mingw32, uwin): Instead make these files
8974         explicit in the tm_files variable.
8975
8976 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
8977
8978         * config/rs6000/rs6000.md: Add TI constant splitter.
8979
8980 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
8981
8982         * builtins.c (purge_builtin_constant_p): Handle subreg of
8983         constant_p_rtx too.
8984
8985         * function.c (assign_stack_local_1): Truncate constant added to
8986         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
8987
8988 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
8989
8990         * config.gcc: Add power4 to PowerPC with_cpu list.
8991
8992 2003-02-26  Jan Hubicka  <jh@suse.cz>
8993
8994         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
8995
8996 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8997
8998         * gcov-dump.c (print_prefix): Fix signedness warning.
8999         * gcov-io.h (struct counter_section, struct counter_section_data): New.
9000         (struct function_info): n_arc_counts field removed, n_counter_sections,
9001         counter_sections fields added.
9002         (struct gcov_info): arc_counts, n_arc_counts fields removed,
9003         n_counter_sections, counter_sections fields added.
9004         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
9005         profile sections.
9006         * profile.h (MAX_COUNTER_SECTIONS): New.
9007         (struct section_info): New.
9008         (struct profile_info): count_instrumented_edges,
9009         count_edges_instrumented_now fields removed, n_sections, section_info
9010         fields added.
9011         (find_counters_section): Declare.
9012         * profile.c (struct function_list): count_edges field removed,
9013         n_counter_sections, counter_sections fields added.
9014         (set_purpose, label_for_tag, build_counter_section_fields,
9015         build_counter_section_value, build_counter_section_data_fields,
9016         build_counter_section_data_value, build_function_info_fields,
9017         build_function_info_value, build_gcov_info_fields,
9018         build_gcov_info_value): New static functions.
9019         (find_counters_section): New function.
9020         (instrument_edges, get_exec_counts, compute_branch_probabilities,
9021         branch_prob, create_profiler): Modified to support multiple profile
9022         sections.
9023
9024 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9025
9026         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
9027         is 8 * STACK_BOUNDARY.
9028         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
9029
9030 2003-02-26  Michael Matz  <matz@suse.de>
9031
9032         * ra-colorize.c (merge_moves): Fix list handling.
9033
9034 2003-02-26  Nick Clifton  <nickc@redhat.com>
9035
9036         * config/arm/arm.c (is_load_address): Rename to...
9037         (arm_memory_load_p) ... this and make it check for SUBREGs and
9038         constant loads that will be converted into loads from the
9039         minipool.
9040         (is_cirrus_insn): Rename to ...
9041         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
9042         of CIRRUS_NO with CIRRUS_NOT.
9043         (cirrus_reorg): Use renamed functions.
9044         (note_invalid_constants): Change from a void function to bool.
9045         Add an extra parameter, saying whether the fixups should be
9046         pushed.  Return true if fixups are needed.
9047         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
9048         of CIRRUS_NO with CIRRUS_NOT.
9049         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
9050         other floating point co-processors can also affect this.
9051         * config/arm/arm.md ("type" attribute): Add mav_farith and
9052         mav_dmult.  Replace references to "cirrus_type" attribute with
9053         "type".
9054         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
9055         ("cirrus_type" attribute): Delete - use "type" instead.
9056         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
9057         'normal'.
9058
9059 2003-02-25  Jan Hubicka  <jh@suse.cz>
9060
9061         * objc-act.c: Include cgraph.h
9062         (mark_referenced_methods): New function.
9063         (objc_init): Call it.
9064         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
9065
9066         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
9067         mode.
9068
9069         * optabs.c (expand_fix): Do not widen the input operand.
9070
9071         * expr.c (emit_group_store):  Fix crash when converting single
9072         register into complex register.
9073
9074         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
9075         * alias.c: Include timevar.h
9076         (init_alias_analysis):  Set timevar
9077         * jump.c: Include timevar.h
9078         (rebuild_jump_labels):  Set timevar
9079         * regcalss.c: Include timevar.h
9080         (reg_scan):  Set timevar
9081         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
9082
9083 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9084
9085         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
9086
9087         * Makefile.in (loop-unroll.o): New.
9088         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
9089         (unroll_and_peel_loops): Declare.
9090         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
9091         flag_old_unroll_loops.
9092         * loop.c (loop_invariant_p): Ditto.
9093         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
9094         flag_old_unroll_all_loops.
9095         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
9096         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
9097         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
9098         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
9099         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
9100         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
9101         PARAM_MAX_ONCE_PEELED_INSNS): New.
9102         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
9103         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
9104         instead of old one.
9105         (flag_peel_loops): New.
9106         (lang_independent_options): The new flags added.
9107         (rest_of_compilation): Call new unroller.
9108         (process_options): Setup flags for coexistence of old and new unroller.
9109         * doc/invoke.texi: Document new options.
9110         * doc/passes.texi: Document new unroller pass.
9111
9112 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
9113
9114         * fixinc/fixincl.x: Regenerate
9115
9116 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
9117
9118         * function.c (assign_parms): Set reg_attrs for parameters passed in
9119         registers.
9120
9121 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
9122
9123         PR target/9681
9124         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
9125
9126 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
9127
9128         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
9129         pseudo-op.
9130
9131 2003-02-25  Roger Sayle  <roger@eyesopen.com>
9132
9133         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
9134         * cse.c (invalidate_skipped_set):  Likewise.
9135         * integrate.c (subst_constants):  Likewise.
9136         * jump.c (reversed_comparison_code_parts):  Likewise.
9137         * loop.c (canonicalize_condition):  Likewise.
9138         * simplify-rtx.c (simplify_relational_operation):  Likewise.
9139
9140 2003-02-25  Roger Sayle  <roger@eyesopen.com>
9141
9142         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
9143         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
9144         the appropriate macro to define built-in function.
9145         (fmod,fmodf,fmodl): New built-in functions.
9146
9147         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
9148
9149 2003-02-25  Richard Henderson  <rth@redhat.com>
9150
9151         * config/i386/i386.c (function_arg): Pass variable sized
9152         structures correctly on the stack.
9153
9154 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
9155
9156         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
9157         does not reduce the cost of SET.
9158
9159 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9160
9161         PR target/9732
9162         * config/rs6000/rs6000.c (first_reg_to_save): Handle
9163         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
9164         (rs6000_emit_prologue): Likewise.
9165         (rs6000_emit_epilogue): Likewise.
9166         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
9167         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
9168
9169 2003-02-25  Richard Henderson  <rth@redhat.com>
9170
9171         * real.c (real_to_integer2): Force overflow result only for
9172         unsigned overflow.
9173
9174 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
9175
9176         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
9177
9178 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9179             Richard Henderson  <rth@redhat.com>
9180
9181         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
9182         there is no similar load.
9183
9184 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
9185             Richard Henderson  <rth@redhat.com>
9186
9187         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
9188         sched-rgn.c.
9189         (add_forward_dependence): New function prototype.
9190
9191         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
9192         sched-init.h.
9193         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
9194         them to haifa-sched.c.
9195
9196         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
9197         haifa_classify_insn): Move them from sched-rgn.c.
9198
9199         * sched-deps.c (add_dependence): Return flag of creating a new
9200         entry.
9201         (add_forward_dependence): New function.
9202         (compute_forward_dependences): Use the function.
9203
9204         * sched-ebb.c (earliest_block_with_similiar_load): New function.
9205         (add_deps_for_risky_insns): New function.
9206         (schedule_ebb): Call the function.
9207
9208 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
9209
9210         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
9211         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
9212
9213         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
9214         opaque types fail.
9215
9216         * c-typeck.c (comptypes): Change call to vector_types_compatible
9217         to vector_opaque_p.
9218         (convert_for_assignment): Call vector_opaque_p instead of
9219         vector_types_compatible.
9220         (really_start_incremental_init): Disallow initialization of opaque
9221         types.
9222
9223         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
9224         Define TARGET_VECTOR_OPAQUE_P.
9225         (TARGET_INITIALIZER): Same.
9226
9227         * target.h (struct gcc_target): Remove vector_types_compatible.
9228         Add vector_opaque_p.
9229
9230         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
9231         Remove.
9232         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
9233         a vector type.  Change return type to bool.
9234         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
9235         (TARGET_VECTOR_OPAQUE_P): Define.
9236
9237         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
9238         target hook.
9239         Include target.h.
9240         (cp_parser_init_declarator): Fix typo in function comments.
9241
9242 2003-02-25  Jan Hubicka  <jh@suse.cz>
9243
9244         * Makefile.in (lcm.o):  Add dependency on function.h
9245         * lcm.c (function.h): Include.
9246         * i386.c (machine_function, ix86_stack_locals,
9247         * ix86_save_varrargs_registers) : Move to
9248         ...
9249         * i386.h (machine_function, ix86_stack_locals,
9250         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
9251         (ix86_optimize_mode_switching): New.
9252         * i386.md (fix patterns): Set ix86_optimize_mode_switching
9253
9254 2003-02-25  Nick Clifton  <nickc@redhat.com>
9255
9256         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
9257         of fourth arg is 'fndecl' not 'indirect'.  Update comment
9258         describing the function's parameters.
9259
9260 2003-02-24  Jan Hubicka  <jh@suse.cz>
9261
9262         * combine.c (simplify_shift_const):  Fix previous patch.
9263
9264 2003-02-24  Jeff Law  <law@redhat.com>
9265
9266         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
9267         alternative.
9268         (testsi_1, testhi_1, testqi_1): Likewise.
9269
9270 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9271
9272         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
9273         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
9274         * doc/extend.texi (Tru64 Pragmas): Reflect this.
9275
9276         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
9277         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
9278         * fixinc/fixincl.x: Regenerate.
9279         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
9280         testcase.
9281         Fixes PR c/5059, c/6126, other/9671.
9282
9283 2003-02-24  Roger Sayle  <roger@eyesopen.com>
9284
9285         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
9286         from handle_braces in "%{...}".
9287
9288 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9289
9290         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
9291         (prepare_move_operands): Handle TLS operands.
9292         (tls_symbolic_operand): New.
9293         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
9294         (legitimize_pic_address): Do nothing for the TLS symbol.
9295         (sh_encode_section_info): Handle TLS case.
9296         (sh_strip_name_encoding): Drop TLS encoding.
9297         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
9298         * config/sh/sh.h (SH_TLS_ENCODING): Define.
9299         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
9300         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
9301         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
9302         * config/sh/sh.md: Define TLS UNSPEC constants.
9303         (type): Add tls_load.
9304         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
9305         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
9306         ("tls_initial_exec"): New insn.
9307         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
9308         ("load_gbr"): New insn.
9309
9310         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
9311         * configure: Regenerate.
9312
9313 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
9314
9315         PR 9297, PR 9722
9316         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
9317         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
9318         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
9319         (enum block_op_methods): Reorder for better store_expr optimization.
9320         * expr.c (store_expr): Test bit 1 of "want_value" for call param
9321         stores, test bit 0 for original want_value meaning.  Pass
9322         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
9323         recursive calls, and calls to expand_param.
9324         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
9325         expected, set target to 0 rather than to subtarget.  Formatting.
9326
9327 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9328
9329         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
9330
9331 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9332
9333         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
9334         new default behavior.
9335         * ggc-common.c: Include sys/resource.h.
9336         (ggc_rlimit_bound): New function.
9337         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
9338         defaults to account for rlimits.
9339
9340 2003-02-22  Richard Henderson  <rth@redhat.com>
9341
9342         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
9343
9344 2003-02-22  Kelley Cook <kelley@dwhoops.info>
9345
9346         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
9347         (ix86_tune_string): Rename from ix86_cpu_string.
9348
9349 2003-02-22  Kelley Cook <kelleycook@comcast.net>
9350
9351         * config/i386/i386.c: Replace "mcpu" with "mtune".
9352         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
9353         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
9354         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
9355         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
9356
9357 2003-02-23  Andreas Schwab  <schwab@suse.de>
9358
9359         * config.gcc: Delete references to m68k/t-linux and
9360         m68k/t-linux-aout.
9361         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
9362
9363 2003-02-22  Jan Hubicka  <jh@suse.cz>
9364
9365         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
9366         of track scheduling patch.
9367
9368 2003-02-22  Jan Hubicka  <jh@suse.cz>
9369
9370         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
9371         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
9372
9373 2003-02-22  Jan Hubicka  <jh@suse.cz>
9374
9375         * c-decl.c (c_expand_body_1): Fix.
9376
9377 2003-02-22  Jan Hubicka  <jh@suse.cz>
9378
9379         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
9380
9381         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
9382         when not optimizing.
9383         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
9384         when not expensive.
9385         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
9386         optimizing;  Delete trivially dead insns early; fix optimize check.
9387
9388         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
9389         dependency on cgraph.h
9390         * c-decl.c: Include cgraph.h
9391         (finish_function): Update call of tree_inlinable_function_p.
9392         * c-objc-common.c: Include cgraph.h
9393         * cgraph.h: New file.
9394         * cgraphunit.c: New file.
9395         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
9396         (cgraph_nodes, cgraph_n_nodes): Globalize.
9397         (cgraph_finalize_function, cgraph_finalize_compilation_unit
9398         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
9399         Move into cgraphunit.c
9400         * tree-inline.c: Include cgraph.h
9401         * tree-inline.c: Include cgraph.h
9402
9403 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
9404
9405         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
9406         for copying a register.
9407
9408 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
9409
9410         PR other/3782
9411         * toplev.c (process_options): If flag_detailed_statistics is set,
9412         then set time_report as well.
9413
9414         PR c/8828
9415         * jump.c (never_reached_warning): Don't fall through BARRRIER
9416         insns.  Update comments to reflect what the function really does.
9417
9418 2003-02-21  Roger Sayle  <roger@eyesopen.com>
9419
9420         * fold-const.c (omit_one_operand): No longer static.
9421         * tree.h (omit_one_operand): Prototype here.
9422         (div_and_round_double): Keep fold-const.c prototypes together.
9423         * builtins.c (builtin_mathfn_code): Handle binary built-in
9424         funtions, such as "pow" and "atan2".
9425         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
9426         Simplify optimizations using "type" the builtin's return type.
9427
9428 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
9429
9430         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
9431         Fix functionalization typo.
9432
9433         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
9434         in an asm.
9435
9436 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9437
9438         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
9439         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
9440         documentation.
9441         * ggc-common.c: Include params.h
9442         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
9443         init_ggc_heuristics): New functions.
9444         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
9445         init_ggc_heuristics): Prototype.
9446         * toplev.c (print_version):  Output GGC heuristics.
9447         (parse_options_and_default_flags): Call init_ggc_heuristics.
9448
9449 2003-02-22  Jan Hubicka  <jh@suse.cz>
9450
9451         * i386.c (def_builtin):  Special case 64bit builtins.
9452         (MASK_SSE164, MASK_SSE264): New constants.
9453         (builtin_description): Add 64bit builtins.
9454         (ix86_init_mmx_sse_builtins): Likewise.
9455         * i386.h (enum ix86_builtins): Likewise.
9456         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
9457         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
9458         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
9459         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
9460         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
9461         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
9462         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
9463
9464 2003-02-22  Jan Hubicka  <jh@suse.cz>
9465
9466         * i386.c (builtin_description): Add __builtin_ia32_paddq and
9467         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
9468          and __builtin_ia32_psubq128.
9469         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
9470         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
9471         (mmx_adddi3, mmx_subdi3): New.
9472         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
9473         * xmmintrin.h (_mm_movepi64_pi64): New.
9474         (_mm_add_epi64, _mm_sub_epi64): fix.
9475         (_mm_mul_pu16): Rename to...
9476         (_mm_mul_su32): ... this one.
9477
9478         * builtins.c (expand_builtin_expect):  Do not predict
9479         flag_guess_branch_prob is not set.
9480         * c-semantics.c (expand_stmt): Likewise.
9481         * predict.c (predict_insn): Likewise.
9482         * stmt.c (expand_continue_loop): Likewise.
9483         * toplev.c (rest_of_compilation): Do not call
9484         note_prediction_to_br_prob and note_prediction_to_br_prob
9485         when not optimizing.
9486
9487 2003-02-21  Jan Hubicka  <jh@suse.cz>
9488
9489         * cfgrtl.c (commit_edge_insertions):  Call
9490         find_many_sub_basic_block only when some code has been emitted.
9491         (commit_edge_insertions_watch_calls): Bring into sync with
9492         commit_edge_insertions
9493
9494 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
9495
9496         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
9497
9498         * sh.md (binary_sf_op): Use extra constant operand instead of
9499         negating constant operand 4.
9500         * sh.c (sh_expand_binop_v2sf): Supply it.
9501
9502 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
9503
9504         * cpphash.h (struct lexer_state): Add directive_wants_padding.
9505         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
9506         for directives of type INCL.
9507         (glue_header_name, parse_include): Use get_token_no_padding.
9508         * cppmacro.c (replace_args): If directive_wants_padding,
9509         provide padding tokens.
9510
9511 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9512
9513         * config/h8300/h8300.md (a peephole2): New.
9514
9515 2003-02-21  Jan Hubicka  <jh@suse.cz>
9516
9517         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
9518         (commit_edge_insertions): Call find_many_sub_basic_blocks
9519
9520         * reg-stack.c (convert_regs): Cleax aux for blocks.
9521
9522 2003-02-21  Jan Hubicka  <jh@suse.cz>
9523
9524         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
9525
9526 2003-02-21  Glen Nakamura  <glen@imodulo.com>
9527
9528         PR optimization/8613
9529         * builtins.c (expand_builtin): Emit postincrements before expanding
9530         builtin functions.
9531
9532 2003-02-21  Ben Elliston  <bje@redhat.com>
9533
9534         PR other/5634
9535         * doc/install.texi (Configuration): Explain using $HOME instead of
9536         the ~ metacharacter when referring to home directories.
9537
9538 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
9539
9540         * configure.in (TARGET_SYSTEM_ROOT): Set default to
9541         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
9542         '${exec_prefix}' (in addition to the expansion thereof) as
9543         relocatable.
9544         * configure: Rebuilt.
9545
9546 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9547
9548         * config/h8300/h8300.md (addhi3_incdec): Change the name to
9549         *addhi3_incdec.
9550         (addsi3_incdec): Change the name to *addsi3_incdec.
9551
9552 2003-02-20  Roger Sayle  <roger@eyesopen.com>
9553
9554         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
9555
9556 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
9557
9558         PR fortran/9038
9559         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
9560         options to be ignored.
9561         (c_common_decode_option): Ignore them when preprocessing.
9562
9563 2003-02-20  Jan Hubicka  <jh@suse.cz>
9564
9565         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
9566         global variables.
9567         (lang_independent_options):  Add -fsched2-use-superblocks
9568         -fsced2-use-traces.
9569         (rest_of_compilation): Deal with it.
9570         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
9571         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
9572         Declare.
9573         * rtl.h (reg_to_stack):  Update prototype.
9574         * reg-stack.c (reg_to_stack): Return when something has changed;
9575         update liveness when executing after superblock scheduling.
9576
9577         * combine.c (simplify_shift_const):  Simplify few special cases
9578         into constants.
9579
9580 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
9581
9582         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
9583         (add.,subf.,neg.): Change attribute to fast_compare.
9584         All DFA descriptions updated.
9585
9586 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
9587
9588         Change base class access representation.
9589         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
9590         TREE_VIA_PRIVATE): Remove.
9591         (BINFO_BASEACCESSES): New binfo elt.
9592         (BINFO_BASEACCESS): New accessor.
9593         (BINFO_ELTS): Increase.
9594         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
9595         (access_public_node, access_protected_node,
9596         access_private_node): New global nodes.
9597         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
9598         * dbxout.c (dbxout_type): Adjust.
9599         * dwarf2out.c (gen_inheritance_die): Add access parameter.
9600         (gen_member_die): Adjust.
9601         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
9602         (output_type): Adjust.
9603         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
9604
9605         Change base class access representation. Share virtual base
9606         binfos.
9607         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
9608         call.
9609         * cp/class.c (build_base_path): Likewise.
9610         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
9611         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
9612         (make_new_vtable): Adjust.
9613         (force_canonical_binfo_r): Delete.
9614         (force_canonical_binfo): Delete.
9615         (mark_primary_virtual_base): Delete.
9616         (dfs_unshared_virtual_bases): Delete.
9617         (mark_primary_bases): Adjust.
9618         (maybe_warn_about_overly_private_class): Adjust.
9619         (dfs_base_derived_from): Delete.
9620         (base_derived_from): Follow the inheritance chain.
9621         (struct find_final_overrider_data): Add vpath member.
9622         (dfs_find_final_overrider): Adjust.
9623         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
9624         (find_final_overrider): Adjust.
9625         (update_vtable_entry_for_fn): Adjust.
9626         (modify_all_vtables): Adjust.
9627         (walk_subobject_offsets): Adjust.
9628         (layout_nonempty_base_or_field): Adjust.
9629         (layout_empty_base): Remove last parameter. Adjust.
9630         (build_base_field): Adjust.
9631         (build_base_fields): Adjust.
9632         (propagate_binfo_offsets): Remove last parameter. Adjust.
9633         (dfs_set_offset_for_unshared_vbases): Delete.
9634         (layout_virtual_bases): Adjust.
9635         (finish_struct_1): Adjust.
9636         (init_class_processing): Don't init access nodes.
9637         (dfs_get_primary_binfo): Delete.
9638         (get_primary_binfo): Adjust.
9639         (dump_class_hierarchy_r): Remove most derived arg, add IGO
9640         parameter. Adjust.
9641         (dump_class_hierarchy): Adjust.
9642         (finish_vtbls): Adjust.
9643         (get_original_base): Delete.
9644         (build_vtt_inits): Adjust.
9645         (dfs_build_secondary_vptr_vtt_inits): Adjust.
9646         (dfs_ctor_vtable_bases_queue_p): Adjust.
9647         (build_ctor_vtbl_group): Adjust.
9648         (dfs_accumulate_vtbl_inits): Adjust.
9649         (build_vtbl_initializer): Adjust.
9650         (build_vbase_offset_vtbl_entries): Adjust.
9651         (add_vcall_offset_vtbl_entries_1): Adjust.
9652         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
9653         (access_*_node): Remove.
9654         (CANONICAL_BINFO): Delete.
9655         (BINFO_UNSHARED_MARKED): Remove.
9656         (BINFO_MARKED): Set LANG_FLAG_0 directly.
9657         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
9658         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
9659         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
9660         Delete.
9661         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
9662         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
9663         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
9664         Delete.
9665         (BINFO_DEPENDENT_BASE_P): New.
9666         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
9667         index.
9668         (markedp, unmarkedp): Adjust.
9669         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
9670         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
9671         find_vbase_instance, binfo_for_vbase): Delete.
9672         (copied_binfo, original_binfo): Declare.
9673         (finish_base_specifier): Add virtual_p arg.
9674         (unshare_base_binfos): Delete.
9675         (copy_base_binfos): Declare.
9676         (reverse_path): Delete.
9677         * cp/decl.c (xref_basetypes): Access and virtuality passed
9678         differently. Don't copy direct base binfos here. Call
9679         copy_base_binfos.
9680         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
9681         (initialize_vtbl_ptrs): Adjust.
9682         (expand_member_init): Adjust.
9683         * cp/parser.c (cp_parser_base_specifier): Adjust.
9684         * cp/pt.c (instantiate_class_template): Adjust.
9685         (get_template_base_recursive): Adjust.
9686         * cp/rtti.c (get_pseudo_ti_init): Adjust.
9687         (get_pseudo_ti_desc): Adjust.
9688         * cp/tree.c (unshare_base_binfos): Rename to ...
9689         (copy_base_binfos): ... here, reimplement.
9690         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
9691         (reverse_path): Remove.
9692         * cp/typeck.c (get_delta_difference): Adjust error messages.
9693         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
9694         * cp/search.c (lookup_base_r): Adjust.
9695         (dynamic_cast_base_recurse): Adjust.
9696         (canonical_binfo): Remove.
9697         (dfs_canonical_queue): Remove.
9698         (dfs_assert_unmarked_p): Remove.
9699         (assert_canonical_unmarked): Remove.
9700         (shared_marked_p, shared_unmarked_p): Remove.
9701         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
9702         (dfs_access_in_type): Adjust.
9703         (access_in_type): Adjust.
9704         (dfs_accessible_queue_p): Adjust.
9705         (dfs_accessible_p): Adjust.
9706         (is_subobject_of_p_1, is_subobject_of_p): Remove.
9707         (struct lookup_field_info): Remove from_dep_base_p field.
9708         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
9709         (lookup_field_r): Remove dependent base code.
9710         (lookup_member): Likewise.
9711         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
9712         (dfs_unmarked_real_bases_queue_p): Remove.
9713         (dfs_marked_real_bases_queue_p): Remove.
9714         (dfs_skip_vbases): Remove.
9715         (dfs_get_pure_virtuals): Adjust.
9716         (markedp, unmarkedp): Adjust.
9717         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
9718         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
9719         (dfs_unmark): Adjust.
9720         (dfs_get_vbase_types):Remove.
9721         (dfs_build_inheritance_graph_order): Remove.
9722         (get_vbase_types): Remove
9723         (dfs_find_vbase_instance): Remove.
9724         (find_vbase_instance): Remove.
9725         (dfs_debug_unmarkedp): Adjust.
9726         (dependent_base_p): Remove.
9727         (dfs_push_type_decls): Adjust.
9728         (dfs_push_decls): Adjust.
9729         (dfs_no_overlap_yet): Adjust.
9730         (copied_binfo): New function.
9731         (original_binfo): New function.
9732         (binfo_for_vbase): Remove.
9733
9734         Change base class access representation.
9735         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
9736         (add_interface_do): Likewise.
9737
9738 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
9739
9740         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9741         * config/rs6000/power4.md (power4-store,power4-vecstore): New
9742         insn reservations.
9743         (power4-fpstore): Compact.
9744
9745 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9746
9747         * config/h8300/h8300.md (*iorsi3_w): New.
9748
9749 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
9750
9751         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
9752         * rtl.c (reg_note_name): Likewise.
9753         * rtl.h (enum reg_note): Likewise.
9754         * doc/invoke.texi: Likewise.
9755         * doc/rtl.texi: Likewise.
9756
9757 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
9758
9759         * bb-reorder.c (find_traces_1_round): Fix comment typo.
9760
9761 2003-02-19  Roger Sayle  <roger@eyesopen.com>
9762
9763         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
9764         addition in the presence of signaling NaNs.
9765
9766 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
9767
9768         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
9769
9770 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9771
9772         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
9773         ORing with 0xffff??00 with the highest bit of the ?? part set.
9774         (compute_logical_op_length): Update.
9775         (compute_logical_op_cc): Likewise.
9776
9777 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
9778
9779         * bb-reorder.c (find_traces_1_round): Fixed condition for small
9780         destination block with multiple predecessors.
9781         (connect_traces): Check whether the block is a start of trace.
9782
9783 2003-02-19  Jan Hubicka  <jh@suse.cz>
9784
9785         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
9786         * function.c (assign_params): Likewise.
9787         * arm-protos.h (arm_init_cumulative_args): Update prototype.
9788         * arm.c (arm_init_cumulative_args): Update function.
9789         * arm.h (INIT_CUMULATIVE_ARGS): Update.
9790         * avr-protos.h (init_cumulative_args): Update prototype.
9791         * avr.c (init_cumulative_args): Update function.
9792         * avr.h (INIT_CUMULATIVE_ARGS): Update.
9793         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
9794         * d30v.c (d30v_init_cumulative_args): Update function.
9795         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
9796         * frv-protos.h (frv_init_cumulative_args): Update prototype.
9797         * frv.c (frv_init_cumulative_args): Update function.
9798         * frv.h (INIT_CUMULATIVE_ARGS): Update.
9799         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
9800         * pa.h (INIT_CUMULATIVE_ARGS): Update.
9801         * sparc-protos.h (init_cumulative_args): Update prototype.
9802         * sparc.c (init_cumulative_args): Update function.
9803         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
9804         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
9805
9806 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9807
9808         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
9809         (*ashiftsi_sextqi_7): Likewise.
9810
9811 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9812
9813         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
9814         ISO C99 and C++.
9815
9816         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
9817         for C++ on IRIX 6.5.1[89].
9818         * fixinc/tests/base/internal/sgimacros.h: New file.
9819
9820         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
9821         * fixinc/tests/base/internal/wchar_core.h: New file.
9822
9823         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
9824         socklen_t definition.
9825         * fixinc/fixincl.x: Regenerate.
9826         * fixinc/tests/base/sys/socket.h: New file.
9827         Fixes PR libgcj/9652.
9828
9829 2003-02-19  Jan Hubicka  <jh@suse.cz>
9830
9831         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
9832
9833 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
9834
9835         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
9836         align_jumps_max_skip and align_loops_max_skip.
9837
9838 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
9839
9840         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
9841         test size if named section.
9842
9843 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
9844
9845         * expr.c (expand_expr): Use gen_int_mode for the argument
9846         to gen_rtx_MULT.
9847
9848 2003-02-19  Jan Hubicka  <jh@suse.cz>
9849
9850         * i386.md (cosxf2):  Fix conditional.
9851
9852 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9853
9854         * config/h8300/h8300.md (extendqisi2): Change to an expander.
9855         (*extendqisi2_h8300): New.
9856         (*extendqisi2_h8300hs): Likewise.
9857
9858 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9859
9860         * config/h8300/h8300-protos.h: Update the prototype for
9861         split_adds_subs.  Remove the prototypes for
9862         const_int_le_2_operand and const_int_le_6_operand.
9863         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
9864         (const_int_le_2_operand): Remove.
9865         (const_int_le_6_operand): Likewise.
9866         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
9867         for const_int_le_2_operand and const_int_le_6_operand.
9868         * config/h8300/h8300.md: Update all uses of split_adds_subs.
9869         (a peephole2): New.
9870
9871 2003-02-18  Jan Hubicka  <jh@suse.cz>
9872
9873         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
9874         (cgraph_expand_function): Rewrite.
9875
9876 2003-02-18  Matt Austern <austern@apple.com>
9877
9878         * toplev.c, langhooks.c, langhooks-def.h: Move
9879         write_global_declarations from toplev.c to langhooks.c.
9880
9881 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9882
9883         * config/h8300/h8300.c (general_operand_src): Always check
9884         MODE.
9885         (general_operand_dst): Likewise.
9886
9887 2003-02-18  Roger Sayle  <roger@eyesopen.com>
9888
9889         * convert.c (convert_to_real): Also optimize (float)log(x) into
9890         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
9891
9892 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9893
9894         * config/sh/sh.c (unspec_caller_rtx_p): New.
9895         (sh_cannot_copy_insn_p): New.
9896         (TARGET_CANNOT_COPY_INSN_P): New.
9897
9898 2003-02-18  Richard Henderson  <rth@redhat.com>
9899
9900         * c-common.c (handle_used_attribute): Accept static data too.
9901
9902 2003-02-18  Nick Clifton  <nickc@redhat.com>
9903             Aldy Hernandez  <aldyh@redhat.com>
9904
9905         * testsuite/gcc.dg/20030218-1.c: New.
9906
9907         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
9908
9909         * target-def.h (TARGET_INITIALIZER): Add
9910         TARGET_VECTOR_TYPES_COMPATIBLE.
9911         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
9912
9913         * target.h (struct gcc_target): Add field vector_types_compatible.
9914
9915         * c-typeck.c (comptypes): Take into account
9916         TARGET_VECTOR_TYPES_COMPATIBLE.
9917         (convert_for_assignment): Same.
9918
9919         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
9920         (rs6000_spe_vector_types_compatible): New.
9921         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
9922
9923 2003-02-19  Andreas Schwab  <schwab@suse.de>
9924
9925         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
9926         * toplev.c: Include langhooks-def.h.
9927
9928 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
9929
9930         * config/mips/mips.h (enum processor_type): Sort entries
9931         alphabetically.
9932         * config/mips/mips.md (define_attr cpu): Sync with processor_type
9933         enum values, including adding entries that were missing.
9934
9935 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
9936
9937         * sh.c (calc_live_regs): Also check GET_CODE when checking if
9938         initial value for PR_REG is still the PR_REG register.
9939
9940 2003-02-18  Jim Wilson  <wilson@redhat.com>
9941
9942         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
9943         instruction in output template.
9944         (bsp_value): Change output template from string to C code, add %,
9945         before actual instruction.
9946         (flushrs): Mark as not predicable.
9947
9948 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
9949
9950         * inclhack.def (netbsd_bogus_semicolon): New fix.
9951         * fixincl.x: Rebuilt.
9952         * tests/base/ctype.h: Update.
9953
9954 2003-02-18  Roger Sayle  <roger@eyesopen.com>
9955
9956         * fold-const.c (negate_expr_p): New function to determine whether
9957         an expression can be negated cheaply.
9958         (fold) [MINUS_EXPR]: Use it to determine whether to transform
9959         -A - B into -B - A for floating point types.
9960
9961 2003-02-18  Roger Sayle  <roger@eyesopen.com>
9962
9963         * sbitmap.c (sbitmap_resize): New function.
9964         * sbitmap.h (sbitmap_resize): Prototype here.
9965         * recog.c (split_all_insns): Use sbitmap_resize.
9966
9967 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9968
9969         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
9970         insn length.
9971         (extendqisi2): Likewise.
9972         (*extendhisi2_h8300): Likewise.
9973
9974 2003-02-18  Matt Austern <austern@apple.com>
9975
9976         * langhooks.h, langhooks-def.h: introduce new langhook,
9977         final_write_globals, with write_global_declarations as default.
9978         * toplev.c: Move invocation of wrapup_global_declarations from
9979         compile_file to new function, write_global_declarations.  Change
9980         compile_file to use final_write_globals hook.  Change
9981         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
9982         conditional.
9983
9984 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9985
9986         * pa.md: Correct and enhance comment.
9987
9988 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
9989
9990         * gcc.c (validate_switches): Don't scan past closing '}'.
9991
9992 2003-02-18  Ben Elliston  <bje@redhat.com>
9993
9994         PR c++/1607
9995         * doc/extend.texi (Function Attributes): Document the effect of
9996         the C++ "this" parameter on the counting of arguments for the
9997         "format" and "format_arg" attributes.
9998
9999 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
10000
10001         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
10002         (__ev_stdw): Same.
10003         (__ev_stdh): Same.
10004
10005 2003-02-17  Jan Hubicka  <jh@suse.cz>
10006
10007         * recog.c (split_all_insns):  Fix memory overflow.
10008
10009 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
10010
10011         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
10012         (cmphi): Likewise.
10013         (*cmphi_h8300): Likewise.
10014         (*cmphi_h8300hs): Likewise.
10015         (cmpsi): Likewise.
10016         (7 peephole2): Likewise.
10017
10018 2003-02-16  Jan Hubicka  <jh@suse.cz>
10019
10020         * c-typeck.c (build_c_cast):  Fold constant variables into
10021         initial values.
10022
10023 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10024
10025         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
10026         (Binaries): Ditto for Sinix/Reliant Unix.
10027
10028 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
10029
10030         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
10031         not overlap the final result register.
10032
10033 2003-02-16 Arend Bayer <arend.bayer@web.de>
10034            Richard Henderson  <rth@redhat.com>
10035
10036         PR c/8068
10037         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
10038         rearrange mult arguments for less recursion.
10039         (extract_muldiv): New.  Prevent runaway recursion.
10040
10041 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
10042
10043         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
10044         MASK_ALIGN_DOUBLE.
10045
10046 2003-02-15  Roger Sayle  <roger@eyesopen.com>
10047
10048         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
10049         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
10050         (ext_80387_constants_table): Global table of 80387 special constants
10051         guarded by ext_80387_constants_init flag when not initialized.
10052         (init_ext_80387_constants): New function to initialize this table.
10053         (standard_80387_constant_p): Extend to recognize extra 80387
10054         constants, in XFmode, on processors where this is a win.
10055         (standard_80387_constant_opcode): New function to return the
10056         opcode associated with standard_80387_constant_p.
10057         (standard_80387_constant_rtx): New function to return the XFmode
10058         CONST_DOUBLE associated with standard_80387_constant_p.
10059         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
10060
10061         * config/i386/i386-protos.h (standard_80387_constant_opcode):
10062         Prototype here.
10063         (standard_80387_constant_rtx): Likewise.
10064
10065         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
10066         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
10067         *movtf_integer): Simplify using new standard_80387_constant_opcode.
10068
10069 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
10070
10071         * doc/invoke.texi (Optimize Options): Correct @option syntax.
10072
10073 2003-02-15  Richard Henderson  <rth@redhat.com>
10074
10075         * Makefile.in (cfglayout.o): Depend on TARGET_H.
10076         * cfglayout.c: Include target.h.
10077         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
10078         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
10079         * target.h (struct gcc_target): Add cannot_copy_insn_p.
10080
10081         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
10082         (TARGET_CANNOT_COPY_INSN_P): New.
10083         (override_options): Revert 2003-02-08 hack.
10084
10085 2003-02-15  Richard Henderson  <rth@redhat.com>
10086
10087         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
10088         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
10089
10090 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
10091
10092         * config/rs6000/rs6000.h (processor_type): Add PPC440.
10093         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10094         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10095         TARGET_SCHED_VARIABLE_ISSUE): Define.
10096         (rs6000_use_dfa_pipeline_interface): New function.
10097         (rs6000_multipass_dfa_lookahead): New Function.
10098         (rs6000_variable_issue): New function.
10099         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
10100         (rs6000_issue_rate): Add PPC440.
10101         * config/rs6000/rs6000.md (unspec list): Correct typo.
10102         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
10103         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
10104         cmp, delayed_cr, mfcr, mtcr.
10105         (automata_option): Set "ndfa".
10106         (extendMMNN2): Update attributes.
10107         (movcc_internal1): Discourage move to non-cr0.  Update
10108         attributes.
10109         (movMM_update): Update attributes.
10110         (cmpMM_internal): Update attributes.
10111         (sCC CR materialization): Update attributes.
10112         (branch patterns): Do not discourage non-cr0.
10113         (cr logical patterns): Prefer destructive register allocation.
10114         Update attributes.
10115         (movesi_from_cr): Update attribute.
10116         (mtcrf_operation): Update attribute.
10117         (mtcrfsi): Update attribute.
10118         * config/rs6000/40x.md: New file.
10119         * config/rs6000/603.md: New file.
10120         * config/rs6000/6xx.md: New file.
10121         * config/rs6000/7450.md: New file.
10122         * config/rs6000/7xx.md: New file.
10123         * config/rs6000/mpc.md: New file.
10124         * config/rs6000/power4.md: New file.
10125         * config/rs6000/rios1.md: New file.
10126         * config/rs6000/rios2.md: New file.
10127         * config/rs6000/rs64.md: New file.
10128         [Some DFA descriptions based on work by Michael Hayes]
10129
10130 2003-02-15  Richard Henderson  <rth@redhat.com>
10131
10132         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
10133         successors with multiple predecessors.
10134         (connect_traces): Try harder to copy traces of length 1.
10135
10136         * function.h (struct function): Add computed_goto_common_label,
10137         computed_goto_common_reg.
10138         * function.c (free_after_compilation): Zap them.
10139         * stmt.c (expand_computed_goto): Use them to produce one
10140         indirect branch per function.
10141
10142 2003-02-15  Richard Henderson  <rth@redhat.com>
10143
10144         * cfgcleanup.c: Include params.h.
10145         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
10146         too many outgoing edges from a block.
10147         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
10148         * params.def (max-crossjump-edges): New.
10149         * doc/invoke.texi: Document it.
10150
10151 2003-02-15  Richard Henderson  <rth@redhat.com>
10152
10153         * recog.c (split_all_insns): Include new blocks in life update;
10154         do a global life update.
10155
10156 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
10157
10158         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
10159         Update copyright.
10160         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
10161         -mno-cygwin case.
10162
10163 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10164
10165         PR optimization/7702
10166         * reload1.c (reload_cse_simplify_set): Honor
10167         CANNOT_CHANGE_MODE_CLASS.
10168
10169 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
10170
10171         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
10172         function.
10173         * config/mn10300/mn10300-protos.h: Declare it.
10174         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
10175         attribute cc of instructions that may use clr.
10176
10177 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
10178
10179         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
10180         (x - (x & y)) is found.
10181
10182 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10183
10184         * configure.in: Fix typo.
10185         * configure: Regenerate.
10186
10187 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
10188
10189         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
10190
10191 2003-02-13  Adam Nemet  <anemet@lnxw.com>
10192
10193         PR opt/2391
10194         * combine.c: Fix spelling in comment.
10195         (cached_nonzero_bits): New function.
10196         (cached_num_sign_bit_copies): New function.
10197         (nonzero_bits_with_known): New macro.
10198         (num_sign_bit_copies_with_known): New macro.
10199         (nonzero_bits1): Rename from nonzero_bits.  Add three new
10200         arguments.  Change calls from nonzero_bits to
10201         nonzero_bits_with_known.
10202         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
10203         three new arguments.  Change calls from num_sign_bit_copies to
10204         num_sign_bit_copies_with_known.
10205         (nonzero_bits): New macro.
10206         (num_sign_bit_copies): New macro.
10207         (update_table_tick): Don't traverse identical subexpression more
10208         than once.
10209         (get_last_value_validate): Likewise.
10210
10211 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
10212
10213         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
10214         * function.h (struct emit_status): Length of regno_pointer_align
10215         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
10216         not regno_pointer_align_length (i.e. length actually used, not
10217         length as allocated)
10218
10219         * config/i386/i386.c (struct stack_local_entry): New.
10220         (struct machine_function): Replace huge array with alist.
10221         (assign_386_stack_local): Change to match.
10222
10223 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
10224
10225         * inclhack.def (hpux_long_double): Tighten select and add bypass
10226         regexp.
10227         * fixincl.x: Rebuilt.
10228
10229 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
10230
10231         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
10232         edge and block ends with a jump insn it must be simple jump.
10233
10234 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
10235
10236         * Makefile.in (PREPROCESSOR_DEFINES): Add
10237         @TARGET_SYSTEM_ROOT_DEFINE@.
10238         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
10239         is specified or if building a cross compiler.
10240         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
10241         if the sysroot is under $exec_prefix.
10242         * configure: Regenerated.
10243         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
10244         defined.
10245         (struct default_include): Add add_sysroot field.
10246         (cpp_SYSROOT): Declare.
10247         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
10248         field.
10249         (cpp_SYSROOT): New variable.
10250         * cppinit.c (cpp_create_reader): Initialize
10251         CPP_OPTION (pfile, sysroot).
10252         (init_standard_includes): Handle add_sysroot.  Do not
10253         add unrelocated copies of relocated directories.
10254         (COMMAND_LINE_OPTIONS): Add -isysroot.
10255         (cpp_handle_option): Handle -isysroot.
10256         * cpplib.h (struct cpp_options): Add sysroot member.
10257         * gcc.c (The Specs Language): Update description of %I.
10258         (target_system_root_changed): New variable.
10259         (process_command): Conditionalize make_relative_prefix call
10260         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
10261         target_system_root_changed.
10262         (do_spec_1): Add -isysroot to %I.
10263         * doc/invoke.texi (Spec Files): Update description of %I.
10264         * doc/install.texi (--with-sysroot): Update comment about
10265         relocation.
10266
10267 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
10268
10269         * config/h8300/h8300.md (a peephole2): New.
10270
10271 2003-02-13  Robert Lipe <robertlipe@usa.net>
10272             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10273
10274         * doc/install.texi (Specific): Update three SCO-related URLs.
10275
10276 2003-02-13  Andreas Schwab  <schwab@suse.de>
10277
10278         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
10279         Parenthesize properly.
10280         (NPREDECESORS): Parenthesize properly.
10281
10282 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10283
10284         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
10285
10286 2003-02-12  Roger Sayle  <roger@eyesopen.com>
10287
10288         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
10289         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
10290
10291         * reg-stack.c (subst_stack_regs_pat): Add support for binary
10292         UNSPEC instructions (e.g. "fpatan").
10293
10294 2003-02-12  Mike Stump  <mrs@apple.com>
10295
10296         * varray.c (element_size): Remove.
10297         (uses_ggc): Remove.
10298         (element): Add.
10299         (varray_init): Use new interface.
10300         (varray_grow): Use new interface.
10301         (varray_clear): Use new interface.
10302
10303 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
10304
10305         * config/rs6000/spe.h: Add casts to the arguments of the following
10306         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
10307         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
10308         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
10309         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
10310         __ev_get_u16, __ev_get_s16.
10311
10312 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
10313
10314         * config/h8300/h8300.md (a peephole2): New.
10315
10316 2003-02-12  Jan Hubicka  <jh@suse.cz>
10317
10318         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
10319         (OBJS): Add callgraph.o
10320         (callgraph.o): New.
10321         * c-decl.c (expand_body_1): Break out from ...
10322         (expand_body): This one;  change calling convention
10323         (finish_function): Move some of expand_body logic here.
10324         (c_expand_deferred_function): Update call of expand_body
10325         (c_expand_stmt): Use c_expand_body_1.
10326         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
10327         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
10328         * c-tree.h (c_expand_body): Declare.
10329         * callgraph.c: New file.
10330         * flags.h (flag_unit_at_a_time): Declare.
10331         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
10332         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
10333         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
10334         * langhooks.h (struct lang_hooks_for_callgraph): New.
10335         (struct lang_hooks): Add callgraph field.
10336         * toplev.c (flag_unit_at_a_time): New.
10337         (lang_independent_options): Add flag_unit_at_a_time.
10338         (process_options): Disable unit-at-a-time mode for frontends not
10339         supporting callgraph.
10340         * tree-inline.c (typedef struct inline_data): Add "decl"
10341         (expand_call_inline): Update callgraph.
10342         (optimize_inline_calls): Set id.decl.
10343         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
10344         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
10345         cgraph_calls_p): Declare.
10346         * invoke.texi (-funit-at-a-time): Document
10347
10348 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
10349
10350         * config/rs6000/spe.h: Fix misc formatting.
10351         (__ev_create_ufix32_fs): Cast ev argument.
10352         (__ev_create_sfix32_fs): Same.
10353         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
10354         (__ev_get_ufix32_fs_internal): Same.
10355
10356 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
10357
10358         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
10359         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
10360
10361 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
10362
10363         * cpplib.c (do_include_common): Move warnings for
10364         #include_next and #import out to callers.  Use early-return
10365         instead of nested ifs.  Don't do check_eol here.
10366         (parse_include): Do check_eol here with the rest of the
10367         parsing stuff.
10368         (do_include_next, do_import): Now handle warnings.
10369
10370 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10371
10372         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
10373
10374 2003-02-12  Jan Hubicka  <jh@suse.cz>
10375
10376         * predict.c (estimate_probability):  Fix roundoff error.
10377
10378 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
10379
10380         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
10381         (two peephole2): New.
10382
10383 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
10384
10385         * config/h8300/h8300.md (several peephole2): Replace
10386         find_regno_note with peep2_reg_dead_p.
10387
10388 2003-02-11  Richard Henderson  <rth@redhat.com>
10389
10390         * gcse.c (lookup_set): Remove unused argument PAT.  Update
10391         both callers.
10392
10393 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
10394
10395         * diagnostic.c (real_abort): New.
10396         (diagnostic_report_diagnostic): Call real_abort on error.
10397         * diagnostic.h (diagnostic_abort_on_error): New.
10398         (struct diagnostic_context): Add abort_on_error field.
10399         * toplev.c (setup_core_dumping): New.
10400         (decode_d_option): Handle 'H' case.
10401         * doc/invoke.texi (Debugging Options): Document -dH.
10402
10403 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
10404
10405         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
10406         which refers to obsolete directories.
10407
10408 2003-02-11  Richard Henderson  <rth@redhat.com>
10409
10410         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
10411
10412 2002-10-21  Jan Hubicka  <jh@suse.cz>
10413
10414         * i386.c (contains_128bit_aligned_vector_p): New function.
10415         (ix86_function_arg_boundary): Properly align vector modes.
10416
10417 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
10418
10419         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
10420         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
10421         as a SET pattern.
10422
10423 2003-02-11  Roger Sayle  <roger@eyesopen.com>
10424
10425         * builtins.c:  Fix failure caused by commiting wrong patch.
10426
10427 2003-02-11  Dale Johannesen  <dalej@apple.com>
10428         * ra-build.c (compare_and_free_webs):  Relax checking.
10429         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
10430         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
10431
10432 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10433
10434         PR optimization/9651
10435         * rtlanal.c (may_trap_p): Handle FIX.
10436
10437 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
10438
10439         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
10440         * doc/invoke.texi: Extra alias.
10441
10442 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
10443
10444         * config/rs6000/host-darwin.c: Fix comment.
10445
10446 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
10447
10448         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
10449         predicate for mod result.
10450
10451 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10452
10453         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
10454         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
10455         * fixincl.x: Rebuilt.
10456         * tests/base/stdlib.h: Update.
10457         * tests/base/ctype.h: New file.
10458
10459 2003-02-11  Jan Hubicka  <jh@suse.cz>
10460
10461         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
10462
10463 2003-02-11  Richard Henderson  <rth@redhat.com>
10464
10465         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
10466         appropriated as globals.
10467         (ix86_expand_clrstr): Similarly.
10468         * config/i386/i386.md (cmpstrsi): Similarly.
10469
10470 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
10471
10472         * config/h8300/h8300.md (a peephole2): Add a case of 255.
10473
10474 2003-02-11  Roger Sayle  <roger@eyesopen.com>
10475
10476         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
10477         (pow_optab, atan2_optab): Define corresponding macros.
10478         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
10479         * genopinit.c (optabs): Implement pow_optab and atan2_optab
10480         using pow?f3 and atan2?f3 patterns.
10481         * builtins.c (expand_errno_check): New function to update errno
10482         if necessary, split out from expand_builtin_mathfn.
10483         (expand_builtin_mathfn): Use expand_errno_check.
10484         (expand_builtin_mathfn_2): New function to handle expanding binary
10485         math functions, reusing the code in expand_errno_check.
10486         (expand_builtin): Handle the pow and atan2 math built-ins,
10487         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
10488         expand_builtin_mathfn_2.
10489
10490         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
10491
10492 2003-02-11  Jan Hubicka  <jh@suse.cz>
10493
10494         * combine.c (combine_simplify_rtx): Fix folding of
10495         nested float_truncates.
10496
10497 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
10498
10499         * config/h8300/h8300.md (a peephole2): Fix a typo.
10500
10501 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
10502
10503         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
10504         register number.
10505
10506 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
10507
10508         * config/h8300/h8300-protos.h: Add a prototype for
10509         gtuleu_operator.
10510         * config/h8300/h8300.c (gtuleu_operator): New.
10511         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
10512         * config/h8300/h8300.md (a peephole2): New.
10513
10514 2003-02-11  Jan Hubicka  <jh@suse.cz>
10515
10516         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
10517
10518 2003-02-11  Jan Hubicka  <jh@suse.cz>
10519
10520         * predict.c (choose_function_section): Choose sections correctly.
10521
10522 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10523
10524         * reload1.c (first_label_num): New.
10525         (reload): Index offsets_known_at and offsets_at using difference of
10526         label number and first label number.  Don't use offset pointers.
10527         (set_label_offsets, set_initial_label_offsets): Likewise.
10528
10529 2003-02-10  Roger Sayle  <roger@eyesopen.com>
10530
10531         * mips-tfile.c (init_file): Add missing initializers in the
10532         "#ifdef __alpha" case.
10533         (file_offset, max_file_offset): Declare as unsigned long.
10534         (write_varray): Cast to "unsigned long" in comparisons against
10535         either file_offset or max_file_offset.
10536         (write_object): Likewise.
10537         (read_seek): Likewise.
10538         (copy_object): Likewise. Declare "ifd" as int to match its use
10539         in add_ext_symbol, and avoid signed/unsigned conditional warning.
10540
10541 2003-02-10  Nick Clifton  <nickc@redhat.com>
10542             Aldy Hernandez  <aldyh@redhat.com>
10543
10544         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
10545         override options which have been specified on the command line.
10546
10547 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10548
10549         * config/h8300/h8300.md (abssf2): New.
10550         (*abssf2_h8300): Likewise.
10551         (*abssf2_h8300hs): Likewise.
10552
10553 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
10554
10555         * tree.c (build_tree_list):  Fix parameter names in comment.
10556
10557 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
10558
10559         * config/rs6000/ppc64-fp.c: New file.
10560         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
10561
10562 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
10563
10564         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
10565         * bb-reorder.c (make_reorder_chain): Deleted.
10566         (make_reorder_chain_1): Deleted.
10567         (find_traces): New function.
10568         (rotate_loop): New function.
10569         (mark_bb_visited): New function.
10570         (find_traces_1_round): New function.
10571         (copy_bb): New function.
10572         (bb_to_key): New function.
10573         (better_edge_p): New function.
10574         (connect_traces): New function.
10575         (copy_bb_p): New function.
10576         (get_uncond_jump_length): New function.
10577         (reorder_basic_blocks): Use new functions (Software Trace Cache).
10578         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
10579         boundaries.
10580
10581 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
10582
10583         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
10584
10585 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
10586
10587         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
10588         (DECL_LIVE_RANGE_RTL): Remove.
10589
10590 2003-02-10  Nick Clifton  <nickc@redhat.com>
10591
10592         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
10593         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10594         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
10595         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
10596         config/arm/freebsd.h, config/arm/linux-elf.h,
10597         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
10598         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
10599         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
10600         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
10601         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
10602         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
10603         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
10604         and reformat as appropriate.
10605
10606 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10607
10608         * config/h8300/clzsi2.c: Remove.
10609         * config/h8300/ctzsi2.c: Likewise.
10610         * config/h8300/paritysi2.c: Likewise.
10611         * config/h8300/popcountsi2.c: Likewise.
10612         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
10613         ctzsi2, paritysi2, and popcountsi2.
10614
10615 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10616             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
10617
10618         PR c/7741
10619         * c-decl.c (duplicate_decls): Discard the initializer of the
10620         new decl when the types are conflicting.
10621
10622 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
10623
10624         * Makefile.in (sreal.o): Added.
10625         (predict.o): Depends on sreal.h instead of real.h.
10626         * sreal.c: New file.
10627         * sreal.h: New file.
10628         * predict.c: Use sreal.c instead of real.c.
10629
10630 2003-02-10  Nick Clifton  <nickc@redhat.com>
10631
10632         * Contributed support for the Cirrus EP9312 "Maverick"
10633         floating point co-processor.  Written by Aldy Hernandez
10634         <aldyh@redhat.com>.
10635         (config/arm/arm.c): Add Cirrus support.
10636         (config/arm/arm.h): Likewise.
10637         (config/arm/aout.h): Likewise.
10638         (config/arm/arm.md): Likewise.
10639         (config/arm/arm-protos.h): Likewise.
10640         (config.gcc): Likewise.
10641         (doc/invoke.texi): Describe new -mcpu value and new
10642         -mcirrus-fix-invalid-insns switch,
10643         (cirrus.md): New file.
10644
10645 2003-02-10  Jan Hubicka  <jh@suse.cz>
10646
10647         * combine.c (combine_simplify_rtx): Simplify using
10648         (float_truncate (float x)) is (float x)
10649         (float_extend (float_extend x)) is (float_extend x).
10650
10651 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
10652
10653         * calls.c (try_to_integrate): Tidy stack_usage_map access.
10654         (emit_library_call_value_1): Likewise.  Formatting.
10655         (store_one_arg): Likewise.
10656
10657 2003-02-09  Nick Clifton  <nickc@redhat.com>
10658             Aldy Hernandez  <aldyh@redhat.com>
10659
10660         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
10661         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
10662         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
10663         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
10664         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
10665         docs.  Add range test for immediate value.
10666
10667 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
10668
10669         Rename spe_evxor to xorv2si3.
10670         (xorv4hi3): New.
10671         (xorv1di3): New.
10672
10673 2003-02-10  Glen Nakamura  <glen@imodulo.com>
10674
10675         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
10676         tag.
10677
10678 2003-02-10  Jan Hubicka  <jh@suse.cz>
10679
10680         * i386.c (vector_move_operand): New predicate.
10681         (ix86_expand_vector_move): Be happy about 0.
10682         * i386.h (PREDICATE_CODES): Add sse-move_operand.
10683         * i386.md (mov*_internal): Add 'C' alternative.
10684
10685 2003-02-09  Jan Hubicka  <jh@suse.cz>
10686
10687         * i386.md (floathi*): Deal with SSE.
10688
10689 2003-02-09  Jan Hubicka  <jh@suse.cz>
10690
10691         * simplify-rtx.c (simplify_unary_operation,
10692         simplify_binary_operation):  Deal with vector modes
10693         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
10694
10695 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
10696
10697         * toplev.c (rest_of_compilation): Recompute register usage after
10698         split_all_insns.
10699
10700 2003-02-09  Richard Henderson  <rth@redhat.com>
10701
10702         * libgcc-std.ver (__clztf2): New.
10703         (__ctztf2, __popcounttf2, __paritytf2): New.
10704         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
10705         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
10706         adjust code to match the different type sizes.
10707         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
10708         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
10709
10710         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
10711         TImode; select word_mode and twice that.
10712         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
10713         select the modes from float, double, and long double.
10714         (init_optabs): Remove duplicate initializations.
10715
10716 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
10717
10718         * doc/install.texi: Squeeze and streamline section on
10719         testing and regression checking.
10720
10721 2003-02-09  Jan Hubicka  <jh@suse.cz>
10722
10723         * i386.md (ahi?v*3): Set third operand type to TImode.
10724         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
10725
10726         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
10727         integer mode.
10728
10729         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
10730         Change code so they are arithmetic expressions now.
10731         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
10732         simplify_ternary_operation): Deal with VEC_* expressions.
10733
10734         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
10735
10736 2003-02-08  Jan Hubicka  <jh@suse.cz>
10737
10738         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
10739         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
10740         possibly got duplicated.
10741
10742 2003-02-08  Richard Henderson  <rth@redhat.com>
10743
10744         * config/alpha/alpha.c (override_options): Turn off explicit
10745         relocs until post-peep2 code duplication resolved.
10746
10747 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
10748
10749         * optabs.c (expand_unop): Widen clz properly when clz is done
10750         via libcall.
10751
10752 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
10753
10754         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
10755         * config/h8300/crti.asm: Likewise.
10756         * config/h8300/crtn.asm: Likewise.
10757         * config/h8300/ctzsi2.c: Likewise.
10758         * config/h8300/fixunssfsi.c: Likewise.
10759         * config/h8300/h8300-protos.h: Likewise.
10760         * config/h8300/h8300.c: Likewise.
10761         * config/h8300/h8300.h: Likewise.
10762         * config/h8300/h8300.md: Likewise.
10763         * config/h8300/paritysi2.c: Likewise.
10764         * config/h8300/popcountsi2.c: Likewise.
10765         * config/h8300/rtems.h: Likewise.
10766
10767 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10768
10769         * doc/invoke.texi: Documentation for my previous commit.
10770         * doc/passes.texi: Ditto.
10771
10772 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10773
10774         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
10775         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
10776         Declare.
10777         (DLTHE_FLAG_UPDATE_FREQ): New.
10778         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
10779         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
10780         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
10781         fix_bb_placement, fix_bb_placements, place_new_loop,
10782         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
10783         New static functions.
10784         (fix_loop_placement, can_duplicate_loop_p,
10785         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
10786         New functions.
10787
10788         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
10789         unswitch_loops): Declare.
10790         * loop-init.c: New file.
10791         * loop-unswitch.c: New file.
10792         * Makefile.in (loop-init.o, loop-unswitch.o): New.
10793         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
10794         * toplev.c (DFI_loop2): New dump.
10795         (flag_unswitch_loops): New.
10796         (lang_independent_options): Add it.
10797         (rest_of_compilation): Call new loop optimizer.
10798         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
10799
10800 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
10801
10802         * config/h8300/clzsi2.c: New.
10803         * config/h8300/ctzsi2.c: Likewise.
10804         * config/h8300/paritysi2.c: Likewise.
10805         * config/h8300/popcountsi2.c: Likewise.
10806         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
10807
10808 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
10809
10810         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10811         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
10812         (ctzsi2): New pattern.
10813         (ffssi2): Use clz instead of unspec.
10814         (clzdi2): Rename from cntlzd2.
10815         (ctzdi2): New pattern.
10816         (ffsdi2): Use clz instead of unspec.
10817
10818 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
10819
10820         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
10821         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
10822         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10823         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
10824
10825 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
10826
10827         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
10828
10829 2003-02-07  Richard Henderson  <rth@redhat.com>
10830
10831         PR 9226
10832         * gcse.c (local_cprop_find_used_regs): New.
10833         (local_cprop_pass): Use it.
10834
10835 2003-02-07  Fred Fish  <fnf@intrinsity.com>
10836
10837         * mips-tfile.c (parse_def): Parenthesize assignments to fix
10838         precedence bugs.
10839
10840 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
10841
10842         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
10843
10844 2003-02-07  Roger Sayle  <roger@eyesopen.com>
10845
10846         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
10847         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
10848         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
10849         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
10850         builtin functions (and their __builtin_* variants).
10851         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
10852         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
10853         when not optimizing.
10854
10855         * doc/extend.texi: Document new pow and atan2 builtins, and
10856         their float and long double variants.  Realphabetize builtins.
10857
10858 2003-02-07  Jan Hubicka  <jh@suse.cz>
10859
10860         * i386.md (sse2_nandv2di3): Fix.
10861
10862 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
10863
10864         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
10865         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
10866         definition.
10867         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
10868         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
10869
10870 2003-02-07  Jan Hubicka  <jh@suse.cz>
10871
10872         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
10873
10874 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
10875
10876         * cfg.c (dump_flow_info): Add back accidently deleted line.
10877
10878 2003-02-07  Andrey Petrov <petrov@netbsd.org>
10879
10880         * optabs.c (expand_float): Search wider integer modes first.
10881
10882 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
10883
10884         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
10885         based on preprocessor flag.
10886
10887 2003-02-07  Roger Sayle  <roger@eyesopen.com>
10888             Richard Henderson  <rth@redhat.com>
10889
10890         * gcse.c (implicit_sets): New.
10891         (compute_hash_table_work): Include them in hash table.
10892         (find_implicit_sets, fis_get_condition): New.
10893         (one_cprop_pass): Allocate and free implicit_sets; call
10894         find_implicit_sets before building hash table.
10895
10896 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
10897
10898         * config/t-netbsd (USER_H): Revert previous change.
10899
10900 2003-02-07  Gabor Greif  <ggreif@lucent.com>
10901
10902         * doc/c-tree.texi (Namespaces): Fix typo.
10903
10904 2003-02-07  Jan Hubicka  <jh@suse.cz>
10905
10906         * regrename.c (do_replace, find_oldest_value_reg,
10907         copyprop_hardreg_forward_1): Update register attributes.
10908
10909 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
10910
10911         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
10912         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
10913         variables starting with underscore.
10914         (struct unit_usage): New structure.
10915         (unit_usages, cycle_alt_unit_usages): New global variables.
10916         (check_unit_distribution_in_reserv): Remove it.
10917         (store_alt_unit_usage): New function.
10918         (check_regexp_units_distribution): Rewrite it.
10919
10920 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10921
10922         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
10923         target_cpu_default.
10924         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
10925         if not MASK_NO_SPACE_REGS.
10926         (output_call): Adjust return pointer, don't load new space register
10927         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
10928         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
10929         TARGET_NO_SPACE_REGS is true.
10930         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
10931         conditions.
10932         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
10933         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
10934         true.  Use bve when TARGET_64BIT is true.
10935
10936 2003-02-06  Richard Henderson  <rth@redhat.com>
10937
10938         * combine.c (nonzero_bits): Fix double break.
10939
10940 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
10941             Richard Henderson <rth@redhat.com>
10942
10943         PR c/9530
10944         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
10945         from functions that return a float to functions that don't.
10946
10947 2003-02-06  Jan Hubicka  <jh@suse.cz>
10948
10949         * i386.c (x86_inter_unit_moves): New variable.
10950         (ix86_secondary_memory_needed): Fix 64bit case, honor
10951         TARGET_INTER_UNIT_MOVES
10952         * i386.h (x86_inter_unit_moves): Declare.
10953         (TARGET_INTER_UNIT_MOVES): New macro.
10954         * i386.md (movsi_1): Cleanup constraints; disable
10955         when not doing inter-unit moves.
10956         (movsi_1_nointernunit): New.
10957         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
10958         (movdi_1_rex64_nointerunit): New.
10959         (mivsf_1): disable when not doing inter-unit moves.
10960         (movsf_1_nointerunit): New.
10961
10962         * basic-block.h (inside_basic_block_p):  Declare.
10963         * cfgbuild.c (inside_basic_block_p): Make global.
10964         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
10965         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
10966         update CFG.
10967         (fix_basic_block_boundaries, add_missing_bbs): New.
10968         (rank): Use profile.
10969         (scheudle_ebbs): Rely on CFG; update coments.
10970
10971 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
10972
10973         * Makefile.in (host_hook_obj): New.
10974         (OBJS): Add $(host_hook_obj).
10975         (host_default.o): New rule.
10976         * config.gcc (host_hook_obj): New, default to host-default.o.
10977         (powerpc-*-darwin*): Use host-darwin.o.
10978         (out_host_hook_obj): New.
10979         * configure: Regenerate.
10980         * configure.in: Print information about out_host_hook_obj, substitute
10981         into output files.
10982         * host-default.c: New file.
10983         * hosthooks.h: New file.
10984         * toplev.c (general_init): Call host_hooks.extra_signals.
10985         * config/rs6000/host-darwin.c: New file.
10986         * config/rs6000/x-darwin: New file.
10987         * doc/hostconfig.texi: Add documentation for new host hook.
10988         Rearrange existing documentation.
10989
10990 2003-02-05  Roger Sayle  <roger@eyesopen.com>
10991
10992         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
10993         with *targetm.delegitimize_address.
10994         (rtl_for_decl_location): Likewise.
10995         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
10996         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
10997
10998         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
10999         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
11000         prototype.
11001         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
11002         i386_simplify_dwarf_addr.  Made static.  Prototyped.
11003         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
11004         i386_simplify_dwarf_addr to ix86_delegitimize_address.
11005         (ix86_find_base_term): Likewise.
11006         (maybe_get_pool_constant): Likewise.
11007
11008         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
11009         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
11010         prototype.
11011         * config/s390/s390.c (s390_delegitimize_address): Renamed from
11012         s390_simplify_dwarf_addr.  Made static.  Prototyped.
11013         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
11014
11015 2003-02-05  Richard Henderson  <rth@redhat.com>
11016
11017         PR c/8602
11018         * integrate.c (output_inline_function): Reset input_filename
11019         and lineno from the decl before rest_of_compilation.
11020
11021 2003-02-05  Richard Henderson  <rth@redhat.com>
11022
11023         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11024         (CTZ_DEFINED_VALUE_AT_ZERO): New.
11025         * doc/rtl.texi, doc/tm.texi: Document them.
11026
11027         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
11028         of the value at zero properly.
11029         * fold-const.c (tree_expr_nonnegative_p): Likewise.
11030         * simplify-rtx.c (simplify_unary_operation): Likewise.
11031
11032         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11033         (CTZ_DEFINED_VALUE_AT_ZERO): New.
11034
11035         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
11036         (TARGET_EXPAND_BUILTIN): Remove.
11037         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
11038         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
11039         (enum arm_builtins): Remove.
11040         * config/arm/arm.md (UNSPEC_CLZ): Remove.
11041         (clzsi2): Rename from clz; use clz instead of unspec.
11042         (ctzsi2): New.
11043         * config/arm/arm-protos.h: Update.
11044
11045 2003-02-05  Jan Hubicka  <jh@suse.cz>
11046
11047         * i386-protos.h (x86_emit_floatuns):  Declare.
11048         * i386.c (x86_emit_floatuns): New global function.
11049         * i386.md (floatunssisf2, floatunsdisf2,
11050         floatunsdidf2):  New patterns.
11051
11052 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11053
11054         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
11055
11056 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
11057
11058         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
11059           config/ia64/linux.h
11060
11061 2003-02-05  Roger Sayle  <roger@eyesopen.com>
11062
11063         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
11064
11065 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
11066
11067         PR optimization/8555
11068         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
11069         instead of aborting.
11070
11071 2003-02-04  Richard Henderson  <rth@redhat.com>
11072
11073         * config/i386/i386.md (UNSPEC_BSF): Remove.
11074         (ffssi2): Split into cmove and no_cmove insns and splitters;
11075         lose pentium float trick for now.
11076         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
11077         (ctzsi2, clzsi2, bsr): New.
11078
11079 2003-02-04  Richard Henderson  <rth@redhat.com>
11080
11081         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
11082         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
11083         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
11084         (ffsdi2): Use popcount instead of unspec.
11085         (popcountdi2): Rename from *popcnt.
11086         (ctzdi2, clzdi2, getf_exp_tf): New.
11087
11088 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11089
11090         * genconfig.c (main): Generate CC0_P.
11091         * rtl.h (CC0_P): Remove.
11092
11093 2003-02-04  Richard Henderson  <rth@redhat.com>
11094
11095         * libgcc2.h, libgcc2.c (__ffsSI2): New.
11096         (__ffsDI2): Rename from __ffsdi2.
11097         * mklibgcc.in (lib2funcs): Add _ffssi2.
11098
11099 2003-02-04  Richard Henderson  <rth@redhat.com>
11100
11101         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
11102         rounds with a "bit table" lookup.
11103
11104 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11105
11106         * reload.c (find_reloads): Do not use the mode specified in the insn
11107         pattern as reload mode for address operands.  Do not generate optional
11108         reloads for operands where a mandatory reload was already pushed.
11109
11110 2003-02-04  Richard Henderson  <rth@redhat.com>
11111
11112         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
11113         builtins instead of inline assembly.
11114
11115 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11116
11117         PR c/9376
11118         * libgcc2.c (__subvdi3): Fix typo.
11119
11120 2003-02-04  Jan Hubicka  <jh@suse.cz>
11121
11122         * i386.md (movti_rex64):  Fix constraint.
11123
11124 2003-02-04  Jan Hubicka  <jh@suse.cz>
11125
11126         * i386.md (vector push splitters):  Fix typo in resolving conflict.
11127
11128 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
11129
11130         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
11131
11132 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
11133
11134         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
11135         for recent libstdc++.  Remove formatting cruft.
11136
11137 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
11138
11139         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
11140         attribute even if input file name is absolute, but one of the
11141         includes is relative.
11142
11143 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
11144
11145         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
11146         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
11147         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
11148
11149 2003-02-03  Richard Henderson  <rth@redhat.com>
11150
11151         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
11152         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
11153         return type to "int".  Shuffle declarations and undef int trap.
11154         * libgcc2.h: Remove their declarations.
11155         * optabs.c (expand_unop): Force outmode to int for bitops.
11156
11157 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
11158
11159         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
11160         coprocessor registers before floating-point registers.
11161         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
11162         to account for a previously removed register.
11163         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
11164         Delete unused macros.
11165
11166 2003-02-03  Jan Hubicka  <jh@suse.cz>
11167
11168         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
11169         (mov*_internal): Fix predicates; require one of operands to not be
11170         memory.
11171         (SSE?MMX move expanders):  Fix predicates; force one of operands to
11172         register.
11173         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
11174         (movups/movupd/movdqu patterns): Force one of operands to not be
11175         memory.
11176
11177 2003-02-03  Roger Sayle  <roger@eyesopen.com>
11178
11179         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
11180         takes a single rtx and returns it unmodified.
11181         * hooks.h (hook_rtx_rtx_identity): Prototype here.
11182         * target.h (struct gcc_target): Add "delegitimize_address"
11183         field to target structure.
11184         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
11185         for delegitimize_address target using hook_rtx_rtx_identity.
11186         (TARGET_INITIALIZER): Initialize delegitimize_address field
11187         using TARGET_DELEGITIMIZE_ADDRESS macro.
11188         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
11189         extensions of constant pool references.  Use delegitimize_address
11190         to undo the obfuscation of "-fpic".
11191         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
11192
11193         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
11194         i386_simplify_dwarf_addr.
11195         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
11196         (maybe_get_pool_constant): Likewise.
11197
11198 2003-02-03  Jan Hubicka  <jh@suse.cz>
11199
11200         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
11201
11202 2003-02-03  Jan Hubicka  <jh@suse.cz>
11203
11204         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
11205
11206 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11207
11208         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
11209         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
11210
11211 2003-02-02  Andreas Schwab  <schwab@suse.de>
11212
11213         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
11214
11215 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
11216
11217         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
11218         (epilogue_insns): Likewise.
11219
11220 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11221
11222         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
11223
11224 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11225
11226         * pa-protos.h (attr_length_millicode_call): Remove second argument.
11227         (attr_length_indirect_call, attr_length_indirect_call,
11228         attr_length_save_restore_dltp): New prototypes.
11229         * pa.c (attr_length_millicode_call): Remove second argument.  Check
11230         INSN_ADDRESSES_SET_P in distance calculation.
11231         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
11232         INSN_ADDRESSES.
11233         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
11234         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
11235         Call attr_length_call directly.
11236         (attr_length_indirect_call, output_indirect_call,
11237         attr_length_save_restore_dltp): New functions.
11238         * pa.md (attr_length_millicode_call): Drop second argument from all
11239         patterns.
11240         (return_internal_pic): Delete.
11241         (return_external_pic): Remove use of PIC register and pic operand and
11242         flag checks.
11243         (epilogue): Use return_internal for both normal and pic code.
11244         (call, call_value): Emit new 32-bit pic patterns for symref and
11245         indirect calls.  Remove uses for arg pointer and pic register.
11246         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
11247         call_reg_pic_post_reload, call_val_symref_pic,
11248         call_val_symref_pic_post_reload, call_val_reg_pic,
11249         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
11250         Implement define_split and define_peephole2 patterns for pre reload
11251         patterns.
11252         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
11253         call_value_internal_reg_64bit): Shorten names.
11254         (all call patterns): Explicitly indicate registers used and clobbered.
11255         Use attr_length_indirect_call and attr_length_save_restore_dltp for
11256         attribute length calculation.  Move code generation for indirect calls
11257         to output_indirect_call.
11258         (sibcall, sibcall_value): Don't restore PIC register.
11259         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
11260         register retore.
11261
11262 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11263
11264         * doc/install.texi (Testing): Simplify and compress instructions
11265         concerning Dejagnu.
11266
11267 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11268
11269         * collect2.c (pexecute_pid): Rename to pid.
11270         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
11271         pid.
11272
11273 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
11274
11275         * doc/extend.texi (Function Attributes): Remove documentation
11276         for PowerPC Windows NT function attributes..
11277
11278 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
11279
11280         * dwarf2out.c (gen_type_die): Check for typedefs before calling
11281         for TYPE_MAIN_VARIANT.
11282
11283 2003-02-01  Richard Henderson  <rth@redhat.com>
11284
11285         * libgcc2.c: Include auto-host.h.
11286         (ATTRIBUTE_HIDDEN): New.
11287         (__clz_tab): Don't declare here for clz and ctz.
11288         (__clzsi2, __clzdi2): Use count_leading_zeros.
11289         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
11290         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
11291         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
11292         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
11293
11294 2003-02-01  Richard Henderson  <rth@redhat.com>
11295
11296         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
11297         to the conditional.
11298         (ashlsi3_1_zext splitter): Likewise.
11299
11300 2003-02-01  Richard Henderson  <rth@redhat.com>
11301
11302         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
11303         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
11304         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
11305         return type to Wtype.
11306
11307         * libgcc-std.ver (GCC_3.4): Fix inheritance.
11308
11309         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
11310         expander input constraint.
11311
11312 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11313
11314         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
11315         OTI_parity.
11316         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
11317         * optabs.c (widen_clz, expand_parity): New.
11318         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
11319         for libcalls to clz, ctz, popcount, and parity.
11320         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
11321         parity_optab, and set up libfunc handlers.
11322         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
11323         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
11324         __popcount_tab): New.
11325         * libgcc2.h: Declare them.
11326         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
11327         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
11328         and parity_optab.
11329         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
11330         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
11331         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
11332         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
11333         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
11334         BUILT_IN_PARITYLL): New.
11335         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
11336         and add optab argument.
11337         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
11338         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
11339         * expr.c (expand_expr): Handle them.
11340         * fold-const.c (tree_expr_nonnegative_p): Likewise.
11341         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
11342         * reload1.c (eliminate_regs): Handle them.
11343         (elimination_effects): Likewise.
11344         * function.c (instantiate_virtual_regs_1): Likewise
11345         * genattrtab.c (check_attr_value): Likewise.
11346         * simplify-rtx.c (simplify_unary_operation): Likewise.
11347         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
11348         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
11349         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
11350         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
11351         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
11352         __builtin_arm_clz.
11353         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
11354         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
11355         * doc/extend.texi (Other Builtins): Add new builtins.
11356         * doc/md.texi (Standard Names): Add new patterns.
11357
11358 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
11359
11360         * reload.c: Revert 2003-01-31 change.
11361
11362 2003-02-01  Jan Hubicka  <jh@suse.cz>
11363
11364         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
11365
11366 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
11367
11368         * flags.h (flag_volatile): Remove declaration.
11369         (flag_volatile_global, flag_volatile_static): Likewise.
11370         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
11371         * toplev.c (flag_volatile): Remove definition.
11372         (flag_volatile_global, flag_volatile_static): Likewise.
11373         (f_options): Remove corresponding entries here.
11374         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
11375         or flag_volatile_static.
11376         * doc/invoke.texi: Remove documentation of -fvolatile,
11377         -fvolatile-global and -fvolatile-static.
11378
11379 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11380
11381         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
11382         updating of total_code_bytes from prologue to epilogue.
11383
11384 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
11385
11386         * reload.c (find_reloads): Do not use the mode specified in the insn
11387         pattern as reload mode for address operands.  Do not generate optional
11388         reloads for operands where a mandatory reload was already pushed.
11389         Generate optional reloads only in the final pass though find_reloads.
11390         (have_replacement_p): New function.
11391
11392 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11393
11394         * doc/install.texi (Testing): Remove a reference to our obsolete
11395         /testresults web pages and strip redundant information concerning
11396         test results.
11397         (Binaries): Refer to Microsoft Windows instead of listing all
11398         possible variants.
11399
11400 2003-02-01  Jan Hubicka  <jh@suse.cz>
11401
11402         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
11403         RTL chain.
11404
11405         * combine.c (simplify_set): Reverse order of ragumetns to
11406         REG_CANNOT_CHANGE_MODE_P
11407         * df.c (df_def_record_1): Likewise.
11408         * recog.c (register_operand): Likewise.
11409         * simplify-rtx.c (simplify_subreg): Likewise.
11410         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
11411         CANNOT_CHANGE_MODE_CLASS.
11412         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
11413         Likewise.
11414         * reload.c (push_reload): Likewise.
11415         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
11416         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
11417         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
11418         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
11419         * mips.c (mips_cannot_change_mode_class): Update.
11420         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
11421         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
11422         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
11423         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
11424         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
11425         * sh.c (sh_cannot_change_mode_class): Update.
11426         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
11427         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
11428
11429 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
11430
11431         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
11432         change to LINK_COMMAND_SPEC in gcc.c.
11433
11434 2003-01-31  Jan Hubicka  <jh@suse.cz>
11435
11436         PR c/9506
11437         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
11438
11439 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11440
11441         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
11442         duplicated code.
11443
11444 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
11445
11446         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
11447         (BINFO_ELTS): New #define.
11448         * stor-layout.c (finalize_record_size): Don't set them.
11449         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
11450         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
11451         (BINFO_LANG_ELTS): New #define.
11452         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
11453         * java/class.c (make_class): Use BINFO_ELTS.
11454         (set_super_info): Likewse.
11455         (add_interface_do): Likewise.
11456         * objc/objc-act.c (start_class): Use BINFO_ELTS.
11457
11458 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
11459
11460         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
11461         (times): Don't ever declare if not HAVE_TIMES.
11462         (clock): Don't ever declare if not HAVE_CLOCK.
11463
11464 2003-01-30  Richard Henderson  <rth@redhat.com>
11465
11466         * flow.c (update_life_info): Zap life info after cleanup_cfg.
11467         (regno_uninitialized): Use correct live at function entry set.
11468         (regno_clobbered_at_setjmp): Likewise.
11469
11470         * expr.c (store_expr): Promote all MEM intermediates to regs.
11471
11472 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
11473
11474         * config/arm/arm.c: Fix comment typos.
11475         * config/arm/arm.h: Likewise.
11476         * config/arm/netbsd-elf.h: Likewise.
11477         * config/arm/netbsd.h: Likewise.
11478
11479 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
11480
11481         * gengtype.c (struct walk_type_data): Add needs_cast_p.
11482         (walk_type): Set needs_cast_p in walk_type_data.
11483         (write_types_process_field): Supply casts when required to suppress
11484         warnings.
11485         (write_root): Cast gt_pch_n_S to suppress warning.
11486         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
11487         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
11488         when they might exist.
11489         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
11490         insn-conditions.o, and rs6000.o.
11491
11492 2003-01-30  Richard Henderson  <rth@redhat.com>
11493
11494         * ggc-page.c (G.context_depth_allocations): New.
11495         (G.context_depth_collections): New.
11496         (alloc_page): Set G.context_depth_allocations.
11497         (ggc_collect): Set G.context_depth_collections.
11498         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
11499         (ggc_pop_context): Early exit for no allocations or collections.
11500
11501 2003-01-30  Richard Henderson  <rth@redhat.com>
11502
11503         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
11504
11505 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
11506
11507         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
11508         size, the link register is always saved if any other register is
11509         saved.
11510
11511 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
11512
11513         * config/h8300/h8300-protos.h: Update the prototype for
11514         compute_plussi_cc.
11515         (cpp_reader): Declare before it is used.
11516         * config/h8300/h8300.c (compute_plussi_cc): Change the return
11517         type to int.
11518         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
11519         see an unknown H8 variant.
11520
11521 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
11522
11523         PR target/9316
11524         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
11525         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
11526         * config/rs6000/t-rtems: New file. multilib variants to match OS.
11527         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
11528         rs6000/t-ppcgas so we get the desired multilibs.
11529
11530 2003-01-30  Nick Clifton  <nickc@redhat.com>
11531
11532         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
11533         when popping saved IP register off the stack.
11534
11535 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
11536
11537         * config/rs6000/aix43.h: Fix comment typos.
11538         * config/rs6000/aix51.h: Likewise.
11539         * config/rs6000/aix52.h: Likewise.
11540         * config/rs6000/altivec.h: Likewise.
11541         * config/rs6000/rs6000.c: Likewise.
11542         * config/rs6000/rs6000.h: Likewise.
11543         * config/rs6000/rs6000.md: Likewise.
11544         * config/rs6000/spe.md: Likewise.
11545
11546 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
11547
11548         * c-common.c (builtin_define_float_constants): Define
11549         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
11550
11551 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
11552
11553         * config/sh/lib1funcs.asm: Fix comment typos.
11554         * config/sh/linux.h: Likewise.
11555         * config/sh/sh.c: Likewise.
11556         * config/sh/sh.md: Likewise.
11557
11558 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
11559
11560         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
11561
11562 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
11563
11564         * config/fp-bit.h (__make_dp): Declare if TMODES.
11565
11566 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
11567
11568         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
11569         general_operand_src and general_operand_dst.
11570
11571 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
11572
11573         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
11574         Return true for variable sized types.
11575         (rs6000_va_arg): Handle variable sized types passed by reference
11576         on non-SVR4 ABI.
11577
11578 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
11579
11580         * arm.c (arm_legtimize_address): New function.
11581         * arm-protos.h (arm_legtimize_address): Add prototype.
11582         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
11583         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
11584         do ... while (0)
11585
11586 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
11587
11588         PR bootstrap/9296
11589         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
11590         depended on it being defined until now.
11591
11592 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
11593
11594         PR target/9295
11595         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
11596         RTEMS code knows which C++ initialization style the toolset
11597         configuration is using.
11598
11599 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
11600
11601         PR bootstrap/9293
11602         * config/m68k/t-crtstuff: Replace spaces with tabs, add
11603          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
11604
11605 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
11606
11607         PR bootstrap/9292
11608         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
11609         RTEMS threads.
11610         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
11611
11612 2003-01-29  Nick Clifton  <nickc@redhat.com>
11613
11614         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
11615         not $(srcdir).
11616
11617 2003-01-29  Andrew Haley  <aph@redhat.com>
11618
11619         * tree-inline.c (walk_tree): Add CHAR_TYPE.
11620
11621 2003-01-29  Jan Hubicka  <jh@suse.cz>
11622
11623         * i386.md (subdi3_carry_rex64): Fix typo.
11624
11625 2003-01-28  Stan Shebs  <shebs@apple.com>
11626
11627         * coretypes.h (cpp_reader): Forward declare struct.
11628         * c-pragma.h (cpp_reader): Remove forward declaration.
11629         * hashtable.h (cpp_reader): Likewise.
11630         * scan.h (cpp_reader): Likewise.
11631         * tree.h (cpp_reader): Likewise.
11632         * config/darwin-protos.h (cpp_reader): Likewise.
11633         * config/arm/arm-protos.h (cpp_reader): Likewise.
11634         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
11635         struct cpp_reader in prototypes.
11636
11637 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
11638
11639         * doc/install.texi: Add documentation for installation into
11640         tooldirs and with DESTDIR.
11641
11642 2003-01-28  Richard Henderson  <rth@redhat.com>
11643
11644         * config.gcc (ia64*-*-aix*): Remove.
11645         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
11646         * config/ia64/unwind-aix.c: Remove file.
11647
11648 2003-01-28  Andreas Schwab  <schwab@suse.de>
11649
11650         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
11651         register.
11652         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
11653         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
11654         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
11655         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
11656         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
11657         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
11658         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
11659
11660 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
11661
11662         * combine.c (nonzero_bits): Fix check for negative divide operands.
11663
11664 2003-01-28  Richard Henderson  <rth@redhat.com>
11665
11666         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
11667         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
11668
11669 2003-01-28  Richard Henderson  <rth@redhat.com>
11670
11671         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
11672
11673         * config/cris/cris.c (cris_address_cost): Make static.
11674         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
11675         * config/cris/cris.h (ADDRESS_COST): Remove.
11676         * config/cris/cris-protos.h: Update.
11677
11678 2003-01-23  Mike Stump  <mrs@apple.com>
11679
11680         * regclass.c (init_reg_autoinc): New function.
11681         (regclass): Move initialization of forbidden_inc_dec_class from
11682         here...
11683         (init_regs): to here.  Avoids reinitialization for each function,
11684         saving compilation time.
11685
11686 2003-01-28  Jason Merrill  <jason@redhat.com>
11687
11688         * cpplib.h (struct cpp_options): Add warn_deprecated field.
11689         * cppinit.c (cpp_create_reader): Turn it on by default.
11690         * c-opts.c (c_common_decode_option): Set it.
11691         * cpplib.c (do_pragma_once): Only complain about #pragma once
11692         if warn_deprecated is set.
11693
11694 2003-01-28  Dale Johannesen  <dalej@apple.com>
11695
11696         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
11697         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
11698         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
11699
11700 2003-01-28  Richard Henderson  <rth@redhat.com>
11701
11702         * target.h (targetm.address_cost): New.
11703         * target-def.h (TARGET_ADDRESS_COST): New.
11704         (TARGET_RTX_COSTS): Uncomment.  Oops.
11705         * cse.c (address_cost): Use new target hook.
11706         (default_address_cost): New.
11707         * output.h (default_address_cost): Declare.
11708         * hooks.c (hook_int_rtx_0): New.
11709         * hooks.h (hook_int_rtx_0): Declare.
11710         * loop.c (combine_givs_p): Remove if 0 code.
11711         * system.h (ADDRESS_COST): Poison.
11712
11713         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
11714         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
11715         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
11716         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
11717         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
11718         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
11719         config/xtensa/xtensa.c, config/xtensa/xtensa.h
11720         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
11721         (ADDRESS_COST): Remove.
11722
11723         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
11724         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11725         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11726         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
11727         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
11728         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
11729         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
11730         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
11731         config/mips/mips.c, config/mips/mips.h,
11732         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11733         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
11734         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
11735         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
11736         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
11737         config/vax/vax.c, config/vax/vax.h
11738         (foo_address_cost): Make static.
11739         (TARGET_ADDRESS_COST): New.
11740         (ADDRESS_COST): Remove.
11741
11742         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
11743         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
11744         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
11745         config/stormy16/stormy16.h
11746         (ADDRESS_COST): Move code ...
11747         (foo_address_cost): ... here.
11748         (TARGET_ADDRESS_COST): New.
11749
11750         * config/m32r/m32r.c (m32r_address_cost): Remove.
11751         * config/m32r/m32r-protos.h: Update.
11752
11753         * config/mmix/mmix.c (mmix_address_cost): Remove.
11754         * config/mmix/mmix-protos.h: Update.
11755
11756         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
11757         mn10300_address_cost; move unsig allocation ...
11758         (mn10300_address_cost): ... here.
11759         (TARGET_ADDRESS_COST): New.
11760         * config/mn10300/mn10300-protos.h: Update.
11761         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
11762
11763         * doc/tm.texi: Update.
11764
11765 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
11766
11767         * haifa-sched.c (schedule_insn): Return necessary cycle advance
11768         after issuing the insn.
11769         (rank_for_schedule): Make a insn with /S the highest priority
11770         insn.
11771         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
11772         (choose_ready): Check SCHED_GROUP_P.
11773         (schedule_block): Advance cycle after issuing insn if it is
11774         necessary.  Don't reorder insns if there is an insn with /S.
11775         (set_priorities): Ignore schedule groups.
11776
11777         * sched-deps.c (remove_dependence, group_leader): Remove the
11778         functions.
11779         (add_dependence): Ignore schedule groups.
11780         (set_sched_group_p): Don't make copy of dependencies from previous
11781         insn of the schedule group.  Add anti-dependency to the previous
11782         insn of the schedule group.
11783         (compute_forward_dependences): Ignore schedule groups.
11784
11785         * sched-ebb.c (init_ready_list): Ignore schedule groups.
11786
11787         * sched-rgn.c (init_ready_list): Ditto.
11788         (can_schedule_ready_p): Ditto.
11789
11790 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
11791
11792         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
11793         register to another one.
11794
11795 2003-01-28  Richard Henderson  <rth@redhat.com>
11796
11797         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
11798
11799 2003-01-28  Roger Sayle  <roger@eyesopen.com>
11800
11801         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
11802
11803 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
11804
11805         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
11806         class contains a floating-point register, return the size of the
11807         mode in half words.
11808
11809 2003-01-28  Jan Hubicka  <jh@suse.cz>
11810
11811         * i386.c (ix86_carry_flag_operator):  New predicate.
11812         (fcmov_operator): Fix whitespace.
11813         (ix86_expand_carry_flag_compare):  Deal with floating point.
11814         (ix86_expand_int_movcc): Deal with fp; update insn expansion
11815         (ix86_expand_int_addcc): Likewise.
11816         (ix86_expand_strlensi_unroll_1): likewsie.
11817         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
11818         * i386.md (add?i_carry_rex64): Use new predicate.
11819         (sub?i3_carry_rex64): Likewise.
11820         (x86_mov?icc_0_m1*): Likewise.
11821
11822 2003-01-28  Andreas Schwab  <schwab@suse.de>
11823
11824         * cfgloopmanip.c (create_preheader): Initialize src to avoid
11825         warning.
11826
11827         * expmed.c (emit_store_flag): Fix cast to avoid sign
11828         comparison warning.
11829
11830         * combine.c (force_to_mode): Add cast to fix warning when
11831         STORE_FLAG_VALUE is negative.
11832
11833 2003-01-27  Richard Henderson  <rth@redhat.com>
11834
11835         * Makefile.in (cse.o): Depend on TARGET_H.
11836         * cse.c (rtx_cost): Use targetm.rtx_costs.
11837         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
11838         * doc/tm.texi: Update.
11839
11840         * target.h (targetm.rtx_costs): New.
11841         * target-def.h (TARGET_RTX_COSTS): New.
11842         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
11843         * hooks.h: Update.
11844
11845         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
11846         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
11847         * config/alpha/alpha.h (PROCESSOR_MAX): New.
11848         (CONST_COSTS, RTX_COSTS): Remove.
11849
11850         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
11851         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
11852         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
11853         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
11854         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
11855         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
11856         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
11857         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
11858         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
11859         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
11860         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
11861         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
11862         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
11863         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
11864         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
11865         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
11866         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
11867         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
11868         config/v850/v850.c, config/v850/v850.h,
11869         config/xtensa/xtensa.c, config/xtensa/xtensa.h
11870         (CONST_COSTS, RTX_COSTS): Move code ...
11871         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
11872
11873         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
11874         (arm_rtx_costs, TARGET_RTX_COSTS): New.
11875         * config/arm/arm-protos.h: Update.
11876         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
11877
11878         * config/avr/avr.h (CONST_COSTS): Move code ...
11879         * config/avr/avr.c (avr_rtx_costs): ... here.
11880         (default_rtx_costs): Make static.
11881         * config/avr/avr-protos.h: Update.
11882
11883         * config/h8300/h8300.c (const_costs): Make static.
11884         (h8300_and_costs, h8300_shift_costs): Likewise.
11885         * config/h8300/h8300-protos.h: Update.
11886
11887         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
11888         (CONST_COSTS): Move code ...
11889         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
11890         default_rtx_costs; update for signature change.
11891         * config/ip2k/ip2k-protos.h: Update.
11892
11893         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
11894         (CONST_COSTS): Move code ...
11895         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
11896         (TARGET_RTX_COSTS): New.
11897         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
11898         * config/m68hc11/m68hc11-protos.h: Update.
11899
11900         * config/m68k/m68k.c (const_int_cost): Make static.
11901         * config/m68k/m68k-protos.h: Update.
11902
11903         * config/mcore/mcore.c (mcore_const_costs): Make static.
11904         (mcore_and_cost, mcore_ior_cost): Likewise.
11905         * config/mcore/mcore-protos.h: Update.
11906
11907         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
11908         (mmix_rtx_cost_recalculated): Remove.
11909         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
11910         * config/mmix/mmix-protos.h: Update.
11911
11912         * config/sh/sh.c (shiftcosts): Make static.
11913         (addsubcosts, andcosts, multcosts): Likewise.
11914         * config/sh/sh-protos.h: Update.
11915
11916         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
11917         (sparc_rtx_costs): Make static; update for change in signature.
11918         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
11919         * config/sparc/sparc-protos.h: Update.
11920
11921         * config/v850/v850.c (const_costs): Make static.
11922         * config/v850/v850-protos.h: Update.
11923
11924         * config/vax/vax.h (RTX_COSTS): Remove.
11925         (CONST_COSTS): Move code ...
11926         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
11927         from vax_rtx_cost.
11928         (vax_rtx_costs, TARGET_RTX_COSTS): New.
11929
11930 2003-01-27  Richard Henderson  <rth@redhat.com>
11931
11932         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
11933         * config/vax/vax-protos.h: Update.  Really.
11934
11935 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
11936
11937         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
11938         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
11939         zero if no hardware floating point.
11940         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
11941         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
11942         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
11943         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
11944         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
11945         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
11946         even FP registers on N32 and N64.
11947         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
11948         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
11949         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
11950         even-register-like alignment to 128-bit arguments.
11951         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
11952         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
11953         on N32 or N64.
11954         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
11955         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
11956         (TPBIT): Set to tp-bit.c.
11957         (tp-bit.c): Create out of fp-bit.c.
11958
11959 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11960
11961         * c-parse.in: Remove '%expect 32' directive in objc mode.
11962
11963 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
11964
11965         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
11966         (LIBGCOV): New variable.
11967         (libgcc.mk): Add LIBGCOV.
11968         (LIBGCC_DEPS): Add libgcov.c.
11969         (libgcov.a): New target.
11970         (clean): Remove libgcov.a.
11971         (install-libgcc): Do libgcov too.
11972         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
11973         with libgcov.a.
11974         * libgcc2.c (L_gcov): Move into ...
11975         * libgcov.c: ... here. New file.
11976         * mklibgcc.in: Add libgcov rules.
11977         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
11978
11979         * doc/invoke.texi (profile-arcs, test-coverage): Update and
11980         clarify.
11981
11982         * profile.c (index_counts_file): Remove duplicate check for open file.
11983
11984 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
11985
11986         * gcc/doc/invoke.texi (Optimization Options): Group together
11987         optional and experimental flags.  Move trapv and bounds-check
11988         out of this section.  Group floating point flags together.
11989         (Code Gen Options): Move trapv and bounds-check to here.
11990
11991 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
11992
11993         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
11994
11995 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
11996
11997         PR optimization/9090
11998         * function.c (purge_addressof_1): After pushing an addressed register
11999         onto the stack, simplify the result.
12000
12001 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12002
12003         * doc/extend.texi: Fix typo.
12004
12005 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12006
12007         * doc/cppopts.texi: Fix typo.
12008         * doc/objc.texi: Likewise.
12009         * doc/passes.texi: Likewise.
12010
12011 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
12012
12013         * real.c (ibm_extended_format): Add 53 to minimum exponent.
12014         (encode_ibm_extended): Adjust.
12015
12016 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
12017
12018         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
12019         timevar_id enumerations.
12020
12021 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12022
12023         * combine.c: Fix formatting.
12024
12025 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12026
12027         * doc/gccint.texi: Update the copyright.
12028
12029 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12030
12031         * doc/cpp.texi: Fix typos.
12032         * doc/extend.texi: Likewise.
12033         * doc/gty.texi: Likewise.
12034         * doc/install.texi: Likewise.
12035         * doc/passes.texi: Likewise.
12036         * doc/rtl.texi: Likewise.
12037         * doc/tm.texi: Likewise.
12038
12039 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12040
12041         * config/ia64/fde-glibc.c: Fix comment typos.
12042         * config/ia64/hpux.h: Likewise.
12043         * config/ia64/ia64.c: Likewise.
12044         * config/ia64/ia64.h: Likewise.
12045         * config/ia64/unwind-ia64.c: Likewise.
12046
12047 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
12048
12049         * config/i386/i386-modes.def: Fix comment typos.
12050         * config/i386/i386.c: Likewise.
12051         * config/i386/i386.md: Likewise.
12052
12053 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
12054
12055         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
12056         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
12057         ASM_FINISH_DECLARE_OBJECT before defining it.
12058         * toplev.c (rest_of_decl_compilation):  Don't define
12059         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
12060         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
12061         parameters for DWARF2 targets because they _are_ used.
12062
12063 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
12064
12065         * fp-bit.h: Define macros for TFmode floating-point constants
12066         in IBM-extended TFmode types.
12067         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
12068         widths.
12069         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
12070         TFmode type.
12071
12072         * config/fp-bit.h: Define macros for TFmode floating-point
12073         constants in IEEE quad TFmode type.  Declare functions according
12074         to L_ macros.
12075         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
12076         (TFtype, TItype, UTItype): Define if TMODES is defined.
12077         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
12078         (F_T_BITOFF, D_T_BITOFF): Define.
12079         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
12080         guaranteed to be wide enough.
12081         * config/fp-bit.c: Check for L_ macros for tf functions.
12082         (__thenan_tf): New.
12083         (nan): Adjust.
12084         (pack_d, unpack_d): Support IEEE 854 quad type.
12085         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
12086         from FRAC_NBITS, FRAC_BITS and NGARDS.
12087         (usi_to_float): Cast constants to be shifted to fractype
12088         instead of assuming long long is wide enough.
12089         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
12090
12091 2003-01-26  Andreas Jaeger  <aj@suse.de>
12092
12093         * df.c: Remove prototype of unused function df_regno_rtl_debug.
12094
12095 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
12096
12097         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
12098         (DBBIT_FUNCS): Added _df_to_tf.
12099         (TPBIT_FUNCS): New.
12100         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
12101         (LIBGCC_DEPS): Added TPBIT.
12102         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
12103
12104         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
12105         been able to move the result to target.
12106
12107         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
12108         for the appropriate mode.
12109
12110         * calls.c (emit_library_call_value_1): Handle return values
12111         in a PARALLEL.
12112
12113         * rtl.c (get_mode_alignment): Moved to...
12114         * stor-layout.c: ... here.
12115
12116         * print-rtl.c (print_rtx): Don't print MEM details in
12117         GENERATOR_FILEs.
12118
12119 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
12120
12121         * df.h: Update comments, tidy formatting.
12122         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
12123         REVERSE, UNION, INTERSECTION.  All uses updated.
12124         (OLD_DF_INTERFACE): Remove.
12125         (struct insn_info): Remove commented out insn field.
12126         * df.c: Update comments, tidy formatting.
12127         (df_def_table_realloc): Remove.
12128
12129
12130 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
12131
12132         * calls.c (save_fixed_argument_area): Tidy.
12133         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
12134         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
12135         call chain loop at 1 if !try_tail_call.  Formatting.
12136         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
12137         Use save_fixed_argument_area and restore_fixed_argument_area.
12138
12139 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12140
12141         * df.c (df_uses_record): Handle CC0.
12142
12143 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
12144
12145         * reload.c (maybe_memory_address_p): New function.
12146         (find_reloads_address): Use it instead of memory_address_p.
12147
12148 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12149
12150         * final.c (shorten_branches): Align the address of code label
12151         when computing initial lengths and addresses.
12152
12153 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
12154
12155         * config/m68hc11/m68hc11.md: Fix a comment typo.
12156
12157 2003-01-25  Andreas Jaeger  <aj@suse.de>
12158
12159         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
12160         TARGET_MACHO.
12161
12162 2003-01-25  Roger Sayle  <roger@eyesopen.com>
12163
12164         * gcse.c (bypass_last_basic_block): New global variable.
12165         (bypass_block):  Use redirect_edge_and_branch_force to redirect
12166         fall-through edges.  Use bypass_last_basic_block to determine
12167         which blocks have valid PRE information.
12168         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
12169
12170 2003-01-25  Jan Hubicka  <jh@suse.cz>
12171
12172         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
12173
12174 2003-01-25  Jan Hubicka  <jh@suse.cz>
12175                               Eric Botcazou <ebotcazou@libertysurf.fr>
12176         PR opt/8492
12177         * gcse.c (one_cprop_pass): Delete unreachable blocks.
12178
12179 2003-01-25  Richard Henderson  <rth@redhat.com>
12180
12181         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
12182         from ia64_aix_select_rtx_section.
12183         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
12184         instead of saving and restoring flag_pic.
12185         (ia64_rwreloc_unique_section): Similarly.
12186         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
12187         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
12188         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
12189         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
12190
12191 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
12192
12193         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
12194         comment.
12195
12196 2003-01-25  Richard Henderson  <rth@redhat.com>
12197
12198         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
12199
12200 2003-01-25  Kelley Cook <kelleycook@comcast.net>
12201
12202         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
12203
12204 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
12205
12206         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
12207         type for bitmaps.  Use unsigned long.
12208         (nBITMAP_WORD_BITS): New macro.
12209         (BITMAP_WORD_BITS): New macro.
12210         (rest of file): Use it.
12211         * bitmap.c: Use it.
12212
12213 2003-01-25  Richard Henderson  <rth@redhat.com>
12214
12215         2002-02-19  Robert Lipe  <robertlipe@usa.net>
12216         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
12217
12218 2003-01-25  Roger Sayle  <roger@eyesopen.com>
12219
12220         * builtins.c (purge_builtin_constant_p): Scan insn stream
12221         sequentially rather than by basic block.
12222         * function.c (purge_addressof): Simplify test with INSN_P.
12223
12224 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
12225
12226         * combine.c (simplify_comparison, case AND): Remove a redundant test.
12227
12228 2003-01-25  Roger Sayle  <roger@eyesopen.com>
12229
12230         * function.h (struct function): New field calls_constant_p.
12231         (current_function_calls_constant_p): New macro for above.
12232         * function.c (prepare_function_start): Initialize calls_eh_return
12233         and calls_constant_p.
12234         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
12235         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
12236         when the current_function_calls_constant_p.
12237         * integrate.c (expand_inline_function): Set calls_constant_p if
12238         the function being inlined has calls_constant_p set.
12239
12240 2003-01-25  Roger Sayle  <roger@eyesopen.com>
12241
12242         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
12243         optimizing, even if flag_gcse is true.
12244         * toplev.c (rest_of_compilation): purge_builtin_constant_p
12245         only needs to be called when "optimize > 0 && flag_gcse".
12246
12247 2003-01-25  Roger Sayle  <roger@eyesopen.com>
12248
12249         * stmt.c (emit_case_bit_tests): New routine to implement suitable
12250         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
12251         (case_bit_test_cmp): New comparison function for "qsort" to order
12252         case_bit_tests by decreasing number of destination nodes.
12253         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
12254         (expand_end_case_type): Use emit_case_bit_tests to implement
12255         suitable switch statments.
12256         (CASE_USE_BIT_TESTS): New target macro to disable the above.
12257         * Makefile.in (stmt.o): Add dependency on optab.h.
12258         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
12259
12260 2003-01-23  Andreas Schwab  <schwab@suse.de>
12261
12262         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
12263         __do_global_ctors_aux hidden global and don't put it in
12264         .init_array.
12265         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
12266         instead so that it comes first.
12267
12268 2003-01-25  Jan Hubicka  <jh@suse.cz>
12269
12270         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
12271         subreg is read/modify.
12272
12273 2003-01-25  Jan Hubicka  <jh@suse.cz>
12274
12275         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
12276         do libcall for large blocks.
12277         * i386.md (comi patterns): Set type to ssecomi.
12278         (sse2_unpck?pd): Fix mode of vec_select.
12279
12280         * cse.c: Include except.h
12281         (cse_set_around_loop):  Do not create new basic blocks.
12282         * Makefile.in (cse.o): Add dependnecy on except.h
12283
12284 2003-01-25  Jan Hubicka  <jh@suse.cz>
12285
12286         * builtins.c (fold_trunc_transparent_mathfn): New function.
12287         (fold_builtin): Use it.
12288         * convert.c (convert_to_real): Re-enable code to convert
12289         math functions; add support for floor familly functions.
12290
12291 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12292
12293         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
12294         dependencies on coretypes.h and $(TM_H).
12295
12296 2003-01-25  Jan Hubicka  <jh@suse.cz>
12297
12298         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
12299
12300 2003-01-24  Stuart Hastings  <stuart@apple.com>
12301
12302         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
12303
12304 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12305
12306         * config/c4x/c4x.md (UNSPEC_BU): New constants.
12307         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
12308         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
12309         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
12310         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
12311         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
12312         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
12313         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
12314
12315 2003-01-24  Jan Hubicka  <jh@suse.cz>
12316
12317         * emit-rtl.c (reg_attrs_htab): New static variable.
12318         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
12319         functions.
12320         (reg_rtx): Do not maintain regno_decl.
12321         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
12322         set_mem_attrs_from_reg): New global function.
12323         (init_emit): Do not initialize regno_decl.
12324         (init_emit_once): initialize reg_attrs_htab.
12325         * final.c (alter_subreg): Do not replace REG by SUBREG.
12326         (gen_mem_expr_from_op): Improve output.
12327         (output_asm_operands): Likewise.
12328         * function.c (assign_params): Do not set REGNO_DECL.
12329         * function.h (struct function): Kill regno_decl.
12330         (REGNO_DECL): Kill.
12331         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
12332         * print_rtl.c (print_rtx): Output REG information.
12333         * regclass.c (reg_scan_mark_refs): Update attrs.
12334         * reload1.c (alter_reg): Likewise.
12335         * simplify_rtx.c (simplify_subreg): Likewise.
12336         * stmt.c (expand_decl): Likewise.
12337         * rtl.def (REG): Add new field.
12338         * rtl.h (struct reg_attrs): New.
12339         (rtunion_def): At rtreg.
12340         (X0MEMATTR): Add checking.
12341         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
12342         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
12343         Declare.
12344         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
12345
12346 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
12347
12348         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
12349         (xtensa_emit_call, print_operand): Fix printf format strings
12350         to avoid compile warnings.
12351         (xtensa_function_prologue, xtensa_function_epilogue): Change type
12352         of "size" argument to HOST_WIDE_INT to fix compile warnings.
12353         * config/xtensa/xtensa-protos.h
12354         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
12355
12356 2003-01-24  Jan Hubicka  <jh@suse.cz>
12357
12358         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
12359         (implicit_built_in_decls): New global array.
12360         (mathfn_built_in): New global function.
12361         (fold_trunc_transparent_mathfn): New static function
12362         (expand_builtin_strstr, expand_bultin_strchr,
12363         expand_builtin_strpbrk, expand_builtin_strcpy,
12364         expand_builtin_strncpy, expand_bultin_strcmp,
12365         expand_bultin_strncat, expand_builtin_fputs): Use
12366         implicint_built_in_decls.
12367         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
12368         * builtins.def: Fix comments.
12369         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
12370         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
12371         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
12372         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
12373         (DEF_C99_C90RES_BULTIN): New.
12374         (*f, *l builtins): Update.
12375         * c-common.c (DEF_BUILTIN): Initialize implicit array.
12376         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
12377         * convert.c (strip_float_extensions): New global function.
12378         * tree.h (DEF_BUILTIN): Accept 10 arguments.
12379         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
12380         Declare.
12381         * java/builtins.c (define_builtin): Handle implicit.
12382         (DEF_BUILTIN): Update.
12383         * tm.texi (TARGET_C99_FUNCTIONS): Document.
12384         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
12385         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
12386         when using glibc2.
12387
12388 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
12389
12390         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
12391         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
12392         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
12393         * config/xtensa/crti.asm: New file.
12394         * config/xtensa/crtn.asm: New file.
12395         * config/xtensa/t-elf: New file.
12396         * config/xtensa/t-linux: New file.
12397         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
12398         Move various CFLAGS settings to new t-elf file.
12399
12400 2003-01-24  Richard Henderson  <rth@redhat.com>
12401
12402         PR optimization/4382
12403         * tree-inline.c (find_builtin_longjmp_call_1): New.
12404         (find_builtin_longjmp_call): New.
12405         (inlinable_function_p): Use it.
12406
12407 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12408
12409         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
12410         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
12411         * config/i386/i386.c (function_arg_pass_by_reference): New.
12412         (ix86_va_arg): Support arguments passed by reference.
12413
12414 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12415
12416         * cfgloopanal.c: New file.
12417         * cfgloopmanip.c: New file.
12418         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
12419         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
12420         cfglayout.o): Add dependency on cfgloop.h.
12421         (cfgloop.o): Add flags.h dependency.
12422         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
12423         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
12424         (struct loop, struct loops, flow_loops_find, flow_loops_update,
12425         flow_loops_free, flow_loops_dump, flow_loop_dump,
12426         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
12427         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
12428         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
12429         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
12430         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
12431         find_common_loop, verify_loop_structure): Declarations moved to ...
12432         * cfgloop.h: New file.
12433         * bb-reorder.c (reorder_basic_blocks): Modified.
12434         * cfglayout.c: Include cfgloop.h.
12435         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
12436         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
12437         (break_superblocks): New static function.
12438         (cfg_layout_finalize): Use it.
12439         (cfg_layout_split_block): New function.
12440         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
12441         fields.
12442         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
12443         changed.
12444         (cfg_layout_split_block): Declare.
12445         * cfgloop.c: Include cfgloop.h and flags.h.
12446         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
12447         get_loop_body): Avoid signed versus unsigned comparison warnings.
12448         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
12449         loop_latch_edge): Modified.
12450         (verify_loop_structure): Modified to use flags stored in loop structure;
12451         check irreducible loops.
12452         (cancel_loop, cancel_loop_tree): New functions.
12453         (estimate_probability): Use loop analysis code for predictions.
12454         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
12455         warnings.
12456         * doloop.c: Include cfgloop.h.
12457         * loop.c: Include cfgloop.h.
12458         * predict.c: Include cfgloop.h.
12459         * toplev.c: Include cfgloop.h.
12460         * unroll.c: Include cfgloop.h.
12461         * tracer.c (tracer): Modified.
12462
12463 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
12464
12465         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
12466
12467 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
12468
12469         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
12470         * configure: Regenerate.
12471
12472         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
12473         (tls_symbolic_reference_mentioned_p): Add prototype.
12474         (s390_tls_get_offset): Add prototype.
12475         (emit_pic_move): Remove prototype, replace by ...
12476         (emit_symbolic_move): .. this new prototype.
12477
12478         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
12479         (tls_model_chars): New global variable.
12480         (s390_encode_section_info): Encode TLS model.
12481         Use targetm.binds_local_p to check for local symbols.
12482         (s390_strip_name_encoding): New function.
12483         (TARGET_STRIP_NAME_ENCODING): Define.
12484
12485         (get_thread_pointer): New function.
12486         (legitimize_tls_address): New function.
12487         (legitimize_address): Call it.
12488         (emit_pic_move): Remove, replace by ...
12489         (emit_symbolic_move): ... this new function.
12490
12491         (larl_operand): Handle TLS operands.
12492         (legitimate_constant_p): Likewise.
12493         (s390_decompose_address): Likewise.
12494         (s390_cannot_force_const_mem): New function.
12495         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12496
12497         (s390_output_symbolic_const): Handle TLS unspecs.
12498         (print_operand): New code 'J'.
12499         (machine_function): Add struct member 'some_ld_name'.
12500         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
12501
12502         (enum s390_builtin): New type.
12503         (code_for_builtin_64, code_for_builtin_31): New global variables.
12504         (s390_init_builtins, s390_expand_builtin): New functions.
12505         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12506
12507         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
12508         (ASM_OUTPUT_LABELREF): Define.
12509         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
12510
12511         * config/s390/s390.md: Define TLS UNSPEC constants.
12512         ("movdi", "movsi"): Handle TLS operands.
12513         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
12514         ("*tls_load_64", "*tls_load_31"): New insns.
12515         ("call_value_tls", "call_value_tls_exp"): New expanders.
12516         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
12517         "bas_tls_64", "bas_tls_31"): New insns.
12518
12519 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
12520
12521         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
12522         spe ABI is configured, if requested.
12523
12524 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12525
12526         * doc/passes.texi: Fix typo.
12527
12528 2003-01-24  Andreas Schwab  <schwab@suse.de>
12529
12530         * stor-layout.c (excess_unit_span): Only define if used.
12531
12532 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
12533
12534         * gcc/doc/invoke.texi (Optimization Options): List -O levels
12535         for each optimization flag.
12536
12537 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
12538
12539         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
12540
12541 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12542
12543         * doc/bugreport.texi: Use @command instead of @code for commands.
12544         * doc/collect2.texi: Likewise.
12545         * doc/headerdirs.texi: Likewise.
12546         * doc/invoke.texi: Likewise.
12547         * doc/standards.texi: Likewise.
12548         * doc/tm.texi: Likewise.
12549         * doc/trouble.texi: Likewise.
12550
12551 2003-01-24  Nick Clifton  <nickc@redhat.com>
12552
12553         * config/arm/arm.c (use_return_insn): Do not use a single return
12554         instruction for interrupt handelrs which have to create a stack
12555         frame.
12556         (arm_expand_prologue): Do not pre-bias the return address of
12557         interrupt handlers which create a stack frame.
12558
12559 2003-01-24  Nick Clifton  <nickc@redhat.com>
12560
12561         * Add sh2e support:
12562
12563         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
12564
12565                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
12566                 med_cbranches.  Fix logic in short_cbranches.
12567
12568         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
12569
12570                 * config/sh/sh.md (delay for cbranch): Don't annul delay
12571                 slots on SH2e.
12572                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
12573                 cbranch with unfilled delay slot on SH2e.
12574                 (output_branch): Fill with a nop the delay slot of a
12575                 branch that required a delay slot but didn't get one.
12576
12577         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
12578
12579                 * doc/invoke.texi (SH options): Document -m2e.
12580                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
12581                 * config/sh/lib1funcs.asm: Likewise.
12582                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
12583                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
12584                 not __sh1__.
12585                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
12586                 SH2E up.
12587                 (SH3E_BIT): Renamed to...
12588                 (SH_E_BIT): ... this.  Replace all uses.
12589                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
12590                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
12591                 (TARGET_SWITCHES): Added 2e.
12592                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
12593                 (processor_type): Added PROCESSOR_SH2E.
12594                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
12595                 TARGET_SH2E, except in sqrtsf2_i.
12596                 (attribute cpu): Added sh2e.
12597                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
12598                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
12599                 * config.gcc: Add sh2e target support.
12600
12601 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
12602
12603         Rename -W to -Wextra.
12604         * c-decl.c:  Update comments.
12605         * c-typeck.c:  Likewise.
12606         * flags.h:  Likewise.
12607         * function.c:  Likewise.
12608         * stmt.c:  Likewise.
12609         * toplev.c:  Update comments.
12610         (W_options):  Add 'extra'.
12611         (display_help):  Remove '-W'.
12612         (decode_W_option):  Special warn_uninitialized treatment in the case
12613         of -Wextra.
12614         * doc/invoke.texi:  Update with new entries.
12615
12616 2003-01-23  Richard Henderson  <rth@redhat.com>
12617
12618         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
12619         in no-else-block case.  Add commentary.
12620
12621 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12622
12623         * configure.in: Revert last change.
12624
12625 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12626
12627         * configure.in: Don't include ansidecl.h in tconfig.h.
12628         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
12629         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
12630         ATTRIBUTE_UNUSED.
12631
12632         * configure: Regenerate.
12633
12634 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12635
12636         PR java/6748
12637         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
12638         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
12639         kernels.
12640
12641 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12642
12643         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
12644
12645 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
12646
12647         * genattrtab.c (write_attr_get): Mark 'insn' paramter
12648         as ATTRIBUTE_UNUSED.
12649
12650 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
12651
12652         * arm.c (thumb_base_register_rtx_p): New function.
12653         (thumb_index_register_rtx_p): New function.
12654         (thumb_legitimate_address_p): New function.
12655         (thumb_legitimate_offset_p): New function.
12656         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
12657         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
12658         definitions.
12659         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
12660         (THUMB_LEGITIMATE_OFFSET): Delte.
12661         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
12662         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
12663         (thumb_legitimate_offset_p): Likewise.
12664
12665 2003-01-23  Andreas Schwab  <schwab@suse.de>
12666
12667         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
12668
12669 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12670
12671         * fixinc/Makefile.in (FL_LIST): Revert last change.
12672
12673 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12674
12675         PR other/7341
12676         * invoke.texi (ftest-coverage): Fix broken cross-reference.
12677         Change @code to @command for gcov command.
12678
12679         * gcc.texi: Adjust title of gcov section.
12680         Adjust copyright.
12681         * gcov.texi: Likewise.
12682
12683 2003-01-22  Roger Sayle  <roger@eyesopen.com>
12684
12685         PR optimization/8423
12686         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
12687         its argument is constant, or 0 if !flag_gcse.
12688         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
12689         if it's argument is constant.
12690         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
12691         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
12692         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
12693         * builtins.c (purge_builtin_constant_p): New function to force
12694         instantiation of any remaining CONSTANT_P_RTX nodes.
12695         * rtl.h (purge_builtin_constant_p): Prototype here.
12696         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
12697         pass after GCSE and before loop.
12698         (flag_gcse): No longer static.
12699         * flags.h (flag_gcse): Prototype here.
12700
12701 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
12702
12703         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
12704         introduced by last change.
12705
12706 2003-01-22  Andreas Schwab  <schwab@suse.de>
12707
12708         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
12709
12710 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
12711
12712         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
12713         request a scratch reg on H8S when the shift count is 8.
12714
12715 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
12716
12717         * config/s390/s390-protos.h (preferred_la_operand_p):
12718         Remove second parameter.
12719         * config/s390/s390.c (preferred_la_operand_p): Likewise.
12720         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
12721         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
12722         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
12723         Add peepholes to transform ADD to LOAD ADDRESS.
12724
12725 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
12726
12727         * arm.c (arm_address_register_rtx_p): New function.
12728         (arm_legitimate_address_p): New function.
12729         (arm_legitimate_index_p): New function.
12730         (legitimize_pic_address): Use arm_legitimate_index_p.
12731         * arm-protos.h (arm_legtimate_address_p): Add prototype.
12732         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
12733         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
12734
12735 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
12736
12737         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
12738         * config/s390/2064.md (define_bypass): Correct 'Load' and
12739         'Load-address' bypass values.
12740
12741 2003-01-22  Andreas Schwab  <schwab@suse.de>
12742
12743         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
12744
12745 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
12746
12747         * genautomata.c (output_internal_insn_latency_func,
12748         output_print_reservation_func): Short circuit when there is no
12749         automaton to generate code for.
12750
12751 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12752
12753         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
12754         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
12755
12756 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
12757
12758         * config/rs6000/rs6000.md: Remove warning.
12759         (builtin_setjmp_receiver): Likewise.
12760         * config/darwin.c (update_stubs): Slightly improve terrible hack
12761         with identifiers.  Add comment pointing out problems with it.
12762         (update_non_lazy_ptrs): Likewise.
12763
12764 2003-01-21  Richard Henderson  <rth@redhat.com>
12765
12766         * dwarf2out.c (lookup_filename): Fix printf format warning.
12767         * system.h (fread_unlocked, fwrite_unlocked): Undef.
12768
12769         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
12770         (fixincl.o-warn, gnu-regex.o-warn): New.
12771         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
12772         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
12773         * fixinc/fixincl.c (process): Fix printf format warning.
12774
12775 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
12776
12777         * dwarf2out (output_file_names): Don't crash if called
12778         with empty file_table.
12779
12780 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
12781
12782         * genautomata.c (output_internal_insn_latency_func): Add
12783         missing break statement to generated code.
12784
12785 2003-01-21  Roger Sayle  <roger@eyesopen.com>
12786
12787         * stmt.c (same_case_target_p): New function to determine whether
12788         two case labels branch to the same target.  Split out from...
12789         (group_case_nodes): ... here.  Use same_case_target_p instead.
12790         (strip_default_case_nodes): Remove explicit case nodes
12791         that branch to the default destination.
12792         (expand_end_case_type): Call strip_default_case_nodes after
12793         group_case_nodes, to simplify the case-list before we count it.
12794         Only generate table_label RTX when actually needed.  Try to share
12795         thiscase->exit_label and thiscase->data.case_stmt.default_label
12796         when a switch has no explicit default case.  Simplify test for
12797         constant index.
12798
12799 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
12800
12801         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
12802         \t.
12803         (*negsf2_h8300hs): Likewise.
12804         (*addsi3_lshiftrt_16_zexthi): Likewise.
12805         (*iorhi3_lshiftrt_8): Likewise.
12806
12807 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
12808
12809         * dwarf2out.c (fde_table_in_use): Mark GTY.
12810         (dwarf2out_cfi_label_num): New variable, marked GTY.
12811         (dwarf2out_cfi_label): Use it instead of static label_num.
12812         * emit-rtl.c (label_num): Mark GTY.
12813
12814 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
12815
12816         * config/h8300/h8300.c (output_plussi): Support H8/300.
12817         (compute_plussi_length): Likewise.
12818         (compute_plussi_cc): Likewise.
12819         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
12820         output assembly instructions.
12821
12822 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12823
12824         * calls.c (fix_unsafe_tree): Prototype.
12825
12826         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
12827         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
12828         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
12829         c-parse.o-warn): Add -Wno-error.
12830         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
12831
12832         * configure.in (--enable-werror): Add new flag.
12833         * doc/install.texi (--enable-werror): Document.
12834         * configure: Regenerate.
12835
12836         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
12837
12838 2003-01-21  Andreas Schwab  <schwab@suse.de>
12839
12840         * genautomata.c (output_internal_insn_latency_func): Fix missing
12841         close paren in output.
12842
12843 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
12844
12845         * genautomata.c: Space savings in generated code:
12846         (output_dfa_insn_code_func): Split out the table-enlargement
12847         path to an out-of-line static function, dfa_insn_code_enlarge.
12848         (output_internal_insn_latency_func): Use a lookup table for the
12849         default latencies.
12850         (output_print_reservation_func): Use a lookup table for the
12851         strings.
12852
12853 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
12854
12855         PR opt/7507
12856         * calls.c (fix_unsafe_tree): Split out from ...
12857         (expand_call): ... here.  Use it on the function address too.
12858
12859 2003-01-20  Richard Henderson  <rth@redhat.com>
12860
12861         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
12862
12863 2003-01-20  Richard Henderson  <rth@redhat.com>
12864
12865         PR opt/7154
12866         * stmt.c (expand_asm_operands): Validize memory operands.
12867
12868 2003-01-20  Richard Henderson  <rth@redhat.com>
12869
12870         PR opt/8848
12871         * ifcvt.c (noce_process_if_block): Correct arguments to
12872         modified_between_p for no-else-block case.
12873
12874 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12875
12876         * config/h8300/h8300.c (const_costs): Remove a warning.
12877         (output_plussi): Likewise.
12878         (compute_plussi_length): Likewise.
12879         (compute_plussi_cc): Likewise.
12880
12881 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12882
12883         * config/h8300/h8300.md (addsi_h8300): Remove the last
12884         alternative.
12885
12886 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12887
12888         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
12889
12890 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12891
12892         * system.h (__NO_STRING_INLINES): Define.
12893
12894 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12895
12896         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
12897         is not a scalar int mode.
12898
12899 2003-01-20  Roger Sayle  <roger@eyesopen.com>
12900
12901         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
12902         insn's notes following a substitution inside a libcall.
12903
12904 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
12905
12906         * configure.in: Check for system-provided 'uchar' type.
12907         * configure, config.in: Regenerate.
12908         * cpphash.h: Only typedef 'uchar' if the system doesn't.
12909
12910 2003-01-20  Richard Henderson  <rth@redhat.com>
12911
12912         * expr.h (MUST_PASS_IN_STACK): Move implementation...
12913         * calls.c (default_must_pass_in_stack): ... here.
12914
12915 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12916
12917         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
12918
12919         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
12920
12921         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
12922         Wrap up definition of `insn_alts'.
12923
12924         * genattrtab.c (main): Wrap up `insn_alts'.
12925
12926 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12927
12928         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
12929         prototyping.
12930         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
12931
12932         * config.in, configure: Regenerate.
12933
12934 2003-01-20  Nick Clifton  <nickc@redhat.com>
12935
12936         * config/arm/arm.md (sibcall_epilogue): Add an
12937         UNSPEC_PROLOGUE_USE to prevent the link register from being
12938         considered dead.
12939
12940 2003-01-20  Jan Hubicka  <jh@suse.cz>
12941
12942         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
12943
12944 2003-01-20  Andreas Schwab  <schwab@suse.de>
12945
12946         * system.h: Don't declare strsignal if the decl test hasn't been
12947         run yet.
12948
12949 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12950
12951         * config/h8300/h8300.c (notice_update_cc): Don't assume that
12952         recog_data.operands[0] is always associated with cc0.
12953
12954 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
12955
12956         * collect2.c (ldgetname): Expand declaration to prototype.
12957         * read-rtl.c (atoll): Add prototype.
12958         * system.h (strsignal): Also declare if no declaration found.
12959
12960 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
12961
12962         * config.gcc (mips64*-*-linux*): Added.
12963         * config/mips/linux64.h, config/mips/t-linux64: New file.
12964         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
12965         * config/mips/mips.c (override_options): Use it.
12966         * config/mips/mips.h (TARGET_SWITCHES): Added...
12967         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
12968         * Makefile.in (SPECS): New.
12969         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
12970         * gcc.c (process_command): Move self-spec processing past spec
12971         file loading.
12972         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
12973         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
12974         CRTSTUFF_T_CFLAGS.
12975         (SPECS): Document.
12976         * doc/invoke.texi (-mabi-fake-default): Document.
12977
12978 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
12979
12980         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
12981         z_reg, z_reg_qi): Declare static and GTY().
12982         (da_reg): Remove.
12983         (create_regs_rtx): Don't create da_reg.
12984         ("gt-m68hc11.h"): Include for GTY roots.
12985         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
12986         and GTY() here.
12987         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
12988         (m68hc11_soft_tmp_reg): Likewise.
12989         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
12990
12991 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
12992
12993         * basic-block.h: Fix comment formatting.
12994         * calls.c: Likewise.
12995         * combine.c: Likewise.
12996         * convert.c: Likewise.
12997         * gcov.c: Likewise.
12998         * haifa-sched.c: Likewise.
12999         * libgcc2.c: Likewise.
13000         * loop.c: Likewise.
13001         * profile.c: Likewise.
13002         * system.h: Likewise.
13003
13004 2003-01-18  Roger Sayle  <roger@eyesopen.com>
13005
13006         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
13007
13008 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13009
13010         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
13011
13012 2003-01-17  Dale Johannesen  <dalej@apple.com>
13013
13014         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
13015           (*floatunssidf2_internal):  Ditto.
13016
13017 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
13018
13019         * alias.c: Fix comment typos.
13020         * basic-block.h: Likewise.
13021         * c-common.c: Likewise.
13022         * c-common.h: Likewise.
13023         * c-decl.c: Likewise.
13024         * c-opts.c: Likewise.
13025         * c-pragma.c: Likewise.
13026         * c-pretty-print.h: Likewise.
13027         * cfg.c: Likewise.
13028         * cfganal.c: Likewise.
13029         * cfgbuild.c: Likewise.
13030         * cfgcleanup.c: Likewise.
13031         * cfglayout.c: Likewise.
13032         * cfgrtl.c: Likewise.
13033         * convert.c: Likewise.
13034         * cpphash.h: Likewise.
13035         * cpplex.c: Likewise.
13036         * cpplib.h: Likewise.
13037         * df.h: Likewise.
13038         * diagnostic.c: Likewise.
13039         * diagnostic.h: Likewise.
13040         * dwarf2.h: Likewise.
13041
13042 2003-01-17  Stan Shebs  <shebs@apple.com>
13043
13044         * config/darwin-protos.h: Forward-declare struct cpp_reader.
13045
13046 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
13047
13048         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
13049         mistake in last checkin.
13050
13051 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
13052
13053         * et-forest.c: Fix comment typos.
13054         * et-forest.h: Likewise.
13055         * except.c: Likewise.
13056         * expr.c: Likewise.
13057         * flags.h: Likewise.
13058         * flow.c: Likewise.
13059         * gcc.c: Likewise.
13060         * gcse.c: Likewise.
13061         * genattrtab.c: Likewise.
13062         * genautomata.c: Likewise.
13063         * gengtype.c: Likewise.
13064         * genrecog.c: Likewise.
13065         * global.c: Likewise.
13066         * gthr-rtems.h: Likewise.
13067
13068 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13069
13070         * i386.c (x86_function_profiler): Fix format specifier.
13071
13072 2003-01-17  Richard Henderson  <rth@redhat.com>
13073
13074         * gengtype.c (walk_type): Allow paramN_is.
13075
13076 2003-01-17  Nick Clifton  <nickc@redhat.com>
13077
13078         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
13079
13080 2003-01-16  Richard Henderson  <rth@redhat.com>
13081
13082         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
13083
13084 2003-01-16  Richard Henderson  <rth@redhat.com>
13085
13086         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
13087         (alpha_next_sequence_number): Likewise.
13088         (alpha_this_literal_sequence_number): Likewise.
13089         (alpha_this_gpdisp_sequence_number): Likewise.
13090         (struct alpha_funcs, alpha_funcs_num): Likewise.
13091         (struct alpha_links): Fix branch merge error.
13092         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
13093
13094 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
13095
13096         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
13097         R. Ghazi.
13098
13099 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
13100
13101         * ifcvt.c: Fix comment typos.
13102         * lcm.c: Likewise.
13103         * libgcc2.c: Likewise.
13104         * local-alloc.c: Likewise.
13105         * loop.c: Likewise.
13106         * predict.c: Likewise.
13107         * ra-build.c: Likewise.
13108         * ra.c: Likewise.
13109         * ra-colorize.c: Likewise.
13110         * ra.h: Likewise.
13111         * ra-rewrite.c: Likewise.
13112         * regmove.c: Likewise.
13113         * reload.h: Likewise.
13114         * rtlanal.c: Likewise.
13115         * toplev.c: Likewise.
13116         * tree.h: Likewise.
13117         * unwind-dw2-fde-glibc.c: Likewise.
13118         * vmsdbgout.c: Likewise.
13119
13120 2003-01-16  Richard Henderson  <rth@redhat.com>
13121
13122         * dwarf2out.c (struct file_table): Remove.
13123         (FILE_TABLE_INCREMENT): Remove.
13124         (file_table): Make a varray; mark for GC.  Update all users.
13125         (file_table_last_lookup_index): Extract from struct file_table.
13126         (output_file_names): Fix unsigned compare warnings.
13127         (add_name_attribute): Remove inline marker.
13128         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
13129         (lookup_filename): Don't manage size of file_table.
13130         (init_file_table): Allocate file_table with GC.
13131         (dwarf2out_init): Don't record main_input_filename here.
13132         (dwarf2out_finish): Do it here instead.
13133
13134 2003-01-16  Bruce Korb  <bkorb@gnu.org>
13135
13136         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
13137
13138 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
13139
13140         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
13141         instead of rotldi3_mextr.
13142
13143 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
13144
13145         * haifa-sched.c (move_insn): Restore moving all schedule group.
13146         (set_priorities): Restore taking SCHED_GROUP_P into account.
13147
13148         * sched-deps.c (add_dependence): Restore processing the last group
13149         insn.
13150         (remove_dependence, group_leader): Restore the functions.
13151         (set_sched_group_p): Restore adding dependencies from previous insn
13152         in the group.
13153         (compute_forward_dependences): Restore usage of group_leader.
13154
13155         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
13156         account.
13157
13158         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
13159         account.
13160         (can_schedule_ready_p): Ditto.
13161         (add_branch_dependences): Restore skipping over the group insns.
13162
13163 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
13164
13165         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
13166         68HC12 pre/post inc/dec side effects.
13167
13168 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
13169
13170         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
13171
13172 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
13173
13174         * sh.md (mshflo_w_x): Fix description of operation.
13175
13176 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
13177
13178         * config/rs6000/rs6000.h: Mention Altivec registers in
13179         commentary.  Fix typo.
13180
13181 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
13182
13183         * config/rs6000/rs6000.md (movti_string): Remove clobber.
13184         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
13185         generate PARALLEL with clobber for TARGET_POWER.
13186
13187 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13188
13189         * ra-colorize.c (colorize_one_web): Initialize variable.
13190         * regmove.c (fixup_match_1): Likewise.
13191         * reload1.c (reload_as_needed): Likewise.
13192         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
13193
13194 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13195
13196         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
13197
13198 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13199
13200         * dbxout.c (lastfile, cwd): Fix `unused' warning.
13201         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
13202         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
13203         is_main_source, file_table, decl_die_table_in_use,
13204         abbrev_die_table_in_use, line_info_table_in_use,
13205         separate_line_info_table_in_use, pubname_table_in_use,
13206         arange_table_in_use, ranges_table_in_use,
13207         current_function_has_inlines): Likewise.
13208         * flow.c (life_analysis): Likewise.
13209         * genemit.c (gen_insn): Likewise.
13210         * protoize.c (cplus_suffix): Likewise.
13211
13212         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
13213         * arm.h (ROUND_UP_WORD): Likewise.
13214
13215         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
13216         warning.
13217         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
13218         init_emit_once): Likewise.
13219         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
13220         Likewise.
13221         * function.c (assign_stack_temp_for_type): Likewise.
13222         * loop.c (loop_invariant_p): Likewise.
13223         * recog.c (push_operand): Likewise.
13224         * regclass.c (init_reg_sets_1): Likewise.
13225         * reload.c (update_auto_inc_notes): Likewise.
13226         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
13227         * stmt.c (expand_asm_operands): Likewise.
13228         * stor-layout.c (start_record_layout): Likewise.
13229
13230 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
13231
13232         * config/c4x/c4x.md (epilogue): Correct last patch.
13233
13234 2003-01-15  Richard Henderson  <rth@redhat.com>
13235
13236         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
13237         also check that GP is being used.
13238         (alpha_find_lo_sum_using_gp): New.
13239         (alpha_does_function_need_gp): Use get_attr_usegp.
13240         * config/alpha/alpha-protos.h: Update.
13241         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
13242         as needed.
13243
13244 2003-01-15  Roger Sayle  <roger@eyesopen.com>
13245
13246         * gcse.c (one_cprop_pass): Change function arguments to take both
13247         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
13248         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
13249         (bypass_jumps): New function to perform separate jump bypassing pass.
13250         * rtl.h (bypass_jumps): Add function prototype.
13251         * timevar.def (TV_BYPASS): New timing variable.
13252         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
13253         (dump_file): New entry for the bypass RTL dump file.
13254         (rest_of_compilation): Insert new jump bypassing optimization
13255         pass after loop.
13256         * doc/passes.texi: Document new pass.
13257
13258 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13259
13260         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
13261         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
13262         * pa.h (TARGET_SOM_SDEF): Define.
13263         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
13264
13265 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
13266
13267         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
13268         allocate 4-bytes of locals on 68HC11.
13269         (expand_epilogue): Likewise.
13270         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
13271
13272 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
13273
13274         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
13275         and -mshort-double to the assembler to specify the ABI.
13276         (LINK_SPEC): Likewise.
13277         (CPP_SPEC): Pass HCS12 specific define.
13278         (MASK_M68S12): New define.
13279         (TARGET_M68S12): Likewise.
13280         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
13281         (TARGET_VERSION): Update.
13282         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
13283         (LINK_SPEC): Update.
13284         (ASM_SPEC): Update.
13285         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
13286         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
13287
13288 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
13289
13290         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
13291         the return code.
13292
13293 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
13294
13295         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
13296         flag before setting it.
13297
13298 2003-01-15  Roger Sayle  <roger@eyesopen.com>
13299
13300         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
13301         when loop condition is known true, i.e.  "while (1) { ... }".
13302         (genrtl_for_stmt): Similarly for "for" statements.
13303
13304 2003-01-15  Roger Sayle  <roger@eyesopen.com>
13305
13306         * real.c (real_sqrt): Return a bool result indicating whether
13307         a floating point exception or trap should be raised.
13308         * real.h (real_sqrt): Update function prototype.
13309         * builtins.c (fold_builtin): Only fold non-trapping square
13310         roots unless we're ignoring errno and trapping math.
13311
13312 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
13313
13314         * expr.h (emit_conditional_add): Add PARAMS to declaration.
13315         * gengtype-lex.l (malloc, realloc): Move defines after include of
13316         system.h.  Remove duplicate include of system.h.
13317
13318 2003-01-15  Roger Sayle  <roger@eyesopen.com>
13319
13320         PR middle-end/9009
13321         * optabs.c (expand_unop):  When manipulating the FP sign bit
13322         using integer operations, account for targets with different
13323         integer and FP word orders.
13324         (expand_abs): Likewise.
13325
13326 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
13327
13328         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
13329         file extension in section name.
13330
13331 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
13332
13333         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
13334         constant offset.
13335
13336 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
13337
13338         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
13339         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
13340         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
13341         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
13342
13343 2003-01-15  Jan Hubicka  <jh@suse.cz>
13344
13345         PR f/9258
13346         * global.c (struct allocno): Add no_stack_reg.
13347         (global_conflicts): Set no_stack_reg.
13348         (find_reg): Use it.
13349
13350         * convert.c (convert_to_real): Fold - and abs only when profitable.
13351         * fold-const.c (fold): Fold truncates in - and abs.
13352
13353 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
13354
13355         Segher Boessenkool  <segher@koffie.nl>
13356
13357         * predict.c (real_inv_br_prob_base): New variable.
13358         (propagate_freq): Use multiply by reciprocal instead of
13359         division.  Don't divide by 1.0 at all.
13360         (estimate_bb_frequencies): Similar.
13361
13362 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
13363
13364         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
13365         * configure: Rebuilt.
13366
13367 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
13368
13369         * config/s390/s390.c (s390_safe_attr_type): New function.
13370         (s390_use_dfa_pipeline_interface): New function, return true for z900.
13371         (s390_issue_rate): New function.
13372         (s390_agen_dep_p): New function.
13373         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
13374         (s390_adjust_cost): Return 'cost' if new DFA is used.
13375         (s390_adjust_priority): Delete function.
13376         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
13377         * config/s390/s390.md (atype attribute): Attribute 'atype' default
13378         determined by 'op_type'.
13379         (type attribute): Added more type attributes.
13380         * config/s390/2064.md: New DFA description for z900 pipeline.
13381
13382 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
13383
13384         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
13385         forced to memory.  Fixes PR bootstrap/9036.
13386
13387         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
13388         to set $gp before the call.
13389
13390 2003-01-14  Richard Henderson  <rth@redhat.com>
13391
13392         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
13393         for force_const_mem.
13394
13395 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13396
13397         * genattr.c (main): Rearrange output to avoid prototype warning.
13398         * genautomata.c (transform_3): Fix ambiguous-else warning.
13399         * local-alloc.c (requires_inout): Add parentheses around
13400         assignment used as truth-value.
13401         * timevar.c: Move system includes above local includes.  Include
13402         toplev.h
13403         * Makefile.in (timevar.o): Depend on toplev.h.
13404
13405 2003-01-14  Denis Chertykov  <denisc@overta.ru>
13406
13407         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
13408         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
13409
13410         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
13411         attributes.
13412         (TARGET_ATTRIBUTE_TABLE): New macro.
13413         (valid_machine_type_attribute): Remove.
13414         (valid_machine_decl_attribute): Remove.
13415         (ip2k_handle_progmem_attribute): New function.
13416         (ip2k_handle_fndecl_attribute): New function.
13417
13418 2003-01-10  Andrew Haley  <aph@redhat.com>
13419
13420         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
13421         registers to be in correct order.  Add rip.
13422
13423 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
13424
13425         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
13426         (*iorsi3_and_lshiftrt_9_sb): Likewise.
13427
13428 2003-01-14  Jan Hubicka  <jh@suse.cz>
13429
13430         * convert.c (strip_float_extensions):  Look for narrowest type handling
13431         FP constants.
13432
13433         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
13434         float1 CMP float2.
13435         * convert.c (strip_float_extensions): Make global.
13436         * tree.h (strip_float_extensions): Declare.
13437
13438 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13439
13440         * timevar.def: define TV_NAME_LOOKUP.
13441         * timevar.c (timevar_pop): Be verbose when aborting.
13442
13443 2003-01-13  Andreas Schwab  <schwab@suse.de>
13444
13445         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
13446         $(parsedir), just move the temporary file at the end.
13447         ($(parsedir)/gengtype-yacc.c): Likewise.
13448
13449 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
13450
13451         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
13452         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
13453         splitting.
13454         * configure: Rebuilt.
13455
13456 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13457
13458         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
13459         internal_mcount): Don't use PARAMS.
13460         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
13461         ISO C style.
13462         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
13463
13464 2003-01-13  Andreas Schwab  <schwab@suse.de>
13465
13466         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
13467         directive.
13468
13469 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
13470
13471         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
13472         (*iorsi3_and_lshiftrt_n_sb): Likewise.
13473
13474 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
13475
13476         PR c++/9264
13477         * c-lex.c (c_lex): Set the token value to error_mark_node for
13478         invalid numeric constants.
13479
13480 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13481
13482         * c-pch.c (asm_file_startpos): Change to `long'.
13483         (pch_init): Use ftell, not ftello.
13484         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
13485         Use `long' instead of `off_t'.
13486         (c_common_read_pch): Likewise.
13487         * ggc-common.c (gt_pch_save): Use long/ftell instead of
13488         off_t/ftello.
13489
13490 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
13491
13492         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
13493
13494 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
13495
13496         * arm-protos.h (struct cpp_reader): Add declaration.
13497
13498 2003-01-11  Jan Hubicka  <jh@suse.cz>
13499
13500         PR target/9068
13501         * i386.c (output_fp_compare): Fix typo.
13502
13503 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
13504
13505         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
13506
13507 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
13508
13509         * Makefile.in (parsedir): New variable.
13510         (docobjdir): New variable.
13511         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
13512         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
13513         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
13514         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
13515         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
13516         Use docobjdir.
13517         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
13518         objc.maintainer-clean): Use parsedir.
13519
13520         * varasm.c (struct constant_descriptor_rtx): Remove unused
13521         `label' field.
13522
13523         * toplev.c (documented_lang_options): Document -Winvalid-pch.
13524
13525 2003-01-10  Richard Henderson  <rth@redhat.com>
13526
13527         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
13528         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
13529
13530 2003-01-10  Richard Henderson  <rth@redhat.com>
13531
13532         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
13533         not INTEGRAL_MODE_P when widening extensions.
13534
13535 2003-01-10  Richard Henderson  <rth@redhat.com>
13536
13537         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
13538
13539 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
13540
13541         * ggc-page.c (ggc_collect): Avoid overflow computing
13542         min_expand.
13543
13544         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
13545         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
13546         Remove calls.
13547         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
13548
13549 2003-01-10  Jan Hubicka  <jh@suse.cz>
13550
13551         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
13552         with weird operands.
13553
13554 2003-01-10  Dale Johannesen <dalej@apple.com>
13555
13556         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
13557         parameters.  Call check_sibcall_argument_overlap if indicated.
13558         (check_sibcall_argument_overlap):  Add mark_stored_args_map
13559         parameter.  Don't mark parameter area as clobbered if not set.
13560         (expand_call):  Adjust calls to above.
13561
13562 2003-01-10 Kelley Cook <kelleycook@comcast.net>
13563
13564         * configure.in (linker read-only and read-write section mixing):
13565         Squelch some assembler warnings.
13566         * configure: Likewise.
13567
13568 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
13569
13570         * doc/invoke.texi: Document -mtune, delete -mcpu
13571         option for S/390 and zSeries.
13572         * config/s390/s390.c (s390_tune_string) New variable.
13573         (s390_cpu_string) Delete variable.
13574         (override_options): Use s390_tune_string instead of
13575         s390_cpu_string.
13576         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
13577
13578 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
13579
13580         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
13581
13582 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
13583
13584         * jump.c (next_nonnote_insn_in_loop): New function.
13585         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
13586         next_nonnote_insn.
13587         (duplicate_loop_exit_test). Likewise.
13588
13589 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
13590
13591         Merge from pch-branch:
13592
13593         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
13594
13595         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
13596         load.
13597
13598         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
13599
13600         * cpplib.c (count_registered_pragmas): New function.
13601         (save_registered_pragmas): New function.
13602         (_cpp_save_pragma_names): New function.
13603         (restore_registered_pragmas): New function.
13604         (_cpp_restore_pragma_names): New function.
13605         * cpphash.h (_cpp_save_pragma_names): Prototype.
13606         (_cpp_restore_pragma_names): Likewise.
13607         * cpppch.c (struct save_macro_item): Split from save_macro_data.
13608         (struct save_macro_data): New field 'saved_pragmas'.
13609         (save_macros): Update for changes to struct save_macro_data.
13610         (cpp_prepare_state): Call _cpp_save_pragma_names, update
13611         for changes to struct save_macro_data.
13612         (cpp_read_state): Call _cpp_restore_pragma_names, update
13613         for changes to struct save_macro_data.
13614
13615         * cpppch.c (cpp_read_state): Restore the hashtable references
13616         in the cpp_reader.
13617
13618         * tree.h (built_in_decls): Mark for PCH.
13619
13620         * dbxout.c (lastfile): Don't mark for PCH.
13621
13622         * ggc.h: Document PCH calls into memory managers.
13623
13624         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
13625
13626         * doc/invoke.texi (Precompiled Headers): Document the
13627         directory form of PCH.
13628         * cppfiles.c (validate_pch): New function.
13629         (open_file_pch): Search suitably-named directories for PCH files.
13630
13631         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
13632
13633         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
13634         reorder options.
13635         (Type Information): Mention that the information is also
13636         used to implement PCH.
13637         * doc/passes.texi (Passes): Improve documentation of
13638         language-specific files.
13639
13640         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
13641
13642         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
13643         (struct walk_type_data): Add reorder_fn field.
13644         (walk_type): Process 'reorder' option.
13645         (write_types_process_field): Reorder parameters to gt_pch_note_object,
13646         call reorder_note_routine.
13647         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
13648         (ggc_wtd): Update for change to struct write_types_data.
13649         (pch_wtd): Likewise.
13650         * ggc.h (gt_pch_note_object): Reorder parameters.
13651         (gt_handle_reorder): New definition.
13652         (gt_pch_note_reorder): New prototype.
13653         * ggc-common.c (struct ptr_data): Add reorder_fn.
13654         (gt_pch_note_object): Reorder parameters.
13655         (gt_pch_note_reorder): New.
13656         (gt_pch_save): Call reorder_fn.
13657         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
13658
13659         * dbxout.c (cwd): Don't mark for PCH.
13660
13661         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
13662
13663         * gengtype.c (finish_root_table): Fix some warnings.
13664         (write_root): Handle TYPE_STRING.
13665         * ggc.h (gt_ggc_m_S): Add prototype.
13666         * stringpool.c (gt_ggc_m_S): New function.
13667
13668         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
13669
13670         * dwarf2out.c (dw2_string_counter): New.
13671         (AT_string_form): Use it.
13672         (same_dw_val_p): Update for removal of hashtable.h hash tables.
13673
13674         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
13675
13676         * dbxout.c: Include gt-dbxout.h.
13677         (lastfile): Mark for PCH/GGC.
13678         (cwd): Likewise.
13679         (struct typeinfo): Likewise.
13680         (typevec): Likewise.
13681         (typevec_len): Likewise.
13682         (next_type_number): Likewise.
13683         (struct dbx_file): Likewise.
13684         (current_file): Likewise.
13685         (next_file_number): Likewise.
13686         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
13687         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
13688         (dbxout_end_source_file): Don't free struct dbx_file.
13689         (dbxout_type): Use GGC to allocate typevec.
13690         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
13691         (GTFILES): Add dbxout.c.
13692         (gt-dbxout.h): New rule.
13693
13694         * Makefile.in (c-pch.o): Add debug.h as dependency.
13695         * c-pch.c: Include debug.h.
13696         (pch_init): Call start_source_file to keep nesting right.
13697         (c_common_read_pch): Add orig_name parameter.  Call
13698         start_source_file debug hook.  Call end_source_file debug hook.
13699         * c-common.h (c_common_read_pch): Update prototype.
13700         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
13701         callback.
13702         * cppfiles.c (struct include_file): Add new field `header_name'.
13703         (find_or_create_entry): Default it to `name'.
13704         (open_file_pch): Set it to the original header file searched for.
13705         (stack_include_file): Don't stack an empty buffer, just handle
13706         PCH files immediately.  Pass header_name field to read_pch callback.
13707
13708         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
13709
13710         * function.c (funcdef_no): Mark to be saved in a PCH.
13711
13712         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
13713
13714         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
13715
13716         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
13717
13718         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
13719
13720         * optabs.h (code_to_optab): Add GTY marker.
13721
13722         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
13723
13724         * Makefile.in (GTFILES): Add cpplib.h.
13725         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
13726         * c-decl.c (build_compound_literal): Don't use var_labelno.
13727         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
13728         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
13729         * varasm.c (const_labelno): Use gengtype to mark.
13730         (var_labelno): Likewise.
13731         (in_section): Likewise.
13732         (in_named_name): Likewise.
13733         (struct in_named_entry): Likewise.
13734         (in_named_htab): Likewise.
13735         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
13736         (init_varasm_once): Use GGC to allocate in_named_htab.
13737         * config/darwin.c (current_pic_label_num): Mark for PCH.
13738
13739         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
13740
13741         * ggc-simple.c (init_ggc_pch): New stub procedure.
13742         (ggc_pch_count_object): Likewise.
13743         (ggc_pch_total_size): Likewise.
13744         (ggc_pch_this_base): Likewise.
13745         (ggc_pch_alloc_object): Likewise.
13746         (ggc_pch_prepare_write): Likewise.
13747         (ggc_pch_write_object): Likewise
13748         (ggc_pch_finish): Likewise.
13749         (ggc_pch_read): Likewise.
13750
13751         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
13752
13753         * c-pch.c (c_common_write_pch): Write the macro definitions after
13754         the GCed data.
13755         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
13756         definitions after the GCed data.
13757         * cpplib.c (save_macros): New.
13758         (reset_ht): New.
13759         (cpp_write_pch_deps): Split out of cpp_write_pch.
13760         (cpp_write_pch_state): Split out of cpp_write_pch.
13761         (cpp_write_pch): Delete.
13762         (struct save_macro_data): Delete.
13763         (cpp_prepare_state): New.
13764         (cpp_read_state): Erase and restore initial macro definitions.
13765         * cpplib.h (struct save_macro_data): Forward-declare.
13766         (cpp_write_pch_deps): Prototype.
13767         (cpp_write_pch_state): Prototype.
13768         (cpp_write_pch): Delete prototype.
13769         (cpp_prepare_state): Prototype.
13770         (cpp_read_state): Add fourth argument.
13771
13772         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
13773
13774         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
13775         (write_array): Remove warning.
13776
13777         * gengtype.c (contains_scalar_p): New.
13778         (finish_root_table): Add the table to all languages, even if it's
13779         empty.
13780         (write_roots): Output gt_pch_scalar_rtab.
13781         * ggc-common.c (gt_pch_save): Write out scalars.
13782         (gt_pch_restore): Read scalars back.
13783
13784         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
13785         (struct page_entry): Delete pch_page field.
13786         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
13787         (clear_marks): Likewise.
13788         (sweep_pages): Likewise.
13789         (poison_pages): Likewise.
13790         (ggc_print_statistics): Likewise.
13791         (ggc_pch_read): Don't free objects read from a PCH.
13792         Properly set up in_use_p and page_tails.
13793
13794         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
13795
13796         * gengtype.c (struct write_types_data): New.
13797         (struct walk_type_data): Make `cookie' const; add extra
13798         prev_val item; add `orig_s' field.
13799         (walk_type): Update prev_val[3].
13800         (write_types_process_field): New.
13801         (write_func_for_structure): Take write_types_data structure.
13802         (write_types): New.
13803         (ggc_wtd): New.
13804         (pch_wtd): New.
13805         (write_types_local_process_field): New.
13806         (gc_mark_process_field): Delete.
13807         (write_local_func_for_structure): New.
13808         (gc_mark_func_name): Delete.
13809         (write_gc_types): Delete.
13810         (write_local): New.
13811         (finish_root_table): Don't include 'ggc_' in PFX.
13812         (write_root): Rename from write_root.  Fill pchw field of structures.
13813         (write_array): New.
13814         (write_roots): Rename from write_gc_roots.  Split out to write_array.
13815         Update to changes to other routines.  Write gt_pch_cache_rtab table.
13816         (main): Write PCH walking routines.
13817         * ggc-common.c: Include toplev.h, sys/mman.h.
13818         (ggc_mark_roots): For cache hashtables, also mark the hash table
13819         and the array of entries.
13820         (saving_htab): New.
13821         (struct ptr_data): New.
13822         (POINTER_HASH): New.
13823         (gt_pch_note_object): New.
13824         (saving_htab_hash): New.
13825         (saving_htab_eq): New.
13826         (struct traversal_state): New.
13827         (call_count): New.
13828         (call_alloc): New.
13829         (compare_ptr_data): New.
13830         (relocate_ptrs): New.
13831         (write_pch_globals): New.
13832         (struct mmap_info): New.
13833         (gt_pch_save): New.
13834         (gt_pch_restore): New.
13835         * ggc-page.c (ROUND_UP_VALUE): New.
13836         (ROUND_UP): New.
13837         (struct page_entry): Add field `pch_page'.
13838         (init_ggc): Use ROUND_UP.
13839         (struct ggc_pch_data): Declare.
13840         (init_ggc_pch): New.
13841         (ggc_pch_count_object): New.
13842         (ggc_pch_total_size): New.
13843         (ggc_pch_this_base): New.
13844         (ggc_pch_alloc_object): New.
13845         (ggc_pch_prepare_write): New.
13846         (ggc_pch_write_object): New.
13847         (ggc_pch_finish): New.
13848         (ggc_pch_read): New.
13849         * ggc.h (gt_pointer_operator): New.
13850         (gt_note_pointers): New.
13851         (gt_pch_note_object): New prototype.
13852         (gt_pointer_walker): New.
13853         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
13854         (LAST_GGC_ROOT_TAB): Update.
13855         (gt_pch_cache_rtab): Declare.
13856         (gt_pch_scalar_rtab): Declare.
13857         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
13858         (LAST_GGC_CACHE_TAB): Update.
13859         (gt_pch_save_stringpool): Declare.
13860         (gt_pch_restore_stringpool): Declare.
13861         (gt_pch_p_S): Declare.
13862         (gt_pch_n_S): Declare.
13863         (struct ggc_pch_data): Forward-declare.
13864         (init_ggc_pch): Declare.
13865         (ggc_pch_count_object): Declare.
13866         (ggc_pch_total_size): Declare.
13867         (ggc_pch_this_base): Declare.
13868         (ggc_pch_alloc_object): Declare.
13869         (ggc_pch_prepare_write): Declare.
13870         (ggc_pch_write_object): Declare.
13871         (ggc_pch_finish): Declare.
13872         (ggc_pch_read): Declare.
13873         (gt_pch_save): Declare.
13874         (gt_pch_restore): Declare.
13875         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
13876         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
13877         const_double_htab, mem_attrs_htab using GGC.
13878         * c-pch.c: Include ggc.h.
13879         (pch_init): Allow reading PCH file back.
13880         (c_common_write_pch): Call gt_pch_save.
13881         (c_common_read_pch): Call gt_pch_restore.
13882         * c-parse.in (init_reswords): Delete now-untrue comment.
13883         Allocate ridpointers using GGC.
13884         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
13885         calling expand_deferred_fns.
13886         * c-common.h (ridpointers): Mark for GTY machinery.
13887         * Makefile.in (stringpool.o): Update dependencies.
13888         (c-pch.o): Update dependencies.
13889         (ggc-common.o): Update dependencies.
13890         * stringpool.c: Include gt-stringpool.h.
13891         (gt_pch_p_S): New.
13892         (gt_pch_n_S): New.
13893         (struct string_pool_data): New.
13894         (spd): New.
13895         (gt_pch_save_stringpool): New.
13896         (gt_pch_restore_stringpool): New.
13897         * tree.c (init_ttree): Make type_hash_table allocated using GC.
13898
13899         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
13900
13901         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
13902         (output_mangled_typename): Don't pass size_t to printf.
13903
13904         * tree.h (union tree_type_symtab): Add tag to `address' field.
13905         (union tree_decl_u2): Add tag to 'i' field.
13906         * varasm.c (union rtx_const_un): Add tags to all fields.
13907         * gengtype.c (struct walk_type_data): New.
13908         (output_escaped_param): Take struct walk_type_data parameter.
13909         (write_gc_structure_fields): Delete.
13910         (walk_type): New.
13911         (write_gc_marker_routine_for_structure): Delete.
13912         (write_func_for_structure): New.
13913         (gc_mark_process_field): New.
13914         (gc_mark_func_name): New.
13915         (gc_counter): Delete.
13916         (write_gc_types): Use write_func_for_structure.
13917         (write_gc_roots): Use walk_type.
13918
13919         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
13920
13921         * ggc-common.c (ggc_mark_roots): Delete 'x'.
13922         (ggc_splay_dont_free): Fix warning about unused 'x'.
13923         (ggc_print_common_statistics): Remove warnings.
13924
13925         2002-10-01  Mike Stump  <mrs@apple.com>
13926
13927         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
13928         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
13929
13930         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
13931             Catherine Moore  <clm@redhat.com>
13932
13933         * Makefile (c-pch.o): Update dependencies.
13934         (LIBCPP_OBJS): Add cpppch.o.
13935         (cpppch.o): New.
13936         * c-common.c (c_common_init): Don't call pch_init here.
13937         * c-common.h (c_common_read_pch): Update prototype.
13938         * c-lex.c (c_common_parse_file): Call pch_init here.
13939         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
13940         (c_common_decode_option): Handle them.
13941         * c-pch.c: Include c-pragma.h.
13942         (save_asm_offset): Delete.
13943         (pch_init): Move contents of save_asm_offset into here, call
13944         cpp_save_state.
13945         (c_common_write_pch): Call cpp_write_pch.
13946         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
13947         cpp_valid_state.
13948         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
13949         * cppfiles.c (stack_include_file): Update for change to
13950         parameters of cb.read_pch.
13951         * cpphash.h (struct cpp_reader): Add `savedstate' field.
13952         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
13953         `restore_pch_deps' fields.
13954         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
13955         (cpp_save_state): Prototype.
13956         (cpp_write_pch): Prototype.
13957         (cpp_valid_state): Prototype.
13958         (cpp_read_state): Prototype.
13959         * cpppch.c: New file.
13960         * flags.h (version_flag): Remove prototype.
13961         * mkdeps.c (deps_save): New.
13962         (deps_restore): New.
13963         * mkdeps.h (deps_save): Prototype.
13964         (deps_restore): Prototype.
13965         * toplev.c (late_init_hook): Delete.
13966         (version_flag): Make static again.
13967         (compile_file): Don't call late_init_hook.
13968         * toplev.h (late_init_hook): Delete.
13969         * doc/cppopts.texi: Document -fpch-deps.
13970         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
13971
13972         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
13973
13974         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
13975         callers.
13976         (c_common_valid_pch): Rename from c_valid_pch, change callers.
13977         (c_common_read_pch): Rename from c_read_pch, change callers.
13978
13979         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
13980         a space between it and its argument.
13981
13982         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
13983
13984         * c-pch.c: New file.
13985         * toplev.h (late_init_hook): Declare.
13986         * toplev.c (late_init_hook): Define.
13987         (version_flag): Make globally visible.
13988         (compile_file): Call late_init_hook.
13989         (init_asm_output): Make output file seekable.
13990         * gcc.c (default_compilers): Update c-header rule.
13991         * flags.h (version_flag): Declare.
13992         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
13993         fields.
13994         * cppfiles.c (struct include_file): Add 'pch' field.
13995         (INCLUDE_PCH_P): New.
13996         (open_file_pch): New.
13997         (stack_include_file): Handle PCH files specially.
13998         (find_include_file): Call open_file_pch instead of open_file.
13999         (_cpp_read_file): Explain why open_file is used instead of
14000         open_file_pch.
14001         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
14002         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
14003         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
14004         in cpplib callbacks.
14005         * c-common.c (pch_file): Correct comment.
14006         (allow_pch): Define.
14007         (c_common_init): Call pch_init.
14008         * c-common.h (allow_pch): Declare.
14009         (pch_init): Declare.
14010         (c_valid_pch): Declare.
14011         (c_read_pch): Declare.
14012         (c_write_pch): Declare.
14013         * Makefile.in (c-pch.o): New.
14014         (C_AND_OBJC_OBJS): Add c-pch.o.
14015         * doc/invoke.texi (Precompiled Headers): Add index entries,
14016         complete truncated paragraph.
14017
14018         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
14019
14020         * c-common.c: (pch_file): Define.
14021         * c-common.h (pch_file): Declare.
14022         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
14023         (missing_arg): Require --output-pch= to have an argument.
14024         (c_common_decode_option): Handle --output-pch=.
14025         * gcc.c: Document new %V.
14026         (default_compilers): Handle compiling C header files.
14027         (do_spec_1): Implement %V.
14028         (main): Handle "gcc foo.h" without trying to run linker.
14029         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
14030         (Overall Options): Document what the driver does with header files,
14031         document new -x option possibilities.
14032         (Invoking G++): More documentation for PCH.
14033         (Precompiled Headers): New.
14034
14035         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
14036
14037         * ggc.h: Don't include varray.h.  Rearrange functions to be more
14038         organized.
14039         (ggc_add_root): Delete.
14040         (ggc_mark_rtx): Delete.
14041         (ggc_mark_tree): Delete.
14042         (struct ggc_statistics): Remove contents.
14043         * ggc-common.c: Remove unneeded includes.
14044         (struct ggc_root): Delete.
14045         (roots): Delete.
14046         (ggc_add_root): Delete.
14047         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
14048         (ggc_print_common_statistics): Remove most of the contents.
14049         * Makefile.in (GGC_H): No longer uses varray.h.
14050         (ggc-common.o): Update dependencies.
14051         (c-parse.o): Add varray.h to dependencies.
14052         (c-common.o): Add varray.h.
14053         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
14054         (mark_ident_hash): Rename to ggc_mark_stringpool.
14055         (init_stringpool): Don't use ggc_add_root.
14056         * c-parse.in: Include varray.h.
14057         * c-common.c: Include varray.h.
14058         * objc/Make-lang.in (objc-act.o): Add varray.h.
14059         * objc/objc-act.c: Include varray.h.
14060
14061         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
14062
14063         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
14064         (dw_cfi_oprnd1_desc): Likewise.
14065
14066         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
14067
14068         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
14069         move out of ifdef.
14070         (alpha_links): Use gengtype to mark; move out of ifdef.
14071         (mark_alpha_links_node): Delete.
14072         (mark_alpha_links): Delete.
14073         (alpha_need_linkage): Use GGC to allocate splay tree, struct
14074         alpha_links, strings.  Don't use ggc_add_root.
14075         * ggc-common.c (ggc_splay_alloc): New.
14076         (ggc_splay_dont_free): New.
14077         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
14078         (ggc_mark_tree): Likewise.
14079         (splay_tree_new_ggc): New.
14080         (ggc_splay_alloc): Declare.
14081         (ggc_splay_dont_free): Declare.
14082         * dwarf2asm.c: Include gt-dwarf2asm.h.
14083         (mark_indirect_pool_entry): Delete.
14084         (mark_indirect_pool): Delete.
14085         (indirect_pool): Use gengtype to mark.
14086         (dw2_force_const_mem): Don't use ggc_add_root.
14087         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
14088         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
14089         (gt-dwarf2asm.h): Depend on s-gtype.
14090
14091         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
14092
14093         * tree.h (union tree_type_symtab): Mark `die' field.
14094         * Makefile.in (dwarf2out.o): Update dependencies.
14095         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
14096         hash tables.
14097         (dw_cfi_oprnd1_desc): New function.
14098         (dw_cfi_oprnd2_desc): New function.
14099         (indirect_string_alloc): Delete.
14100         (debug_str_do_hash): New function.
14101         (debug_str_eq): New function.
14102         (mark_limbo_die_list): Delete.
14103         (dwarf2out_init): Don't call ggc_add_root.
14104
14105 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
14106
14107         The following changes are merged from itanium-sched-branch:
14108
14109         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
14110
14111         * doc/md.texi: Clarify assignment of units to automata description.
14112
14113         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
14114
14115         * genautomata.c (unit_decl): Remove members
14116         `the_same_automaton_unit' and
14117         `the_same_automaton_message_reported_p'.
14118         (process_unit_to_form_the_same_automaton_unit_lists,
14119         form_the_same_automaton_unit_lists_from_regexp,
14120         form_the_same_automaton_unit_lists, the_same_automaton_lists):
14121         Remove them.
14122         (annotation_message_reported_p): New global variable.
14123         (check_unit_distribution_in_reserv,
14124         check_regexp_units_distribution): New functions.
14125         (check_unit_distributions_to_automata): Rewrite it.
14126
14127         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
14128
14129         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
14130         Use continue instead of break if cycle is too big.
14131
14132         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
14133
14134         * genautomata.c (check_unit_distributions_to_automata): Output at
14135         most one message for a unit.
14136         (process_unit_to_form_the_same_automaton_unit_lists): Check
14137         automaton of units instead of units themself.
14138
14139         * doc/md.texi: Describe the constraint about assigning unit to
14140         automata.
14141
14142         2002-12-20  Jan Hubicka  <jH@suse.cz>
14143                     Vladimir Makarov  <vmakarov@redhat.com>
14144
14145         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
14146         and `in_set_p'.
14147         (gen_cpu_unit): Initialize the new members.
14148         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
14149         up `min_occ_cycle_num'.
14150         (evaluate_max_reserv_cycles): Change the function call.
14151         (CLEAR_BIT): New macro.
14152         (states_union, state_shift): Use the mask.
14153         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
14154         (form_reservs_matter): New function.
14155         (make_automaton): Call the function and use the mask.
14156         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
14157         account.
14158
14159         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
14160
14161         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
14162
14163         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
14164
14165         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
14166         for Itanium.
14167
14168         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
14169
14170         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
14171         default cpu.
14172
14173         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
14174                 2002-10-31  Dale Johannesen <dalej@apple.com>
14175
14176         * haifa-sched.c (find_set_reg_weight): New function.
14177         (find_insn_reg_weight): Use the new function.
14178         (schedule_block): Do sorting ready queue always
14179         after insn issue.
14180
14181         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
14182
14183         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
14184
14185         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
14186
14187         * haifa-sched.c (choice_entry): New structure.
14188         (choice_stack, cycle_issued_insns): New variables.
14189         (max_issue): Rewrite it.
14190         (choose_ready): Set up ready_try for unknown insns too.
14191         (schedule_block): Allocate and free choice_stack.  Set up
14192         and modify cycle_issued_insns.
14193
14194         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
14195         with and without filling the bundle.
14196         (bundling): Combine calls of issue_nops_and_insn.
14197
14198         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
14199
14200         * config/ia64/itanium1.md: New file.
14201
14202         * config/ia64/itanium2.md: New file.
14203
14204         * config/ia64/ia64.md: Move DFA descriptions into the new files.
14205         Remove the old pipeline description.
14206
14207         * config/ia64/ia64.c (ia64_override_options): Add aliases of
14208         itanium processor names.
14209
14210         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
14211
14212         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
14213         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
14214
14215         * config/ia64/ia64.md: Add descriptions for Itanium2.
14216
14217         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
14218
14219         * config/ia64/ia64.h (processor_type): New enumeration.
14220         (ia64_tune, ia64_tune_string): New external declarations.
14221         (TARGET_OPTIONS): Add option `tune='.
14222
14223         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
14224         variables.
14225         (ia64_override_options): Set up `ia64_tune'.
14226         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
14227         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
14228         (bundling): Add nops for MM-insns only for Itanium.
14229         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
14230         Itanium.
14231
14232         * config/ia64/ia64.md (cpu): New attribute.
14233         (DFA description): Enable it only for Itanium.
14234
14235         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
14236                     Richard Henderson  <rth@redhat.com>
14237
14238         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
14239         MASK_EARLY_STOP_BITS.
14240         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
14241         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
14242         `early-stop-bits'.
14243
14244         * config/ia64/ia64.c (ia64_dfa_new_cycle,
14245         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
14246         instead of TARGET_TUNE_STOP_BITS.
14247
14248         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
14249         `-mearly-stop-bits'.
14250
14251         * config/ia64/ia64.c (automata_option "v"): Comment it.
14252
14253         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
14254
14255         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
14256         New macros.
14257         (TARGET_SWITCHES): Add entries for the new option.
14258
14259         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
14260         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
14261         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
14262         global variables.
14263         (ia64_sched_reorder2): Set up `clocks'.
14264         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
14265         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
14266         queue when TARGET_TUNE_STOP_BITS.
14267         (bundling): Insert additional nops for MM-insns.
14268         (final_emit_insn_group_barriers): Add insertion of stop bits
14269         according `stops_p'.
14270         (ia64_reorg): Initiate the new varibales.
14271
14272         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
14273
14274         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
14275
14276         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
14277         insns at the end of block insn scheduling.
14278
14279         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
14280
14281         * sched-deps.c (remove_dependence, group_leader): Remove it.
14282         (add_dependence): Add dependence to group leader to.
14283         (set_sched_group_p): Add dependence to the first insn of the
14284         schedule group too.
14285         (sched_analyze_insn): Make dependence to jump as anti-dependence.
14286         Change true dependence by anti-dependence when
14287         `reg_pending_barrier'.
14288
14289         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
14290         add_branch_dependences): Ignore schedule groups.
14291
14292         * sched-ebb.c (init_ready_list): Ditto.
14293
14294         * (move_insn, set_priorities): Ditto.
14295
14296         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
14297         flag is clear after reload.
14298         (adjust_cost): Change cost only for output dependencies.
14299
14300         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
14301
14302         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
14303
14304         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
14305
14306         * target.h (gcc_target): Add member
14307         `dependencies_evaluation_hook'.
14308
14309         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
14310         macro.
14311         (TARGET_SCHED): Add initiatialization of the new member.
14312
14313         * sched-ebb.c: Include `target.h'.
14314         (schedule_ebb): Call `dependencies_evaluation_hook'.
14315
14316         * sched-rgn.c (schedule_region): Call
14317         `dependencies_evaluation_hook'.
14318
14319         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
14320         New macro.
14321         (ia64_dependencies_evaluation_hook): New function.
14322
14323         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
14324         Describe the new hook.
14325
14326         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
14327
14328         * target.h (gcc_target): Add members
14329         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
14330
14331         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
14332         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
14333         macros.
14334         (TARGET_SCHED): Add initiatialization of the new members.
14335
14336         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
14337         insn scheduling too.
14338         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
14339         initialize `ready_try'.
14340         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
14341         `dfa_new_cycle' says not to do it.
14342
14343         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
14344         bundling.
14345
14346         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
14347
14348         * config/ia64/ia64.c: Include `hashtab.h'.
14349         (ia64_first_cycle_multipass_dfa_lookahead_guard,
14350         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
14351         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
14352         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
14353         bundle_state_eq_p, insert_bundle_state,
14354         initiate_bundle_state_table, finish_bundle_state_table,
14355         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
14356         get_template, get_next_important_insn, bundling): New functions.
14357         (ia64_internal_sched_reorder): Remove it.
14358         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
14359         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
14360         (ia64_safe_itanium_requires_unit0): Remove it.
14361         (group_barrier_needed_p): Place group barrier right before a real
14362         insn.
14363         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
14364         Remove them.
14365         (bundle_name): New variable.
14366         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
14367         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
14368         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
14369         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
14370         temp_dfa_state, prev_cycle_state): New global variables.
14371         (insn_matches_slot, maybe_rotate, finish_last_head,
14372         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
14373         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
14374         find_best_packet, itanium_reorder, dump_current_packet,
14375         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
14376         (sched_data, sched_ready, sched_types): Remove them.
14377         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
14378         `init_insn_group_barriers'.
14379         (ia64_sched_reorder, ia64_sched_reorder2): Call
14380         ia64_dfa_sched_reorder.
14381         (ia64_variable_issue): Rewrite it.
14382         (bundle_state): New structure.
14383         (index_to_bundle_states, bundle_states_num,
14384         allocated_bundle_states_chain, free_bundle_state_chain): New
14385         global variables.
14386         (ia64_sched_finish): Add stop bits and call `bundling' after the
14387         2nd insn scheduling.
14388         (ia64_use_dfa_pipeline_interface): Return zero always.
14389         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
14390         insn scheduling.
14391         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
14392         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
14393         (ia64_reorg): Add bundling insns.
14394
14395         * doc/tm.texi
14396         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
14397         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
14398
14399         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
14400
14401         * config/ia64/ia64.md: Add Itanium1 DFA description.
14402         (itanium_class): Add `nop' and `pre_cycle'.  Add
14403         define_function_unit for `nop'.
14404         (nop): Change attribute `itanium_class'.
14405         (pre_cycle): New define_insn.
14406
14407         * config/ia64/ia64-protos.h (bundling_p): New external variable.
14408         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
14409         ia64_produce_address_p): New function prototypes.
14410
14411         * config/ia64/ia64.c (bundling_p): New global variable.
14412         (ia64_use_dfa_pipeline_interface,
14413         ia64_first_cycle_multipass_dfa_lookahead,
14414         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
14415         functions.
14416         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
14417         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
14418         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
14419         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
14420         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
14421         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
14422         (dfa_pre_cycle_insn): New variable.
14423
14424         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
14425
14426         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
14427         constructions.
14428
14429         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
14430         New function prototypes.
14431
14432         * genattrtab.c (main): Process the new constructions.
14433
14434         * genautomata.c (gen_presence_absence_set,
14435         process_presence_absence_names, process_presence_absence_patterns,
14436         add_presence_absence, check_absence_pattern_sets): Add parameter
14437         `final_p'.
14438         (unit_decl): Add new members `final_presence_list' and
14439         `final_absence_list'.
14440         (unit_pattern_rel_decl): Add new member `final_p'.
14441         (gen_final_presence_set, gen_final_absence_set): New functions.
14442         (process_decls): Use member `final_p'.
14443         (temp_reserv): New global variable.
14444         (reserv_sets_are_intersected): Add processing `final_presence_set'
14445         and `final_absence_set'.
14446         (initiate_states): Allocate `temp_reserv'.
14447         (unit_final_presence_set_table, unit_final_absence_set_table): New
14448         gloabal variables.
14449         (initiate_presence_absence_pattern_sets): Initiate them.
14450         (NDFA_to_DFA): Fix typo.
14451         (output_description): Output `final_presence_set' and
14452         `final_absence_set'.
14453
14454         * doc/md.texi (final_presence_set, final_absence_set): Describe
14455         them.
14456
14457         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
14458
14459         * genautomata.c (transform_3): Process a missing case (nothing on
14460         unit place).
14461
14462         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
14463
14464         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
14465         comments about queried units and the minimization.
14466
14467         * doc/md.texi: Ditto.
14468
14469         * genautomata.c (create_composed_state): Return nonzero if the new
14470         state has been created.
14471         (first_cycle_unit_presence): New function.
14472         (state_is_differed): Add new parameter.  Use the new function.
14473         Take queried units into account.
14474         (partition_equiv_class): Pass additional parameter to
14475         `state_is_differed'.
14476         (merge_states): Process composed states too.
14477         (build_automaton, create_automata, output_min_issue_delay_table,
14478         output_tables, output_statistics): Output more information.
14479         (output_reserved_units_table): Use function
14480         `first_cycle_unit_presence'.
14481         (output_tables): Output table of queried units even if the
14482         minimization is switched on.
14483         (write_automata): Output code for querying units even if the
14484         minimization is switched on.
14485
14486         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
14487
14488         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
14489         syntax of the constructions.
14490
14491         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
14492         extended syntax of the constructions.
14493
14494         * genautomata.c (unit_rel_decl): Rename it to
14495         `unit_pattern_rel_decl'.
14496         (pattern_set_el, pattern_reserv): New structures.
14497         (pattern_set_el_t, pattern_reserv_t): New types.
14498         (gen_presence_absence_set): New function.
14499         (process_presence_absence): Remove it.
14500         (process_presence_absence_names,
14501         process_presence_absence_patterns): New functions.
14502         (get_presence_absence_set): Remove it.
14503         (initiate_presence_absence_sets): Rename it on
14504         `initiate_presence_absence_pattern_sets'.  Use new function
14505         `form_reserv_sets_list'.
14506         (form_reserv_sets_list, check_presence_pattern_sets,
14507         check_absence_pattern_sets, output_pattern_set_el_list): New
14508         functions.
14509         (unit_decl): Change types of members `presence_list' and
14510         `absence_list'.
14511         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
14512         (decl): Change types of members `excl', `presence', and `absence'.
14513         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
14514         at the end of the vector.
14515         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
14516         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
14517         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
14518         (gen_presence_set, gen_absence_set): Use new function
14519         `gen_presence_absence_set'.
14520         (add_presence_absence): Process `pattern_list' instead of
14521         `source_list'.
14522         (process_decls): USe new functions
14523         `process_presence_absence_names' and
14524         `process_presence_absence_patterns'.
14525         (reserv_sets_are_intersected): Use new function
14526         `check_presence_pattern_sets'.
14527         (presence_set, absence_set): Remove them.
14528         (unit_presence_set_table, unit_absence_set_table): New global
14529         variables.
14530         (output_description): Use new function
14531         `output_pattern_set_el_list'.
14532         (generate): Use `initiate_presence_absence_pattern_sets'.
14533
14534         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14535
14536         * genattr.c (main): Add output of prototype of new interface
14537         function `dfa_clean_insn_cache'.
14538
14539         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
14540         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
14541         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
14542         the generated code.
14543         (write_automata): Call the new function.
14544
14545 2003-01-09  Jan Hubicka  <jh@suse.cz>
14546
14547         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
14548         correctly.
14549
14550 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
14551
14552         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
14553
14554 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
14555
14556         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
14557         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
14558         (CONSTRAINT_LEN): Provide default definition.
14559         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
14560         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
14561         (EXTRA_CONSTRAINT_STR): Likewise.
14562         (REG_CLASS_FROM_CONSTRAINT): Define.
14563         * genoutput.c (check_constraint_len, constraint_len): New functions.
14564         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
14565         constraint / modifier.
14566         (gen_insn): Call check_constraint_len.
14567         * local-alloc.c (block_alloc): Update to use new macros / pass
14568         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
14569         * ra-build.c (handle_asm_insn): Likewise.
14570         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14571         (constrain_operands, peep2_find_free_register): Likewise.
14572         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
14573         * regmove.c (find_matches): Likewise.
14574         * reload.c (push_secondary_reload, find_reloads): Likewise.
14575         (alternative_allows_memconst): Likewise.
14576         * reload1.c (maybe_fix_stack_asms): Likewise.
14577         (reload_cse_simplify_operands): Likewise.
14578         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14579         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
14580         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
14581         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
14582         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
14583         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
14584
14585         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
14586
14587 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
14588
14589         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
14590         length.
14591         (*extzv_1_r_h8300hs): Likewise.
14592         (*extzv_1_r_inv_h8300): Likewise.
14593         (*extzv_1_r_inv_h8300hs): Likewise.
14594
14595 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
14596
14597         * config/h8300/h8300.h (PREDICATE_CODES): New.
14598
14599 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
14600
14601         * config/h8300/h8300.md (*addsi3_upper): New.
14602         (*iorsi3_shift): Likewise.
14603         (two splitters): Likewise.
14604         (*addsi3_shift): Likewise.
14605         (two splitters): Likewise.
14606
14607 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
14608
14609         * Makefile.in (optabs.o): Add dependency on basic-block.h.
14610         * basic-block.h (control_flow_insn_p): Fuction was exported.
14611         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
14612         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
14613         notes only when the region is contained in a single basic block.
14614
14615 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
14616
14617         PR inline-asm/8832
14618         * tree.h (expand_asm): New prototype.
14619         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
14620         to do so.
14621         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
14622         down to expand_asm.
14623         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
14624         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
14625         (volatile_refs_p) [ASM_INPUT]: Likewise.
14626         (side_effects_p) [ASM_INPUT]: Likewise.
14627
14628 2003-01-09  Jan Hubicka  <jh@suse.cz>
14629
14630         * i386.md (*mul*): FIx constraints; remove confused comment; fix
14631         athlon_decode attributes
14632         (imul/k8 optimization peep2s): New.
14633
14634         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
14635         * i386.md (type attribute): Add ssecomi.
14636         (unit, memory, prefix attributes): Handle ssecomi.
14637         (cvt?2? patterns): Fix athlon_decode attribute
14638         (comi patterns): Set attribute to ssecomi.
14639
14640         PR target/8343
14641         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
14642
14643 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
14644
14645         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
14646         that match register_operands.
14647         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
14648         register_operand the default case.
14649
14650 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
14651
14652         PR c/8032
14653         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
14654         an empty element, do not advance the pointer to unfilled
14655         fields if there are pending initializers.
14656
14657 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
14658
14659         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
14660         (install-gcc-tooldir, install-cpp, installdirs,
14661         install-common, install-driver, install-info, install-man,
14662         install-headers, install-include-dir, install-headers-tar,
14663         install-headers-cpio, install-headers-cp, install-mkheaders,
14664         install-collect2, uninstall): Prepend $(DESTDIR) to
14665         destination paths in all (un)installation commands.
14666         (install-driver): Rewrite $(LN) commands to support DESTDIR
14667         with "ln" as well as with "ln -s".
14668         (installdirs): Simply use mkinstalldirs.
14669         (install-libgcc, install-multilib): Also pass DESTDIR.
14670         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
14671         installation destination variable ldir.
14672         * config/alpha/t-osf4, config/arm/t-netbsd,
14673         config/ia64/t-hpux, config/mips/t-iris5-6,
14674         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
14675         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
14676         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
14677         in the definition of SHLIB_INSTALL.
14678         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
14679         $(libsubdir) in the installation commands.
14680
14681 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14682
14683         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
14684         non-optimizing compile.
14685         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
14686         compile.
14687
14688 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
14689
14690         * config/i386/i386.c (ix86_attribute_table): Add new attributes
14691         ms_struct and gcc_struct.
14692         (ix86_handle_struct_attribute): New function.
14693         (ix86_ms_bitfield_layout_p): Update to take new attributes
14694         into account.
14695         * doc/extend.texi: Document new attributes.
14696         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
14697
14698 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
14699
14700         PR optimization/8750
14701         * config/i386/i386.c (ix86_expand_prologue): Don't allow
14702         scheduling pass to move insns across __alloca call.
14703
14704 2003-01-08  Dale Johannesen  <dalej@apple.com>
14705
14706         * config/rs6000/rs6000.md:  Replace *store_multiple_string
14707         with *stmsi[3-8].
14708
14709 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
14710
14711         PR target/9210
14712         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
14713         Set SYMBOL_REF_FLAG on local data sym_ref.
14714
14715 2003-01-08  Dale Johannesen  <dalej@apple.com>
14716
14717         * function.c (assign_parms):  Don't set pretend_args_size if
14718           REG_PARM_STACK_SPACE.
14719           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
14720           pretend_args_size.
14721
14722 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
14723
14724         * gcc.hlp: Delete.
14725
14726 2003-01-09  Jan Hubicka  <jh@suse.cz>
14727
14728         * i386.c  (ix86_expand_int_addcc): Fix thinko.
14729
14730 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
14731
14732         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
14733         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
14734         as hook_bool_tree_hwi_hwi_tree_true.
14735         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
14736         (rs6000_emit_epilogue): Same.
14737         (rs6000_output_mi_thunk): Re-implement as RTL.
14738         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
14739         xcoffout_declare_function if any debugging enabled.
14740
14741 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
14742
14743         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
14744         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
14745         * config/mips/mips.h (enum processor_type): Rename
14746         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
14747         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
14748         Add PROCESSOR_M4K.
14749         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
14750         (ISA_MIPS32R2): New define.
14751         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
14752         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
14753         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
14754         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
14755         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
14756         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
14757         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
14758         compiling MIPS16 code.
14759         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
14760         comment.
14761         (ISA_HAS_SEB_SEH): New define.
14762         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
14763         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
14764         processor_type value renaming.  Add support for MIPS32R2.
14765         Clean up comments, and move "sb1" entry with other MIPS64 CPU
14766         entries.
14767         (override_options): Reimplement -mipsN option handling so that
14768         it will work correctly for -mips32r2.  Avoid branch-likely
14769         instructions on MIPS32R2.
14770         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
14771         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
14772         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
14773         (extendhisi2_hw, extendqisi2_hw): New.
14774         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
14775         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
14776         MIPS32R2, and MIPS64.
14777         (LINK_SPEC): Pass -mips32r2 to linker.
14778         * config/mips/t-isa3264: Built -mips32r2 multilibs.
14779         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
14780         for mips32r2 in the -march description.  Alphabetically sort
14781         CPU names in the -march description.  Add long-missed -mips32
14782         and -mips64 to MIPS option summary.
14783
14784         * config.gcc: Update copyright years to include 2003.
14785         * config/mips/mips.c: Likewise.
14786         * config/mips/mips.h: Likewise.
14787         * config/mips/mips.md: Likewise.
14788         * config/mips/netbsd.h: Likewise.
14789         * doc/invoke.texi: Likewise.
14790
14791 2003-01-08  Andreas Schwab  <schwab@suse.de>
14792
14793         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
14794         variable.
14795         * configure: Regenerated.
14796
14797 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
14798
14799         * config/h8300/h8300.c (output_logical_op): Replace byte/word
14800         extraction of det with b0, b1, w0, w2, etc.
14801         (compute_logical_op_length): Likewise.
14802         (compute_logical_op_cc): Likewise.
14803
14804 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
14805
14806         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
14807         HIGH on all variants.
14808
14809 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
14810
14811         * Makefile.in (PARTITION_H): New.
14812         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
14813         * basic-block.h: Include hard-reg-set.h.
14814
14815 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
14816
14817         * arm.h (ENABLE_XF_PATTERNS): Delete.
14818         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
14819         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
14820         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
14821         (cmpxf_trap): Delete.
14822         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
14823
14824 2003-01-08  Jan Hubicka  <jh@suse.cz>
14825
14826         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
14827         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
14828         (add??cc): New expanders.
14829         * i386.c (expand_int_addcc): New function.
14830         * i386-protos.h (expand_int_addcc): Declare.
14831
14832         * alias.c (memory_modified_1): New static function.
14833         (memory_modified): New static varaible.
14834         (memory_modified_in_insn_p): New global function.
14835         * rtl.h (memory_modified_in_insn_p): Declare.
14836         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
14837         references.
14838
14839         * expr.h (emit_conditional_add): Declare.
14840
14841 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
14842
14843         PR other/8947
14844         * doc/invoke.texi (-malign-double): Explain that the option breaks
14845         binary compatibility.
14846
14847 2003-01-08  Andreas Schwab  <schwab@suse.de>
14848
14849         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
14850         should come from the generic *-*-linux* entry.
14851
14852 2003-01-07  Jan Hubicka  <jh@suse.cz>
14853
14854         * cselib.c (cselib_current_insn_in_libcall): New static variable.
14855         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
14856         we are inside libcall.
14857         * cselib.h (elt_loc_list): Add in_libcall.
14858         * gcse.c (do_local_cprop): Do not copy propagate using insns
14859         in libcalls.
14860
14861 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
14862
14863         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
14864         not normally affect to issue rate.
14865
14866 2003-01-07  Jan Hubicka  <jh@suse.cz>
14867
14868         * genopinit.c (optabs): Add addc_optab.
14869         * ifcvt.c (noce_try_store_flag): Rename to ...
14870         (noce_try_addcc): ... this one; handle generic conditional increment.
14871         (noce_process_if_block): Update noce_try_addcc call.
14872         * optabs.c (emit_conditional_add): New.
14873         (init_obtabs): Initialize addc_optab.
14874         * optabs.h (optab_index): Add OTI_addcc.
14875         (addcc_optab): New macro.
14876         * md.texi: Document addMcc
14877
14878         PR target/8322
14879         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
14880         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
14881         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
14882
14883         * reload1.c (delete_output_reload): Avoid repeated attempts
14884         to delete insn.
14885
14886 2003-01-07  Andreas Schwab  <schwab@suse.de>
14887
14888         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
14889         Move --enable-initfini-array check ...
14890         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
14891         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
14892         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
14893         * configure: Rebuild.
14894
14895 2003-01-07  Richard Henderson  <rth@redhat.com>
14896
14897         * alias.c (find_base_value): Only use new_reg_base_value shortcut
14898         if the register is set once.
14899
14900 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
14901
14902         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
14903         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
14904         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
14905
14906 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
14907             Sunil Davasam  <sunil.k.davasam@intel.com>
14908
14909         PR libstdc++/9076
14910         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
14911         DW_CFA_same_value, read next and ignore.
14912
14913 2003-01-07  Richard Henderson  <rth@redhat.com>
14914
14915         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
14916
14917 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
14918
14919         * cfg.c: Include alloc-pool.h
14920         (edge_pool): New pool.
14921         (bb_pool): New pool.
14922         (first_deleted_edge): Remove.
14923         (first_deleted_block): Remove.
14924         (init_flow): Alloc/free the pools.
14925         (free_edge): Use pools.
14926         (alloc_block): Ditto.
14927         (expunge_block): Ditto.
14928         (cached_make_edge): Ditto.
14929
14930         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
14931
14932 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
14933
14934         * et-forest.c: Include alloc-pool.h.
14935         (struct et_forest): Add node_pool and occur_pool.
14936         (et_forest_create): Create the new pools.
14937         (et_forest_delete): Delete them.
14938         (et_forest_add_node): Allocate and free using pools.
14939         (et_forest_add_edge): Ditto.
14940         (et_forest_remove_node): Ditto.
14941         (et_forest_remove_edge): Ditto.
14942
14943         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
14944
14945 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
14946
14947         * config/h8300/h8300.c (output_logical_op): Simplify and
14948         optimize the handling of SImode.
14949         * config/h8300/h8300.c (compute_logical_op_length): Update
14950         accordingly.
14951         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
14952
14953 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
14954
14955         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
14956         big-endian correction to indirect arguments too.
14957
14958 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
14959
14960         Segher Boessenkool  <segher@koffie.nl>
14961
14962         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
14963         (alt_reg_names): Ditto, fix formatting.
14964         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
14965
14966 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
14967
14968         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
14969         (output_logical_op): Constify intval and det.
14970         (compute_logical_length): Likewise.
14971         (compute_logical_cc): Likewise.
14972         (output_a_shift): Constify mask.
14973         (h8300_encode_label): Constify len.
14974
14975 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
14976
14977         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
14978         (h8300_expand_epilogue): Likewise.
14979
14980 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
14981
14982         Segher Boessenkool  <segher@koffie.nl>
14983
14984         * config/rs6000/altivec.md: Remove spaces from assembler
14985         instruction argument lists.
14986
14987 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14988
14989         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
14990         c4x_assembler_function_p.
14991         (c4x_null_epilogue_p): Complement return value, all uses updated.
14992         (c4x_insert_attributes): Add naked.
14993         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
14994         * doc/extend.texi: Update C4x function attributes.
14995
14996 2003-01-06  Richard Henderson  <rth@redhat.com>
14997
14998         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
14999         properly when changing "local-ness".
15000         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
15001
15002 2003-01-06  Dale Johannesen  <dalej@apple.com>
15003
15004         * config/darwin-protos.h:  Add prototypes for new section functions.
15005
15006 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
15007
15008         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
15009         to EABI.
15010
15011 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
15012
15013         * hwint.h: If the current compiler has no 64-bit type at all,
15014         make HOST_WIDEST_INT 32 bits.
15015
15016 2003-01-06  Eric Christopher  <echristo@redhat.com>
15017
15018         * config/mips/mips.md (movdf_internal2): Fix constraints.
15019
15020 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15021
15022         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
15023
15024 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
15025
15026         * config/mips/mips.md (leadi): Use dla rather than la.
15027
15028 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
15029
15030         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
15031         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
15032
15033 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
15034
15035         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
15036         redefinition.
15037
15038 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15039
15040         * config/h8300/h8300.md (*extzv_8_23): New.
15041
15042 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15043
15044         * pa64-hpux.h (JCR_SECTION_NAME): Define.
15045         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
15046         USE_EH_FRAME_REGISTRY when defining.
15047
15048 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15049
15050         * config/h8300/h8300.c (output_a_shift): Do not output a
15051         variable shift.
15052         * config/h8300/h8300.md (two splitters): New.
15053
15054 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
15055
15056         * config/mips/mips.md: Disable the movstrsi define_split.
15057
15058 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15059
15060         * alloc-pool.c: Don't include "libiberty.h".
15061         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
15062         * convert.c (convert_to_real): Hide unused variable.
15063
15064 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15065
15066         * Makefile.in (gtyp-gen.h): Const-ify.
15067         * gcov-dump.c (tag_table): Likewise.
15068
15069 2003-01-04  Bruce Korb  <bkorb@gnu.org>
15070
15071         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
15072         of *both* the file name and the fix name.
15073
15074 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
15075
15076         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
15077         collect2.
15078         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
15079         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
15080         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
15081         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
15082         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
15083         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
15084         elfos.h.
15085         (EH_FRAME_IN_DATA_SECTION): Delete define.
15086         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
15087         (STARTFILE_SPEC): Use crtbegin.o.
15088         (ENDFILE_SPEC): Use crtend.o.
15089         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
15090         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
15091         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
15092         DTOR_LIST_BEGIN): Define.
15093         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
15094         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
15095         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
15096
15097 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
15098
15099         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
15100         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
15101         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
15102         Cleanup handling of replacement text.
15103         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
15104
15105 2003-01-04  Bruce Korb  <bkorb@gnu.org>
15106
15107         * fixinc/tests/base/math.h: removed obsolete results
15108         * fixinc/tests/base/stdlib.h: ditto
15109         * fixinc/tests/base/sys/param.h: ditto
15110         * fixinc/tests/base/sys/stat.h: ditto
15111         * fixinc/tests/base/time.h: ditto
15112         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
15113         * fixinc/tests/base/sys/byteorder.h: ditto
15114         * fixinc/inclhack.def: Remove superfluous backslashes
15115
15116 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
15117
15118         * config/h8300/h8300-protos.h: Add prototypes for
15119         the new functions defined below.
15120         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
15121         define.
15122         (dosize): Emit RTL instead of assembly code.
15123         (push): Likewise.
15124         (pop): Likewise.
15125         (h8300_output_function_prologue): Remove.
15126         (h8300_expand_prologue): New.
15127         (h8300_expand_epilogue): New.
15128         (h8300_output_function_epilogue): Do only the reset of
15129         pragma_saveall.
15130         * config/h8300/h8300.md (push_h8300): New.
15131         (push_h8300hs): Likewise.
15132         (pop_h8300): Likewise.
15133         (pop_h8300hs): Likewise.
15134         (*stm_h8300s_2): Change the name to stm_h8300s_2.
15135         (*stm_h8300s_3): Change the name to stm_h8300s_3.
15136         (*stm_h8300s_4): Change the name to stm_h8300s_4.
15137         (*ldm_h8300s_2): New.
15138         (*ldm_h8300s_3): Likewise.
15139         (*ldm_h8300s_4): Likewise.
15140         (return): Likewise.
15141         (*return_1): Likewise.
15142         (prologue): Likewise.
15143         (epilogue): Likewise.
15144         (monitor_prologue): Likewise.
15145
15146 2003-01-03  Dale Johannesen  <dalej@apple.com>
15147
15148         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
15149           machopic_picsymbol_stub1.
15150           (EXTRA_SECTION_FUNCTIONS):  Ditto.
15151         * rs6000/rs6000.c:  Update copyright.
15152           (machopic_output_stub):  Use them.  Remove an insn from stub code.
15153
15154 2003-01-02  Jason Merrill  <jason@redhat.com>
15155
15156         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
15157
15158         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
15159         static/external decls.
15160
15161         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
15162         outermost scope.
15163         * c-decl.c (c_make_fname_decl): Push the decls there, too.
15164
15165 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
15166
15167         * config/h8300/h8300-protos.h: Add a prototype for
15168         h8300_current_function_interrupt_function_p.
15169         * config/h8300/h8300.c (interrupt_handler): Remove.
15170         (os_task): Likewise.
15171         (monitor): Likewise.
15172         (pragma_interrupt): New.
15173         (WORD_REG_USED): Use
15174         h8300_current_function_interrupt_function_p.
15175         (dosize): Likewise.
15176         (h8300_output_function_prologue): Likewise.
15177         Do not set interrupt_handler, os_task, monitor.
15178         (h8300_output_function_prologue): Use
15179         h8300_current_function_interrupt_function_p.
15180         Do not set interrupt_handler, os_task, monitor.
15181         (h8300_current_function_interrupt_function_p): New.
15182         (h8300_pr_interrupt): Set pragma_interrupt.
15183         (h8300_insert_attributes): Reset pragma_interrupt.
15184
15185 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15186
15187         * doc/install.texi (Configuration): Fix markup for reference to
15188         gcc/config.gcc.
15189
15190 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
15191
15192         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
15193         (*iorhi3_two_qi): Likewise.
15194         (*iorsi3_zexthi): Likewise.
15195         (*xorhi3_zextqi): Likewise.
15196         (*xorsi3_zexthi): Likewise.
15197         (*xorsi3_zextqi): Likewise.
15198
15199 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
15200
15201         * config/h8300/h8300.c (stack_pointer_operand): New.
15202         (const_int_gt_2_operand): Likewise.
15203         (const_int_ge_8_operand): Likewise.
15204         * config/h8300/h8300.md (a splitter): Likewise.
15205         (a peephole2): Likewise.
15206         * config/h8300/h8300-protos.h: Add prototypes for the new
15207         functions above.
15208
15209 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
15210
15211         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
15212         objc/objc-act.h: Fix copyright years.
15213
15214 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
15215
15216         * doc/passes.texi: Fix documentation for -fssa-ccp
15217
15218 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
15219
15220         * gccbug.in: Update for new categories.
15221
15222 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
15223
15224         * config/h8300/h8300.md: Reorder some patterns.
15225
15226 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
15227
15228         * config/h8300/h8300.c (output_logical_op): Fix a warning.
15229
15230 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
15231
15232         * config/darwin-protos.h, config/c4x/c4x-protos.h,
15233         config/cris/cris-protos.h, config/i370/i370-protos.h,
15234         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
15235         config/v850/v850-protos.h: Use struct, and don't conditionally
15236         compile on GCC_C_PRAGMA_H.
15237
15238 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
15239
15240         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
15241         * config/h8300/h8300-protos.h: Likewise.
15242         * config/sh/sh-protos.h: Likewise.
15243
15244 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
15245
15246         * config/arm/arm-protos.h: Use struct cpp_reader instead of
15247         cpp_reader.
15248         * config/h8300/h8300-protos.h: Likewise.
15249         * config/sh/sh-protos.h: Likewise.
15250
15251 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
15252
15253         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
15254         arm_pr_long_calls_off): Use struct.
15255         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
15256         : Similarly.
15257         Don't include cpplib.h.
15258         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
15259         sh_pr_nosave_low_regs): Similarly.
15260
15261 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
15262
15263         * config/h8300/h8300.c: Include cpplib.h.
15264
15265 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
15266
15267         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
15268           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
15269           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
15270           "GCC" in the copyright header.
15271
15272 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
15273
15274         * c-pragma.c (c_register_pragma): New.
15275         (init_pragma): Use it.
15276         * c-pragma.h (cpp_register_pragma): Don't declare.
15277         (c_register_pragma): New.
15278         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
15279         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
15280         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
15281         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
15282         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
15283         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
15284         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
15285         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
15286         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
15287         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
15288         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
15289         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
15290
15291 See ChangeLog.8 for earlier changes.