OSDN Git Service

7994a01ae5bfefdc449a522058a278a138197011
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-19  Richard Henderson  <rth@redhat.com>
2
3         * system.h (STRIP_NAME_ENCODING): Poison it.
4         * output.h (STRIP_NAME_ENCODING): Remove.
5         (default_strip_name_encoding): Declare.
6         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
7         * target.h (strip_name_encoding): New.
8         * varasm.c (default_strip_name_encoding): New.
9
10         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
11         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
12         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
13         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
14         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
15         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
16         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
17         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
18         config/v850/v850.h: Use the hook, not the macro.
19
20         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
21         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
22         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
23         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
24         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
25         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
26         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h, 
27         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
28         config/v850/v850.c, config/v850/v850.h:
29         Move STRIP_NAME_ENCODING to out-of-line function and add
30         TARGET_STRIP_NAME_ENCODING.
31
32         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
33         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
34         with TARGET_STRIP_NAME_ENCODING referencing existing function;
35         make function static.
36
37         * xcoffout.c: Include target.h
38         * Makefile.in (xcoffout.o): Update.
39
40         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
41         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
42         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
43         reloc argument unused.
44         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
45
46         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
47         STRIP_NAME_ENCODING docs.
48
49 2002-05-19  Andreas Jaeger  <aj@suse.de>
50
51         * gengenrtl.c: Add prototype for excluded_rtx.
52
53         * real.h: Add prototype for exact_real_truncate.
54
55 2002-05-18  Richard Henderson  <rth@redhat.com>
56
57         * system.h (ENCODE_SECTION_INFO): Poison it.
58         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
59         * target.h (encode_section_info): New.
60         * varasm.c (make_decl_rtl, output_constant_def): Use it.
61         * hooks.c (hook_tree_int_void): New.
62         * hooks.h: Declare it.
63
64         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
65         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
66         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
67         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
68         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
69         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
70         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
71         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
72         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
73         config/mcore/mcore-protos.h, config/mcore/mcore.c,
74         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
75         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
76         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
77         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
78         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
79         referencing existing function.  Make function static.
80
81         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
82         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
83         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
84         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
85         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
86         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
87         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
88         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
89         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
90         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
91         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
92         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
93         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
94         Move ENCODE_SECTION_INFO to out-of-line function and add
95         TARGET_ENCODE_SECTION_INFO.
96
97         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
98         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
99
100         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
101         from SUBTARGET_*
102         (switch_to_section): Replace in_rdata case with in_readonly_data.
103
104         * config/h8300/h8300.c (h8300_encode_label): Make static.
105         * config/h8300/h8300-protos.h: Update.
106
107         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
108         from rs6000_encode_section_info; make static.
109         (rs6000_xcoff_encode_section_info): New.
110
111         * config/v850/v850.c (v850_encode_data_area): Make static.
112         * config/v850/v850-protos.h: Update.
113
114         * config/vax/vax.c: Include flags.h.
115         (vms_select_section): Fix typo.
116
117         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
118         ENCODE_SECTION_INFO docs.
119
120 2002-05-18  Richard Henderson  <rth@redhat.com>
121
122         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
123         REGISTER_TARGET_PRAGMAS.
124         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
125
126         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
127
128 2002-05-18  Richard Henderson  <rth@redhat.com>
129
130         * system.h (SELECT_RTX_SECTION): Poison.
131         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
132         * target.h (select_rtx_section): New.
133         * varasm.c (output_constant_pool): Use it.
134         (default_select_rtx_section, default_elf_select_rtx_section): New.
135         * output.h: Declare them.
136
137         * config/darwin.h (SELECT_RTX_SECTION): Move ...
138         * config/darwin.c (machopic_select_rtx_section): ... here.
139         * config/darwin-protos.h: Update.
140
141         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
142         * config/nextstep.c (machopic_select_rtx_section): ... here.
143         (nextstep_select_section): Rename variable to avoid macro clash.
144         * config/nextstep-protos.h: Update.
145
146         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
147         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
148         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
149         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
150         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
151         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
152         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
153         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
154         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
155         (SELECT_RTX_SECTION): Remove.
156
157         * config/darwin.h, config/elfos.h, config/nextstep.h,
158         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
159         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
160         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
161         config/sparc/lynx.h, config/xtensa/xtensa.c
162         (TARGET_ASM_SELECT_RTX_SECTION): New.
163
164         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
165         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
166         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
167         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
168         (ia64_aix_select_rtx_section): New.
169         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
170         redefining.
171         * config/mips/mips.c (mips_select_rtx_section): Make static.
172         Support ELF SHF_MERGE features.
173         * config/mips/mips-protos.h: Update.
174         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
175         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
176         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
177         make static, fall back to default_elf_select_rtx_section.
178         * config/rs6000/rs6000-protos.h: Update.
179         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
180         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
181         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
182         * config/romp/romp.c (romp_select_rtx_section): New.
183         * config/s390/s390.c (s390_select_rtx_section): New.
184         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
185         declarations before target macro definition.
186         (xtensa_emit_call): Use static buffer.
187         (xtensa_select_rtx_section): New.
188         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
189         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
190         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
191
192         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
193         SELECT_RTX_SECTION docs.
194
195 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
196
197         * i386.md (movsi/movdi): Fix template.
198         (sse2 patterns): Set attributes consistently.
199
200         * i386.md (pushqi2, ashrqi_*): Fix constraint.
201
202 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
203
204         * optabs.c (complex_part_zero_p): New.
205         * (expand_cmplxdiv_straight): Use it.
206         * (expand_cmplxdiv_wide): Ditto.
207         * (expand_binop): Ditto.
208
209 2002-05-18  Richard Henderson  <rth@redhat.com>
210
211         * final.c (HAVE_READONLY_DATA_SECTION): New.
212         (shorten_branches): Use it instead of ifdefs.
213         * varasm.c (enum in_section): Add in_readonly_data.
214         (text_section, data_section): Tidy.
215         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
216
217         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
218         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
219         (READONLY_DATA_SECTION): Don't undef.
220
221         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
222         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
223         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
224
225         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
226         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
227         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
228         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
229
230         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
231         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
232         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
233         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
234         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
235         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
236         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
237         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
238         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
239
240         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
241         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
242         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
243         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
244         config/pa/pa64-hpux.h, config/sparc/litecoff.h
245         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
246
247         * config/elfos.h, config/netware.h, config/svr3.h,
248         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
249         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
250         config/h8300/h8300.h, config/i386/i386-interix.h,
251         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
252         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
253
254         * config/elfos.h, config/netware.h, config/svr3.h,
255         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
256         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
257         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
258         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
259
260         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
261         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
262         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
263         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
264         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
265         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
266         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
267         config/rs6000/sysv4.h, config/v850/v850.h
268         (EXTRA_SECTIONS): Remove in_const/in_rdata.
269         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
270
271         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
272         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
273         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
274         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
275         * config/alpha/alpha.c (alpha_start_function): Likewise.
276         (alpha_write_linkage): Likewise.
277         * config/m32r/m32r.c (m32r_select_section): Likewise.
278         * config/m88k/m88k.c (m88k_select_section): Likewise.
279         * config/mips/mips.c (mips_select_rtx_section): Likewise.
280         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
281         (rs6000_elf_select_section): Likewise.
282         * config/v850/v850.c (v850_select_section): Likewise.
283
284         * config/1750a/1750a.h, config/i860/sysv3.h
285         (READONLY_DATA_SECTION_ASM_OP): New.
286         READONLY_DATA_SECTION_ASM_OP.
287         * config/i386/interix.c, config/i386/winnt.c
288         (i386_pe_unique_section): Always use .rdata prefix.
289         * config/pa/som.h (readonly_data): Always switch to read-only section.
290         (READONLY_DATA_SECTION): Predicate on flag_pic.
291         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
292         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
293         (READONLY_DATA_SECTION): Update.
294
295 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
296
297         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
298         is used without -Wformat.
299         * c-common.h (warn_format_zero_length): Declare extern.
300         * c-decl.c (warn_options): Add "format-zero-length".
301         * c-format.c (warn_format_zero_length): Declare.
302         (set_Wformat): Set warn_format_zero_length for -Wformat.
303         (check_format_info): Only warn about zero-length formats if
304         warn_format_zero_length is true.  Include the format type
305         name in the warning message.
306         * doc/invoke.texi: Document -Wformat-zero-length.
307         * testsuite/gcc.dg/format/zero-length-1.c: New test.
308
309 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
310
311         * timevar.c: Fix formatting.
312         * tlink.c: Likewise.
313         * toplev.c: Likewise.
314         * tree-dump.c: Likewise.
315         * tree-inline.c: Likewise.
316
317 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
318
319         * cppinit.c (cpp_post_options): If preprocessed, turn off
320         traditional.  If traditional, turn off column numbers.
321         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
322         * cpptrad.c (handle_newline): Update line_base.
323         (skip_comment): Handle -Wcomment.
324
325 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
326
327         * cppinit.c (struct builtin): Remove unused fields.
328         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
329         (operator_array): New - was second half of builtin_array.
330         (init_builtins): Simplify loop over builtin_array/operator_array.
331
332 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
333
334         * defaults.h (UNIQUE_SECTION): Remove.
335         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
336
337 2002-05-17  Richard Henderson  <rth@redhat.com>
338
339         * expr.c (init_expr_once): Don't use start/end_sequence.
340         Use rtx_alloc instead of emit_insn.
341         * toplev.c (lang_dependent_init): Run init_expr_once here ...
342         (lang_independent_init): ... not here.
343
344 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
345
346         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
347
348 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
349
350         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
351         for fixed registers, possibly used for global register variables.
352         (initial_elimination_offset, avr_output_function_prologue,
353         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
354
355 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
356
357         * Makefile.in: Update for cpptrad.c.
358         * cpphash.h (struct cpp_buffer): New members for buffer
359         overlays.
360         (struct cpp_reader): New members for traditional output.
361         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
362         * cppinit.c (cpp_create_reader): Set trad_line.
363         (cpp_destroy): Free trad_out_base if used.
364         (cpp_read_main_file): Overlay an empty buffer if traditional.
365         (cpp_finish_options): Don't do builtins.
366         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
367         (cpp_handle_option): Handle it.
368         * cpplex.c (continue_after_nul): New.
369         (_cpp_lex_direct): Use handle_nul.
370         * cpplib.h (struct cpp_options): New traditional option.
371         * cpptrad.c: New file.
372
373 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
374
375         * c-common.c (c_common_init_options): Use C89 for Objective-C,
376         and set the options flag.
377         * cppinit.c (lang_flags): Remove objc.
378         (lang_defaults): Remove OBJC and OBJCXX.
379         (set_lang): Update.
380         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
381         (cpp_handle_option): Remove -+ and -lang-objc++.
382         For ObjC, just set a flag.
383         (print_help): Update.
384         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
385
386 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
387
388         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
389         bootstrap with -mips3.
390
391 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
392
393         * final.c: Fix formatting.
394         * fix-header.c: Likewise.
395         * flow.c: Likewise.
396         * fold-const.c: Likewise.
397         * function.c: Likewise.
398
399 2002-05-17  David S. Miller  <davem@redhat.com>
400
401         PR c/6689, PR optimization/6615
402         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
403         and make it a pointer to rtx.  Update comments.
404         (update_equiv_regs): When scanning for equivalences, record
405         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
406         it while making the equiv replacements.
407
408 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
409
410         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
411
412 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
413
414         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
415         when encoding visibility into SYMBOL_REF_FLAG.
416
417 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
418
419         * expr.c (force_operand): Fix reversed move.
420
421 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
422
423         * doc/install.texi (Testing): Mention two common DejaGnu warnings
424         that can be ignored.
425
426 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
427
428         * doc/install.texi (Final install): Recommend to install into a
429         "clean" target directory.
430
431 2002-05-17  Richard Henderson  <rth@redhat.com>
432
433         * config/ia64/ia64.md: Use braced strings instead of quoted strings
434         for code blocks.  Tidy whitespace.
435
436 2002-05-17  Richard Henderson  <rth@redhat.com>
437
438         * hooks.c (hook_tree_bool_false): New.
439         * hooks.h: Declare it.
440         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
441         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
442         * target.h (select_section, unique_section): New.
443         (in_small_data_p): New.
444         * varasm.c (resolve_unique_section): Use hooks instead of macros.
445         (variable_section, output_constant_def_contents): Likewise.
446         (default_select_section, default_unique_section): New.
447         (categorize_decl_for_section, default_elf_select_section): New.
448         * output.h: Declare them.
449
450         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
451         (TARGET_ASM_SELECT_SECTION): New.
452         (SELECT_SECTION): Move ...
453         * config/darwin.c (machopic_select_section): ... here.
454         * config/darwin-protos.h: Update.
455
456         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
457         (SELECT_SECTION): Move ...
458         * config/nextstep.c (nextstep_select_section): ... here.
459         * config/nextstep-protos.h: Update.
460
461         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
462         (TARGET_ASM_SELECT_SECTION): New.
463         * config/svr3.h (SELECT_SECTION): Remove.
464
465         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
466         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
467         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
468         (alpha_encode_section_info): Use it.
469         * config/alpha/alpha-protos.h: Update.
470         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
471         (SELECT_SECTION, UNIQUE_SECTION): Remove.
472         (TARGET_ASM_SELECT_SECTION): New.
473         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
474
475         * config/arm/pe.h (UNIQUE_SECTION): Remove.
476         (TARGET_ASM_UNIQUE_SECTION): New.
477
478         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
479         (avr_unique_section): Rename from unique_section; make static.
480         * config/avr/avr-protos.h: Update.
481         * config/avr/avr.h (UNIQUE_SECTION): Remove.
482
483         * config/c4x/c4x.h (SELECT_SECTION): Remove.
484
485         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
486         (TARGET_ASM_UNIQUE_SECTION): New.
487         * config/i386/i386-interix.h: Likewise.
488         * config/i386/win32.h: Likewise.
489         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
490         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
491         * config/i386/sco5.h (SELECT_SECTION): Remove.
492         (TARGET_ASM_SELECT_SECTION): New.
493         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
494
495         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
496         instead of SELECT_SECTION.
497         * config/m68k/dpx2.h: Likewise.
498         * config/rs6000/lynx.h: Likewise.
499
500         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
501         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
502         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
503         (ia64_in_small_data_p): New.
504         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
505         (ia64_aix_select_section, ia64_aix_unique_section): New.
506         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
507         (SELECT_SECTION, UNIQUE_SECTION): Remove.
508
509         * config/m32r/m32r.h (SELECT_SECTION): Remove.
510         (TARGET_ASM_SELECT_SECTION): New.
511         * config/m32r/m32r.c (m32r_select_section): Take align argument.
512         * config/m32r/m32r-protos.h: Update.
513
514         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
515         (SELECT_SECTION): Move ...
516         * config/m88k/m88k.c (m88k_select_section): ... here.
517
518         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
519         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
520         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
521         (mcore_unique_section): Make static.
522         * config/mcore/mcore-protos.h: Update.
523
524         * config/mips/elf.h (UNIQUE_SECTION): Remove.
525         (TARGET_ASM_UNIQUE_SECTION): New.
526         * config/mips/elf64.h: Likewise.
527         * config/mips/iris6gld.h: Likewise.
528         * config/mips/linux.h: Likewise.
529         * config/mips/mips-protos.h: Update.
530         * config/mips/mips.c (mips_select_section): Add align argument.
531         * config/mips/mips.h (SELECT_SECTION): Remove.
532         (TARGET_ASM_SELECT_SECTION): New.
533
534         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
535         * config/mmix/mmix.c (mmix_select_section): Remove.
536         (mmix_unique_section): Remove.
537         * config/mmix/mmix-protos.h: Update.
538
539         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
540         (SELECT_SECTION): Move ...
541         * config/pa/pa.c (pa_select_section): ... here.
542         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
543
544         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
545         from rs6000_select_section and make static.
546         (rs6000_elf_unique_section): Similarly.
547         (rs6000_xcoff_select_section): From xcoff.h.
548         (rs6000_xcoff_unique_section): Likewise.
549         * config/rs6000/rs6000-protos.h: Update.
550         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
551         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
552         * config/rs6000/xcoff.h: Likewise.
553
554         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
555         (SELECT_SECTION): Move ...
556         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
557
558         * config/v850/v850.h (SELECT_SECTION): Move ...
559         * config/v850/v850.c (v850_select_section): ... here.
560         (TARGET_ASM_SELECT_SECTION): New.
561
562         * config/vax/vms.h (SELECT_SECTION): Move ...
563         * config/vax/vax.c (vms_select_section): ... here.
564         (TARGET_ASM_SELECT_SECTION): New.
565
566         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
567         for the target hooks.
568
569 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
570
571         * config/arm/arm.c (emit_multi_reg_push): Do not set
572         RTX_FRAME_RELATED_P on the SEQUENCE.
573
574 2002-05-16  Richard Henderson  <rth@redhat.com>
575
576         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
577         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
578
579 2002-05-16  Richard Henderson  <rth@redhat.com>
580
581         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
582
583         * config/ia64/ia64.c (saveable_obstack): Do not declare.
584
585 2002-05-16  Richard Henderson  <rth@redhat.com>
586
587         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
588         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
589         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
590         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
591         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
592         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
593         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
594         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
595         Revert "Basic block renumbering removal", and two followup patches.
596
597 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
598
599         * lcm.c (optimize_mode_switching): Revert previous change.
600
601 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
602
603         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
604         with only extant block numbers.
605
606 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
607
608         * lcm.c (optimize_mode_switching): Fix typo.
609
610 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
611
612         * flow.c (calculate_global_regs_live): Queue blocks in program order.
613
614 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
615
616         * doc/install.texi (Configuration): Document PWDCMD.
617
618 2002-05-16  Dale Johannesen  <dalej@apple.com>
619
620         * combine.c (cant_combine_insn_p):  Reenable combinations
621         involving hard regs unless CLASS_LIKELY_SPILLED_P.
622
623 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
624
625         * c-common.c (cb_register_builtins): Handle more built-ins
626         here rather than in gcc.c specs.
627         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
628         (cpp_options): Pass -O flags even when only preprocessing.
629         * toplev.c (set_fast_math_flags): New prototype.
630         (fast_math_flags_set_p): New.
631         (set_no_fast_math_flags): Remove.
632         (decode_f_option): Update.
633         * toplev.h (set_fast_math_flags): Update.
634         (fast_math_flags_set_p): New.
635         (set_no_fast_math_flags): Remove.
636 config:
637         * c4x/c4x.c (c4x_override_options): Update.
638
639 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
640
641         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
642         Default-define here.
643         (builtin_define_with_value): Can now wrap the expansion in
644         quotation marks if such is wanted.
645         (cb_register_builtins): Update calls to builtin_define_with_value.
646         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
647         here.
648         (c_common_init): Set options->stdc_0_in_system_headers.
649         * c-lex.h: Update prototype of builtin_define_with_value.
650         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
651         and REGISTER_PREFIX.
652
653         * cppinit.c (VERS, ULP, C, X): Kill.
654         (builtin_array): Remove entries for __VERSION__,
655         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
656         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
657         a constant.
658         (init_builtins): Kill off a bunch of now-dead code.
659         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
660         -fno-leading-underscore.
661         (cpp_handle_option): Remove code to set user_label_prefix.
662         (cpp_post_options): Likewise.
663
664         * cpplib.h (struct cpp_options): Remove user_label_prefix.
665         (stdc_0_in_system_headers): New.
666         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
667         stdc_0_in_system_headers) too to decide the value of __STDC__.
668
669         * tradcpp.c (user_label_prefix): Kill.
670         (main): Remove code handling -f(no-)leading-underscore.
671         (initialize_builtins): Don't define __REGISTER_PREFIX__
672         or __USER_LABEL_PREFIX__.
673         (install_value): Wrap compound statement in dummy loop so the
674         macro works properly in an if statement.
675
676
677 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
678
679         * loop.h (struct loop_info): Add member has_prefetch.
680         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
681         (prescan_loop): Initialize has_prefetch.
682         (struct prefetch_info): Change prefetch_in_loop and
683         prefetch_before_loop from bit fields to ints.
684         (emit_prefetch_instructions): Several small fixes.
685         (check_dbra_loop): Don't reverse loop that uses prefetch.
686
687 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
688
689         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
690         * configure.in: Likewise.
691         * fixinc/check.tpl: Likewise.
692         * fixinc/fixinc.dgux: Likewise.
693         * fixinc/fixinc.svr4: Likewise.
694         * fixinc/fixinc.winnt: Likewise.
695         * fixinc/fixincl.sh: Likewise.
696         * fixproto: Likewise.
697         * configure: Regenerate.
698
699 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
700
701         Basic block renumbering removal:
702         * basic_block.h (struct basic_block_def): Renamed index to sindex,
703         added prev_bb and next_bb fields.
704         (n_basic_blocks): Renamed to num_basic_blocks.
705         (last_basic_block): New, index of last basic block.
706         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
707         traversing basic block chain.
708         (BLOCK_NUM): index -> sindex.
709         (create_basic_block_structure, create_basic_block): Declaration changed.
710         (debug_num2bb): Declare.
711         (expunge_block_nocompact): Declaration removed.
712         (link_block, unlink_block, compact_blocks): Declare.
713         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
714         * cfg.c (entry_exit_blocks): Initialize new fields.
715         (clear_edges, alloc_block, expunge_block, cached_make_edge,
716         redirect_edge_pred, dump_flow_info, dump_edge_info,
717         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
718         free_aux_for_edges): Modified.
719         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
720         (expunge_block_nocompact): Removed.
721         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
722         find_unreachable_blocks, create_edge_list, print_edge_list,
723         verify_edge_list, flow_edge_list_print, remove_fake_successors,
724         remove_fake_edges, flow_reverse_top_sort_order_compute,
725         flow_depth_first_order_compute, flow_preorder_transversal_compute,
726         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
727         flow_dfs_compute_reverse_execute): Modified.
728         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
729         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
730         Modified.
731         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
732         merge_blocks_move_predecessor_nojumps,
733         merge_blocks_move_successor_nojumps, merge_blocks,
734         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
735         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
736         * cfglayout.c (skip_insns_after_block, label_for_bb,
737         record_effective_endpoints, scope_to_insns_finalize,
738         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
739         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
740         cfg_layout_duplicate_bb): Modified.
741         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
742         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
743         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
744         flow_loops_find, flow_loop_outside_edge_p): Modified.
745         * cfgrtl.c (create_basic_block_structure, create_basic_block,
746         flow_delete_block, compute_bb_for_insn, split_block,
747         try_redirect_by_replacing_jump, redirect_edge_and_branch,
748         force_nonfallthru_and_redirect, tidy_fallthru_edge,
749         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
750         commit_edge_insertions, commit_edge_insertions_watch_calls,
751         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
752         purge_all_dead_edges): Modified.
753         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
754         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
755         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
756         Modified.
757         * conflict.c (conflict_graph_compute): Modified.
758         * df.c (FOR_ALL_BBS): Removed.
759         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
760         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
761         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
762         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
763         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
764         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
765         * final.c (compute_alignments, final_scan_insn): Modified.
766         * flow.c (verify_local_live_at_start, update_life_info,
767         update_life_info_in_dirty_blocks, free_basic_block_vars,
768         delete_noop_moves, calculate_global_regs_live,
769         initialize_uninitialized_subregs, allocate_bb_life_data,
770         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
771         mark_used_reg, count_or_remove_death_notes): Modified.
772         * function.c (thread_prologue_and_epilogue_insns): Modified.
773         * gcse.c (struct null_pointer_info): Change typo of current_block
774         to basic_block.
775         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
776         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
777         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
778         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
779         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
780         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
781         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
782         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
783         pre_delete, one_pre_gcse_pass, compute_transpout,
784         invalidate_nonnull_info, delete_null_pointer_checks_1,
785         free_code_hoist_mem, compute_code_hoist_vbeinout,
786         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
787         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
788         compute_store_table, build_store_vectors, insert_insn_start_bb,
789         insert_store, replace_store_insn, free_store_memory, store_motion):
790         Modified.
791         * global.c (global_alloc, global_conflicts, mark_elimination,
792         build_insn_chain): Modified.
793         * graph.c (print_rtl_graph_with_bb): Modified.
794         * haifa-sched.c (sched_init): Modified.
795         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
796         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
797         if_convert): Modified.
798         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
799         compute_insert_delete, pre_edge_lcm, compute_available,
800         compute_farthest, compute_nearerout, compute_rev_insert_delete,
801         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
802         Modified.
803         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
804         * loop.c (loop_dump_aux): Modified.
805         * predict.c (combine_predictions_for_insn, estimate_probability,
806         last_basic_block_p, process_note_prediction, process_note_predictions,
807         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
808         expensive_function_p, estimate_bb_frequencies,
809         compute_function_frequency): Modified.
810         * print-rtl.c (print_rtx): Modified.
811         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
812         get_exec_counts, compute_branch_probabilities, compute_checksum,
813         branch_prob, find_spanning_tree): Modified.
814         * recog.c (split_all_insns, peephole2_optimize): Modified.
815         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
816         convert_regs_1, convert_regs_2, convert_regs): Modified.
817         * regclass.c (scan_one_insn, regclass): Modified.
818         * regmove.c (mark_flags_life_zones, regmove_optimize,
819         combine_stack_adjustments): Modified.
820         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
821         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
822         * reorg.c (dbr_schedule): Modified.
823         * resource.c (find_basic_block, init_resource_info): Modified.
824         * sbitmap.c (sbitmap_intersection_of_succs,
825         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
826         sbitmap_union_of_preds): Modified.
827         * sched-deps.c (init_dependency_caches): Modified.
828         * sched-ebb.c (schedule_ebbs): Modified.
829         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
830         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
831         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
832         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
833         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
834         ssa_const_prop): Modified.
835         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
836         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
837         * ssa.c (remove_phi_alternative, find_evaluations,
838         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
839         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
840         make_regs_equivalent_over_bad_edges,
841         make_equivalent_phi_alternatives_equival,
842         compute_conservative_reg_partition,
843         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
844         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
845         Modified.
846
847 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
848
849         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
850
851 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
852
853         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
854         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
855         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
856         calling CONSTANT_POOL_ADDRESS_P.
857         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
858         to decide whether to define __arm__ or __thumb.
859         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
860         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
861
862 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
863
864         * config/arc/arc.h (CPP_PREDEFINES): Remove.
865         (CPP_SPEC): Update.
866         (TARGET_CPU_CPP_BUILTINS): New.
867
868 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
869
870         * cpphash.h (cpp_macro): Move here, and make expansion a union.
871         * cppmacro.c (cpp_macro): Remove.
872         (enter_macro_context, replace_args, warn_of_redefinition,
873         _cpp_create_definition, cpp_macro_definition): Update.
874
875 2002-05-16  Jason Merrill  <jason@redhat.com>
876
877         * config/mips/mips.c (mips_output_external): Don't do sdata
878         optimization for a variable with DECL_COMDAT set.
879
880 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
881
882         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
883         Cleanups for accepting modifiers on pointers.
884         Fix predicate typos.
885         Allow long pointers as well as int pointers.
886
887 2002-05-15  Richard Henderson  <rth@redhat.com>
888
889         * varasm.c (merge_weak): Remove special case for extern and common.
890
891 2002-05-15  Matt Hiller  <hiller@redhat.com>
892
893         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
894         XFAILing.
895         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
896         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
897         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
898         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
899         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
900         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
901
902 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
903
904         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
905
906 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
907
908         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
909         ("altivec_mfvscr"): Read from VSCR.
910
911         Add vscr sets for the following insns: altivec_vctuxs,
912         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
913         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
914         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
915         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
916         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
917         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
918         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
919         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
920         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
921         altivec_vsum2sws, altivec_vsumsws.
922
923         * config/rs6000/rs6000.h: Add VSCR fixed register.
924         (CALL_REALLY_USED_REGISTERS): Add vscr.
925         (CALL_USED_REGISTERS): Same.
926         (FIXED_REGISTERS): Same.
927         (REG_ALLOC_ORDER): Same.
928         (reg_class): Add VSCR_REGS.
929         (REG_CLASS_NAMES): Same.
930         (REG_CLASS_CONTENTS): Same.
931         (VSCR_REGNO): New.
932         (REGISTER_NAMES): Add vscr.
933         (DEBUG_REGISTER_NAMES): Same.
934         (ADDITIONAL_REGISTER_NAMES): Same.
935         (FIRST_PSEUDO_REGISTER): Increment.
936         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
937
938 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
939
940         * fold-const.c (fold): Fix a typo.
941
942 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
943
944         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
945         comparison against the highest or lowest integer value before
946         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
947         transformation and that of an unsigned comparison against 0
948         right after.
949
950 2002-05-15  Richard Henderson  <rth@redhat.com>
951
952         * varasm.c (merge_weak): Error for any weakening after definition.
953         Adjust weakening after use warning to catch more cases.
954         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
955         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
956
957 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
958
959         * invoke.texi (-malign-double): Re-add lost warning.
960
961         * i386-protos.h (x86_output_mi_thunk): Declare.
962         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
963         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
964
965         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
966         when flag_asynchronous_unwind_tables is set.
967
968         * flags.h (flag_reorder_functions): Declare.
969         * function.c (prepare_function_start): Initialize frequnecy.
970         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
971         * Makefile.in (predict.o): Add dependency on target.h and params.h
972         * defaults.h (HOT_TEXT_SECTION_NAME,
973         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
974         * predict.c (choose_function_section): New function.
975         (estimate_bb_frequencies): Use it.
976         * toplev.c (flag_reorder_functions): New global variable.
977         (lang_independent_options): New.
978         (parse_options_and_default_flags): Set.
979         * varasm.c (assemble_start_function): Bypass functdion alignment
980         for never executed functions.
981         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
982         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
983         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
984         Document.
985
986         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
987
988         * predict.c: Inlude profile.h
989         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
990         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
991         Use the information about maximal counter in the program.
992
993         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
994
995         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
996         probably_never_executed_bb_p): New functions.
997         * cfgcleanup.c (outgoing_edges_match): Use them.
998         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
999         (maybe_hot_bb_p, probably_cold_bb_p,
1000         probably_never_executed_bb_p): New functions.
1001
1002         * function.h (function): Add new field function_frequency.
1003         * predict.c (compute_function_frequency): New function.
1004         (estimate_probability): Call it.
1005
1006 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
1007
1008         PR optimization/5172, optimization/5200
1009         * gcse.c (gcse_main): Disable store_motion.
1010
1011 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
1012
1013         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
1014         (c_common_nodes_and_builtins): Use it.
1015         (builtin_define_with_value): New function.
1016         (cb_register_builtins): Define __SIZE_TYPE__,
1017         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
1018         using builtin_define_with_value.  Use consistent notation when
1019         defining __GXX_WEAK__.
1020         (WCHAR_TYPE_SIZE): Don't redefine.
1021         (combine_strings): Don't use WCHAR_TYPE_SIZE.
1022
1023         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
1024         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
1025         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
1026         * tradcpp.c (initialize_builtins): Likewise.
1027         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
1028
1029         * c-lex.h (builtin_define_with_value): Prototype.
1030         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
1031         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
1032         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
1033
1034         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
1035         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
1036         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
1037         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
1038         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
1039         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
1040         config/sparc/sol2-bi.h, config/sparc/sparc.h:
1041         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
1042         to __SIZE_TYPE__ etc from all spec strings. When this makes
1043         extra specs empty, delete them.
1044
1045 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1046
1047         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
1048         for PA8000 or generating dwarf2 call frame information.
1049         (output_call): Remove DO_FRAME_NOTES check from return pointer
1050         optimization.
1051         (following_call): Return 0 when scheduling for PA8000 or generating
1052         dwarf2 call frame information.  Revise comment.
1053
1054 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1055
1056 config/alpha:
1057         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
1058         and __IEEE_FP_INEXACT as appropriate.
1059         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
1060         (CPP_SPEC): Remove ieee defines.
1061         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
1062
1063 2002-05-14  Richard Henderson  <rth@redhat.com>
1064
1065         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
1066         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
1067
1068 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1069
1070         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
1071         (CPP_SPEC): Update.
1072         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
1073         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
1074         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
1075         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
1076         (EXTRA_SPECS): Update.
1077         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
1078         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
1079         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
1080         define TARGET_OS_CPP_BUILTINS if necessary.
1081
1082 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1083
1084         * gcc.c (cpp_options): Must pass -m* and -f* options
1085         to the front end even when only preprocessing.
1086         (cc1_options): Remove redundant -lang-c.
1087         * tradcpp.c (main): Ignore -m options.
1088 objc:
1089         * lang-specs.h: Similarly.
1090
1091 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
1092
1093         * genautomata.c (transform_3): Add code for transformation
1094         `(A,B,...)+C -> A+C,B,...'.
1095
1096 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
1097
1098         * final.c (end_final): Do not output profile_arcs constructor, when
1099         no functions are instrumented.
1100
1101 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
1102
1103         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
1104
1105 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1106
1107         * doc/install.texi: Remove special markup originally required for
1108         HTML generation with texi2html.
1109
1110 2002-05-14  Andreas Schwab  <schwab@suse.de>
1111
1112         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
1113         SELECT_SECTION.
1114         (UNIQUE_SECTION): Define to get small data correctly.
1115
1116         * varasm.c (resolve_unique_section): Add third parameter
1117         flag_function_or_data_sections and use it instead of
1118         flag_function_sections.
1119         (assemble_start_function): Pass flag_function_sections.
1120         (asm_emit_uninitialised): Pass flag_data_sections.
1121         (assemble_variable): Likewise.
1122
1123 2002-05-14  Richard Henderson  <rth@redhat.com>
1124
1125         * config/i386/i386.md: Use define_constants for unspec numbers.
1126         * config/i386/i386.c: Likewise.
1127
1128 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1129
1130         * doc/contrib.texi: Update my entry.
1131
1132 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
1133
1134         * fixinc/inclhack.def (winidss_valist): Limit applicability.
1135         * fixinc/fixincl.x: Regenerated.
1136         * fixinc/tests/base/math.h: Update.
1137         * fixinc/tests/base/testing.h: Likewise.
1138
1139 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
1140
1141         * genattr.c (gen_attr): Don't emit a comma after the last
1142         enumerator.
1143
1144 2002-05-13  Richard Henderson  <rth@redhat.com>
1145
1146         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
1147         by non-local gotos.
1148         * recog.c (peephole2_optimize): Likewise.
1149
1150 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
1151
1152         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
1153         input to O_BINARY.
1154
1155 2002-05-13  Jeffrey A Law  (law@redhat.com)
1156
1157         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
1158         Update prototype and callers.
1159         (propagate_one_insn): Stack pointer adjustments kill MEMs on
1160         the mem_set_list which reference the stack pointer, as do
1161         calls to constant functions as they may clobber outgoing
1162         argument space.
1163
1164         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
1165
1166         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1167         (ia32_multipass_dfa_lookahead): New function.
1168
1169 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1170
1171         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
1172         (translate_options): Remove 'V'.
1173         (process_command): Similarly.
1174 doc:
1175         * invoke.texi: Remove documentation of 'V'.
1176
1177 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1178
1179         * config/s390/linux.h: Revert 2002-04-22 changes.
1180
1181 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
1182
1183         * config/fr30/fr30.md: Only allow splits of immediate loads
1184         if the destination is a register.
1185
1186 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1187
1188         * Makefile.in (c-common.o, cppinit.o): Update.
1189         * c-common.c: Include except.h.
1190         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
1191         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
1192         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
1193         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
1194         CPP_PREDEFINES): Handle here.
1195 config:
1196         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
1197         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
1198         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
1199         TARGET_OS_CPP_BUILTINS.
1200         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
1201         (CPP_SPEC, EXTRA_SPECS): Update.
1202         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
1203         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
1204         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
1205         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
1206         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
1207 doc:
1208         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
1209         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
1210
1211 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
1212
1213         * emit-rtl.c (global_rtl): Update comment.
1214         (const_double_htab, const_double_htab_hash,
1215         const_double_htab_hash, lookup_const_double): New.
1216         (const_int_htab_hash, const_int_htab_eq): Remove const
1217         qualifiers, which cause tons of warnings with RTL checking on.
1218         (gen_rtx_CONST_DOUBLE): Deleted.
1219         (const_double_from_real_value): New function - bears some
1220         resemblance to the former immed_real_const_1.
1221         (immed_double_const): Moved here from varasm.c and
1222         simplified.
1223         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
1224         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
1225         (gen_rtx): Use immed_double_const.
1226         (init_emit_once): Initialize the const_double_htab.  Use
1227         REAL_VALUE_FROM_INT where possible.  Can now use
1228         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
1229         * varasm.c (struct varasm_status): Remove x_const_double_chain.
1230         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
1231         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
1232         (init_varasm_status, mark_varasm_status): Don't touch
1233         x_const_double_chain.
1234
1235         * output.h: Delete prototype for clear_const_double_mem.
1236         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
1237         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
1238         const_double_from_real_value, not immed_real_const_1, and use
1239         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
1240         CONST_DOUBLE_ATOF.
1241         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
1242         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
1243         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
1244         (gen_rtx_REG): Second arg is unsigned.
1245
1246         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
1247         (excluded_rtx): New, return true for CONST_DOUBLE.
1248         (genmacro): Write nothing for excluded codes.
1249         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
1250         * expr.c (expand_expr): Likewise.
1251         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
1252         CONST_DOUBLE_CHAIN.
1253         * toplev.c (rest_of_compilation): Don't call
1254         clear_const_double_mem.
1255
1256         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
1257         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
1258         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
1259         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
1260         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
1261         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
1262         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
1263         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
1264
1265 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1266
1267         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1268
1269 2002-05-12  Tom Tromey  <tromey@redhat.com>
1270
1271         * tree.h (copy_node): Don't mention TREE_PERMANENT.
1272
1273 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
1274
1275         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
1276         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
1277         * gensupport.h: Prototype new routines.
1278         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
1279         use of printf.
1280         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
1281         (next_comma_elt): Use scan_comma_elt.
1282
1283         * config/i386/i386.md: Use new attribute notation to break up
1284         long lines in define_attr forms.
1285
1286 2002-05-12  Richard Henderson  <rth@redhat.com>
1287
1288         * expr.c (compress_float_constant): New.
1289         (emit_move_insn): Use it.
1290         (float_extend_from_mem): New.
1291         (init_expr_once): Initialize it.
1292         * real.c (exact_real_truncate): New.
1293
1294         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1295         dropped into memory; penalize for size.
1296         (RTX_COSTS): FLOAT_EXTEND is free.
1297         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1298         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1299
1300 2002-05-12  Richard Henderson  <rth@redhat.com>
1301
1302         * profile.h (profile_info): Add missing extern to declaration.
1303         * profile.c (profile_info): Define it.
1304
1305 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1306
1307         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1308         used for DImode and TImode.
1309
1310 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1311
1312         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1313         fake a newline.
1314
1315 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
1316
1317         * config/rs6000/rs6000.c (rs6000_default_long_calls,
1318         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1319         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1320         (rs6000_override_options): Handle -m(no-)longcall.
1321         (init_cumulative_args, output_mi_thunk): Check for both
1322         longcall and shortcall attributes on the function.
1323         (rs6000_attribute_table): Add "shortcall".
1324         (rs6000_handle_longcall_attribute): Update comment.
1325         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1326         altivec_expand_ternop_builtin): Add default clauses to switches
1327         to silence warnings.
1328
1329         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1330         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
1331         (TARGET_OPTIONS): Add longcall and no-longcall.
1332
1333         * config/rs6000/rs6000.md (call_nonlocal_sysv,
1334         call_value_nonlocal_sysv): Split by alternatives.  One pair
1335         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1336         the call cookie.  The other pair accepts only LR/CTR and has
1337         no restriction.
1338
1339         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1340         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1341         tmake_file.
1342         * config/rs6000/rs6000-c.c: New file.
1343         * config/rs6000/t-rs6000-c-rule: New file.
1344         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1345         Prototype rs6000_pragma_longcall.
1346
1347         * doc/extend.texi: Document shortcall attribute.
1348         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1349
1350 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1351
1352         * reorg.c (dbr_schedule): Remove unnecessary test.
1353
1354 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
1355
1356         * i386.md (testsi to testqi spliters): New.
1357
1358         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
1359
1360         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1361
1362         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
1363
1364         * basic-block.h: New flag EDGE_CAN_FALLTHRU
1365         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1366         that can be made fallthru.
1367
1368         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
1369
1370         * cfglayout.c (cleanup_unconditional_jumps): New static function.
1371         (cfg_layout_initialize): Use it.
1372
1373 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1374
1375         * config/avr/avr.c (avr_mcu_types): Update supported devices.
1376         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1377         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1378
1379 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
1380
1381         * dbxout.c: Fix formatting.
1382         * dependence.c: Likewise.
1383         * df.c: Likewise.
1384         * diagnostic.c: Likewise.
1385         * doloop.c: Likewise.
1386         * dominance.c: Likewise.
1387         * doschk.c: Likewise.
1388         * dwarf2asm.c: Likewise.
1389         * dwarf2out.c: Likewise.
1390         * dwarfout.c: Likewise.
1391
1392 2002-05-10  Richard Henderson  <rth@redhat.com>
1393
1394         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
1395         Convert integers constants as needed.  Replace "nwords" field with
1396         "sizeof_bb".
1397         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1398         * function.h: Fix typo in comment.
1399         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1400
1401 2002-05-10  Roger Sayle  <roger@eyesopen.com>
1402
1403         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1404         into the equivalent (signed char)c > 0.
1405
1406 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
1407
1408         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1409         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1410         (struct prefetch_info): Fix spelling of member bytes_accessed.
1411         (emit_prefetch_instructions): Make dump messages more regular;
1412         restructure code to add more dump messages; use new macros for
1413         heuristics. (There are no code generation changes in any of this).
1414
1415 2002-05-10  David S. Miller  <davem@redhat.com>
1416
1417         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1418         (struct rtx_def): Update unchanging flag comment.
1419         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1420         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1421         to be handled to INSN too.
1422         (dbr_schedule): Likewise.
1423         * resource.c (next_insn_no_annul): Likewise.
1424
1425         * cse.c (rtx_cost): Remove multiplication by power of 2 special
1426         casing.
1427
1428 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1429
1430         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1431         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1432         (possibly) work around broken /bin/sh.
1433
1434 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1435
1436         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1437         . as N64/N32 libgcc_s.so subdirs.
1438
1439 2002-05-10  David S. Miller  <davem@redhat.com>
1440
1441         * config/sparc/sparc.md: Use define_constants for unspec numbers.
1442
1443         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1444         more accurately.
1445         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1446         comment.
1447         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1448         * doc/rtl.texi: Document these macros more accurately.
1449         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1450         JUMP_INSNs and CALL_INSNs.
1451         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1452         or INSN_FROM_TARGET_P if the code is appropriate.
1453
1454 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1455
1456         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1457         before using SYMBOL_REF_FLAG (addr).
1458
1459         * config/avr/avr-protos.h (avr_io_address_p): Declare.
1460         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1461         Make non-static.  Update all callers.
1462         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1463         New insns to clear/set/test a single bit in I/O address space.
1464
1465 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1466
1467         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1468
1469 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1470
1471         * Makefile.in: Update.
1472         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1473         builtin_define_std): New.
1474         (c_common_init): Register CPP builtins callback.
1475         * c-common.h (flag_iso, flag_undef): New.
1476         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1477         * c-lex.c: Don't include target.h.
1478         (cb_register_builtins): Move to c-common.c.
1479         (init_c_lex): Don't register hook here.
1480         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1481         (cpp_define, cpp_assert): Remove.
1482         * gcc.c (cc1_options): Pass -undef to front end.
1483         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1484         (TARGET_INITIALIZER): Update.
1485         * target.h (struct cpp_reader): Don't predeclare.
1486         (struct gcc_target): Remove cpp builtin hook.
1487         * tree.c (default_register_cpp_builtins): Remove.
1488 doc:
1489         * tm.texi: Update.
1490
1491 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1492
1493         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1494
1495 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1496
1497         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1498         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1499
1500 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1501
1502         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1503         * config/sparc/libgcc-sparc-glibc.ver: New file.
1504         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1505         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1506
1507 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1508
1509         PR target/6429
1510         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1511         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1512         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1513         base multilibs.
1514         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1515         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1516         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1517         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1518
1519 2002-05-09  Richard Henderson  <rth@redhat.com>
1520
1521         * config/ia64/ia64.md: Use define_constants for unspec numbers.
1522         * config/ia64/ia64.c: Likewise.
1523
1524 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
1525
1526         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1527         (save_restore_insns): Likewise.
1528         (mips_expand_prologue, mips_expand_epilogue): Update callers.
1529         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1530
1531 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@cygnus.com)
1532
1533         * athlon.md, k6.md, pentium.md, ppro.md): New files.
1534         * i386.md: Move scheduling information into new files.
1535
1536         * i386.md (type attribute): Add "rotate" for rotate insns.
1537         (rotate insns): Set type to "rotate".
1538         (various attributes and function units): Treat rotate like shift.
1539         (pent_pair attribute): Only rotates by one bit position are
1540         pairable.
1541         (sbb insns): Explicitly set pent_pair attribute on a couple
1542         that were missing it.
1543
1544 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
1545
1546         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1547         make sure that buffer starts on odd word address.
1548         (sh_va_arg): Skip odd fp registers when reading a double precision
1549         value.
1550
1551 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1552
1553         * tree.h (preserve_data, object_permanent_p, type_precision):
1554         Remove.
1555
1556 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1557
1558         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1559         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1560 doc:
1561         * cpp.texi: Update for removal of obsolete features.
1562
1563 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
1564                           Jeffrey A Law  (law@redhat.com)
1565
1566         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
1567         the DFA interface for Pentium processors.
1568         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1569         (attr_pent_pair, ix86_pent_find_pair): Remove.
1570         (ix86_sched_reorder_pentium): Remove.
1571         (ix86_sched_reorder): Remove reordering for Pentium.
1572         * i386.md (Pentium scheduling): Rewrite using DFA description.
1573
1574 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
1575
1576         * cfganal.c (can_fallthru): Fix fast path.
1577         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1578         with edges to the next block.
1579
1580 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
1581                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
1582
1583         * final.c (end_final): Use C trees to output data structures for profiling.
1584
1585         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1586         (profile.o): New dependency profile.h
1587         (final.o): New dependency profile.h
1588         * profile.h: New file. New global structure profile_info.
1589         * final.h (count_edges_instrumented_now): Declare.
1590         (current_function_cfg_checksum): Declare.
1591         (function_list): New structure.
1592         (functions_head, functions_tail): New static variables.
1593         (end_final): Emits more data, removed some -ax stuff.
1594         (final): Stores function names and chcksums.
1595         * gcov-io.h (__write_gcov_string): New function.
1596         (__read_gcov_string): New function.
1597         * gcov.c (read_profile): New function.
1598         (create_program_flow_graph): Uses read_profile instead of reading
1599         da_file.
1600         (read_files): Removed da_file checking, it's done by read_profile now.
1601         * libgcc2.c (bb_function_info): New structure.
1602         (bb): New field in structure, removed some -ax stuff.
1603         (__bb_exit_func): Changed structure of da_file.
1604         * profile.c (count_edges_instrumented_now): New global variable.
1605         (current_function_cfg_checksum): New global variable.
1606         (max_counter_in_program): New global variable.
1607         (get_exec_counts): New function.
1608         (compute_checksum): New function.
1609         (instrument_edges): Sets count_edges_instrumented_now.
1610         (compute_branch_probabilities): Uses get_exec_counts instead of
1611         reading da_file.
1612         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1613         (init_branch_prob): Removed da_file checking, done in get_exec_counts
1614         now.
1615         (end_branch_prob): Removed da_file checking, done in get_exec_counts
1616         now.
1617         * gcov.texi: Updated information about gcov file format.
1618
1619 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
1620
1621         * sbitmap.c: Fix formatting.
1622         * scan.c: Likewise.
1623         * scan-decls.c: Likewise.
1624         * sched-deps.c: Likewise.
1625         * sched-ebb.c: Likewise.
1626         * sched-rgn.c: Likewise.
1627         * sched-vis.c: Likewise.
1628         * sdbout.c: Likewise.
1629         * sibcall.c: Likewise.
1630         * simplify-rtx.c: Likewise.
1631         * ssa.c: Likewise.
1632         * ssa-ccp.c: Likewise.
1633         * ssa-dce.c: Likewise.
1634         * stmt.c: Likewise.
1635         * stor-layout.c: Likewise.
1636         * stringpool.c: Likewise.
1637
1638 2002-05-09  David S. Miller  <davem@redhat.com>
1639
1640         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1641
1642 2002-05-07  David S. Miller  <davem@redhat.com>
1643
1644         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1645         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1646         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1647         library implementation clobbers the output before the inputs
1648         are fully consumed, use stack temporary for the output.
1649
1650 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
1651
1652         * config/netbsd.h (CPP_SPEC): Remove.
1653         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1654         * config/i386/netbsd.h (CPP_SPEC): Define.
1655         * config/ns32k/netbsd.h (CPP_SPEC): Define.
1656         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1657         * config/sparc/netbsd.h (CPP_SPEC): Define.
1658         * config/vax/netbsd.h (CPP_SPEC): Define.
1659
1660 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
1661
1662         * read-rtl.c: Fix formatting.
1663         * real.c: Likewise.
1664         * recog.c: Likewise.
1665         * regclass.c: Likewise.
1666         * regmove.c: Likewise.
1667         * reg-stack.c: Likewise.
1668         * reload1.c: Likewise.
1669         * reload.c: Likewise.
1670         * resource.c: Likewise.
1671         * rtlanal.c: Likewise.
1672         * rtl.c: Likewise.
1673         * rtl-error.c: Likewise.
1674
1675 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1676
1677         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1678         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1679
1680 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
1681
1682         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1683         use __SSE2__ macro instead.
1684         * config/i386/xmmintrin.h: Likewise.
1685
1686 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
1687
1688         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1689         and use it in all invocations of these macros.  Clean up comments.
1690         * rtl.c (rtl_check_failed_flag): Add an argument for the name
1691         of the flag access macro whose check failed.
1692         * doc/rtl.texi (Flags): Document additional flag uses.
1693
1694 2002-05-08  Robert Spier <rspier@pobox.com>
1695             Neil Booth  <neil@daikokuya.demon.co.uk>
1696
1697         PR preprocessor/6521
1698         * cppfiles.c (handle_missing_header): Don't do anything
1699         different for <> includes.
1700 doc:
1701         * cppopts.texi: Update documentation for -MG.
1702
1703 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1704
1705         * cpplex.c (cpp_interpret_charconst): Truncate as well as
1706         sign-extend.
1707 doc:
1708         * cpp.texi: Clarify multichar charconst valuation.
1709
1710 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1711
1712         * doc/invoke.texi: Document -mwindiss option.
1713
1714 2002-05-08  Jason Merrill  <jason@redhat.com>
1715
1716         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1717
1718         * dwarf2out.c (gen_type_die): Abort on broken recursion.
1719
1720         PR c++/6381
1721         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1722         REAL_CST.
1723
1724 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
1725
1726         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1727         little-endian multilibs to override arm/thumb multilibs.
1728         Do not build hardware floating point multilibs, nor apcs-26
1729         multilibs for the Thumb.
1730
1731 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1732
1733         PR c/6569.
1734         * varasm.c (mark_weak): New function.
1735         (merge_weak): Use it.  Do not call declare_weak.
1736         (declare_weak): Use merge_weak.
1737
1738 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1739
1740         * cse.c (dead_libcall_p): Update counts.
1741         (delete_trivially_dead_insns): Update call of dead_libcall_p.
1742
1743 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
1744
1745         * cfglayout.c (function_tail_eff_head): Rename to ...
1746         (function_footer): ... this one.
1747         (unlink_insn_chain): New functions.
1748         (label_for_bb): Only call block_label and emit debug message.
1749         (record_effective_endpoints): Actually unlink the headers and footers.
1750         (fixup_reorder_cahin): Re-insert the unlinked sequences.
1751         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1752         * cfglayout.h (struct reorder_block_def): New fields footer/header;
1753         remove eff_head/eff_end.
1754         * rtl.h (set_first_insn): Declare.
1755         * emit-rtl.c (set_first_insn): New function.
1756
1757         * cfglayout.c (fixup_reorder_chain): Dump duplicated
1758         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1759         cfg_layout_duplicate_bb): New global function.
1760         (duplicate_insn_chain): New static function.
1761         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1762         cfg_layout_duplicate_bb): Declare.
1763         (struct reorder_block_def): Add "original" field.
1764         * emit-rtl.c (emit_copy_of_insn_after): New function.
1765         * rtl.h (emit_copy_of_insn_after): Declare.
1766
1767         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1768         (fixup_reorder_chain): properly handle edges to exit block.
1769
1770 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1771                                Jan Hubicka  <jh@suse.cz>
1772
1773         * basic-block.h (note_prediction_to_br_prob): declare.
1774         * c-semantics.c: Inlucde predit.h
1775         (expand_stmt): predict GOTO_STMT as not taken.
1776         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1777         (cleanup_cfg): Do not free tail_recursion_list.
1778         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1779         (flow_delete_block): Kill predictions past end of basic block.
1780         * output.h (delete_unreachable_blocks): Declare.
1781         * predict.c (predicted_by_p, process_note_predictions,
1782         process_note_prediction, last_block_p): New function.
1783         (estimate_probability): Bypass loop on PRED_CONTINUE;
1784         do not handle noreturn heuristics; kill PRED_RETURN; add
1785         PRED_EARLY_RETURN.
1786         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1787         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1788         * predict.h (IS_TAKEN): New constant.
1789         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1790         * rtl.c (NOTE_INSN_PREDICTION): New.
1791         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1792         New macro.
1793         (insn_note): add NOTE_INSN_PREDICTION.
1794         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1795         CFG; free tail_recursion_label_list.
1796         * stmt.c: Include predict.h;
1797         (return_prediction): New.
1798         (expand_value_return): Use it.
1799         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1800
1801 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
1802
1803         * config/mips/mips.md: Name the unspecs with define_constant.
1804         (*HILO_delay): Rename to 'hilo_delay' (no star).
1805         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1806         (reload_outdi, reload_outsi): Likewise.
1807
1808 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
1809
1810         * toplev.c: Fix formatting.
1811
1812 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
1813
1814         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1815         * configure.in (ac_rtlflag_checking): New.
1816         * doc/install.texi (--enable-checking): Document RTL flag checking.
1817
1818 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1819
1820         * c-common.c (c_common_init): Set options->unsigned_wchar.
1821         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1822         group target dependencies.
1823         (init_builtins, cpp_handle_option): Update.
1824         * cpplex.c (cpp_interpret_charconst): Update.
1825         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1826         signed_char to unsigned_char, group target dependencies.
1827         * defaults.h (WCHAR_UNSIGNED): Remove.
1828         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1829 config:
1830         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1831         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1832         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1833         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1834         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1835 doc:
1836         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1837
1838 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1839
1840         * fixinc/inclhack.def (windiss_math1): New fix.
1841         (windiss_math2): Likewise.
1842         (windiss_valist): Likewise.
1843         * fixinc/fixincl.x: Regenerated.
1844
1845 2002-05-07  Andreas Jaeger  <aj@suse.de>
1846
1847         * genautomata.c (output_internal_min_issue_delay_func): Add
1848         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1849         (output_internal_trans_func): Likewise.
1850
1851 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
1852
1853         * pa.c (hppa_profile_hook): Use force_reg to get the address
1854         of the profile hook into an appropriate pseudo register.
1855
1856 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1857
1858         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1859         (LINK_START_SPEC): Handle it.
1860         (LINK_OS_SPEC): Likewise.
1861         (CPP_SPEC): Likewise.
1862         (STARTFILE_SPEC): Likewise.
1863         (LIB_SPEC): Likewise.
1864         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
1865         all platforms.
1866         (CRTSAVRES_DEFAULT_SPEC): New macro.
1867         (LIB_WINDISS_SPEC): New macro.
1868         (CPP_OS_WINDISS_SPEC): Likewise.
1869         (STARTFILE_WINDISS_SPEC): Likewise.
1870         (ENDFILE_WINDISS_SPEC): Likewise.
1871         (LINK_START_WINDISS_SPEC): Likewise.
1872         (LINK_OS_WINDISS_SPEC): Likewise.
1873         * config/rs6000/windiss.h: New file.
1874
1875 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
1876
1877         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1878
1879 2002-05-06  David S. Miller  <davem@redhat.com>
1880
1881         * config/sparc/sparc.md (shift insns): Do not mask off
1882         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1883         take care of it.
1884
1885 2002-05-06  Richard Henderson  <rth@redhat.com>
1886
1887         PR c++/6212
1888         * expr.c (highest_pow2_factor_for_type): New.
1889         (expand_assignment): Use it.
1890
1891 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
1892
1893         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1894         unspec_volatile.
1895         ("altivec_mfvscr"): Same.
1896
1897 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1898
1899         * rtl.h (struct rtx_def): Update comments.
1900         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
1901         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
1902         RTL_FLAG_CHECK macros with list of expected RTL codes.
1903         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1904         (rtl_check_failed_flag): New.
1905         * reload1.c (reload): Use REG macro before changing rtx to MEM.
1906         (reload_cse_noop_set_p): Check rtx code before using access macro.
1907         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1908         before using access macro.
1909
1910 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1911
1912         * doc/rtl.texi (Flags): Update to reflect current usage.
1913
1914 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1915
1916         PR opt/3995
1917         * fold-const.c (sign_bit_p): New function.
1918         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1919         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1920         Reapply fold when converting (A & C) == C into (A & C) != 0.
1921         (fold_binary_op_with_conditional_arg): Fix typo in comment.
1922
1923 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1924
1925         * c-common.c (warn_multichar): New.
1926         (c_common_init): Set CPP's warn_multichar.
1927         * c-common.h (warn_multichar): New.
1928         * c-decl.c (warn_multichar): Remove.
1929         * c-lex.c (lex_charconst): Update.
1930         * c-tree.h (warn_multichar): Remove.
1931         * cppexp.c (eval_token): Sign-extend charconst value.
1932         * cppinit.c (cpp_create_reader): Set warn_multichar.
1933         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1934         each character.  Update prototype.  Sign-extend the result.
1935         * cpplib.h: Fix conditions.
1936         (struct cpp_options): Add new warning flag.
1937         (cpp_interpret_charconst): Update prototype.
1938 doc:
1939         * cpp.texi: Update documentation.
1940
1941 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
1942
1943         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1944         Fix typo in usage of allof instead of unit.
1945
1946 2002-05-06  Richard Henderson  <rth@redhat.com>
1947
1948         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1949         and any jump or call for IN.
1950
1951 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
1952
1953         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1954         -msse2.
1955         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1956
1957 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1958
1959         * fold-const.c (lshift-double): Cast the high word to an unsigned
1960         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1961         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1962         avoid compiler warning.  (fold): Remove redundant code from
1963         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1964
1965 2002-05-06  Jeff Law  <law@redhat.com>
1966
1967         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1968         * pa.c (pa_adjust_cost): Remove all true dependency cost
1969         adjustments.  Also remove support for non-DFA scheduling.
1970         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1971         to adjust true dependency costs.  Update various comments.
1972         (7100lc, 7200, 7300 scheduling): Simplify by combining the
1973         FP ALU & MPY units into a single unit.
1974
1975 2002-05-06  Catherine Moore  <clm@redhat.com>
1976
1977         * config/v850/v850.c (compute_register_save_size): Make sure
1978         to count all of the registers that will be saved.
1979
1980 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1981
1982         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1983
1984 2002-05-06  David S. Miller  <davem@redhat.com>
1985
1986         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1987         allow result to overlap input operands in memory.
1988
1989 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1990
1991 doc:
1992         * cpp.texi: Update multichar charconst docs.
1993
1994 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1995
1996         * cpplex.c (cpp_interpret_charconst): Sign-extend each
1997         character.  Don't ignore excess characters.  Treat
1998         multicharacter character constants as signed.
1999         (cpp_parse_escape): Clarify diagnostic.
2000
2001 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
2002
2003         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
2004         use add instead of shift.
2005         (ashldi3_sp64): Likewise.
2006         (ashlsi3_const1, ashldi3_const1): Remove.
2007         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
2008         * config/sparc/sparc.c (const1_operand): New.
2009
2010 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
2011
2012         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
2013
2014 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
2015
2016         PR target/6561
2017         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
2018
2019 2002-05-05  Richard Henderson  <rth@redhat.com>
2020
2021         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
2022         memory latency adjustments.
2023         (alpha_variable_issue): Remove.
2024         (alpha_use_dfa_pipeline_interface): New.
2025         (alpha_multipass_dfa_lookahead): New.
2026         * config/alpha/alpha.md: Remove define_function_unit scheduling;
2027         include new dfa scheduling.
2028         (attr type): Add none.
2029         (blockage): Use it.
2030         * config/alpha/ev4.md: New.
2031         * config/alpha/ev5.md: New.
2032         * config/alpha/ev6.md: New.
2033
2034 2002-05-05  David S. Miller  <davem@redhat.com>
2035
2036         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
2037
2038 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
2039
2040         * cse.c: Fix formatting.
2041         * emit-rtl.c: Likewise.
2042
2043 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
2044
2045         * genautomata.c (initiate_states): Add additional guard to
2046         initialize `units_array'.
2047
2048 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
2049
2050         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
2051         process_unit_to_form_the_same_automaton_unit_lists,
2052         form_the_same_automaton_unit_lists
2053         check_unit_distributions_to_automata): New prototypes and
2054         functions.
2055         (check_automata): Rename it into `check_automata_insn_issues'.
2056         (unit_decl): New fields `the_same_automaton_unit' and
2057         `the_same_automaton_message_reported_p'.
2058         (unit_decl_t): New typedef.
2059         (the_same_automaton_lists): New gloval variable.
2060         (unit_regexp, unit_set_el, units_array, units_cmp,
2061         output_get_cpu_unit_code_func): Use the typedef.
2062         (evaluate_max_reserv_cycles): Increment
2063         `description->max_insn_reserv_cycles'.
2064         (initiate_states): Don't increment `max_cycles_num'.
2065         (transform_insn_regexps): Move code around transformation of
2066         regexps from `generate'.
2067         (generate): Remove call of `transform_insn_regexps'.
2068         (expand_automata): Call `transform_insn_regexps' and
2069         `check_unit_distributions_to_automata'.  Check errors before
2070         `generate'.
2071
2072         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
2073         automaton `ultrasparc3_1'.
2074
2075 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2076
2077         * c-common.c (c_common_init): Set up CPP arithmetic.
2078         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
2079         something reasonable for the host.
2080         (sanity_checks): Add checks.
2081         (cpp_read_main_file): Call sanity_checks() from here...
2082         (cpp_post_options): ... not here.
2083         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
2084         * cpplib.h (struct cpp_options): New member int_precision.
2085
2086 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2087
2088         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
2089
2090 2002-05-04  David S. Miller  <davem@redhat.com>
2091
2092         * config/sparc/linux.h, config/sparc/linux64.h
2093         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
2094
2095         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
2096         more RTX codes.
2097         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
2098
2099         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
2100         of SETs.
2101
2102 2002-05-05  Tim Josling  <tej@melbpc.org.au>
2103
2104         * treelang; New directory for new sample language treelang.
2105
2106 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2107
2108         * Makefile.in (c-lex.o): Update.
2109         * c-lex.c: Include target.h.
2110         (cb_register_builtins): New.
2111         (init_c_lex): Set builtins callback.
2112         * c-lex.h (cpp_define, cpp_assert): New prototypes.
2113         * cppinit.c (init_builtins): Use callback, including for
2114         GXX_WEAK.
2115         * cpplib.h (struct cpp_callbacks): New member.
2116         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
2117         (TARGET_INITIALIZER): Update.
2118         * target.h (struct gcc_target): New hook.
2119         * tree.c (default_register_cpp_builtins): New.
2120         * tree.h (default_register_cpp_builtins): New.
2121 doc:
2122         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
2123
2124 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2125
2126         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
2127         (cpp_post_options): Move sanity checks to...
2128         (sanity_checks): New.
2129         * cpplex.c (maybe_read_ucs): Fix prototype.
2130         (parse_string, cpp_parse_escape): Cast for %c format specifier.
2131         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
2132         if necessary.
2133
2134 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
2135
2136         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
2137         builtins.  Use V2DI patterns instead of TI for logical operations.
2138         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
2139         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
2140         (ix86_expand_builtins): Change the pattern used for movntdq.
2141         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
2142         sse2_nandv2di3): New patterns.
2143         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
2144         on operands.
2145         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
2146         (cvtdq2pd): Correct mode on operand 1.
2147         (sse2_umulsidi3): Describe without unspec.
2148         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
2149         machine modes.
2150         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
2151         (ashlv2di3): Likewise, from sse2_ashlv2di3.
2152         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
2153         ashlv4si3, ashlv2di3): Use SImode for shift count.
2154         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
2155         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
2156         New patterns.
2157         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
2158         New typedefs.
2159         (__m128i, __m128d): New macros.
2160         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
2161         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
2162         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
2163         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
2164         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
2165         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
2166         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
2167         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
2168         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
2169         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
2170         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
2171         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
2172         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
2173         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
2174         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
2175         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
2176         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
2177         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
2178         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
2179         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
2180         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
2181         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
2182         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
2183         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
2184         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
2185         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
2186         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
2187         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
2188         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
2189         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
2190         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
2191         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
2192         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
2193         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
2194         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
2195         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
2196         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
2197         functions.
2198         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
2199         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
2200
2201 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
2202
2203         * dwarf2out.c: Fix formatting.
2204         * varasm.c: Likewise.
2205
2206 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
2207
2208         PR c/6543
2209         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
2210         clobber and use result as temporary value.
2211
2212 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2213
2214         * expr.c (force_operand): Use expand_simple_* to handle more
2215         cases.
2216
2217 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2218
2219         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
2220         and sign-extension.
2221         (lex_charconst): Update for change in prototype of
2222         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
2223         appropriately.
2224         * cpphash.h (BITS_PER_CPPCHAR_T): New.
2225         * cppinit.c (cpp_create_reader): Initialize them for no
2226         change in semantics.
2227         (cpp_post_options): Add sanity checks.
2228         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
2229         and truncation issues.  Calculate in type cppchar_t.
2230         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
2231         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
2232         run-time dependent precision correctly.  Return whether the
2233         result is signed or not.
2234         * cpplib.c (dequote_string): Use cppchar_t; update.
2235         * cpplib.h (cppchar_signed_t): New.
2236         struct cpp_options): New precision members.
2237         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
2238         * cppexp.c (eval_token): Update.
2239
2240 2002-05-03  David S. Miller  <davem@redhat.com>
2241
2242         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
2243         * config/sparc/sparc.c (sparc_rtx_costs): New function
2244         implementing RTX_COSTS and CONST_COSTS.
2245         * config/sparc/sparc.h (CONST_COSTS): Delete.
2246         (RTX_COSTS_CASES): Define.
2247         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
2248         the work.
2249
2250         * config/sparc/sparc.md (DFA schedulers): Split out...
2251         * config/sparc/cypress.md, config/sparc/hypersparc.md,
2252         config/sparc/sparclet.md, config/sparc/supersparc.md,
2253         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
2254
2255         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
2256         checks on it, always defined for Sparc.
2257
2258         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
2259         Tweak, and add more detailed comments.
2260
2261 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
2262
2263         * Re-apply patch accidentally reverted with
2264         DFA scheduler merge: remove all rules and variables to slurp
2265         source files out of libiberty and rebuild them with HOST_CC.
2266         ($(HOST_PREFIX_1)varray.o): New rule.
2267         (genattrtab rule): Word wrap.
2268
2269 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2270
2271         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
2272         (CPP_SUBTARGET_SPEC): Define.
2273         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
2274         cpp_subtarget specs.
2275         (CPP_SPEC): Redefine to include %(cpp_subtarget).
2276
2277 2002-05-03  David S. Miller  <davem@redhat.com>
2278
2279         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2280         * target.h (struct gcc_target): Delete cycle_display member.
2281
2282         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
2283         (rtx_needs_barrier): Delete reference to cycle_display unspec.
2284         (ia64_sched_reorder2): Mention need for cycle display handling
2285         once such notes exist.
2286
2287 2002-05-03  Richard Henderson  <rth@redhat.com>
2288
2289         * real.c (etoasc): Strip most trailing zeros for clarity.
2290         * sched-vis.c: Include real.h.
2291         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
2292         * Makefile.in (sched-vis.o): Add real.h.
2293
2294 2002-05-03  David S. Miller  <davem@redhat.com>
2295
2296         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2297         no longer needed.
2298
2299 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
2300
2301         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2302         when we get an out of range literal.
2303         (altivec_expand_ternop_builtin): Same.
2304         (altivec_expand_unop_builtin): Same.
2305         (altivec_expand_builtin): Same, for dss.
2306         (altivec_expand_builtin): Use trees instead of rtl when
2307         determining literal argument validity.
2308
2309 2002-05-03  David S. Miller  <davem@redhat.com>
2310
2311         Delete cycle display scheduling hook.
2312         * config/ia64/ia64.c (ia64_cycle_display,
2313         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2314         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2315         and use emit_insn_before instead of ia64_emit_insn_before.
2316         * config/ia64/ia64.md (unspec usage): Delete cycle display.
2317         (cycle_display): Delete insn pattern.
2318         * config/sparc/sparc.md (unspec usage): Delete cycle display.
2319         (cycle_display): Delete insn pattern.
2320         * config/sparc/sparc.c (sparc_cycle_display,
2321         TARGET_SCHED_CYCLE_DISPLAY): Delete.
2322         * doc/md.texi (cycle_display): Don't mention.
2323         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
2324
2325 2002-05-03  Richard Henderson  <rth@redhat.com>
2326
2327         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2328         * recog.h: Declare them.
2329
2330         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2331         * config/sparc/sparc.md: Use store_data_bypass_p instead.
2332         * config/sparc/sparc-protos.h: Update.
2333
2334 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2335
2336         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2337         -D__arch64__.  Add -D_LP64.
2338         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2339         from sparc.h.
2340         (CPP_ARCH64_SPEC): Likewise.
2341         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2342         (NO_BUILTIN_SIZE_TYPE): Undef.
2343
2344 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
2345
2346         * genautomata.c (min_issue_delay_pass_states): Change return type
2347         in the prototype.
2348         (min_issue_delay_pass_states): Change the algorithm.
2349         (min_issue_delay): Set up min_insn_issue_delay for the state.
2350         (output_min_issue_delay_table): Interchange the nested loops and
2351         and initiate min_insn_issue_delay for states.
2352
2353 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
2354
2355         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
2356         jump is simplejump.
2357
2358 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
2359
2360         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
2361         sequence.
2362
2363 2002-05-03  Richard Henderson  <rth@redhat.com>
2364
2365         PR opt/6534
2366         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2367         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2368         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2369         code before JUMP, not EARLIEST.
2370
2371 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2372
2373         * c-format.c (check_format_info_main): Don't check for presence of
2374         parameter for * width until after operand number has been read,
2375         and only check for it if format parameters are available.
2376         Fixes PR c/6547.
2377
2378 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2379
2380         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2381         (LINK_SPEC): Undef before defining.
2382
2383 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2384
2385         PR preprocessor/6489
2386         * tradcpp.c (fixup_newlines): New.
2387         (main, finclude): Use it.
2388
2389 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
2390
2391         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2392         * config/mips/mips.c (mips_unique_section): Strip encoding from
2393         decl name.
2394
2395 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2396
2397         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2398         mode.
2399
2400 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2401
2402         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2403         (Specific): Removed buildstats references.
2404         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2405         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2406         Accomodate Solaris versions beyond 8.
2407         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2408         (Specific, *-*-solaris2.8): Removed, obsolete.
2409
2410 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2411
2412         PR target/6542
2413         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2414         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2415         fill leaf_reg_remap with identity.
2416         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2417
2418 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2419
2420         * config/h8300/crti.asm: Remove trailing spaces.
2421         * config/h8300/h8300.c: Likewise.
2422         * config/h8300/lib1funcs.asm: Likewise.
2423
2424 2002-05-02  Jason Merrill  <jason@redhat.com>
2425
2426         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2427         * c-decl.c (c_init_decl_processing): Use it.
2428         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2429         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2430         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2431
2432 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2433
2434         * regrename.c: Fix formatting.
2435         * tree.c: Likewise.
2436
2437 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2438
2439         * i386.md (attribute memory): Handle compares properly.
2440
2441 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
2442
2443         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2444         to none.
2445
2446 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2447
2448         * function.c: Fix formatting.
2449
2450 2002-05-02  Jan Hubicka  <jh@suse.cz>
2451
2452         * haifa-sched.c (schedule_insn): Print table of instructions and
2453         reservations.
2454         (sched_block): Do not print ready list at verbosity level 1.
2455         * sched-vis.c (print_insn): Make global.
2456         * sched-ebb.c (ebb_print_insn): Rename from...
2457         (print_insn): ... this one.
2458         * sched-int.h (print_insn): Declare
2459
2460 2002-05-02  Richard Henderson  <rth@redhat.com>
2461
2462         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2463         emitted by cycle_display.
2464
2465 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
2466
2467         * doc/install.texi (*-*-freebsd*): Update to latest status.
2468
2469 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2470
2471         PR target/6540
2472         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2473         * config/float-sparc.h: Assume 128-bit long double if
2474         __LONG_DOUBLE_128__ is defined.
2475
2476 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
2477
2478         * genattrtab.c (write_function_unit_info): Add a dummy element
2479         when num_units == 0.
2480
2481 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2482
2483         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2484         TYPE_MODE (double_type_node) instead of DFmode.
2485
2486 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
2487
2488         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2489         jumps post reload.
2490         * toplev.c (rest_of_compilation): Revert Richard's patch.
2491
2492 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2493
2494         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2495
2496 2002-05-02  Catherine Moore  <clm@redhat.com>
2497
2498         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2499
2500 2002-05-02  Kazu Hirata  <kazu@hxi.com>
2501
2502         * combine.c: Fix comment typos.
2503         * expr.c: Likewise.
2504         * genautomata.c: Likewise.
2505         * stmt.c: Likewise.
2506         * tree.h: Likewise.
2507
2508 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2509
2510         * doc/install.texi: State GNAT version requirements.
2511
2512 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
2513
2514         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2515         of the frame pointer or arg pointer register which strict register
2516         checking is not enabled.
2517
2518 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
2519
2520         * gcc.dg/altivec-8.c: New.
2521
2522         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2523         PRE_INC and PRE_DEC for altivec modes.
2524
2525 2002-05-01  Bruce Korb  <bkorb@gnu.org>
2526
2527         * fixinc/check.tpl(set-writable): make sure the function exists first
2528         * fixinc/inclhack.def(alpha_assert): fix test_text
2529         * fixinc/tests/base/assert.h: add in missing result
2530
2531 2002-05-01  Jeff Law  <law@redhat.com>
2532
2533         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2534         'T' constraint.
2535
2536 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
2537
2538         * dbxout.c (dbxout_type): Emit size information for range types,
2539         as well, but only when using GDB extensions.
2540
2541 2002-05-01  Richard Henderson  <rth@redhat.com>
2542
2543         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2544         target-independent gnu binutils date test.
2545
2546 2002-05-01  Richard Henderson  <rth@redhat.com>
2547
2548         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2549         info before expunging the block.
2550
2551 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2552
2553         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2554         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
2555         -M -or -MM is in effect.
2556
2557 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
2558
2559         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
2560         A29k configurations.
2561         * doc/install.texi: Update to match.
2562
2563 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2564
2565         PR bootstrap/6514
2566         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2567         for duplicates. Always loop over whole list.
2568
2569 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2570
2571         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2572
2573 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2574
2575         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2576         support routines.
2577
2578 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2579
2580         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2581
2582 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
2583
2584         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2585         (nabs_nopower): Same.
2586         (floatdisf2): New pattern.
2587         (absdi2): Convert to define_insn_and_split.
2588         (nabsdi2): Same.
2589         (trunctfsf2): Same.
2590         (floatditf2): Same.
2591         (floatsitf2): Same.
2592         (fix_trunctfdi2): Same.
2593         (fix_trunctfsi2): Same.
2594
2595 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2596
2597         * doc/install.texi: Update Texinfo version requirement
2598         documentation.
2599
2600 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2601
2602         PR target/6512, PR target/5628
2603         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2604         when memory is not aligned.
2605         (movdf_insn_v9only_vis): Likewise.
2606         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2607         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2608         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2609
2610 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
2611
2612         * gcc.dg/altivec-7.c: New.
2613
2614         * config/rs6000/altivec.h: Cleanup.
2615
2616 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
2617
2618         * doc/invoke.texi (Option Summary): Add -mvrsave=.
2619         (RS/6000 and PowerPC Options): Document -mvrsave=.
2620
2621         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2622         (rs6000_altivec_vrsave_string): Same.
2623         (rs6000_override_options): Call rs6000_parse_vrsave_option.
2624         (rs6000_parse_vrsave_option): New.
2625         (rs6000_stack_info): Only generate vrsave instructions when
2626         TARGET_ALTIVEC_VRSAVE.
2627
2628         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2629         (rs6000_altivec_vrsave_string): Define extern.
2630         (rs6000_altivec_vrsave): Same.
2631         (TARGET_ALTIVEC_VRSAVE): New.
2632
2633 2002-04-30  Richard Henderson  <rth@redhat.com>
2634
2635         PR opt/6516
2636         * toplev.c (rest_of_compilation): Don't run cross-jump before
2637         bb-reorder.
2638
2639 2002-04-30  Tom Rix  <trix@redhat.com>
2640
2641         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2642         check which_alternative.
2643
2644 2002-04-30  Kazu Hirata  <kazu@hxi.com>
2645
2646         * cpplex.c: Fix comment formatting.
2647         * function.c: Likewise.
2648         * integrate.c: Likewise.
2649         * regrename.c: Likewise.
2650         * sibcall.c: Likewise.
2651         * simplify-rtx.c: Likewise.
2652         * tree-inline.c: Likewise.
2653
2654 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2655
2656         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2657         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2658         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2659         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2660         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2661         * pa/x-ada: New file.  Define ADA_CFLAGS.
2662
2663 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
2664
2665         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2666         from MMIX_LAST_REGISTER_FILE_REGNUM.
2667         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2668         (struct machine_function): New member highest_saved_stack_register
2669         previously static variable in mmix.c.
2670         (MACHINE_DEPENDENT_REORG): Define.
2671         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2672         (MMIX_OUTPUT_REGNO): New.
2673         (mmix_target_asm_function_prologue): Move calculation of last used
2674         saved-stack-register into...
2675         (mmix_machine_dependent_reorg): New function.  Update to also handle
2676         !TARGET_ABI_GNU.
2677         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2678         register names, simplify somewhat by new variable regno.
2679         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
2680         register.
2681         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2682         emitting register names.
2683         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2684         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2685         Remove fixed FIXME.
2686         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2687         Declare.
2688
2689         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2690
2691 2002-04-30  Richard Henderson  <rth@redhat.com>
2692
2693         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2694         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2695         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2696         emit_tfmode_cvt): New.
2697         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2698         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2699         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2700         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2701         * config/sparc/sparc-protos.h: Update.
2702
2703 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
2704
2705         * install.texi (Final install): Add to the list of info to include
2706         in a report of a successful bootstrap, and add link to 3.1 list.
2707
2708 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
2709
2710         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2711         (mode): Add vector modes
2712         (i387): Kill attribute.
2713         (unit): New attribute.
2714         (length_immediate): Grok new types.
2715         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2716         (modrm): Use "unit".
2717         (memory): Handle MMX/SSE properly.
2718         (scheduling descriptions): Kill uses of fop1.
2719         (sse, mmx, fp patterns): Set type and mode properly.
2720
2721 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
2722
2723         * pa.c (override_options): Default to PA8000 scheduling.
2724         * doc/invoke.texi (HP-PA options): Mention newly added 7300
2725         scheduling parameter.
2726
2727         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2728         handling of double precision multiplies.
2729
2730         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2731         fpdiv and fpsqrt instructions.
2732         (7200 & 7300 scheduling): Fix typo in handling of
2733         store-load and store-store penalties.
2734
2735 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2736
2737         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2738         mips.  Add two missing commas.
2739
2740 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
2741
2742         * doc/contrib.texi (Contributors): Update Paolo Carlini's
2743         and Benjamin Kosnik's entries.
2744
2745 2002-04-29  David S. Miller  <davem@redhat.com>
2746
2747         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2748         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2749         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2750         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2751
2752 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2753
2754         * combine.c (find_split_point): Use gen_int_mode.
2755
2756 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
2757
2758         Merging code from dfa-branch:
2759
2760         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2761
2762         * genautomata.c (output_reserv_sets): Fix typo.
2763
2764         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
2765
2766         * genautomata.c (output_reserv_sets): Remove
2767         next_cycle_output_flag.
2768
2769         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
2770
2771         * sched-rgn.c (init_ready_list): Make the DFA code handle
2772         USE/CLOBBER insns in the same way as the traditional
2773         scheduler.
2774         (new_ready): Similarly..
2775
2776         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
2777
2778         * haifa-sched.c (schedule_block): Change the DFA state only after
2779         issuing insn.
2780
2781         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
2782
2783         * pa.c (hppa_use_dfa_pipeline_interface): New function.
2784         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2785         (override_options): Add PA7300 scheduling support.
2786         (pa_adjust_cost): Update various comments.  Properly
2787         handle anti and output dependencies when using the
2788         DFA scheduler.
2789         (pa_issue_rate): Add PA7300 scheduling support.
2790         (pa_can_combine_p): Call extract_insn before calling
2791         constrain_operands (taken from mainline tree).
2792         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2793         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
2794         descriptions using DFA descriptions.  Add PA7300
2795         scheduling support.
2796
2797         2002-03-30  David S. Miller  <davem@redhat.com>
2798
2799         Add UltraSPARC-III DFA scheduling support.
2800         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2801         Update FP conditional move on register insn patterns to use it, as
2802         appropriate.
2803         (define_attr cpu): Add ultrasparc3.
2804         (define_attr us3load_type): New, update integer load patterns to
2805         set it, as appropriate.
2806         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2807         (rest): Add UltraSPARC3 scheduling description.
2808         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2809         (PROCESSOR_ULTRASPARC3): New.
2810         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2811         ({ASM,CPP}_CPU_SPEC): Likewise.
2812         (REGISTER_MOVE_COST): Likewise.
2813         (RTX_COSTS): Likewise.
2814         * config/sparc/sparc.c (sparc_override_options,
2815         sparc_initialize_trampoline, sparc64_initialize_trampoline,
2816         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2817         sparc_issue_rate): Likewise.
2818         * config/sparc/sol2.h: Likewise.
2819         * config/sparc/sol2-sld-64.h: Likewise.
2820         * config/sparc/linux64.h: Likewise.
2821
2822         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
2823
2824         * doc/md.texi: Add comments about usage the latency time for the
2825         different dependencies and about case when two or more conditions
2826         in different define_insn_reservations returns TRUE for an insn.
2827
2828         * doc/md.texi: Add reference for automaton based pipeline
2829         description.
2830
2831         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
2832
2833         * doc/passes.texi: Add missed information about genattrtab.
2834
2835         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
2836
2837         * genautomata.c (output_automata_list_transition_code): Check
2838         automata_list on NULL.
2839
2840         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
2841
2842         * genautomata.c (output_insn_code_cases,
2843         output_automata_list_min_issue_delay_code,
2844         output_automata_list_transition_code,
2845         output_automata_list_state_alts_code): Comment the functions.
2846
2847         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
2848
2849         * genautomata.c (automata_list_el_t): New typedef.
2850         (get_free_automata_list_el,free_automata_list_el,
2851         free_automata_list, automata_list_hash, automata_list_eq_p,
2852         initiate_automata_lists, automata_list_start, automata_list_add,
2853         automata_list_finish, finish_automata_lists,
2854         output_insn_code_cases, output_automata_list_min_issue_delay_code,
2855         output_automata_list_transition_code,
2856         output_automata_list_state_alts_code, add_automaton_state,
2857         form_important_insn_automata_lists): New functions and prototypes.
2858         (insn_reserv_decl): Add members important_automata_list and
2859         processed_p.
2860         (ainsn): Add members important_p.
2861         (automata_list_el): New structure.
2862         (first_free_automata_list_el, current_automata_list,
2863         automata_list_table): New global variables.
2864         (create_ainsns): Initiate member important_p.
2865         (output_internal_min_issue_delay_func): Generate the switch and
2866         call output_insn_code_cases.
2867         (output_internal_trans_func, output_internal_state_alts_func):
2868         Ditto.
2869         (generate): Call initiate_automata_lists.
2870         (automaton_states): New global variable.
2871         (expand_automata): Call form_important_insn_automata_lists.
2872         (write_automata): Call finish_automata_lists.
2873
2874         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
2875
2876         * genautomata.c (add_excls, add_presence_absence): Check that
2877         cpu units in the sets belong the same automaton.
2878
2879         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2880         about that cpu units in the sets belong the same automaton.
2881
2882         * doc/md.texi: Ditto.
2883
2884         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
2885                     Nitin Gupta  <niting@noida.hcltech.com>
2886
2887         * config/sh/sh.c (sh_use_dfa_interface): New function.
2888
2889         (sh_issue_rate): New Function.
2890         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2891         TARGET_SCHED_ISSUE_RATE: define.
2892
2893         * config/sh/sh.md: Add DFA based pipeline description for SH4.
2894
2895         (define_attr insn_class): New attribute used for DFA
2896          scheduling.
2897         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2898         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2899          cmpeqdi_t): Likewise.
2900
2901         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2902          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2903          ex_group.
2904         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2905
2906         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2907
2908         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2909         break.
2910
2911         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2912
2913         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2914         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2915         necessary.
2916         (output_dfa_start_func): Initiate new variable insn_codes_length,
2917         (write_automata): Output definition of the new variable.
2918
2919         2001-10-02  David S. Miller  <davem@redhat.com>
2920
2921         * haifa-sched.c (advance_one_cycle): New function.
2922         (schedule_block): Use it.
2923         (queue_to_ready): Use it, and also make sure to advance the DFA
2924         state on all stall cycles, not just those where insn_queue links
2925         are found.
2926
2927         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
2928
2929         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
2930         non-zero if the highest-priority instruction could be scheduled.
2931         (choose_ready): Remove last argument from max_issue call.
2932
2933         2001-09-28  David S. Miller  <davem@redhat.com>
2934
2935         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2936         ultrasparc and 3 for other multi-issue sparcs.
2937
2938         2001-09-27  David S. Miller  <davem@redhat.com>
2939
2940         * config/sparc/sparc.md (cycle_display): New pattern.
2941         * config/sparc/sparc.c (sparc_cycle_display): New.
2942         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2943
2944         2001-09-25  David S. Miller  <davem@redhat.com>
2945
2946         Convert all of Sparc scheduling to DFA
2947         * config/sparc/sparc.md: Kill all define_function_unit
2948         directives and replace with DFA equivalent.
2949         * config/sparc/sparc.c (ultrasparc_adjust_cost,
2950         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2951         ultra_fpmode_conflict_exists, ultra_find_type,
2952         ultra_build_types_avail, ultra_flush_pipeline,
2953         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2954         ultrasparc_variable_issue, ultrasparc_sched_init,
2955         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2956         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2957         ultra_cur_hist, ultra_cycles_elapsed): Kill.
2958         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2959         ultrasparc_store_bypass_p): New.
2960         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2961         Declare.
2962
2963         2001-09-24  David S. Miller  <davem@redhat.com>
2964
2965         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2966         ready->vec[foo] not ready[foo].
2967
2968         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2969
2970         * doc/md.texi: Correct examples for define_insn_reservations
2971         `mult' and `div'.
2972
2973         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2974
2975         * genautomata.c (create_automata): Print message about creation of
2976         each automaton.
2977         (generate): Remove printing meease about creation of
2978         automata.
2979
2980         2001-09-05  David S. Miller  <davem@redhat.com>
2981
2982         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2983         * config/sparc/linux64.h: Likewise.
2984
2985         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
2986
2987         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2988         schedule_block, sched_init, sched_finish): Add missed calls of
2989         use_dfa_pipeline_interface.
2990
2991         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2992         Ditto.
2993
2994         * sched-vis.c (get_visual_tbl_length): Ditto.
2995
2996         2001-08-27  Richard Henderson  <rth@redhat.com>
2997
2998         * genattr.c (main): Emit state_t even when not doing scheduling.
2999
3000         2001-08-27  Richard Henderson  <rth@redhat.com>
3001
3002         * genautomata.c (expand_automata): Always create a description.
3003
3004         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
3005
3006         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
3007         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
3008         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
3009         RTL constructions.
3010
3011         * genattr.c (main): New variable num_insn_reservations.  Increase
3012         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
3013         pipeline hazard recognizer interface.
3014
3015         * genattrtab.h: New file.
3016
3017         * genattrtab.c: Include genattrtab.h.
3018         (attr_printf, check_attr_test, make_internal_attr,
3019         make_numeric_value): Move protypes into genattrtab.h.  Define them
3020         as external.
3021         (num_dfa_decls): New global variable.
3022         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
3023         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
3024         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
3025         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
3026
3027         * genautomata.c: New file.
3028
3029         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
3030
3031         * sched-int.h: (curr_state): Add the external definition for
3032         automaton pipeline interface.
3033         (haifa_insn_data): Add comments for members blockage and units.
3034
3035         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3036         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3037         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3038         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3039         TARGET_SCHED_DFA_POST_CYCLE_INSN,
3040         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3041         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
3042         macros.
3043         (TARGET_SCHED): Use the new macros.
3044
3045         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
3046         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
3047         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
3048         dfa_bubble): New members in gcc_target.sched.
3049
3050         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
3051         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
3052         (insn_queue): Redefine it as pointer to array.
3053         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
3054         INSN_QUEUE_SIZE.
3055         (max_insn_queue_index_macro_value): New variable.
3056         (curr_state, dfa_state_size, ready_try): New varaibles for
3057         automaton interface.
3058         (ready_element, ready_remove, max_issue): New function prototypes
3059         for automaton interface.
3060         (choose_ready): New function prototype.
3061         (insn_unit, blockage_range): Add comments.
3062         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
3063         FUNCTION_UNITS_SIZE == 0.
3064         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
3065         actual_hazard, potential_hazard): Add comments.
3066         (insn_cost): Use cost -1 as undefined value.  Remove
3067         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
3068         pipeline interface.
3069         (ready_element, ready_remove): New functions for automaton
3070         interface.
3071         (schedule_insn): Add new code for automaton pipeline interface.
3072         (queue_to_ready): Add new code for automaton pipeline interface.
3073         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
3074         (debug_ready_list): Print newline when the queue is empty.
3075         (max_issue): New function for automaton pipeline interface.
3076         (choose_ready): New function.
3077         (schedule_block): Add new code for automaton pipeline interface.
3078         Print ready list before scheduling each insn.
3079         (sched_init): Add new code for automaton pipeline interface.
3080         Initiate insn cost by -1.
3081         (sched_finish): Free the current automaton state and finalize
3082         automaton pipeline interface.
3083
3084         * sched-rgn.c: Include target.h.
3085         (init_ready_list, new_ready, debug_dependencies): Add new code for
3086         automaton pipeline interface.
3087
3088         * sched-vis.c: Include target.h.
3089         (get_visual_tbl_length): Add code for automaton interface.
3090         (target_units, print_block_visualization):  Add comments.
3091
3092         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
3093         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
3094         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
3095         (getruntime.o, genautomata.o): New entries.
3096         (genattrtab.o): Add new dependency file genattrtab.h.
3097         (genattrtab): Add new dependencies.  Link it with `libm.a'.
3098         (getruntime.o, hashtab.o): New entries for canadian cross.
3099
3100         * doc/md.texi: Description of automaton based model.
3101
3102         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
3103         Add comments.
3104         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3105         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3106         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3107         TARGET_SCHED_DFA_POST_CYCLE_INSN,
3108         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3109         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3110         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
3111         hook descriptions.
3112         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
3113         MAX_DFA_ISSUE_RATE): New macro descriptions.
3114
3115         * doc/contrib.texi: Add dfa based scheduler contribution.
3116
3117         * doc/gcc.texi: Add more information about genattrtab.
3118
3119 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3120
3121         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
3122         adjust_address_nv call.
3123
3124 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
3125
3126         * doc/install.texi (Testing): Provide additional information, and
3127         a stronger encouragement, for running the testsuites.
3128
3129 2002-04-29  DJ Delorie  <dj@redhat.com>
3130
3131         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
3132         given in upper case.
3133
3134 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3135
3136         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
3137         Solaris 2 <widec.h> if missing.
3138         * fixinc/fixincl.x: Regenerate.
3139         * fixinc/tests/base/widec.h: New file.
3140
3141 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
3142
3143         * toplev.c (f_options): Add "profile" switch so that
3144         -fno-profile can be used to disable -p.
3145
3146 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
3147
3148         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
3149         UV2DImode.
3150         * tree.c (build_common_tree_nodes_2): Likewise.
3151         * tree.h (enum tree_index): Likewise.
3152         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
3153
3154         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
3155         entries.
3156         (init_mmx_sse_builtins): Initialize SSE2 builtins.
3157         (ix86_expand_builtin): Add support for SSE2 builtins.
3158         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
3159         (VALID_SSE_REG_MODE): Use it.
3160         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
3161         (enum ix86_builtins): Add SSE2 builtins.
3162         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
3163         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
3164         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
3165         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
3166         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
3167         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
3168         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
3169         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
3170         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
3171         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
3172         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
3173         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
3174         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
3175         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
3176         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
3177         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
3178         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
3179         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
3180         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
3181         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
3182         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
3183         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
3184         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
3185         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
3186         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
3187         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
3188         lfence_insn): New patterns.
3189         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
3190         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
3191
3192 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
3193
3194         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
3195
3196 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3197
3198         * doc/contrib.texi (Contributors): Add Paolo Carlini and
3199         Janis Johnson.
3200         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
3201         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
3202         and CPU instead of cpu.
3203
3204 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3205
3206         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
3207         variables.
3208         (lang_independent_options): Add -fif-conversion, -fif-conversion2
3209         (rest_of_compilation): Do if conversion only when asked for.
3210         (parse_options_and_default_flags): Set new variables to 1 for -O1
3211         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
3212
3213 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3214
3215         * i386.c (dbx64_register_map): Fix typo.
3216
3217 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3218
3219         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
3220         real_one_half, real_bb_freq_max): New static variables.
3221         (debug_profile_bbauxs): Kill.
3222         (process_note_predictions): Kill unused variable.
3223         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
3224         volatile double.
3225         (propagate_freq): Use REAL_ARITHMETICS.
3226         (estimate_bb_frequencies): Likevise; init new static variables.
3227         * Makefile.in (predict.o): Add dependency on real.h
3228
3229 2002-04-28  David S. Miller  <davem@redhat.com>
3230
3231         PR target/6500
3232         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
3233         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
3234         several {reads,writes} instead.
3235         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
3236         Define.
3237
3238 2002-04-27  David S. Miller  <davem@redhat.com>
3239
3240         PR target/6494
3241         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
3242         of the stack bias.
3243
3244         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
3245         including signal.h and sys/ucontext.h, not needed.
3246
3247 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
3248
3249         * varasm.c (output_constant_def): Correct test for not calling
3250         ENCODE_SECTION_INFO for INTEGER_CST.
3251
3252 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3253
3254         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
3255         keep most cases as function eval_token.
3256         (eval_token): New function.
3257         (_cpp_parse_expr): Read token here for improved diagnostics.
3258         Don't use op_as_text.  Detect bad ':' here.
3259         (reduce): Don't detect bad ':' here.
3260         (op_as_text): Remove.
3261         * cpphash.h (_cpp_test_assertion): Change prototype.
3262         * cpplib.c (_cpp_test_assertion): Change prototype.
3263
3264 2002-04-28  Richard Henderson  <rth@redhat.com>
3265
3266         PR c/5154
3267         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
3268         (ggc_mark_rtx_children): New.
3269
3270 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3271
3272         PR target/6496
3273         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
3274         after call peepholes for UltraSPARC.
3275         (call + jump 64-bit peepholes): Remove.
3276
3277 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3278
3279         PR c/6497
3280         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
3281         result as temporary value.
3282
3283 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3284
3285         PR c++/6396
3286         * toplev.c (rest_of_compilation): Only run regrename and copy
3287         propagation if optimizing.
3288
3289 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3290
3291         PR optimization/6475
3292         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
3293         register of REGNO_DECL (i).
3294         * Makefile.in (reload1.o): Add $(TREE_H).
3295
3296 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3297
3298         * cppexp.c (lex): Update to use state.skip_eval.
3299         (struct op): Remove prio and flags members.
3300         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3301         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3302         (LEFT_ASSOC): New macro.
3303         (optab): New table of operator priorities and flags.
3304         (SHIFT): Update.
3305         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
3306         malloc-ed parser stack.
3307         (reduce): New; reduce the operator stack.
3308         (_cpp_expand_op_stack): Expand the operator stack as necessary.
3309         * cpphash.h (struct op): Predeclare.
3310         (struct cpp_reader): New members op_stack, op_limit.
3311         (struct lexer_state): New member skip_eval.
3312         (_cpp_parse_expr): Update.
3313         (_cpp_expand_op_stack): New.
3314         * cpplib.c (do_if): Update.
3315         * cppinit.c (cpp_create_reader): Create op stack.
3316         (cpp_destroy): And destroy it.
3317         * cpplib.h (CPP_LAST_CPP_OP): Correct.
3318         (TTYPE_TABLE): Correct.
3319
3320 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3321
3322         PR c/6343
3323         * c-decl.c (duplicate_decls): Call merge_weak.
3324         * c-pragma.c (apply_pragma_weak): Warn about misuse.
3325         * output.h (merge_weak): Prototype merge_weak.
3326         * varasm.c (merge_weak): New function.
3327         (declare_weak): Make sure we don't give an error on VAR_DECLs.
3328         Mark RTL with SYMBOL_REF_WEAK.
3329
3330 2002-04-27  Kurt Garloff <garloff@suse.de>
3331
3332         * tree-inline.c (inlinable_function_p): Improve heuristics
3333         by using a smoother function to cut down allowable inlinable size.
3334         * param.def: Add parameters max-inline-insns-single,
3335         max-inline-slope, min-inline-insns that determine the exact
3336         shape of the above function.
3337         * param.h: Likewise.
3338
3339 2002-04-26  Richard Henderson  <rth@redhat.com>
3340
3341         * c-parse.in (malloced_yyss, malloced_yyvs): New.
3342         (yyoverflow): Re-add.  Set them.
3343         (free_parser_stacks): New.
3344         * c-common.h: Declare it.
3345         * c-lex.c (c_common_parse_file): Call it.
3346
3347 2002-04-26  Richard Henderson  <rth@redhat.com>
3348
3349         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3350         for fallthru search.
3351
3352 2002-04-26  Eric Christopher  <echristo@redhat.com>
3353
3354         PR optimization/3700
3355         * config/mips/mips.c (mips_issue_rate): Define.  New function.
3356         (TARGET_SCHED_ISSUE_RATE): Use.
3357
3358 2002-04-25  David S. Miller  <davem@redhat.com>
3359
3360         PR target/6422
3361         * reorg.c (optimize_skip): Do not allow exception causing
3362         instructions to be considered for delay slots.
3363         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3364         (relax_delay_slots): Do not try to consider exception causing
3365         instructions as redundant.
3366
3367 2002-04-26  Richard Henderson  <rth@redhat.com>
3368
3369         PR c/5225
3370         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3371
3372 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
3373
3374         PR bootstrap/6445
3375         * config/i386/i386.md (untyped_call): Return the value in a float
3376         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3377         TARGET_80387.
3378
3379 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
3380
3381         * tree.c (tree_int_cst_lt): Compare constants whose types differ
3382         in unsigned-ness correctly.
3383
3384 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3385
3386         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3387         portable runtime model.
3388
3389 2002-04-26  Richard Henderson  <rth@redhat.com>
3390
3391         * c-parse.in (yyoverflow): Revert.
3392
3393 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
3394             Richard Henderson  <rth@redhat.com>
3395
3396         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3397         result as temporary value.
3398
3399 2002-04-26  Richard Henderson  <rth@redhat.com>
3400
3401         PR c/3581
3402         * c-common.c (fix_string_type): Split out of ...
3403         (combine_strings): ... here.  Take a varray, not a tree list.
3404         (c_expand_builtin_printf): Use fix_string_type.
3405         * c-common.h: Update decls.
3406         * c-parse.in (string): Remove.  Update all uses to use STRING
3407         instead, and not call combine_strings.
3408         (yylexstring): New.
3409         (_yylex): Use it.
3410         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3411         (build_asm_stmt): Likewise.
3412         * objc/objc-act.c (my_build_string): Use fix_string_type.
3413         (build_objc_string_object): Build varray for combine_strings.
3414
3415 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
3416
3417         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3418         x86-64.
3419
3420 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3421
3422         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3423         (HAVE_NO_R_OPERAND): Remove.
3424         (HAVE_VALUE): Remove.
3425         (op_to_prio): Update.
3426         (UNARY): Don't alter flags.
3427         (_cpp_parse_expr): want_value used to indicate whether
3428         a number or unary operator is expected next.  Distinguish
3429         unary and binary +/-.
3430         (op_as_text): Update for unary operators.
3431
3432 2002-04-25  Richard Henderson  <rth@redhat.com>
3433
3434         PR c/2161
3435         * c-parse.in (yyoverflow): New.
3436
3437 2002-04-25  Richard Henderson  <rth@redhat.com>
3438
3439         PR c/2098
3440         * c-common.c (shorten_compare): Simplfy conditions leading to
3441         the generation of a warning.
3442
3443 2002-04-25  Richard Henderson  <rth@redhat.com>
3444
3445         PR c/2035
3446         * expmed.c (extract_bit_field): Fall through to generic code rather
3447         than aborting on subreg special case.
3448
3449 2002-04-25  David S. Miller  <davem@redhat.com>
3450
3451         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3452         for DECL being NULL.
3453
3454 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
3455
3456         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3457
3458 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
3459
3460         * c-decl.c (grokdeclarator): Remove outdated ??? note
3461         on invalid declaration of flexible array members.
3462
3463 2002-04-25  Richard Henderson  <rth@redhat.com>
3464
3465         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3466
3467 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3468
3469         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3470         needed by the compiler, even if they are used as global regs.
3471
3472 2002-04-25  Matt Hiller  <hiller@redhat.com>
3473
3474         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3475         functions.
3476         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3477         of the corresponding functions.
3478         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3479         New prototypes.
3480
3481 2002-04-25  Matt Hiller  <hiller@redhat.com>
3482
3483         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3484
3485         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3486         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3487         registers, adjust comment accordingly.
3488         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3489         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3490         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3491         for coprocessor registers.
3492         (ADDITIONAL_REGISTER_NAMES): Include
3493         ALL_COP_ADDITIONAL_REGISTER_NAMES.
3494
3495         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3496         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3497         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3498         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3499         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3500
3501         (mips_char_to_class): Adjust comment to include coprocessor
3502         constraint letters.
3503
3504         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3505         New functions.
3506         (mips_reg_names, mips_regno_to_class): Include coprocessor
3507         information.
3508         (mips_sw_reg_names): Ditto, make non-static.
3509         (mips_move_1word): Handle moves to and from coprocessor registers.
3510         (mips_move_2words): Handle moves to and from coprocessor
3511         registers.
3512         (mips_class_max_nregs, mips_register_move_cost): Handle
3513         coprocessor register classes.
3514         (override_options): Initialize mips_char_to_class and
3515         mips_hard_regno_mode_ok properly for coprocessor registers.
3516
3517         * config/mips/mips.md (movdi_internal, movdi_internal2,
3518         movsi_internal1, movsi_internal2): Add constraint-sets for
3519         coprocessor registers.
3520         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3521         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3522         isn't mips.
3523         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3524         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3525         isn't mips.
3526         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3527         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3528         isn't mips.
3529         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3530         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3531         isn't mips.
3532
3533         * doc/tm.texi: Document feature.
3534
3535 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3536
3537         * integrate.c (function_attribute_inlinable_p): Simplify.
3538         Check the table pointer is not NULL.
3539
3540 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
3541
3542         * doc/c-tree.texi: Fix typo in introduction.
3543
3544 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3545
3546         * c-common.h (c_common_parse_file): Update.
3547         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3548         * c-lex.c (YYDEBUG): Get from c-lex.h.
3549         (c_common_parse_file): Update.
3550         * c-lex.h (YYDEBUG, yydebug): New.
3551         * c-parse.in (YYDEBUG): Get from c-lex.h.
3552         (c_set_yydebug): Remove.
3553         * c-tree.h (c_set_yydebug): Remove.
3554         * langhooks-def.h (lhd_do_nothing_i): New.
3555         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3556         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3557         * langhooks.c  (lhd_do_nothing_i): New.
3558         (lhd_set_yydebug): Remove.
3559         * langhooks.h (struct lang_hooks): Update.
3560         * toplev.c (set_yydebug): New.
3561         (compile_file): Update call to parse_file hook.
3562         (decode_d_option): Update.
3563 objc:
3564         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3565
3566 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
3567
3568         * loop.c (load_mems): Don't change the interface of called functions.
3569
3570         * calls.c (expand_call): Take current_function_pretend_args_size
3571         into account when setting argblock for sibcalls.
3572
3573 2002-04-24  Matt Hiller  <hiller@redhat.com>
3574
3575         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3576         * c-lex.c: Ditto.
3577
3578         * cpplex.c (skip_line_comment): Process comment one multibyte
3579         character at a time rather than one char at a time, if
3580         appropriate.
3581         (parse_string): Process string one multibyte character at a time
3582         rather than one char at a time, if appropriate.
3583         * c-lex.c (lex_string): Lex and copy multibyte strings
3584         appropriately.
3585         * cpplib.h (cppchar_t): Change to unsigned.
3586
3587 2002-04-24  Richard Henderson  <rth@redhat.com>
3588
3589         PR c/3467
3590         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3591         for c99.
3592
3593 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
3594
3595         * sh.c (sh_va_arg): If argument was passed by reference,
3596         dereference the pointer.
3597
3598         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3599
3600         * sh.md (divsi3_i4_media): Use match_operand for input values
3601         rather than hard registers.
3602         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3603         unnecessarily through hard registers.  Keep copies of pseudo
3604         registers outside of the libcall sequence.
3605
3606         * sh.md (casesi_shift_media): Add modes.
3607
3608         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3609         values in memory.
3610
3611 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3612
3613         * attribs.c (c_common_attribute_table): Move table and handlers
3614         to c-common.c.
3615         (format_attribute_table, lang_attribute_table,
3616         lang_attribute_common): Remove.
3617         (init_attributes): Replace NULL pointers with pointers to the
3618         empty table.
3619         (handle_packed_attribute, handle_nocommon_attribute,
3620         handle_common_attribute, handle_noreturn_attribute,
3621         handle_noinline_attribute, handle_always_inline_attribute,
3622         handle_used_attribute, handle_unused_attribute,
3623         handle_const_attribute, handle_transparent_union_attribute,
3624         handle_constructor_attribute, handle_destructor_attribute,
3625         handle_mode_attribute, handle_section_attribute,
3626         handle_aligned_attribute, handle_weak_attribute,
3627         handle_alias_attribute, handle_visibility_attribute,
3628         handle_no_instrument_function_attribute, handle_malloc_attribute,
3629         handle_no_limit_stack_attribute, handle_pure_attribute,
3630         handle_deprecated_attribute, handle_vector_size_attribute,
3631         vector_size_helper): Move to c-common.c.
3632         * c-common.c (c_common_attribute_table,
3633         handle_packed_attribute, handle_nocommon_attribute,
3634         handle_common_attribute, handle_noreturn_attribute,
3635         handle_noinline_attribute, handle_always_inline_attribute,
3636         handle_used_attribute, handle_unused_attribute,
3637         handle_const_attribute, handle_transparent_union_attribute,
3638         handle_constructor_attribute, handle_destructor_attribute,
3639         handle_mode_attribute, handle_section_attribute,
3640         handle_aligned_attribute, handle_weak_attribute,
3641         handle_alias_attribute, handle_visibility_attribute,
3642         handle_no_instrument_function_attribute, handle_malloc_attribute,
3643         handle_no_limit_stack_attribute, handle_pure_attribute,
3644         handle_deprecated_attribute, handle_vector_size_attribute,
3645         vector_size_helper): Move from attribs.c.
3646         * c-common.h (c_common_attribute_table,
3647         c_common_format_attribute_table): New.
3648         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3649         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3650         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3651         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3652         (LANG_HOOKS_INITIALIZER): Update.
3653         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3654         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3655         * target.h: Update comment.
3656         * tree.c (default_target_attribute_table): Remove.
3657         * tree.h (default_target_attribute_table, format_attribute_table,
3658         lang_attribute_table, lang_attribute_common): Remove.
3659 objc:
3660         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3661         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3662
3663 2002-04-24  Jason Merrill  <jason@redhat.com>
3664
3665         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3666         * dwarf2out.c (dwarf_attr_name): Support it.
3667         (gen_array_type_die): Emit it.
3668         (lookup_type_die): No special handling for VECTOR_TYPE.
3669         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3670
3671 2002-04-24  Richard Henderson  <rth@redhat.com>
3672
3673         * config/mips/mips.md (movdi_usd): Renumber.
3674
3675 2002-04-24  David S. Miller  <davem@redhat.com>
3676
3677         PR target/6420
3678         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3679         32-bit Sparc and current_function_returns_struct is true.
3680
3681 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
3682
3683         * loop.c (canonicalize_condition): Use gen_int_mode.
3684
3685 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
3686
3687         * config/rs6000/altivec.h: Cleanup file.  Add non individual
3688         variants.
3689         (vec_vaddubm): New.
3690         (vec_vadduhm): New.
3691         (vec_vadduwm): New.
3692         (vec_vaddfp): New.
3693         (vec_vaddcuw): New.
3694         (vec_vaddubs): New.
3695         (vec_vaddsbs): New.
3696         (vec_vadduhs): New.
3697         (vec_vadduws): New.
3698         (vec_vaddsws): New.
3699         (vec_vand): New.
3700         (vec_vandc): New.
3701         (vec_vavgub): New.
3702         (vec_vavgsb): New.
3703         (vec_vavguh): New.
3704         (vec_vavgsh): New.
3705         (vec_vavguw): New.
3706         (vec_vavgsw): New.
3707         (vec_vrfip): New.
3708         (vec_vcmpbfp): New.
3709         (vec_vcmpequb): New.
3710         (vec_vcmpequh): New.
3711         (vec_vcmpequw): New.
3712         (vec_vcmpeqfp): New.
3713         (vec_vcmpgefp): New.
3714         (vec_vcmpgtub): New.
3715         (vec_vcmpgtsb): New.
3716         (vec_vcmpgtuh): New.
3717         (vec_vcmpgtsh): New.
3718         (vec_vcmpgtuw): New.
3719         (vec_vcmpgtsw): New.
3720         (vec_vcmpgtfp): New.
3721         (vec_vcmpgefp): New.
3722         (vec_vcfux): New.
3723         (vec_vcfsx): New.
3724         (vec_vctsxs): New.
3725         (vec_vctuxs): New.
3726         (vec_vexptefp): New.
3727         (vec_vrfim): New.
3728         (vec_lvx): New.
3729         (vec_lvebx): New.
3730         (vec_lvehx): New.
3731         (vec_lde): Add vector float variant.
3732         (vec_lvewx): New.
3733         (vec_lvxl): New.
3734         (vec_vlogefp): New.
3735         (vec_vmaddfp): New.
3736         (vec_vmhaddshs): New.
3737         (vec_vmaxub): New.
3738         (vec_vmaxsb): New.
3739         (vec_vmaxuh): New.
3740         (vec_vmaxsh): New.
3741         (vec_vmaxuw): New.
3742         (vec_vmaxsw): New.
3743         (vec_vmaxsw): New.
3744         (vec_vmaxfp): New.
3745         (vec_vmrghb): New.
3746         (vec_vmrghh): New.
3747         (vec_vmrghw): New.
3748         (vec_vmrglb): New.
3749         (vec_vmrglh): New.
3750         (vec_vmrglw): New.
3751         (vec_vminub): New.
3752         (vec_vminsb): New.
3753         (vec_vminuh): New.
3754         (vec_vminsh): New.
3755         (vec_vminuw): New.
3756         (vec_vminsw): New.
3757         (vec_vminfp): New.
3758         (vec_vmladduhm): New.
3759         (vec_vmhraddshs): New.
3760         (vec_msumubm): New.
3761         (vec_vmsummbm): New.
3762         (vec_vmsumuhm): New.
3763         (vec_vmsumshm): New.
3764         (vec_vmsumuhs): New.
3765         (vec_vmsumshs): New.
3766         (vec_vmuleub): New.
3767         (vec_vmulesb): New.
3768         (vec_vmuleuh): New.
3769         (vec_vmulesh): New.
3770         (vec_vmuloub): New.
3771         (vec_mulosb): New.
3772         (vec_vmulouh): New.
3773         (vec_vmulosh): New.
3774         (vec_vnmsubfp): New.
3775         (vec_vnor): New.
3776         (vec_vor): New.
3777         (vec_vpkuhum): New.
3778         (vec_vpkuwum): New.
3779         (vec_vpkpx): New.
3780         (vec_vpkuhus): New.
3781         (vec_vpkshss): New.
3782         (vec_vpkuwus): New.
3783         (vec_vpkswss): New.
3784         (vec_vpkshus): New.
3785         (vec_vpkswus): New.
3786         (vec_vperm): New.
3787         (vec_vrefp): New.
3788         (vec_vrlb): New.
3789         (vec_vrlh): New.
3790         (vec_vrlw): New.
3791         (vec_vrfin): New.
3792         (vec_vrsqrtefp): New.
3793         (vec_vsel): New.
3794         (vec_vslb): New.
3795         (vec_vslh): New.
3796         (vec_vslw): New.
3797         (vec_vsldoi): New.
3798         (vec_vsl): New.
3799         (vec_vslo): New.
3800         (vec_vspltb): New.
3801         (vec_vsplth): New.
3802         (vec_vspltw): New.
3803         (vec_vspltisb): New.
3804         (vec_vspltish): New.
3805         (vec_vspltisw): New.
3806         (vec_vsrb): New.
3807         (vec_vsrh): New.
3808         (vec_vsrw): New.
3809         (vec_vsrab): New.
3810         (vec_vsrah): New.
3811         (vec_vsraw): New.
3812         (vec_vsr): New.
3813         (vec_vsro): New.
3814         (vec_stvx): New.
3815         (vec_stvebx): New.
3816         (vec_stvehx): New.
3817         (vec_stvewx): New.
3818         (vec_stvxl): New.
3819         (vec_vsububm): New.
3820         (vec_vsubuhm): New.
3821         (vec_vsubuwm): New.
3822         (vec_vsubfp): New.
3823         (vec_vsubcuw): New.
3824         (vec_vsububs): New.
3825         (vec_vsubsbs): New.
3826         (vec_vsubuhs): New.
3827         (vec_vsubshs): New.
3828         (vec_vsubuws): New.
3829         (vec_vsubsws): New.
3830         (vec_vsum4ubs): New.
3831         (vec_vsum4sbs): New.
3832         (vec_vsum4shs): New.
3833         (vec_vsum2sws): New.
3834         (vec_vsumsws): New.
3835         (vec_vrfiz): New.
3836         (vec_vupkhsb): New.
3837         (vec_vupkhpx): New.
3838         (vec_vupkhsh): New.
3839         (vec_vupklsb): New.
3840         (vec_vupklpx): New.
3841         (vec_vupklsh): New.
3842         (vec_vxor): New.
3843
3844 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
3845
3846         PR c/5430
3847         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3848         added literals from substracted literals.
3849         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3850         (fold) [associate]: Preserve MINUS_EXPR if needed.
3851
3852 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
3853
3854         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3855         are obsoleted.
3856
3857 2002-04-23  Tom Tromey  <tromey@redhat.com>
3858
3859         * gcc.c: Added --resource.  For PR java/6314.
3860
3861 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
3862
3863         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3864         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3865         these libraries.
3866
3867 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
3868
3869         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3870
3871 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
3872
3873         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3874         workaround.
3875         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3876         (ix86_expand_clrstr): Fix typo.
3877         * loop.c (gen_load_of_final_value): New.
3878         (loop_givs_rescan, strength_reduce, check_dbra_loop):
3879         Use it.
3880
3881 2002-04-23  Roger Sayle  <roger@eyesopen.com>
3882
3883         * builtins.c (builtin_memset_gen_str): New function.
3884         (expand_builtin_memset): Optimize the case of constant length, but
3885         unknown value.
3886
3887 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
3888
3889         * config/rs6000/altivec.h (vec_step): Remove extraneous
3890         parentheses.
3891         (vec_ctu): Cast return.
3892
3893 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
3894
3895         PR target/6413
3896         * function.h: (struct function): Add profile_label_no field.
3897         (current_function_profile_label_no): Define.
3898         * function.c: (profile_label_no): New static var.
3899         (expand_function_start): Increment it, and copy to
3900         current_function_profile_label_no.
3901         * output.h (profile_label_no): Delete.
3902         * final.c (profile_label_no): Delete.
3903         (profile_function): Use current_function_profile_label_no.
3904         (final_end_function): Don't increment profile_label_no here.
3905         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3906         profile_label_no with current_function_profile_label_no.
3907         * config/pa/pa.c (current_function_number): Delete.
3908         (pa_output_function_prologue): Don't output profile label here.
3909         (hppa_profile_hook): Use label_no param rather than
3910         current_function_number.
3911         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3912         * config/pa/pa.h: .. here.
3913         (FUNCTION_PROFILER): Output profile label here.
3914
3915 2002-04-22  Eric Christopher  <echristo@redhat.com>
3916
3917         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3918         patch of 2002-04-09 due to binutils issues.
3919         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3920
3921 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3922
3923         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3924         constraint to 'o' for m=r and r=m alternatives.
3925         ("*movv8hi_internal1"): Same.
3926         ("*movv16qi_internal1"): Same.
3927         ("*movv4sf_internal1"): Same.
3928
3929 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
3930
3931         * rtl.h (RTX_FLAG): New macro.
3932         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3933         * final.c (alter_subreg): Use macro to access rtx flag.
3934         * integrate.c (copy_rtx_and_substitute): Use new access macro.
3935         * print-rtl.c (print_rtx): Use new access macro.
3936
3937         * cse.c (insert): Check rtx code before accessing flag.
3938
3939         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3940         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3941         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3942         convert_const_symbol_ref, make_canonical, make_alternative_compare,
3943         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3944         simplify_test_exp, optimize_attrs, simplify_by_exploding,
3945         find_and_mark_used_attributes, unmark_used_attributes,
3946         add_values_to_cover, simplify_with_current_value,
3947         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3948         copy_rtx_unchanging, main): Use new access macros.
3949
3950 2002-04-22  Tom Rix  <trix@redhat.com>
3951
3952         * expmed.c (init_expmed): Generate shifted constant once.
3953
3954 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
3955
3956         * c-lex.c (lex_charconst): Call convert to get constant in
3957         proper type; don't just smash the type field.
3958         Fixes PR c/6300.
3959
3960         * config.gcc: Add list of obsolete configurations.  Disallow
3961         building these without --enable-obsolete.
3962         * doc/install.texi: Document --enable-obsolete and obsoletion
3963         policy.  Mention obsoletion of individual targets in
3964         appropriate places.
3965
3966 2002-04-22  Richard Henderson  <rth@redhat.com>
3967
3968         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3969
3970 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
3971
3972         PR f/6138.
3973         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3974         (walk_fixup_memory_subreg): Likewise.
3975         (fixup_var_refs_insn): Adjust accordingly.
3976         (fixup_var_refs_1): Likewise.
3977
3978 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
3979
3980         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3981         LIBPATH_ARCH64_SPEC): Define.
3982         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3983         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3984         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3985         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3986
3987 2002-04-22      Joel Sherrill <joel@OARcorp.com>
3988
3989         * gthr-rtems.h: Correct prototypes to remove warnings.
3990
3991 2002-04-22  Richard Henderson  <rth@redhat.com>
3992
3993         PR c/6344
3994         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3995
3996         * gcse.c (free_insn_expr_list_list): New.
3997         (clear_modify_mem_tables): Use it.  Fix bit set usage.
3998         (canon_list_insert): Use EXPR_LISTs for expressions.
3999         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
4000
4001 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4002
4003         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
4004         file change and include code to _cpp_pop_buffer.
4005         * cpphash.h (struct pending_option): Predeclare.
4006         (struct cpp_reader): New member next_include_file.
4007         (_cpp_pop_file_buffer): Update.
4008         (_cpp_push_next_buffer): Update, rename.
4009         * cppinit.c (cpp_destroy): Free include chain and pending here.
4010         (cpp_finish_options): Simplify.
4011         (_cpp_push_next_buffer): Rename and clean up.
4012         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
4013         Clarify.
4014         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
4015
4016 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
4017
4018         * config/rs6000/altivec.h (vec_xor): Add variant for both args
4019         being vector signed int.
4020         (vec_andc): Same.
4021         (vec_xor): Add variant for both args being vector signed char.
4022         Remove redundant variant.
4023         (vec_andc): Same.
4024
4025 2002-04-21  David S. Miller  <davem@redhat.com>
4026
4027         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
4028         compare mode in output RTL.
4029
4030 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
4031
4032         * config/rs6000/rs6000.c (rs6000_override_options): Correct
4033         style and formatting of previous patch.
4034
4035 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
4036
4037         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
4038         flag_pic for ABI_AIX.
4039
4040 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4041
4042         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
4043         * cppfiles.c (read_include_file): Similarly.
4044         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
4045         uxstrdup ustrchr, ufputs): Similarly.
4046         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
4047         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
4048         cpp_ideq, parse_identifier, parse_number): Similarly.
4049         * cpplib.c (struct directive, dequote_string, D, run_directive,
4050         cpp_push_buffer): Similarly.
4051         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
4052         _cpp_create_definition, check_trad_stringification,
4053         cpp_macro_definition): Similarly.
4054
4055 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4056
4057         * cppmacro.c (funlike_invocation_p): Don't step back
4058         over CPP_EOF.
4059
4060 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
4061
4062         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
4063         labelno.
4064
4065 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
4066
4067         * doc/invoke.texi: Remove Chill references.
4068         * doc/gcc.texi: Update last modified date.
4069
4070 2002-04-20  Kazu Hirata  <kazu@hxi.com>
4071
4072         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
4073         push and pop.  Replace add.l with add.w.
4074
4075 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4076
4077         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
4078         multiply instructions for H8/300H case.
4079
4080 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4081
4082         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
4083         Bum three instructions from each routine.
4084
4085 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4086
4087         * Makefile.in: Update.
4088         * decl.c (push_c_function_context, pop_c_function_context,
4089         mark_c_function_context): Rename for consistency.
4090         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
4091         * c-tree.h (push_c_function_context, pop_c_function_context,
4092         mark_c_function_context): Rename for consistency.
4093         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4094         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4095         * function.c (init_lang_status, save_lang_status,
4096         restore_lang_status, mark_lang_status, free_lang_status):
4097         Move to langhooks.h.
4098         (push_function_context_to, pop_function_context_from,
4099         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
4100         Update.
4101         * function.h (init_lang_status, save_lang_status,
4102         restore_lang_status, mark_lang_status, free_lang_status):
4103         Move to langhooks.h.
4104         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
4105         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
4106         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
4107         LANG_HOOKS_FUNCTION_INITIALIZER): New.
4108         (LANG_HOOKS_INITIALIZER): Update.
4109         (lhd_do_nothing_f): New.
4110         * langhooks.h (struct lang_hooks_for_functions): New.
4111         (struct lang_hooks): New hooks.
4112         * langhooks.c (lhd_do_nothing_f): New.
4113 objc:
4114         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4115         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4116
4117 2002-04-19  David S. Miller  <davem@redhat.com>
4118
4119         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
4120         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
4121
4122 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
4123
4124         PR optimization/3756
4125         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
4126         x = ((int) y < 0) ? cst1 : cst2.
4127
4128 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
4129
4130         PR c/6358
4131         * function.c: Reapply patch for c/6358.
4132         (expand_function_end): Copy decl_rtl's mode, not
4133         current_function_return_rtx mode.
4134
4135 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
4136
4137         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
4138         targets.
4139
4140 2002-04-19  Tom Tromey  <tromey@redhat.com>
4141
4142         * doc/install.texi (Specific): Update status of Solaris 2.8.
4143         For PR libgcj/6158.
4144
4145 2002-04-19  Andreas Schwab  <schwab@suse.de>
4146
4147         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
4148         (PUT_REAL): Restore old definition.
4149
4150 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
4151             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4152
4153         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
4154         binutils 2.11.2 and higher generate smaller binaries than Sun's
4155         native tools.
4156
4157 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
4158
4159         PR c++/6352
4160         * toplev.c (rest_of_compilation): Do not defer functions for which
4161         TREE_SYMBOL_REFERENCED has already been set.
4162
4163 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
4164
4165         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
4166         alternative.
4167
4168 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4169
4170         * builtins.c: Include langhooks.h.
4171         (lang_type_promotes_to): Remove.
4172         (expand_builtin_va_arg): Use new hook.
4173         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
4174         (simple_type_promotes_to): Move to c-typeck.c.
4175         * c-common.h (simple_type_promotes_to): Remove.
4176         * c-decl.c (duplicate_decls, grokdeclarator): Update.
4177         * c-format.c: Include langhooks.h.
4178         (check_format_types): Update.
4179         * c-tree.h (c_type_promotes_to): New.
4180         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
4181         (type_lists_compatible_p): Update.
4182         * langhooks-def.h (lhd_type_promotes_to): New.
4183         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
4184         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4185         * langhooks.c (lhd_type_promotes_to): New.
4186         * langhooks.h (struct lang_hooks_for_types): New hook.
4187         * tree.h (lang_type_promotes_to): Remove.
4188 objc:
4189         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4190
4191 2002-04-18  Richard Henderson  <rth@redhat.com>
4192
4193         * function.c: Revert patch for c/6358.
4194
4195 2002-04-18  Richard Henderson  <rth@redhat.com>
4196
4197         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
4198         blocks.  Handle multiple references to the TRAP block.  Handle
4199         non-adjacent THEN and OTHER blocks.
4200
4201 2002-04-18  Richard Henderson  <rth@redhat.com>
4202
4203         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
4204         crash with no type for by-mode libcalls.
4205
4206         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
4207
4208 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
4209
4210         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
4211         __xtensa_nonlocal_goto): Use a syscall instructions to flush
4212         the register windows.
4213
4214 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
4215
4216         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
4217         appropriate.  Document need for extended precision even when
4218         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
4219         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
4220         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
4221         instead of relying on later syntax error when REAL_WIDTH > 5.
4222         * real.c: Define NE based only on whether or not we have a
4223         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
4224         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
4225         define GET_REAL and PUT_REAL as simple memcpy operations; no
4226         need to byteswap or round.
4227         Use #error instead of #ifdef-ing out the entire file, for
4228         prompt error detection.
4229
4230         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
4231
4232 2002-04-18  David S. Miller  <davem@redhat.com>
4233
4234         * config/sparc/sparc.h (BRANCH_COST): Define.
4235
4236         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
4237         does it.
4238
4239 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
4240
4241         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
4242         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
4243         propagate_block calls after relaxation loop using new variable
4244         stabilized_prop_flags.
4245
4246 2002-04-18  Richard Henderson  <rth@redhat.com>
4247
4248         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
4249         (ia64_va_arg): Expect variable sized types by reference.
4250         * config/ia64/ia64-protos.h: Update.
4251         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
4252         ia64_function_arg_pass_by_reference.
4253
4254 2002-04-18  Richard Henderson  <rth@redhat.com>
4255
4256         * ifcvt.c: Include except.h.
4257         (block_has_only_trap): Break out from find_cond_trap.
4258         (find_cond_trap): Use it.  Always delete the trap block.
4259         (merge_if_block): Allow then block null.  Be less simplistic about
4260         what insns can end a block.
4261         * Makefile.in (ifcvt.o): Depend on except.h.
4262
4263         * config/ia64/ia64.md (trap, conditional_trap): New.
4264
4265 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4266
4267         PR c/6358
4268         * function.c (assign_parms): Assign hard current_function_return_rtx
4269         register here...
4270         (expand_function_end): ...not here.
4271
4272 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4273
4274         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4275         * c-tree.h (c_incomplete_type_error): New.
4276         * c-typeck.c (require_complete_type, build_component_ref): Update.
4277         (incomplete_type_error): Rename.
4278         * langhooks-def.h (lhd_incomplete_type_error): New.
4279         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
4280         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4281         * langhooks.c (lhd_incomplete_type_error): New.
4282         * langhooks.h (struct lang_hooks_for_types): New hook.
4283         * tree.c (size_in_bytes): Use new hook.
4284         * tree.h (incomplete_type_error): Remove.
4285 objc:
4286         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4287
4288 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
4289
4290         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
4291         TARGET_FLOAT_FORMAT blocks.
4292
4293 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4294
4295         * doc/install.texi (Downloading the source): Do not mention Chill
4296         any longer, but mention Ada.
4297         (Configuration): Do not mention Chill any longer.
4298
4299 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
4300
4301         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4302
4303 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
4304
4305         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4306         in last patch.
4307
4308 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4309
4310         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4311         instead of unsigned_type.
4312
4313 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
4314
4315         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4316         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4317         later.
4318
4319 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
4320
4321         * attribs.c (vector_type_node_list): New static variable.
4322         (handle_vector_size_attribute): Use it to avoid generating a
4323         new type node each time we are called.
4324
4325         * combine.c (subst): Avoid trying to make a vector mode subreg of
4326         an integer constant.
4327         (gen_lowpart_for_combine): Likewise.
4328
4329 2002-04-18  Roger Sayle  <roger@eyesopen.com>
4330             Jakub Jelinek  <jakub@redhat.com>
4331
4332         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4333         for integer constant c (if x has unsigned type or sign bit is not
4334         set in c).  This folds the zero/sign extension into the bit-wise and
4335         operation.
4336
4337 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4338
4339         PR middle-end/6205
4340         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4341         otherwise xorps.
4342
4343 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
4344
4345         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4346
4347 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
4348
4349         * gcc.c (read_specs): Detect and fail if an attempt is made to
4350         rename a spec string to an already existing string.
4351
4352 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4353
4354         * config/s390/s390.c (legitimize_pic_address): Do not generate
4355         illegal address constant without CONST.
4356
4357 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4358
4359         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4360         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4361
4362 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4363
4364         PR optimization/6305
4365         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4366         to make sure previous reloads are taken into account.  Generate
4367         better code if one operand is an in-range immediate constant.
4368
4369 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
4370
4371         * doc/install.texi (Building): libgcj requires GNU make.
4372
4373 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4374
4375         PR bootstrap/6315
4376         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4377         even if hard quad and register is not floating.
4378         (movtf reg<-mem split): Disallow splitting if hard quad and
4379         register is floating.
4380         (movtf mem<-reg split): Likewise.
4381         * config/sparc/sparc.c (fp_register_operand): New predicate.
4382         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4383
4384 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
4385
4386         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4387         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4388         (unprotoize.o): Ditto.  Build from protoize.c.  Define
4389         UNPROTOIZE on command line.
4390         * protoize.c: Include cppdefault.h.  Delete include_defaults.
4391         (in_system_include_dir): Use cpp_include_defaults (defined in
4392         cppdefault.o).
4393         * unprotoize.c: Delete file.
4394
4395 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
4396
4397         * config/rs6000/altivec.h (vec_ld): Add array variants.
4398         (vec_lde): Same.
4399         (vec_ldl): Same.
4400
4401 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
4402             Aldy Hernandez <aldyh@redhat.com>
4403
4404         * config/rs6000/altivec.h: Define __ALTIVEC__.
4405         (bool): New.
4406         (__pixel): New.
4407         (pixel): New.
4408         (vec_cfux): New.
4409         (vec_vmaddfp): New.
4410         (vec_vsldoi): New.
4411         Add parentheses to all macro arguments.
4412
4413 2002-04-16  Richard Henderson  <rth@redhat.com>
4414
4415         PR c++/6320
4416         * except.c (remove_eh_handler): Insert inner regions at beginning
4417         of sibling chain.  Refactor expressions.
4418
4419 2002-04-16  Richard Henderson  <rth@redhat.com>
4420
4421         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4422         * config/sparc/sol2-gas-bi.h: New file.
4423         * config.gcc (sparc*-solaris): Add it as needed.
4424         * configure.in (AS_SPARC64_FLAG): Remove check.
4425         * config.in, configure: Regenerate.
4426
4427         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4428
4429 2002-04-16  Richard Henderson  <rth@redhat.com>
4430
4431         * config/mips/mips.c (override_options): Don't override N32 for
4432         a 64-bit ISA.
4433
4434         PR 6202
4435         * config/mips/mips.md (can_delay): Split out of existing define_delays.
4436         (HILO_delay): Set can_delay false.
4437
4438 2002-04-16  Dale Johannesen <dalej@apple.com>
4439
4440         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4441         instruction addresses.
4442         (rs6000_output_function_epilogue): Likewise.
4443
4444 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
4445
4446         * c-parse.in (poplevel, compstmt_start,
4447         compstmt_primary_start): Add ending ';', in accordance
4448         with POSIX.
4449
4450 2002-04-16  Richard Henderson  <rth@redhat.com>
4451
4452         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4453         Adjust tm_file order to get TARGET_DEFAULT set properly.
4454         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4455         * doc/install.texi (sparc-solaris): Update.
4456
4457 2002-04-16  Dale Johannesen <dalej@apple.com>
4458
4459         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4460         comparison operands do not match each other or if modes of
4461         conditions do not match result.
4462
4463 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
4464
4465         PR target/6305
4466         * config/s390/s390.md (mulsidi3): Set both subregs of the
4467         multiword register.
4468
4469 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
4470
4471         * config/rs6000/altivec.h (vec_addc): Type check.
4472
4473 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4474
4475         PR middle-end/6279
4476         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4477
4478         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4479
4480 2002-04-15  Richard Henderson  <rth@redhat.com>
4481
4482         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4483         call_really_used_regs too.
4484
4485 2002-04-15  Richard Henderson  <rth@redhat.com>
4486
4487         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4488
4489 2002-04-15  David S. Miller  <davem@redhat.com>
4490
4491         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4492         as being CLOBBERed.
4493
4494 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4495
4496         PR c/6290
4497         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4498         CONST_VECTOR is { 0, ... 0 }.
4499
4500 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
4501
4502         * doc/install.texi (Installing GCC: Configuration): Clarify
4503         the only supported ways to configure gcc.
4504
4505 2002-04-15  Roland McGrath  <roland@frob.com>
4506
4507         * config.gcc (alpha*-*-gnu*): New target configuration.
4508         * config/alpha/gnu.h: New file for it.
4509         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4510
4511 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
4512
4513         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4514         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4515         * tree.h (expand_start_stmt_expr): Update prototype.
4516         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4517         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4518         on the STMT_EXPR created for the inline function.
4519
4520 2002-04-15  Richard Henderson  <rth@redhat.com>
4521
4522         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4523         config/i386/linux-aout.h, config/i386/linux-oldld.h,
4524         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4525         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4526         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4527         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4528         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4529         Define __gnu_linux__, not gnu_linux.
4530         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4531
4532 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
4533
4534         Remove Chill front end.
4535         * gcc.c (default_compilers): Remove Chill entries.
4536         * ch: Remove directory.
4537         * doc/frontends.texi: Remove information about Chill.
4538         * doc/sourcebuild.texi: Likewise.
4539         * doc/standards.texi: Likewise.
4540
4541 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
4542
4543         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4544         (LONGLONG_STANDALONE): Define.
4545
4546 2002-04-15  David S. Miller  <davem@redhat.com>
4547
4548         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4549         Call emit_library_call with LCT_NORMAL.
4550         (sparc_initialize_trampoline): Use LCT_foo instead of
4551         magic constant in emit_library_call invocations.
4552         (sparc64_initialize_trampoline): Likewise.
4553         (sparc_profile_hook): Likewise.
4554         * config/sparc/sparc.md: Likewise.
4555
4556         * config/sparc/sparc.c (sparc_extra_constraint_check):
4557         Fix type of argument 'c'.
4558         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4559         Likewise.
4560
4561 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4562
4563         * diagnostic.h (output_buffer_state): Redefine.
4564         (output_format_decoder): New macro.
4565         (output_prefixing_rule): Likewise.
4566         (output_line_cutoff): Likewise.
4567         (diagnostic_format_decoder): Adjust.
4568         (diagnostic_prefixing_rule): Likewise.
4569         (diagnostic_line_cutoff): Likewise.
4570         (diagnostic_state): Likewise.
4571         (diagnostic_kind_count): Likewise.
4572         (diagnostic_buffer): Now a macro.
4573
4574         * diagnostic.c (diagnostic_buffer): Remove definition.
4575         (output_is_line_wrapping): Adjust.
4576         (set_real_maximum_length): Likewise.
4577         (output_set_maximum_length): Likewise.
4578         (init_output_buffer): Likewise.
4579         (lhd_print_error_function): Likewise.
4580         (output_do_verbatim): Likewise.
4581
4582 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4583
4584         * cpperror.c (print_location): Don't print include chain
4585         if line == 0.
4586         (cpp_begin_message): Update to use DL_ macros.
4587         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4588         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4589         cpp_notice, cpp_notice_from_errno): Remove.
4590         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4591         level.
4592         (cpp_errno): New.
4593         * cppexp.c (CPP_ICE): Remove.
4594         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4595         lex, integer_overflow, _cpp_parse_expr): Update.
4596         * cppfiles.c (read_include_file, find_include_file,
4597         handle_missing_header, _cpp_read_file, remap_filename): Update.
4598         * cpphash.h (enum error_type): Remove.
4599         (_cpp_begin_message): Update.
4600         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4601         cpp_handle_option, cpp_post_options): Update.
4602         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4603         skip_whitespace, parse_identifier, parse_slow, parse_string,
4604         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4605         cpp_interpret_charconst): Update.
4606         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4607         lex_macro_node, do_undef, glue_header_name, parse_include,
4608         do_include_common, read_flag, do_line, do_linemarker, do_ident,
4609         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4610         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4611         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4612         _cpp_pop_buffer, do_diagnostic): Update.
4613         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4614         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4615         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4616         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4617         cpp_notice, cpp_notice_from_errno): Remove.
4618         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4619         level.
4620         (cpp_errno): New.
4621         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4622         collect_args, enter_macro_context, save_parameter, parse_params,
4623         _cpp_create_definition, check_trad_stringification,
4624         cpp_macro_definition): Update.
4625         * cppmain.c (cpp_preprocess_file): Update.
4626         * fix-header.c (read_scan_file): Update.
4627
4628 2002-04-14  Andreas Schwab  <schwab@suse.de>
4629
4630         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4631
4632 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4633
4634         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4635
4636 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4637
4638         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4639         not gnu_hurd.
4640
4641 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
4642
4643         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4644
4645 2002-04-13      Joel Sherrill <joel@OARcorp.com>
4646
4647         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
4648         sparc-elf and sparc-rtems targets.
4649
4650 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4651
4652         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4653         defined, and __gnu_hurd__ wherever __GNU__ is defined.
4654         * arm/linux-elf.h: Likewise.
4655         * cris/aout.h: Likewise.
4656         * cris/linux.h: Likewise.
4657         * i370/linux.h: Likewise.
4658         * i386/gnu.h: Likewise.
4659         * i386/linux-aout.h: Likewise.
4660         * i386/linux-oldld.h: Likewise.
4661         * i386/linux.h: Likewise.
4662         * i386/linux64.h: Likewise.
4663         * ia64/linux.h: Likewise.
4664         * m68k/linux-aout.h: Likewise.
4665         * m68k/linux.h: Likewise.
4666         * mips/linux.h: Likewise.
4667         * pa/pa-linux.h: Likewise.
4668         * pj/linux.h: Likewise.
4669         * rs6000/sysv4.h: Likewise.
4670         * s390/linux.h: Likewise.
4671         * sh/linux.h: Likewise.
4672         * sparc/linux-aout.h: Likewise.
4673         * sparc/linux.h: Likewise.
4674         * sparc/linux64.h: Likewise.
4675         * xtensa/linux.h: Likewise.
4676
4677 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
4678
4679         * stmt.c (check_unique_operand_names): Expect operand names to
4680         be strings rather than identifiers.  Use simple_cst_equal to
4681         compare them.
4682         (resolve_operand_name_1): Make same identifier to string change here.
4683         * c-parse.in (asm_operand): Convert a named operand into a string.
4684         * cp/parse.y (asm_operand): Likewise.
4685
4686 2002-04-13  Andreas Schwab  <schwab@suse.de>
4687
4688         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4689
4690 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
4691
4692         Revert these changes:
4693
4694         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
4695
4696         PR c++/5571
4697         * stor-layout.c (layout_decl): Reset the RTL for the decl.
4698
4699 2002-04-12  Richard Henderson  <rth@redhat.com>
4700
4701         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4702         (sparc*-*-solaris): Clean up header files.
4703         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4704         and plan on generating 64-bit code.
4705         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4706         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4707         * config/sparc/sol2-sld-64.h: Rename ...
4708         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
4709         for AS_SPARC64_FLAG not defined.
4710         * config/sparc/sol2-gld-bi.h: New.
4711         * config/sparc/sol2-sld.h: Remove.
4712         * config/sparc/sol26-sld.h: New.
4713         * config/sparc/sol2.h: Tidy comments.
4714         * doc/install.texi: Document sparc-solaris configury changes.
4715
4716 2002-04-12  Richard Henderson  <rth@redhat.com>
4717
4718         * recog.c (offsettable_address_p): Match the logic in adjust_address.
4719
4720         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4721         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
4722
4723 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4724
4725         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4726
4727 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
4728
4729         * pa.c (pa_can_combine_p): Call extract_insn before calling
4730         constrain_operands.
4731
4732 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
4733
4734         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4735         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4736         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4737         (CPP_PREDEFINES): Handle __declspec.
4738         * config/i386/t-interix (USER_H): Remove.
4739
4740 2002-04-12  DJ Delorie  <dj@redhat.com>
4741
4742         * integrate.c (compare_blocks): Make comparisons safe for when
4743         sizeof(int) < sizeof(char *).
4744         (find_block): Likewise.
4745
4746 2002-04-12  Jan Hubicka  <jh@suse.cz>
4747             David Edelsohn  <edelsohn@gnu.org>
4748
4749         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4750         registers.
4751         (symbol_ref_operand): New.
4752         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4753         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4754
4755 2002-04-12  Andreas Schwab  <schwab@suse.de>
4756
4757         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4758         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4759         overrides the definition in config/svr4.h.
4760
4761 2002-04-12      Eric Norum <eric.norum@usask.ca>
4762
4763         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4764         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4765         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4766         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4767         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4768         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4769         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4770         definitions to config/rtems.h and make the targets more similar.
4771
4772 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4773
4774         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4775         POINTERS_EXTEND_UNSIGNED.
4776         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4777         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4778
4779         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4780         not specified.
4781
4782 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
4783
4784         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4785         depends on TARGET_SHMEDIA, not TARGET_SH5.
4786
4787 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
4788
4789         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4790         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4791
4792 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
4793
4794         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4795         no r0 clobber.
4796
4797 2002-04-12  Andreas Schwab  <schwab@suse.de>
4798
4799         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4800
4801 2002-04-12  Richard Henderson  <rth@redhat.com>
4802
4803         PR bootstrap/4191
4804         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4805
4806         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4807         modes spanning multiple hard regs.
4808
4809         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4810
4811 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4812
4813         * pa.c (pa_output_function_prologue): Don't accumulate the total
4814         number of code bytes when using TARGET_64BIT, or gas, SOM and not
4815         the portable runtime.
4816         (output_deferred_plabels): Handle 64bit plabels.
4817         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4818         generating pic code using the GAS assembler for object formats that
4819         are not SOM (ie., ELF32 and ELF64).
4820         (output_millicode_call): Check attribute type if attribute length is 28.
4821         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
4822         dbr_sequence_length once.
4823         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4824         dbr_sequence_length once.
4825         * pa.h (TARGET_SOM): Define if not defined.
4826         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4827         with GAS and not SOM.
4828         (jump, call_internal_reg, call_value_internal_reg): Likewise.
4829         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
4830
4831 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4832
4833         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4834         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4835         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4836         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4837         elfos.h and dbxelf.h values are fine now.
4838         * config/i386/freebsd.h, config/alpha/freebsd.h
4839         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4840
4841 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4842
4843         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4844         or set Acpu or Amachine.  Reformat.
4845         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4846         define.
4847         (LINK_SPEC): Do not need to undef.
4848         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4849         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4850         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4851         define.
4852         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4853         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4854         (LINK_SPEC): Do not need to undef.
4855         (DONT_USE_BUILTIN_SETJMP): Do not define.
4856         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4857         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
4858         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4859         Remove trailing spaces.
4860         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4861         __ELF__, or set Acpu or Amachine.  Reformat.
4862         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4863         define.
4864
4865 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4866
4867         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4868         all other *-*-freebsd* targets.
4869
4870 2002-04-11  Richard Henderson  <rth@redhat.com>
4871
4872         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4873
4874 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4875
4876         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4877         Include {cpu}/{cpu}.h thru tm_file.
4878         (alpha*-*-linux*ecoff): Remove target.
4879         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4880         (LINK_SPEC): Remove, is not OS independent.
4881         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4882         (LINK_SPEC): Do not need to #undef any longer.
4883         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4884         any longer.
4885         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4886         __ELF__.
4887         (LINK_SPEC): Moved here from alpha/elf.h.
4888         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4889         SUB_CPP_PREDEFINES.
4890         * config/alpha/linux-ecoff.h: Remove.
4891         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4892         (CPP_SPEC): Define _POSIX_SOURCE as needed.
4893         (CPP_SUBTARGET_SPEC): Do not define.
4894         (LINK_SPEC): Do not need to #undef any longer.
4895         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4896         * config/alpha/vms.h: Likewise.
4897
4898 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
4899
4900         * doc/extend.texi: Remove old claim that typedefs cannot have
4901         an alignment attribute.
4902
4903 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4904
4905         PR optimization/6177
4906         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4907         bitpos is 0 and bitsize CONCAT size.
4908
4909 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4910
4911         PR c/6223
4912         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4913
4914 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
4915
4916         * config/alpha/freebsd.h: Minor reformatting.
4917         (CPP_SPEC): Define ELF and add cpp_subtarget.
4918         (ASM_SPEC): No longer needed.
4919
4920 2002-04-11  Richard Henderson  <rth@redhat.com>
4921
4922         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4923         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
4924         (dimode mem/zero splitter): New.
4925
4926 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
4927
4928         * config/cris/cris.c (cris_override_options): Tweak error message
4929         for PIC not implemented.
4930
4931         * config/cris/cris.h: Tweak comments related to parameter-passing.
4932
4933         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4934
4935 2002-04-10  Richard Henderson  <rth@redhat.com>
4936
4937         * except.c (add_ehl_entry): Allow duplicates after landing pad
4938         creation.
4939
4940 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
4941
4942         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4943
4944 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
4945
4946         * c-decl.c (c_init_decl_processing): Move generation of
4947         decls for g77_integer_type_node and friends from here ...
4948         * c-common.c (c_common_nodes_and_builtins): ... to here.
4949
4950 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
4951
4952         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4953         is only used as frame pointer when frame_pointer_needed is true.
4954
4955 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
4956
4957         PR target/817
4958         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4959         for the fact that the pool entry uses two words.
4960         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
4961         1k bytes.
4962         (movdf_soft_insn): Similarly.
4963         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4964         for the fact that the pool entry uses three words.
4965
4966 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
4967
4968         * config/mips/mips.c (mips_va_arg): When using the struct version
4969         of the EABI va_list, allow arguments in the register save area to
4970         take up less room than a stack argument.
4971
4972 2002-04-10  Richard Henderson  <rth@redhat.com>
4973
4974         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4975         if EXPAND_INITIALIZER.
4976
4977 2002-04-09  Richard Henderson  <rth@redhat.com>
4978
4979         * config/alpha/alpha.md (movdi_er_maybe_g): New.
4980         * config/alpha/alpha.c (alpha_expand_mov): Use it.
4981
4982 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
4983
4984         PR optimization/6233
4985         * rtlanal.c (pure_call_p): New function.
4986         * rtl.h (pure_call_p): Declare.
4987         * loop.c (prescan_loop): Use it to set has_nonconst_call.
4988         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4989
4990 2002-04-09  Eric Christopher  <echristo@redhat.com>
4991
4992         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4993         information to .comm directive.
4994
4995 2002-04-09  Richard Henderson  <rth@redhat.com>
4996
4997         PR c/5078
4998         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4999
5000 2002-04-09  Richard Henderson  <rth@redhat.com>
5001
5002         * basic-block.h (flow_delete_block_noexpunge): Declare.
5003         (expunge_block_nocompact): Declare.
5004         * cfg.c (expunge_block_nocompact): Split out from ...
5005         (expunge_block): ... here.
5006         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
5007         (flow_delete_block_noexpunge): Split out from ...
5008         (flow_delete_block): ... here.
5009         * cfgcleanup.c (delete_unreachable_blocks): Compact while
5010         removing dead blocks.
5011         * except.c (exception_handler_labels): Remove.
5012         (exception_handler_label_map): New.
5013         (struct eh_region): Add aka member.
5014         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
5015         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
5016         (for_each_eh_label, for_each_eh_label_1): New.
5017         (init_eh): Register exception_handler_label_map.
5018         (free_eh_status): Use free_region.
5019         (find_exception_handler_labels): Use the map, not the list.
5020         (remove_exception_handler_label): Likewise.
5021         (maybe_remove_eh_handler): Likewise.
5022         (remove_eh_handler): Use the region aka bitmap.
5023         * except.h (exception_handler_labels): Remove.
5024         (for_each_eh_label): Declare.
5025         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
5026         * loop.c (invalidate_loops_containing_label): New.
5027         (find_and_verify_loops): Use it.  Use for_each_eh_label.
5028         * sched-rgn.c (is_cfg_nonregular): Use
5029         current_function_has_exception_handlers.
5030
5031 2002-04-09  Richard Henderson  <rth@redhat.com>
5032
5033         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
5034         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
5035         Do not return changed status.
5036         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
5037         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
5038         New functions that do return changed status.
5039         * sbitmap.h: Update decls.
5040         * gcse.c, lcm.c: Use _cg functions as needed.
5041
5042 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
5043
5044         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
5045         (sh64-*-elf*, sh-*-rtemself*): Likewise.
5046         * config/sh/embed_bb.c: New file.
5047         * config/sh/embed-elf.h: New file.
5048         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
5049         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
5050         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5051         __PTRDIFF_TYPE__ .
5052         (SUBTARGET_CPP_PTR_SPEC): Don't define.
5053         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
5054         Add subtarget_asm_endian_spec.
5055         (ASM_SPEC): Use subtarget_asm_endian_spec.
5056         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
5057         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
5058         (WCHAR_UNSIGNED): Define.
5059         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
5060         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5061         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
5062         Fix value.
5063         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
5064         (sh_adjust_cost): Likewise.
5065         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5066         __PTRDIFF_TYPE__ .
5067         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
5068         (WCHAR_TYPE_SIZE): Likewise.
5069         (ASM_SPEC): Use subtarget_asm_endian_spec.
5070         (SH_ELF_WCHAR_TYPE): #undef/ #define.
5071         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
5072         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
5073         (MAX_WCHAR_TYPE_SIZE): Don't #define .
5074         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
5075         (USER_LABEL_PREFIX): Don't #undef /#define .
5076         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5077         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
5078         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
5079         (ASM_SPEC): Likewise.
5080         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
5081         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
5082         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
5083         (LIB2FUNCS_EXTRA): Define.
5084         * t-sh64 (LIB2FUNCS_EXTRA): Define.
5085         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
5086         (LIB1ASMFUNCS_CACHE): Define.
5087         (LIB2FUNCS_EXTRA): Redefine empty.
5088
5089 2002-04-08  Richard Henderson  <rth@redhat.com>
5090
5091         * reorg.c (get_branch_condition): Use reversed_comparison_code.
5092
5093 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5094
5095         * config/m68hc11/larith.asm (__map_data_section): Fix condition
5096         and optimize for size.
5097         (__do_global_ctors): Fix pointer comparison.
5098         (__do_global_dtors): Likewise.
5099
5100 2002-04-09  David S. Miller  <davem@redhat.com>
5101
5102         * config/sparc/sparc.c (sparc_extra_constraint_check): New
5103         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
5104         allow reloading pseudos.
5105         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
5106         * config/sparc/sparc-protos.h: Declare it.
5107
5108         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
5109         unsigned comparison warning.
5110         (output_restore_regs): Mark leaf_function as unused.
5111
5112 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5113
5114         * expr.c (is_aligning_offset): New function.
5115         (expand_expr, case COMPONENT_EXPR): Call it.
5116
5117 2002-04-08  David S. Miller  <davem@redhat.com>
5118
5119         PR target/6082
5120         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
5121
5122         Make init_priority work on Sparc when using GNU ld.
5123         * config/sparc/linux.h, config/sparc/linux64.h,
5124         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
5125         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
5126         * config/sparc/sol2-gld.h: New file to do the same.
5127         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
5128         sparc/sol2-gld.h to tm_file.
5129
5130         PR optimization/4328
5131         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
5132         * doc/md.texi: Document it.
5133         * config/sparc/sparc.md (movdi_insn_sp64_novis,
5134         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
5135         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
5136         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
5137         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
5138
5139 2002-04-08  Andreas Jaeger  <aj@suse.de>
5140
5141         * stmt.c (expand_asm_operands): Revert last patch from Richard
5142         Henderson.
5143
5144 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5145
5146         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
5147         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
5148
5149 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5150
5151         * doc/contrib.texi (Contributors): Add David O'Brien.
5152
5153 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
5154
5155         * configure.in (auto-build.h): Use target_alias and build_alias
5156         when running configure.
5157         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
5158         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
5159         * configure: Regenerate.
5160
5161 2002-04-07  David S. Miller  <davem@redhat.com>
5162
5163         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
5164
5165 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5166
5167         PR 5933
5168         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
5169         generating 32-bit pic code.
5170
5171 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
5172
5173         * cppinit.c (cpp_create_reader): Initialize
5174         discard_comments_in_macro_exp.
5175         (COMMAND_LINE_OPTIONS): Add "-CC" option.
5176         (cpp_handle_option): Handle "-CC" option.
5177         * cpplex.c (save_comment): If saving a C++ comment in
5178         a directive, convert it to a C comment.
5179         (_cpp_lex_direct): Pass second comment start character to
5180         save_comment to indicate comment type.
5181         * cpplib.c (_cpp_handle_directive): If processing
5182         a "#define" directive and discard_comments_in_macro_exp
5183         is false,  re-enable saving of comments.
5184         (lex_macro_node): If discard_comments_in_macro_exp is false,
5185         discard any comments before the macro identifier.
5186         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
5187         member.
5188         * cppmacro.c (cpp_get_token): If expanding a macro while
5189         processing a directive, discard any comments we might encounter.
5190         (parse_params): If discard_comments_in_macro_exp is false,
5191         ignore comments in the macro parameter list.
5192         * gcc.c (cpp_unique_options): Add "-CC" option.
5193         (option_map): Map "--comments-in-macros" to "-CC".
5194         * doc/cppopts.texi: Document "-CC" option.
5195         * f/lang-specs.h: Add "-CC" option.
5196         * testsuite/gcc.dg/cpp/maccom1.c: New test.
5197         * testsuite/gcc.dg/cpp/maccom2.c: New test.
5198         * testsuite/gcc.dg/cpp/maccom3.c: New test.
5199         * testsuite/gcc.dg/cpp/maccom4.c: New test.
5200         * testsuite/gcc.dg/cpp/maccom5.c: New test.
5201         * testsuite/gcc.dg/cpp/maccom6.c: New test.
5202
5203 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5204
5205         PR middle-end/6180
5206         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
5207
5208 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
5209
5210         PR c++/5571
5211         * stor-layout.c (layout_decl): Reset the RTL for the decl.
5212
5213         PR opt/5120
5214         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
5215         RTX_UNCHANGING_P for the functions arguments when a tail call
5216         is made.
5217
5218 2002-04-06  Jason Merrill  <jason@redhat.com>
5219
5220         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
5221         (parse_options_and_default_flags): Set them appropriately.
5222         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
5223
5224 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
5225
5226         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
5227         here.
5228
5229         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
5230         semicolon.
5231
5232         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
5233         types come in by-reference.  Fix typo in comment.
5234
5235 2002-04-05  David S. Miller  <davem@redhat.com>
5236
5237         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
5238         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5239         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
5240         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
5241
5242 2002-04-05  David S. Miller  <davem@redhat.com>
5243
5244         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
5245         are not going to emit return instructions, emit at least a nop
5246         for the sake of sane backtraces.
5247
5248 2002-04-05  Richard Henderson  <rth@redhat.com>
5249
5250         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
5251
5252 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
5253
5254         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
5255
5256 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
5257
5258         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
5259         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5260         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
5261
5262 2002-04-05  Andreas Schwab  <schwab@suse.de>
5263
5264         * c-convert.c: Include c-common.h.
5265         * Makefile.in (c-convert.o): Updated.
5266
5267 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5268
5269         * mklibgcc.in: Use separate libgcc.map for each multilib.
5270         * Makefile.in (distclean): Don't remove libgcc.map here.
5271
5272 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5273
5274         * Makefile.in (s-mlib): Handle --disable-multilib by separate
5275         genmultilib invocation.
5276
5277 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
5278
5279         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
5280         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
5281         to num_gprs for symmetry.
5282         * config/mips/mips.c: Adjust accordingly.
5283
5284 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5285
5286         * c-common.c (truthvalue_conversion): Rename, update.
5287         * c-common.h (c_common_truthvalue_conversion): New.
5288         * c-convert.c (convert): Update.
5289         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5290         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
5291         * c-typeck.c (build_binary_op, build_unary_op,
5292         build_conditional_expr): Update.
5293         * fold-const.c (constant_boolean_node, fold): Use langhook.
5294         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5295         * langhooks.h (struct lang_hooks): New hook.
5296         * stmt.c (expand_decl_cleanup): Use langhook.
5297         * tree.h (truthvalue_conversion): Remove.
5298 objc:
5299         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5300
5301 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
5302
5303         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5304         Add rules to make null object file.
5305
5306 2002-04-04  Jim Blandy  <jimb@redhat.com>
5307
5308         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5309         macro formal parameter names.
5310
5311 2002-04-04  David S. Miller  <davem@redhat.com>
5312
5313         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5314
5315 2002-04-04  Richard Henderson  <rth@redhat.com>
5316
5317         PR middle-end/5099
5318         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5319         Support copies into and out of memory.  Don't accept allows_reg
5320         and allows_mem as gospel.
5321
5322 2002-04-04  Richard Henderson  <rth@redhat.com>
5323
5324         PR opt/6165
5325         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5326         (write_dependence_p): Likewise.
5327
5328 2002-04-04  Richard Henderson  <rth@redhat.com>
5329
5330         * predict.c (estimate_bb_frequencies): Do frequency calculation
5331         with a volatile temporary.
5332
5333 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
5334
5335         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5336
5337 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5338
5339         PR c++/6119
5340         * final.c (final_start_function): Don't bump profile_label_no here...
5341         (final_end_function): ...but here.
5342
5343 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5344
5345         * config/sparc/sparc.md (pic): New attribute.
5346         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5347         into stack slots.
5348         (split after do_builtin_setjmp_setup): New.
5349
5350 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5351
5352         PR fortran/6106
5353         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5354         change.
5355
5356 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5357
5358         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5359         UNITS_PER_WORD for zero sized aggregates.
5360
5361 2002-04-03  David S. Miller  <davem@redhat.com>
5362
5363         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5364         one-character spec for this, just use %(link_gcc_c_sequence).
5365
5366 2002-04-03  David S. Miller  <davem@redhat.com>
5367
5368         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5369         handling.
5370
5371 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5372
5373         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5374         (DWARF_FRAME_RETURN_COLUMN): Move.
5375         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5376         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5377         * pa.c (except.h, predict.h): Include.
5378         (FRP): Delete.
5379         (store_reg_modify, set_reg_plus_d): Revise prototypes.
5380         (output_ascii): Add cast.
5381         (store_reg_modify): Revise to add frame notes.
5382         (set_reg_plus_d): Likewise.
5383         (compute_frame_size): Include space for eh data registers in frame if
5384         the current function calls eh_return.
5385         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
5386         function calls eh_return.  Save eh data registers if the current
5387         function calls eh_return.  Fix code to add frame notes.  Emit
5388         blockage to prevent insns with frame notes being scheduled in the
5389         delay slot of calls.
5390         (hppa_expand_epilogue): Restore eh data registers and do final stack
5391         adjustment if the current function calls eh_return.  Don't add frame
5392         notes.
5393         (output_call): Revise for change in length of call insn.  Don't do
5394         return pointer adjustment for an unconditional jump in the delay slot
5395         of a call when using frame notes.
5396         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5397         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5398         (ARG_POINTER_CFA_OFFSET): Define.
5399         * pa.md (return_external_pic): New pattern.
5400         (prologue): Correct formatting.  Use return_external_pic if current
5401         function calls eh_return.
5402         (call_internal_symref, call_value_internal_symref,
5403         sibcall_internal_symref, sibcall_value_internal_symref): Change default
5404         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5405         respectively.
5406         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5407
5408         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5409         list of targets to check using "nop" insn.
5410         * configure: Rebuilt.
5411
5412 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
5413
5414         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5415
5416 2002-04-03  David S. Miller  <davem@redhat.com>
5417
5418         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5419         library sequence passed to the linker.
5420         (LINK_COMMAND_SPEC): Use it.
5421         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5422         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5423         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5424
5425 2002-04-03  Jason Merrill  <jason@redhat.com>
5426
5427         * except.c (struct eh_status): Remove protect_list.
5428         (begin_protect_partials, end_protect_partials): Remove.
5429         (add_partial_entry): Remove.
5430         * except.h: Remove prototypes.
5431
5432         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5433         expand_decl_cleanup_eh.
5434
5435         PR c++/5636
5436         * tree.h (CLEANUP_EH_ONLY): New macro.
5437         * stmt.c (expand_decl_cleanup_eh): New fn.
5438         (expand_cleanups): Check CLEANUP_EH_ONLY.
5439         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5440         Use expand_decl_cleanup_eh.
5441         (expand_stmt): Adjust.
5442         * c-common.h: Adjust prototype.
5443
5444 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
5445
5446         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5447         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5448         (cris_target_asm_function_epilogue): Ditto.
5449         (cris_initial_frame_pointer_offset): Ditto.
5450         (cris_simple_epilogue): Ditto.
5451         (cris_expand_builtin_va_arg): Variable-size types come in
5452         by-reference.
5453
5454 2002-04-03  David S. Miller  <davem@redhat.com>
5455
5456         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5457         little-endian.
5458         (set_fast_math): Correct 'fsr' type.
5459
5460 2002-04-03  Richard Henderson  <rth@redhat.com>
5461
5462         PR opt/3569
5463         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5464         * toplev.c (check_global_declarations): Use it.
5465         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5466         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5467         (LANG_HOOKS_DECLS): Add it.
5468         * langhooks.c (lhd_warn_unused_global_decl): New.
5469         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5470         * c-objc-common.c (c_warn_unused_global_decl): New.
5471         * c-tree.h (c_warn_unused_global_decl): Declare.
5472         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5473
5474 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5475
5476         * langhooks-def.h (lhd_set_decl_assembler_name,
5477         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5478         (LANG_HOOKS_INITIALIZER): Update.
5479         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5480         * langhooks.h (struct lang_hooks): New hook.
5481         * tree.c (set_decl_assembler_name): Move to langhooks.c.
5482         (lang_set_decl_assembler_name): Remove.
5483         (init_obstacks): Don't set hook.
5484         (decl_assembler_name): New function.
5485         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5486         (decl_assembler_name): New.
5487         (lang_set_decl_assembler_name): Remove.
5488
5489 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5490
5491         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5492         works properly with .hidden symbols.
5493         * configure: Rebuilt.
5494         * config.in: Rebuilt.
5495         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5496         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5497         properly with .hidden symbols.
5498
5499 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5500
5501         PR middle-end/6102
5502         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5503         USE argument.
5504
5505 2002-04-03  Richard Henderson  <rth@redhat.com>
5506
5507         PR opt/4120
5508         * sched-rgn.c (sets_likely_spilled): New.
5509         (sets_likely_spilled_1): New.
5510         (add_branch_dependences): Use it.
5511
5512 2002-04-02  Richard Henderson  <rth@redhat.com>
5513
5514         PR opt/4311
5515         * loop.h (LOOP_FIRST_PASS): New.
5516         * loop.c (strength_reduce): Mind it when deciding to unroll.
5517         * toplev.c (rest_of_compilation): Set it.
5518
5519 2002-04-02  David S. Miller  <davem@redhat.com>
5520
5521         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5522         mems_ok_for_ldd_peep when the order of the loads being examined
5523         is reversed.
5524         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5525         existing comment to increase comprehension of this situation.
5526
5527 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
5528
5529         * config/sh/sh.md: Don't use union real_extract.
5530
5531 2002-04-02  Richard Henderson  <rth@redhat.com>
5532
5533         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5534
5535 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5536
5537         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5538         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5539         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5540         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5541         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5542         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5543         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5544         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5545         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5546         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5547         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5548         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5549         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5550         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5551         Include as many configury headers via tm_file as possible.  This
5552         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5553         * config/openbsd-oldgas.h: New file.
5554         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5555         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5556         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5557         config/i386/i386-coff.h, config/i386/i386-interix.h,
5558         config/i386/iscdbx.h, config/i386/linux-aout.h,
5559         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5560         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5561         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5562         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5563         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5564         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5565         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5566         config/i386/vxi386.h: Do not directly include configury headers.
5567         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5568         Directly include configury headers that are no longer automatically
5569         included by the above headers.
5570         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5571         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5572         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5573         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5574         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5575         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5576         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5577         (TARGET_VERSION): Define.
5578         * config/i386/beos-elf.h, config/i386/freebsd.h,
5579         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5580         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5581         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5582         config/i386/sco5.h, config/i386/sysv4.h
5583         (TARGET_VERSION): Do not need to protect.
5584         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5585         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5586         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5587         config/i386/i386-interix.h, config/i386/linux-aout.h,
5588         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5589         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5590         (YES_UNDERSCORES): Do not define - not needed.
5591         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5592         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5593         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5594         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5595         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5596         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5597         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5598         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5599
5600 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
5601             Richard Henderson  <rth@redhat.com>
5602
5603         PR c/5484
5604         * function.c (assign_temp): Accept either type or decl argument.
5605         Detect variables whose size is too large to fit into an integer.
5606         * stmt.c (expand_decl): Pass the decl, not the type.
5607
5608 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5609
5610         * protoize.c: Match include directory usage with cppdefault.c.
5611
5612 2002-04-03  Jeffrey A Law  (law@redhat.com)
5613             Hans-Peter Nilsson  <hp@bitrange.com>
5614
5615         * combine.c (simplify_comparison): Avoid narrowing a comparison
5616         with a paradoxical subreg when doing so would drop signficant bits.
5617
5618 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
5619
5620         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5621         if POINTERS_EXTEND_UNSIGNED is defined.
5622
5623 2002-04-02  Richard Henderson  <rth@redhat.com>
5624
5625         PR opt/3967
5626         * local-alloc.c (contains_replace_regs): LO_SUM may contain
5627         replace regs.
5628
5629 2002-04-02  Richard Henderson  <rth@redhat.com>
5630
5631         * doc/standards.texi: Document required freestanding libc entry points.
5632
5633 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
5634
5635         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5636         associated splitter.  Remove MQ constraint.
5637         (ctrdi_internal4): Correct CCmode clobber.
5638
5639 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5640
5641         * milli64.S ($$dyncall): New function.
5642         * t-linux (LIB1ASMFUNCS): Revise module list.
5643         (LIB1ASMSRC): Use pa/milli64.S.
5644
5645 2002-04-02  Richard Henderson  <rth@redhat.com>
5646
5647         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5648         rename solaris_sys_varargs_h.
5649
5650 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5651
5652         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5653         the same mode as its component.
5654
5655 2002-04-02  Richard Henderson  <rth@redhat.com>
5656
5657         PR opt/190
5658         * final.c (this_is_asm_operands): Export.
5659         * output.h (this_is_asm_operands): Declare.
5660         * config/i386/i386.c (print_operand): Error odd asm operands.
5661
5662 2002-04-02  Richard Henderson  <rth@redhat.com>
5663
5664         PR opt/420
5665         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5666
5667 2002-04-01  Richard Henderson  <rth@redhat.com>
5668
5669         PR target/1538
5670         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5671         * fixinc/fixincl.x: Rebuild.
5672
5673 2002-04-01  Richard Henderson  <rth@redhat.com>
5674
5675         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5676         (atomic_alloc, atomic_free): New.
5677         (SIZE, MASK_FOR, PTR_IN): New.
5678         (emergency_reg_state, emergency_reg_state_free): New.
5679         (emergency_labeled_state, emergency_labeled_state_free): New.
5680         (reg_state_alloced, labeled_state_alloced): New.
5681         (alloc_reg_state, free_reg_state): New.
5682         (alloc_label_state, free_label_state, free_label_states): New.
5683         (push, pop, dup_state_stack, free_state_stack): Use them.
5684         (desc_label_state): Likewise.
5685         (uw_frame_state_for): Free label states and state stack.
5686         (uw_update_reg_address): Eliminate warnings.
5687
5688 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
5689
5690         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5691         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5692
5693 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5694
5695         * c-decl.c (grokdeclarator): Update.
5696         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5697         * c-tree.h (c_mark_addressable): New.
5698         * c-typeck.c (default_function_array_conversion, build_unary_op,
5699         build_array_ref, convert_for_assignment): Update.
5700         (mark_addressable): Rename.
5701         * calls.c (try_to_integrate, expand_call): Use langhook.
5702         * expr.c (expand_expr): Use langhook.
5703         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5704         * langhooks.h (struct lang_hooks): New hook.
5705         * stmt.c (expand_asm_operands): Use langhook.
5706         * tree.h (mark_addressable): Remove.
5707 objc:
5708         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5709
5710 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
5711
5712         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5713         in previous change.
5714
5715 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
5716
5717         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5718         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5719
5720 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5721
5722         * c-common.c (unsigned_conversion_warning, convert_and_check,
5723         unsigned_type, signed_type, shorten_compare,
5724         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5725         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5726         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5727         New.
5728         * c-decl.c (grokdeclarator): Update.
5729         * c-format.c (check_format_types): Update.
5730         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5731         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5732         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5733         * convert.c (convert_to_integer): Use new hooks.
5734         * expmed.c (make_tree): Use new hooks.
5735         * expr.c (store_expr): Use new hooks.
5736         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5737         all_ones_mask_p, unextend, fold): Use new hooks.
5738         * langhooks.h (struct lang_hooks_for_types): New hooks.
5739         * tree.h (signed_or_unsigned_type, signed_type,
5740         unsigned_type): Remove.
5741 objc:
5742         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5743         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5744
5745 2002-03-31  Richard Henderson  <rth@redhat.com>
5746
5747         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5748         (desc_frgr_mem): Fix reference to f16-f31.
5749
5750 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5751
5752         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5753         RTVEC_ELT): Const-ify.
5754         * varray.h (VARRAY_CHECK): Const-ify.
5755         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5756         ggc_mark_rtvec, ggc_mark): Const-ify.
5757
5758 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5759
5760         * diagnostic.c: Include langhooks-def.h.
5761         * Makefile.in (diagnostic.o): Update.
5762
5763 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5764
5765         * c-common.c (c_unsafe_for_reeval): Rename.
5766         * c-common.h (c_unsafe_for_reeval): Rename.
5767         * c-decl.c (finish_incomplete_decl): Rename.
5768         (c_init_decl_processing): Don't set langhook.
5769         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5770         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5771         * c-objc-common.c (c_objc_common_init): Don't set langhook.
5772         * c-tree.h (finish_incomplete_decl): Rename.
5773         * langhooks-def.h (lhd_unsafe_for_reeval): New.
5774         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5775         (LANG_HOOKS_INITIALIZER): Update.
5776         * langhooks.c (lhd_unsafe_For_reeval): New.
5777         * langhooks.h (struct langhooks): New hooks.
5778         * toplev.c (incomplete_decl_finalize_hook): Remove.
5779         (wrapup_global_declarations): Update.
5780         * tree.c (lang_unsafe_for_reeval): Remove.
5781         (unsafe_for_reeval): Update.
5782         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5783         Remove.
5784 objc:
5785         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5786         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5787
5788 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5789
5790         * diagnostic.c (print_error_function): Remove.
5791         (default_print_error_function): Rename.
5792         (report_error_function): Update.
5793         * diagnostic.h (print_error_function): Remove.
5794         (default_print_error_function): Remove.
5795         * langhooks-def.h (struct diagnostic_context): Predeclare.
5796         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5797         (LANG_HOOKS_INITIALIZER): Update.
5798         * langhooks.h (struct diagnostic context): Predeclare.
5799         (struct lang_hooks): New hook.
5800
5801 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5802
5803         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5804         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5805         !flag_pic.
5806         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5807         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5808         of PIC_OFFSET_TABLE_REGNUM thruout.
5809         * config/rs6000/rs6000.md: Likewise.
5810         * config/rs6000/darwin.h: Likewise.
5811
5812 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5813
5814         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5815         unsigned HOST_WIDE_INT, not unsigned int.
5816
5817 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5818
5819         PR middle-end/6096, middle-end/6098, middle-end/6099
5820         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5821         CODE_LABELs.
5822         (fill_slots_from_thread): Likewise.
5823
5824 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5825
5826         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5827         floating fields in float regs.
5828         (function_arg_record_value_2): Likewise.
5829
5830 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
5831
5832         * config/mmix/mmix.md (define_constants): Remove misleading
5833         FIXME.  Add MMIX_fp_rO_OFFSET.
5834         ("nonlocal_goto_receiver"): Don't have stack-frame address of
5835         saved rO as part of the pattern.  Remove FIXME.
5836         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
5837         here, at output-time.
5838
5839 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5840
5841         PR middle-end/6100
5842         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5843         REG_BR_PRED.
5844         (output_v9branch): Likewise.
5845
5846 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
5847
5848         * gcc.c: Revert previous patch for now.
5849         * config/i386/djgpp.h: Likewise.
5850
5851 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
5852
5853         * config/mmix/crti.asm (_init): Register _fini with atexit.
5854         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5855
5856 2002-03-31  Richard Henderson  <rth@redhat.com>
5857
5858         PR target/3997
5859         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5860         (ASM_OUTPUT_DEF_FROM_DECLS): New.
5861
5862 2002-03-31  Richard Henderson  <rth@redhat.com>
5863
5864         * libgcc2.c (__bb_exit_func): Make static.
5865
5866         * config/alpha/alpha.md (trap): New.
5867
5868 2002-03-31  Richard Henderson  <rth@redhat.com>
5869
5870         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5871         promoted argument types; build trap.
5872         (expand_builtin_trap): New.
5873         (expand_builtin): Use it.
5874         * stmt.c (expand_nl_goto_receivers): Likewise.
5875         * expr.h (expand_builtin_trap): Declare.
5876         * libfuncs.h (LTI_abort, abort_libfunc): New.
5877         * optabs.c (init_optabs): Init abort_libfunc.
5878
5879 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
5880
5881         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5882         (LINK_COMMAND_SPEC): ... from here.
5883         (init_gcc_specs): Duplicate it here too, omitting
5884         shared_name in the second copy.
5885         (init_spec): Test for duplicate
5886         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5887
5888 2002-03-30  David S. Miller  <davem@redhat.com>
5889
5890         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5891         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5892
5893 2002-03-30  Roger Sayle <roger@eyesopen.com>
5894             Richard Henderson  <rth@redhat.com>
5895
5896         * regmove.c (combine_stack_adjustments_for_block): Avoid
5897         emitting a stack adjustment of zero bytes.  Let delete_insn
5898         update bb->head.
5899
5900 2002-03-30  Richard Henderson  <rth@redhat.com>
5901
5902         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5903         (sparc_emitting_epilogue): New.
5904         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5905         * config/sparc/sparc-protos.h: Update.
5906         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5907         (TARGET_SWITCHES): Update.
5908         * config/sparc/sparc.md (return): Remove.
5909         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5910         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5911         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5912         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5913         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5914         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5915         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5916         Remove MASK_EPILOGUE.
5917         * doc/invoke.texi: Update.
5918
5919 2002-03-30  Daniel Berlin  <dan@dberlin.org>
5920
5921         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5922         CPP will start the file for us.
5923
5924 2002-03-30  Richard Henderson  <rth@redhat.com>
5925
5926         PR target/5446
5927         * config/ia64/ia64.c (group_barrier_needed_p): Special case
5928         prologue_allocate_stack.
5929         (ia64_single_set): Use insn codes for recognition of special
5930         cases, not rtl matching.
5931         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5932
5933 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
5934
5935         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5936
5937 2002-03-30  Richard Henderson  <rth@redhat.com>
5938
5939         PR target/6032
5940         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5941         or -fomit-frame-pointer with profiling.
5942         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5943         (FUNCTION_PROFILER): Do nothing.
5944         (PROFILE_HOOK): New.
5945         * config/sparc/sparc.c (sparc_override_options): Don't check
5946         code models for profiling.
5947         (sparc_function_profiler): Remove.
5948         (sparc_profile_hook): New.
5949         * config/sparc/sparc-protos.h: Update.
5950
5951 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
5952
5953         PR optimization/6086
5954         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5955         of SUBREG of volatile MEM or because the MEM was mode dependent,
5956         return CLOBBER instead of unmodified SUBREG.
5957
5958 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5959
5960         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5961         when not optimizing.
5962
5963         * toplev.c (rest_of_compilation): Cann mark_constant_function
5964         only when optimizing.
5965
5966         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5967         are NULL.
5968
5969         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5970         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5971         (try_optimize_cfg): clear all AUX fields.
5972
5973         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5974         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5975         (ix86_address_cost): Be prepared for SUBREGed registers.
5976         (legitimate_address_p): Accept SUBREGed registers.
5977
5978 2002-03-29  Richard Henderson  <rth@redhat.com>
5979
5980         PR target/5672
5981         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5982
5983 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5984
5985         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5986         for aggregate and TFmode types.
5987
5988 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5989
5990         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5991
5992 2002-03-29  Richard Henderson  <rth@redhat.com>
5993
5994         PR target/5886
5995         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5996         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5997
5998 2002-03-29  Richard Henderson  <rth@redhat.com>
5999
6000         PR target/6041
6001         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
6002         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
6003         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
6004         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
6005         conditional.
6006         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
6007
6008 2002-03-29  Dale Johannesen <dalej@apple.com>
6009
6010         * loop.c (combine_movables): Do allow combination of pseudos.
6011
6012 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
6013
6014         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
6015         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
6016         No functional change except ...
6017         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
6018         * doc/install.texi (*-*-freebsd*): Document port configuration.
6019
6020 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6021
6022         * Makefile.in (convert.o, calls.o, expmed.o): Update.
6023         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
6024         Use new hooks.
6025         * builtin-types.def (BT_PTRMODE): Update.
6026         * c-common.c (type_for_size): Rename c_common_type_for_size.
6027         (type_for_mode): Similarly.
6028         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
6029         Use new hook.
6030         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
6031         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
6032         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
6033         Redefine.
6034         * c-typeck.c (common_type, comptypes, default_conversion):
6035         Use new hooks.
6036         * calls.c: Include langhooks.h.
6037         (emit_library_call_value_1): Use new hooks.  Avoid redundant
6038         calls.
6039         * convert.c: Include langhooks.h
6040         (convert_to_pointer, convert_to_integer): Use new hooks.
6041         * except.c (init_eh): Similarly.
6042         * expmed.c: Include langhooks.h.
6043         (expand_mult_add): Use new hooks.
6044         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
6045         try_casesi): Similarly.
6046         * fold-const.c (optimize_bit_field_compare, make_range,
6047         decode_field_reference, fold_truthop, fold): Similarly.
6048         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
6049         put_var_into_stack): Similarly.
6050         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
6051         LANG_HOOKS_TYPE_FOR_SIZE): New.
6052         (LANG_HOOKS_TYPES_INITIALIZER): Update.
6053         * langhooks.h (lang_hooks_for_types): New hooks.
6054         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
6055         * tree.c (get_unwidened, get_narrower): Similarly.
6056         * tree.h (type_for_mode, type_for_size): Remove.
6057         * varasm.c (force_const_mem): Use new hooks.
6058         * utils2.c (nonbinary_modular_operation): Update.
6059 objc:
6060         * objc-act.c (handle_impent): Update.
6061         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
6062         Redefine.
6063
6064 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
6065
6066         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
6067         * config/ia64/ia64.c (basereg_operand): New.
6068         * config/ia64/ia64-protos.h (basereg_operand): Declare.
6069         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
6070
6071 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
6072
6073         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
6074         unwind information when frame_pointer_needed.
6075         (mmix_assemble_integer): Tweak wording in comment.
6076
6077 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6078
6079         * Makefile.in (except.o): Update.
6080         * except.c: Include langhooks.h.
6081         (init_eh): Use langhook.
6082         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
6083         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
6084         (LANG_HOOKS_INITIALIZER): Update.
6085         * langhooks.h (lang_hooks_for_types): New.
6086         (struct lang_hooks): Add it.
6087         * tree.c (make_lang_type_fn, make_lang_type): Remove.
6088         * tree.h (make_lang_type_fn, make_lang_type): Remove.
6089 config:
6090         * alpha/alpha.c: Include langhooks.h.
6091         (alpha_build_va_list): Use langhook.
6092         * d30v/d30v.c: Include langhooks.h.
6093         (d30v_build_va_list): Use langhook.
6094         * i386/i386.c: Include langhooks.h.
6095         (ix86_build_va_list): Use langhook.
6096         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
6097         * s390/s390.c: Include langhooks.h.
6098         (s390_build_va_list): Use langhook.
6099         * stormy16/stormy16.c: Include langhooks.h.
6100         (stormy16_build_va_list): Use langhook.
6101
6102 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
6103
6104         PR c++/5964
6105         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
6106         attributes.
6107         (length): Compute variable length for branches/calls/jumps here.
6108         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
6109         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
6110         define branch_type attribute.
6111         (divsi3_sp32): Maximum length is 6 not 7.
6112         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
6113         call_address_untyped_struct_value_sp32,
6114         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
6115         * config/sparc/sparc.c (empty_delay_slot): New function.
6116         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
6117         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
6118
6119 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
6120
6121         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
6122         nonzero_bits if not needed.
6123         (nonzero_bits) [XOR]: Likewise.
6124         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
6125         reg_last_set_mode and mode are both MODE_INT, but not equal.
6126         (record_value_for_reg): Compute reg_last_set_nonzero_bits
6127         in nonzero_bits_mode for MODE_INT modes.
6128
6129 2002-03-28  Richard Henderson  <rth@redhat.com>
6130
6131         PR target/5715
6132         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
6133         to GAS.  Correct drift between alternatives.
6134
6135 2002-03-28  Richard Henderson  <rth@redhat.com>
6136
6137         PR target/6087
6138         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
6139
6140 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
6141
6142         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
6143         emulation to the linker.
6144
6145 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
6146
6147         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
6148         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
6149
6150 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
6151
6152         * combine.c (simplify_and_const_int): Make sure to apply mask
6153         when force_to_mode returns a constant integer.  PR3311.
6154
6155 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6156
6157         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
6158
6159 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6160
6161         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
6162         and Objective-C Dialect Options.
6163
6164 2002-03-28  Richard Henderson  <rth@redhat.com>
6165
6166         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
6167         comparison should be done vs !=0 not >0 return code.  Tidy cases.
6168
6169 2002-03-28  Richard Henderson  <rth@redhat.com>
6170
6171         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
6172         on to c_expand_body.
6173         * c-tree.h (finish_function): Update decl.
6174         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
6175
6176 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6177
6178         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
6179
6180 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
6181
6182         * rtlanal.c: Include flags.h
6183         (may_trap_p): Do not mark FP operations if trapping
6184         if !flag_trapping_math
6185         * Makefile.in (rtlanal.o): Add dependency on flag.h
6186         * ifcvt.c (noce_operand_ok): Avoid the lameness.
6187
6188 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
6189
6190         * mips.md: Use dconst1, not 1.0, as first argument of
6191         REAL_VALUE_LDEXP.  Don't use union real_extract.
6192
6193 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
6194
6195         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
6196         rather than $target.  Heed program_prefix and
6197         program_transform_name.  Search for gas in cross-compiler case too.
6198         "test -x" rather than "test -f".
6199         (gcc_cv_ld): Likewise.
6200         (gcc_cv_nm): Heed program_prefix and program_transform_name.
6201         (gcc_cv_objdump): Likewise.
6202         * configure: Regenerate.
6203
6204 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6205
6206         * Makefile.in (attribs.o): Update.
6207         * attribs.c: Include langhooks.h.
6208         (decl_attributes): Use langhook.
6209         * c-decl.c (insert_default_attributes): Rename.
6210         * c-tree.h (c_insert_default_attributes): New.
6211         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
6212         (LANG_HOOKS_INITIALIZER): Update.
6213         * langhooks.h (struct lang_hooks): New hook.
6214         * tree.h (insert_default_attributes): Remove.
6215 objc:
6216         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
6217
6218 2002-03-27  Andreas Schwab  <schwab@suse.de>
6219
6220         * config/i386/i386.c (classify_argument): Also check for
6221         QUAL_UNION_TYPE.
6222
6223 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6224
6225         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
6226         any more.
6227
6228 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6229
6230         * i960.md (ret): Set PC.
6231         (nonlocal_goto): Fix expander.
6232         * builtins.c (epxand_builin_longjmp): Check that we've emitted
6233         some jump or call.
6234
6235 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
6236
6237         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
6238         of libcall regions.
6239
6240 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6241
6242         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
6243         assigning to BLOCK_FOR_INSN directly.
6244
6245 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
6246
6247         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
6248
6249 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6250
6251         * c-common.c (c_expand_expr): Fix prototype.
6252         * c-common.h (c_expand_expr): Always declare, update.
6253         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6254         * c-objc-common.c (c_objc_common_init): No global hook.
6255         * expr.c (expand_expr): Use langhook.
6256         * expr.h (enum expand_modifier): Conditionally declare.
6257         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
6258         (LANG_HOOKS_INITIALIZER): Update.
6259         * langhooks.c (lhd_expand_expr): New.
6260         * langhooks.h (struct lang_hooks): New hook.
6261         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
6262         (lang_independent_init): Don't default hook.
6263 objc:
6264         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6265
6266 2002-03-27  Richard Henderson  <rth@redhat.com>
6267
6268         PR target/6054
6269         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
6270         TARGET_CONST_GP.  Simplify conditions.
6271
6272 2002-03-27  Richard Henderson  <rth@redhat.com>
6273
6274         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6275         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
6276         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6277
6278 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
6279
6280         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
6281         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
6282         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
6283         Remove unnecessary masks.
6284         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
6285         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
6286         -mwindows, -mdll switches and their negations.
6287
6288 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6289
6290         * gcc-common.c (lang_mark_false_label_stack): Remove.
6291         * ggc.h (lang_mark_false_label_stack): Similarly.
6292
6293 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
6294
6295         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6296
6297         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6298         or __rtems_ is defined.
6299
6300 2002-03-26  Richard Henderson  <rth@redhat.com>
6301
6302         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6303         if a non-trivial load was emitted.
6304         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
6305         in high+extra+low case.
6306
6307 2002-03-26  Richard Henderson  <rth@redhat.com>
6308
6309         * config.gcc (sparc*-solaris): Use float_format=sparc.
6310
6311 2002-03-26  Richard Henderson  <rth@redhat.com>
6312
6313         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6314         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6315         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6316         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6317         (WINT_TYPE_SIZE): Fix at 32.
6318
6319 2002-03-26  Richard Henderson  <rth@redhat.com>
6320
6321         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6322         until after eh landing pad generation.
6323         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6324         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6325
6326 2002-03-26  Richard Henderson  <rth@redhat.com>
6327
6328         * expr.h (ADD_PARM_SIZE): One more convert for INC.
6329
6330 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
6331
6332         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
6333         and warning switches.
6334         (cc1_options):  Likewise.
6335
6336 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
6337
6338         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6339         Restore more of the signal context.  Set no_reg_stack_frame.
6340         * config/ia64/unwind-ia64.c (unw_state_record):
6341         Add no_reg_stack_frame, comments.
6342         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6343         (uw_update_context): Adjust bsp when unwinding from leaf,
6344         but not signal frame.
6345
6346 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
6347
6348         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6349
6350 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
6351
6352         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6353
6354 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
6355
6356         PR target/5621
6357         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6358         "Add a pool_range attribute", which was lost during the ARM/Thumb
6359         merge.
6360
6361 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
6362
6363         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6364         a register into the MAC16 accumulator.
6365
6366 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
6367
6368         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6369         (Warning Options): Document -Wswitch-enum.
6370         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
6371         -Wswitch.
6372         (warn_switch_enum): Define variables.
6373         * flags.h (warn_switch_enum): Declare variables.
6374         * stmt.c (expand_end_case_type): When warn_switch_enum /
6375         -Wswitch-enum, perform switch checks.
6376         Fix PR c/5044.
6377
6378 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
6379
6380         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6381         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6382         (reload_muladdsi_compare0_scratch): Delete.
6383
6384 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
6385
6386         * doc/install.texi (*-*-freebsd*): Update.
6387
6388 2002-03-26  Richard Henderson  <rth@redhat.com>
6389
6390         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6391         (SUB_PARM_SIZE): Cast DEC to ssizetype.
6392
6393         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6394         types from the normal argument frame.
6395
6396         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6397         variable sized objects by reference.
6398         (sparc_va_arg): Receive them by reference too.
6399
6400 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
6401
6402         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6403         code to not restoring global registers.
6404
6405 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6406
6407         * Makefile.in (ggc-common.o): Update.
6408         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6409         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6410         * c-tree.h (c_mark_tree): New.
6411         * ggc-common.c: Include langhooks.h.
6412         (gcc_mark_trees): Use new langhook.
6413         * ggc-callbacks.c: Delete file.
6414         * ggc.h (lang_mark_tree): Remove.
6415         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6416         (LANG_HOOKS_INITIALIZER): Update.
6417         * langhooks.h (struct lang_hooks): New hook.
6418 objc:
6419         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6420
6421 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6422
6423         * doc/cpp.texi: Exclude entire Top node from printed manual.
6424         Move option index after directive index.  Insert page breaks
6425         before GFDL and concept index.  Index environment variables
6426         with command line options.
6427         * doc/cppenv.texi: Use @vtable for environment variable list.
6428         Add paragraph explaining semantics of empty elements in path
6429         variables.  Exclude a cross-reference to Fishkill from the
6430         manpage.  Remove an unnecessary cross-reference of the entry
6431         right above the referer.  Don't use @anchor in text that goes
6432         into manpage.
6433         * doc/cppopts.texi: Cross-reference the environment variables
6434         section, not the specific environment variable, for consistency.
6435
6436 2002-03-25  Richard Henderson  <rth@redhat.com>
6437
6438         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6439         anywhere in the block.  Don't refer to insns that have been
6440         removed from the chain.  Iterate backward through the new insns.
6441         Don't refer to edges that have been removed.
6442
6443 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
6444
6445         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6446         test for overflow of constant.
6447
6448 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
6449
6450         PR target/2623
6451         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6452         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6453         these patterns on arm_archv4.
6454
6455 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
6456
6457         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6458         int".
6459
6460 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6461
6462         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
6463         float_handled, float_handler, float_signal, set_float_handler,
6464         and do_float_handler.  Set handler for SIGFPE to crash_signal.
6465         * toplev.h: Don't prototype do_float_handler.
6466
6467         * c-lex.c: Fold parse_float into lex_number.  Make warning
6468         about portability of hex float constants more informative, and
6469         don't issue it on top of a syntax error.
6470         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6471         their callers.
6472         * real.h: Define REAL_VALUE_ABS here...
6473         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
6474         simplify_unary_real, simplify_binary_real, and
6475         simplify_binary_is2orm1 into their callers.
6476         * tree.c: Fold build_real_from_int_cst_1 into caller.
6477
6478         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6479
6480         * tsystem.h: Include float.h here...
6481         * libgcc2.c: ... not here.
6482
6483 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
6484
6485         Fixes for: PR bootstrap/3591, target/5676
6486         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6487         defined.  Do not disable exceptions or rtti.
6488         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6489         mcore.h.  Disable exceptions and rtti, since they are not
6490         supported by EPOC.
6491
6492 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
6493
6494         * c-decl.c (maybe_build_cleanup): Remove.
6495         * expr.c (expand_expr): Use langhook.
6496         * langhooks-def.h (lhd_return_null_tree,
6497         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6498         (LANGHOOKS_INITIALIZER): Update.
6499         * langhooks.c (lhd_return_null_tree): New.
6500         * langhooks.h (struct lang_hooks): New hook.
6501         * tree-inline.c (initialize_inlined_parameters): Use langhook.
6502         * tree.h (maybe_build_cleanup): Remove.
6503
6504 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6505
6506         * regrename.c (build_def_use): Move recog_memoized
6507         before extract_insn.
6508
6509 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6510
6511         PR target/6043
6512         * expr.c (emit_group_store): Handle storing into CONCAT.
6513
6514 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6515
6516         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6517         corresponding MATCH_DUP.
6518
6519 2002-03-24  Richard Henderson  <rth@redhat.com>
6520
6521         * unroll.c (unroll_loop): Zero label_map.
6522
6523         * gcse.c: Include except.h.
6524         * Makefile.in (gcse.o): Update.
6525
6526 2002-03-24  Richard Henderson  <rth@redhat.com>
6527
6528         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6529         Do resolve_unique_section before shared data clause.
6530
6531 2002-03-24  Richard Henderson  <rth@redhat.com>
6532
6533         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6534
6535 2002-03-24  Richard Henderson  <rth@redhat.com>
6536
6537         * recog.c (peephole2_optimize): Split blocks when EH insns are
6538         generated in the middle of a block.  Do global life update if
6539         zapped EH edges.
6540
6541 2002-03-24  Richard Henderson  <rth@redhat.com>
6542
6543         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6544
6545 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6546
6547         preprocessor/3951
6548         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6549         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6550         (init_dependency_output): Don't make no_output decision here.
6551
6552 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
6553
6554         * stmt.c (check_for_full_enumeration_handling): Remove tests of
6555         warn_switch.  Update description.
6556         (expand_end_case_type): Call check_for_full_enumeration_handling
6557         when warn_switch.
6558
6559 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6560
6561         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6562         (m68hc11_split_move): Call it to see if the source and destination
6563         operands use the same direction auto inc/dec mode, otherwise make the
6564         source an offsetable memory operand and generate an add.
6565
6566 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6567
6568         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6569         register for operand 2.
6570         ("*subsi3_zero_extendqi"): Likewise.
6571         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6572         bits so that it is compatible with a pop.
6573         ("*andhi3_gen"): Likewise.
6574         ("xorhi3"): Likewise.
6575
6576 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6577
6578         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6579         -pedantic here...
6580         (cpp_post_options): ... not here.
6581
6582 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6583             Aldy Hernandez  <aldyh@redhat.com>
6584
6585         Removal of separate preprocessor cpp0.
6586
6587         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6588         cpp0, install-common): Update.
6589         * c-common.c (flag_preprocess_only): New.
6590         (c_common_init): Preprocess for -E.
6591         * c-common.h (flag_preprocess_only): New.
6592         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6593         * c-objc-common.c (c_init_decl_processing): Exit quickly
6594         for NULL return from c_common_init.
6595         * cpplib.h (cpp_preprocess_file): New.
6596         * cppmain.c (main, general_init, pfile, progname): Remove.
6597         (do_preprocessing): Rename cpp_preprocess_file, don't call
6598         cpp_finish.  Don't close stdout here.
6599         (setup_callbacks): Update prototype.
6600         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6601         Update.
6602         * tradcpp.c (main): Ignore -quiet.
6603 objc:
6604         * lang-specs.h (default_compilers): Preprocess with cc1obj.
6605
6606 2002-03-24  Richard Henderson  <rth@redhat.com>
6607
6608         PR optimization/5742
6609         * machmode.def: Add inner mode field to complex modes.
6610         * config/mips/mips.c (mips_function_value): Always define.  Add
6611         new argument to handle libcalls.
6612         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6613         (FUNCTION_VALUE): Likewise.
6614         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6615         * config/mips/mips-protos.h: Update.
6616
6617 2002-03-23  Richard Henderson  <rth@redhat.com>
6618
6619         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6620         * config/sparc/sparc-protos.h: Update.
6621         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6622
6623 2002-03-23  Richard Henderson  <rth@redhat.com>
6624
6625         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6626         _start or _init begins the text segment.
6627
6628 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
6629
6630         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
6631         not HOST_WIDEST_INT.
6632         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6633
6634 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
6635
6636         PR java/5489
6637         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6638         operand argument to output_return_instruction.
6639         * arm.c (arm_print_operand, case 'd'): If the operand is
6640         const_true_rtx then just return.
6641         (arm_print_operand, case 'D'): If the operand is const_true_rtx
6642         then abort.
6643
6644 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
6645
6646         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6647         (Warning Options): Document -Wswitch-default.
6648         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
6649         -Wswitch.
6650         (warn_switch_default): Define variable.
6651         (warn_switch): Update comment.
6652         * flags.h (warn_switch_default): Declare variable.
6653         (warn_switch): Update comment.
6654         * stmt.c (expand_end_case): Check for and, when
6655         warn_switch_no_default, warn of a missing default case.
6656
6657 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
6658
6659         * real.h (N): Special case 128 bit doubles.
6660
6661         * combine.c (simplify_comparison): When widening modes, ignore
6662         sign extension on CONST_INTs.
6663
6664 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6665
6666         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6667         passed to adjust_address.  Fix comment formatting.
6668
6669
6670 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
6671
6672         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6673         Always make REAL_VALUE_TYPE a struct containing an array of
6674         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
6675         big it is.  Don't declare or use union real_extract.
6676
6677         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6678         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6679         (print_operand), config/arm/arm.c (output_move_double),
6680         config/arm/arm.md (consttable_4, consttable_8),
6681         config/romp/romp.c (output_fpops), config/s390/s390.h
6682         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6683         (xtensa_output_literal): Don't use union real_extract.
6684
6685         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6686         (sfmode_constant_to_ulong), config/ns32k/merlin.h
6687         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6688         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6689         (PRINT_OPERAND): Don't use local version of union
6690         real_extract.
6691
6692         * config/convex/convex.c (check_float_value), config/vax/vax.c
6693         (vax_float_literal), config/m88k/m88k.md (divdf3),
6694         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6695         config/pdp11/pdp11.c (output_move_quad): Don't do host
6696         arithmetic on target floating point quantities.
6697
6698         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6699         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6700
6701         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6702         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6703
6704         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6705         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6706         INFINITY.
6707         * print-rtl.c (print_rtx): Disable code which needs
6708         floating-point emulator.
6709         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6710         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6711         depending on HOST_FLOAT_FORMAT to be defined properly.
6712
6713         * config/1750a/1750a.c (get_double, float_label): Delete.
6714         (print_operand): Delete huge commented-out chunk.  Use
6715         REAL_VALUE_TO_DECIMAL.
6716         * config/1750a/1750a-protos.h: Delete prototypes of deleted
6717         functions.
6718         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6719         IEEE_FLOAT_FORMAT.
6720         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6721         Use REAL_VALUE_TO_DECIMAL as ELF version does.
6722         * config/m88k/m88k.c (real_power_of_2_operand,
6723         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6724         real_extract out of the union; run the input through
6725         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6726         from that into the union.
6727         * config/pdp11/pdp11.c (output_move_double): Rearrange
6728         parentheses to make automatic indenter happy.
6729
6730         * doc/tm.texi (Cross-compilation): Rename node to "Floating
6731         Point" and rewrite to describe current situation.  Also adjust
6732         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6733         match code.
6734         * doc/rtl.texi: Adjust cross reference.
6735
6736 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6737
6738         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6739         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6740         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6741         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6742         prevent use of sp as a reload register.
6743         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6744         non_acc_reg_operand.
6745         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6746         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6747         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6748         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6749
6750 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6751
6752         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6753         * cpplex.c (unterminated): Delete.
6754         (parse_string): No string literal may extend over multiple
6755         lines.  Suppress the error when preprocessing assembly.
6756         * cppmain.c (scan_translation_unit): Strings are single-line.
6757
6758         * doc/cpp.texi: Update to match.
6759
6760 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
6761
6762         PR optimization/5854
6763         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6764         Shut up warnings.
6765         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6766         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6767         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6768         const0 if scratch register was not allocated.
6769         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6770         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6771         with GEN_INT (...).
6772         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6773         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6774         with GEN_INT (...) everywhere.  Remove constraints in define_split
6775         patterns.
6776         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6777         require scratch register for setting 0 into regs/non-pushable memory.
6778
6779 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
6780
6781         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6782         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6783
6784 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
6785
6786         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
6787         * cppinit.c (cpp_create_reader):  On by default.
6788         (cpp_handle_option):  Handle -W[no-]endif-labels.
6789         (cpp_post_options):  Also enable if -pedantic.
6790         * cpplib.c (do_else):  Use it.
6791         (do_endif):  Likewise.
6792         * doc/cppopts.texi:  Document new option.
6793         * doc/invoke.texi:  Document new option.
6794
6795 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
6796
6797         * config/i386/i386.c, config/i386/i386.md: Change all occurences
6798         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6799
6800 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
6801
6802         * flow.c (calculate_global_regs_live): Clear aux fields of
6803         ENTRY and EXIT.
6804
6805 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
6806
6807         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6808         REG or MEM subregs, pass rtx * instead of rtx to it.
6809         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6810         rtx * instead of rtx to alter_subreg.
6811         * config/m32r/m32r.c (gen_split_move_double): Likewise.
6812         * config/pj/pj.c (pj_output_rval): Likewise.
6813
6814 2002-03-22  Richard Henderson  <rth@redhat.com>
6815
6816         PR target/3177
6817         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6818         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6819         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6820         (ia64_expand_prologue): Look at int_regs, not words, for number
6821         of incomming int regs.
6822
6823 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
6824
6825         * expr.c (expand_expr): A RESULT_DECL is part of a call.
6826
6827 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
6828
6829         * toplev.c (flag_loop_optimize, flag_crossjumping):
6830         New static variables.
6831         (rest_of_compilation): Conditionalize crossjumping and
6832         loop optimizer.
6833         (parse_options_and_default_flags): Default loop_optimize and
6834         crossjumping.
6835         (lang_independent_options): Add -fcrossjumping and -floop-optimize
6836         * invoke.texi (crossjumping, loop-optimize): Document.
6837
6838 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6839
6840         * real.c (eiisneg): Move outside #ifdef NANS.
6841
6842 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6843
6844         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6845         frequencies match; avoid match on different loop depths.
6846         (try_crossjump_to_bb): Kill tests that no longer brings time
6847         savings.
6848         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6849         updating code.
6850         (split_edge): Likewise.
6851
6852         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6853         variable.
6854
6855         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6856         * cfgrtl.c: Include insn-config.h
6857         (split_block) Dirtify block in presence of conditional execution
6858
6859 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6860
6861         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6862         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6863         (function_arg): Constify CUMULATIVE_ARGS.
6864         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6865         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6866         (UNITS_PER_DOUBLE): New macro.
6867         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
6868         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
6869         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
6870         fp_regs and stack_words.
6871         (EABI_FLOAT_VARARGS_P): New macro.
6872         * config/mips/mips.c (struct mips_arg_info): New.
6873         (mips_arg_info): New function.
6874         (function_arg_advance): Use it.  Add adjustment instructions here
6875         rather than in function_arg.
6876         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
6877         for VOIDmode at the beginning of the function.
6878         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
6879         (function_arg_pass_by_reference): Likewise.
6880         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6881         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6882         (mips_va_start): Likewise.  Use the new stack_words field of
6883         CUMULATIVE_ARGS to set up overflow area.  Reformat.
6884         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
6885         doubles and other types, aligning the overflow pointer for non-doubles
6886         too.  Remove some code duplication.  Replace hard-coded constants.
6887
6888 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6889
6890         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6891         (CLASS_UNITS): Undefine.
6892         (CLASS_MAX_NREGS): Use FP_INC.
6893         * config/mips/mips.c (compute_frame_size): Likewise.
6894         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6895
6896 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6897
6898         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6899         prototype, and handle lexing numbers and identifiers.
6900         (parse_identifier): Update to new form of parse_slow.
6901         (parse_number): Fast path only, use parse_slow otherwise.
6902         (_cpp_lex_direct): Update calls to parse_number.
6903
6904 2002-03-21  DJ Delorie  <dj@redhat.com>
6905
6906         * bb-reorder.c (make_reorder_chain_1): Protect against
6907         when redundant edges are omitted.
6908         * predict.c (dump_prediction): Likewise.
6909
6910 2002-03-21  Richard Henderson  <rth@redhat.com>
6911
6912         PR target/5996
6913         * fixinc/inclhack.def (solaris_stdio_tag): New.
6914         * fixinc/fixincl.x: Regenerate.
6915
6916 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6917
6918         PR c/5597
6919         * c-typeck.c (process_init_element): Flag non-static
6920         initialization of a flexible array member as illegal.
6921
6922 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
6923
6924         * config/rs6000/t-linux64: New.
6925         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6926         t-ppccomm.  Use t-rs6000 and t-linux64.
6927         (powerpc64-*-gnu* <tmake_file>): Likewise.
6928         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6929         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6930         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6931
6932 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
6933
6934         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6935         flag_really_no_inline instead of optimize == 0.
6936
6937         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6938
6939         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6940
6941         * flags.h (flag_really_no_inline): New.
6942
6943         * c-common.c (c_common_post_options): Initialize
6944         flag_really_no_inline.
6945
6946         * toplev.c (flag_really_no_inline): New.
6947
6948 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6949
6950         * config/avr/avr.md (length): Fix length computation for
6951         conditional branches.
6952
6953 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6954
6955         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6956         sdbout.o, profile.o): Update.
6957         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6958         langhook.
6959         * c-common.h (gettags): Move here from tree.h.
6960         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6961         insert_block, getdecls, kept_level_p, global_bindings_p): New.
6962         * dbxout.c (dbxout_init): Use getdecls langhook.
6963         * expr.c (expand_expr): Use insert_block langhook.
6964         * fold-const.c: Include langhooks.h.
6965         (fold_range_test, fold_binary_op_with_conditional_arg,
6966         fold): Use global_bindings_p langhook.
6967         * integrate.c (expand_inline_function): Use insert_block langhook.
6968         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6969         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6970         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6971         LANG_HOOKS_GETDECLS): New.
6972         (LANG_HOOKS_INITIALIZER): Update.
6973         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6974         langhook.
6975         * langhooks.h (struct lang_hooks_for_decls): New.
6976         (struct lang_hooks): Update.
6977         * profile.c: Include langhooks.h.
6978         (output_func_start_profiler): Use new langhooks.
6979         * sdbout.c: Include langhooks.h.
6980         (sdbout_init, sdbout_finish): Use getdecls langhook.
6981         * stmt.c: Include langhooks.h.
6982         (expand_fixup, fixup_gotos): Use new langhooks.
6983         * stor-layout.c: Include langhooks.h.
6984         (variable_size): Use global_bindings_p langhook.
6985         * toplev.c (compile_file): Use getdecls langhook.
6986         * tree-inline.c (remap_block): Use insert_block langhook.
6987         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6988         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6989
6990 2002-03-21  Richard Henderson  <rth@redhat.com>
6991
6992         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6993         constants in .data when -fpic.
6994
6995 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6996
6997         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6998         where appropriate.
6999
7000 2002-03-21  Tom Tromey  <tromey@redhat.com>
7001
7002         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
7003
7004 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7005
7006         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
7007
7008         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
7009
7010 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
7011             Richard Henderson  <rth@redhat.com>
7012
7013         PR c/5354
7014         * c-common.c (c_expand_expr): Preserve result of a statement
7015         expression if needed.
7016
7017 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
7018
7019         PR bootstrap/4195
7020         * genrecog.c (maybe_both_true_mode): Remove.
7021         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
7022         * machmode.def (Pmode): Likewise.
7023
7024 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
7025
7026         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
7027         (nonlocal_mentioned_p_1): New function.
7028         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
7029         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
7030         (mark_constant_function): Recognize pure functions.
7031         * rtl.h (global_reg_mentioned_p): New prototype.
7032         * rtlanal.c (global_reg_mentioned_p,
7033         global_reg_mentioned_p_1): New function.
7034
7035 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7036
7037         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
7038         UNIX assert.h.
7039         * fixinc/fixincl.x: Regenerate.
7040
7041 2002-03-20  Jason Merrill  <jason@redhat.com>
7042
7043         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
7044
7045 2002-03-20  Michael Meissner  <meissner@redhat.com>
7046
7047         * doc/invoke.texi (Optimize Options): Document that -O2 sets
7048         -fstrict-aliasing.
7049
7050 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
7051
7052         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
7053         ".literal_position" directive before the constant pool.
7054
7055 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7056
7057         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
7058         Add Craig Rodrigues.
7059         Add Brad Lucier to testers.
7060
7061 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
7062
7063         PR target/4792
7064         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
7065         to if_then_else.
7066         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
7067         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
7068         instead of insn_extract.
7069
7070 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
7071
7072         PR bootstrap/4192
7073         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
7074
7075         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
7076         stmt if some case has been output.
7077
7078 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
7079
7080         PR c/5972
7081         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
7082         movsfcc_1, movdfcc_1): Add %O2.
7083         * config/i386/i386.c (print_operand): Handle %ON.
7084         Print . before float condition codes in Sun as cmov syntax.
7085         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
7086         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
7087         no longer true.
7088
7089 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
7090
7091         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
7092         return instruction if PC was popped.
7093
7094 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
7095
7096         * config/xtensa/xtensa.md: Remove unused type attributes.
7097         (adddi_carry, subddi_carry): Change type attribute to "multi".
7098
7099 2002-03-19  Dale Johannesen  <dalej@apple.com>
7100
7101         PR optimization/5999, middle-end/5731
7102         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
7103         multiplications by reciprocals.
7104
7105 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7106
7107         * Makefile.in: Update.
7108         * c-common.c: Include langhooks.h.
7109         (inline_forbidden_p): Use new hook.
7110         * diagnostic.c: Include langhooks.h.
7111         (format_with_decl, announce_function,
7112         default_print_error_function): Use new hook.
7113         * dwarf2out.c (dwarf2_name): Use new hook.
7114         * function.c: Include langhooks.h.
7115         (init_function_start): Use new hook.
7116         * langhooks-def.h (lhd_decl_printable_name): New.
7117         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
7118         (LANGHOOKS_INITIALIZER): Update.
7119         * langhooks.c (lhd_decl_printable_name): New.
7120         * langhooks.h (struct lang_hooks): New hook.
7121         * toplev.c (decl_name, decl_printable_name): Remove.
7122         (open_dump_file): Use new hook.
7123         (process_options): Remove old hook.
7124         * tree.h (decl_printable_name): Remove.
7125 objc:
7126         * objc-act.c (objc_init): Remove old hook.
7127         (objc_printable_name): Export.
7128         * objc-act.h (objc_printable_name): New.
7129         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
7130
7131 2002-03-19  Jim Blandy  <jimb@redhat.com>
7132
7133         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
7134         the start_source_file debug hook, not the current line number.
7135
7136 2002-03-19  Richard Henderson  <rth@redhat.com>
7137
7138         * flow.c (EH_USES): Provide default.
7139         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
7140         * doc/tm.texi (EH_USES): New.
7141
7142         * config/ia64/ia64.c (ia64_eh_uses): New.
7143         * config/ia64/ia64-protos.h: Update.
7144         * config/ia64/ia64.h (EH_USES): New.
7145
7146 2002-03-19  Richard Henderson  <rth@redhat.com>
7147
7148         * varasm.c (output_constant_def): Fix stupid typo.
7149
7150 2002-03-19  Richard Henderson  <rth@redhat.com>
7151
7152         PR 5879
7153         * except.c (current_function_has_exception_handlers): New.
7154         * except.h: Declare it.
7155         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
7156         Combine tests that disable all sibcalls for the function.
7157
7158 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
7159
7160         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
7161         for INTEGER_CST.
7162
7163 2002-03-19  Richard Henderson  <rth@redhat.com>
7164
7165         PR 5977, 5991
7166         * config/ia64/ia64.c: Revert 2002-03-01 patch.
7167         * config/ia64/ia64.h (INIT_EXPANDERS): New.
7168
7169 2002-03-19  Jim Blandy  <jimb@redhat.com>
7170
7171         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
7172         name, even if the replacement list contains no tokens, as required
7173         by Dwarf.
7174
7175 2002-03-19  Jason Merrill  <jason@redhat.com>
7176
7177         * varasm.c (globalize_decl): Get the name from the RTL, not
7178         DECL_ASSEMBLER_NAME.
7179
7180         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
7181
7182 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
7183
7184         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
7185         subdi_carry): Define.
7186
7187 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
7188
7189         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
7190         about -fpic/-fPIC if extra_warnings set.
7191
7192 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
7193
7194         * expr.c (expand_expr): Sign-extend CONST_INT generated from
7195         TREE_STRING_POINTER.
7196         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
7197
7198 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7199
7200         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
7201         in favor of SP if FRAME_POINTER_REQUIRED is false.
7202
7203 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
7204
7205         * emit-rtl.c (gen_int_mode): New function.
7206         * rtl.h: Prototype for it.
7207         * combine.c (make_extraction, simplify_comparison), expmed.c
7208         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
7209         (convert_modes, store_field), optabs.c (expand_fix),
7210         simplify-rtx.c (neg_const_int, simplify_unary_real),
7211
7212         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
7213         Use it instead of GEN_INT (trunc_int_for_mode (...)).
7214
7215 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
7216
7217         PR c/5656
7218         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
7219         convert_parm_for_inlining.
7220         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7221         Define.
7222         * langhooks-def.h: Likewise.
7223         * objc/objc-lang.c: Likewise.
7224         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
7225         function.
7226         * tree-inline.c (initialize_inlined_parameters):
7227         Call convert_parm_for_inlining lang hook if needed.
7228         * c-typeck.c (c_convert_parm_for_inlining): New function.
7229         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
7230
7231 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
7232
7233         * calls.c (precompute_arguments): Do not assume that temporaries
7234         can be destroyed after expanding the argument.
7235         (expand_call): Likewise.
7236
7237 2002-03-15  Eric Christopher  <echristo@redhat.com>
7238
7239         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
7240         Fix register preference on last change.
7241         * config/mips/mips.c (mips_return_in_memory): New function.
7242         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
7243         * config/mips/mips-protos.h: Declare.
7244         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
7245         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
7246
7247 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
7248
7249         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
7250         a register too.
7251         (anddi3, iorsi3): Likewise.
7252
7253         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
7254         use %gprel for symbols that are going to be placed in linkonce
7255         sections.
7256
7257         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
7258         RETURN_ADDRESS_POINTER_REGNUM to $ra.
7259         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
7260         not needed.  Disregard leaf_function_p().
7261         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
7262         mips16 frame pointer.
7263         * config/mips/mips.md (store ra): Only to small SP offsets.
7264         2001-08-22  Graham Stott  <grahams@redhat.com>
7265         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
7266         return a REG rtx for the return address register.
7267
7268 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
7269
7270         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
7271         constant-pool addresses as "mode-dependent".
7272         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
7273
7274 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
7275
7276         PR target/5740
7277         * expr.c (emit_group_load): Use extract_bit_field if
7278         needed for CONCAT arguments.
7279
7280 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
7281
7282         PR target/4863
7283         * arm.md (tablejump): Make this a define_expand.  For PIC add the
7284         offset to the base of the table.
7285         (thumb_tablejump): Matcher for Thumb tablejump insn.
7286         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
7287         as the difference of two labels.
7288         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7289         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
7290         tables in the code.
7291         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7292         * arm.c (get_jump_table_size): If the table is not in the text
7293         section, return zero.
7294
7295 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
7296
7297         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7298         of gen_rtx_SUBREG.
7299         (arm_reload_out_hi): Use gen_lowpart instead of
7300         gen_rtx_SUBREG to access QImode components.
7301         * config/arm/arm.md: Disable zero_extend split for QImode
7302         subregs in BIG_ENDIAN mode.
7303         (storehi_bigend): Match use of least significant byte.
7304         (storeinthi): Remove extraneous SUBREG.
7305         Add missing construction of operands[2].
7306         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7307         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7308         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7309
7310 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
7311
7312         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7313         any_operand.
7314
7315 2002-03-17  Richard Henderson  <rth@redhat.com>
7316
7317         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7318         explicitly.
7319
7320 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
7321
7322         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7323         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7324
7325 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7326
7327         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7328
7329         * predict.c (estimate_bb_frequencies): Delete unused variables.
7330
7331 2002-03-17  Richard Henderson  <rth@redhat.com>
7332
7333         * config/ia64/ia64.c (ia64_attribute_table): Move before
7334         targetm definition.  Make static.
7335
7336 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7337
7338         * c-common.h (yyparse, c_common_parse_file): New.
7339         * c-lang.c: Include c-common.h.
7340         (LANG_HOOKS_PARSE_FILE): Redefine.
7341         * c-lex.c: Include c-common.h.
7342         (yyparse): Rename c_common_parse_file.  Call yyparse.
7343         * c-parse.in (yyparse): Remove macro.
7344         * c-tree.h (yyparse_1): Remove.
7345         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7346         (LANG_HOOKS_INITIALIZER): Update.
7347         * langhooks.h (struct lang_hoooks): New hook parse_file.
7348         * toplev.c (compile_file): Use parse_file hook.
7349         * tree.h (yyparse): Remove.
7350         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
7351
7352 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
7353
7354         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7355         float_truncate, not fix.
7356         ("*truncdfsf2_real"): Ditto.
7357         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7358
7359         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7360
7361 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
7362
7363         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7364         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
7365         where appropriate.  Make the second reference to
7366         leaf_function_p a function call, as intended.  Reindented.
7367
7368         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7369         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7370
7371         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7372         add register to non-constant into sp.
7373
7374         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7375         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7376         (mips16_gp_pseudo_rtx): Lose.
7377         (INIT_EXPANDERS): Deleted.
7378         * config/mips/mips.c (mips_init_machine_status): New.
7379         (mips_free_machine_status): New.
7380         (mips_mark_machine_status): New.
7381         (override_options): Set them.
7382         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7383         (struct machine_function): ... new.  Replaced all references.
7384         (mips_add_gc_roots): Don't mark them.
7385         (embedded_pic_fnaddr_reg): New, extracted from...
7386         (embedded_pic_offset): ... here.
7387         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7388         (movsi): Likewise.
7389
7390 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7391
7392         * cppinit.c: Revert -MD removal.
7393
7394 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7395
7396         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7397         soft registers by default for 68HC12.
7398         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7399         when compiling with -fomit-frame-pointer.
7400         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7401         (expand_epilogue): Likewise.
7402         (m68hc11_gen_rotate): Use exg when rotating by 8.
7403
7404 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7405
7406         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7407         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7408         (splits): Remove unused add splits.
7409         ("*addhi3_68hc12"): Tune constraints.
7410         ("addhi_sp"): Try to use X instead of Y in all cases and if the
7411         constant fits in 8-bits and D is dead use abx/aby instructions.
7412         ("*addhi3"): Remove extern declaration of ix_reg.
7413         ("*subsi3"): Optimize and provide new split.
7414         ("subhi3"): Cleanup.
7415         ("*subhi3_sp"): Avoid saving X if we know it is dead.
7416         (arith splits): For 68hc12 save the address register on the stack
7417         and do the arithmetic operation with a pop.
7418
7419 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7420
7421         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7422         allocating QImode in address registers.
7423         ("*movqi_m68hc11"): Likewise.
7424
7425 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
7426
7427         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7428
7429 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7430
7431         * cppinit.c (print_help): Display -MD and -MMD.
7432         Don't display usage string.  Update assertion syntax and
7433         typo.
7434         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7435         (cpp_handle_option): Update.
7436
7437 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
7438
7439         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7440         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7441         and define it so that regardless of target CPU size,
7442         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7443         of "int" rather than "long."
7444
7445 2002-03-15  Richard Henderson  <rth@redhat.com>
7446
7447         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7448         size as a tree.
7449
7450 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7451
7452         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7453         ("tstqi" split): Avoid using memory for tstqi on address register.
7454         (splits): Remove constraints.
7455         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7456         ("cmpdf", "cmpsf"): Remove since not used.
7457         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7458         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7459
7460 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7461
7462         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7463         ("neghi2"): Tighten constraints.
7464         ("one_cmplsi2"): Optimize and simplify split.
7465         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7466
7467 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7468
7469         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7470         and split of AND operation to clear the upper bits.
7471         ("*logicalsi3_zextqi"): Likewise.
7472         ("*logicallhi3_zexthi_ashift8"): Likewise.
7473         ("*logicalsi3_silshr16"): Likewise.
7474         ("logicalsi3_silshl16"): Likewise.
7475         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7476
7477 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7478
7479         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7480         (m68hc11_indirect_p): New function.
7481         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7482         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7483         TARGET_M6812.
7484         (asm_print_register): Likewise.
7485         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7486         (m68hc11_indirect_p): Declare.
7487         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7488         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7489         (TARGET_SWITCHES): New option -mrelax.
7490         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7491         destination.
7492         ("iorsi3", "xorsi3"): Likewise.
7493         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7494         ("*andhi3_mem"): New to handle destination in memory with bclr
7495         and a scratch register.
7496         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7497         ("*andhi3_const"): New when operand2 is constant.
7498         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7499         ("*andhi3_gen"): Cleanup of the old "andhi3".
7500         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7501         ("xorqi3"): Update constraints.
7502
7503 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7504
7505         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7506         for reg_equiv_memory_loc when the operand is a register that does
7507         not get a hard register (stack location).
7508         (tst_operand): After reload, accept all memory operand.
7509         (symbolic_memory_operand): Fix detection of symbolic references.
7510         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7511         accept symbols and any constant.
7512
7513 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7514
7515         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7516         note on the insn that sets the soft frame register.
7517         (must_parenthesize): ix and iy are also reserved names.
7518         (print_operand_address): One more place where parenthesis are required
7519         to avoid confusion with register names.
7520         (m68hc11_gen_movhi): Allow push of stack pointer.
7521         (m68hc11_check_z_replacement): Fix handling of parallel with a
7522         clobber.
7523         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7524         the replacement register is.
7525         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7526         and D8_REGS classes.
7527         (MODES_TIEABLE_P): All modes are tieable except QImode.
7528
7529 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7530
7531         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7532         (___subdi3): Likewise.
7533         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7534         (__map_data_section): Optimize 68hc11 case.
7535
7536 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7537
7538         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7539         than a shift to avoid adding a register with itself.
7540         (m68hc11_memory_move_cost): Take into account NO_REGS.
7541         (m68hc11_register_move_cost): Update and use memory move cost
7542         for soft registers.
7543         (m68hc11_address_cost): Make cost of valid offset not 0 so that
7544         it gives more opportunities to cse to optimize.
7545         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7546         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7547
7548 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
7549
7550         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7551         * c-common.def (CLEANUP_STMT): New tree node.
7552         * c-common.h (CLEANUP_DECL): New macro.
7553         (CLEANUP_EXPR): Likewise.
7554         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7555         * expr.c (expand_expr): Tidy.
7556         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7557         * tree-inline.c (initialize_inlined_parameters): Clean up
7558         new local variables.
7559
7560 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7561
7562         PR bootstrap/4128
7563         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7564         before movrXX only, use reg_overlap_mentioned_p.
7565         Only special case NE if just one insn can be generated.
7566
7567 2002-03-15  Jason Merrill  <jason@redhat.com>
7568
7569         * varasm.c (assemble_variable): Call resolve_unique_section before
7570         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
7571         of error_mark_node.
7572
7573 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7574
7575         PR target/5170
7576         * arm.md (split pattern for thumb shiftable immediates): Add comment
7577         explaining non-obvious test.
7578
7579 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7580
7581         PR target/5712
7582         * arm.md (movaddr, movaddr_insn): Delete.
7583
7584 2002-03-15  Jason Merrill  <jason@redhat.com>
7585
7586         * toplev.c (wrapup_global_declarations): Clarify variable handling.
7587         -fkeep-static-consts doesn't apply to comdats.
7588
7589 2002-03-14  Richard Henderson  <rth@redhat.com>
7590
7591         * c-decl.c: Include c-pragma.h.
7592         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7593         (finish_function): Tidy.
7594         * c-pragma.c: Include c-common.h.
7595         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7596         (handle_pragma_weak): Use them.
7597         (init_pragma): Register pending_weaks.
7598         * c-pragma.h (maybe_apply_pragma_weak): Declare.
7599         * print-tree.c (print_node): Print DECL_WEAK.
7600         * varasm.c (mark_weak_decls): Remove.
7601         (remove_from_pending_weak_list): Remove.
7602         (add_weak): Remove.
7603         (asm_emit_uninitialised): Call globalize_decl for weak commons.
7604         (weak_decls): Make a tree_list.
7605         (declare_weak): Cons weak_decls directly.
7606         (globalize_decl): Remove weak_decls elements directly.
7607         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
7608         symbols.  Don't pretend to handle aliases.
7609         (init_varasm_once): Update weak_decls registry.
7610         * Makefile.in: Update dependencies.
7611
7612 2002-03-14  Richard Henderson  <rth@redhat.com>
7613
7614         PR target/5312
7615         * config/ia64/ia64.c: Include tm_p.h last.
7616         (gen_nop_type): Remove duplicate definition.
7617         (cycle_end_fill_slots): Set sched_data for second L slot.
7618         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7619         (nop_cycles_until): Fix typos.
7620
7621 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7622
7623         PR optimization/5891
7624         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7625
7626 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7627
7628         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7629           descriptors correctly.
7630
7631 2002-03-14  Michael Meissner  <meissner@redhat.com>
7632
7633         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7634         100, allowing MAX_UNROLLED_INSNS to be overridden.
7635
7636         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7637         --param.
7638
7639         * unroll.c (params.h): Include.
7640         (MAX_UNROLLED_INSNS): Delete, now in params.h.
7641
7642         * doc/invoke.texi (--param max-unroll-insns): Document.
7643
7644         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7645
7646 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7647
7648         * arm.md: Fix warnings about constraints in peepholes and splits.
7649
7650 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
7651
7652         * cpphash.h (struct lexer_state): Remove line_extension member.
7653         * cpplib.c (dequote_string, do_linemarker): New functions.
7654         (linemarker_dir): New data object.
7655         (DIRECTIVE_TABLE): No longer need to interpret #line in
7656         preprocessed source.  Delete obsolete comment about return
7657         values of handlers.
7658         (end_directive, directive_diagnostics, _cpp_handle_directive):
7659         Don't muck with line_extension.
7660         (directive_diagnostics): No need to issue warnings for
7661         linemarkers here.
7662         (_cpp_handle_directive): Issue warnings for linemarkers here,
7663         when appropriate.  Dispatch linemarkers to do_linemarker, not
7664         do_line.
7665         (do_line): Code to handle linemarkers split out to do_linemarker.
7666         Convert escape sequences in filename argument, both places.
7667
7668         * cppmacro.c (quote_string): Rename cpp_quote_string and
7669         export.  All callers changed.
7670         * cpplib.h (cpp_quote_string): Prototype.
7671         * cppmain.c (print_line): Call cpp_quote_string on to_file
7672         before printing it.
7673
7674         * doc/cpp.texi: Document that escapes are now interpreted in
7675         #line and in linemarkers, and that non-printing characters are
7676         converted to octal escapes when linemarkers are generated.
7677
7678 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
7679
7680         * emit-rtl.c (try_split): Use delete_insns.
7681         * recog.c (split_all_insns): Fix terminating condition.
7682
7683 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7684             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7685
7686         PR target/5828
7687         * arm.c (arm_output_epilogue): Fix floating-point register save
7688         adjustment when using a frame pointer.
7689
7690 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
7691
7692         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7693         * config/mips/mips.c (compute_frame_size): Retrofit them here.
7694         (save_restore_insns, mips_expand_epilogue): And here.
7695         (build_mips16_call_stub): And here.
7696         (mips_function_value): Use the new macros to decide whether a single
7697         or complex float can be returned in floating-point registers.  Return
7698         a parallel rtx in the complex case.
7699
7700 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
7701
7702         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7703         call after liveness analysis.
7704
7705         * recog.c (split_insn): Use delete_insn_and_edges.
7706
7707         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7708         instructions to have branch prediction notes.
7709         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7710
7711 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
7712
7713         * configure.in: Don't pass -Wno-long-long to a ADA compiler
7714         that doesn't support it.
7715         * configure: Regenerate.
7716
7717 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7718
7719         PR target/5626
7720         * config/sparc/sparc.md (normal_branch, inverted_branch,
7721         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7722         inverted_fp_branch): Adjust calls to output_cbranch.
7723         Set length attribute.
7724         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7725         output_v9branch.  Set length attribute.
7726         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7727         predicates.
7728         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7729         (output_cbranch): Likewise.  Handle far branches.
7730         (output_v9branch): Handle far branches.
7731         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7732         Adjust prototypes.
7733         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7734         noov_compare64_op predicates.
7735
7736 2002-03-13  Jason Merrill  <jason@redhat.com>
7737
7738         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7739         into the function and constify it.
7740         * gthr-dce.h, gthr-solaris.h: Likewise.
7741
7742 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
7743
7744         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7745         * config/rs6000/rs6000.c (rs6000_va_arg): Use
7746         std_expand_builtin_va_arg if not ABI_V4.
7747
7748 2002-03-13  Jason Merrill  <jason@redhat.com>
7749
7750         * varasm.c (globalize_decl): New fn.
7751         (assemble_start_function): Use it.
7752         (asm_emit_uninitialized): Use it.
7753         (assemble_alias): Use it.
7754         (assemble_variable): Use it.
7755
7756 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
7757
7758         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7759         2002-03-12 internal visibility change.
7760         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7761         visibility into SYMBOL_REF_FLAG.
7762
7763 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
7764
7765         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7766         VOIDmode operand.  Add compile-time optimization for constant results.
7767
7768 2002-03-12  Jason Merrill  <jason@redhat.com>
7769
7770         * c-typeck.c (convert_for_assignment): Don't allow conversions
7771         between pointers and references.  Only allow lvalues to convert to
7772         reference.
7773
7774 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
7775
7776         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7777         before prologue, to avoid scheduling problems.
7778
7779 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7780
7781         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7782         (ELIMINABLE_REGS): Add sfp->sp.
7783         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7784
7785 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7786
7787         PR optimization/5892
7788         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7789
7790 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7791
7792         * loop.c (basic_induction_var): Don't call convert_modes if mode
7793         classes are different.
7794
7795 2002-03-12  Richard Henderson  <rth@redhat.com>
7796
7797         PR optimization/5901
7798         * function.c (reposition_prologue_and_epilogue_notes): Position
7799         the markers after/before the last/first insn not deleted.
7800
7801 2002-03-12  Richard Henderson  <rth@redhat.com>
7802
7803         PR optimization/5878
7804         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7805         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7806         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7807
7808         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7809         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7810         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7811
7812         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7813         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7814         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7815         also.  Don't set it if not flag_pic.
7816         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7817         to be INVALID_REGNUM when not used.
7818
7819 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
7820
7821         * expmed.c (store_bit_field): Reset alias set for memory.
7822         (extract_bit_field): Same.
7823
7824 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7825
7826         * c-common.c (c_tree_code_type, c_tree_code_length,
7827         c_tree_code_name, add_c_tree_codes): Delete.
7828         * c-common.h (add_c_tree_codes): Delete.
7829         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7830         Define.
7831         * c-objc-common.c (c_objc_common_init): Don't call
7832         add_c_tree_codes, instead set lang_unsafe_for_reeval.
7833         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7834         objc_tree_code_name, add_objc_tree_codes): Delete.
7835         (objc_init): Don't call add_objc_tree_codes.
7836         * objc/objc-lang.c (tree_code_type, tree_code_length,
7837         tree_code_name): Define.
7838         * toplev.c (lang_independent_init): Don't set
7839         tree_code_length[IDENTIFIER_NODE].
7840         * tree.c (tree_code_type, tree_code_length, tree_code_name):
7841         Delete definitions, moved to language front-ends.
7842         * tree.def (IDENTIFIER_NODE): Hardwire the length.
7843         * tree.h (tree_code_type, tree_code_length, tree_code_name):
7844         Const-ify.
7845         (tree_code_length): Change type to unsigned char.
7846
7847 2002-03-12  Richard Henderson  <rth@redhat.com>
7848
7849         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7850         internal visibility change.
7851
7852 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7853
7854         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7855         validize_mem() instead of change_address to avoid clobbering
7856         memory attributes.
7857
7858 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
7859
7860         * c-lex.h (position_after_whitespace): Remove.
7861
7862 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
7863
7864         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7865         (lex_string): Use unsigned char pointers.
7866
7867 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7868
7869         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7870         is not a valid memory_operand.
7871
7872 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7873
7874         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7875         * config/xtensa/lib1funcs.asm: Fix copyright to include
7876         special case for libgcc files.
7877         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7878         (__divsi3): Likewise.
7879         (__umodsi3): Likewise.
7880         (__modsi3): Likewise.
7881         * config/xtensa/lib2funcs.S: Fix copyright to include
7882         special case for libgcc files.
7883
7884 2002-03-12  Tom Rix  <trix@redhat.com>
7885
7886         * collect2.c (resolve_lib_name): Move outside of
7887         OBJECT_FORMAT_COFF ifdef.
7888         (ignore_library): Same.
7889
7890 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7891
7892         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7893
7894 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7895
7896         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7897         to function_section before writing out the constant pool.
7898
7899 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
7900
7901         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7902         zero_constant.
7903         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7904
7905 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
7906
7907         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7908         (adddi3): Likewise.
7909         (movdf): Likewise.
7910         (movdi): Likewise.
7911         (cmpsi splitter): Likewise.
7912         (modsi3): Fail if <= 0.
7913         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7914         redundant test when HOST_BITS_PER_WIDE_INT != 32.
7915         (reg_or_sub_cint64_operand): Likewise.
7916         (num_insns_constant_wide): Optimize sign extension.
7917         (rs6000_legitimize_address): Likewise.
7918
7919 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7920
7921         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7922         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7923
7924 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7925
7926         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7927         address calculation.
7928
7929 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7930
7931         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7932         scratch register to DImode / TImode.
7933         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7934         register used does not overlap the target.
7935
7936 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7937
7938         * Makefile.in (debug.o): Depend on debug.h.
7939         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7940         * debug.c (do_nothing_debug_hooks): Likewise.
7941         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7942         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7943         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7944         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7945         * dwarfout.c (dwarf_debug_hooks): Likewise.
7946         * integrate.c (output_inline_function): Likewise.
7947         * objc/objc-act.c (synth_module_prologue): Likewise.
7948         * sdbout.c (sdb_debug_hooks): Likewise.
7949         * toplev.c (debug_hooks): Likewise.
7950         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7951
7952 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7953
7954         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7955         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7956         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7957         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7958         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7959         * defaults.h (POINTER_SIZE): Define.
7960         * doc/tm.texi (POINTER_SIZE): Document default.
7961
7962 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7963
7964         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7965
7966 2002-03-11  Richard Henderson  <rth@redhat.com>
7967
7968         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7969         if rebuild_label_notes_after_reload.
7970
7971 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
7972
7973         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
7974         emit pic register load if "internal" visibility.
7975         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7976         (cris_expand_builtin_va_arg): Do all computations on trees.
7977
7978 2002-03-11  Richard Henderson  <rth@redhat.com>
7979
7980         * rtlanal.c: Include recog.h.
7981         (keep_with_call_p): Fix thinko.
7982         * Makefile.in (rtlanal.o): Update dependencies.
7983
7984 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
7985
7986         * genflags.c (gen_insn): Use IS_VSPACE.
7987         * genoutput.c (output_insn_data): Likewise.
7988         (process_template): Likewise.
7989
7990 2002-03-11  Richard Henderson  <rth@redhat.com>
7991
7992         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7993
7994 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7995
7996         * Makefile.in: Update.
7997         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7998         Update documentation.
7999         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
8000         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
8001
8002 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
8003
8004         * Makefile.in: Give texi2pod its input file as a command line
8005         argument, not on stdin.
8006
8007 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
8008             Daniel Berlin  <dan@dberlin.org>
8009
8010         C++ alias analysis improvement.
8011         * alias.c (record_component_aliases): Record aliases for base
8012         classes too.
8013
8014 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
8015
8016         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
8017
8018 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
8019
8020         * toplev.c (vms_fopen): Remove, not needed.
8021
8022         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
8023
8024         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
8025
8026         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
8027         for FP, already done later.
8028
8029         * toplev.c (debug_args): Add entry for VMS_DEBUG.
8030         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
8031
8032 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
8033
8034         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
8035         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
8036         LARGEST_EXPONENT_IS_NORMAL for the given mode.
8037         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
8038         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
8039         (ediv, emul, eldexp, esqrt): Likewise.
8040         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
8041         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
8042         (saturate): New function.
8043         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
8044         (make_nan): Use a saturation value instead of a NaN if
8045         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
8046         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
8047         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
8048         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
8049         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
8050         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
8051         !ROUND_TOWARDS_ZERO.
8052         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
8053         (ROUND_TOWARDS_ZERO): Document.
8054
8055 2002-03-11  Andreas Jaeger  <aj@suse.de>
8056
8057         * cfg.c (dump_flow_info): Remove unused variable.
8058
8059 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
8060
8061         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
8062         computations on trees.
8063
8064 2002-03-10  Richard Henderson  <rth@redhat.com>
8065
8066         PR 5693:
8067         * reload.c (copy_replacements_1): New.
8068         (copy_replacements): Use it to recurse through the rtx.
8069
8070 2002-03-10  Richard Henderson  <rth@redhat.com>
8071
8072         * loop.c (strength_reduce): Compute number of iterations as
8073         unsigned HOST_WIDE_INT.
8074
8075 2002-03-10  Richard Henderson  <rth@redhat.com>
8076
8077         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
8078         to move away from the end of the block.
8079
8080 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
8081
8082         PR preprocessor/5899
8083         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
8084
8085 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8086
8087         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
8088
8089         * attribs.c (decl_attributes): Fix signed/unsigned warning.
8090
8091 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
8092
8093         * config/mmix/mmix.c: Improve comments.
8094         (mmix_target_asm_function_prologue): Drop variable
8095         empty_stack_frame.  Don't allocate unused slot above fp.
8096         (mmix_target_asm_function_epilogue): Mirror prologue changes.
8097         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
8098         brace in first column.
8099         (enum reg_class): Ditto.
8100         (FIRST_PARM_OFFSET): Now 0.
8101         (USER_LABEL_PREFIX): Remove #if 0:d definition.
8102
8103 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8104
8105         * combine.c (make_extraction): Fix error in last change.
8106
8107 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8108
8109         * c4x.c (c4x_fp_reglist): Const-ify.
8110         * cris.c (cris_print_operand): Likewise.
8111         * i386.c (ix86_va_arg): Likewise.
8112         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
8113         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
8114         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
8115         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
8116         * mcore.h (regno_reg_class): Likewise.
8117         * mips.c (gen_int_relational): Likewise.
8118         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
8119         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
8120         * pdp11.c (move_costs): Likewise.
8121         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
8122         * s390.c (s390_branch_condition_mnemonic, regclass_map):
8123         Likewise.
8124         * s390.h (regclass_map): Likewise.
8125         * sh.c (shift_amounts): Likewise.
8126         * sh.md (rotlsi3): Likewise.
8127
8128 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
8129
8130         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
8131         (ne0+5): Use new clobber to generate proper shift pattern.
8132         Patch by Michael Matz <matz@kde.org>.
8133
8134 2002-03-09  Andreas Schwab  <schwab@suse.de>
8135
8136         * gcc.c (validate_all_switches): Also handle `%W{...}'.
8137
8138 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
8139
8140         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
8141
8142 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
8143
8144         PR middle-end/5877
8145         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
8146         even for non-representable constants.
8147
8148 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8149
8150         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
8151         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
8152         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
8153         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
8154         (pop_function_context): Compute MAY_SHARE parameter for
8155         fixup_var_refs.
8156         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
8157         (gen_mem_addressof): Call fixup_var_refs with new parm.
8158
8159         * combine.c (make_extraction): Don't make extension of CONST_INT.
8160
8161 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
8162
8163         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
8164         in o32 and o64 ABIs.
8165         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
8166         but getting fixed-size structs passed in registers regardless of
8167         padding in o32 and o64 ABIs.
8168
8169         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
8170         offset before loading address of argument passed by transparent
8171         reference.
8172
8173 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8174
8175         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
8176
8177 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
8178
8179         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
8180         marker such that registers after it are saved.
8181
8182 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8183
8184         * sparc.c (arith_4096_operand): Fix error in last change.
8185
8186 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
8187
8188         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
8189         defaults for MEABI.
8190
8191 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
8192
8193         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
8194         vectors.
8195
8196 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
8197
8198         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
8199
8200 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8201
8202         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
8203         removed; fix return value.
8204         * combine.c (combine_instructions): Dirtify blocks where we failed to
8205         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
8206         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
8207
8208 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8209
8210         * gcse.c (insert_insn_end_bb): Fix typo in last change.
8211
8212 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
8213
8214         * recog.c (peephole2_optimize): Re-distribute EH edges.
8215
8216 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8217
8218         * expr.c (expand_expr): Use unsave lang hook.
8219         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
8220         (LANG_HOOKS_INITIALIZER): Update.
8221         * langhooks.h (struct lang_hooks): New hook unsave.
8222         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
8223         (unsave_expr_1): Remove unused lang_unsave_expr_now.
8224         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
8225         (unsave_expr_now): Remove.
8226         * tree.h (unsave_expr_now, lang_unsave,
8227         lang_unsave_expr_now): Remove.
8228         (lhd_unsave): New.
8229
8230 2002-03-08  Andreas Jaeger  <aj@suse.de>
8231
8232         * flow.c (propagate_block_delete_insn): Remove unused variable.
8233
8234 2002-03-08  Kazu Hirata  <kazu@hxi.com>
8235
8236         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
8237         insn length for memory load/store.
8238
8239 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8240
8241         * doc/install.texi (--with-libiconv-prefix): Document.
8242
8243 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
8244
8245         * doc/sourcebuild.texi: Fix typo.
8246
8247 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
8248
8249         PR c/3711
8250         * builtins.c (std_expand_builtin_va_arg): Do all computations on
8251         trees.
8252
8253 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8254
8255         * rtl.c (copy_most_rtx): Move from here ...
8256         * emit-rtl.c (copy_most_rtx): ... to here.
8257
8258 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
8259
8260         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
8261         SUBTARGET_CPP_SIZE_SPEC.
8262         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
8263
8264         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
8265
8266 2002-03-07  Matt Hiller  <hiller@redhat.com>
8267
8268         * gensupport.c (first_dir_md_include): Renamed from include;
8269         change all references.
8270         (last_dir_md_include): Renamed from last_include; change all
8271         references.
8272         (init_md_reader): Unconditionally initialize base_dir whether or
8273         not filename is a relative path.
8274
8275 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
8276
8277         * config/fp-bit.c (_unord_f2): Compile it in even if
8278         US_SOFTWARE_GOFAST is enabled.
8279
8280         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
8281         NULL_RTX.  Set all HFmode operations as NULL_RTX.
8282         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
8283         NULL_RTX, try reversing the comparison and the operands.
8284
8285 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
8286
8287         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
8288         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
8289         and MATCH_OP_DUP.
8290
8291 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
8292
8293         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8294
8295 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8296
8297         * basic-block.h (fixup_abnormal_edges): Declare.
8298         * reload1.c (fixup_abnormal_edges): New function.
8299         * reg-stack.c (convert_regs): Use it.
8300
8301         * gcse.c (insert_insn_end_bb): Handle trapping insns.
8302
8303         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8304
8305 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
8306
8307         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8308         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8309         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8310         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8311         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8312         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8313         unless x and y could be infinite.
8314         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8315         Check that the common type of both arguments is a real, even for
8316         targets without unordered comparisons.  Allow an integer argument
8317         to be compared against a real.
8318         (expand_tree_builtin): Use expand_unordered_cmp.
8319         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8320         * cse.c (fold_rtx): Likewise.  Fix indentation.
8321         * fold-const.c (fold_real_zero_addition_p): New.
8322         (fold): Use it, and the new HONOR_... macros.
8323         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8324         * jump.c (reversed_comparison_code_parts): After searching for
8325         the true comparison mode, use HONOR_NANS to decide whether it
8326         can be safely reversed.
8327         (reverse_condition_maybe_unordered): Remove IEEE check.
8328         * simplify-rtx.c (simplify_binary_operation): Use the new macros
8329         to decide which simplifications are valid.  Allow the following
8330         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8331         and (a - -b) to (a + b).
8332         (simplify_relational_operation): Use HONOR_NANS.
8333         * doc/tm.texi: Document the MODE_HAS_... macros.
8334
8335 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
8336
8337         * combine.c (simplify_comparison): If simplifying a logical shift
8338         right and compare with constant, force the comparison to unsigned.
8339
8340 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
8341
8342         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
8343
8344         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8345         -mabi=no-altivec
8346         (alt_reg_names): Remove % for vrsave.
8347
8348 2002-03-06  Richard Henderson  <rth@redhat.com>
8349
8350         PR optimization/5844
8351         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
8352         if used indicates we've already emitted one copy of an operand.
8353         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8354         (gen_split): Supply a non-null used.
8355
8356 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
8357
8358         * reload1.c (reload): Unshare all rtl after reload is done.
8359
8360         * simplify-rtx.c (simplify_plus_minus): Do not abort,
8361         but simply fail if the expression is too complex to simplify.
8362         (simplify_gen_binary): Handle simplify_plus_minus failures.
8363
8364 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
8365
8366         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8367         consistently call delete_trivially_dead_insns after CSE and GCSE;
8368         fix DFI_life dumping; do jump threading after liveness; do crossjumping
8369         after liveness2; update comment in last crossjumping.
8370         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8371
8372 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
8373
8374         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8375         after completing fast dead code elimination.
8376
8377         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8378         COMPARE operator.
8379
8380 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
8381
8382         * version.c:  Fix misplaced leading blanks on first line.
8383
8384 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
8385
8386         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8387
8388 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
8389
8390         * cfgcleanup.c (mentions_nonequal_regs): New function.
8391         (thread_jump): Use it.
8392         * toplev.c (rest_of_compilation): Run jump threading after
8393         liveness.
8394
8395 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8396
8397         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8398         patch.
8399
8400 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8401
8402         * predict.c (estimate_bb_frequencies): Do not reload the
8403         frequencies from notes.
8404
8405 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
8406
8407         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8408         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8409
8410         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8411         delete_noop_moves): Return indeger.
8412         * flow.c (ndead): New variable.
8413         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8414         BB argument; update callers.
8415         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8416         (life_analysis): Do not call purge_all_dead_edges.
8417         (update_life_info): Return number of deleted insns; print statistics.
8418         (update_life_info_in_dirty_blocks): likewise.
8419         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8420         return number of insns deleted.
8421
8422         * cse.c: Include timevar.h
8423         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8424         iterate until stabilizes; print statistics; return number of killed
8425         insns.
8426         * Makefile.in: (cse.o): Add timevar.h dependency
8427         * rtl.h (delete_trivially_dead_insns): New.
8428         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8429         * toplev.c (rest_of_compilation): Update callers.
8430
8431         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8432         (try_optimize_cfg): Do not update liveness.
8433         (cleanup-cfg): Loop until try_optimize_cfg and dead code
8434         removal stabilizes; use delete_trivially_dead_insns.
8435
8436         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8437
8438 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
8439
8440         * cppmain.c (setup_callbacks): Disable #pragma and #ident
8441         callbacks when processing assembly language.
8442
8443 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8444
8445         * pa.h (ASM_FILE_END): Define.
8446         * som.h (ASM_FILE_END): Delete.
8447
8448         * pa.c (function_arg): Don't pass floats in general registers in
8449         indirect calls if TARGET_ELF32.
8450
8451 2002-03-05  Richard Henderson  <rth@redhat.com>
8452
8453         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8454
8455 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
8456
8457         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8458
8459 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8460
8461         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8462         -r command line.  Don't hide any symbols if not building
8463         shared libgcc.
8464
8465 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
8466
8467         * cfg.c (dump_flow_info): Warn about profile mismatches.
8468         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8469         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8470
8471 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8472
8473         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8474         wide volatile memory by parts.
8475
8476 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8477
8478         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8479         is NULL.
8480
8481 2002-03-05  Richard Henderson  <rth@redhat.com>
8482
8483         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8484
8485 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8486
8487         * toplev.c (documented_lang_options): Document more
8488         language-specific options.
8489         * doc/invoke.texi (Warning Options): Correct documentation for
8490         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8491         * c-decl.c (c_decode_option): Use a table to handle warning options.
8492
8493 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
8494
8495         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8496         parameter to mmix_encode_section_info.
8497         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8498         relocatably.  Always produce ELF, not mmo if linking relocatably.
8499         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8500         first is non-zero, don't add symbol prefix.
8501         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8502         prototype accordingly.
8503
8504 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
8505
8506         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8507
8508 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
8509
8510         * configure.in: Increase required makeinfo version to 4.1.
8511         * configure: Regenerate.
8512
8513 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8514
8515         * .cvsignore: Remove *.info* and genrtl*; these files are generated
8516         elsewhere now.
8517
8518 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
8519
8520         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8521         * doc/invoke.texi: Fix @math uses.
8522
8523 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8524
8525         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8526         removal
8527
8528 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
8529
8530         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8531         (powerpc-*-eabisimaltivec*): Same.
8532
8533         * config/rs6000/t-ppcendian: New.
8534
8535 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8536
8537         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8538         nonimmediate_src_operand and nonimmediate_lsrc_operand to
8539         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8540
8541 2002-03-03  Richard Henderson  <rth@redhat.com>
8542
8543         * toplev.c (rest_of_decl_compilation): Revert last two changes.
8544
8545 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
8546
8547         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8548         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8549         tree.c, config/m68k/m68k.c:
8550         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8551         REAL_ARITHMETIC blocks unconditional.  Delete some further
8552         #ifdef blocks predicated on REAL_ARITHMETIC.
8553         * flags.h, toplev.c: Delete remaining references to
8554         flag_pretend_float.
8555
8556         * doc/invoke.texi: Remove documentation of -fpretend-float.
8557         * doc/tm.texi: Describe the various REAL_* macros as provided by
8558         real.h, not by the target configuration files.
8559
8560         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8561         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8562         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8563         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8564         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8565         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8566         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8567         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8568         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8569         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8570         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8571         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8572         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8573         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8574         config/xtensa/xtensa.h:
8575         Do not define, undefine, or mention in comments any of
8576         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8577         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8578         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8579         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8580         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8581         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8582         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8583         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8584         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8585
8586 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8587
8588         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8589         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8590         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8591         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8592         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8593         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8594         Delete.
8595         * defaults.h (BITS_PER_WORD): Define.
8596         * doc/tm.texi (BITS_PER_WORD): Document default value.
8597
8598         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8599         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8600         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8601
8602 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8603
8604         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8605         lieu of explicit sizeof/sizeof.
8606         * i386.c (override_options, ix86_init_mmx_sse_builtins,
8607         ix86_expand_builtin): Likewise.
8608         * mips.c (mips_add_gc_roots): Likewise.
8609         * mmix.c (mmix_output_condition): Likewise.
8610         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8611         altivec_init_builtins): Likewise.
8612         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8613         * cppexp.c (Nsuff, parse_number): Likewise.
8614         * cppinit.c (builtin_array_end): Likewise.
8615         * gcc.c (n_default_compilers, process_command): Likewise.
8616         * genpreds.c (output_predicate_decls): Likewise.
8617         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8618         * lcm.c (N_ENTITIES): Likewise.
8619         * stor-layout.c (set_sizetype): Likewise.
8620
8621 2002-03-03  Richard Henderson  <rth@redhat.com>
8622
8623         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8624         for types or labels.
8625
8626 2002-03-03  Richard Henderson  <rth@redhat.com>
8627
8628         * c-decl.c (start_decl): Initialized variables are not common.
8629
8630 2002-03-02  Per Bothner  <per@bothner.com>
8631
8632         * gcc.c (option_map):  Suport new --bootclasspath option.
8633         --CLASSPATH is now just an alias for --classpath.
8634
8635 2002-03-02  Richard Henderson  <rth@redhat.com>
8636
8637         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8638         load if "internal" visibility.
8639         * doc/extend.texi: Document visibility meanings.
8640
8641 2002-03-02  Richard Henderson  <rth@redhat.com>
8642
8643         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8644         to functions as well.
8645
8646 2002-03-02  Richard Henderson  <rth@redhat.com>
8647
8648         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8649         (handle_visibility_attribute): Don't call assemble_visibility.
8650         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8651         without asmspec.  Invoke assemble_alias when needed.
8652         * varasm.c (maybe_assemble_visibility): New.
8653         (assemble_start_function, assemble_variable, assemble_alias): Use it.
8654
8655 2002-03-02  Richard Henderson  <rth@redhat.com>
8656
8657         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8658         invoke ENCODE_SECTION_INFO with first call flag.
8659
8660         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8661         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8662         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8663         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8664         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8665         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8666         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8667         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8668         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8669         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8670         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8671         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8672         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8673         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8674         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8675         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8676         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8677         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8678         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8679         config/sh/sh.h, config/sparc/sparc.h,
8680         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8681         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8682         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8683         FIRST argument.  As needed, examine it and do nothing.
8684
8685         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8686         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8687         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8688
8689         * config/arm/t-pe (pe.o): Add dependencies.
8690
8691 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8692
8693         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8694         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8695         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8696         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8697         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8698         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8699         * defaults.h (BITS_PER_UNIT): Define.
8700         * doc/tm.texi (BITS_PER_UNIT): Document default value.
8701
8702 2002-03-02  Kazu Hirata  <kazu@hxi.com>
8703
8704         * config/h8300/h8300-protos.h: Add a prototype for
8705         compute_a_shift_length.
8706         * config/h8300/h8300.c (h8300_asm_insn_count): New.
8707         (compute_a_shift_length): Likewise.
8708         (h8300_adjust_insn_length): Do not adjust insn length of shift
8709         insns.
8710         * config/h8300/h8300.md (anonymous shift patterns): Use
8711         compute_a_shift_length.
8712
8713 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8714
8715         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8716         trunc_int_for_mode.
8717
8718         * emit-rtl.c (offset_address): Call update_temp_slot_address.
8719
8720 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8721
8722         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8723         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8724         * flags.h (flag_zero_initialized_in_bss): Declare.
8725         * toplev.c (flag_zero_initialized_in_bss): New flag.
8726         (lang_independent_options): Add flag_zero_initialized_in_bss.
8727         * tree.c (initializer_zerop): New function.
8728         * tree.h (initializer_zerop): Declare.
8729         * varasm.c (assemble_variable): If we can emit bss, put zero
8730         initializers in the bss section.
8731
8732 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
8733
8734         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8735         like more than one symbol per .weak directive.
8736
8737 2002-03-01  Richard Henderson  <rth@redhat.com>
8738
8739         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8740         adjust argument_pointer by pretend_args_size.
8741         (ia64_va_start): Adjust va_start address by -pretend_args_size.
8742
8743 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8744
8745         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8746
8747 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
8748
8749         * toplev.c (rest_of_compilation): Delete dead jumptables before
8750         loop.
8751         * flow.c (delete_dead_jumptables): Make global.
8752         * rtl.h (delete_dead_jumptables): Declare.
8753
8754 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
8755
8756         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8757         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8758         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8759
8760 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8761
8762         * config/h8300/h8300-protos.h: Fix formatting.
8763         * config/h8300/h8300.c: Likewise.
8764         * config/h8300/h8300.h: Likewise.
8765
8766 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8767
8768         * config/h8300/h8300.c (print_operand): Support 16-bit
8769         constant addresses.
8770         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8771
8772 2002-02-28  Richard Henderson  <rth@redhat.com>
8773
8774         * expmed.c (store_bit_field): Prevent generation of CONCATs;
8775         pun complex values as integers; use gen_lowpart instead of
8776         gen_rtx_SUBREG.
8777         (extract_bit_field): Likewise.
8778
8779 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
8780             David Edelsohn  <edelsohn@gnu.org>
8781
8782         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8783         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8784         (SUPPORTS_WEAK): Likewise.
8785         * output.h (add_weak): Add tree param.
8786         * varasm.c (add_weak): Likewise.  Save decl.
8787         (struct weak_syms): Add decl field.
8788         (mark_weak_decls): New function.
8789         (init_varasm_once): ggc_add_root mark_weak_decls.
8790         (assemble_start_function): Use ASM_WEAKEN_DECL.
8791         (assemble_variable): Likewise.
8792         (assemble_alias): Likewise.
8793         (declare_weak): Pass decl to add_weak.
8794         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8795         (remove_from_pending_weak_list): Declare and define for
8796         ASM_WEAKEN_DECL.
8797         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8798         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8799         * defaults.h (SUPPORTS_WEAK): Likewise.
8800         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8801         .weak for code sym.  Do emit .size for descriptor sym.
8802         (ASM_DECLARE_FUNCTION_SIZE): Define.
8803         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8804         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
8805         .lglobl unless TARGET_XCOFF.  Formatting fixes.
8806         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8807         .weak for code sym.
8808         (HANDLE_PRAGMA_WEAK): Remove.
8809         (ASM_WEAKEN_LABEL): Remove.
8810         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8811
8812 2002-03-01  Jason Merrill  <jason@redhat.com>
8813
8814         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8815         (TARGET_EXPR_CLEANUP): New macro.
8816
8817 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
8818
8819         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8820         to take ptr_extend into account as third type of extension.
8821         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8822         fields used by SUBREG_PROMOTED_UNSIGNED_P.
8823         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8824         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8825         * calls.c (precompute_arguments): Use new macro.
8826         (expand_call): Ditto.
8827         * combine.c (nonzero_bits): Ditto.
8828         (record_promoted_value): Ditto.
8829         * expr.c (store_expr): Ditto.
8830         (expand_expr): Ditto.
8831         * function.c (assign_parms): Ditto.
8832
8833 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
8834
8835         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8836         override -shared and -shared-libgcc.
8837
8838 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
8839
8840         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8841         of "ultrasparc".
8842         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
8843         to be broken.
8844
8845 2002-02-28  Richard Henderson  <rth@redhat.com>
8846
8847         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8848         4 cycle latency from MM producers.
8849         (ia64_internal_sched_reorder): Likewise with pipeline flush.
8850
8851 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8852
8853         * mklibgcc.in: Don't use GNU make extension.
8854
8855 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8856
8857         * c-parse.in (STATIC): New terminal.
8858         (scspec): New non-terminal.  Update productions accordingly.
8859         (program): Remove bogus ifc / end ifc.
8860         (array_declarator): Simplify production using STATIC.
8861
8862 2002-02-28  Jim Meyering  <meyering@lucent.com>
8863
8864         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8865         \a still means TARGET_BELL.
8866
8867 2002-02-28  Richard Henderson  <rth@redhat.com>
8868
8869         * haifa-sched.c (sched_emit_insn): New.
8870         (schedule_block): Use last_scheduled_insn to track last insn.
8871         * sched-int.h (sched_emit_insn): Prototype.
8872         * config/ia64/ia64.c (last_issued): Remove.
8873         (ia64_variable_issue): Don't set it.
8874         (nop_cycles_until): Use sched_emit_insn.
8875
8876 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
8877
8878         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8879         extended constants.
8880
8881 2002-02-28  Kazu Hirata  <kazu@hxi.com>
8882
8883         * config/h8300/h8300.c: Fix formatting.
8884         * config/h8300/h8300.h: Likewise.
8885
8886 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8887
8888         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8889         which may overwrite the high byte of the frame pointer.
8890
8891 2002-02-28  Bo Thorsen  <bo@suse.de>
8892
8893         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8894         (STARTFILE_SPEC): Add 64 bit files.
8895         (ENDFILE_SPEC): Likewise.
8896
8897 2002-02-28  Jason Merrill  <jason@redhat.com>
8898
8899         * c-decl.c (finish_function): Only warn about missing return
8900         statement with -Wreturn-type.
8901
8902 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8903
8904         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8905
8906         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8907         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8908
8909 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8910
8911         * basic-block.h (BB_REACHABLE): Renumber.
8912         (BB_DIRTY, BB_NEW): New flags.
8913         (clear_bb_flags): Declare.
8914         (update_life_info_in_dirty_blocks): Declare.
8915         * cfg.c (clear_bb_flags): New function.
8916         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8917         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8918         reorder_insns, emit_insn_after): Mark block as dirty.
8919         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8920         (update_life_info_in_dirty_blocks): New function.
8921         * recog.c (apply_change_group): Dirtify block.
8922
8923         * cse.c (cse_insn): Reorder emitting of jump insn to keep
8924         cfg consistent.
8925         * gcse.c (delete_null_pointer_checks): Likewise.
8926
8927         * toplev.c (dump_file_index): Move cse2 after bp,
8928         add DFI_null
8929         (dump_file_info): Similary.
8930         (rest_of_compilation): Avoid most of CFG rebuilds;
8931         do first if converision after null pointer checks, do cse2
8932         after branch prediction; avoid full liveness rebuild after
8933         initializing subregs.
8934         * invoke.texi (-d options): Document -du, renumber.
8935
8936         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8937         (notice_new_block): Do not set BB_UPDATE_LIFE.
8938         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8939          merge_blocks_move_successor_nojumps, merge_blocks,
8940          try_crossjump_to_edge): Likewise.
8941         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8942         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8943         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8944         (merge_of_block): Do not use life_data_ok.
8945         (find_if_case_1): Do not use SET_UPDATE_LIFE.
8946         (if_convert): Use BB_DIRTY mechanizm to update life.
8947         * lcm.c (optimize_mode_switching): Update
8948         update_life_info_in_dirty_blocks
8949
8950 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8951
8952         * Makefile.in (integrate.o): Update.
8953         * c-decl.c (copy_lang_decl): Rename.
8954         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8955         * integrate.c: Include langhooks.h.
8956         (copy_decl_for_inlining): Update to use langhook.
8957         * langhooks-def.h (lhd_do_nothing_t,
8958         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8959         (LANG_HOOKS_INITIALIZER): Update.
8960         * langhooks.c (lhd_do_nothing_t): New.
8961         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8962         * tree.h (copy_lang_decl): Remove.
8963 objc:
8964         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8965
8966 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
8967
8968         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8969         POST_DEC, and POST_MODIFY.
8970
8971 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8972
8973         * c-typeck.c (digest_init): Remove unused parameter; all
8974         callers changed.
8975
8976 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
8977
8978         * expmed.c (expand_shift): Correctly test for low part of a
8979         subreg.
8980
8981 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
8982
8983         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8984         insn UIDs with insn addresses.
8985
8986 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8987
8988         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8989         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8990         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8991         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8992         gcc.c, toplev.c: Delete code implementing -traditional mode.
8993
8994         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8995         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8996         Document removal of -traditional mode for compilation, and
8997         remove documentation only relevant to that mode.
8998
8999         * config/nextstep.h, config/ptx4.h, config/svr4.h,
9000         config/convex/convex.h, config/d30v/d30v.h,
9001         config/i386/dgux.h, config/i386/osf1elf.h,
9002         config/i386/osfelf.h, config/i386/osfrose.h,
9003         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
9004         config/m68k/hp310.h, config/m88k/dgux.h,
9005         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
9006         config/m88k/m88k.h, config/m88k/openbsd.h,
9007         config/mips/abi64.h, config/mips/osfrose.h,
9008         config/mips/svr4-5.h, config/mips/svr4-t.h,
9009         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9010         config/stormy16/stormy16.h: Remove all references to
9011         -traditional from target specs.  Delete all mention of the
9012         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
9013         delete a couple of commented-out definitions of
9014         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
9015         to -traditional.
9016
9017         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
9018         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
9019
9020 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
9021
9022         * mklibgcc.in: Don't use \n in a line subject to
9023         interpretation by echo.
9024
9025 2002-02-27  Graham Stott  <grahams@redhat.com>
9026
9027         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
9028         Constify NAME.
9029
9030         * loop.c (prescan_loop): Handle PARALLEL.
9031
9032         * unroll.c (loop_iterations): Return 0 if the add_val for
9033         a BIV is REG.
9034
9035         * final.c (output_operand_lossage): Constify PFX_STR.
9036
9037         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
9038
9039 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9040
9041         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
9042         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
9043
9044 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
9045
9046         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9047
9048 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
9049
9050         * cpplex.c (_cpp_lex_token): Handle directives in macro
9051         arguments.
9052         * cpplib.c (_cpp_handle_directive): Save and restore state
9053         if parsing macro args when entering a directive.
9054         * cppmacro.c (collect_args): No need to handle directives
9055         in macro arguments.
9056         (enter_macro_context, replace_args): Use the original macro
9057         definition in case it was redefined whilst collecting arguments.
9058 doc:
9059         * cpp.texi: Update.
9060
9061 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
9062
9063         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
9064         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
9065         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
9066         method on AIX.
9067         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
9068         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
9069         (load_toc_v4_PIC_2): Same.
9070
9071 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
9072
9073         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
9074
9075 2002-02-26  Richard Henderson  <rth@redhat.com>
9076
9077         * config/alpha/alpha.md (ashldi_se): Re-enable.
9078
9079 2002-02-26  Richard Henderson  <rth@redhat.com>
9080
9081         * config/alpha/alpha.c (alpha_encode_section_info): Examine
9082         MODULE_LOCAL_P; improve commentary.
9083
9084 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
9085
9086         * doc/cpp.texi: Clarify documentation of relationship between
9087         #line and #include.
9088
9089 2002-02-26  Kazu Hirata  <kazu@hxi.com>
9090
9091         * config/h8300/h8300-protos.h: Update the prototype for
9092         compute_logical_op_length.  Add the prototype for
9093         compute_logical_op_cc.
9094         * config/h8300/h8300.c (compute_logical_op_length): Figure out
9095         code from operands.
9096         (compute_logical_op_cc): New.
9097         * config/h8300/h8300.md: Combine all the logical op patterns
9098         in HImode and SImode.  Use compute_logical_op_cc.
9099
9100 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
9101
9102         * config/i386/i386.c (print_operand): Don't append ATT-style
9103         length suffixs to x87 opcodes when in Intel mode.
9104
9105 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
9106
9107         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
9108         (init_emit_once): Update calls.
9109         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
9110         (init_syntax_once): Prototype.
9111
9112 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9113
9114         * pa-linux.h (LIB_SPEC): Update definition.
9115         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9116
9117 2002-02-26  Richard Henderson  <rth@redhat.com>
9118
9119         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
9120         if we emitted a stop bit.
9121
9122 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
9123
9124         * configure.in (libgcc_visibility): Substitute.
9125         * configure: Rebuilt.
9126         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
9127         defined symbols .hidden.
9128
9129 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
9130
9131         * attribs.c (c_common_attribute_table): Add visibility.
9132         (handle_visibility_attribute): New function.
9133         * varasm.c (assemble_visibility): New function.
9134         * output.h (assemble_visibility): Add prototype.
9135         * tree.h (MODULE_LOCAL_P): Define.
9136         * crtstuff.c (__dso_handle): Use visibility attribute.
9137         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
9138         for MODULE_LOCAL_P symbols too.
9139         * config/ia64/ia64.c (ia64_encode_section_info): Handle
9140         MODULE_LOCAL_P symbols the same way as local symbols.
9141         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
9142         into .sdata/.sbss by the user.
9143         * doc/extend.texi (Function Attributes): Document visibility
9144         attribute.
9145
9146 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
9147
9148         PR debug/5770
9149         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
9150         STRING_CST initializer spanning the whole variable without
9151         embedded zeros.
9152         If expand_expr returned MEM, don't use it.
9153
9154 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
9155
9156         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
9157         generate a die for the lexical block.
9158
9159 2002-02-26  Kazu Hirata  <kazu@hxi.com>
9160
9161         * config/h8300/h8300-protos.h: Add a prototype for
9162         compute_logical_op_length.
9163         * config/h8300/h8300.c (compute_logical_op_length): New.
9164         * config/h8300/h8300.md (anonymous logical patterns): Use
9165         compute_logical_op_length for length.
9166
9167 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9168
9169         * dwarf2out.c (modified_type_die): Do not call type_main_variant
9170         for vectors.
9171         (gen_type_die): Same.
9172
9173         * attribs.c (handle_vector_size_attribute): Set debug information.
9174
9175 2002-02-26  Daniel Egger  <degger@fhm.edu>
9176
9177         * config/rs6000/rs6000.md: Swap define_insn attributes to
9178         fix incorrect generation of merge high instructions instead
9179         of merge low.
9180
9181 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9182
9183         * c-typeck.c (really_start_incremental_init): Use
9184         bitsize_zero_node for vectors.
9185
9186 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9187
9188         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
9189         ("*set_vrsave_internal"): Same.
9190
9191 2002-02-25  Richard Henderson  <rth@redhat.com>
9192
9193         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
9194         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
9195
9196 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9197
9198         PR target/5755
9199         * config/i386/i386.c (ix86_return_pops_args): Only pop
9200         fake structure return argument if it was passed on the stack.
9201
9202 2002-02-25  Jason Merrill  <jason@redhat.com>
9203
9204         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
9205         RESULT_DECL.
9206
9207 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
9208
9209         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
9210         link with shared_name only.
9211         * doc/invoke.texi (Link Options): Document new behavior.
9212
9213 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
9214
9215         * c-typeck.c (push_init_level): Handle vectors.
9216
9217 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
9218
9219         * config/sparc/sparc.c (const64_high_operand): Zero-extend
9220         operands of SPARC_SETHI_P.
9221         (input_operand): Likewise.
9222         (sparc_emit_set_const32): Likewise.
9223         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
9224         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9225         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
9226         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
9227         (movdi_insn_sp64_vis): Likewise.
9228         (movdi split, movdf split): Use SETHI32.
9229         * doc/md.texi: Document SPARC constraints L, M and N.
9230
9231 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
9232
9233         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
9234         ("*set_vrsave_internal"): use mfspr for Darwin.
9235
9236         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
9237         gen_get_vrsave_internal.
9238
9239 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9240
9241         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
9242
9243 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9244
9245         * cpplex.c (cpp_interpret_charconst): Get signedness or
9246         otherwise of wide character constants correct.
9247         * cppexp.c (lex): Get signedness of wide charconsts correct.
9248
9249 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9250
9251         * optabs.c (widen_operand): Only call convert_modes for
9252         promoted SUBREG if signedness matches.
9253         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
9254
9255 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9256
9257         * cpplib.c (glue_header_name): Use local buffer to build up
9258         header name.
9259
9260 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9261
9262         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
9263
9264 2002-02-23  Kazu Hirata  <kazu@hxi.com>
9265
9266         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
9267         H8/300[HS] separately.
9268         * config/h8300/h8300.md: Remove the early clobber constraint
9269         from bit field patterns.
9270
9271 2002-02-23  Kazu Hirata  <kazu@hxi.com>
9272
9273         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
9274         register_operand.
9275         (mulhisi3): Likewise.
9276         (umulqisi3): Likewise.
9277         (umulhisi3): Likewise.
9278
9279 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9280
9281         * cppinit.c (output_deps): Correct test for stdout output.
9282         (init_dependency_output): Cure warning.
9283
9284 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9285
9286         * expr.c (store_expr): When converting expression to promoted
9287         equivalent type, allow using SUBREG_REG of TARGET as the target
9288         of the expansion of EXP.
9289         * loop.c (basic_induction_var, case SUBREG): Always look inside.
9290         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
9291         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
9292         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
9293         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9294
9295 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
9296
9297         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9298         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9299         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9300
9301 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
9302
9303         PR optimization/5747
9304         * loop.c (scan_loop): Update reg info if move_movables created new
9305         pseudos.
9306
9307 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
9308
9309         * gcc.c (init_gcc_spec): Revert last change.
9310
9311 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
9312
9313         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9314         gpc_reg_operand constraint.
9315
9316 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
9317
9318         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9319         Simplify comparison of `low'.
9320         (add_operand): Fix formatting.
9321         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
9322         (mask_operand): Disallow mask to wrap in 64-bit mode.
9323         (rs6000_stack_info): Remove redundant test setting push_p.
9324         (output_toc): Fix formatting.
9325         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9326         cc_reg_not_cr0_operand constraint.
9327         (booldi3, boolcdi3 splitters): Same.
9328
9329 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
9330
9331         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
9332
9333 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
9334
9335         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9336         gcc invoked with -shared-libgcc.
9337
9338 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
9339
9340         PR c++/5748
9341         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9342         decl if any of elements was TREE_USED.
9343
9344 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
9345
9346         * config/sparc/sol2.h: Don't include sys/mman.h.
9347         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9348         (arith_4096_operand): Don't throw high bits away.
9349         (const64_operand): Take sign extension of CONST_INTs into account.
9350         (const64_high_operand, sparc_emit_set_const32): Likewise.
9351         (GEN_HIGHINT64): Likewise.
9352         (sparc_emit_set_const64_quick1): Likewise.
9353         (const64_is_2insns): Likewise.
9354         (print_operand): Use trunc_int_for_mode for sign extension.
9355         * config/sparc/sparc.h (SMALL_INT32): Likewise.
9356         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9357         chars.  Assume CONST_INT is already properly sign-extended.
9358         (movdi split): Sign-extend each SImode part.
9359         (andsi3 split): Don't mask high bits off, so that result
9360         remains properly sign-extend.
9361         (iorsi3 split): Likewise.
9362         (xorsi3 split): Likewise.
9363
9364 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
9365
9366         * fold-const.c (fold): Fix typo in comments.
9367
9368 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
9369
9370         * Makefile.in (langhooks.o): Update dependencies.
9371
9372 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
9373
9374         * langhooks.c: Include flags.h.
9375
9376 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
9377
9378         * testsuite/gcc.dg/attr-alwaysinline.c: New.
9379
9380         * c-common.c (c_common_post_options): Set inline trees by
9381         default.
9382
9383         * doc/extend.texi (Function Attributes): Document always_inline
9384         attribute.
9385         Update documentation about inlining when not optimizing.
9386
9387         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9388
9389         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9390         unless DECL_ALWAYS_INLINE.
9391
9392         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9393         unless DECL_ALWAYS_INLINE.
9394         (c_disregard_inline_limits): Disregard if always_inline set.
9395
9396         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9397         Disregard if always_inline set.
9398         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9399         unless DECL_ALWAYS_INLINE.
9400
9401         * attribs.c (handle_always_inline_attribute): New.
9402         (c_common_attribute_table): Add always_inline.
9403
9404         * config/rs6000/altivec.h: Add prototypes for builtins
9405         requiring the always_inline attribute.
9406
9407 2002-02-21  Eric Christopher  <echristo@redhat.com>
9408
9409         * expmed.c (store_bit_field): Try to simplify the subreg
9410         before generating a new one when when the mode size of
9411         value is less than maxmode.
9412
9413 2002-02-21  Richard Henderson  <rth@redhat.com>
9414
9415         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9416         than gen_rtx_PLUS to form the sum.
9417         * explow.c (force_reg): Rearrange to not allocate new pseudo
9418         when force_operand returns a register.
9419         * expr.c (expand_assignment): Allow offset_rtx expansion to
9420         return a sum.  Do not force addresses into registers.
9421         (expand_expr): Likewise.
9422         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9423         to canonicalize arithmetic that didn't simpify.
9424         (simplify_plus_minus): New argument force; update
9425         all callers.  Don't split CONST unless we can do something with it,
9426         and wouldn't lose the constness of the operands.
9427
9428         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9429         that we generated earlier.
9430
9431 2002-02-21  Tom Tromey  <tromey@redhat.com>
9432
9433         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9434         (output_line_info): Use constant `1', with a long explanatory
9435         comment.
9436         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9437
9438 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
9439
9440         * jump.c (redirect_jump): If old label has no UID, don't try to
9441         delete it.
9442
9443 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
9444
9445         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9446         If input is constant, do shifts at compile time.
9447
9448 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9449
9450         * doc/extend.texi: Fix some more overfull hboxes.
9451
9452 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9453
9454         PR optimization/4994
9455         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9456         register moves.
9457
9458 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9459
9460         PR c++/4574
9461         * expr.h (expand_and): Add mode argument.
9462         * expmed.c (expand_and): Add mode argument.
9463         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9464         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9465         * except.c (expand_builtin_extract_return_addr): Likewise.
9466         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9467         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9468         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9469         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9470         * config/c4x/c4x.md: Use GEN_INT (x) instead of
9471         gen_rtx (CONST_INT, VOIDmode, x).
9472
9473 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9474
9475         PR c/4697:
9476         * stmt.c (warn_if_unused_value): Move side effects test once more.
9477
9478 2002-02-20  Torbjorn Granlund  <tege@swox.com>
9479
9480         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9481         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9482
9483 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
9484
9485         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9486         SUBREG or ZERO_EXTEND.
9487
9488 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
9489
9490         * sh.h (current_function_anonymous_args): Remove.
9491         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9492         of current_function_varargs and current_function_stdarg is set.
9493         * sh.c (sh_expand_prologue): Check current_function_varargs /
9494         current_function_stdarg / TARGET_SH5 instead of
9495         current_function_anonymous_args.
9496
9497         * sh64.h (TARGET_VERSION): Define.
9498
9499 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
9500
9501         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9502         VRSAVE_REGNO on TARGET_ALTIVEC.
9503
9504 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
9505
9506         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9507         bits of SImode const_int.
9508         (includes_rshift_p): Likewise.
9509         (print_operand): Call mask_operand and mask64_operand with correct
9510         mode.
9511         (rs6000_output_function_epilogue): Pad traceback table to word.
9512         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9513         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9514         mask64_operand with correct mode.
9515         (FUNCTION_ARG_REGNO_P): Correct parentheses.
9516
9517 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9518
9519         PR debug/4461
9520         * varasm.c (get_pool_constant_mark): New.
9521         * rtl.h (get_pool_constant_mark): Add prototype.
9522         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9523         be represented if it has not been output.
9524
9525 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9526
9527         * combine.c (do_SUBST): Sanity check substitutions of
9528         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9529         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9530         CONST_INT into its operand.
9531         (known_cond): Likewise, for ZERO_EXTEND.
9532         * simplify-rtx.c (simplify_unary_operation): Fix condition to
9533         allow for simplification of wide modes.  Reject CONST_INTs in
9534         ZERO_EXTEND when their actual mode is not given.
9535
9536 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9537
9538         * c-decl.c (pushdecl): If no global declaration is found for an
9539         extern declaration in block scope, try a limbo one.
9540
9541 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9542
9543         PR c++/4401
9544         * c-common.c (pointer_int_sum): Moved from...
9545         * c-typeck.c (pointer_int_sum): ...here.
9546         * c-common.h (pointer_int_sum): Add prototype.
9547
9548 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9549
9550         PR c++/5713
9551         * c-decl.c (duplicate_decls): Return 0 if issued error about
9552         redeclaration.
9553
9554 2002-02-20  Roger Sayle  <roger@eyesopen.com>
9555             Jakub Jelinek  <jakub@redhat.com>
9556
9557         PR c/4389
9558         * tree.c (host_integerp): Ensure that the constant integer is
9559         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9560         when pos is zero or non-zero respectively.  Clarify comment.
9561         * c-format.c (check_format_info_recurse): Fix host_integerp
9562         usage; the pos argument should be zero when assigning to a
9563         signed HOST_WIDE_INT.
9564
9565 2002-02-20  Richard Henderson  <rth@redhat.com>
9566
9567         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9568         of the operand, rather than assuming TImode.
9569         (ix86_expand_binop_builtin): Cope with commutative patterns
9570         using nonimmediate_operand for both operands.
9571         (ix86_expand_timode_binop_builtin): Likewise.
9572         (ix86_expand_store_builtin): Validate operand 1.
9573         (ix86_expand_unop1_builtin): Likewise.
9574
9575 2002-02-20  Philip Blundell  <philb@gnu.org>
9576
9577         PR 5705
9578         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9579
9580 2002-02-20  Richard Henderson  <rth@redhat.com>
9581
9582         PR c/5615
9583         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9584
9585 2002-02-20  Tom Tromey  <tromey@redhat.com>
9586
9587         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9588         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9589         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9590         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9591         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9592         unconditionally.
9593
9594 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9595
9596         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9597           for (const_int 0) in X not just INTVAL.
9598
9599 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9600
9601         * doc/extend.texi: Avoid or reduce overfull hboxes.
9602
9603 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
9604
9605         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9606         operations if the field does not start at a mode boundary.
9607
9608 2001-02-20      Joel Sherrill <joel@OARcorp.com>
9609
9610         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9611         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9612         Also done for -Acpu and -Amachine.
9613
9614 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9615
9616         * cppinit.c (init_dependency_output): Take deps output file
9617         from -o if none given with -MF.  Suppress normal output.
9618         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9619         * doc/cpp.texi, doc/invoke.texi: Update.
9620
9621 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9622
9623         * toplev.c (output_quoted_string): Write unprintable
9624         characters with octal escapes.
9625
9626 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9627
9628         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9629         really_call_used[VRSAVE_REGNO] if not Altivec.
9630
9631 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
9632
9633         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9634         MODE_MASK.
9635         (constant_pool_expr_1): Fix formatting.
9636         (rs6000_legitimize_reload_address): Likewise.
9637
9638 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9639
9640         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9641         now that we have one.
9642
9643 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9644
9645         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
9646         end of first block of bitfields (which was only seven bits);
9647         rename dummy to unused_1; remove comment which is no longer true.
9648
9649 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9650
9651         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9652
9653 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9654
9655         PR 5399
9656         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9657         if generating PIC.
9658
9659         PR 5054
9660         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9661         arm_is_longcall_p rather than inspecting call-type cookie
9662         directly.
9663         (call_value_insn) [TARGET_THUMB]: Likewise.
9664
9665 2002-02-19  Graham Stott  <grahams@redhat.com>
9666
9667         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9668
9669 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9670
9671         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9672         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9673         (FP_SAVE_INLINE): Delete.
9674
9675         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9676         * config/rs6000/eabi.asm: Remove ABI save restore routines.
9677         * config/rs6000/t-ppccomm: Build crtsavres.o.
9678         * config/rs6000/crtsavres.asm: New file.
9679
9680 2002-02-19  Philip Blundell  <philb@gnu.org>
9681
9682         * config/arm/arm.c (use_return_insn): Don't reject interrupt
9683         functions.
9684         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9685         (output_return_instruction): Allow interrupt functions to return with
9686         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
9687         (arm_expand_prologue): Subtract 4 before stacking LR in an
9688         interrupt function.
9689
9690 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9691
9692         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9693         decl, not just FUNCTION_DECL.
9694         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9695         (arm_assemble_integer): Likewise.
9696         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9697         marked local.
9698
9699 2002-02-19  matthew green  <mrg@eterna.com.au>
9700
9701         * config.gcc (sparc-*-netbsdelf*): Enable target.
9702         (sparc64-*-netbsd*): New target.
9703         * config/sparc/netbsd-elf.h: New file.
9704         * config/sparc/t-netbsd64: New file.
9705
9706 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9707
9708         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9709
9710 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
9711
9712         * doc/invoke.texi: explicitly list the style guidelines that
9713         -Weffc++ checks for.
9714
9715 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
9716
9717         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9718
9719 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9720
9721         PR other/5718
9722         * gcc.c (cpp_unique_options): Treat -o as indicating object file
9723         only if not -E.  If -E, pass -o through to the preprocessor.
9724
9725 2002-02-19  Kazu Hirata  <kazu@hxi.com>
9726
9727         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9728         register number with an appropriate macro.
9729
9730 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9731
9732         * doc/rtl.texi (Constants): Close @code tag.
9733
9734 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
9735
9736         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9737         ("mmx_uavgv4hi3"): Same.
9738         ("pmulhrwv4hi3"): Same.
9739
9740         * tree-inline.c (walk_tree): Handle vectors.
9741
9742         * c-common.c (constant_expression_warning): Handle vectors.
9743         (overflow_warning): Same.
9744
9745         * sched-deps.c (sched_analyze_2): Handle vectors.
9746
9747         * rtlanal.c (rtx_unstable_p): Handle vectors.
9748         (rtx_varies_p): Same.
9749         (count_occurrences): Same.
9750         (regs_set_between_p): Same.
9751         (modified_between_p): Same.
9752         (modified_in_p): Same.
9753         (volatile_insn_p): Same.
9754         (volatile_refs_p): Same.
9755         (side_effects_p): Same.
9756         (may_trap_p): Same.
9757         (inequality_comparisons_p): Same.
9758         (replace_regs): Same.
9759         (computed_jump_p_1): Same.
9760
9761         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9762         argument.
9763         (inner_mode_array): New.
9764         (copy_rtx): Handle vectors.
9765         (copy_most_rtx): Same.
9766         (rtx_equal_p): Same.
9767         (get_mode_alignment): Adjust for vectors.
9768
9769         * resource.c (mark_referenced_resources): Handle vectors.
9770         (mark_set_resources): Same.
9771
9772         * reload1.c (eliminate_regs): Handle vectors.
9773         (elimination_effects): Same.
9774         (scan_paradoxical_subregs): Same.
9775
9776         * reload.c (subst_reg_equivs): Handle vectors.
9777
9778         * regrename.c (scan_rtx): Handle vectors.
9779
9780         * regclass.c (reg_scan_mark_refs): Handle vectors.
9781
9782         * recog.c (find_single_use_1): Handle vectors.
9783
9784         * local-alloc.c (equiv_init_varies_p): Handle vectors.
9785         (contains_replace_regs): Same.
9786         (memref_referenced_p): Same.
9787
9788         * integrate.c (copy_rtx_and_substitute): Handle vectors.
9789         (subst_constants): Same.
9790
9791         * genattrtab.c (attr_copy_rtx): Handle vectors.
9792         (encode_units_mask): Same.
9793         (clear_struct_flag): Same.
9794         (count_sub_rtxs): Same.
9795
9796         * gcse.c (want_to_gcse_p): Handle vectors.
9797         (oprs_unchanged_p): Same.
9798         (hash_expr_1): Same.
9799         (oprs_not_set_p): Same.
9800         (expr_killed_p): Same.
9801         (compute_transp): Same.
9802         (store_ops_ok): Same.
9803
9804         * function.c (purge_addressof_1): Do not allow paradoxical subregs
9805         of vectors.
9806         (fixup_var_refs_1): Same.
9807         (instantiate_virtual_regs_1): Same.
9808
9809         * fold-const.c (operand_equal_p): Handle vectors.
9810         (fold): Same.
9811         (rtl_expr_nonnegative_p): Same.
9812
9813         * flow.c (mark_used_regs): Handle vectors.
9814
9815         * df.c (df_uses_record): Handle vectors.
9816
9817         * cselib.c (cselib_subst_to_values): Handle vectors.
9818         (cselib_mem_conflict_p): Same.
9819         (hash_rtx): Same.
9820
9821         * cse.c (canon_reg): Handle vectors.
9822         (fold_rt): Same.
9823         (cse_process_notes): Same.
9824         (count_reg_usage): Same.
9825         (canon_hash): Same.
9826
9827         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9828
9829         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9830
9831         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9832         (gen_rtx): Handle CONST_VECTOR.
9833         (gen_const_vector_0): New.
9834         (copy_rtx_if_shared): CONST_VECTORs can be shared.
9835         (reset_used_flags): Same.
9836         (copy_insn_1): Same.
9837         (initializer_constant_valid_p): Handle VECTOR_CST.
9838
9839         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9840
9841         * doc/rtl.texi (Constants): Document const_vector.
9842         (CONST0_RTX): Update for vectors.
9843         (RTL sharing): Same.
9844
9845         * print-tree.c (print_node): Add case for VECTOR_CST.
9846
9847         * tree.h (TREE_VECTOR_CST_ELTS): New.
9848         (struct tree_vector): New.
9849         (union tree_node): Add vector node.
9850         (build_vector): Add prototype.
9851
9852         * tree.def (VECTOR_CST): New.
9853
9854         * tree.c (build_vector): New.
9855
9856         * expmed.c (make_tree): Handle CONST_VECTOR.
9857
9858         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9859         (CONST_VECTOR_ELT): New.
9860         (CONST_VECTOR_NUNITS): New.
9861
9862         * machmode.h (GET_MODE_INNER): New.
9863         (DEF_MACHMODE): Accept 8th arg.
9864
9865         * machmode.def: Add 8th argument for vector inner mode.
9866         Add inner vector modes for vectors.
9867
9868         * rtl.def (VEC_CONST): Remove.
9869         (CONST_VECTOR): New.
9870
9871         * expr.c (clear_storage): Allow vectors.
9872         (is_zeros_p): Handle VECTOR_CST.
9873
9874         * varasm.c (output_constant_pool): Handle vectors.
9875         (rtx_const): Add veclo and vechi fields.
9876         (kind): Add RTX_VECTOR.
9877         (decode_rtx_const): Add case for vector.
9878
9879         * config/rs6000/rs6000-protos.h: Add zero_constant.
9880
9881         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9882         constants.  Force easy vector constants into memory.
9883         (easy_vector_constant): New.
9884         (emit_easy_vector_constant): New.
9885         (rs6000_legitimize_reload_address): Do not generate bad reloads on
9886         darwin.
9887
9888         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9889         instruction does.
9890         ("altivec_lvxl"): Same.
9891         (altivec_lvebx): Same.
9892         (altivec_lvehx): Same.
9893         (altivec_lvewx): Same.
9894         ("*movv4si_const0"): New.
9895         ("*movv4sf_const0"): New.
9896         ("*movv8hi_const0"): New.
9897         ("*movv16qi_const0"): New.
9898
9899 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9900
9901         * config/h8300/h8300.c (notice_update_cc): Use
9902         cc_status.value2.
9903
9904 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9905
9906         * config/h8300/h8300.md (divmod patterns): Change the
9907         constraints for operands[1] to register_operand.
9908
9909 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9910
9911         * config/h8300/h8300-protos.h: Remove the prototype for
9912         p_operand.
9913         * config/h8300/h8300.c (p_operand): Remove.
9914         * config/h8300/h8300.md: Replace p_operand with
9915         const_int_operand.
9916
9917 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9918
9919         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9920         comment.
9921         (output_return_instruction): Allow use of LDR to unstack
9922         return addresss even for interrupt handlers or when
9923         interworking.  If compiling for ARMv5, use interworking-safe
9924         return instructions by default.  Remove duplicated code and
9925         lengthy "strcat" sequences.
9926
9927 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9928
9929         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9930         (LINK_EH_SPEC): Define.
9931         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9932
9933 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9934
9935         * config/s390/s390.c (s390_emit_prologue): Do not set the
9936         frame_related flag for call-clobbered registers.
9937
9938 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
9939
9940         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9941         (construct_container): Fix handling of SSE operands.
9942         (ix86_expand_builtin): Fix handling of 64bit pointers.
9943         (mmx_maskmovq_rex): New pattern.
9944
9945 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
9946
9947         * regrename.c (kill_set_value): Handle subregs properly.
9948
9949 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
9950
9951         * objc/objc-act.c (handle_impent): Remove leading '*'
9952         from objc_class_name.
9953
9954 2002-02-17  Richard Henderson  <rth@redhat.com>
9955
9956         * config/alpha/alpha.c (some_small_symbolic_operand,
9957         some_small_symbolic_operand_1, split_small_symbolic_operand,
9958         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9959         Handle small SYMBOL_REFs anywhere, not just inside memories.
9960         * config/alpha/alpha-protos.h: Update.
9961         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9962         * config/alpha/alpha.md (small symbolic operand splitter): Update.
9963
9964 2002-02-17  Roland McGrath  <roland@frob.com>
9965
9966         * config.gcc (powerpc-*-gnu-gnualtivec*,
9967         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9968         * config/rs6000/gnu.h: New file.
9969         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9970         Grok "gnu" in rs6000_abi_name.
9971         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9972         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9973         Grok -mcall-gnu analogous to -mcall-linux et al.
9974         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9975         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9976         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9977
9978 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
9979
9980         PR c/3444:
9981         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9982         shortening.
9983
9984 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9985
9986         * config/cris/cris.h: Undefine STARTFILE_SPEC and
9987         ENDFILE_SPEC before (re)defining them.
9988
9989 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9990
9991         * config/h8300/h8300.c: Fix formatting.
9992         * config/h8300/h8300.h: Likewise.
9993
9994 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9995
9996         * doc/tm.texi: Explain why empty strings should not be
9997         marked for translation.
9998
9999 2002-02-17  Philipp Thomas  <pthomas@suse.de>
10000
10001         * final.c (output_operand_lossage): Changed to accept
10002         printf style arguments. Change calls where necessary.
10003         * output.h (output_operand_lossage): Change declaration
10004         accordingly. Update copyright.
10005         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
10006         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
10007         Update copyright date where necessary.
10008
10009         * config/i386/i386.c (print_operand): Likewise. Remove use of
10010         sprintf.
10011
10012         * config/cris/cris.c (cris_operand_lossage): Likewise.
10013         Rename parameter so that exgettext recognizes it as
10014         translatable message.
10015         (LOSE_AND_RETURN): Rename parameter to msgid.
10016
10017 2002-02-17  Kazu Hirata  <kazu@hxi.com>
10018
10019         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
10020         hard coded register number with an appropriate macro.
10021         (HARD_REGNO_MODE_OK): Likewise.
10022         (ARG_POINTER_REGNUM): Likewise.
10023         (STATIC_CHAIN_REGNUM): Likewise.
10024         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
10025         * config/h8300/h8300.md (define_constants): Define more
10026         register numbers.
10027
10028 2002-02-17  Philipp Thomas  <pthomas@suse.de>
10029
10030         * config/i386/i386.h: Don't mark empty strings for translation.
10031
10032 2002-02-16  H.J. Lu <hjl@gnu.org>
10033
10034         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
10035
10036 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
10037
10038         * cppinit.c (merge_include_chains): Check for brack being
10039         NULL before attempting to merge it with qtail.
10040
10041 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
10042
10043         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
10044         DBX_DEBUG.
10045
10046 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10047
10048         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
10049
10050 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10051
10052         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
10053         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
10054         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
10055
10056 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10057
10058         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
10059         now only if !TARGET_FIX.
10060         (*movsi_nt_vms_fix): New pattern.
10061
10062 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
10063
10064         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
10065         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
10066         (alpha_sa_mask, alpha_sa_size): Reflect above change.
10067         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
10068         (alpha_start_function, alpha_expand_epilogue): Likewise.
10069         (unicosmk_gen_dsib): Likewise.
10070
10071 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10072
10073         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
10074
10075 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
10076
10077         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
10078         check_and_change_labels, s390_final_chunkify): Delete.
10079         (s390_split_branches, s390_chunkify_pool): New functions.
10080         (s390_function_prologue): Call them.
10081
10082         * config/s390/s390.h (S390_REL_MAX): Delete.
10083         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
10084
10085         * config/s390/s390.md (cjump, icjump, jump): Fix length
10086         attribute calculation.
10087
10088
10089 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
10090
10091         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
10092         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
10093
10094 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10095
10096         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
10097         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
10098         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
10099
10100 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
10101
10102         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
10103
10104 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
10105
10106         * reload.c (find_dummy_reload): Check that an output register
10107         is valid for its mode.
10108
10109 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
10110
10111         * combine.c (known_cond): After replacing the REG of a SUBREG, try
10112         to simplify it.
10113
10114         * function.c (assign_parms): Demote promoted argument passed by
10115         transparent reference.
10116
10117 2001-02-14      Joel Sherrill <joel@OARcorp.com>
10118
10119         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
10120         -Acpu() and -Amachine() to eliminate warnings.
10121
10122 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
10123
10124         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
10125
10126 2002-02-14  Kazu Hirata  <kazu@hxi.com>
10127
10128         * config/h8300/h8300-protos.h: Update the prototype for
10129         const_costs.
10130         * config/h8300/h8300.c (const_costs): Treat SET as a little
10131         more expensive operation.
10132         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
10133         reference to const_costs.
10134
10135 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
10136
10137         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
10138
10139 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
10140
10141         PR c/5503:
10142         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
10143         use arguments from newtype.
10144
10145 2002-02-13  Eric Christopher  <echristo@redhat.com>
10146
10147         * config/mips/mips.c (override_options): Add check for march/mipsX
10148         on the same command line. Fix error message in cpu processing.
10149         Remove architecture and ISA checks.
10150
10151 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
10152
10153         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
10154
10155         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
10156
10157 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
10158
10159         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
10160         alternatives.
10161         ("*movv8hi_internal1"): Same.
10162         ("*movv16qi_internal1"): Same.
10163         ("*movv4sf_internal1"): Same.
10164
10165         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
10166         not push_reload for altivec modes.
10167
10168 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
10169
10170         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
10171         all RTEMS targets including removal of #includes from config/*/rtems*.h
10172         file and adding them to tm_file setting. Added xm_defines=POSIX to
10173         many targets.
10174         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
10175         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
10176         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
10177         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
10178         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
10179         config/m68k/rtemself.h: Ditto.
10180         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
10181         config/mips/rtems64.h: Ditto.
10182         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
10183         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
10184         Ditto.
10185         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
10186         config/sparc/rtemself.h: Ditto.
10187         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
10188         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
10189         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
10190         more like arm-elf.
10191         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
10192         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
10193         target made more similar to i386-elf.
10194         * config/i386/t-rtems-i386: Added soft float support and multilibs.
10195         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
10196         be similar to config/m68k/t-m68kelf.
10197         * gthr-rtems.h: Encapsulate with extern "C" for C++.
10198
10199 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
10200
10201         * regmove.c (kill_value): Handle subregs.
10202
10203 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10204
10205         * i386.md (mul patterns): Allow memory operand to be first;
10206         add expanders where needed; fix constraints.
10207         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
10208         Allow memory operand to be the first.
10209
10210         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
10211         operands.
10212
10213 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
10214
10215         PR c/5681:
10216         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
10217         GET_MODE (x).
10218
10219 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
10220
10221         PR optimization/5547:
10222         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
10223         all valid IA-32 address modes involving non-scaled %ebx and
10224         GOT/GOTOFF as displacement.
10225
10226 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
10227
10228         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
10229         after emitting ltorg insns.
10230
10231         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
10232         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
10233         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
10234         *abssf2): Fix "op_type" attribute.
10235
10236 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
10237
10238         * mkconfig.sh: Avoid using a subshell redirect.
10239         ($output.T): Change to $(output)T.
10240         (ENABLE_NLS): Remove unneeded undef.
10241
10242         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
10243         * config/alpha/x-vms (libsubdir): Define.
10244
10245         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
10246         register frame procedures. Optimize retrieving context.
10247
10248         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
10249         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
10250         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
10251
10252 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10253
10254         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
10255         Make same change as for find_base_value.
10256
10257 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10258
10259         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
10260         of QImode and SImode.
10261
10262 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10263
10264         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
10265         length computation of movsi.
10266         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
10267
10268 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10269
10270         * config/h8300/h8300.md (subqi3): Tighten the predicate for
10271         operands[2] to register_operand.
10272
10273 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10274
10275         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
10276
10277 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
10278
10279         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
10280         for altivec_lvx* and altivec_stvx*.
10281         ("*movv4si_internal"): Add constraint for loading from GPRs.
10282         ("*movv8hi_internal1"): Same.
10283         ("*movv16qi_internal1"): Same.
10284         ("*movv4sf_internal1"): Same.
10285
10286         * config/rs6000/rs6000.c (altivec_register_operand): New.
10287
10288         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10289         altivec_register_operand.
10290
10291 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
10292
10293         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10294         handle SYMBOL_REF.
10295
10296 2002-02-13  Stan Shebs  <shebs@apple.com>
10297
10298         * c-typeck.c (digest_init): Handle vectors.
10299         (really_start_incremental_init): Same.
10300         (pop_init_level): Same.
10301         (process_init_element): Same.
10302
10303         * varasm.c (output_constant): Same.
10304
10305         * expr.c (clear_storage): Same.
10306         (store_constructor): Same.
10307
10308 2002-02-12  Eric Christopher  <echristo@redhat.com>
10309
10310         * explow.c (hard_function_value): Add comment explaining
10311         signed/unsigned comparison.
10312
10313 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
10314
10315         * jump.c (never_reached_warning): Add finish argument.
10316         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10317         real insn after end.
10318         * rtl.h (never_reached_warning): Adjust prototype.
10319         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10320         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10321         never_reached_warning.
10322
10323 2002-02-12  Graham Stott  <grahams@redhat.com>
10324
10325         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10326
10327 2002-02-12  Kazu Hirata  <kazu@hxi.com>
10328
10329         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10330         logical shifts on H8/300.
10331         (shift_alg_si): Improve several shifts on H8/300.
10332         (get_shift_alg): Likewise.
10333
10334 2002-02-12  Graham Stott  <grahams@redhat.com>
10335
10336         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10337
10338 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10339
10340         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10341         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10342
10343 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
10344
10345         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10346         non-CONST_INT through default_assemble_integer.
10347         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10348         <case 8>: Abort for CONST_DOUBLE.
10349
10350 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10351
10352         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10353         is specified.
10354         * config/pa/pa-linux.h (LIB_SPEC): Delete.
10355         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10356
10357 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
10358
10359         * config/stormy16/stormy16.md (zero_extendqihi2): New.
10360
10361 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
10362
10363         * regrename.c (regrename_optimize): Don't accept a
10364         part-clobbered register if the replaced register is not part
10365         clobbered.
10366
10367         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10368         take padding into account when computing the argument value.
10369
10370         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10371
10372         * combine.c (try_combine): Apply substitutions in
10373         CALL_INSN_FUNCTION_USAGE too.
10374
10375 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
10376
10377         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10378         __builtin_altivec_abs*.
10379         (bdesc_abs): New.
10380
10381         * config/rs6000/rs6000.h (rs6000_builtins): Add
10382         ALTIVEC_BUILTIN_ABS*.
10383
10384         * config/rs6000/altivec.h: Use const char for builtins expecting
10385         literals.
10386         (vec_abs): New versions for C and C++.
10387         (vec_abss): Same.
10388
10389 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10390
10391         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10392         using Pmode.
10393
10394 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10395
10396         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10397         constant definition from h8300.md.
10398         (FRAME_POINTER_REGNUM): Likewise.
10399         * config/h8300/h8300.md (define_constants): Add FP_REG.
10400
10401 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10402
10403         * config/h8300/h8300.c (print_operand): Remove redundant code.
10404
10405 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10406
10407         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10408         * config/h8300/h8300.c (byte_reg): Make it static.
10409
10410 2002-02-10  Richard Henderson  <rth@redhat.com>
10411
10412         PR c/5623
10413         * c-typeck.c (incomplete_type_error): Handle flexible array members.
10414
10415 2002-02-10  Richard Henderson  <rth@redhat.com>
10416
10417         PR c++/5624
10418         * tree.c (append_random_chars): Don't abort if main_input_filename
10419         does not exist.
10420
10421 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
10422
10423         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10424
10425 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10426
10427         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10428         (pushhi1): Likewise.
10429
10430 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10431
10432         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10433         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10434
10435 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
10436
10437         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10438         remove MASK_VIS.
10439         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
10440
10441 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10442
10443         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10444         a half of an SImode register on H8/300.
10445
10446 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
10447
10448         * i386.md (movdi_2): Add missing '!'.
10449
10450 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10451
10452         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
10453         definitions.
10454
10455 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10456
10457         * config/h8300/h8300.md (length): Correct the distance valid
10458         for the short branch.
10459
10460 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10461
10462         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10463
10464 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10465
10466         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10467         registers in SImode.
10468         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10469         part-clobbered.
10470
10471         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10472         patch.
10473
10474         Contribute sh64-elf.
10475         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10476         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10477         (sh_cannot_modify_jumps_p): New function.
10478         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
10479         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10480         (sh_ms_bitfield_layout_p): New function.
10481         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
10482                     Zack Weinberg  <zack@codesourcery.com>
10483         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10484         expand_simple_binop instead of expand_binop.
10485         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
10486         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10487         use of .quad and .uaquad.
10488         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10489         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10490         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10491         * config/sh/sh.md (movdi_const, movdi_const_32bit,
10492         movdi_const_16bit): Make sure all CONSTs have modes.
10493         (sym2PIC): Ditto, but by adjusting all callers.
10494         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10495         if the prologue calls the SHmedia argument decoder or register
10496         saver.
10497         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10498         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10499         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10500         (sh_expand_epilogue): Don't emit USE of return target register.
10501         (prepare_move_operands): Legitimize DImode PIC addresses.
10502         (sh_media_register_for_return): Skip tr0, used to initialize the
10503         PIC register.
10504         (sh_expand_prologue): Remove explicit USE of return register.
10505         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
10506         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
10507         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10508         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10509         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10510         EXTRA_CONSTRAINT_T.
10511         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10512         (MOVI_SHORI_BASE_OPERAND_P): New.
10513         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10514         (EXTRA_CONSTRAINT_T): Define in terms of them.
10515         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10516         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10517         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10518         alternatives supporting TARGET_REGS.
10519         (UNSPEC_GOTPLT): New constant.
10520         (movdi split): Move incrementing of LABEL_NUSES...
10521         (movdi_const, movdi_const_32bit): Here.  Use
10522         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10523         (movdi_const_16bit): New.
10524         (call, call_value) [flag_pic]: Use GOTPLT.
10525         (call_pop, call_value_pop): New expands.
10526         (call_pop_compact, call_pop_rettramp): New insns.
10527         (call_value_pop_compact, call_value_pop_rettramp): New insns.
10528         (sibcall) [flag_pic]: Use GOT.
10529         (builtint_setjmp_receiver): Remove bogus, unused expand.
10530         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10531         (*pt, *ptb, ptrel): New insns.
10532         (sym2GOT): Handle DImode GOT.
10533         (sym2GOTPLT, symGOTPLT2reg): New expands.
10534         (sym2PIC): New expand.
10535         (shcompact_return_tramp): Use GOTPLT to return trampoline.
10536         (shcompact_return_tramp_i): Use return register explicitly.
10537         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10538         disable flag_reorder_blocks.
10539         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10540         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10541         clobbers, for clarity.
10542         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10543         restoring of r0 in macl as MAYBE_DEAD.
10544         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
10545         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10546         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10547         alter_subreg all over.
10548         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10549         reload, instead of emitting instructions that would require
10550         reloading.
10551         (casesi_load_media): Add missing modes.
10552         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
10553         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10554         as used if the argument decoder is called.
10555         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10556         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10557         Pmode, then extend it to DImode if necessary.
10558         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10559         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10560         constants in FPU-enabled SHmedia, let them be loaded from memory.
10561         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10562         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10563         Adjust whitespace in assembly output templates.
10564         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10565         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10566         mode of if_then_else.
10567         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
10568         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10569         sh.h.
10570         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
10571                     Joern Rennecke <amylaar@redhat.com>
10572         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10573         (SUBTARGET_CPP_PTR_SPEC): New.
10574         (SUBTARGET_CPP_SPEC): Remove.
10575         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10576         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10577         Fix typo in previous checkin.
10578         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
10579         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10580         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
10581                     Alexandre Oliva  <aoliva@redhat.com>
10582         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10583         what single FP register can hold for SHmedia target.
10584         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10585                     Alexandre Oliva  <aoliva@redhat.com>
10586         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10587         Do not split into SUBREG.
10588         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
10589         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10590         and added new functions as specified in SH5 ABI r9.
10591         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
10592         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10593         8-byte boundary.
10594         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
10595         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10596         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
10597         and consttable_window_ends.
10598         2001-06-03  Graham Stott  <grahams@redhat,com>
10599         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10600         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
10601         * config/sh/sh.c (print_operand): Handle floating-point pair,
10602         vector and matrix registers.
10603         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10604         vector modes into account.
10605         * config/sh/sh.md (movv2sf): Split move between registers into
10606         movdf.
10607         (movv4sf, movv16sf): Introduce insns that get split only after
10608         reload.
10609         * config/sh/shmedia.h: Fix Copyright dates.
10610         * config/sh/ushmedia.h: Likewise.  Move loop counter
10611         declarations into conditionals that uses them.
10612         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10613         loop boundary.
10614         * config/sh/sshmedia.h: Fix Copyright dates.
10615         (sh_media_PUTCFG): Fix constraints.
10616         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
10617         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10618         ptrmemfunc_vbit_in_delta for SH5.
10619         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
10620         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10621         * invoke.texi: Likewise.
10622         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
10623         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10624         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10625         GCC_pop_shmedia_regs_nofpu): New global symbols.
10626         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10627         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10628         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10629         compact function with nonlocal labels.
10630         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10631         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10632         (initial_elimination_offset): Account for their stack space.
10633         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10634         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10635         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10636         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10637         least one of the operands to be a register.
10638         (movv2sf): Likewise.  Renamed to movv2sf_i.
10639         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10640         prepare_move_operands() before emitting SHmedia insns.
10641         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
10642         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10643         Don't save nor initialize r12.  Don't mis-align the stack.
10644         Pad the code with a nop.
10645         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
10646         stack.
10647         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
10648         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10649         [__SHMEDIA__]: Implement.
10650         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
10651         * config/sh/sh.md: Set latency of `pt' closer to reality.
10652         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10653         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10654         Set move, load and store type attributes.
10655         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10656         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10657         profiling.
10658         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10659         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10660         * config/sh/sh.c (sh_media_register_for_return): New function.
10661         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10662         branch-target register.
10663         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10664         * config/sh/sh.md (return_media_i): Use any call-clobbered
10665         branch-target register.
10666         (return_media): If r18 wasn't copied in the prologue, copy it
10667         here.
10668         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10669         Clear class FP0_REGS.
10670         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10671         from elf.h.
10672         2001-03-08  DJ Delorie  <dj@redhat.com>
10673         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10674         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
10675         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10676         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
10677         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10678         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
10679         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10680         return value correctly for call_cookie.
10681         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
10682         * config/sh/crt1.asm (start): Modified so as to call
10683         ___setup_argv_and_call_main.
10684         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
10685         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10686         SHmedia mode.
10687         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
10688         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10689         (STRIP_NAME_ENCODING): Use it.
10690         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
10691         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
10692         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10693         prepare_scc_operands().
10694         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10695         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10696         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
10697         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10698         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
10699         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10700         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10701         used in shcompact_incoming_args.
10702         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10703         change.
10704         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10705         mode.
10706         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10707         Adjust accordingly.
10708         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10709         Simplify.  Adjust.  Add sanity check.
10710         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10711         FPU_SINGLE_BIT.
10712         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10713         TARGET_SHCOMPACT.
10714         (udivsi3, divsi3): Use them.
10715         (force_mode_for_call): New insn.
10716         (call, call_value, sibcall_value): Emit it before SHcompact
10717         calls.
10718         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
10719         * config/sh/sh.md (call, call_value, sibcall): Make sure the
10720         call cookie is non-NULL before taking its value.
10721         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
10722         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10723         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
10724         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10725         block.
10726         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10727         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10728         temporary for stack adjusts.  Use MACL and MACH to pass
10729         arguments to shcompact_incoming_args.
10730         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
10731         clobber r1.
10732         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10733         (nested_trampoline): Load static chain address into r1.
10734         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10735         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
10736         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10737         fp_arith_reg_operand().
10738         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
10739         * config/sh/sh.md (casesi): Sign-extend the first two operands,
10740         and use signed compares for them.
10741         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10742         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
10743         ones properly aligned.
10744         (find_barrier): Account for extra alignment needed for 8-byte wide
10745         constants.
10746         (machine_dependent_reorg): Require a label for the second 4-byte
10747         constant after an 8-byte one.
10748         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10749         change.
10750         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10751         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10752         last_float when switching float modes.
10753         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10754         auto-increment for general-purpose registers.
10755         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10756         result.
10757         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10758         for stack adjust.
10759         * config/sh/sh.c (sh_builtin_saveregs): Support using all
10760         registers for varargs.
10761         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
10762         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10763         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10764         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10765         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10766         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
10767         call_cookie accordingly.
10768         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10769         (SHCOMPACT_BYREF): Likewise.
10770         (SHCOMPACT_FORCE_ON_STACK): New macro.
10771         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10772         (sh_builtin_saveregs): Likewise.
10773         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10774         shcompact_incoming_args): Use new shift values.  Support
10775         sequences of consecutive and non-consecutive pushes/pops.
10776         * config/sh/sh.md (return): Don't explicitly use PR_REG.
10777         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
10778         * config/sh/sh.h (TEXT_SECTION): Define.
10779         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10780         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10781         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10782         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10783         return values on FPU-enabled SHmedia.
10784         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10785         FPU-enabled SHmedia.
10786         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10787         value is returned in a non-FP reg and is not returned by
10788         reference.
10789         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10790         jump_ind.
10791         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
10792         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10793         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10794         quad-aligned to be passed by callee-copy reference.
10795         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
10796         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10797         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10798         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
10799         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10800         copying low-numbered FP regs to r7 and r8.
10801         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10802         FP regs to general-purpose regs only if the copy was passed on the
10803         stack.
10804         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10805         copying FP reg to r9.
10806         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10807         copy FP regs to general-purpose regs only in outgoing calls.
10808         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10809         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
10810         HOST_WIDE_INT.
10811         * config/sh/sh.h (struct sh_args): Document all fields.
10812         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10813         passed partially on the stack should not consider making
10814         sibcalls.
10815         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10816         stack_regs only for incoming calls.  When passing FP args,
10817         make sure there are FP regs available before modifying
10818         call_cookie.
10819         (SHCOMPACT_BYREF): Pass double args in general-purpose
10820         registers by reference.
10821         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
10822         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10823         attempt to generate sibcalls if the caller got any arguments
10824         by reference.
10825         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10826         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10827         to 8-byte boundaries.
10828         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10829         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10830         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10831         stored in the stack.
10832         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10833         for the offsets to have the ISA bit set.
10834         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
10835         invocation.  Use beq instead of bgt to mark end of sequence of
10836         loads.
10837         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
10838         bgt to mark end of sequence of stores.
10839         * config/sh/sh.c (arith_operand): Don't check whether
10840         CONST_OK_FOR_J for now.
10841         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10842         instead of long for conversion.
10843         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
10844         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10845         before passing it to fprintf.
10846         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
10847         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10848         Call set_fpscr before reading/writing SR.
10849         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10850         Call set_fpscr.
10851         * config/sh/lib1funcs.asm: Add `.align 2' directives before
10852         SHmedia code.
10853         (FMOVD_WORKS): Define on SH5 with FPU.
10854         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
10855         setting.
10856         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10857         _fpscr_values.
10858         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
10859         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10860         address.
10861         (ia_main_table): Ditto.
10862         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
10863         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10864         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10865         the definitions from sh.h.
10866         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10867         TARGET_SH5.
10868         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10869         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10870         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10871         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
10872         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10873         Increment LABEL_NUSES.
10874
10875         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10876         TARGET_SH5.
10877         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10878         defined.
10879         * config/sh/elf.h (SIZE_TYPE): Likewise.
10880         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10881         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10882         shcompact_incoming_args): Load switch table addresses using
10883         datalabel.
10884         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10885         (NO_BUILTIN_SIZE_TYPE): Define.
10886         (SIZE_TYPE): Don't define.
10887         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10888         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10889         definition of __SH5__=32 for -m5-compact-nofpu.
10890         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10891         ADDR_DIFF_VEC.
10892         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
10893         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10894         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
10895         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10896         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10897         (INSN_LENGTH_ALIGNMENT): Likewise.
10898         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10899         * config/sh/sh.md (call, call_value, sibcall): Simplify
10900         copying of non-branch-target register.
10901         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10902         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
10903         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10904         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10905         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10906         floating-point values as structs.
10907         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10908         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10909         general-purpose register.
10910         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10911         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10912         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10913         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10914         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10915         (ENCODE_SECTION_INFO): Enclose variables and constants in
10916         DATALABEL unspecs.
10917         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10918         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10919         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10920         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10921         only for LABEL_REFs.  For SYMBOL_REFs, prepend
10922         SH_DATALABEL_ENCODING to the symbol name.
10923         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10924         convert_mode().
10925         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10926         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10927         UNSPEC_DATALABEL.
10928         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10929         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10930         (DATALABEL_REF_P): Don't require CONST.
10931         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10932         REL label.
10933         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
10934         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10935         right.
10936         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10937         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10938         Use shallow_copy_rtx and PUT_MODE to change the mode of
10939         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10940         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10941         on SHmedia using GENERAL_REGs.
10942         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10943         bltu_media_i): Fix reversion of conditions.
10944         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10945         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10946         * config/sh/sh.c (output_far_jump): Save r13 in macl.
10947         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
10948         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10949         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
10950         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10951         (GCC_nested_trampoline): Likewise.
10952         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10953         * config/sh/sh.c (gen_datalabel_ref): Define.
10954         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10955         (INITIALIZE_TRAMPOLINE): Likewise.
10956         (TRAMPOLINE_ADJUST_ADDRESS): Define.
10957         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10958         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10959         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10960         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10961         (ic_invalidate): Adjust for SH5.
10962         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10963         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10964         _nested_trampoline.
10965         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
10966         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10967         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10968         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10969         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10970         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10971         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10972         * config/sh/sh.c (target_reg_operand): Match only target-branch
10973         registers and pseudos that aren't virtual registers.
10974         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10975         Copy operands that don't match target_reg_operand to pseudos.
10976         (call_media, call_value_media, sibcall_media): Use
10977         target_reg_operand instead of target_operand.
10978         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
10979         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10980         * config/sh/sh.c (target_reg_operand): Match hardware registers
10981         other than branch-target registers.
10982         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10983         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10984         (fpscr_values) [SH5 == 32]: Define.
10985         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10986         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10987         Handle function addresses coming in SUBREGs.
10988         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
10989         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10990         shcompact_return_trampoline): Use datalabel where appropriate.
10991         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
10992         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10993         general-purpose register to copy one branch-target register to
10994         another.
10995         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10996         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10997         SYMBOL_REFs with VOIDmode.
10998         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10999         bltu_media_i): New insns.
11000         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
11001         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
11002         (INIT_CUMULATIVE_ARGS): Likewise.
11003         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
11004         * machmode.def (V16SFmode): New mode.
11005         * c-common.c (type_for_mode): Support V2SF and V16SF.
11006         * tree.c (build_common_tree_nodes_2): Likewise.
11007         * tree.h (tree_index): Likewise.
11008         * calls.c (emit_call_1): Take args_so_far.  Adjust all
11009         callers.  Introduce CALL_POPS_ARGS.
11010         * tm.texi (CALL_POPS_ARGS): Document.
11011         * config/sh/crt1.asm: Implement in SHmedia mode.
11012         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
11013         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
11014         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
11015         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
11016         Implement divsi and udivsi in SHmedia mode.  Introduce
11017         SHcompact trampolines.
11018         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
11019         only in SHmedia64.
11020         (regno_reg_class): Rewrite.
11021         (fp_reg_names): Remove.
11022         (sh_register_names, sh_additional_register_names): New.
11023         (print_operand): Added `u'.  Support SUBREGs in addresses.
11024         Add parentheses around shifted CONSTs.
11025         (output_file_start): Output .mode and .abi directives.
11026         (shiftcosts, addsubcosts, multcosts): Adjust.
11027         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
11028         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
11029         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
11030         bytes, not registers.  Take into account the need for the
11031         SHcompact incoming args trampoline.  Adjust all callers.
11032         (sh_expand_prologue): Take stack_regs into account.  Call
11033         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
11034         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
11035         stack aligned as per SH5 ABI.
11036         (sh_builtin_saveregs): Support SH5 ABI.
11037         (sh_build_va_list, sh_va_start): Likewise.
11038         (initial_elimination_offset): Take alignment into account.
11039         Compute location of PR according to the SH5 stack frame.
11040         (arith_reg_operand): Reject branch-target registers.
11041         (shmedia_6bit_operand): New.
11042         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
11043         (target_reg_operand): Match DImode only.  Accept SUBREGs.
11044         (target_operand): New.
11045         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
11046         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
11047         SIBCALL_REGS for SHmedia.
11048         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
11049         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
11050         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
11051         (TARGET_SWITCHES): New SH5 flags.
11052         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
11053         VALID_REGISTER_P to disable unsupported registers.
11054         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
11055         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
11056         (FUNCTION_ARG_PADDING): Define.
11057         (FASTEST_ALIGNMENT): Adjust.
11058         (SH_REGISTER_NAMES_INITIALIZER): New.
11059         (sh_register_names): Declare.
11060         (DEBUG_REGISTER_NAMES): Define.
11061         (REGISTER_NAMES): Define based on sh_register_names.
11062         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
11063         (sh_additional_register_names): Declare.
11064         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
11065         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
11066         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
11067         (REGISTER_NATURAL_MODE): Define.
11068         (FIRST_PSEUDO_REGISTER): Adjust.
11069         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
11070         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
11071         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
11072         (VECTOR_MODE_SUPPORTED_P): Define.
11073         (REG_CLASS_CONTENTS): Adjust.
11074         (SMALL_REGISTER_CLASSES): Adjust.
11075         (REG_ALLOC_ORDER): Adjust.
11076         (INDEX_REG_CLASS): Adjust.
11077         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
11078         (CONST_OK_FOR_LETTER_P): Adjust.
11079         (PREFERRED_RELOAD_CLASS): Adjust.
11080         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
11081         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
11082         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
11083         (FIRST_FP_PARM_REG): Adjust.
11084         (CALL_POPS_ARGS): Define.
11085         (FUNCTION_ARG_REGNO_P): Adjust.
11086         (struct sh_args): New fields.
11087         (GET_SH_ARG_CLASS): Adjust.
11088         (INIT_CUMULATIVE_ARGS): Adjust.
11089         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
11090         (FUNCTION_ARG_ADVANCE): Adjust.
11091         (FUNCTION_ARG): Adjust.
11092         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
11093         (FUNCTION_ARG_CALLEE_COPIES): Define.
11094         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
11095         (STRICT_ARGUMENT_NAMING): Define.
11096         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
11097         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
11098         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
11099         (SETUP_INCOMING_VARARGS): Adjust.
11100         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
11101         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
11102         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
11103         (SUBREG_OK_FOR_INDEX_P): Adjust.
11104         (EXTRA_CONSTRAINT_S): Update.
11105         (EXTRA_CONSTRAINT_T): New.
11106         (EXTRA_CONSTRAINT): Adjust.
11107         (GO_IF_LEGITIMATE_INDEX): Adjust.
11108         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
11109         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
11110         (MOVE_MAX): Adjust.
11111         (MAX_MOVE_MAX): Define.
11112         (Pmode): Adjust.
11113         (CONST_COSTS): Adjust.
11114         (REGISTER_MOVE_COST): Adjust.
11115         (BRANCH_COST): Adjust.
11116         (TEXT_SECTION_ASM_OP): Adjust.
11117         (DBX_REGISTER_NUMBER): Adjust.
11118         (ASM_OUTPUT_DOUBLE_INT): New.
11119         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
11120         (PREDICATE_CODES): Adjust.
11121         (PROMOTE_MODE): Adjust.
11122         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
11123         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
11124         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
11125         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
11126         (DR0_REG, DR2_REG, DR4_REG): Renumber.
11127         (TR0_REG, TR1_REG, TR2_REG): New.
11128         (XD0_REG): Renumber.
11129         (UNSPEC_COMPACT_ARGS): New.
11130         (type): Added pt and ptabs.
11131         (length): Default to 4 on SHmedia.  Default pt length to 12
11132         and     20 on SHmedia32 and SHmedia64, respectively.
11133         (pt): New function unit.
11134         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
11135         Add whitespace between operands of SHmedia instructions.
11136         (movdicc): Fix.
11137         (adddi3_media, addsi3_media): Adjust constraints.
11138         (subsi3) [SHmedia]: Force operand 1 into a register.
11139         (udivsi3_i1_media, udivsi3_i4_media): New.
11140         (udivsi3): Support SHmedia.
11141         (divsi3_i1_media, divsi3_i4_media): New.
11142         (divsi3): Support SHmedia.
11143         (anddi3, iordi3, xordi3): Adjust constraints.
11144         (zero_extendhidi2, zero_extendqidi2): New.
11145         (extendsidi2, extendhidi2, extendqidi2): New.
11146         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
11147         (pop_e, pop_fpul, pop_4): Likewise.
11148         (movsi_media): Support FP and BT registers.
11149         (movsi_media_nofpu): New.  Adjust splits to DImode.
11150         (lduw, ldub): Renamed to zero_extend* above.
11151         (movqi_media): Fix typo.
11152         (movdi_media): Support FP and BT registers.
11153         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
11154         (movdi_const_32bit): New.
11155         (shori_media): Require immediate operand.  Use `u' for output.
11156         (movdf_media, movsf_media): Simplified.
11157         (movdf_media_nofpu, movsf_media_nofpu): New.
11158         (movdf, movsf): Adjust
11159         (movv2sf, movv2sf, movv16sf): New.
11160         (beq_media, beq_media_i): Adjust constraints.  Don't use
11161         scratch BT register.
11162         (bne_media, bne_media_i): Likewise.
11163         (bgt_media, bgt_media_i): Likewise.
11164         (bge_media, bge_media_i): Likewise.
11165         (bgtu_media, bgtu_media_i): Likewise.
11166         (bgeu_media, bgeu_media_i): Likewise.
11167         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
11168         bunordered): Emit jump insn.  Force operands to registers when
11169         needed.
11170         (jump_media, jump): Simplify.
11171         (call_compact, call_compact_rettramp): New.
11172         (call_value_compact, call_value_compact_rettramp): New.
11173         (call_media, call_value_media): Simplify.
11174         (sibcall_compact, sibcall_media): New.
11175         (call, call_value): Adjust for SHmedia and SHcompact.
11176         (sibcall, sibcall_value, untyped_call): Likewise.
11177         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
11178         (indirect_jump): Adjust for SHmedia.
11179         (casesi_jump_media): New.
11180         (nop): Re-enable for SHmedia.
11181         (call_site): Restrict to SH1.
11182         (casesi): Adjust for SHmedia.
11183         (casesi_shift_media, casesi_load_media): New.
11184         (return): Explicitly use PR register.  Call return trampoline
11185         on SHcompact.
11186         (return_i): Explicitly use PR register.
11187         (shcompact_return_tramp, shcompact_return_tramp_i): New.
11188         (return_media): Adjust.
11189         (shcompact_incoming_args): New.
11190         (epilogue): Adjust.
11191         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11192         (movstrsi): Disable on SH5.
11193         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
11194         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
11195         (subsf3, subsf3_media): Likewise.
11196         (mulsf3, mulsf3_media, mac_media): Likewise.
11197         (divsf3, divsf3_media): Likewise.
11198         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
11199         (floatsisf2, fux_truncsfsi2): Likewise.
11200         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
11201         constraints.
11202         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
11203         (cmpunsf_media, cmpsf): Likewise.
11204         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
11205         (abssf2, abssf2_media): Likewise.
11206         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
11207         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
11208         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
11209         (floatsidf2, fix_truncdfsi2): Likewise.
11210         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
11211         constraints.
11212         (cmpeqdf_media, cmpgtdf_media): Likewise.
11213         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
11214         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
11215         (absdf2, absdf2_media): Likewise.
11216         (extendsfdf2, extendsfdf2_media): Likewise.
11217         (truncsfdf2, truncsfdf2_media): Likewise.
11218         * config/sh/sh64.h: New file.
11219         * config/sh/t-sh64: New file.
11220         * config/sh/shmedia.h: New file.
11221         * config/sh/ushmedia.h: New file.
11222         * config/sh/sshmedia.h: New file.
11223         * configure.in: Added sh64-*-elf.
11224         * configure: Rebuilt.
11225         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
11226         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
11227         (reg_class_from_letter): Use `b' for TARGET_REGS.
11228         (print_operand): Support `%M', `%m', `AND' and
11229         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
11230         (andcosts): Adjust for SHmedia.
11231         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
11232         Likewise.
11233         (target_reg_operand): New function.
11234         * config/sh/sh-protos.h (target_reg_operand): Declare.
11235         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
11236         FP registers on SH5.
11237         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
11238         on SH4.
11239         (TARGET_REGISTER_P): New macro.
11240         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
11241         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
11242         (EXTRA_CONSTRAINT_S): New macro.
11243         (EXTRA_CONSTRAINT): Adjust.
11244         (FLOAT_TYPE_SIZE): Define to 32.
11245         (Pmode): DImode on SHmedia.
11246         (CONST_COSTS): Adjust for SHmedia literals.
11247         (PREDICATE_CODES): Added target_reg_operand.
11248         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
11249         * config/sh/sh.md: Remove all attrs from SHmedia insns.
11250         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
11251         (cmpdi): Accept SHmedia.
11252         (movdicc_false, movdicc_true): New insns.
11253         (movdicc): New expand.
11254         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
11255         no_new_pseudos.
11256         (addsi3_media): Match `S' constraint.
11257         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
11258         (negdi2): Expand for SHmedia.
11259         (one_cmpldi2): New expand.
11260         (zero_extendsidi2): Change from expand to insn.
11261         (extendsidi2): Add constraints.
11262         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
11263         LD/ST address.  Fix SI immediate loading split.
11264         (movhi_media, movqi_media, lduw, ldub): New insns.
11265         (movhi, movqi): Accept SHmedia.
11266         (shori_media, movdi_media): Relax input constraints.  Split
11267         symbolic constants.
11268         (movdf_media, movsf_media): New insn.  New split to movdi.
11269         (movdf, movsf): Match on SHmedia.
11270         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
11271         bgeu_media): New insns and splits.  New insns with `_i' suffix.
11272         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
11273         (bunordered): New expand.
11274         (jump_compact): Renamed from `jump'.
11275         (jump_media): New insn.
11276         (jump): New expand.
11277         (call_media, call_value_media): New insns.
11278         (call, call_value): Adjust.
11279         (indirect_jump_compact): Renamed from `indirect_jump'.
11280         (indirect_jump_media): New insn.
11281         (indirect_jump): New expand.
11282         (untyped_call, return): Accept SHmedia.
11283         (return_media): New insn.
11284         (prologue, epilogue, blockage): Accept SHmedia.
11285         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11286         (sunordered): New expand.
11287         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
11288         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
11289         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
11290         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
11291         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
11292         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
11293         abssf2_media): New insns.
11294         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11295         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11296         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11297         floatdidf2, floatsidf2_media, fix_truncdfdi2,
11298         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11299         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11300         absdf2_media): New insns.
11301         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11302         (extendsfdf2_media, truncdfsf2_media): New insns.
11303         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
11304         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11305         * config/sh/sh.h (CONST_OK_FOR_J): Document.
11306         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11307         * config/sh/sh.md (adddi3): New expand.
11308         (adddi3_media, adddi3z_media): New insns.
11309         (adddi3_compact): Renamed from adddi3.
11310         (addsi3_media): Use add.l r63 to add constant zero.
11311         (subdi3): New expand.
11312         (subdi3_media): New insn.
11313         (subdi3_compact): Renamed from subdi3.
11314         (mulsidi3): New expand.
11315         (mulsidi3_media): New insn.
11316         (mulsidi3_compact): Renamed from mulsidi3.
11317         (umulsidi3): New expand.
11318         (umulsidi3_media): New insn.
11319         (umulsidi3_compact): Renamed from umulsidi3.
11320         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11321         (ashlsi3, ashrsi3, lshrsi3): Use them.
11322         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11323         (ashldi3, ashrdi3, lshrdi3): Use them.
11324         (zero_extendsidi2): New expand.
11325         (extendsidi2): New insn.
11326         (movsi_media): New insn.  Split to movdi to load constants.
11327         (movsi): Enable for shmedia.
11328         (movdi_media): New insn.  Use shori_media to load wide constants.
11329         (short_media): New insn.
11330         (movdi): Enable for shmedia.
11331         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
11332         * config/sh/sh.h (CPP_SPEC): Added `m5'.
11333         (SUBTARGET_CPP_SPEC): Added `!m5'.
11334         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11335         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
11336         to all other SH variants.
11337         (TARGET_DEFAULT): Set to SH1_BIT.
11338         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11339         (BITS_PER_WORD): Raise to 64 on shmedia.
11340         (MAX_BITS_PER_WORD): Change to 64.
11341         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11342         (INT_TYPE_SIZE): Keep as 32.
11343         (UNITS_PER_WORD): Raise to 8 on shmedia.
11344         (MIN_UNITS_PER_WORD): Keep as 4.
11345         (POINTER_SIZE): Raise to 64 on shmedia.
11346         (CONST_OK_FOR_J): New macro.
11347         (CONST_OK_FOR_LETTER_P): Use it.
11348         (processor_type): Add PROCESSOR_SH5.
11349         * config/sh/sh.md: Conditionalize all expands, insns and
11350         splits to TARGET_SH1.
11351         (cpu): Added sh5.
11352         (addsi3_compact): Renamed from...
11353         (addsi3): Now an expand.
11354         (addsi3_media, subsi3_media): New insns.
11355         (subsi3): Don't negate constants with SHmedia.
11356
11357         * hooks.c: New file.
11358         * hooks.h: New file.
11359         * Makefile.in (HOOKS_H): New.
11360         (TARGET_DEF_H): Added $(HOOKS_H).
11361         (OBJS): Added hooks.o.
11362         (cfgcleanup.o, bb-reorder.o): Added target.h.
11363         (hooks.o): Added dependencies.
11364         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11365         (TARGET_INITIALIZER): this.
11366         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11367         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11368         * bb-reorder.c: Include target.h.
11369         (reorder_basic_blocks): Skip if cannot modify jumps.
11370         * cfgcleanup.c: Include target.h.
11371         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11372
11373 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11374
11375         * config/mips/mips.md (casesi_internal, casesi_internal_di):
11376         Protect jump delay slot instructions with .set noreorder and
11377         .set nomacro.
11378
11379 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11380
11381         * config/mips/mips.md (casesi_internal_di): Calculate
11382         the index into the target offset table correctly.
11383
11384 2002-02-08  Richard Henderson  <rth@redhat.com>
11385
11386         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11387         * final.c (output_addr_const): Accept and discard SUBREG.
11388         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11389         mark them unknown instead.
11390         (simplify_subtraction): Handle RTX_UNKNOWN.
11391         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11392
11393 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
11394
11395         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11396
11397 2002-02-08  Richard Henderson  <rth@redhat.com>
11398
11399         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11400
11401 2002-02-08  Andreas Jaeger  <aj@suse.de>
11402
11403         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11404         * config/i386/t-linux64: New file.
11405
11406 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
11407
11408         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11409         * c-parse.in (compstmt): Clear last_expr_type.
11410
11411 2002-02-07  Richard Henderson  <rth@redhat.com>
11412
11413         * loop.c (strength_reduce): Sink final_value when not
11414         eliminating a biv.
11415
11416 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
11417
11418         * config/sparc/freebsd.h: Fix mismatched spec {.
11419
11420 2002-02-07  Richard Henderson  <rth@redhat.com>
11421
11422         * cfgrtl.c: Include recog.h and insn-config.h.
11423         (keep_with_call_p): Fix general_operand invocation.
11424         * Makefile.in (cfgrtl.o): Update dependencies.
11425
11426 2002-02-07  Kazu Hirata  <kazu@hxi.com>
11427
11428         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11429         comment.  Accept HImode only if TARGET_H8300.
11430
11431 2002-02-07  Eric Christopher  <echristo@redhat.com>
11432
11433         * config/mips/crtn.asm: Cleanup #ifdefs.
11434
11435 2002-02-07  Eric Christopher  <echristo@redhat.com>
11436
11437         * config/mips/crti.asm: Add changes for mips16. mips16 uses
11438         register 7 as RA instead of $31.
11439         * config/mips/crtn.asm: Ditto.
11440         * config/mips/mips.c (mips_move_2words): Add case for
11441         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11442         (compute_frame_size): Fix typo.
11443         (save_restore_insns): Ditto.  Make documentation about using
11444         register $7 as return register more precise.
11445         (mips_expand_epilogue): Fix comment. Add code to work around not
11446         being able to add to the stack pointer directly.
11447         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11448         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11449         epilogue.
11450
11451 2002-02-07  Tom Rix  <trix@redhat.com>
11452
11453         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11454         immediates in ldu and stdu DS opcode field.
11455         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11456         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11457         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11458
11459 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
11460
11461         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11462         offset for stack bias.
11463
11464 2002-02-07  H.J. Lu <hjl@gnu.org>
11465
11466         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11467
11468 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
11469
11470         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11471
11472 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
11473
11474         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11475         * i386.c (x86_order_regs_for_local_alloc): New global function.
11476         * i386.h (REG_ALLOC_ORDER): CLeanup.
11477         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11478
11479 2002-02-07  Richard Henderson  <rth@redhat.com>
11480
11481         PR optimization/2463
11482         * alias.c (find_base_value): Recall base values for fixed hard regs.
11483         * loop.c (loop_regs_update): Don't use single_set on non-insns.
11484
11485 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
11486
11487         * config/mips/mips.md (define_delay) [mips16]: Adjust required
11488         length.
11489
11490 2002-02-06  Richard Henderson  <rth@redhat.com>
11491
11492         PR c/5609
11493         * stmt.c (resolve_operand_name_1): Take more care with mixed
11494         named and unnamed operands.
11495
11496 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
11497             Jan Hubicka  <jh@suse.cz>
11498
11499         * loop.c (remove_constant_addition): Avoid clobbering a shared
11500         CONST expression.
11501
11502 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11503
11504         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11505         * config/s390/t-linux64: New file.
11506         * config/s390/libgcc-glibc.ver: New file.
11507
11508 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11509
11510         * config/s390/linux64.h: Delete file.
11511         * config/s390/s390x.h: New file.
11512         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11513         as target header file.
11514         * config/s390/linux.h (TARGET_VERSION): Define depending on
11515         DEFAULT_TARGET_64BIT.
11516         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11517         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11518         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11519         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11520         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11521         (EXTRA_SPEC): New define.
11522         * config/s390/s390.h (TARGET_VERSION): Define depending on
11523         DEFAULT_TARGET_64BIT.
11524         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11525
11526 2002-02-06  Jason Merrill  <jason@redhat.com>
11527
11528         * c-decl.c (finish_function): Warn about a non-void function with
11529         no return statement and no abnormal exit.
11530         (current_function_returns_abnormally): New variable.
11531         (start_function): Clear it.
11532         (struct c_language_function): Add returns_abnormally.
11533         (push_c_function_context): Save it.
11534         (pop_c_function_context): Restore it.
11535         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11536         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11537         an explicit return type.
11538         * c-tree.h: Declare current_function_returns_abnormally.
11539         (C_FUNCTION_IMPLICIT_INT): New macro.
11540         * c-typeck.c (build_function_call): Set it.
11541         (c_expand_return): Set current_function_returns_value even if the
11542         value is erroneous.
11543
11544 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11545
11546         PR c/5420:
11547         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11548         unsafe for reevaluation.
11549
11550 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11551
11552         PR c/5482:
11553         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11554         EXPR_STMT, but COMPOUND_STMT, recurse into it.
11555
11556 2002-02-06  Richard Henderson  <rth@redhat.com>
11557
11558         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11559         be a general_operand.  Dest for function value must be a pseudo.
11560
11561 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11562
11563         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11564         as SYMBOL_REFs from the constant pool.
11565
11566 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
11567
11568         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11569         passed by invisible reference.
11570
11571 2002-02-05  Richard Henderson  <rth@redhat.com>
11572
11573         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11574
11575 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
11576
11577         Implement using "base addresses" in insn operands as default.
11578         * config/mmix/mmix.c (mmix_conditional_register_usage): if
11579         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11580         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11581         used to read the rtx value.
11582         (mmix_target_asm_function_epilogue): Fix spacing.
11583         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11584         (mmix_legitimate_address): Ditto.
11585         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11586         should be loaded with a GETA insn.  Don't allocate needless extra
11587         char for nul termination and fix misleading comment.
11588         (mmix_print_operand_address): Handle constants if
11589         TARGET_BASE_ADDRESSES.
11590         (mmix_output_register_setting): Use base addressing if
11591         TARGET_BASE_ADDRESSES and the number of insns is 3.
11592         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11593         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11594         to use R as constraint, add LDA to match s.
11595         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11596         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11597         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11598         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11599         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11600         order with other fixed registers.
11601         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11602         other parameter/call-clobbered registers.
11603         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11604         -mbase-addresses, -mno-base-addresses.
11605         (MMIX Options): Ditto.
11606
11607 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11608
11609         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11610
11611 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
11612
11613         * config/rs6000/altivec.h: Change elem to _S_elem.
11614
11615 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11616
11617         * config/netbsd.h (WCHAR_TYPE): Define.
11618         (WCHAR_TYPE_SIZE): Ditto.
11619         (WINT_TYPE): Ditto.
11620         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11621         (WCHAR_UNSIGNED): Ditto.
11622         (WCHAR_TYPE_SIZE): Ditto.
11623         (WINT_TYPE): Ditto.
11624         * config/arm/netbsd.h: Likewise.
11625         * config/i386/netbsd-elf.h: Likewise.
11626         * config/i386/netbsd.h: Likewise.
11627         * config/m68k/netbsd-elf.h: Likewise.
11628         * config/m68k/netbsd.h: Likewise.
11629         * config/ns32k/netbsd.h: Likewise.
11630         * config/sparc/netbsd.h: Likewise.
11631         * config/vax/netbsd.: Likewise.
11632
11633 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
11634
11635         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11636         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
11637         (TARGET_INITIALIZER): this.
11638         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11639         (BITFIELD_NBYTES_LIMITED): Markup fix.
11640         * tree.h (default_ms_bitfield_layout_p): Declare.
11641         (record_layout_info): Added prev_field.
11642         * tree.c (default_ms_bitfield_layout_p): New fn.
11643         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11644         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11645         * stor-layout.c: Include target.h.
11646         (start_record_layout): Initialize prev_field.
11647         (place_field): Handle MS bit-field layout, and disregard
11648         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11649         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
11650         * Makefile.in (stor-layout.o): Adjust dependencies.
11651
11652 2002-02-05  Jason Merrill  <jason@redhat.com>
11653
11654         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11655
11656 2002-02-05  Andreas Jaeger  <aj@suse.de>
11657
11658         * crtstuff.c: Fix comments.
11659
11660 2002-02-05  Richard Henderson  <rth@redhat.com>
11661
11662         PR fortran/3393
11663         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11664         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11665
11666         PR fortran/3392
11667         * config/mips/mips.c (function_arg): Handle TImode.
11668         (function_arg_advance): Likewise.
11669
11670 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11671
11672         * config/rs6000/altivec.h (vec_step_help): Rename to
11673         __vec_step_help.
11674
11675 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11676
11677         * config/rs6000/altivec.h: Fix typos.
11678
11679 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11680
11681         * config/arm/netbsd.h: Correct a comment.
11682
11683 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11684
11685         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11686         building void typed builtins.
11687
11688         * config/rs6000/altivec.h (vec_ld*): Fix typos.
11689         (vec_step): Implement for C++.
11690
11691 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11692
11693         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11694
11695 2002-02-04  Richard Henderson  <rth@redhat.com>
11696
11697         * combine.c (nonzero_bits): Re-introduce special case for
11698         sp/fp/ap wrt REGNO_POINTER_ALIGN.
11699
11700 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11701
11702         * doc/extend.texi: Warn about unsupported usage of altivec
11703         builtins.
11704
11705         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11706         (altivec_predicate_*): New.
11707
11708         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11709         Add C++ version of vec_*() functions.
11710
11711         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11712         (bdesc_2arg): Remove altivec predicates.
11713         (altivec_expand_builtin): Handle predicates.
11714         (altivec_init_builtins): Handle predicates.
11715         (altivec_expand_predicate_builtin): New.
11716
11717 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11718
11719         * pa.c (DO_FRAME_NOTES): Move forward.
11720         (store_reg): Revise handling of frame notes.
11721         (load_reg): Likewise.
11722         (set_reg_plus_d): Likewise.
11723         (hppa_expand_prologue): Likewise.
11724         (hppa_expand_epilogue): Likewise.
11725
11726 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11727
11728         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11729
11730 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11731
11732         PR c/4475, c++/3780:
11733         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11734         * c-common.h (SWITCH_TYPE): Define.
11735         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11736         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11737         Rename spareness variable to sparseness.
11738         (expand_end_case_type): Renamed from expand_end_case, use orig_type
11739         if non-NULL instead of TREE_TYPE (orig_index).
11740         * tree.h (expand_end_case_type): Renamed from expand_end_case.
11741         (expand_end_case): Define using expand_end_case_type.
11742         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11743         to expand_end_case_type.
11744         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11745
11746 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11747
11748         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11749         (BIGGEST_ALIGNMENT): Change to 128.
11750
11751 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11752
11753         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11754
11755 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11756
11757         * pa.md (call_internal_reg_64bit): Remove unused variable.
11758
11759 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
11760
11761         * config/arm/arm.h (machine_function): Add uses_anonymous_args
11762         field.
11763         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11764         * config/arm/arm.c (current_function_anonymous_args): Delete,
11765         replace uses with cfun->machine->uses_anonymous_args.
11766         (arm_reorg): Do not reset uses_anonymous_args.
11767
11768         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11769         any geenral register.
11770
11771 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
11772
11773         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11774         the entry block.
11775
11776 2002-02-04  Richard Henderson  <rth@redhat.com>
11777
11778         * combine.c (force_to_mode): Remove STACK_BIAS code.
11779         (nonzero_bits): Likewise.  Replace sp/fp special case with
11780         REGNO_POINTER_ALIGN.
11781
11782         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11783         (HARD_FRAME_POINTER_REGNUM): New.
11784         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11785         (FIXED_REGS, CALL_USED_REGS): Update.
11786         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11787         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11788         (HARD_REGNO_NREGS): Update for SFP.
11789         (STACK_POINTER_OFFSET): Include bias here ...
11790         (FIRST_PARM_OFFSET): ... not here.
11791         (STACK_BIAS): Remove.
11792         (INIT_EXPANDERS): New.
11793         (STARTING_FRAME_OFFSET): Do not include bias.
11794         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11795         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11796         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11797         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11798         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11799         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11800         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11801         (MUST_SAVE_REGISTER): Likewise.
11802         (sparc_flat_function_prologue): Likewise.
11803         (sparc_flat_function_epilogue): Likewise.
11804         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11805         (sparc_init_modes): SFP is GENERAL_REGS.
11806         (sparc_builtin_saveregs): SFP does not have bias applied.
11807
11808 2002-02-04  Richard Henderson  <rth@redhat.com>
11809
11810         * config/alpha/alpha.c (current_function_is_thunk): Don't check
11811         current_function_is_thunk.
11812         (alpha_sa_mask): Distinguish between current_function_is_thunk
11813         called from ASM_OUTPUT_MI_THUNK and not.
11814         (alpha_does_function_need_gp): Thunks always need gp.
11815         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11816         (alpha_output_mi_thunk_osf): New.
11817         * config/alpha/alpha-protos.h: Update.
11818         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11819
11820 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
11821
11822         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11823         function types, not when they're taken away.
11824
11825 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
11826
11827         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11828         CODE_LABEL and jump table when replacing a table jump with a
11829         simple jump.
11830
11831 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11832
11833         * config/s390/s390-protos.h (legitimize_la_operand,
11834         s390_secondary_input_reload_class, s390_plus_operand,
11835         s390_expand_plus_operand): Add prototypes.
11836
11837         config/s390/s390.c (s390_secondary_input_reload_class,
11838         s390_plus_operand, s390_expand_plus_operand): New functions.
11839
11840         (struct s390_address): New member 'pointer'.
11841         (s390_decompose_address): Compute it.
11842         (legitimate_la_operand_p): Use it.
11843         (legitimize_la_operand): New function.
11844         (movti, movdi, movdf splitters): Call it.
11845
11846         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11847         (PREDICATE_CODES): Add s390_plus_operand.
11848
11849         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11850         (la_ccclobber): Allow GENERAL_REGS as output operand.
11851
11852         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11853         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11854         (*la_64, *la_31, reload_indi, reload_insi): ... these.
11855
11856 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11857
11858         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11859         register names for regular asm () construct.
11860
11861 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11862
11863         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11864         registers.
11865
11866 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11867
11868         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11869         pat for recog.
11870
11871 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
11872
11873         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11874         constant pool to be identical by string address and index.
11875
11876 2002-02-04  Anthony Green  <green@redhat.com>
11877
11878         * output.h (SECTION_OVERRIDE): Define.
11879         * varasm.c (named_section): Obey SECTION_OVERRIDE.
11880
11881 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11882
11883         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11884         by existing arm*-*-netbsd* (a.out) target.
11885         (ns32k-*-netbsdelf*): Likewise.
11886         (sparc-*-netbsdelf*): Likewise.
11887         (vax-*-netbsdelf*): Likewise.
11888
11889 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
11890
11891         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11892         headers and libobjc headers.
11893
11894 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
11895
11896         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11897         (_mingw.h): Remove duplicate include.
11898
11899 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11900
11901         * config.gcc: Set cpu_type to m68k for 68010, as well.
11902         (m68010-*-netbsdelf*): New...
11903         (m68k*-*-netbsdelf*): ...targets.
11904         * config/m68k/netbsd-elf.h: New file.
11905
11906 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11907
11908         * config/h8300/h8300.c (hand_list): Move inside function_arg.
11909
11910 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11911
11912         * config/h8300/h8300.c (h8_push_ops): Move inside
11913         h8300_init_once.
11914         (h8_pop_ops): Likewise.
11915         (h8_move_ops): Likewise.
11916
11917 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11918
11919         * config/h8300/h8300.c (os_task): Make it static.
11920         (monitor): Likewise.
11921         (pragma_saveall): Likewise.
11922
11923 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
11924
11925         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11926         constant is a valid sign-extension for Pmode.
11927
11928 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11929
11930         * config/h8300/h8300.c: Fix formatting.
11931
11932 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11933
11934         * config/h8300/h8300.md: Fix formatting.
11935
11936 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11937
11938         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11939         predicates of operands[1].  Split the patterns for each
11940         processor variant.
11941
11942 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11943
11944         * config/h8300/h8300.md (xor patterns): Tighten the predicates
11945         of operands[1] to register_operand.
11946
11947 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11948
11949         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11950         * cpphash.c (_cpp_init_hashtable): Similarly.
11951         * cppinit.c (cpp_create_reader): Default the signed_char flag.
11952         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11953         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11954         (cpp_handle_option): Handle the new options.
11955         * cpplex.c (cpp_interpret_charconst): Use new flag.
11956         * cpplib.h (struct cpp_options): New member signed_char.
11957         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11958         (cpp_options): Handle -fsigned-char and -funsigned-char.
11959         (static_specs): Remove signed_char_spec.
11960         (do_spec1): Don't handle %c.
11961         * system.h: Poison SIGNED_CHAR_SPEC.
11962         * tradcif.y (yylex): Use flag_signed_char.
11963         * tradcpp.h (flag_signed_char): New.
11964         * tradcpp.c (flag_signed_char): New.
11965         (main): Handle new command-line options.
11966         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11967 config:
11968         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11969         * avr/avr.h: Remove old comments.
11970         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11971         (CC1_SPEC): Pass -fsigned-char if -mic*.
11972         (SIGNED_CHAR_SPEC): Remove.
11973 doc:
11974         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11975
11976 2002-02-01  Eric Christopher  <echristo@redhat.com>
11977
11978         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11979         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11980         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11981         (ASM_OUTPUT_REG_POP): Ditto.
11982
11983 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11984
11985         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11986         patch.
11987
11988 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11989
11990         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11991
11992 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11993
11994         PR c/5304:
11995         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11996         unconditionally.
11997
11998 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11999
12000         * cfganal.c: Include tm_p.h.
12001         (keep_with_call_p): Fix the test that determines if a register holds
12002         the return value of a call.
12003
12004 2002-02-01  DJ Delorie  <dj@redhat.com>
12005
12006         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
12007         we are given conflicting registers, switch to the other one we
12008         had allocated for us.
12009         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
12010         as TImode so we know when the "other" register is available.
12011
12012 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
12013
12014         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
12015         sparc/sparc_bi.h.
12016
12017 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
12018
12019         * cfganal.c (keep_with_call_p): New function.
12020         (flow_call_edges_add): Prevent splitting a block between a call and
12021         a single-set instruction that should be kept in the same block.
12022
12023 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12024
12025         * doc/install.texi (avr): Update outdated URL.
12026
12027 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
12028
12029         * config/stormy16/stormy16.md (pushqi): New.
12030         (popqi): New.
12031         (pushhi): New.
12032         (pophi): New.
12033         (movhi): Remove stack operands.
12034         (movqi): Likewise.
12035         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
12036         nonimmediate_nonstack_operand.
12037         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
12038         New.
12039         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
12040         New.
12041
12042 2002-01-31  Jason Merrill  <jason@redhat.com>
12043
12044         * Makefile.in (c-parse.c): Handle .output file.
12045         * objc/Make-lang.in (objc-parse.c): Likewise.
12046
12047 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
12048
12049         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
12050         the -me[lb] option is given.  Don't output the default flag
12051         twice.
12052
12053 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
12054
12055         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
12056         the primary source file; this has not been done yet.
12057         * c-decl.c (c_expand_body): Reset input_filename from
12058         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
12059
12060 2002-01-31  Kazu Hirata  <kazu@hxi.com>
12061
12062         * rtlanal.c (subreg_regno_offset): Do not use
12063         SUBREG_REGNO_OFFSET.
12064         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
12065         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
12066
12067 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
12068
12069         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
12070         version rather than GNATS version in --version output.
12071
12072 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
12073
12074         * ifcvt.c (noce_process_if_block): Make a copy of the destination
12075         when copying back from a temporary.
12076
12077 2002-01-30  Richard Henderson  <rth@redhat.com>
12078
12079         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
12080         and new_dest are the same.
12081
12082 2002-01-30  Richard Henderson  <rth@redhat.com>
12083
12084         PR opt/5076
12085         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
12086         * rtl.c (note_insn_name): Update.
12087         * emit-rtl.c (remove_unnecessary_notes): Kill it.
12088         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
12089         to perform loop rotation.
12090         (expand_exit_loop_top_cond): New.
12091         * tree.h (expand_exit_loop_top_cond): Declare it.
12092         * c-semantics.c (genrtl_while_stmt): Use it.
12093         (genrtl_for_stmt): Likewise.
12094
12095 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
12096
12097         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
12098         arguments to 64-bit boundaries on 64-bit ABIs.
12099
12100 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
12101
12102         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
12103
12104 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
12105
12106         * c-decl.c (grokdeclarator): Handle type being a typedef for an
12107         invalid type.
12108
12109 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
12110
12111         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
12112         * config/sparc/sparc_bi.h: Remove file.
12113         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
12114
12115 2002-01-30  Richard Henderson  <rth@redhat.com>
12116
12117         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
12118
12119 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
12120
12121         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
12122
12123 2002-01-30  Jason Merrill  <jason@redhat.com>
12124
12125         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
12126         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
12127         (reg_save): Use DW_CFA_offset_extended_sf instead.
12128
12129         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
12130
12131 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12132
12133         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
12134         in cselib_lookup.
12135
12136 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
12137
12138         * rs6000.md ("*call_value_local32"): Remove constraints.
12139         ("*call_value_local64"): Same.
12140         ("*call_value_indirect_nonlocal_aix32"): Same.
12141         ("*call_value_nonlocal_aix32"): Same.
12142         ("*call_value_indirect_nonlocal_aix64"): Same.
12143         ("*call_value_nonlocal_aix64"): Same.
12144         ("*call_value_nonlocal_sysv"): Same.
12145
12146 2002-01-29  Richard Henderson  <rth@redhat.com>
12147
12148         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
12149
12150 2002-01-29  Richard Henderson  <rth@redhat.com>
12151
12152         * expr.c (force_operand): Ignore flag_pic for detecting pic
12153         address loads.
12154         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
12155         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
12156         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
12157         instead of open-coded loop.
12158         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
12159         be fixed when in use.
12160
12161 2002-01-29  Richard Henderson  <rth@redhat.com>
12162
12163         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
12164         * sched-rgn.c (propagate_deps): Update them.
12165         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
12166         clobbers list when either gets too long.
12167
12168 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12169
12170         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
12171         and INDEX_REGS the same as GENERAL_REGS.
12172         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
12173
12174 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12175
12176         * tree.c (build_nonstandard_integer_type): Correct prototype.
12177
12178 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
12179
12180         * config/s390/s390.md (movstrsico, movstrdix_64,
12181         movstrsix_31): Remove, replace by ...
12182         (movstrdi_short, movstrsi_short, movstrdi_long,
12183         movstrsi_long): ... these.  New.
12184         (movstrdi, movstrsi): Adapt.
12185
12186         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
12187         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
12188         Remove unnecessary CC clobber.
12189         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
12190         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
12191
12192         (divmoddi4): Don't partially initialize TImode register.
12193
12194 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
12195
12196         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
12197
12198 2002-01-29  Richard Henderson  <rth@redhat.com>
12199
12200         * flow.c (print_rtl_and_abort): Remove.
12201         (print_rtl_and_abort_fcn): Remove.
12202         (verify_local_live_at_start): Use dump_bb instead.
12203         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
12204         (verify_wide_reg_1): Return 2 on mode test failure.
12205
12206 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12207
12208         PR c/3325, c/3326, c/2511, c/3347
12209         * c-decl.c (enum_decl_context): Remove BITFIELD.
12210         (grokdeclarator): Take bitfield width as an input.
12211         Ensure bitfields are given the correct type.  Perform
12212         bitfield width validation with build_bitfield_integer_type
12213         rather than waiting for finish_struct.
12214         (grok_typename, grok_typename_in_parm_context, start_decl,
12215         push_parmdecl, grokfield, start_function): Update calls to
12216         grokdeclarator.
12217         (build_bitfield_integer_type): New function.
12218         (finish_struct): Move bitfield validation to grokdeclarator
12219         and build_bitfield_integer_type.
12220         * tree.c (build_nonstandard_integer_type): New function.
12221         * tree.h (build_nonstandard_integer_type): New prototype.
12222 objc:
12223         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
12224
12225 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12226
12227         PR other/1502:
12228         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
12229         don't ignore unrecognized -W* options.
12230         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
12231         * cpplib.h (cpp_handle_option): Adjust prototype.
12232         * c-decl.c (c_decode_options): Pass 0 as last argument to
12233         cpp_handle_option.
12234
12235         PR c/2896:
12236         * gcc.c (cpp_unique_options): Split from cpp_options.
12237         (cpp_options): Source cpp_unique_options.
12238         (default_compilers): Use cpp_unique_options instead of cpp_options
12239         when used together with cc1_options.
12240         (static_specs): Add cpp_unique_options.
12241         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
12242         when used together with cc1_options.
12243
12244 2002-01-29  Kazu Hirata  <kazu@hxi.com>
12245
12246         * config/h8300/h8300-protos.h: Update the prototype of
12247         output_a_shift.
12248         * config/h8300/h8300.c (output_a_shift): Remove an unused
12249         argument 'insn'.  Remove redundant code.
12250         * config/h8300/h8300.md: Adust to the new prototype of
12251         output_a_shift.
12252
12253 2002-01-29  Kazu Hirata  <kazu@hxi.com>
12254
12255         * config/h8300/h8300-protos.h: Update the prototypes of
12256         emit_a_rotate and expand_a_rotate.
12257         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
12258         first argument to 'enum rtx_code'.
12259         (expand_a_rotate): Likewise.
12260
12261 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12262
12263         * config/h8300/h8300-protos.h: Update the prototype of
12264         output_simode_bld.
12265         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
12266         'log2'.
12267         * config/h8300/h8300.md: Adjust to the new prototype.
12268
12269 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12270
12271         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
12272         redundant code.
12273
12274 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12275
12276         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
12277         is a fixed register before returning pic_offset_table_rtx.
12278         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
12279         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
12280
12281 2002-01-28  Jason Merrill  <jason@redhat.com>
12282
12283         * dwarf2.h: Sync with src version.
12284
12285 2002-01-28  Paul Koning  <pkoning@equallogic.com>
12286
12287         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
12288         BT_FN_VOID_PTR_VAR.
12289         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
12290         * doc/extend.texi (__builtin_prefetch): Update documentation:
12291         first argument is now const void ptr.
12292
12293 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12294
12295         * config/h8300/h8300-protos.h: Remove an unused prototype.
12296
12297 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
12298
12299         * toplev.c (lang_independent_init): Round up identifier size.
12300
12301 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
12302
12303         * config.gcc: Revert previous change.
12304
12305 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
12306
12307         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12308
12309 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
12310
12311         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12312         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
12313         other non-elf netbsd config frags.
12314         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12315         collect2 will does that.
12316         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12317         shared-lib frobbing will work.
12318
12319 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12320
12321         * config/h8300/h8300.h: Fix formatting.
12322         * config/h8300/h8300.md: Likewise.
12323
12324 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
12325
12326         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12327         the old, removed AAA_standards fix.
12328         * fixinc/fixincl.x: Rebuilt.
12329
12330 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
12331
12332         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12333         atexit call in crtbegin, hooked in after call to frame_dummy;
12334         register EH before registering __fini__start.
12335
12336 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
12337
12338         * config/rs6000/altivec.h: Remove spurious semicolons.
12339
12340 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12341
12342         * config/h8300/h8300.md: Replace dead bit extraction patterns
12343         with ones that work.
12344
12345 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12346
12347         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12348         if not STRICT_ALIGNMENT.
12349         * rtl.h (MEM_ALIGN): Likewise.
12350
12351 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12352
12353         * doc/invoke.texi (-fdump-translation-unit): Revert this
12354         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12355
12356 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12357
12358         * config/h8300/h8300.md (define_constants): New.
12359         (anonymous patterns) Use defined constants appropriately.
12360
12361 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12362
12363         * config/h8300/h8300.c (function_arg): Remove redundant code.
12364
12365 2002-01-26  Richard Henderson  <rth@redhat.com>
12366
12367         * sched-deps.c (reg_pending_uses_head): New.
12368         (reg_pending_barrier): Rename from reg_pending_sets_all.
12369         (find_insn_list): Don't mark inline.
12370         (find_insn_mem_list): Remove.
12371         (add_dependence_list, add_dependence_list_and_free): New.
12372         (flush_pending_lists): Replace only_write param with separate
12373         for_read and for_write parameters.  Update all callers.  Use
12374         add_dependence_list_and_free.
12375         (sched_analyze_1): Do not add reg dependencies here; just set
12376         the pending bits.  Use add_dependence_list.
12377         (sched_analyze_2): Likewise.
12378         (sched_analyze_insn): Replace schedule_barrier_found with
12379         reg_pending_barrier.  Add all dependencies for pending reg
12380         uses, sets, and clobbers.
12381         (sched_analyze): Don't add reg dependencies for calls, just
12382         set pending bits.  Use regs_invalidated_by_call.  Treat
12383         sched_before_next_call as a normal list, not a fake insn.
12384         (init_deps): No funny init for sched_before_next_call.
12385         (free_deps): Free pending mems lists.  Don't zero reg_last.
12386         (init_deps_global): Init reg_pending_uses.
12387         (finish_deps_global): Free it.
12388         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
12389         (find_insn_mem_list): Remove.
12390         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12391         (propagate_deps): Use them.  Zero temp mem lists.
12392
12393 2002-01-26  Richard Henderson  <rth@redhat.com>
12394
12395         * Makefile.in (CRTSTUFF_CFLAGS): New.
12396         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12397         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12398         crtstuff.c instead of alpha assembly version.
12399         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12400         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
12401         not FORCE_{INIT,FINI}_SECTION_ALIGN.
12402         (__do_global_dtors_aux): Mark used.
12403         (frame_dummy, __do_global_ctors_aux): Mark used.
12404         (fini_dummy, init_dummy): Remove.
12405
12406         * config/alpha/crtbegin.asm: Remove file.
12407         * config/alpha/crtend.asm: Remove file.
12408         * config/alpha/t-crtbe: Remove file.
12409         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12410         (LINK_EH_SPEC): New.
12411
12412         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12413         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
12414         calling constructors.
12415         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12416
12417         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12418         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12419         CRT_END_INIT_DUMMY hack.
12420         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12421         FORCE_{INIT,FINI}_SECTION_ALIGN.
12422
12423         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12424         FORCE_{INIT,FINI}_SECTION_ALIGN.
12425
12426         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12427         invocation sequence.
12428         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12429
12430         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12431         (FORCE_CODE_SECTION_ALIGN): New.
12432
12433 2002-01-26  Richard Henderson  <rth@redhat.com>
12434
12435         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12436
12437 2002-01-26  Richard Henderson  <rth@redhat.com>
12438
12439         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12440         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12441
12442 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12443
12444         * config/h8300/h8300.md: Remove bit extraction patterns that
12445         cannot be triggered.
12446         Restrict each bit extraction pattern to a variant on which the
12447         pattern is tested.
12448
12449 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
12450
12451         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12452
12453 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12454
12455         * config/h8300/h8300.md: Remove bit test patterns that cannot
12456         be triggered.
12457         Restrict each bit test pattern to a variant on which the
12458         pattern is tested.
12459
12460 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12461
12462         * builtins.c (expand_builtin_strncat): Remove redundant check for
12463         INTEGER_CST.
12464
12465 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12466
12467         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12468         default setting.
12469         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12470         existing setting.
12471
12472 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12473
12474         * dbxout.c (dbxout_init): Use assemble_name rather than just
12475         stripping off the first character.
12476         (dbxout_source_file): Likewise.
12477
12478 2002-01-25  DJ Delorie  <dj@redhat.com>
12479
12480         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12481         using rtx_equal_p, not by comparing pointers.
12482
12483 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
12484
12485         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12486         for PIC_OFFSET_TABLE_REGNUM.
12487         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12488
12489 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12490
12491         * config.gcc (x86_64-*-freebsd*): New target.
12492         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12493         value.
12494         (i[34567]86-*-freebsd*): Don't include svr4.h.
12495         * config/i386/freebsd64.h: New file.
12496
12497 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
12498
12499         * config/alpha/x-vms (version): Make static.
12500
12501         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12502         in previous checkin.
12503
12504         * Makefile.in (install-headers-cp): New target.
12505         * config.gcc (alpha-dec-*vms*): Install headers with
12506         install-headers-cp
12507
12508 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
12509
12510         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12511         avoid it's copies.
12512
12513 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12514
12515         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12516         of compare_tree_int.
12517         (expand_builtin_strncat): Likewise.
12518         * c-decl.c (finish_struct): Use tree_low_cst.
12519         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12520         * tree.c (compare_tree_int): Likewise.
12521
12522 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
12523
12524         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12525         adjustments even if they are implemented by more than two insns.
12526
12527 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12528
12529         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12530         * df.h (struct ref): Kill B.
12531         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12532
12533         * basic-block.h (PROP_EQUAL_NOTES): New flag.
12534         * flow.c (propagate_one_insn): Use it.
12535         (mark_used_regs): Handle NIL.
12536
12537 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12538
12539         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12540         to help folding.
12541
12542 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
12543
12544         * rs6000.md (prefetch): Make address V4SI mode so that the address
12545         is restricted to legitimate form for instruction.
12546
12547 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
12548
12549         * doc/install.texi (xtensa-*-elf): New target.
12550         (xtensa-*-linux*): New target.
12551         * doc/contrib.texi: Add myself.
12552
12553 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
12554
12555         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12556         purpose register to hold an SImode (or smaller) value.
12557
12558 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
12559
12560         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12561         registry only.
12562         * crtstuff.c: Likewise.
12563
12564 2002-01-25  Kazu Hirata  <kazu@hxi.com>
12565
12566         * config/h8300/h8300.md (negation patterns): Tighten
12567         predicates to register_operand.
12568
12569 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
12570
12571         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12572         mode, not Pmode.
12573
12574         * builtins.c (expand_builtin_prefetch): Same.
12575
12576 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12577
12578         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12579         modes.
12580
12581 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12582
12583         * config/h8300/h8300.c (print_operand): Remove support for
12584         operand character 'A'.
12585         * config/h8300/h8300.md (three anonymous patterns): Replace
12586         operand character 'A' with either 'T' or 'S'.
12587
12588 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12589
12590         * config/h8300/h8300.c (print_operand): Remove support for
12591         operand character 'U'.
12592
12593 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
12594
12595         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12596
12597 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
12598
12599         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12600         values to be assigned to the stack pointer.
12601
12602 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
12603
12604         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12605         to const_double needs to be done right for big-endian systems.
12606
12607 2002-01-24  Jason Merrill  <jason@redhat.com>
12608
12609         PR c++/2432
12610         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12611         to can_throw_internal.
12612
12613 2002-01-23  Richard Henderson  <rth@redhat.com>
12614
12615         * fold-const.c (fold): Change UINT_MAX test to check vs precision
12616         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
12617
12618 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12619
12620         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12621         (symGOT2reg): Use them, then set as GOT value as unchanging.
12622         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
12623         as a temporary, if possible.
12624         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
12625         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12626
12627 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12628
12629         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12630         accept to accept 0x80 as operands[2].
12631
12632 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12633
12634         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12635
12636 2002-01-23  Richard Henderson  <rth@redhat.com>
12637
12638         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12639
12640 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
12641
12642         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12643         (parmlist_or_identifiers_1): Verify that only a parmlist follows
12644         an attribute.
12645
12646 2002-01-23  Richard Henderson  <rth@redhat.com>
12647
12648         * expr.c (move_by_pieces_1): Extend size before negation.
12649
12650         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12651         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12652         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12653         * config/m68k/t-m68kelf: Likewise.
12654
12655 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
12656
12657         * config/xtensa/elf.h: New file.
12658         * config/xtensa/lib1funcs.asm: New file.
12659         * config/xtensa/lib2funcs.S: New file.
12660         * config/xtensa/linux.h: New file.
12661         * config/xtensa/t-xtensa: New file.
12662         * config/xtensa/xtensa-config.h: New file.
12663         * config/xtensa/xtensa-protos.h: New file.
12664         * config/xtensa/xtensa.c: New file.
12665         * config/xtensa/xtensa.h: New file.
12666         * config/xtensa/xtensa.md: New file.
12667         * config.gcc (xtensa-*-elf*): New target.
12668         (xtensa-*-linux*): New target.
12669         * cse.c (canon_hash): Compare rtx pointers instead of register
12670         numbers.  This is required for the Xtensa port.
12671         * integrate.c (copy_insn_list): Handle case where the static
12672         chain is in memory and the memory address has to be copied to
12673         a register.
12674         * doc/invoke.texi (Option Summary): Add Xtensa options.
12675         (Xtensa Options): New node.
12676         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12677
12678 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
12679
12680         * diagnostic.c (internal_error): Do ICE suppression only
12681         when ENABLE_CHECKING is not defined.
12682
12683         * c-typeck.c (require_complete_type): Return error_mark_node
12684         if type is error_mark_node.
12685
12686 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
12687
12688         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12689         -Os and issue a warning.
12690
12691 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
12692
12693         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12694         current (lack of) need for host configuration by hand.
12695
12696         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12697         references.  Documentation of some target macros moved from
12698         hostconfig.texi to tm.texi.
12699
12700 2002-01-23  Will Cohen  <wcohen@redhat.com>
12701
12702         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12703         defined.
12704
12705 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12706
12707         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12708         operand[3].
12709
12710 2002-01-23  Jason Merrill  <jason@redhat.com>
12711
12712         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12713
12714         * function.c (assign_parms): Don't put args of inline functions
12715         into registers when not optimizing.
12716
12717 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
12718
12719         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12720         (prologue_use): New pattern.
12721         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12722         preference to gen_rtx_USE.
12723         (thumb_expand_prologue): Use gen_prologue_use in preference to
12724         gen_rtx_USE.
12725         (thumb_expand_epilogue): Use gen_prologue_use in preference to
12726         gen_rtx_USE.
12727
12728 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
12729
12730         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12731
12732 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12733
12734         PR c/3504
12735         * doc/extend.texi: Correct documentation of __alignof__.
12736
12737 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
12738
12739         * params.h: Rename arguments of DEFPARAM so that it will be
12740         recognized as a translation keyword.
12741
12742 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12743
12744         * extend.texi: Document altivec functions.
12745         Fix N-bit adjectives in X86 builtin documentation.
12746
12747 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
12748
12749         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12750         auto_inc_dec values.
12751
12752 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
12753
12754         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12755         after backslash.
12756         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12757
12758 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
12759
12760         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12761
12762 2002-01-22  Richard Henderson  <rth@redhat.com>
12763
12764         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12765         copy_insn not copy_rtx.
12766
12767 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
12768
12769         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12770         "nonzero" as that might add "1" bits.  Ensure "constop" is
12771         properly sign extened.
12772         (force_to_mode): Tweak for sign extended constop.
12773
12774 2002-01-22  Richard Henderson  <rth@redhat.com>
12775
12776         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12777         for_each_rtx instead of assuming we're already looking at the MEM.
12778         (split_small_symbolic_mem_operand): Likewise.
12779         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12780         * config/alpha/alpha.md (small symbolic memory splitters): Update.
12781
12782 2002-01-22  Richard Henderson  <rth@redhat.com>
12783
12784         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12785         sequence number for the literal.
12786         (divmoddi_internal_er): Likewise.
12787
12788 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12789
12790         PR java/4972
12791         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12792         in LIBICONV variable.
12793         * configure: Regenerated.
12794
12795 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
12796
12797         * dependence.c (build_def_use): Remove array_idx.
12798
12799         * dwarfout.c (last_filename): Remove.
12800         (output_compile_unit_die): Remove last_filename.
12801
12802 2002-01-22  Roger Sayle  <roger@eyesopen.com>
12803             Richard Henderson  <rth@redhat.com>
12804
12805         PR opt/3640
12806         * fold-const.c (fold): Optimize unsigned comparisons against
12807         UINT_MAX (and similar unsigned constants).
12808
12809 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
12810
12811         * Makefile.in (loop.o): Depend on OPTABS_H.
12812         * loop.c (emit_prefetch_instructions): Check the prefetch operand
12813         against the predicate.
12814
12815         PR target/5379
12816         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12817         for the address operand.
12818
12819 2002-01-22  Richard Henderson  <rth@redhat.com>
12820
12821         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12822
12823 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12824
12825         PR other/5450
12826         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12827         preprocessor flags.
12828
12829 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
12830
12831         * config.gcc (x86_64-*-netbsd*): New target.
12832         * config/i386/netbsd64.h: New file.
12833
12834 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12835
12836         * regrename.c (kill_value): Fix typo.
12837
12838 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12839
12840         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12841
12842         * config/rs6000/rs6000.h: Same.
12843
12844         * function.c (instantiate_virtual_regs): Remove
12845         STARTING_FRAME_PHASE.
12846         (assign_stack_local_1): Same.
12847         Calculate frame phase.
12848
12849 2002-01-22  Nick Clifton  <nickc@redhat.com>
12850
12851         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12852         variable declaration to outer scope in order to simplify
12853         future extensions.
12854         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12855         arm_hard_regno_mode_ok.
12856         * config/arm/arm-protos.h: Add a prototype for
12857         arm_hard_regno_mode_ok.
12858         * config/arm/arm.c (soft_df_operand): Remove now redundant
12859         check for DImode values using IP_REGNUM.
12860         (nonimmediate_soft_df_operand): Remove now redundant check for
12861         DImode values using IP_REGNUM.
12862         (arm_hard_regno_mode_ok): New function. New check: make sure
12863         that DImode values are not stored in IP_REGNUM.
12864
12865         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12866         note with a USE.
12867         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12868
12869 2002-01-22  Jason Merrill  <jason@redhat.com>
12870
12871         * c-semantics.c (genrtl_compound_stmt): Only check nesting
12872         consistency if this COMPOUND_STMT is scoped.
12873
12874 2002-01-22  Kazu Hirata  <kazu@hxi.com>
12875
12876         * predict.c: Fix formatting.
12877         * print-tree.c: Likewise.
12878         * protoize.c: Likewise.
12879         * real.h: Likewise.
12880         * rtl.h: Likewise.
12881         * sbitmap.h: Likewise.
12882         * scan.c: Likewise.
12883         * sched-deps.c: Likewise.
12884         * sched-vis.c: Likewise.
12885         * sdbout.c: Likewise.
12886         * sibcall.c: Likewise.
12887         * ssa.c: Likewise.
12888         * ssa-ccp.c: Likewise.
12889         * ssa-dce.c: Likewise.
12890         * stmt.c: Likewise.
12891         * stor-layout.c: Likewise.
12892         * system.h: Likewise.
12893
12894 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12895
12896         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12897         if fits in bounds of base type.
12898
12899         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12900         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12901         (add_bound_info, default): If can't find a context, make a
12902         SAVE_EXPR.
12903         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12904
12905 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
12906
12907         * c-typeck.c (parser_build_binary_op): If result from
12908         build_binary_op is ERROR_MARK just return error_mark_node without
12909         further processing.
12910
12911 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
12912
12913         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12914         Split a.out-specific bits into...
12915         * config/netbsd-aout.h: ...this.
12916         * config/netbsd-elf.h: New file.
12917         * config/alpha/netbsd-elf.h: Remove.
12918         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12919         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12920         (STARTFILE_SPEC): Remove redundant definition.
12921         (ENDFILE_SPEC): Likewise.
12922         (LINK_SPEC): Likewise.
12923         (CPP_SPEC): Likewise.
12924         (ASM_SPEC): Likewise.
12925         (LIB_SPEC): Likewise.
12926         (SWITCH_TAKES_ARG): Likewise.
12927         (TARGET_MEM_FUNCTIONS): Likewise.
12928         (CPP_PREDEFINES): Redefine.
12929         (ASM_FINAL_SPEC): Remove redefinition.
12930         (ASM_COMMENT_START): Redefine.
12931         (FUNCTION_PROFILER): Define.
12932         (TARGET_VERSION): Redefine.
12933         Comment and formatting cleanup.
12934         * config/i386/netbsd.h: Include <netbsd-aout.h>.
12935         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12936         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12937         big- or little-endian.
12938         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12939         * config.gcc (*-*-netbsd*): Add definitions common to all
12940         NetBSD configs.
12941         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12942         gnu_ld definitions.  Add netbsd-elf.h to and remove
12943         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
12944         tmake_file, and don't lose previous tmake_file contents.
12945         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12946         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12947         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
12948         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12949         (mipsel-*-netbsd*): Rename this to...
12950         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
12951         mips/little.h to tm_file for mips*el-*.
12952         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12953         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12954         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12955
12956 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12957
12958         * pa-protos.h (reg_before_reload_operand): New function prototype.
12959         * pa.c (reg_before_reload_operand): New function implementation.
12960         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
12961         contraints to "*m".
12962
12963 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12964
12965         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12966
12967 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12968
12969         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12970         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12971         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12972         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12973         (ENDFILE_SPEC): Undefine.
12974         (STARTFILE_SPEC): Redefine for PA.
12975
12976 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12977
12978         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12979
12980 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
12981
12982         * config.gcc: Add entries to supported PowerPC --with-cpu
12983         types.
12984
12985 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
12986
12987         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12988         true for 64-bit mode only SSE registers in 32-bit mode.
12989
12990 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12991
12992         * unwind-dw2.c: Fix formatting.
12993         * unwind-dw2-fde.c: Likewise.
12994         * unwind-dw2-fde.h: Likewise.
12995         * unwind-pe.h: Likewise.
12996         * varasm.c: Likewise.
12997         * varray.h: Likewise.
12998
12999 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
13000
13001         Remove workaround for register stack overwrite bug in mmix.
13002         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
13003         support for TARGET_REG_STACK_FILL_BUG.
13004         * config/mmix/mmix.h: Remove member has_call_without_parameters.
13005         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
13006         Delete.
13007         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
13008         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
13009         -mno-reg-stack-fill-bug-workaround.
13010         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
13011         machine member has_call_without_parameters.
13012         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
13013         -mreg-stack-fill-bug-workaround and
13014         -mno-reg-stack-fill-bug-workaround.
13015         (MMIX Options): Ditto.
13016
13017 2002-01-21  Kazu Hirata  <kazu@hxi.com>
13018
13019         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
13020         as appropriate.
13021         Remove redundant code.
13022
13023 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
13024
13025         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
13026         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13027         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13028         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
13029         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
13030         out target macro definitions and non-target-specific comments
13031         mostly taken from old versions of the manual.
13032
13033 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13034
13035         * config/h8300/h8300.h: Fix comment formatting.
13036         * config/ia64/aix.h: Likewise.
13037         * config/ia64/ia64-protos.h: Likewise.
13038         * config/ia64/ia64.c: Likewise.
13039         * config/ia64/ia64.h: Likewise.
13040         * config/ia64/ia64intrin.h: Likewise.
13041         * config/ia64/linux.h: Likewise.
13042         * config/ia64/unwind-aix.c: Likewise.
13043         * config/ia64/unwind-ia64.c: Likewise.
13044
13045 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13046
13047         * config/h8300/h8300.c: Revise comments about shift code.
13048
13049 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13050
13051         * config/h8300/h8300.c (function_arg): Update a comment.
13052
13053 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13054
13055         * config/h8300/h8300.md: Update the comments at the beginning
13056         of the file.
13057
13058 2002-01-20  Kazu Hirata  <kazu@hxi.com>
13059
13060         * config/i370/i370.c: Fix comment formatting.
13061         * config/i370/i370.h: Likewise.
13062         * config/i370/i370.md: Likewise.
13063         * config/i370/linux.h: Likewise.
13064
13065 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13066
13067         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
13068
13069         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
13070         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
13071         in incomplete case.
13072
13073 2002-01-20  Graham Stott  <grahams@redhat.com>
13074
13075         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
13076
13077 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13078
13079         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
13080
13081 2002-01-19  Tom Rix  <trix@redhat.com>
13082
13083         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
13084
13085 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
13086
13087         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
13088
13089         * function.c (assign_stack_local_1): Adjust x_frame_offset with
13090         STARTING_FRAME_PHASE.
13091         (STARTING_FRAME_PHASE): New.
13092         (instantiate_virtual_regs): Check saneness of
13093         STARTING_FRAME_PHASE.
13094
13095         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
13096
13097 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
13098
13099         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
13100
13101 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13102
13103         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
13104         be used for bootstrapping GCC 3.0.
13105
13106 2002-01-18  Kazu Hirata  <kazu@hxi.com>
13107
13108         * config/h8300/h8300.md: Fix an insn length.
13109
13110 2002-01-18  Kazu Hirata  <kazu@hxi.com>
13111
13112         * bitmap.h: Fix comment formatting.
13113         * combine.c: Likewise.
13114         * cppfiles.c: Likewise.
13115         * c-pragma.h: Likewise.
13116         * c-typeck.c: Likewise.
13117         * df.c: Likewise.
13118         * dwarf2out.c: Likewise.
13119         * function.c: Likewise.
13120         * gcc.c: Likewise.
13121         * genattrtab.c: Likewise.
13122         * gthr-win32.h: Likewise.
13123         * haifa-sched.c: Likewise.
13124         * predict.c: Likewise.
13125         * rtlanal.c: Likewise.
13126         * rtl.h: Likewise.
13127         * unwind-dw2-fde.h: Likewise.
13128         * unwind-pe.h: Likewise.
13129         * vmsdbgout.c: Likewise.
13130
13131 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13132
13133         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
13134         if type_required and passed decl.
13135
13136 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
13137
13138         * config.gcc (cpu_type): Include altivec.h in powerpc
13139         extra_headers.
13140         Same for darwin.
13141
13142         * config/rs6000/altivec.h: New.
13143
13144 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
13145
13146         * doc/install.texi (*-ibm-aix*): Update assembler and exception
13147         handling information.
13148         * doc/trouble.texi (Interoperation): Add libstdc++ information
13149         for AIX.
13150         (Misunderstandings): Add template instantiation and static template
13151         member information for AIX.
13152
13153 2002-01-17  Jason Merrill  <jason@redhat.com>
13154
13155         * dbxout.c (dbxout_type): Support const and volatile.
13156
13157         * except.c (add_partial_entry): Remove backwards compatibility code.
13158         (end_protect_partials): Likewise.
13159
13160 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
13161
13162         * config/ia64/ia64.md (prologue_use): New.
13163         * config/ia64/ia64.c (ia64_expand_prologue): Use
13164         gen_prologue_use instead of gen_rtx_USE.
13165         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
13166         as CODE_FOR_pred_rel_mutex.
13167         (ia64_sched_reorder2): Likewise.
13168
13169 2002-01-16  Eric Christopher  <echristo@redhat.com>
13170
13171         * config/mips/r3900.h: Reformat.
13172         (SUBTARGET_CPP_SIZE_SPEC): Remove.
13173         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
13174         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
13175         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
13176         * config/mips/t-elf: Remove mips3 multilib.
13177
13178 2002-01-16  H.J. Lu <hjl@gnu.org>
13179
13180         * config/mips/linux.h: Include "mips/abi64.h".
13181
13182 2002-01-16  H.J. Lu <hjl@gnu.org>
13183
13184         * config/mips/t-linux: New.
13185
13186         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
13187
13188         * config/mips/linux.h: Don't include "gofast.h".
13189         (INIT_SUBTARGET_OPTABS): Removed.
13190
13191 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13192
13193         * config/h8300/h8300-protos.h: Replace emit_a_shift with
13194         output_a_shift.
13195         * config/h8300/h8300.c: Likewise.
13196         * config/h8300/h8300.md: Likewise.
13197
13198 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13199
13200         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
13201         spaces after an opcode name.
13202         (pushqi1_h8300hs): Likewise.
13203         (pushhi1_h8300hs): Likewise.
13204
13205 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13206
13207         * doc/extend.texi: Replace "option" with "attribute"
13208         appropriately.
13209
13210 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13211
13212         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
13213         (and:DI () (const_int -8)).
13214         (split_small_symbolic_mem_operand): Split
13215         (mem (and:DI () (const_int -8)).
13216
13217 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13218
13219         PR target/5309:
13220         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
13221         same way as TYPE_IMUL.
13222         (ultrasparc_sched_reorder): Likewise.
13223         * config/sparc/sparc.md (type): Add comment to update
13224         ultrasparc_sched_reorder when making changes.
13225
13226 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13227
13228         * doc/invoke.texi: Change the dump file name of block
13229         reordering pass from 28.bbro to 29.bbro.
13230         Mention -dk option.
13231
13232 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
13233
13234         * i386.md (minsf splitter): Fix pasto.
13235
13236 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
13237
13238         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
13239         to frame pointer initialisation instruction.
13240         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
13241         initialisation instruction.
13242         (soft_df_operand): Do not accept the IP register.
13243         (nonimmediate_soft_df_operand): Do not accept the IP register.
13244
13245 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13246
13247         PR target/5357:
13248         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
13249         MASK_V8 being both set.
13250
13251 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
13252
13253         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
13254         insn for GOT register; add REG_MAYBE_DEAD notes instead.
13255         config/s390/s390.md (call, call_value): Add GOT register to
13256         CALL_INSN_FUNCTION_USAGE where needed.
13257         (call_exp, call_value_exp): New.
13258
13259 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
13260
13261         * config/arm/arm.c: General formatting tidy up.
13262
13263 2002-01-16  Graham Stott  <grahams@redhat.com>
13264
13265         * calls.c (try_to_integrate): Use "(size_t)" intermediate
13266         cast and when casting an integer literal to "rtx" pointer.
13267         (expand_call): Likewise.
13268         * flow.c (try_pre_increment): Likewise.
13269         (find_use_as_address): Likewise.
13270         * integrate.c (expand_iline_function): Likewise.
13271         * regmove.c (try_auto_increment): Likewise.
13272
13273 2002-01-16  Graham Stott  <grahams@redhat.com>
13274
13275         * sched-rgn.c (passed): Use sbitmap_free.
13276         (header): Likewise.
13277         (inner): Likewise.
13278         (in_queue): Likewise.
13279         (in_stack): Likewise.
13280
13281 2002-01-15  Eric Christopher  <echristo@redhat.com>
13282
13283         * flow.c (propagate_one_insn): Change to use fatal_insn.
13284
13285 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13286
13287         * expmed.c (extract_fixed_bit_field): Remove unused code.
13288         * system.h: Poison SLOW_ZERO_EXTEND.
13289         * doc/tm.texi: Remove.
13290         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
13291         * config/arm/arm.h: Likewise.
13292         * config/avr/avr.h: Likewise.
13293         * config/clipper/clipper.h: Likewise.
13294         * config/convex/convex.h: Likewise.
13295         * config/d30v/d30v.h: Likewise.
13296         * config/dsp16xx/dsp16xx.h: Likewise.
13297         * config/elxsi/elxsi.h: Likewise.
13298         * config/fr30/fr30.h: Likewise.
13299         * config/h8300/h8300.h: Likewise.
13300         * config/i370/i370.h: Likewise.
13301         * config/i386/i386.h: Likewise.
13302         * config/m68k/m68k.h: Likewise.
13303         * config/mips/mips.h: Likewise.
13304         * config/ns32k/ns32k.h: Likewise.
13305         * config/pdp11/pdp11.h: Likewise.
13306         * config/pj/pj.h: Likewise.
13307         * config/s390/s390.h: Likewise.
13308         * config/sh/sh.h: Likewise.
13309         * config/stormy16/stormy16.h: Likewise.
13310         * config/v850/v850.h: Likewise.
13311         * config/vax/vax.h: Likewise.
13312         * config/we32k/we32k.h: Likewise.
13313
13314 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
13315
13316         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13317         (altivec_lvsl): Change constraint to b.
13318         (altivec_lvsr): Same.
13319         (altivec_lvebx): Same.
13320         (altivec_lvehx): Same.
13321         (altivec_lvewx): Same.
13322         (altivec_lvxl): Same.
13323         (altivec_lvx): Same.
13324         (altivec_stvx): Add parallel.
13325         (altivec_stvxl): Same.
13326         (altivec_stvehx): Same.
13327         (altivec_stvebx): Same.
13328         (altivec_stvebx): Same.
13329
13330 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
13331
13332         * config.gcc: Change altivec.h to altivec-defs.h.
13333
13334         * config/rs6000/altivec.h: Delete.
13335
13336         * config/rs6000/altivec-defs.h: Add.
13337
13338 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13339
13340         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13341         and UMOD modes.
13342
13343         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13344         less than or equal to eight bytes.
13345
13346         * vax.md (andsi3): Remove constraints and change SET destination
13347         operand type to nonimmediate_operand.
13348         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
13349         when it is a CONST_INT.
13350
13351 2002-01-15  Jason Merrill  <jason@redhat.com>
13352
13353         * c-common.def (FILE_STMT): New code.
13354         * c-common.c (statement_code_p): It's a statement.
13355         * c-common.h (stmt_tree_s): Add x_last_filename.
13356         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13357         (last_expr_filename): New macro.
13358         * c-semantics.c (begin_stmt_tree): Initialize it.
13359         (add_stmt): If the filename changed, also insert a
13360         FILE_STMT.
13361         (expand_stmt): Handle seeing one.
13362
13363 2002-01-15  Eric Christopher  <echristo@redhat.com>
13364
13365         * flow.c (propagate_one_insn): Add error message and print out
13366         insn for debugging.
13367
13368 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13369
13370         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13371         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13372         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13373         TRAMPOLINE_ALIGNMENT.
13374         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
13375         to be in bits.
13376         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13377         PCC_BITFIELD_TYPE_MATTERS.
13378         * config/interix.h (STDC_VALUE): Remove.  Use
13379         STDC_0_IN_SYSTEM_HEADERS.
13380         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13381         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13382         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13383
13384 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13385
13386         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13387         not work on this platform currently.
13388
13389 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13390
13391         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13392         readonly_warning in _().
13393
13394 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
13395
13396         * gcc.c (delete_if_ordinary): Backout previous change.
13397
13398 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13399
13400         * config/h8300/h8300.c (print_operand): Remove support for
13401         unused operand characters.
13402
13403         * read-rtl.c: Fix formatting.
13404         * real.c: Likewise.
13405         * recog.c: Likewise.
13406         * regclass.c: Likewise.
13407         * regmove.c: Likewise.
13408         * reg-stack.c: Likewise.
13409         * reload1.c: Likewise.
13410         * rtlanal.c: Likewise.
13411
13412 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13413
13414         * config/i386/i386.c: Fix formatting.
13415
13416 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
13417
13418         * c-typeck.c (process_init_element): Don't save_expr
13419         COMPOUND_LITERAL_EXPR if just its initializer will be used.
13420
13421 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
13422
13423         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13424         emit optional traceback table if optimize_size or TARGET_ELF.
13425         * config/rs6000/rs6000.md (prefetch): New.
13426
13427 2002-01-15  Andreas Jaeger  <aj@suse.de>
13428
13429         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13430
13431 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13432
13433         * mips-tfile.c: Fix formatting.
13434
13435 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13436
13437         * unroll.c (final_reg_note_copy): Fix previous commit.
13438
13439 2002-01-14  Kazu Hirata  <kazu@hxi.com>
13440
13441         * config/h8300/h8300-protos.h: Remove the prototype for
13442         eq_operator.
13443         * config/h8300/h8300.c (eq_operator): Remove.
13444
13445 2002-01-14  Richard Henderson  <rth@redhat.com>
13446
13447         * config/i386/i386.md (prefetch): Tidy.
13448         (prefetch_3dnow): Fix locality operand.
13449
13450 2002-01-14  Richard Henderson  <rth@redhat.com>
13451
13452         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13453         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13454
13455 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
13456
13457         * reload1.c (reload_combine): Pass reg_sum replacement through
13458         copy_rtx in loop performing multiple changes.
13459
13460 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
13461
13462         * except.c (remove_unreachable_regions): New.
13463         (free_eh_status): Clear exception_handler_labels.
13464         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13465         (find_exception_handler_labels): Don't add the same label more than
13466         once.
13467         (remove_exception_handler_label): Don't die if
13468         find_exception_handler_labels hasn't been called for the current
13469         function yet.
13470
13471 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
13472
13473         * toplev.c (rest_of_compilation): Rebuild jump labels after
13474         gcse.
13475
13476 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
13477
13478         * doc/extend.texi: Move documentation of X86 built-in functions
13479         here.
13480         * doc/invoke.texi: From here.
13481         * doc/sourcebuild.texi: Document location of documentation for
13482         machine built-in functions.
13483
13484 2002-01-13  Christopher Faylor  <cgf@redhat.com>
13485
13486         * cppfiles.c (TEST_THRESHOLD): New macro.
13487         (SHOULD_MMAP): Ditto.
13488         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13489         be used.
13490
13491 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
13492
13493         * unroll.c (final_reg_note_copy): Properly handle
13494         REG_LABEL
13495         (unroll_loops): Fix LOOP_CONDITION heuristics.
13496
13497 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
13498
13499         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13500         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13501
13502 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13503
13504         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13505         threaded loop.
13506
13507 2002-01-14  Tom Rix  <trix@redhat.com>
13508
13509         * config/rs6000/rs6000.md: Fix typo with sradi.
13510
13511 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
13512
13513         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13514         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13515         (clrstrdi, clrstrsi): Adapt callers.
13516
13517         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13518
13519         (movti splitter): Never use register 0 as base register.
13520
13521 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
13522
13523         * combine.c (simplify_shift_const): Always generate new rtx
13524         for shift expression instead of reusing given expression.
13525
13526 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13527
13528         * config/alpha/alpha.c (alpha_expand_mov): Don't call
13529         alpha_legitimize_address unless mode is Pmode.
13530
13531 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
13532
13533         * doc/md.texi (Modifiers): Document the '*' constraint for the
13534         user.
13535
13536         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13537         * doc/extend.texi (Function Attributes): 'interrupt' is valid
13538         for xstormy16 too.
13539
13540 2002-01-13  Richard Henderson  <rth@redhat.com>
13541
13542         * reload.c (find_reloads): Use a hard reg destination as reload reg
13543         for an input reload of the source.
13544
13545 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13546
13547         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13548         more generic.
13549
13550 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
13551
13552         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13553         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13554
13555         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13556
13557 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13558
13559         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13560
13561 2002-01-12  Tom Rix  <trix@redhat.com>
13562
13563         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13564         TARGET_POWERPC64.
13565
13566 2002-01-12  Richard Henderson  <rth@redhat.com>
13567
13568         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13569
13570         * doc/invoke.texi: Update Alpha options.
13571
13572         * doc/invoke.texi: Update i386 built-in function lists.
13573
13574 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13575
13576         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13577         referencing outside.
13578
13579 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13580
13581         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13582         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13583         offsets, and change line folding.
13584         * optabs.c (expand_binop): Remove warnings.
13585         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13586
13587 2002-01-12  Graham Stott <grahams@redhat.com>
13588
13589         * attribs.c (handle_deprecated_attribute): constify WHAT.
13590         * diagnostic.c (warn_deprecated_use): Add braces, fixes
13591         dangling else warning and constify WHAT.
13592         * except.h (struct function, struct inline_remap): Move
13593         struct tag forward defs before all prototypes.
13594         (duplicate_eh_regions): Whitespace.
13595
13596 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
13597
13598         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13599         MODE_BASE_REG_CLASS.
13600         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13601
13602 2002-01-12  Richard Henderson  <rth@redhat.com>
13603
13604         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13605         (ix86_expand_vector_move): New.
13606         (bdesc_2arg): Remove andps, andnps, orps, xorps.
13607         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
13608         Remove old prefetch builtins.  Special case the logicals removed above.
13609         (ix86_expand_builtin): Likewise.
13610         (safe_vector_operand): Use V4SFmode, not TImode.
13611         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
13612         (ix86_expand_timode_binop_builtin): New.
13613         * config/i386/i386-protos.h: Update.
13614         * config/i386/i386.h (enum ix86_builtins): Update.
13615         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13616         Use ix86_expand_vector_move in vector move expanders.
13617         (movti_internal, movti_rex64): Add xorps alternative.
13618         (sse_clrv4sf): Rename and adjust from sse_clrti.
13619         (prefetch): Don't work so hard.
13620         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13621         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13622         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13623
13624 2002-01-11  Richard Henderson  <rth@redhat.com>
13625
13626         * config/i386/mmintrin.h: New file.
13627         * config/i386/xmmintrin.h: New file.
13628         * config.gcc (i?86-*-*): Add extra_headers.
13629         * simplify-rtx.c (simplify_unary_operation): Handle saturating
13630         truncation codes.
13631         (simplify_binary_operation): Handle saturating arithmetic codes.
13632         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13633         not the lowpart subreg.
13634         (ix86_expand_builtin): Return a TImode dummy register instead of 0
13635         on error.
13636         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13637
13638 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13639
13640         * conflict.c (conflict_graph_compute): Free regsets when finished.
13641         * ssa.c (compute_coalesced_reg_partition): Likewise.
13642
13643 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13644
13645         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13646         every where we allocate a register.
13647
13648 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13649
13650         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13651         * lcm.c (compute_earliest, compute_farthest): Likewise.
13652
13653 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13654
13655         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13656
13657 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13658
13659         * doc/rtl.texi (Insns): Fix 2 typos.
13660
13661 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
13662
13663         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
13664         options.  Use @table @gcctabopt for MMIX options.  Add index
13665         entries for MMIX options.  Start new paragraph with first
13666         heading of the machine-dependent options.
13667
13668 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13669
13670         PR other/5299
13671         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13672         * combine.c (force_to_mode): Same.
13673         * reload1.c (clear_reload_reg_in_use): Same.
13674
13675 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
13676
13677         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13678         and 'subtargets'.
13679
13680 2002-01-11  Andreas Jaeger  <aj@suse.de>,
13681             Brad Lucier <lucier@math.purdue.edu>
13682
13683         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13684         mcpu.
13685
13686 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
13687
13688         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13689         Protect with IN_LIBGCC.
13690         (LINK_EH_SPEC): Add required trailing space.
13691
13692 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13693
13694         * c-tree.h: Move function declarations so that they are listed
13695         under the filename which contains them.
13696         (check_identifier, finish_decl_top_level,
13697         lookup_name_current_level_global, shadow_record_fields): Remove.
13698
13699 2002-01-11  Andreas Jaeger  <aj@suse.de>
13700
13701         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13702         march.
13703
13704 2002-01-10  Richard Henderson  <rth@redhat.com>
13705
13706         * config/alpha/alpha.c (print_operand): Add 'J'.
13707         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13708         new operand with the sequence number for the lituse.  When splitting
13709         the insns, use gen_movdi_er_high_g and generate a sequence number.
13710         (gen_movdi_er_high_g): Print the sequence number if non-zero.
13711
13712 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
13713
13714         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13715         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13716         stvxl.
13717         (altivec_expand_builtin): Same.
13718         (altivec_expand_stv_builtin): New.
13719
13720         * config/rs6000/rs6000.h (rs6000_builtins): Same.
13721
13722         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13723         ("altivec_lvehx"): New.
13724         ("altivec_lvewx"): New.
13725         ("altivec_lvxl"): New.
13726         ("altivec_lvx"): New.
13727         ("altivec_stvx"): New.
13728         ("altivec_stvebx"): New.
13729         ("altivec_stvehx"): New.
13730         ("altivec_stvewx"): New.
13731         ("altivec_stvxl"): New.
13732
13733 2002-01-10  Richard Henderson  <rth@redhat.com>
13734
13735         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13736         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
13737         care not to delete instructions twice.
13738
13739 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
13740
13741         * toplev.c: Don't declare environ (it's not used anywhere).
13742         * configure.in: Don't check for declaration of environ.
13743         * config/i386/xm-mingw32.h: Don't #define environ.
13744         * config.in, configure: Regenerate.
13745
13746 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
13747
13748         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13749         * configure: Regenerate.
13750
13751         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13752         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13753         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13754         alpha/xm-vms.h.
13755         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13756         LIMITS_H_TEST here, not in m68k/x-next.
13757         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13758         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13759
13760         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13761         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13762         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
13763
13764         * config/i386/x-djgpp: Renamed i386/t-djgpp.
13765         * config/m88k/x-dolph: Renamed m88k/t-dolph.
13766         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13767         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
13768         replacement of quadlib.asm with quadlib.c.
13769
13770         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13771         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13772         config/rs6000/xm-beos.h: Delete file.
13773
13774         * config.gcc: Update to match above changes.
13775
13776 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13777
13778         * config/h8300/h8300.h: Fix comment typos.
13779         * config/h8300/h8300.md: Likewise.
13780         * config/h8300/lib1funcs.asm: Likewise.
13781
13782 2002-01-10  Dale Johannesen  <dalej@apple.com>
13783
13784         PR optimization/5269
13785         * unroll.c (precondition_loop_p): Make *increment be the correct
13786         sign when n_iterations known, to avoid confusing caller.
13787
13788 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13789
13790         * doc/extend.texi (deprecated): Fix a typo.
13791
13792 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13793
13794         * basic-block.h (update_br_prob_note): Declare.
13795         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13796         (try_forward_edges): Care negative frequencies and update note.
13797         (outgoing_edges_match): Tweek conditional merging heuristics.
13798         (try_crossjump_to_edge): use update_br_prob_note.
13799         * cfglayout.c (fixup_reorder_chain): Likewise.
13800         * cfrtl.c (update_br_prob_note): New.
13801         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13802
13803         * i386.c (ix86_decompose_address): Return -1 if address contains
13804         shift.
13805         (legitimate_address_p): Require ix86_decompose_address to return 1.
13806
13807         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13808         (cprop_insn): Likewise.
13809
13810 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13811
13812         * toplev.c: Fix formatting.
13813         * tree.c: Likewise.
13814         * tree-dump.c: Likewise.
13815         * unroll.c: Likewise.
13816         * unwind-dw2.c: Likewise.
13817         * unwind-dw2-fde.c: Likewise.
13818         * unwind-dw2-fde-glibc.c: Likewise.
13819         * unwind-sjlj.c: Likewise.
13820
13821 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13822
13823         * doc/invoke.texi: Document PDP-11 options.
13824
13825 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13826
13827         * config/h8300/h8300.h: Fix formatting.
13828
13829 2002-01-10  Ira Ruben   <ira@apple.com>
13830
13831         Add __attribute__ ((deprecated)).
13832         * extend.texi: Document __attribute__ ((deprecated)).
13833         * invoke.texi: Document -Wno-deprecated-declarations.
13834         * testsuite/g++.dg/other/deprecated.C: New C++ test.
13835         * testsuite/gcc.dg/deprecated.c: New C test.
13836         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13837         (c_common_attribute_table): Add "deprecated" entry.
13838         (handle_deprecated_attribute): New function.
13839         * c-decl.c (deprecated_states): New enum.
13840         deprecated_state: State of "deprecated" handling.
13841         (start_decl): Set deprecated_state based on attributes.
13842         (grokdeclarator): Test for deprecated uses, propagate attribute.
13843         * c-typeck.c (build_component_ref): Test for deprecated fields.
13844         (build_external_ref): Test for deprecated primaries.
13845         * diagnostic.c (warn_deprecated_use) New function to issue
13846         warnings about __attribute__ ((depricated)) references.
13847         * flags.h (warn_deprecated_decl): Extern declared for
13848         -W[no-]deprecated-declarations option.
13849         * print-tree.c (print_node): Show deprecated flag status.
13850         * toplev.c (warn_deprecated_decl): Defined.
13851         (W_options): Added "deprecated-declaration".
13852         * toplev.h (warn_deprecated_use): Extern declared.
13853         * tree.h (struct tree_common): Define deprecated_flag.
13854         (TREE_DEPRECATED): New macro to access flag.
13855         * cp/call.c (build_call): Test for deprecated calls.
13856         * cp/class.c (add_implicitly_declared_members): Set global
13857         flag to tell grokdeclarator to not issue deprecated warnings.
13858         * cp/cp-tree.h: Add extern for adding_implicit_members.
13859         * cp/decl.c (deprecated_states): New enum.
13860         (start_decl): Set deprecated_state based on attributes.
13861         (grokdeclarator): Test for deprecated uses, propagate attribute.
13862         * cp/lex.c (do_identifier): Test for deprecated primaries.
13863         * cp/typeck.c (build_component_ref): Test for deprecated fields.
13864
13865 2002-01-10  Ira Ruben   <ira@apple.com>
13866
13867         Fix to assign attributes to inline member functions.
13868         * cp/decl.c (start_method): Handle attrlist.
13869
13870 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13871
13872         * combine.c (expand_field_assignment): Use subreg_lsb().
13873
13874 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
13875
13876         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13877         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13878         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13879         Recurse for any operand of AND as long as constant is non-zero.
13880
13881 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13882
13883         * config/h8300/h8300.md: Remove constraints from expanders.
13884
13885 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13886
13887         * varasm.c: Fix formatting.
13888         * varray.c: Likewise.
13889         * vmsdbgout.c: Likewise.
13890         * xcoffout.c: Likewise.
13891
13892 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
13893
13894         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13895         update edge probabilities to match.
13896
13897 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13898
13899         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13900         dependencies.
13901         * doc/languages.texi, doc/sourcebuild.texi: New files.
13902         * doc/configfiles.texi: Make a subsubsection.  Update.
13903         * doc/configterms.texi: Add @node.  Remove warning that this isn't
13904         instructions for building GCC.
13905         * doc/makefile.texi: Make a subsection.
13906         * doc/gccint.texi: Update.
13907
13908 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
13909
13910         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13911
13912 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13913
13914         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13915
13916 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
13917
13918         * optabs.c (expand_fix): Look for wider integer modes first.
13919
13920         * i386.md (mov?f): Avoid the fake const double trick for medium
13921         memory model.
13922         (min?f*/max?f*): Prohibit memory operands for i387 variant.
13923         (fop_df_4): Disable for SSE compilation.
13924
13925 2002-01-10  Graham Stott  <grahams@redhat.com>
13926
13927         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13928         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13929
13930 2002-01-10  Richard Henderson  <rth@redhat.com>
13931
13932         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13933
13934 2002-01-10  Richard Henderson  <rth@redhat.com>
13935
13936         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13937         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
13938
13939 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13940
13941         * combine.c (can_combine_p): Fix a comment typo.
13942
13943 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
13944
13945         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13946         empty list correctly.  Change loop index $t to $f for
13947         consistency with rest of Makefile.
13948
13949 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
13950
13951         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13952         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13953
13954         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13955         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13956         (altivec_init_builtins): Same.
13957         (altivec_expand_unop_builtin): Return NULL_RTX on error.
13958         (altivec_expand_binop_builtin): Same.
13959         (altivec_expand_ternop_builtin): Same.
13960         (bdesc_dst): New.
13961
13962         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13963         ("altivec_vctuxs"): Fix typo.
13964         ("altivec_vnmsubfp"): Same.
13965         ("altivec_dssall"): New.
13966         ("altivec_mfvscr"): New.
13967         ("altivec_dss"): New.
13968         ("altivec_lvsl"): New.
13969         ("altivec_lvsr"): New.
13970         ("altivec_dstt"): New.
13971         ("altivec_dstst"): New.
13972         ("altivec_dststt"): New.
13973         ("altivec_dst"): New.
13974
13975         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13976         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13977
13978 2002-01-09  Richard Henderson  <rth@redhat.com>
13979
13980         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13981
13982 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
13983
13984         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13985         function.
13986         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13987         prototype.
13988         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13989
13990 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13991
13992         * read-rtl.c: Fix formatting.
13993         * real.c: Likewise.
13994         * regclass.c: Likewise.
13995         * regrename.c: Likewise.
13996         * reg-stack.c: Likewise.
13997         * reload1.c: Likewise.
13998         * reload.c: Likewise.
13999         * rtl.c: Likewise.
14000
14001 2002-01-09  Kazu Hirata  <kazu@hxi.com>
14002
14003         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
14004         to extract items in the expr_list chain.
14005
14006 2002-01-09  Richard Henderson  <rth@redhat.com>
14007
14008         * config/vax/vax.c (vax_rtx_cost): Never abort.
14009
14010         * config/vax/vax.h (REAL_ARITHMETIC): Define.
14011
14012 2002-01-09  Jan Hubicka  <jh@suse.cz>
14013
14014         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
14015
14016 2002-01-09  Richard Henderson  <rth@redhat.com>
14017
14018         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
14019         Unify code from various alternatives.
14020
14021 2002-01-09  Richard Henderson  <rth@redhat.com>
14022
14023         * regrename.c (copy_value): Ignore the copy if the source register
14024         is present in the value chain with a narrower mode.
14025
14026 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
14027
14028         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
14029         for the c4x target. Also improve layout.
14030
14031 2002-01-09  Richard Henderson  <rth@redhat.com>
14032
14033         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
14034         * config/m32r/m32r.md (and ior xor splitters): Swap operands
14035         to match insn patterns.
14036
14037 2002-01-09  Richard Henderson  <rth@redhat.com>
14038
14039         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
14040         (copyprop_hardreg_forward_1): Likewise.
14041
14042 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14043
14044         * pa.md (decrement_and_branch_until_zero): Change predicate for
14045         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
14046
14047 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
14048
14049         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
14050         gets undefined. For Darwin.
14051
14052 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14053
14054         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
14055
14056 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14057
14058         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
14059
14060 2002-01-08  Richard Henderson  <rth@redhat.com>
14061
14062         * regrename.c (copy_value): Ignore overlapping copies.
14063
14064 2002-01-08  Richard Henderson  <rth@redhat.com>
14065
14066         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
14067         as needed to avoid shared structure.
14068
14069 2002-01-08  Kazu Hirata  <kazu@hxi.com>
14070
14071         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
14072         H8/300H and H8/S.
14073
14074 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14075
14076         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
14077         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
14078         documentation of obsolete macros.
14079         * system.h: Poison these macros.
14080         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
14081         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
14082         config/c4x/c4x.h, config/clipper/clipper.h,
14083         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
14084         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
14085         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
14086         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
14087         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14088         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
14089         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14090         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
14091         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
14092         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14093         config/sparc/sparc.h, config/stormy16/stormy16.h,
14094         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
14095         definitions and commented out definitions of obsolete macros.
14096         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
14097         of MAX_INT_TYPE_SIZE.
14098
14099 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
14100
14101         * config/s390/s390.c (s390_preferred_reload_class): Never
14102         return ADDR_REGS if it isn't a subset of the given class.
14103         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
14104         FP_REGS, but all superclasses as well.
14105
14106         * config/s390/s390.c (s390_function_profiler): Fix thinko.
14107
14108         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
14109         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
14110         must not be a const_int.
14111
14112 2002-01-08  Richard Henderson  <rth@redhat.com>
14113
14114         * Makefile.in (toplev.o): Depend on options.h.
14115         (gcc.o): Depend on specs.h.
14116
14117 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
14118
14119         * expr.c (store_expr): Convert VOIDmode constants back to target's
14120         mode.
14121
14122 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14123
14124         * doc/invoke.texi: Markup gcc as @command.  Refer to
14125         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
14126         of http://gcc.gnu.org/thanks.html.
14127
14128 2002-01-08  Dale Johannesen  <dalej@apple.com>
14129
14130         * config/rs6000/rs6000.md: Add missing int register
14131         target case to movdf_low.
14132
14133 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
14134
14135         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
14136         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
14137         (cppinit.o): Depend on except.h.
14138         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
14139         s-specs): New rules.
14140
14141         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
14142         Don't create specs.h/options.h/gencheck.h here.  Remove
14143         unnecessary variable settings from last argument of AC_OUTPUT.
14144         * config.in, configure: Regenerate.
14145         * intl.c: Hardcode package name as "gcc".
14146
14147         * cppinit.c: Include except.h.
14148         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
14149         appropriate.
14150         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
14151         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
14152         (!)USING_SJLJ_EXCEPTIONS.
14153         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
14154
14155 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14156
14157         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
14158         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
14159         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
14160         documentation of obsolete macros.
14161         * system.h: Poison these macros.
14162         * config/d30v/d30v.h, config/ns32k/encore.h,
14163         config/stormy16/stormy16.h: Remove definitions and commented out
14164         definitions of obsolete macros.
14165
14166 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
14167
14168         * objc/objc-act.c (handle_class_ref): Mark the declaration of
14169         %sobjc_class_ref_%s as used - to prevent unwanted compiler
14170         warnings.
14171
14172 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
14173
14174         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
14175         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
14176         to insn adjusting stack/frame pointer.
14177         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
14178         accept operands that cause the insn to be non-splittable.
14179
14180 2002-01-08  Graham Stott  <grahams@redhat.com>
14181
14182         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
14183         (C_TYPE_FIELDS_VOLATILE): Likewise.
14184         (C_TYPE_BEING_DEFINED): Likewise.
14185         (C_IS_RESERVED_WORD): Likewise.
14186         (C_TYPE_VARIABLE_SIZE): Likewise.
14187         (C_DECL_VARIABLE_SIZE): Likewise.
14188         (C_MISSING_PROTOTYPE_WARNED): Likewise.
14189         (C_SET_EXP_ORIGINAL_CODE): Likewise.
14190         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
14191         parenthesis.
14192         (C_DECL_ANTICIPATED): Likewise.
14193         (c_build_type_variant): Add parenthesis.
14194
14195 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14196
14197         * gcc.c (option_map): Remove --version.
14198         (process_command): Handle -fversion following the GNU Coding
14199         Standards.  Partially addresses PR other/704.
14200
14201 2002-01-08  Graham Stott  <grahams@redhat.com>
14202
14203         * combine.c (combine_instructions): Fix typo.
14204
14205 2002-01-08  Graham Stott  <grahams@redhat.com>
14206
14207         * debug.h: Use "tree" and "rtx" throughout.
14208
14209         * debug.c: Likewise.
14210
14211 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
14212
14213         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
14214         constant pool, use the pool's version of the symbol instead.
14215
14216 2002-01-07  Richard Henderson  <rth@redhat.com>
14217
14218         * regrename.c (find_oldest_value_reg): Ignore the value chain if
14219         the original register was copied in a mode with a fewer number of
14220         hard registers than the desired mode.
14221         (copyprop_hardreg_forward_1): Likewise.
14222         (debug_value_data): Fix loop test.
14223         * toplev.c (parse_options_and_default_flags): Reenable
14224         -fcprop-registers at -O1.
14225
14226 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14227
14228         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
14229         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
14230
14231         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
14232         predicates.
14233
14234         * config/rs6000/rs6000.md: Add altivec predicate patterns.
14235
14236 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14237
14238         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
14239         (pa_output_function_prologue): Output local label at the beginning of
14240         the prologue when profiling.
14241         (hppa_profile_hook): Use the local label rather than the function label.
14242         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
14243
14244 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14245
14246         * config/rs6000/rs6000.c (print_operand): Remove extra space.
14247         (altivec_expand_unop_builtin): Fix thinko.
14248         (altivec_expand_binop_builtin): Same.
14249         (altivec_expand_ternop_builtin): Same.
14250         (altivec_expand_builtin): Same.
14251
14252 2002-01-07  Richard Henderson  <rth@redhat.com>
14253
14254         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
14255
14256 2002-01-07  Jason Merrill  <jason@redhat.com>
14257
14258         * unwind-dw2.c (execute_cfa_program): Use < again.
14259
14260 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
14261
14262         * predict.c (combine_predictions_for_insn): Avoid division by zero.
14263
14264 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
14265
14266         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
14267         Don't allow -1 - x -> ~x simplifications in the first pass.
14268
14269 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14270
14271         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
14272         arguments.
14273         (altivec_expand_binop_builtin): Same.
14274         (altivec_expand_unop_builtin): Same.
14275         (print_operand): Fix typo.
14276         (bdesc_1arg): Add vupk* variants.
14277
14278         * rs6000.h (rs6000_builtins): Add vupk* enums.
14279
14280         * rs6000.md: Add altivec_vupk* variants.
14281
14282 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
14283
14284         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
14285         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
14286         and last update dates.
14287
14288 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
14289
14290         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
14291
14292 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14293
14294         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14295         * config/avr/avr.h (CPP_SPEC): Likewise.
14296         (LINK_SPEC): Likewise.
14297         (CRT_BINUTILS_SPECS): Likewise.
14298         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14299         * doc/invoke.texi (AVR Options): Document them.
14300
14301 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
14302
14303         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14304         LABEL_NUSES.
14305
14306 2002-01-07  Graham Stott  <grahams@redhat.com>
14307
14308         * config/i386/i386.h: Update copyright date.
14309         (HALF_PIC_PTR): Add parenthesis.
14310         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14311         (CONSTANT_ALIGNMENT): Add parenthesis.
14312         (DATA_ALIGNMENT): Likewise.
14313         (LOCAL_ALIGNMENT): Likewise.
14314         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14315         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14316         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14317         (HARD_REGNO_NREGS): Add paranethesis.
14318         (VALID_SSE_REG_MODE): Whitespace.
14319         (VALID_MMX_REG_MODE): Whitespace.
14320         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14321         (ix86_hard_regno_mode_ok): Add parenthesis.
14322         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14323         (RETURN_IN_MEMORY): Whitespace.
14324         (N_REG_CLASSES): Add parenthesis.
14325         (INTEGER_CLASS_P): Add parenthesis and wrap.
14326         (FLOAT_CLASS_P): Likewise.
14327         (SSE_CLASS_P): Likewise.
14328         (MMX_CLASS_P): Likewise.
14329         (MAYBE_INTEGER_CLASS_P): Likewise.
14330         (MAYBE_FLOAT_CLASS_P): Likewise.
14331         (MAYBE_SSE_CLASS_P): Likewise.
14332         (MAYBE_MMX_CLASS_P): Likewise.
14333         (Q_CLASS_P): Likewise.
14334         (GENERAL_REGNO_P): Uppercase macro parameter.
14335         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14336         (FP_REGNO_P): Likewise.
14337         (ANY_FP_REGNO_P): Uppercase macro parameter.
14338         (SSE_REGNO_P): Likewise.
14339         (SSE_REGNO): Likewise.
14340         (SSE_REG_P): Likewise.
14341         (SSE_FLOAT_MODE_P): Likewise.
14342         (MMX_REGNO_P): Likewise.
14343         (MMX_REG_P):Likewise.
14344         (STACK_REG_P): Likewise.
14345         (NON_STACK_REG_P): Likewise.
14346         (STACK_TOP_P): Likewise.
14347         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14348         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14349         (SECONDARY_MEMORY_NEEDED): Likewise.
14350         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14351         (MD_ASM_CLOBBERS): Whitespace and wrap.
14352         (MUST_PASS_IN_STACK): Whitespace and wrap.
14353         (RETURN_POPS_ARGS): Add parenthesis.
14354         (INIT_CUMULATIVE_ARGS): Likewise.
14355         (FUNCTION_ARG): Likewise.
14356         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14357         (SETUP_INCOMING_VARARGS): Likewise.
14358         (BUILD_VA_LIST_TYPE):  Add parenthesis.
14359         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14360         parenthsis.
14361         (EXPAND_BUILTIN_VA_ARG): Likewise.
14362         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14363         (INITIALIZE_TRAMPOLINE): Add parenthesis.
14364         (INITIAL_ELIMINATION_OFFSET): Likewise.
14365         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14366         (REGNO_OK_FOR_BASE_P): Likewise.
14367         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14368         (REGNO_OK_FOR_DIREG_P): Likewise.
14369         (REG_OK_FOR_INDEX_P): Whitespace.
14370         (REG_OK_FOR_BASE_P): Whitespace.
14371         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14372         parenthesis.
14373         (FIND_BASE_TERM): Fix typo.
14374         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
14375         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14376         (SYMBOLIC_CONST; Whitespace.
14377         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
14378         (ENCODE_SECTION_INFO): Whitespace.
14379         (FINALIZE_PIC): Remove do { ... } while (0).
14380         (PROMOTE_MODE): Wrap in do { ... } while (0).
14381         (CONST_COSTS): Whitespace.
14382         (RTX_COSTS): Add paramethesis, whitespace and wrap.
14383         (REGISTER_MOVE_COST): Add parenthesis.
14384         (MEMORY_MOVE_COST): Likewise.
14385         (EXTRA_CC_MODES): Whitespace.
14386         (SELECT_CC_MODE): Add parenthesis and whitespace.
14387         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14388         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14389         (ASM_OUTPUT_LABEL): Add paramethesis.
14390         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14391         (ASM_OUTPUT_REG_POP): Likewise.
14392         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14393         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14394
14395         * config/i386/i386.c: Update copyright.
14396         (CHECK_STACK_LIMIT): Add parenthesis.
14397         (AT_BP): Uppercase macro parameter.
14398         (x86_64_int_parameter_registers): Constify.
14399         (x86_64_int_return_registers): Likewise.
14400         (ix86_compare_op0): Use rtx.
14401         (construct_container): Constify INTREG parameter.
14402         (function_arg): Use rtx.
14403
14404         * diagnostic.h: Update copyright date.
14405         (output_buffer_state): Add parenthesis.
14406         (output_buffer_format_args): Likewise.
14407
14408         * combine.c (combine_instructions): Replace XEXP (links, 0)
14409         with link.
14410
14411 2002-01-06  H.J. Lu <hjl@gnu.org>
14412
14413         * cfgcleanup.c (thread_jump): Fix 2 typos.
14414
14415 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
14416
14417         * config.gcc: Add support for --enable-altivec.
14418
14419 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14420
14421         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14422
14423 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
14424
14425         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14426         __objc_class_name_*.
14427
14428 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14429
14430         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14431
14432 2002-01-06  Richard Henderson  <rth@redhat.com>
14433
14434         * reorg.c (emit_delay_sequence): Remove death notes, not merely
14435         nop them out.  Increment label reference count for REG_LABEL.
14436         (fill_slots_from_thread): Frob label reference count around
14437         delete_related_insns.
14438
14439 2002-01-05  Richard Henderson  <rth@redhat.com>
14440
14441         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14442         jump threading.
14443
14444 2002-01-05  Richard Henderson  <rth@redhat.com>
14445
14446         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14447         * integrate.c (output_inline_function): Likewise.
14448         * toplev.c (rest_of_compilation): Do it here instead.  Move call
14449         to remove_unnecessary_notes after emitting abstract instance.
14450         Force an emitted nested function to have its parent emited as well.
14451         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14452         for null.
14453         (rtl_for_decl_location): Do not look at reload data structures
14454         before reload has run.
14455
14456 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14457
14458         * cse.c: Fix formatting.
14459         * dwarf2asm.c: Likewise.
14460         * dwarf2out.c: Likewise.
14461         * explow.c: Likewise.
14462         * expmed.c: Likewise.
14463         * function.c: Likewise.
14464         * gcov.c: Likewise.
14465         * gencheck.c: Likewise.
14466         * genrecog.c: Likewise.
14467         * ggc-common.c: Likewise.
14468         * ggc-page.c: Likewise.
14469         * global.c: Likewise.
14470
14471 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14472
14473         * combine.c: Fix formatting.
14474
14475 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
14476
14477         PR middle-end/1557
14478         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14479
14480 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
14481
14482         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14483         as 1 for __powerpc64__ as well.
14484
14485         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14486
14487         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14488         return it.
14489
14490 2002-01-05  Daniel Berlin  <dan@dberlin.org>
14491
14492         * lcm.c: Revert change, due to performance regression it causes on
14493         SPEC because it's slightly more conservative (sigh, I hate
14494         edge-based LCM).
14495
14496 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
14497
14498         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14499
14500 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14501
14502         * doc/cppinternals.texi: Update.
14503
14504 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
14505
14506         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14507         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14508         negatives.
14509         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
14510         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14511         kludge for pre-october-14th mmix versions to handle new-found bug
14512         with PUSHJ/PUSHGO and the register stack.
14513         * config/mmix/mmix.h (struct machine_function): Rename member
14514         has_call_value_without_parameters to has_call_without_parameters.
14515         All referers changed.
14516         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14517         TARGET_MASK_BRANCH_PREDICT): New macros.
14518         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14519         -mno-reg-stack-fill-bug-workaround.
14520         * config/mmix/mmix.md ("call"): Set struct machine member
14521         has_call_without_parameters.
14522
14523 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
14524
14525         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14526
14527 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14528
14529         * cfgcleanup.c: Include tm_p.h
14530         (mark_effect): Fix handling of hard register; fix handling of SET
14531
14532 2002-01-04  Kazu Hirata  <kazu@hxi.com>
14533
14534         * config/h8300/h8300.md (anonymous patterns): Check that
14535         operands are registers before using REGNO on them.
14536
14537 2002-01-03  Roland McGrath  <roland@frob.com>
14538
14539         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14540
14541 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
14542
14543         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14544         * c-common.h (genrtl_expr_stmt_value): Likewise.
14545         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14546         (expand_expr_stmt_value): Add maybe_last argument.
14547         Don't warn about statement with no effect if it is the last statement
14548         in expression statement.
14549         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14550         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14551         expand_expr_stmt_value.
14552         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14553         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14554         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14555         as maybe_last to expand_expr_stmt_value.
14556
14557 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
14558
14559         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14560         be passed in, do not build it.
14561         (c_begin_if_stmt): New function.
14562         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14563         * c-common.h (c_expand_start_cond): Update prototype.
14564         (c_begin_if_stmt): Prototype new function.
14565         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14566         * c-parse.in (if_prefix): Use c_begin_if_stmt,
14567         c_begin_while_stmt and c_finish_while_stmt_cond.
14568
14569 2002-01-04  William Cohen  <wcohen@redhat.com>
14570
14571         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14572         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14573         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14574         * config/pa/som.h (ASM_FILE_START): Likewise.
14575
14576 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
14577
14578         * lcm.c: Include df.h.
14579         Add available_transfer_function prototype.
14580         (compute_available): Rework to use iterative dataflow framework.
14581         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14582         with bb_info in df.h
14583         (available_transfer_function): New function.
14584
14585         * Makefile.in (lcm.o): add df.h to dependencies.
14586
14587 2002-01-04  Richard Henderson  <rth@redhat.com>
14588
14589         * config/alpha/alpha.c (some_operand): Accept HIGH.
14590         (input_operand): Likewise; accept simple references to globals.
14591         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14592         (alpha_const_double_ok_for_letter_p): Likewise.
14593         (alpha_extra_constraint): Likewise.
14594         (alpha_preferred_reload_class): Likewise.  Do not force
14595         symbolic constants to memory.
14596         (alpha_legitimate_address_p): Accept simple references
14597         to small_symbolic_operand.
14598         (alpha_legitimize_address): New arg scratch.  Be prepared to be
14599         called when no_new_pseudos.  Emit simple symbolic references.
14600         Split integers into low, high, and rest.
14601         (alpha_expand_mov): Use alpha_legitimize_address.
14602         (some_small_symbolic_mem_operand): New.
14603         (split_small_symbolic_mem_operand): New.
14604         * config/alpha/alpha-protos.h: Update.
14605         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14606         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14607         (EXTRA_CONSTRAINT): Likewise.
14608         (PREFERRED_RELOAD_CLASS): Likewise.
14609         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14610         (PREDICATE_CODES): Update.
14611         * config/alpha/alpha.md: New post-reload splitters to convert
14612         simplfied symbolic operands to the form that references $29.
14613         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14614         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14615
14616 2002-01-03  Richard Henderson  <rth@redhat.com>
14617
14618         * local-alloc.c (function_invariant_p): Update commentary.
14619
14620 2002-01-04  H.J. Lu <hjl@gnu.org>
14621
14622         * toplev.c (rest_of_compilation): Fix a typo when calling
14623         cleanup_cfg.
14624
14625 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14626
14627         * c-common.c: Fix formatting.
14628         * diagnostic.c: Likewise.
14629         * doloop.c: Likewise.
14630         * dwarf2out.c: Likewise.
14631
14632 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14633
14634         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14635         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14636
14637 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14638
14639         * cpperror.c: Update comments and copyright.
14640         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14641         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14642
14643 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14644
14645         * collect2.c (main): Use strcmp when testing for "-shared".
14646
14647 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14648
14649         * cppmacro.c: Don't include intl.h.  Update comments.
14650         (new_number_token): Allocate enough buffer for 64-bit unsigned
14651         integers; update prototype.
14652         * cppmain.c: Update comments.
14653
14654 2002-01-03  William Cohen  <wcohen@redhat.com>
14655
14656         * function.h (struct function): Add profile.
14657         (current_function_profile): New.
14658         doc/extend.texi: Update documentation.
14659         * final.c (final_start_function): Use current_function_profile
14660         instead of profile_flag.
14661         (profile_after_prologue): Likewise.
14662         * function.c (expand_function_start): Likewise.
14663         (expand_function_start): Likewise.
14664         * config/alpha/alpha.c (direct_call_operand):
14665         (alpha_does_function_need_gp): Likewise.
14666         (alpha_expand_prologue): Likewise.
14667         * config/arm/arm.c (arm_expand_prologue): Likewise.
14668         thumb_expand_prologue: Likewise.
14669         * config/d30v/d30v.c (d30v_stack_info): Likewise.
14670         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14671         (fr30_expand_prologue): Likewise.
14672         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14673         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14674         * config/i386/i386.h (FINALIZE_PIC): Likewise.
14675         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14676         * config/i960/i960.c (i960_output_function_prologue): Likewise.
14677         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14678         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14679         (m32r_expand_prologue): Likewise.
14680         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14681         (m88k_expand_prologue): Likewise.
14682         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14683         * config/mips/mips.c (compute_frame_size): Likewise.
14684         (mips_expand_prologue): Likewise.
14685         (mips_can_use_return_insn): Likewise.
14686         * config/pa/elf.h (ASM_FILE_START): Likewise.
14687         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14688         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14689         * config/pa/som.h (ASM_FILE_START): Likewise.
14690         * config/romp/romp.c (romp_using_r14): Likewise.
14691         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14692         (rs6000_stack_info): Likewise.
14693         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14694         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14695         * config/v850/v850.c (compute_register_save_size): Likewise.
14696
14697 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
14698
14699         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14700         gen_lowpart_common fails, use gen_lowpart_SUBREG.
14701
14702 2002-01-03  Turly O'Connor  <turly@apple.com>
14703
14704         * darwin.c (machopic_output_possible_stub_label): Don't generate
14705         stub routines for pseudo-stubs which we've just defined.
14706
14707 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14708
14709         * builtins.c: Fix formatting.
14710         * c-typeck.c: Likewise.
14711         * combine.c: Likewise.
14712         * expr.c: Likewise.
14713         * loop.c: Likewise.
14714
14715 2002-01-03  Andreas Schwab  <schwab@suse.de>
14716
14717         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14718         and return true if _cpp_push_next_buffer pushed a new include
14719         file.
14720         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14721         _cpp_pop_file_buffer did not push a new file.
14722         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14723
14724 2002-01-02  Eric Christopher  <echristo@redhat.com>
14725
14726         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14727         FIND_REG_INC_NOTE call. Update copyright.
14728         * loop.c (canonicalize_condition): Ditto.
14729         * reorg.c (delete_scheduled_jump): Ditto.
14730
14731 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14732
14733         * gcse.c: Fix formatting.
14734
14735 2002-01-03  Graham Stott  <grahams@redhat.com>
14736
14737         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14738         forward defs for struct tags rtx_def, union_tree, rtvec_def
14739         also output corresponding typedefs for rtx, tree, and rtvec.
14740
14741         * system.h: Move forward defs for struct tags rtx_def, union_tree,
14742         rtvec_def along with corresponding typedefs for rtx, tree, and
14743         rtvec to config.h, hconfig.h, tconfig.h.
14744
14745 2002-01-03  Graham Stott  <grahams@redhat.com>
14746
14747         * tree.h: Update copyright date.
14748         (IS_EXPR_CODE_CLASS): Add parenthesis.
14749         (TREE_SET_CODE): Add whitespace.
14750         (TREE_CHECK): Add parenthesis.
14751         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14752         (CST_OR_CONSTRUCTOR_CHECK):
14753         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14754         (TREE_SYMBOL_REFERENCED): Whitespace.
14755         (INT_CST_LT): Likewise.
14756         (INT_CST_LT_UNSIGNED): Likewise.
14757         (tree_real_cst): Unwrap comment.
14758         (tree_string): Likewise.
14759         (tree_complex): Likewise.
14760         (IDENTIFIER_POINTER): correct cast.
14761         (SAVE_EXPR_CONTEXT): Whitespace.
14762         (EXPR_WFL_FILENAME_NODE): Likewise.
14763         (EXPR_WFL_FILENAME): Remove parenthesis.
14764         (DECL_ORIGIN): Add parenthesis.
14765         (DECL_FROM_INLINE): Use NULL_TREE.
14766         (build_int_2): Whitespace.
14767         (build_type_variant): Add parenthesis.
14768
14769         * gcc/jcf-parse.c: Update copyright date.
14770         (yyparse): Constify resource_filename.
14771
14772 2002-01-03  Graham Stott  <grahams@redhat.com>
14773
14774         * rtl.h: Update copyright date.
14775         (RTL_CHECK1): Wrap long line.
14776         (RTL_CHECK2): Likewise.
14777         (RTL_CHECKC1): Wrap long line and whitespace.
14778         (RTL_CHECKC2): Likewise.
14779         (XWINT): Whitespace.
14780         (XINT): Likewise.
14781         (XSTR): Likewise.
14782         (XEXP): Likewise.
14783         (XVEC): Likewise.
14784         (XMODE): Likewise.
14785         (XBITMAP): Likewise.
14786         (XTREE): Likewise.
14787         (XBBDEF): Likewise.
14788         (XTMPL): Likewise.
14789         (X0WINT): Likewise.
14790         (X0INT):Likewise.
14791         (X0UINT): Likewise.
14792         (X0STR): Likewise.
14793         (X0EXP): Likewise.
14794         (X0VEC): Likewise.
14795         (X0MODE): Likewise.
14796         (X0BITMAP): Likewise.
14797         (X0TREE): Likewise.
14798         (X0BBDEF): Likewise.
14799         (X0ADVFLAGS): Likewise.
14800         (X0CSELIB): Likewise.
14801         (X0MEMATTR): Likewise.
14802         (XCWINT): Likewise.
14803         (XCINT): Likewise.
14804         (XCUINT): Likewise.
14805         (XCSTR): Likewise.
14806         (XCEXP): Likewise.
14807         (XCVEC): Likewise.
14808         (XCMODE): Likewise.
14809         (XCBITMAP): Likewise.
14810         (XCTREE): Likewise.
14811         (XCBBDEF): Likewise.
14812         (XCADVFLAGS): Likewise.
14813         (XCCSELIB): Likewise.
14814         (XC2EXP): Likewise.
14815         (INSN_UID): Likewise.
14816         (PREV_INSN): Likewise.
14817         (PATTERN): Likewise.
14818         (INSN_CODE): Likewise.
14819         (PUT_REG_NOTE_KIND): Likewise.
14820         (CODE_LABEL_NUMBER): Likewise.
14821         (NOTE_SOURCE_FILE): Likewise.
14822         (NOTE_BLOCK): Likewise.
14823         (NOTE_EH_HANDLER): Likewise.
14824         (NOTE_RANGE_INFO): Likewise.
14825         (NOTE_LIVE_INFO): Likewise.
14826         (NOTE_BASIC_BLOCK): Likewise.
14827         (NOTE_EXPECTED_VALUE): Likewise.
14828         (NOTE_LINE_NUMBER): Likewise.
14829         (LABEL_NAME): Likewise.
14830         (LABEL_NUSES): Likewise.
14831         (LABEL_ALTERNATE_NAME): Likewise.
14832         (ADDRESSOF_DECL): Likewise.
14833         (JUMP_LABEL): Likewise.
14834         (LABEL_NEXTREF): Likewise.
14835         (REGNO): Likewise.
14836         (ORIGINAL_REGNO: Likewise.
14837         (HARD_REGISTER_NUM_P): Add parenthesis.
14838         (SUBREG_REG): Whitespace.
14839         (SUBREG_BYTE): Likewise.
14840         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14841         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14842         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14843         (ASM_OPERANDS_INPUT_VEC): Likewise.
14844         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14845         (ASM_OPERANDS_INPUT): Likewise.
14846         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14847         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14848         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14849         (ASM_OPERANDS_INPUT_MODE): Likewise.
14850         (ASM_OPERANDS_SOURCE_FILE): Likewise.
14851         (ASM_OPERANDS_SOURCE_LINE): Likewise.
14852         (MEM_SET_IN_STRUCT_P): Minor reformat.
14853         (TRAP_CONDITION): Whitespace.
14854         (TRAP_CODE): Likewise.
14855         (COND_EXEC_TEST): Likewise.
14856         (COND_EXEC_CODE): Likewise.
14857         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14858         (PHI_NODE_P): Add parenthesis.
14859         (plus_constant): Whitespace and add parenthesis.
14860
14861 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14862
14863         * config/avr/avr.c: Fix comment typos.
14864         * config/c4x/c4x.md: Likewise.
14865         * config/dsp16xx/dsp16xx.h: Likewise.
14866         * config/dsp16xx/dsp16xx.md: Likewise.
14867         * config/i386/i386.md: Likewise.
14868         * config/ia64/ia64.c: Likewise.
14869         * config/m32r/m32r.h: Likewise.
14870         * config/m68hc11/m68hc11.md: Likewise.
14871         * config/mmix/mmix.c: Likewise.
14872         * config/mn10200/mn10200.c: Likewise.
14873         * config/romp/romp.c: Likewise.
14874         * config/sh/sh.c: Likewise.
14875         * config/stormy16/stormy16.c: Likewise.
14876         * config/stormy16/stormy16.h: Likewise.
14877         * config/stormy16/stormy16.md: Likewise.
14878
14879 2002-01-03  Graham Stott  <grahams@redhat.com>
14880
14881         * loop.h: Update copyright date.
14882         (LOOP_MOVABLES): Fix typo.
14883         (LOOP_REGS): Likewise.
14884         (LOOP_IVS): Likewise.
14885
14886 2002-01-03  Graham Stott  <grahams@redhat.com>
14887
14888         * cppinit.c: Update copyright date.
14889         Don't include output.h
14890         * Makefile.in: Update copyright date.
14891         Update dependency.
14892
14893 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14894
14895         PR c/5226
14896         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14897         (-pthread) Add to RS/6000 options.
14898
14899 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14900
14901         * except.c: Fix comment typos.
14902         * loop.c: Likewise.
14903         * varasm.c: Likewise.
14904         * doc/tm.texi: Fix a typo.
14905
14906 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
14907
14908         * c-typeck.c (output_init_element): Allow initializing static storage
14909         duration objects with compound literals.
14910
14911 2002-01-02  Richard Henderson  <rth@redhat.com>
14912
14913         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14914         after abusing it.
14915
14916 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14917
14918         * gcc.c (default_compilers): Const-ify.
14919         * mips-tdump.c (stab_names): Likewise.
14920         * mips-tfile.c (map_coff_types, map_coff_storage,
14921         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14922         pseudo_ops_t, pseudo_ops): Likewise.
14923         * protoize.c (default_include): Likewise
14924
14925         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14926         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14927         Add array size in declaration.
14928         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14929         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14930         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14931         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14932         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14933         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14934         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14935         emtens, make_nan): Const-ify.
14936         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14937         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14938
14939 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
14940
14941         * config.gcc (ia64-*-*): Set extra_headers.
14942         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
14943         * config/alpha/t-osf: Remove.
14944         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14945
14946 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
14947
14948         * config/rs6000/t-aix43: Revert previous change.
14949
14950 2002-01-02  Jason Merrill  <jason@redhat.com>
14951
14952         * c-decl.c (c_expand_body): Call outlining_inline_function when
14953         emitting an inline function out of line.
14954
14955 2002-01-02  Richard Henderson  <rth@redhat.com>
14956
14957         * dwarf2out.c (limbo_die_node): Add created_for member.
14958         (new_die): New argument created_for.  Update all callers.
14959         (mark_limbo_die_list): New.
14960         (dwarf2out_init): Register limbo_die_list as a root.
14961         (dwarf2out_finish): Force insert limbo dies into their function
14962         context.
14963
14964 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
14965
14966         PR c++/5089
14967         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14968
14969 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14970
14971         * config/h8300/fixunssfsi.c: Update copyright.
14972         Fix comment typos.
14973         Fix formatting.
14974         * config/h8300/h8300.c: Update copyright.
14975         Eliminate warnings.
14976
14977 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14978
14979         * config/romp/romp.c: Fix comment formatting.
14980         * config/romp/romp.h: Likewise.
14981         * config/romp/romp.md: Likewise.
14982         * config/s390/s390.c: Likewise.
14983         * config/stormy16/stormy16.c: Likewise.
14984         * config/stormy16/stormy16.h: Likewise.
14985
14986 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
14987
14988         * c-common.h (genrtl_expr_stmt_value): Declare.
14989         * c-semantics.c (genrtl_goto_stmt): Redirect to...
14990         (genrtl_goto_stmt_value): ... this new function.  Pass new
14991         argument down to expand_expr_stmt_value, taking
14992         TREE_ADDRESSABLE into account.
14993         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14994         STMT_EXPR as addressable, i.e., one whose result we want.
14995         * expr.c (expand_expr): Don't save expression statement value
14996         of labeled_blocks or loop_exprs.
14997         * stmt.c (expand_expr_stmt): Redirect to...
14998         (expand_expr_stmt_value): ... this new function.  Use new
14999         argument to tell whether to save expression value.
15000         (expand_end_stmt_expr): Reset last_expr_type and
15001         last_expr_value if we don't have either.
15002         * tree-inline.c (declare_return_variable): Mark its use
15003         statement as addressable.
15004         * tree.h: Document new use of TREE_ADDRESSABLE.
15005         (expand_expr_stmt_value): Declare.
15006
15007 2002-01-01  Tom Rix  <trix@redhat.com>
15008
15009         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
15010         rs6000_emit_allocate_stack.
15011
15012 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
15013
15014         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
15015         ${srcdir}/ginclude/ to every entry in extra_headers.
15016         * configure: Regenerate.
15017         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
15018         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
15019         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
15020         * ginclude/proto.h: Rename to config/convex/proto.h.
15021
15022 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15023
15024         * attribs.c (handle_vector_size_attribute): Use host_integerp
15025         and tree_int_cst; remove warnings.
15026         * caller-save.c (insert_restore): Add cast to get rid of warning.
15027         (insert_save): Likewise.
15028         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
15029         * regmove.c (find_matches): Add temporary var to kill a warning.
15030
15031 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
15032
15033         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
15034         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
15035         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
15036         (vms-dwarf2eh.o): Add Makefile rule.
15037         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
15038         * config/alpha/vms-dwarf2eh.asm: New file.
15039
15040         * gcc.c (delete_if_ordinary): Delete all versions.
15041
15042 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
15043
15044         * config/mmix/mmix.md: Update FIXME to not mention
15045         define_constants.
15046         (MMIX_rJ_REGNUM): New define_constants constant.
15047         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
15048         "*movdicc_real"): Adjust contraints formatting.
15049         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
15050         for branch prediction.
15051         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
15052         output template.
15053         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
15054         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
15055         number.  Delete related FIXMEs.
15056         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
15057         from number to MMIX_rJ_REGNUM.
15058         (TARGET_MASK_BRANCH_PREDICT): New.
15059         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
15060         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
15061         value.  Add -mbranch-predict and -mno-branch-predict.
15062         (TARGET_VERSION): Drop date.
15063         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
15064         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
15065         for finding out global symbols.
15066         (mmix_asm_output_labelref): Revert condition for global symbol.
15067         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
15068         (mmix_print_operand_punct_valid_p): A '+' is valid.
15069
15070 See ChangeLog.6 for earlier changes.