OSDN Git Service

* system.h (SELECT_RTX_SECTION): Poison.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-18  Richard Henderson  <rth@redhat.com>
2
3         * system.h (SELECT_RTX_SECTION): Poison.
4         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
5         * target.h (select_rtx_section): New.
6         * varasm.c (output_constant_pool): Use it.
7         (default_select_rtx_section, default_elf_select_rtx_section): New.
8         * output.h: Declare them.
9
10         * config/darwin.h (SELECT_RTX_SECTION): Move ...
11         * config/darwin.c (machopic_select_rtx_section): ... here.
12         * config/darwin-protos.h: Update.
13
14         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
15         * config/nextstep.c (machopic_select_rtx_section): ... here.
16         (nextstep_select_section): Rename variable to avoid macro clash.
17         * config/nextstep-protos.h: Update.
18
19         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
20         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
21         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
22         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h, 
23         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
24         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
25         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h, 
26         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
27         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
28         (SELECT_RTX_SECTION): Remove.
29
30         * config/darwin.h, config/elfos.h, config/nextstep.h,
31         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
32         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
33         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
34         config/sparc/lynx.h, config/xtensa/xtensa.c
35         (TARGET_ASM_SELECT_RTX_SECTION): New.
36
37         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
38         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
39         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
40         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
41         (ia64_aix_select_rtx_section): New.
42         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
43         redefining.
44         * config/mips/mips.c (mips_select_rtx_section): Make static.
45         Support ELF SHF_MERGE features. 
46         * config/mips/mips-protos.h: Update.
47         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
48         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
49         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
50         make static, fall back to default_elf_select_rtx_section.
51         * config/rs6000/rs6000-protos.h: Update.
52         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
53         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
54         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
55         * config/romp/romp.c (romp_select_rtx_section): New.
56         * config/s390/s390.c (s390_select_rtx_section): New.
57         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
58         declarations before target macro definition.
59         (xtensa_emit_call): Use static buffer.
60         (xtensa_select_rtx_section): New.
61         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
62         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
63         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
64
65         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
66         SELECT_RTX_SECTION docs.
67
68 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
69
70         * i386.md (movsi/movdi): Fix template.
71         (sse2 patterns): Set attributes consistently.
72
73         * i386.md (pushqi2, ashrqi_*): Fix constraint.
74
75 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
76
77         * optabs.c (complex_part_zero_p): New.
78         * (expand_cmplxdiv_straight): Use it.
79         * (expand_cmplxdiv_wide): Ditto.
80         * (expand_binop): Ditto.
81
82 2002-05-18  Richard Henderson  <rth@redhat.com>
83
84         * final.c (HAVE_READONLY_DATA_SECTION): New.
85         (shorten_branches): Use it instead of ifdefs.
86         * varasm.c (enum in_section): Add in_readonly_data.
87         (text_section, data_section): Tidy.
88         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
89
90         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
91         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
92         (READONLY_DATA_SECTION): Don't undef.
93
94         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
95         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
96         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
97
98         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
99         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
100         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
101         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
102
103         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
104         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
105         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
106         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
107         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
108         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
109         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
110         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
111         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
112
113         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
114         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
115         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
116         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
117         config/pa/pa64-hpux.h, config/sparc/litecoff.h
118         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
119
120         * config/elfos.h, config/netware.h, config/svr3.h,
121         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
122         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
123         config/h8300/h8300.h, config/i386/i386-interix.h,
124         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
125         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
126
127         * config/elfos.h, config/netware.h, config/svr3.h,
128         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
129         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
130         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
131         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
132
133         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
134         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
135         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
136         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
137         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
138         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
139         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
140         config/rs6000/sysv4.h, config/v850/v850.h
141         (EXTRA_SECTIONS): Remove in_const/in_rdata.
142         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
143
144         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
145         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
146         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
147         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
148         * config/alpha/alpha.c (alpha_start_function): Likewise.
149         (alpha_write_linkage): Likewise.
150         * config/m32r/m32r.c (m32r_select_section): Likewise.
151         * config/m88k/m88k.c (m88k_select_section): Likewise.
152         * config/mips/mips.c (mips_select_rtx_section): Likewise.
153         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
154         (rs6000_elf_select_section): Likewise.
155         * config/v850/v850.c (v850_select_section): Likewise.
156
157         * config/1750a/1750a.h, config/i860/sysv3.h
158         (READONLY_DATA_SECTION_ASM_OP): New.
159         READONLY_DATA_SECTION_ASM_OP.
160         * config/i386/interix.c, config/i386/winnt.c
161         (i386_pe_unique_section): Always use .rdata prefix.
162         * config/pa/som.h (readonly_data): Always switch to read-only section.
163         (READONLY_DATA_SECTION): Predicate on flag_pic.
164         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
165         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
166         (READONLY_DATA_SECTION): Update.
167
168 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
169
170         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
171         is used without -Wformat.  
172         * c-common.h (warn_format_zero_length): Declare extern.
173         * c-decl.c (warn_options): Add "format-zero-length".
174         * c-format.c (warn_format_zero_length): Declare.
175         (set_Wformat): Set warn_format_zero_length for -Wformat.
176         (check_format_info): Only warn about zero-length formats if
177         warn_format_zero_length is true.  Include the format type
178         name in the warning message.
179         * doc/invoke.texi: Document -Wformat-zero-length.
180         * testsuite/gcc.dg/format/zero-length-1.c: New test.
181
182 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
183
184         * timevar.c: Fix formatting.
185         * tlink.c: Likewise.
186         * toplev.c: Likewise.
187         * tree-dump.c: Likewise.
188         * tree-inline.c: Likewise.
189
190 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
191
192         * cppinit.c (cpp_post_options): If preprocessed, turn off
193         traditional.  If traditional, turn off column numbers.
194         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
195         * cpptrad.c (handle_newline): Update line_base.
196         (skip_comment): Handle -Wcomment.
197
198 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
199
200         * cppinit.c (struct builtin): Remove unused fields.
201         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
202         (operator_array): New - was second half of builtin_array.
203         (init_builtins): Simplify loop over builtin_array/operator_array.
204
205 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
206
207         * defaults.h (UNIQUE_SECTION): Remove.
208         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
209
210 2002-05-17  Richard Henderson  <rth@redhat.com>
211
212         * expr.c (init_expr_once): Don't use start/end_sequence.
213         Use rtx_alloc instead of emit_insn.
214         * toplev.c (lang_dependent_init): Run init_expr_once here ...
215         (lang_independent_init): ... not here.
216
217 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
218
219         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
220
221 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
222
223         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
224         for fixed registers, possibly used for global register variables.
225         (initial_elimination_offset, avr_output_function_prologue,
226         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
227
228 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
229
230         * Makefile.in: Update for cpptrad.c.
231         * cpphash.h (struct cpp_buffer): New members for buffer
232         overlays.
233         (struct cpp_reader): New members for traditional output.
234         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
235         * cppinit.c (cpp_create_reader): Set trad_line.
236         (cpp_destroy): Free trad_out_base if used.
237         (cpp_read_main_file): Overlay an empty buffer if traditional.
238         (cpp_finish_options): Don't do builtins.
239         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
240         (cpp_handle_option): Handle it.
241         * cpplex.c (continue_after_nul): New.
242         (_cpp_lex_direct): Use handle_nul.
243         * cpplib.h (struct cpp_options): New traditional option.
244         * cpptrad.c: New file.
245
246 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
247
248         * c-common.c (c_common_init_options): Use C89 for Objective-C,
249         and set the options flag.
250         * cppinit.c (lang_flags): Remove objc.
251         (lang_defaults): Remove OBJC and OBJCXX.
252         (set_lang): Update.
253         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
254         (cpp_handle_option): Remove -+ and -lang-objc++.
255         For ObjC, just set a flag.
256         (print_help): Update.
257         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
258
259 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
260
261         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
262         bootstrap with -mips3.
263
264 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
265
266         * final.c: Fix formatting.
267         * fix-header.c: Likewise.
268         * flow.c: Likewise.
269         * fold-const.c: Likewise.
270         * function.c: Likewise.
271
272 2002-05-17  David S. Miller  <davem@redhat.com>
273
274         PR c/6689, PR optimization/6615
275         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
276         and make it a pointer to rtx.  Update comments.
277         (update_equiv_regs): When scanning for equivalences, record
278         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
279         it while making the equiv replacements.
280
281 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
282
283         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
284
285 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
286
287         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
288         when encoding visibility into SYMBOL_REF_FLAG.
289
290 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
291
292         * expr.c (force_operand): Fix reversed move.
293
294 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
295
296         * doc/install.texi (Testing): Mention two common DejaGnu warnings
297         that can be ignored.
298
299 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
300
301         * doc/install.texi (Final install): Recommend to install into a
302         "clean" target directory.
303
304 2002-05-17  Richard Henderson  <rth@redhat.com>
305
306         * config/ia64/ia64.md: Use braced strings instead of quoted strings
307         for code blocks.  Tidy whitespace.
308
309 2002-05-17  Richard Henderson  <rth@redhat.com>
310
311         * hooks.c (hook_tree_bool_false): New.
312         * hooks.h: Declare it.
313         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
314         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
315         * target.h (select_section, unique_section): New.
316         (in_small_data_p): New.
317         * varasm.c (resolve_unique_section): Use hooks instead of macros.
318         (variable_section, output_constant_def_contents): Likewise.
319         (default_select_section, default_unique_section): New.
320         (categorize_decl_for_section, default_elf_select_section): New.
321         * output.h: Declare them.
322
323         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
324         (TARGET_ASM_SELECT_SECTION): New.
325         (SELECT_SECTION): Move ...
326         * config/darwin.c (machopic_select_section): ... here.
327         * config/darwin-protos.h: Update.
328
329         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
330         (SELECT_SECTION): Move ...
331         * config/nextstep.c (nextstep_select_section): ... here.
332         * config/nextstep-protos.h: Update.
333
334         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
335         (TARGET_ASM_SELECT_SECTION): New.
336         * config/svr3.h (SELECT_SECTION): Remove.
337
338         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
339         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
340         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
341         (alpha_encode_section_info): Use it.
342         * config/alpha/alpha-protos.h: Update.
343         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
344         (SELECT_SECTION, UNIQUE_SECTION): Remove.
345         (TARGET_ASM_SELECT_SECTION): New.
346         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
347
348         * config/arm/pe.h (UNIQUE_SECTION): Remove.
349         (TARGET_ASM_UNIQUE_SECTION): New.
350
351         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
352         (avr_unique_section): Rename from unique_section; make static.
353         * config/avr/avr-protos.h: Update.
354         * config/avr/avr.h (UNIQUE_SECTION): Remove.
355
356         * config/c4x/c4x.h (SELECT_SECTION): Remove.
357
358         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
359         (TARGET_ASM_UNIQUE_SECTION): New.
360         * config/i386/i386-interix.h: Likewise.
361         * config/i386/win32.h: Likewise.
362         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
363         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
364         * config/i386/sco5.h (SELECT_SECTION): Remove.
365         (TARGET_ASM_SELECT_SECTION): New.
366         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
367
368         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
369         instead of SELECT_SECTION.
370         * config/m68k/dpx2.h: Likewise.
371         * config/rs6000/lynx.h: Likewise.
372
373         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
374         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
375         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
376         (ia64_in_small_data_p): New.
377         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
378         (ia64_aix_select_section, ia64_aix_unique_section): New.
379         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
380         (SELECT_SECTION, UNIQUE_SECTION): Remove.
381
382         * config/m32r/m32r.h (SELECT_SECTION): Remove.
383         (TARGET_ASM_SELECT_SECTION): New.
384         * config/m32r/m32r.c (m32r_select_section): Take align argument.
385         * config/m32r/m32r-protos.h: Update.
386
387         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
388         (SELECT_SECTION): Move ...
389         * config/m88k/m88k.c (m88k_select_section): ... here.
390
391         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
392         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
393         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
394         (mcore_unique_section): Make static.
395         * config/mcore/mcore-protos.h: Update.
396
397         * config/mips/elf.h (UNIQUE_SECTION): Remove.
398         (TARGET_ASM_UNIQUE_SECTION): New.
399         * config/mips/elf64.h: Likewise.
400         * config/mips/iris6gld.h: Likewise.
401         * config/mips/linux.h: Likewise.
402         * config/mips/mips-protos.h: Update.
403         * config/mips/mips.c (mips_select_section): Add align argument.
404         * config/mips/mips.h (SELECT_SECTION): Remove.
405         (TARGET_ASM_SELECT_SECTION): New.
406
407         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
408         * config/mmix/mmix.c (mmix_select_section): Remove.
409         (mmix_unique_section): Remove.
410         * config/mmix/mmix-protos.h: Update.
411
412         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
413         (SELECT_SECTION): Move ...
414         * config/pa/pa.c (pa_select_section): ... here.
415         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
416
417         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
418         from rs6000_select_section and make static.
419         (rs6000_elf_unique_section): Similarly.
420         (rs6000_xcoff_select_section): From xcoff.h.
421         (rs6000_xcoff_unique_section): Likewise.
422         * config/rs6000/rs6000-protos.h: Update.
423         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
424         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
425         * config/rs6000/xcoff.h: Likewise.
426
427         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
428         (SELECT_SECTION): Move ...
429         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
430
431         * config/v850/v850.h (SELECT_SECTION): Move ...
432         * config/v850/v850.c (v850_select_section): ... here.
433         (TARGET_ASM_SELECT_SECTION): New.
434
435         * config/vax/vms.h (SELECT_SECTION): Move ...
436         * config/vax/vax.c (vms_select_section): ... here.
437         (TARGET_ASM_SELECT_SECTION): New.
438
439         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
440         for the target hooks.
441
442 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
443
444         * config/arm/arm.c (emit_multi_reg_push): Do not set
445         RTX_FRAME_RELATED_P on the SEQUENCE.
446
447 2002-05-16  Richard Henderson  <rth@redhat.com>
448
449         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
450         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
451
452 2002-05-16  Richard Henderson  <rth@redhat.com>
453
454         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
455
456         * config/ia64/ia64.c (saveable_obstack): Do not declare.
457
458 2002-05-16  Richard Henderson  <rth@redhat.com>
459
460         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
461         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
462         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
463         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
464         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
465         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
466         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
467         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
468         Revert "Basic block renumbering removal", and two followup patches.
469
470 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
471
472         * lcm.c (optimize_mode_switching): Revert previous change.
473
474 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
475
476         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
477         with only extant block numbers.
478
479 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
480
481         * lcm.c (optimize_mode_switching): Fix typo.
482
483 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
484
485         * flow.c (calculate_global_regs_live): Queue blocks in program order.
486
487 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
488
489         * doc/install.texi (Configuration): Document PWDCMD.
490
491 2002-05-16  Dale Johannesen  <dalej@apple.com>
492
493         * combine.c (cant_combine_insn_p):  Reenable combinations
494         involving hard regs unless CLASS_LIKELY_SPILLED_P.
495
496 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
497
498         * c-common.c (cb_register_builtins): Handle more built-ins
499         here rather than in gcc.c specs.
500         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
501         (cpp_options): Pass -O flags even when only preprocessing.
502         * toplev.c (set_fast_math_flags): New prototype.
503         (fast_math_flags_set_p): New.
504         (set_no_fast_math_flags): Remove.
505         (decode_f_option): Update.
506         * toplev.h (set_fast_math_flags): Update.
507         (fast_math_flags_set_p): New.
508         (set_no_fast_math_flags): Remove.
509 config:
510         * c4x/c4x.c (c4x_override_options): Update.
511
512 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
513
514         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
515         Default-define here.
516         (builtin_define_with_value): Can now wrap the expansion in
517         quotation marks if such is wanted.
518         (cb_register_builtins): Update calls to builtin_define_with_value.
519         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
520         here.
521         (c_common_init): Set options->stdc_0_in_system_headers.
522         * c-lex.h: Update prototype of builtin_define_with_value.
523         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
524         and REGISTER_PREFIX.
525
526         * cppinit.c (VERS, ULP, C, X): Kill.
527         (builtin_array): Remove entries for __VERSION__,
528         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
529         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
530         a constant.
531         (init_builtins): Kill off a bunch of now-dead code.
532         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
533         -fno-leading-underscore.
534         (cpp_handle_option): Remove code to set user_label_prefix.
535         (cpp_post_options): Likewise.
536
537         * cpplib.h (struct cpp_options): Remove user_label_prefix.
538         (stdc_0_in_system_headers): New.
539         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
540         stdc_0_in_system_headers) too to decide the value of __STDC__.
541
542         * tradcpp.c (user_label_prefix): Kill.
543         (main): Remove code handling -f(no-)leading-underscore.
544         (initialize_builtins): Don't define __REGISTER_PREFIX__
545         or __USER_LABEL_PREFIX__.
546         (install_value): Wrap compound statement in dummy loop so the
547         macro works properly in an if statement.
548
549
550 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
551
552         * loop.h (struct loop_info): Add member has_prefetch.
553         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
554         (prescan_loop): Initialize has_prefetch.
555         (struct prefetch_info): Change prefetch_in_loop and
556         prefetch_before_loop from bit fields to ints.
557         (emit_prefetch_instructions): Several small fixes.
558         (check_dbra_loop): Don't reverse loop that uses prefetch.
559
560 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
561
562         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
563         * configure.in: Likewise.
564         * fixinc/check.tpl: Likewise.
565         * fixinc/fixinc.dgux: Likewise.
566         * fixinc/fixinc.svr4: Likewise.
567         * fixinc/fixinc.winnt: Likewise.
568         * fixinc/fixincl.sh: Likewise.
569         * fixproto: Likewise.
570         * configure: Regenerate.
571
572 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
573
574         Basic block renumbering removal:
575         * basic_block.h (struct basic_block_def): Renamed index to sindex,
576         added prev_bb and next_bb fields.
577         (n_basic_blocks): Renamed to num_basic_blocks.
578         (last_basic_block): New, index of last basic block.
579         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
580         traversing basic block chain.
581         (BLOCK_NUM): index -> sindex.
582         (create_basic_block_structure, create_basic_block): Declaration changed.
583         (debug_num2bb): Declare.
584         (expunge_block_nocompact): Declaration removed.
585         (link_block, unlink_block, compact_blocks): Declare.
586         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
587         * cfg.c (entry_exit_blocks): Initialize new fields.
588         (clear_edges, alloc_block, expunge_block, cached_make_edge,
589         redirect_edge_pred, dump_flow_info, dump_edge_info,
590         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
591         free_aux_for_edges): Modified.
592         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
593         (expunge_block_nocompact): Removed.
594         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
595         find_unreachable_blocks, create_edge_list, print_edge_list,
596         verify_edge_list, flow_edge_list_print, remove_fake_successors,
597         remove_fake_edges, flow_reverse_top_sort_order_compute,
598         flow_depth_first_order_compute, flow_preorder_transversal_compute,
599         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
600         flow_dfs_compute_reverse_execute): Modified.
601         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
602         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
603         Modified.
604         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
605         merge_blocks_move_predecessor_nojumps,
606         merge_blocks_move_successor_nojumps, merge_blocks,
607         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
608         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
609         * cfglayout.c (skip_insns_after_block, label_for_bb,
610         record_effective_endpoints, scope_to_insns_finalize,
611         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
612         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
613         cfg_layout_duplicate_bb): Modified.
614         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
615         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
616         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
617         flow_loops_find, flow_loop_outside_edge_p): Modified.
618         * cfgrtl.c (create_basic_block_structure, create_basic_block,
619         flow_delete_block, compute_bb_for_insn, split_block,
620         try_redirect_by_replacing_jump, redirect_edge_and_branch,
621         force_nonfallthru_and_redirect, tidy_fallthru_edge,
622         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
623         commit_edge_insertions, commit_edge_insertions_watch_calls,
624         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
625         purge_all_dead_edges): Modified.
626         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
627         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
628         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
629         Modified.
630         * conflict.c (conflict_graph_compute): Modified.
631         * df.c (FOR_ALL_BBS): Removed.
632         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
633         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
634         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
635         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
636         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
637         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
638         * final.c (compute_alignments, final_scan_insn): Modified.
639         * flow.c (verify_local_live_at_start, update_life_info,
640         update_life_info_in_dirty_blocks, free_basic_block_vars,
641         delete_noop_moves, calculate_global_regs_live,
642         initialize_uninitialized_subregs, allocate_bb_life_data,
643         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
644         mark_used_reg, count_or_remove_death_notes): Modified.
645         * function.c (thread_prologue_and_epilogue_insns): Modified.
646         * gcse.c (struct null_pointer_info): Change typo of current_block
647         to basic_block.
648         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
649         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
650         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
651         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
652         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
653         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
654         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
655         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
656         pre_delete, one_pre_gcse_pass, compute_transpout,
657         invalidate_nonnull_info, delete_null_pointer_checks_1,
658         free_code_hoist_mem, compute_code_hoist_vbeinout,
659         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
660         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
661         compute_store_table, build_store_vectors, insert_insn_start_bb,
662         insert_store, replace_store_insn, free_store_memory, store_motion):
663         Modified.
664         * global.c (global_alloc, global_conflicts, mark_elimination,
665         build_insn_chain): Modified.
666         * graph.c (print_rtl_graph_with_bb): Modified.
667         * haifa-sched.c (sched_init): Modified.
668         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
669         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
670         if_convert): Modified.
671         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
672         compute_insert_delete, pre_edge_lcm, compute_available,
673         compute_farthest, compute_nearerout, compute_rev_insert_delete,
674         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
675         Modified.
676         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
677         * loop.c (loop_dump_aux): Modified.
678         * predict.c (combine_predictions_for_insn, estimate_probability,
679         last_basic_block_p, process_note_prediction, process_note_predictions,
680         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
681         expensive_function_p, estimate_bb_frequencies,
682         compute_function_frequency): Modified.
683         * print-rtl.c (print_rtx): Modified.
684         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
685         get_exec_counts, compute_branch_probabilities, compute_checksum,
686         branch_prob, find_spanning_tree): Modified.
687         * recog.c (split_all_insns, peephole2_optimize): Modified.
688         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
689         convert_regs_1, convert_regs_2, convert_regs): Modified.
690         * regclass.c (scan_one_insn, regclass): Modified.
691         * regmove.c (mark_flags_life_zones, regmove_optimize,
692         combine_stack_adjustments): Modified.
693         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
694         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
695         * reorg.c (dbr_schedule): Modified.
696         * resource.c (find_basic_block, init_resource_info): Modified.
697         * sbitmap.c (sbitmap_intersection_of_succs,
698         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
699         sbitmap_union_of_preds): Modified.
700         * sched-deps.c (init_dependency_caches): Modified.
701         * sched-ebb.c (schedule_ebbs): Modified.
702         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
703         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
704         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
705         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
706         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
707         ssa_const_prop): Modified.
708         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
709         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
710         * ssa.c (remove_phi_alternative, find_evaluations,
711         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
712         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
713         make_regs_equivalent_over_bad_edges,
714         make_equivalent_phi_alternatives_equival,
715         compute_conservative_reg_partition,
716         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
717         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
718         Modified.
719
720 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
721
722         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
723
724 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
725
726         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
727         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
728         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
729         calling CONSTANT_POOL_ADDRESS_P.
730         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
731         to decide whether to define __arm__ or __thumb.
732         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
733         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
734
735 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
736
737         * config/arc/arc.h (CPP_PREDEFINES): Remove.
738         (CPP_SPEC): Update.
739         (TARGET_CPU_CPP_BUILTINS): New.
740
741 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
742
743         * cpphash.h (cpp_macro): Move here, and make expansion a union.
744         * cppmacro.c (cpp_macro): Remove.
745         (enter_macro_context, replace_args, warn_of_redefinition,
746         _cpp_create_definition, cpp_macro_definition): Update.
747
748 2002-05-16  Jason Merrill  <jason@redhat.com>
749
750         * config/mips/mips.c (mips_output_external): Don't do sdata
751         optimization for a variable with DECL_COMDAT set.
752
753 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
754
755         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
756         Cleanups for accepting modifiers on pointers.
757         Fix predicate typos.
758         Allow long pointers as well as int pointers.
759
760 2002-05-15  Richard Henderson  <rth@redhat.com>
761
762         * varasm.c (merge_weak): Remove special case for extern and common.
763
764 2002-05-15  Matt Hiller  <hiller@redhat.com>
765
766         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
767         XFAILing.
768         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
769         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
770         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
771         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
772         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
773         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
774
775 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
776
777         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
778
779 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
780
781         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
782         ("altivec_mfvscr"): Read from VSCR.
783
784         Add vscr sets for the following insns: altivec_vctuxs,
785         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
786         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
787         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
788         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
789         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
790         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
791         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
792         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
793         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
794         altivec_vsum2sws, altivec_vsumsws.
795
796         * config/rs6000/rs6000.h: Add VSCR fixed register.
797         (CALL_REALLY_USED_REGISTERS): Add vscr.
798         (CALL_USED_REGISTERS): Same.
799         (FIXED_REGISTERS): Same.
800         (REG_ALLOC_ORDER): Same.
801         (reg_class): Add VSCR_REGS.
802         (REG_CLASS_NAMES): Same.
803         (REG_CLASS_CONTENTS): Same.
804         (VSCR_REGNO): New.
805         (REGISTER_NAMES): Add vscr.
806         (DEBUG_REGISTER_NAMES): Same.
807         (ADDITIONAL_REGISTER_NAMES): Same.
808         (FIRST_PSEUDO_REGISTER): Increment.
809         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
810
811 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
812
813         * fold-const.c (fold): Fix a typo.
814
815 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
816
817         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
818         comparison against the highest or lowest integer value before
819         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
820         transformation and that of an unsigned comparison against 0
821         right after.
822
823 2002-05-15  Richard Henderson  <rth@redhat.com>
824
825         * varasm.c (merge_weak): Error for any weakening after definition.
826         Adjust weakening after use warning to catch more cases.
827         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
828         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
829
830 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
831
832         * invoke.texi (-malign-double): Re-add lost warning.
833
834         * i386-protos.h (x86_output_mi_thunk): Declare.
835         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
836         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
837
838         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
839         when flag_asynchronous_unwind_tables is set.
840
841         * flags.h (flag_reorder_functions): Declare.
842         * function.c (prepare_function_start): Initialize frequnecy.
843         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
844         * Makefile.in (predict.o): Add dependency on target.h and params.h
845         * defaults.h (HOT_TEXT_SECTION_NAME,
846         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
847         * predict.c (choose_function_section): New function.
848         (estimate_bb_frequencies): Use it.
849         * toplev.c (flag_reorder_functions): New global variable.
850         (lang_independent_options): New.
851         (parse_options_and_default_flags): Set.
852         * varasm.c (assemble_start_function): Bypass functdion alignment
853         for never executed functions.
854         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
855         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
856         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
857         Document.
858
859         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
860
861         * predict.c: Inlude profile.h
862         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
863         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
864         Use the information about maximal counter in the program.
865
866         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
867
868         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
869         probably_never_executed_bb_p): New functions.
870         * cfgcleanup.c (outgoing_edges_match): Use them.
871         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
872         (maybe_hot_bb_p, probably_cold_bb_p,
873         probably_never_executed_bb_p): New functions.
874
875         * function.h (function): Add new field function_frequency.
876         * predict.c (compute_function_frequency): New function.
877         (estimate_probability): Call it.
878
879 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
880
881         PR optimization/5172, optimization/5200
882         * gcse.c (gcse_main): Disable store_motion.
883
884 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
885
886         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
887         (c_common_nodes_and_builtins): Use it.
888         (builtin_define_with_value): New function.
889         (cb_register_builtins): Define __SIZE_TYPE__,
890         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
891         using builtin_define_with_value.  Use consistent notation when
892         defining __GXX_WEAK__.
893         (WCHAR_TYPE_SIZE): Don't redefine.
894         (combine_strings): Don't use WCHAR_TYPE_SIZE.
895
896         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
897         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
898         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
899         * tradcpp.c (initialize_builtins): Likewise.
900         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
901
902         * c-lex.h (builtin_define_with_value): Prototype.
903         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
904         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
905         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
906
907         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
908         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
909         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
910         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
911         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
912         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
913         config/sparc/sol2-bi.h, config/sparc/sparc.h:
914         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
915         to __SIZE_TYPE__ etc from all spec strings. When this makes
916         extra specs empty, delete them.
917
918 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
919
920         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
921         for PA8000 or generating dwarf2 call frame information.
922         (output_call): Remove DO_FRAME_NOTES check from return pointer
923         optimization.
924         (following_call): Return 0 when scheduling for PA8000 or generating
925         dwarf2 call frame information.  Revise comment.
926
927 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
928
929 config/alpha:
930         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
931         and __IEEE_FP_INEXACT as appropriate.
932         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
933         (CPP_SPEC): Remove ieee defines.
934         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
935
936 2002-05-14  Richard Henderson  <rth@redhat.com>
937
938         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
939         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
940
941 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
942
943         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
944         (CPP_SPEC): Update.
945         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
946         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
947         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
948         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
949         (EXTRA_SPECS): Update.
950         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
951         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
952         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
953         define TARGET_OS_CPP_BUILTINS if necessary.
954
955 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
956
957         * gcc.c (cpp_options): Must pass -m* and -f* options
958         to the front end even when only preprocessing.
959         (cc1_options): Remove redundant -lang-c.
960         * tradcpp.c (main): Ignore -m options.
961 objc:
962         * lang-specs.h: Similarly.
963
964 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
965
966         * genautomata.c (transform_3): Add code for transformation
967         `(A,B,...)+C -> A+C,B,...'.
968
969 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
970
971         * final.c (end_final): Do not output profile_arcs constructor, when
972         no functions are instrumented.
973
974 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
975
976         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
977
978 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
979
980         * doc/install.texi: Remove special markup originally required for
981         HTML generation with texi2html.
982
983 2002-05-14  Andreas Schwab  <schwab@suse.de>
984
985         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
986         SELECT_SECTION.
987         (UNIQUE_SECTION): Define to get small data correctly.
988
989         * varasm.c (resolve_unique_section): Add third parameter
990         flag_function_or_data_sections and use it instead of
991         flag_function_sections.
992         (assemble_start_function): Pass flag_function_sections.
993         (asm_emit_uninitialised): Pass flag_data_sections.
994         (assemble_variable): Likewise.
995
996 2002-05-14  Richard Henderson  <rth@redhat.com>
997
998         * config/i386/i386.md: Use define_constants for unspec numbers.
999         * config/i386/i386.c: Likewise.
1000
1001 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1002
1003         * doc/contrib.texi: Update my entry.
1004
1005 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
1006
1007         * fixinc/inclhack.def (winidss_valist): Limit applicability.
1008         * fixinc/fixincl.x: Regenerated.
1009         * fixinc/tests/base/math.h: Update.
1010         * fixinc/tests/base/testing.h: Likewise.
1011
1012 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
1013
1014         * genattr.c (gen_attr): Don't emit a comma after the last
1015         enumerator.
1016
1017 2002-05-13  Richard Henderson  <rth@redhat.com>
1018
1019         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
1020         by non-local gotos.
1021         * recog.c (peephole2_optimize): Likewise.
1022
1023 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
1024
1025         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
1026         input to O_BINARY.
1027
1028 2002-05-13  Jeffrey A Law  (law@redhat.com)
1029
1030         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
1031         Update prototype and callers.
1032         (propagate_one_insn): Stack pointer adjustments kill MEMs on
1033         the mem_set_list which reference the stack pointer, as do
1034         calls to constant functions as they may clobber outgoing
1035         argument space.
1036
1037         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
1038
1039         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1040         (ia32_multipass_dfa_lookahead): New function.
1041
1042 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1043
1044         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
1045         (translate_options): Remove 'V'.
1046         (process_command): Similarly.
1047 doc:
1048         * invoke.texi: Remove documentation of 'V'.
1049
1050 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1051
1052         * config/s390/linux.h: Revert 2002-04-22 changes.
1053
1054 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
1055
1056         * config/fr30/fr30.md: Only allow splits of immediate loads
1057         if the destination is a register.
1058
1059 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1060
1061         * Makefile.in (c-common.o, cppinit.o): Update.
1062         * c-common.c: Include except.h.
1063         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
1064         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
1065         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
1066         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
1067         CPP_PREDEFINES): Handle here.
1068 config:
1069         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
1070         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
1071         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
1072         TARGET_OS_CPP_BUILTINS.
1073         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
1074         (CPP_SPEC, EXTRA_SPECS): Update.
1075         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
1076         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
1077         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
1078         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
1079         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
1080 doc:
1081         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
1082         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
1083
1084 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
1085
1086         * emit-rtl.c (global_rtl): Update comment.
1087         (const_double_htab, const_double_htab_hash,
1088         const_double_htab_hash, lookup_const_double): New.
1089         (const_int_htab_hash, const_int_htab_eq): Remove const
1090         qualifiers, which cause tons of warnings with RTL checking on.
1091         (gen_rtx_CONST_DOUBLE): Deleted.
1092         (const_double_from_real_value): New function - bears some
1093         resemblance to the former immed_real_const_1.
1094         (immed_double_const): Moved here from varasm.c and
1095         simplified.
1096         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
1097         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
1098         (gen_rtx): Use immed_double_const.
1099         (init_emit_once): Initialize the const_double_htab.  Use
1100         REAL_VALUE_FROM_INT where possible.  Can now use
1101         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
1102         * varasm.c (struct varasm_status): Remove x_const_double_chain.
1103         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
1104         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
1105         (init_varasm_status, mark_varasm_status): Don't touch
1106         x_const_double_chain.
1107
1108         * output.h: Delete prototype for clear_const_double_mem.
1109         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
1110         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
1111         const_double_from_real_value, not immed_real_const_1, and use
1112         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
1113         CONST_DOUBLE_ATOF.
1114         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
1115         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
1116         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
1117         (gen_rtx_REG): Second arg is unsigned.
1118
1119         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
1120         (excluded_rtx): New, return true for CONST_DOUBLE.
1121         (genmacro): Write nothing for excluded codes.
1122         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
1123         * expr.c (expand_expr): Likewise.
1124         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
1125         CONST_DOUBLE_CHAIN.
1126         * toplev.c (rest_of_compilation): Don't call
1127         clear_const_double_mem.
1128
1129         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
1130         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
1131         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
1132         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
1133         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
1134         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
1135         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
1136         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
1137
1138 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1139
1140         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1141
1142 2002-05-12  Tom Tromey  <tromey@redhat.com>
1143
1144         * tree.h (copy_node): Don't mention TREE_PERMANENT.
1145
1146 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
1147
1148         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
1149         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
1150         * gensupport.h: Prototype new routines.
1151         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
1152         use of printf.
1153         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
1154         (next_comma_elt): Use scan_comma_elt.
1155
1156         * config/i386/i386.md: Use new attribute notation to break up
1157         long lines in define_attr forms.
1158
1159 2002-05-12  Richard Henderson  <rth@redhat.com>
1160
1161         * expr.c (compress_float_constant): New.
1162         (emit_move_insn): Use it.
1163         (float_extend_from_mem): New.
1164         (init_expr_once): Initialize it.
1165         * real.c (exact_real_truncate): New.
1166
1167         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1168         dropped into memory; penalize for size.
1169         (RTX_COSTS): FLOAT_EXTEND is free.
1170         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1171         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1172
1173 2002-05-12  Richard Henderson  <rth@redhat.com>
1174
1175         * profile.h (profile_info): Add missing extern to declaration.
1176         * profile.c (profile_info): Define it.
1177
1178 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1179
1180         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1181         used for DImode and TImode.
1182
1183 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1184
1185         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1186         fake a newline.
1187
1188 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
1189
1190         * config/rs6000/rs6000.c (rs6000_default_long_calls,
1191         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1192         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1193         (rs6000_override_options): Handle -m(no-)longcall.
1194         (init_cumulative_args, output_mi_thunk): Check for both
1195         longcall and shortcall attributes on the function.
1196         (rs6000_attribute_table): Add "shortcall".
1197         (rs6000_handle_longcall_attribute): Update comment.
1198         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1199         altivec_expand_ternop_builtin): Add default clauses to switches
1200         to silence warnings.
1201
1202         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1203         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
1204         (TARGET_OPTIONS): Add longcall and no-longcall.
1205
1206         * config/rs6000/rs6000.md (call_nonlocal_sysv,
1207         call_value_nonlocal_sysv): Split by alternatives.  One pair
1208         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1209         the call cookie.  The other pair accepts only LR/CTR and has
1210         no restriction.
1211
1212         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1213         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1214         tmake_file.
1215         * config/rs6000/rs6000-c.c: New file.
1216         * config/rs6000/t-rs6000-c-rule: New file.
1217         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1218         Prototype rs6000_pragma_longcall.
1219
1220         * doc/extend.texi: Document shortcall attribute.
1221         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1222
1223 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1224
1225         * reorg.c (dbr_schedule): Remove unnecessary test.
1226
1227 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
1228
1229         * i386.md (testsi to testqi spliters): New.
1230
1231         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
1232
1233         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1234
1235         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
1236
1237         * basic-block.h: New flag EDGE_CAN_FALLTHRU
1238         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1239         that can be made fallthru.
1240
1241         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
1242
1243         * cfglayout.c (cleanup_unconditional_jumps): New static function.
1244         (cfg_layout_initialize): Use it.
1245
1246 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1247
1248         * config/avr/avr.c (avr_mcu_types): Update supported devices.
1249         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1250         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1251
1252 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
1253
1254         * dbxout.c: Fix formatting.
1255         * dependence.c: Likewise.
1256         * df.c: Likewise.
1257         * diagnostic.c: Likewise.
1258         * doloop.c: Likewise.
1259         * dominance.c: Likewise.
1260         * doschk.c: Likewise.
1261         * dwarf2asm.c: Likewise.
1262         * dwarf2out.c: Likewise.
1263         * dwarfout.c: Likewise.
1264
1265 2002-05-10  Richard Henderson  <rth@redhat.com>
1266
1267         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
1268         Convert integers constants as needed.  Replace "nwords" field with
1269         "sizeof_bb".
1270         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1271         * function.h: Fix typo in comment.
1272         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1273
1274 2002-05-10  Roger Sayle  <roger@eyesopen.com>
1275
1276         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1277         into the equivalent (signed char)c > 0.
1278
1279 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
1280
1281         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1282         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1283         (struct prefetch_info): Fix spelling of member bytes_accessed.
1284         (emit_prefetch_instructions): Make dump messages more regular;
1285         restructure code to add more dump messages; use new macros for
1286         heuristics. (There are no code generation changes in any of this).
1287
1288 2002-05-10  David S. Miller  <davem@redhat.com>
1289
1290         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1291         (struct rtx_def): Update unchanging flag comment.
1292         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1293         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1294         to be handled to INSN too.
1295         (dbr_schedule): Likewise.
1296         * resource.c (next_insn_no_annul): Likewise.
1297
1298         * cse.c (rtx_cost): Remove multiplication by power of 2 special
1299         casing.
1300
1301 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1302
1303         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1304         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1305         (possibly) work around broken /bin/sh.
1306
1307 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1308
1309         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1310         . as N64/N32 libgcc_s.so subdirs.
1311
1312 2002-05-10  David S. Miller  <davem@redhat.com>
1313
1314         * config/sparc/sparc.md: Use define_constants for unspec numbers.
1315
1316         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1317         more accurately.
1318         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1319         comment.
1320         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1321         * doc/rtl.texi: Document these macros more accurately.
1322         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1323         JUMP_INSNs and CALL_INSNs.
1324         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1325         or INSN_FROM_TARGET_P if the code is appropriate.
1326
1327 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1328
1329         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1330         before using SYMBOL_REF_FLAG (addr).
1331
1332         * config/avr/avr-protos.h (avr_io_address_p): Declare.
1333         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1334         Make non-static.  Update all callers.
1335         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1336         New insns to clear/set/test a single bit in I/O address space.
1337
1338 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1339
1340         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1341
1342 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1343
1344         * Makefile.in: Update.
1345         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1346         builtin_define_std): New.
1347         (c_common_init): Register CPP builtins callback.
1348         * c-common.h (flag_iso, flag_undef): New.
1349         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1350         * c-lex.c: Don't include target.h.
1351         (cb_register_builtins): Move to c-common.c.
1352         (init_c_lex): Don't register hook here.
1353         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1354         (cpp_define, cpp_assert): Remove.
1355         * gcc.c (cc1_options): Pass -undef to front end.
1356         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1357         (TARGET_INITIALIZER): Update.
1358         * target.h (struct cpp_reader): Don't predeclare.
1359         (struct gcc_target): Remove cpp builtin hook.
1360         * tree.c (default_register_cpp_builtins): Remove.
1361 doc:
1362         * tm.texi: Update.
1363
1364 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1365
1366         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1367
1368 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1369
1370         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1371         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1372
1373 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1374
1375         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1376         * config/sparc/libgcc-sparc-glibc.ver: New file.
1377         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1378         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1379
1380 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1381
1382         PR target/6429
1383         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1384         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1385         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1386         base multilibs.
1387         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1388         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1389         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1390         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1391
1392 2002-05-09  Richard Henderson  <rth@redhat.com>
1393
1394         * config/ia64/ia64.md: Use define_constants for unspec numbers.
1395         * config/ia64/ia64.c: Likewise.
1396
1397 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
1398
1399         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1400         (save_restore_insns): Likewise.
1401         (mips_expand_prologue, mips_expand_epilogue): Update callers.
1402         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1403
1404 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@cygnus.com)
1405
1406         * athlon.md, k6.md, pentium.md, ppro.md): New files.
1407         * i386.md: Move scheduling information into new files.
1408
1409         * i386.md (type attribute): Add "rotate" for rotate insns.
1410         (rotate insns): Set type to "rotate".
1411         (various attributes and function units): Treat rotate like shift.
1412         (pent_pair attribute): Only rotates by one bit position are
1413         pairable.
1414         (sbb insns): Explicitly set pent_pair attribute on a couple
1415         that were missing it.
1416
1417 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
1418
1419         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1420         make sure that buffer starts on odd word address.
1421         (sh_va_arg): Skip odd fp registers when reading a double precision
1422         value.
1423
1424 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1425
1426         * tree.h (preserve_data, object_permanent_p, type_precision):
1427         Remove.
1428
1429 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1430
1431         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1432         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1433 doc:
1434         * cpp.texi: Update for removal of obsolete features.
1435
1436 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
1437                           Jeffrey A Law  (law@redhat.com)
1438
1439         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
1440         the DFA interface for Pentium processors.
1441         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1442         (attr_pent_pair, ix86_pent_find_pair): Remove.
1443         (ix86_sched_reorder_pentium): Remove.
1444         (ix86_sched_reorder): Remove reordering for Pentium.
1445         * i386.md (Pentium scheduling): Rewrite using DFA description.
1446
1447 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
1448
1449         * cfganal.c (can_fallthru): Fix fast path.
1450         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1451         with edges to the next block.
1452
1453 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
1454                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
1455
1456         * final.c (end_final): Use C trees to output data structures for profiling.
1457
1458         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1459         (profile.o): New dependency profile.h
1460         (final.o): New dependency profile.h
1461         * profile.h: New file. New global structure profile_info.
1462         * final.h (count_edges_instrumented_now): Declare.
1463         (current_function_cfg_checksum): Declare.
1464         (function_list): New structure.
1465         (functions_head, functions_tail): New static variables.
1466         (end_final): Emits more data, removed some -ax stuff.
1467         (final): Stores function names and chcksums.
1468         * gcov-io.h (__write_gcov_string): New function.
1469         (__read_gcov_string): New function.
1470         * gcov.c (read_profile): New function.
1471         (create_program_flow_graph): Uses read_profile instead of reading
1472         da_file.
1473         (read_files): Removed da_file checking, it's done by read_profile now.
1474         * libgcc2.c (bb_function_info): New structure.
1475         (bb): New field in structure, removed some -ax stuff.
1476         (__bb_exit_func): Changed structure of da_file.
1477         * profile.c (count_edges_instrumented_now): New global variable.
1478         (current_function_cfg_checksum): New global variable.
1479         (max_counter_in_program): New global variable.
1480         (get_exec_counts): New function.
1481         (compute_checksum): New function.
1482         (instrument_edges): Sets count_edges_instrumented_now.
1483         (compute_branch_probabilities): Uses get_exec_counts instead of
1484         reading da_file.
1485         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1486         (init_branch_prob): Removed da_file checking, done in get_exec_counts
1487         now.
1488         (end_branch_prob): Removed da_file checking, done in get_exec_counts
1489         now.
1490         * gcov.texi: Updated information about gcov file format.
1491
1492 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
1493
1494         * sbitmap.c: Fix formatting.
1495         * scan.c: Likewise.
1496         * scan-decls.c: Likewise.
1497         * sched-deps.c: Likewise.
1498         * sched-ebb.c: Likewise.
1499         * sched-rgn.c: Likewise.
1500         * sched-vis.c: Likewise.
1501         * sdbout.c: Likewise.
1502         * sibcall.c: Likewise.
1503         * simplify-rtx.c: Likewise.
1504         * ssa.c: Likewise.
1505         * ssa-ccp.c: Likewise.
1506         * ssa-dce.c: Likewise.
1507         * stmt.c: Likewise.
1508         * stor-layout.c: Likewise.
1509         * stringpool.c: Likewise.
1510
1511 2002-05-09  David S. Miller  <davem@redhat.com>
1512
1513         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1514
1515 2002-05-07  David S. Miller  <davem@redhat.com>
1516
1517         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1518         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1519         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1520         library implementation clobbers the output before the inputs
1521         are fully consumed, use stack temporary for the output.
1522
1523 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
1524
1525         * config/netbsd.h (CPP_SPEC): Remove.
1526         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1527         * config/i386/netbsd.h (CPP_SPEC): Define.
1528         * config/ns32k/netbsd.h (CPP_SPEC): Define.
1529         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1530         * config/sparc/netbsd.h (CPP_SPEC): Define.
1531         * config/vax/netbsd.h (CPP_SPEC): Define.
1532
1533 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
1534
1535         * read-rtl.c: Fix formatting.
1536         * real.c: Likewise.
1537         * recog.c: Likewise.
1538         * regclass.c: Likewise.
1539         * regmove.c: Likewise.
1540         * reg-stack.c: Likewise.
1541         * reload1.c: Likewise.
1542         * reload.c: Likewise.
1543         * resource.c: Likewise.
1544         * rtlanal.c: Likewise.
1545         * rtl.c: Likewise.
1546         * rtl-error.c: Likewise.
1547
1548 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1549
1550         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1551         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1552
1553 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
1554
1555         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1556         use __SSE2__ macro instead.
1557         * config/i386/xmmintrin.h: Likewise.
1558
1559 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
1560
1561         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1562         and use it in all invocations of these macros.  Clean up comments.
1563         * rtl.c (rtl_check_failed_flag): Add an argument for the name
1564         of the flag access macro whose check failed.
1565         * doc/rtl.texi (Flags): Document additional flag uses.
1566
1567 2002-05-08  Robert Spier <rspier@pobox.com>
1568             Neil Booth  <neil@daikokuya.demon.co.uk>
1569
1570         PR preprocessor/6521
1571         * cppfiles.c (handle_missing_header): Don't do anything
1572         different for <> includes.
1573 doc:
1574         * cppopts.texi: Update documentation for -MG.
1575
1576 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1577
1578         * cpplex.c (cpp_interpret_charconst): Truncate as well as
1579         sign-extend.
1580 doc:
1581         * cpp.texi: Clarify multichar charconst valuation.
1582
1583 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1584
1585         * doc/invoke.texi: Document -mwindiss option.
1586
1587 2002-05-08  Jason Merrill  <jason@redhat.com>
1588
1589         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1590
1591         * dwarf2out.c (gen_type_die): Abort on broken recursion.
1592
1593         PR c++/6381
1594         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1595         REAL_CST.
1596
1597 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
1598
1599         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1600         little-endian multilibs to override arm/thumb multilibs.
1601         Do not build hardware floating point multilibs, nor apcs-26
1602         multilibs for the Thumb.
1603
1604 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1605
1606         PR c/6569.
1607         * varasm.c (mark_weak): New function.
1608         (merge_weak): Use it.  Do not call declare_weak.
1609         (declare_weak): Use merge_weak.
1610
1611 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1612
1613         * cse.c (dead_libcall_p): Update counts.
1614         (delete_trivially_dead_insns): Update call of dead_libcall_p.
1615
1616 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
1617
1618         * cfglayout.c (function_tail_eff_head): Rename to ...
1619         (function_footer): ... this one.
1620         (unlink_insn_chain): New functions.
1621         (label_for_bb): Only call block_label and emit debug message.
1622         (record_effective_endpoints): Actually unlink the headers and footers.
1623         (fixup_reorder_cahin): Re-insert the unlinked sequences.
1624         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1625         * cfglayout.h (struct reorder_block_def): New fields footer/header;
1626         remove eff_head/eff_end.
1627         * rtl.h (set_first_insn): Declare.
1628         * emit-rtl.c (set_first_insn): New function.
1629
1630         * cfglayout.c (fixup_reorder_chain): Dump duplicated
1631         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1632         cfg_layout_duplicate_bb): New global function.
1633         (duplicate_insn_chain): New static function.
1634         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1635         cfg_layout_duplicate_bb): Declare.
1636         (struct reorder_block_def): Add "original" field.
1637         * emit-rtl.c (emit_copy_of_insn_after): New function.
1638         * rtl.h (emit_copy_of_insn_after): Declare.
1639
1640         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1641         (fixup_reorder_chain): properly handle edges to exit block.
1642
1643 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1644                                Jan Hubicka  <jh@suse.cz>
1645
1646         * basic-block.h (note_prediction_to_br_prob): declare.
1647         * c-semantics.c: Inlucde predit.h
1648         (expand_stmt): predict GOTO_STMT as not taken.
1649         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1650         (cleanup_cfg): Do not free tail_recursion_list.
1651         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1652         (flow_delete_block): Kill predictions past end of basic block.
1653         * output.h (delete_unreachable_blocks): Declare.
1654         * predict.c (predicted_by_p, process_note_predictions,
1655         process_note_prediction, last_block_p): New function.
1656         (estimate_probability): Bypass loop on PRED_CONTINUE;
1657         do not handle noreturn heuristics; kill PRED_RETURN; add
1658         PRED_EARLY_RETURN.
1659         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1660         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1661         * predict.h (IS_TAKEN): New constant.
1662         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1663         * rtl.c (NOTE_INSN_PREDICTION): New.
1664         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1665         New macro.
1666         (insn_note): add NOTE_INSN_PREDICTION.
1667         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1668         CFG; free tail_recursion_label_list.
1669         * stmt.c: Include predict.h;
1670         (return_prediction): New.
1671         (expand_value_return): Use it.
1672         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1673
1674 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
1675
1676         * config/mips/mips.md: Name the unspecs with define_constant.
1677         (*HILO_delay): Rename to 'hilo_delay' (no star).
1678         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1679         (reload_outdi, reload_outsi): Likewise.
1680
1681 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
1682
1683         * toplev.c: Fix formatting.
1684
1685 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
1686
1687         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1688         * configure.in (ac_rtlflag_checking): New.
1689         * doc/install.texi (--enable-checking): Document RTL flag checking.
1690
1691 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1692
1693         * c-common.c (c_common_init): Set options->unsigned_wchar.
1694         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1695         group target dependencies.
1696         (init_builtins, cpp_handle_option): Update.
1697         * cpplex.c (cpp_interpret_charconst): Update.
1698         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1699         signed_char to unsigned_char, group target dependencies.
1700         * defaults.h (WCHAR_UNSIGNED): Remove.
1701         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1702 config:
1703         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1704         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1705         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1706         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1707         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1708 doc:
1709         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1710
1711 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1712
1713         * fixinc/inclhack.def (windiss_math1): New fix.
1714         (windiss_math2): Likewise.
1715         (windiss_valist): Likewise.
1716         * fixinc/fixincl.x: Regenerated.
1717
1718 2002-05-07  Andreas Jaeger  <aj@suse.de>
1719
1720         * genautomata.c (output_internal_min_issue_delay_func): Add
1721         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1722         (output_internal_trans_func): Likewise.
1723
1724 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
1725
1726         * pa.c (hppa_profile_hook): Use force_reg to get the address
1727         of the profile hook into an appropriate pseudo register.
1728
1729 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1730
1731         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1732         (LINK_START_SPEC): Handle it.
1733         (LINK_OS_SPEC): Likewise.
1734         (CPP_SPEC): Likewise.
1735         (STARTFILE_SPEC): Likewise.
1736         (LIB_SPEC): Likewise.
1737         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
1738         all platforms.
1739         (CRTSAVRES_DEFAULT_SPEC): New macro.
1740         (LIB_WINDISS_SPEC): New macro.
1741         (CPP_OS_WINDISS_SPEC): Likewise.
1742         (STARTFILE_WINDISS_SPEC): Likewise.
1743         (ENDFILE_WINDISS_SPEC): Likewise.
1744         (LINK_START_WINDISS_SPEC): Likewise.
1745         (LINK_OS_WINDISS_SPEC): Likewise.
1746         * config/rs6000/windiss.h: New file.
1747
1748 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
1749
1750         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1751
1752 2002-05-06  David S. Miller  <davem@redhat.com>
1753
1754         * config/sparc/sparc.md (shift insns): Do not mask off
1755         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1756         take care of it.
1757
1758 2002-05-06  Richard Henderson  <rth@redhat.com>
1759
1760         PR c++/6212
1761         * expr.c (highest_pow2_factor_for_type): New.
1762         (expand_assignment): Use it.
1763
1764 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
1765
1766         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1767         unspec_volatile.
1768         ("altivec_mfvscr"): Same.
1769
1770 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1771
1772         * rtl.h (struct rtx_def): Update comments.
1773         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
1774         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
1775         RTL_FLAG_CHECK macros with list of expected RTL codes.
1776         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1777         (rtl_check_failed_flag): New.
1778         * reload1.c (reload): Use REG macro before changing rtx to MEM.
1779         (reload_cse_noop_set_p): Check rtx code before using access macro.
1780         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1781         before using access macro.
1782
1783 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1784
1785         * doc/rtl.texi (Flags): Update to reflect current usage.
1786
1787 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1788
1789         PR opt/3995
1790         * fold-const.c (sign_bit_p): New function.
1791         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1792         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1793         Reapply fold when converting (A & C) == C into (A & C) != 0.
1794         (fold_binary_op_with_conditional_arg): Fix typo in comment.
1795
1796 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1797
1798         * c-common.c (warn_multichar): New.
1799         (c_common_init): Set CPP's warn_multichar.
1800         * c-common.h (warn_multichar): New.
1801         * c-decl.c (warn_multichar): Remove.
1802         * c-lex.c (lex_charconst): Update.
1803         * c-tree.h (warn_multichar): Remove.
1804         * cppexp.c (eval_token): Sign-extend charconst value.
1805         * cppinit.c (cpp_create_reader): Set warn_multichar.
1806         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1807         each character.  Update prototype.  Sign-extend the result.
1808         * cpplib.h: Fix conditions.
1809         (struct cpp_options): Add new warning flag.
1810         (cpp_interpret_charconst): Update prototype.
1811 doc:
1812         * cpp.texi: Update documentation.
1813
1814 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
1815
1816         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1817         Fix typo in usage of allof instead of unit.
1818
1819 2002-05-06  Richard Henderson  <rth@redhat.com>
1820
1821         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1822         and any jump or call for IN.
1823
1824 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
1825
1826         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1827         -msse2.
1828         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1829
1830 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1831
1832         * fold-const.c (lshift-double): Cast the high word to an unsigned
1833         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1834         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1835         avoid compiler warning.  (fold): Remove redundant code from
1836         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1837
1838 2002-05-06  Jeff Law  <law@redhat.com>
1839
1840         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1841         * pa.c (pa_adjust_cost): Remove all true dependency cost
1842         adjustments.  Also remove support for non-DFA scheduling.
1843         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1844         to adjust true dependency costs.  Update various comments.
1845         (7100lc, 7200, 7300 scheduling): Simplify by combining the
1846         FP ALU & MPY units into a single unit.
1847
1848 2002-05-06  Catherine Moore  <clm@redhat.com>
1849
1850         * config/v850/v850.c (compute_register_save_size): Make sure
1851         to count all of the registers that will be saved.
1852
1853 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1854
1855         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1856
1857 2002-05-06  David S. Miller  <davem@redhat.com>
1858
1859         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1860         allow result to overlap input operands in memory.
1861
1862 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1863
1864 doc:
1865         * cpp.texi: Update multichar charconst docs.
1866
1867 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1868
1869         * cpplex.c (cpp_interpret_charconst): Sign-extend each
1870         character.  Don't ignore excess characters.  Treat
1871         multicharacter character constants as signed.
1872         (cpp_parse_escape): Clarify diagnostic.
1873
1874 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1875
1876         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1877         use add instead of shift.
1878         (ashldi3_sp64): Likewise.
1879         (ashlsi3_const1, ashldi3_const1): Remove.
1880         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1881         * config/sparc/sparc.c (const1_operand): New.
1882
1883 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
1884
1885         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1886
1887 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1888
1889         PR target/6561
1890         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1891
1892 2002-05-05  Richard Henderson  <rth@redhat.com>
1893
1894         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1895         memory latency adjustments.
1896         (alpha_variable_issue): Remove.
1897         (alpha_use_dfa_pipeline_interface): New.
1898         (alpha_multipass_dfa_lookahead): New.
1899         * config/alpha/alpha.md: Remove define_function_unit scheduling;
1900         include new dfa scheduling.
1901         (attr type): Add none.
1902         (blockage): Use it.
1903         * config/alpha/ev4.md: New.
1904         * config/alpha/ev5.md: New.
1905         * config/alpha/ev6.md: New.
1906
1907 2002-05-05  David S. Miller  <davem@redhat.com>
1908
1909         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1910
1911 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
1912
1913         * cse.c: Fix formatting.
1914         * emit-rtl.c: Likewise.
1915
1916 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
1917
1918         * genautomata.c (initiate_states): Add additional guard to
1919         initialize `units_array'.
1920
1921 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
1922
1923         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1924         process_unit_to_form_the_same_automaton_unit_lists,
1925         form_the_same_automaton_unit_lists
1926         check_unit_distributions_to_automata): New prototypes and
1927         functions.
1928         (check_automata): Rename it into `check_automata_insn_issues'.
1929         (unit_decl): New fields `the_same_automaton_unit' and
1930         `the_same_automaton_message_reported_p'.
1931         (unit_decl_t): New typedef.
1932         (the_same_automaton_lists): New gloval variable.
1933         (unit_regexp, unit_set_el, units_array, units_cmp,
1934         output_get_cpu_unit_code_func): Use the typedef.
1935         (evaluate_max_reserv_cycles): Increment
1936         `description->max_insn_reserv_cycles'.
1937         (initiate_states): Don't increment `max_cycles_num'.
1938         (transform_insn_regexps): Move code around transformation of
1939         regexps from `generate'.
1940         (generate): Remove call of `transform_insn_regexps'.
1941         (expand_automata): Call `transform_insn_regexps' and
1942         `check_unit_distributions_to_automata'.  Check errors before
1943         `generate'.
1944
1945         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1946         automaton `ultrasparc3_1'.
1947
1948 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1949
1950         * c-common.c (c_common_init): Set up CPP arithmetic.
1951         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1952         something reasonable for the host.
1953         (sanity_checks): Add checks.
1954         (cpp_read_main_file): Call sanity_checks() from here...
1955         (cpp_post_options): ... not here.
1956         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1957         * cpplib.h (struct cpp_options): New member int_precision.
1958
1959 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1960
1961         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1962
1963 2002-05-04  David S. Miller  <davem@redhat.com>
1964
1965         * config/sparc/linux.h, config/sparc/linux64.h
1966         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1967
1968         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1969         more RTX codes.
1970         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1971
1972         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1973         of SETs.
1974
1975 2002-05-05  Tim Josling  <tej@melbpc.org.au>
1976
1977         * treelang; New directory for new sample language treelang.
1978
1979 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1980
1981         * Makefile.in (c-lex.o): Update.
1982         * c-lex.c: Include target.h.
1983         (cb_register_builtins): New.
1984         (init_c_lex): Set builtins callback.
1985         * c-lex.h (cpp_define, cpp_assert): New prototypes.
1986         * cppinit.c (init_builtins): Use callback, including for
1987         GXX_WEAK.
1988         * cpplib.h (struct cpp_callbacks): New member.
1989         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1990         (TARGET_INITIALIZER): Update.
1991         * target.h (struct gcc_target): New hook.
1992         * tree.c (default_register_cpp_builtins): New.
1993         * tree.h (default_register_cpp_builtins): New.
1994 doc:
1995         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1996
1997 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1998
1999         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
2000         (cpp_post_options): Move sanity checks to...
2001         (sanity_checks): New.
2002         * cpplex.c (maybe_read_ucs): Fix prototype.
2003         (parse_string, cpp_parse_escape): Cast for %c format specifier.
2004         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
2005         if necessary.
2006
2007 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
2008
2009         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
2010         builtins.  Use V2DI patterns instead of TI for logical operations.
2011         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
2012         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
2013         (ix86_expand_builtins): Change the pattern used for movntdq.
2014         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
2015         sse2_nandv2di3): New patterns.
2016         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
2017         on operands.
2018         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
2019         (cvtdq2pd): Correct mode on operand 1.
2020         (sse2_umulsidi3): Describe without unspec.
2021         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
2022         machine modes.
2023         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
2024         (ashlv2di3): Likewise, from sse2_ashlv2di3.
2025         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
2026         ashlv4si3, ashlv2di3): Use SImode for shift count.
2027         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
2028         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
2029         New patterns.
2030         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
2031         New typedefs.
2032         (__m128i, __m128d): New macros.
2033         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
2034         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
2035         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
2036         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
2037         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
2038         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
2039         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
2040         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
2041         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
2042         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
2043         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
2044         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
2045         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
2046         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
2047         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
2048         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
2049         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
2050         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
2051         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
2052         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
2053         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
2054         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
2055         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
2056         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
2057         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
2058         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
2059         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
2060         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
2061         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
2062         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
2063         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
2064         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
2065         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
2066         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
2067         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
2068         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
2069         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
2070         functions.
2071         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
2072         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
2073
2074 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
2075
2076         * dwarf2out.c: Fix formatting.
2077         * varasm.c: Likewise.
2078
2079 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
2080
2081         PR c/6543
2082         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
2083         clobber and use result as temporary value.
2084
2085 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2086
2087         * expr.c (force_operand): Use expand_simple_* to handle more
2088         cases.
2089
2090 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2091
2092         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
2093         and sign-extension.
2094         (lex_charconst): Update for change in prototype of
2095         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
2096         appropriately.
2097         * cpphash.h (BITS_PER_CPPCHAR_T): New.
2098         * cppinit.c (cpp_create_reader): Initialize them for no
2099         change in semantics.
2100         (cpp_post_options): Add sanity checks.
2101         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
2102         and truncation issues.  Calculate in type cppchar_t.
2103         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
2104         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
2105         run-time dependent precision correctly.  Return whether the
2106         result is signed or not.
2107         * cpplib.c (dequote_string): Use cppchar_t; update.
2108         * cpplib.h (cppchar_signed_t): New.
2109         struct cpp_options): New precision members.
2110         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
2111         * cppexp.c (eval_token): Update.
2112
2113 2002-05-03  David S. Miller  <davem@redhat.com>
2114
2115         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
2116         * config/sparc/sparc.c (sparc_rtx_costs): New function
2117         implementing RTX_COSTS and CONST_COSTS.
2118         * config/sparc/sparc.h (CONST_COSTS): Delete.
2119         (RTX_COSTS_CASES): Define.
2120         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
2121         the work.
2122
2123         * config/sparc/sparc.md (DFA schedulers): Split out...
2124         * config/sparc/cypress.md, config/sparc/hypersparc.md,
2125         config/sparc/sparclet.md, config/sparc/supersparc.md,
2126         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
2127
2128         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
2129         checks on it, always defined for Sparc.
2130
2131         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
2132         Tweak, and add more detailed comments.
2133
2134 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
2135
2136         * Re-apply patch accidentally reverted with
2137         DFA scheduler merge: remove all rules and variables to slurp
2138         source files out of libiberty and rebuild them with HOST_CC.
2139         ($(HOST_PREFIX_1)varray.o): New rule.
2140         (genattrtab rule): Word wrap.
2141
2142 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2143
2144         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
2145         (CPP_SUBTARGET_SPEC): Define.
2146         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
2147         cpp_subtarget specs.
2148         (CPP_SPEC): Redefine to include %(cpp_subtarget).
2149
2150 2002-05-03  David S. Miller  <davem@redhat.com>
2151
2152         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2153         * target.h (struct gcc_target): Delete cycle_display member.
2154
2155         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
2156         (rtx_needs_barrier): Delete reference to cycle_display unspec.
2157         (ia64_sched_reorder2): Mention need for cycle display handling
2158         once such notes exist.
2159
2160 2002-05-03  Richard Henderson  <rth@redhat.com>
2161
2162         * real.c (etoasc): Strip most trailing zeros for clarity.
2163         * sched-vis.c: Include real.h.
2164         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
2165         * Makefile.in (sched-vis.o): Add real.h.
2166
2167 2002-05-03  David S. Miller  <davem@redhat.com>
2168
2169         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2170         no longer needed.
2171
2172 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
2173
2174         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2175         when we get an out of range literal.
2176         (altivec_expand_ternop_builtin): Same.
2177         (altivec_expand_unop_builtin): Same.
2178         (altivec_expand_builtin): Same, for dss.
2179         (altivec_expand_builtin): Use trees instead of rtl when
2180         determining literal argument validity.
2181
2182 2002-05-03  David S. Miller  <davem@redhat.com>
2183
2184         Delete cycle display scheduling hook.
2185         * config/ia64/ia64.c (ia64_cycle_display,
2186         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2187         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2188         and use emit_insn_before instead of ia64_emit_insn_before.
2189         * config/ia64/ia64.md (unspec usage): Delete cycle display.
2190         (cycle_display): Delete insn pattern.
2191         * config/sparc/sparc.md (unspec usage): Delete cycle display.
2192         (cycle_display): Delete insn pattern.
2193         * config/sparc/sparc.c (sparc_cycle_display,
2194         TARGET_SCHED_CYCLE_DISPLAY): Delete.
2195         * doc/md.texi (cycle_display): Don't mention.
2196         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
2197
2198 2002-05-03  Richard Henderson  <rth@redhat.com>
2199
2200         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2201         * recog.h: Declare them.
2202
2203         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2204         * config/sparc/sparc.md: Use store_data_bypass_p instead.
2205         * config/sparc/sparc-protos.h: Update.
2206
2207 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2208
2209         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2210         -D__arch64__.  Add -D_LP64.
2211         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2212         from sparc.h.
2213         (CPP_ARCH64_SPEC): Likewise.
2214         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2215         (NO_BUILTIN_SIZE_TYPE): Undef.
2216
2217 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
2218
2219         * genautomata.c (min_issue_delay_pass_states): Change return type
2220         in the prototype.
2221         (min_issue_delay_pass_states): Change the algorithm.
2222         (min_issue_delay): Set up min_insn_issue_delay for the state.
2223         (output_min_issue_delay_table): Interchange the nested loops and
2224         and initiate min_insn_issue_delay for states.
2225
2226 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
2227
2228         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
2229         jump is simplejump.
2230
2231 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
2232
2233         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
2234         sequence.
2235
2236 2002-05-03  Richard Henderson  <rth@redhat.com>
2237
2238         PR opt/6534
2239         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2240         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2241         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2242         code before JUMP, not EARLIEST.
2243
2244 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2245
2246         * c-format.c (check_format_info_main): Don't check for presence of
2247         parameter for * width until after operand number has been read,
2248         and only check for it if format parameters are available.
2249         Fixes PR c/6547.
2250
2251 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2252
2253         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2254         (LINK_SPEC): Undef before defining.
2255
2256 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2257
2258         PR preprocessor/6489
2259         * tradcpp.c (fixup_newlines): New.
2260         (main, finclude): Use it.
2261
2262 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
2263
2264         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2265         * config/mips/mips.c (mips_unique_section): Strip encoding from
2266         decl name.
2267
2268 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2269
2270         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2271         mode.
2272
2273 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2274
2275         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2276         (Specific): Removed buildstats references.
2277         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2278         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2279         Accomodate Solaris versions beyond 8.
2280         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2281         (Specific, *-*-solaris2.8): Removed, obsolete.
2282
2283 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2284
2285         PR target/6542
2286         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2287         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2288         fill leaf_reg_remap with identity.
2289         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2290
2291 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2292
2293         * config/h8300/crti.asm: Remove trailing spaces.
2294         * config/h8300/h8300.c: Likewise.
2295         * config/h8300/lib1funcs.asm: Likewise.
2296
2297 2002-05-02  Jason Merrill  <jason@redhat.com>
2298
2299         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2300         * c-decl.c (c_init_decl_processing): Use it.
2301         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2302         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2303         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2304
2305 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2306
2307         * regrename.c: Fix formatting.
2308         * tree.c: Likewise.
2309
2310 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2311
2312         * i386.md (attribute memory): Handle compares properly.
2313
2314 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
2315
2316         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2317         to none.
2318
2319 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2320
2321         * function.c: Fix formatting.
2322
2323 2002-05-02  Jan Hubicka  <jh@suse.cz>
2324
2325         * haifa-sched.c (schedule_insn): Print table of instructions and
2326         reservations.
2327         (sched_block): Do not print ready list at verbosity level 1.
2328         * sched-vis.c (print_insn): Make global.
2329         * sched-ebb.c (ebb_print_insn): Rename from...
2330         (print_insn): ... this one.
2331         * sched-int.h (print_insn): Declare
2332
2333 2002-05-02  Richard Henderson  <rth@redhat.com>
2334
2335         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2336         emitted by cycle_display.
2337
2338 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
2339
2340         * doc/install.texi (*-*-freebsd*): Update to latest status.
2341
2342 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2343
2344         PR target/6540
2345         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2346         * config/float-sparc.h: Assume 128-bit long double if
2347         __LONG_DOUBLE_128__ is defined.
2348
2349 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
2350
2351         * genattrtab.c (write_function_unit_info): Add a dummy element
2352         when num_units == 0.
2353
2354 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2355
2356         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2357         TYPE_MODE (double_type_node) instead of DFmode.
2358
2359 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
2360
2361         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2362         jumps post reload.
2363         * toplev.c (rest_of_compilation): Revert Richard's patch.
2364
2365 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2366
2367         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2368
2369 2002-05-02  Catherine Moore  <clm@redhat.com>
2370
2371         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2372
2373 2002-05-02  Kazu Hirata  <kazu@hxi.com>
2374
2375         * combine.c: Fix comment typos.
2376         * expr.c: Likewise.
2377         * genautomata.c: Likewise.
2378         * stmt.c: Likewise.
2379         * tree.h: Likewise.
2380
2381 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2382
2383         * doc/install.texi: State GNAT version requirements.
2384
2385 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
2386
2387         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2388         of the frame pointer or arg pointer register which strict register
2389         checking is not enabled.
2390
2391 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
2392
2393         * gcc.dg/altivec-8.c: New.
2394
2395         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2396         PRE_INC and PRE_DEC for altivec modes.
2397
2398 2002-05-01  Bruce Korb  <bkorb@gnu.org>
2399
2400         * fixinc/check.tpl(set-writable): make sure the function exists first
2401         * fixinc/inclhack.def(alpha_assert): fix test_text
2402         * fixinc/tests/base/assert.h: add in missing result
2403
2404 2002-05-01  Jeff Law  <law@redhat.com>
2405
2406         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2407         'T' constraint.
2408
2409 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
2410
2411         * dbxout.c (dbxout_type): Emit size information for range types,
2412         as well, but only when using GDB extensions.
2413
2414 2002-05-01  Richard Henderson  <rth@redhat.com>
2415
2416         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2417         target-independent gnu binutils date test.
2418
2419 2002-05-01  Richard Henderson  <rth@redhat.com>
2420
2421         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2422         info before expunging the block.
2423
2424 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2425
2426         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2427         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
2428         -M -or -MM is in effect.
2429
2430 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
2431
2432         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
2433         A29k configurations.
2434         * doc/install.texi: Update to match.
2435
2436 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2437
2438         PR bootstrap/6514
2439         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2440         for duplicates. Always loop over whole list.
2441
2442 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2443
2444         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2445
2446 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2447
2448         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2449         support routines.
2450
2451 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2452
2453         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2454
2455 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
2456
2457         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2458         (nabs_nopower): Same.
2459         (floatdisf2): New pattern.
2460         (absdi2): Convert to define_insn_and_split.
2461         (nabsdi2): Same.
2462         (trunctfsf2): Same.
2463         (floatditf2): Same.
2464         (floatsitf2): Same.
2465         (fix_trunctfdi2): Same.
2466         (fix_trunctfsi2): Same.
2467
2468 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2469
2470         * doc/install.texi: Update Texinfo version requirement
2471         documentation.
2472
2473 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2474
2475         PR target/6512, PR target/5628
2476         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2477         when memory is not aligned.
2478         (movdf_insn_v9only_vis): Likewise.
2479         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2480         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2481         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2482
2483 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
2484
2485         * gcc.dg/altivec-7.c: New.
2486
2487         * config/rs6000/altivec.h: Cleanup.
2488
2489 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
2490
2491         * doc/invoke.texi (Option Summary): Add -mvrsave=.
2492         (RS/6000 and PowerPC Options): Document -mvrsave=.
2493
2494         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2495         (rs6000_altivec_vrsave_string): Same.
2496         (rs6000_override_options): Call rs6000_parse_vrsave_option.
2497         (rs6000_parse_vrsave_option): New.
2498         (rs6000_stack_info): Only generate vrsave instructions when
2499         TARGET_ALTIVEC_VRSAVE.
2500
2501         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2502         (rs6000_altivec_vrsave_string): Define extern.
2503         (rs6000_altivec_vrsave): Same.
2504         (TARGET_ALTIVEC_VRSAVE): New.
2505
2506 2002-04-30  Richard Henderson  <rth@redhat.com>
2507
2508         PR opt/6516
2509         * toplev.c (rest_of_compilation): Don't run cross-jump before
2510         bb-reorder.
2511
2512 2002-04-30  Tom Rix  <trix@redhat.com>
2513
2514         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2515         check which_alternative.
2516
2517 2002-04-30  Kazu Hirata  <kazu@hxi.com>
2518
2519         * cpplex.c: Fix comment formatting.
2520         * function.c: Likewise.
2521         * integrate.c: Likewise.
2522         * regrename.c: Likewise.
2523         * sibcall.c: Likewise.
2524         * simplify-rtx.c: Likewise.
2525         * tree-inline.c: Likewise.
2526
2527 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2528
2529         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2530         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2531         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2532         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2533         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2534         * pa/x-ada: New file.  Define ADA_CFLAGS.
2535
2536 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
2537
2538         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2539         from MMIX_LAST_REGISTER_FILE_REGNUM.
2540         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2541         (struct machine_function): New member highest_saved_stack_register
2542         previously static variable in mmix.c.
2543         (MACHINE_DEPENDENT_REORG): Define.
2544         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2545         (MMIX_OUTPUT_REGNO): New.
2546         (mmix_target_asm_function_prologue): Move calculation of last used
2547         saved-stack-register into...
2548         (mmix_machine_dependent_reorg): New function.  Update to also handle
2549         !TARGET_ABI_GNU.
2550         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2551         register names, simplify somewhat by new variable regno.
2552         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
2553         register.
2554         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2555         emitting register names.
2556         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2557         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2558         Remove fixed FIXME.
2559         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2560         Declare.
2561
2562         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2563
2564 2002-04-30  Richard Henderson  <rth@redhat.com>
2565
2566         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2567         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2568         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2569         emit_tfmode_cvt): New.
2570         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2571         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2572         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2573         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2574         * config/sparc/sparc-protos.h: Update.
2575
2576 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
2577
2578         * install.texi (Final install): Add to the list of info to include
2579         in a report of a successful bootstrap, and add link to 3.1 list.
2580
2581 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
2582
2583         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2584         (mode): Add vector modes
2585         (i387): Kill attribute.
2586         (unit): New attribute.
2587         (length_immediate): Grok new types.
2588         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2589         (modrm): Use "unit".
2590         (memory): Handle MMX/SSE properly.
2591         (scheduling descriptions): Kill uses of fop1.
2592         (sse, mmx, fp patterns): Set type and mode properly.
2593
2594 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
2595
2596         * pa.c (override_options): Default to PA8000 scheduling.
2597         * doc/invoke.texi (HP-PA options): Mention newly added 7300
2598         scheduling parameter.
2599
2600         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2601         handling of double precision multiplies.
2602
2603         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2604         fpdiv and fpsqrt instructions.
2605         (7200 & 7300 scheduling): Fix typo in handling of
2606         store-load and store-store penalties.
2607
2608 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2609
2610         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2611         mips.  Add two missing commas.
2612
2613 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
2614
2615         * doc/contrib.texi (Contributors): Update Paolo Carlini's
2616         and Benjamin Kosnik's entries.
2617
2618 2002-04-29  David S. Miller  <davem@redhat.com>
2619
2620         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2621         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2622         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2623         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2624
2625 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2626
2627         * combine.c (find_split_point): Use gen_int_mode.
2628
2629 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
2630
2631         Merging code from dfa-branch:
2632
2633         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2634
2635         * genautomata.c (output_reserv_sets): Fix typo.
2636
2637         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
2638
2639         * genautomata.c (output_reserv_sets): Remove
2640         next_cycle_output_flag.
2641
2642         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
2643
2644         * sched-rgn.c (init_ready_list): Make the DFA code handle
2645         USE/CLOBBER insns in the same way as the traditional
2646         scheduler.
2647         (new_ready): Similarly..
2648
2649         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
2650
2651         * haifa-sched.c (schedule_block): Change the DFA state only after
2652         issuing insn.
2653
2654         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
2655
2656         * pa.c (hppa_use_dfa_pipeline_interface): New function.
2657         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2658         (override_options): Add PA7300 scheduling support.
2659         (pa_adjust_cost): Update various comments.  Properly
2660         handle anti and output dependencies when using the
2661         DFA scheduler.
2662         (pa_issue_rate): Add PA7300 scheduling support.
2663         (pa_can_combine_p): Call extract_insn before calling
2664         constrain_operands (taken from mainline tree).
2665         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2666         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
2667         descriptions using DFA descriptions.  Add PA7300
2668         scheduling support.
2669
2670         2002-03-30  David S. Miller  <davem@redhat.com>
2671
2672         Add UltraSPARC-III DFA scheduling support.
2673         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2674         Update FP conditional move on register insn patterns to use it, as
2675         appropriate.
2676         (define_attr cpu): Add ultrasparc3.
2677         (define_attr us3load_type): New, update integer load patterns to
2678         set it, as appropriate.
2679         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2680         (rest): Add UltraSPARC3 scheduling description.
2681         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2682         (PROCESSOR_ULTRASPARC3): New.
2683         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2684         ({ASM,CPP}_CPU_SPEC): Likewise.
2685         (REGISTER_MOVE_COST): Likewise.
2686         (RTX_COSTS): Likewise.
2687         * config/sparc/sparc.c (sparc_override_options,
2688         sparc_initialize_trampoline, sparc64_initialize_trampoline,
2689         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2690         sparc_issue_rate): Likewise.
2691         * config/sparc/sol2.h: Likewise.
2692         * config/sparc/sol2-sld-64.h: Likewise.
2693         * config/sparc/linux64.h: Likewise.
2694
2695         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
2696
2697         * doc/md.texi: Add comments about usage the latency time for the
2698         different dependencies and about case when two or more conditions
2699         in different define_insn_reservations returns TRUE for an insn.
2700
2701         * doc/md.texi: Add reference for automaton based pipeline
2702         description.
2703
2704         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
2705
2706         * doc/passes.texi: Add missed information about genattrtab.
2707
2708         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
2709
2710         * genautomata.c (output_automata_list_transition_code): Check
2711         automata_list on NULL.
2712
2713         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
2714
2715         * genautomata.c (output_insn_code_cases,
2716         output_automata_list_min_issue_delay_code,
2717         output_automata_list_transition_code,
2718         output_automata_list_state_alts_code): Comment the functions.
2719
2720         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
2721
2722         * genautomata.c (automata_list_el_t): New typedef.
2723         (get_free_automata_list_el,free_automata_list_el,
2724         free_automata_list, automata_list_hash, automata_list_eq_p,
2725         initiate_automata_lists, automata_list_start, automata_list_add,
2726         automata_list_finish, finish_automata_lists,
2727         output_insn_code_cases, output_automata_list_min_issue_delay_code,
2728         output_automata_list_transition_code,
2729         output_automata_list_state_alts_code, add_automaton_state,
2730         form_important_insn_automata_lists): New functions and prototypes.
2731         (insn_reserv_decl): Add members important_automata_list and
2732         processed_p.
2733         (ainsn): Add members important_p.
2734         (automata_list_el): New structure.
2735         (first_free_automata_list_el, current_automata_list,
2736         automata_list_table): New global variables.
2737         (create_ainsns): Initiate member important_p.
2738         (output_internal_min_issue_delay_func): Generate the switch and
2739         call output_insn_code_cases.
2740         (output_internal_trans_func, output_internal_state_alts_func):
2741         Ditto.
2742         (generate): Call initiate_automata_lists.
2743         (automaton_states): New global variable.
2744         (expand_automata): Call form_important_insn_automata_lists.
2745         (write_automata): Call finish_automata_lists.
2746
2747         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
2748
2749         * genautomata.c (add_excls, add_presence_absence): Check that
2750         cpu units in the sets belong the same automaton.
2751
2752         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2753         about that cpu units in the sets belong the same automaton.
2754
2755         * doc/md.texi: Ditto.
2756
2757         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
2758                     Nitin Gupta  <niting@noida.hcltech.com>
2759
2760         * config/sh/sh.c (sh_use_dfa_interface): New function.
2761
2762         (sh_issue_rate): New Function.
2763         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2764         TARGET_SCHED_ISSUE_RATE: define.
2765
2766         * config/sh/sh.md: Add DFA based pipeline description for SH4.
2767
2768         (define_attr insn_class): New attribute used for DFA
2769          scheduling.
2770         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2771         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2772          cmpeqdi_t): Likewise.
2773
2774         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2775          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2776          ex_group.
2777         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2778
2779         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2780
2781         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2782         break.
2783
2784         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2785
2786         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2787         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2788         necessary.
2789         (output_dfa_start_func): Initiate new variable insn_codes_length,
2790         (write_automata): Output definition of the new variable.
2791
2792         2001-10-02  David S. Miller  <davem@redhat.com>
2793
2794         * haifa-sched.c (advance_one_cycle): New function.
2795         (schedule_block): Use it.
2796         (queue_to_ready): Use it, and also make sure to advance the DFA
2797         state on all stall cycles, not just those where insn_queue links
2798         are found.
2799
2800         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
2801
2802         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
2803         non-zero if the highest-priority instruction could be scheduled.
2804         (choose_ready): Remove last argument from max_issue call.
2805
2806         2001-09-28  David S. Miller  <davem@redhat.com>
2807
2808         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2809         ultrasparc and 3 for other multi-issue sparcs.
2810
2811         2001-09-27  David S. Miller  <davem@redhat.com>
2812
2813         * config/sparc/sparc.md (cycle_display): New pattern.
2814         * config/sparc/sparc.c (sparc_cycle_display): New.
2815         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2816
2817         2001-09-25  David S. Miller  <davem@redhat.com>
2818
2819         Convert all of Sparc scheduling to DFA
2820         * config/sparc/sparc.md: Kill all define_function_unit
2821         directives and replace with DFA equivalent.
2822         * config/sparc/sparc.c (ultrasparc_adjust_cost,
2823         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2824         ultra_fpmode_conflict_exists, ultra_find_type,
2825         ultra_build_types_avail, ultra_flush_pipeline,
2826         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2827         ultrasparc_variable_issue, ultrasparc_sched_init,
2828         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2829         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2830         ultra_cur_hist, ultra_cycles_elapsed): Kill.
2831         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2832         ultrasparc_store_bypass_p): New.
2833         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2834         Declare.
2835
2836         2001-09-24  David S. Miller  <davem@redhat.com>
2837
2838         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2839         ready->vec[foo] not ready[foo].
2840
2841         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2842
2843         * doc/md.texi: Correct examples for define_insn_reservations
2844         `mult' and `div'.
2845
2846         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2847
2848         * genautomata.c (create_automata): Print message about creation of
2849         each automaton.
2850         (generate): Remove printing meease about creation of
2851         automata.
2852
2853         2001-09-05  David S. Miller  <davem@redhat.com>
2854
2855         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2856         * config/sparc/linux64.h: Likewise.
2857
2858         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
2859
2860         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2861         schedule_block, sched_init, sched_finish): Add missed calls of
2862         use_dfa_pipeline_interface.
2863
2864         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2865         Ditto.
2866
2867         * sched-vis.c (get_visual_tbl_length): Ditto.
2868
2869         2001-08-27  Richard Henderson  <rth@redhat.com>
2870
2871         * genattr.c (main): Emit state_t even when not doing scheduling.
2872
2873         2001-08-27  Richard Henderson  <rth@redhat.com>
2874
2875         * genautomata.c (expand_automata): Always create a description.
2876
2877         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
2878
2879         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2880         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2881         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2882         RTL constructions.
2883
2884         * genattr.c (main): New variable num_insn_reservations.  Increase
2885         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
2886         pipeline hazard recognizer interface.
2887
2888         * genattrtab.h: New file.
2889
2890         * genattrtab.c: Include genattrtab.h.
2891         (attr_printf, check_attr_test, make_internal_attr,
2892         make_numeric_value): Move protypes into genattrtab.h.  Define them
2893         as external.
2894         (num_dfa_decls): New global variable.
2895         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2896         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2897         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2898         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
2899
2900         * genautomata.c: New file.
2901
2902         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2903
2904         * sched-int.h: (curr_state): Add the external definition for
2905         automaton pipeline interface.
2906         (haifa_insn_data): Add comments for members blockage and units.
2907
2908         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2909         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2910         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2911         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2912         TARGET_SCHED_DFA_POST_CYCLE_INSN,
2913         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2914         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2915         macros.
2916         (TARGET_SCHED): Use the new macros.
2917
2918         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2919         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2920         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2921         dfa_bubble): New members in gcc_target.sched.
2922
2923         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2924         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2925         (insn_queue): Redefine it as pointer to array.
2926         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2927         INSN_QUEUE_SIZE.
2928         (max_insn_queue_index_macro_value): New variable.
2929         (curr_state, dfa_state_size, ready_try): New varaibles for
2930         automaton interface.
2931         (ready_element, ready_remove, max_issue): New function prototypes
2932         for automaton interface.
2933         (choose_ready): New function prototype.
2934         (insn_unit, blockage_range): Add comments.
2935         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2936         FUNCTION_UNITS_SIZE == 0.
2937         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2938         actual_hazard, potential_hazard): Add comments.
2939         (insn_cost): Use cost -1 as undefined value.  Remove
2940         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
2941         pipeline interface.
2942         (ready_element, ready_remove): New functions for automaton
2943         interface.
2944         (schedule_insn): Add new code for automaton pipeline interface.
2945         (queue_to_ready): Add new code for automaton pipeline interface.
2946         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2947         (debug_ready_list): Print newline when the queue is empty.
2948         (max_issue): New function for automaton pipeline interface.
2949         (choose_ready): New function.
2950         (schedule_block): Add new code for automaton pipeline interface.
2951         Print ready list before scheduling each insn.
2952         (sched_init): Add new code for automaton pipeline interface.
2953         Initiate insn cost by -1.
2954         (sched_finish): Free the current automaton state and finalize
2955         automaton pipeline interface.
2956
2957         * sched-rgn.c: Include target.h.
2958         (init_ready_list, new_ready, debug_dependencies): Add new code for
2959         automaton pipeline interface.
2960
2961         * sched-vis.c: Include target.h.
2962         (get_visual_tbl_length): Add code for automaton interface.
2963         (target_units, print_block_visualization):  Add comments.
2964
2965         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2966         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2967         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2968         (getruntime.o, genautomata.o): New entries.
2969         (genattrtab.o): Add new dependency file genattrtab.h.
2970         (genattrtab): Add new dependencies.  Link it with `libm.a'.
2971         (getruntime.o, hashtab.o): New entries for canadian cross.
2972
2973         * doc/md.texi: Description of automaton based model.
2974
2975         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2976         Add comments.
2977         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2978         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2979         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2980         TARGET_SCHED_DFA_POST_CYCLE_INSN,
2981         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2982         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2983         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2984         hook descriptions.
2985         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2986         MAX_DFA_ISSUE_RATE): New macro descriptions.
2987
2988         * doc/contrib.texi: Add dfa based scheduler contribution.
2989
2990         * doc/gcc.texi: Add more information about genattrtab.
2991
2992 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2993
2994         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2995         adjust_address_nv call.
2996
2997 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
2998
2999         * doc/install.texi (Testing): Provide additional information, and
3000         a stronger encouragement, for running the testsuites.
3001
3002 2002-04-29  DJ Delorie  <dj@redhat.com>
3003
3004         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
3005         given in upper case.
3006
3007 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3008
3009         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
3010         Solaris 2 <widec.h> if missing.
3011         * fixinc/fixincl.x: Regenerate.
3012         * fixinc/tests/base/widec.h: New file.
3013
3014 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
3015
3016         * toplev.c (f_options): Add "profile" switch so that
3017         -fno-profile can be used to disable -p.
3018
3019 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
3020
3021         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
3022         UV2DImode.
3023         * tree.c (build_common_tree_nodes_2): Likewise.
3024         * tree.h (enum tree_index): Likewise.
3025         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
3026
3027         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
3028         entries.
3029         (init_mmx_sse_builtins): Initialize SSE2 builtins.
3030         (ix86_expand_builtin): Add support for SSE2 builtins.
3031         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
3032         (VALID_SSE_REG_MODE): Use it.
3033         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
3034         (enum ix86_builtins): Add SSE2 builtins.
3035         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
3036         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
3037         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
3038         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
3039         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
3040         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
3041         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
3042         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
3043         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
3044         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
3045         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
3046         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
3047         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
3048         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
3049         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
3050         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
3051         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
3052         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
3053         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
3054         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
3055         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
3056         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
3057         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
3058         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
3059         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
3060         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
3061         lfence_insn): New patterns.
3062         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
3063         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
3064
3065 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
3066
3067         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
3068
3069 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3070
3071         * doc/contrib.texi (Contributors): Add Paolo Carlini and
3072         Janis Johnson.
3073         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
3074         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
3075         and CPU instead of cpu.
3076
3077 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3078
3079         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
3080         variables.
3081         (lang_independent_options): Add -fif-conversion, -fif-conversion2
3082         (rest_of_compilation): Do if conversion only when asked for.
3083         (parse_options_and_default_flags): Set new variables to 1 for -O1
3084         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
3085
3086 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3087
3088         * i386.c (dbx64_register_map): Fix typo.
3089
3090 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3091
3092         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
3093         real_one_half, real_bb_freq_max): New static variables.
3094         (debug_profile_bbauxs): Kill.
3095         (process_note_predictions): Kill unused variable.
3096         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
3097         volatile double.
3098         (propagate_freq): Use REAL_ARITHMETICS.
3099         (estimate_bb_frequencies): Likevise; init new static variables.
3100         * Makefile.in (predict.o): Add dependency on real.h
3101
3102 2002-04-28  David S. Miller  <davem@redhat.com>
3103
3104         PR target/6500
3105         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
3106         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
3107         several {reads,writes} instead.
3108         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
3109         Define.
3110
3111 2002-04-27  David S. Miller  <davem@redhat.com>
3112
3113         PR target/6494
3114         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
3115         of the stack bias.
3116
3117         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
3118         including signal.h and sys/ucontext.h, not needed.
3119
3120 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
3121
3122         * varasm.c (output_constant_def): Correct test for not calling
3123         ENCODE_SECTION_INFO for INTEGER_CST.
3124
3125 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3126
3127         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
3128         keep most cases as function eval_token.
3129         (eval_token): New function.
3130         (_cpp_parse_expr): Read token here for improved diagnostics.
3131         Don't use op_as_text.  Detect bad ':' here.
3132         (reduce): Don't detect bad ':' here.
3133         (op_as_text): Remove.
3134         * cpphash.h (_cpp_test_assertion): Change prototype.
3135         * cpplib.c (_cpp_test_assertion): Change prototype.
3136
3137 2002-04-28  Richard Henderson  <rth@redhat.com>
3138
3139         PR c/5154
3140         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
3141         (ggc_mark_rtx_children): New.
3142
3143 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3144
3145         PR target/6496
3146         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
3147         after call peepholes for UltraSPARC.
3148         (call + jump 64-bit peepholes): Remove.
3149
3150 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3151
3152         PR c/6497
3153         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
3154         result as temporary value.
3155
3156 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3157
3158         PR c++/6396
3159         * toplev.c (rest_of_compilation): Only run regrename and copy
3160         propagation if optimizing.
3161
3162 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
3163
3164         PR optimization/6475
3165         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
3166         register of REGNO_DECL (i).
3167         * Makefile.in (reload1.o): Add $(TREE_H).
3168
3169 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3170
3171         * cppexp.c (lex): Update to use state.skip_eval.
3172         (struct op): Remove prio and flags members.
3173         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3174         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3175         (LEFT_ASSOC): New macro.
3176         (optab): New table of operator priorities and flags.
3177         (SHIFT): Update.
3178         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
3179         malloc-ed parser stack.
3180         (reduce): New; reduce the operator stack.
3181         (_cpp_expand_op_stack): Expand the operator stack as necessary.
3182         * cpphash.h (struct op): Predeclare.
3183         (struct cpp_reader): New members op_stack, op_limit.
3184         (struct lexer_state): New member skip_eval.
3185         (_cpp_parse_expr): Update.
3186         (_cpp_expand_op_stack): New.
3187         * cpplib.c (do_if): Update.
3188         * cppinit.c (cpp_create_reader): Create op stack.
3189         (cpp_destroy): And destroy it.
3190         * cpplib.h (CPP_LAST_CPP_OP): Correct.
3191         (TTYPE_TABLE): Correct.
3192
3193 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3194
3195         PR c/6343
3196         * c-decl.c (duplicate_decls): Call merge_weak.
3197         * c-pragma.c (apply_pragma_weak): Warn about misuse.
3198         * output.h (merge_weak): Prototype merge_weak.
3199         * varasm.c (merge_weak): New function.
3200         (declare_weak): Make sure we don't give an error on VAR_DECLs.
3201         Mark RTL with SYMBOL_REF_WEAK.
3202
3203 2002-04-27  Kurt Garloff <garloff@suse.de>
3204
3205         * tree-inline.c (inlinable_function_p): Improve heuristics
3206         by using a smoother function to cut down allowable inlinable size.
3207         * param.def: Add parameters max-inline-insns-single,
3208         max-inline-slope, min-inline-insns that determine the exact
3209         shape of the above function.
3210         * param.h: Likewise.
3211
3212 2002-04-26  Richard Henderson  <rth@redhat.com>
3213
3214         * c-parse.in (malloced_yyss, malloced_yyvs): New.
3215         (yyoverflow): Re-add.  Set them.
3216         (free_parser_stacks): New.
3217         * c-common.h: Declare it.
3218         * c-lex.c (c_common_parse_file): Call it.
3219
3220 2002-04-26  Richard Henderson  <rth@redhat.com>
3221
3222         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3223         for fallthru search.
3224
3225 2002-04-26  Eric Christopher  <echristo@redhat.com>
3226
3227         PR optimization/3700
3228         * config/mips/mips.c (mips_issue_rate): Define.  New function.
3229         (TARGET_SCHED_ISSUE_RATE): Use.
3230
3231 2002-04-25  David S. Miller  <davem@redhat.com>
3232
3233         PR target/6422
3234         * reorg.c (optimize_skip): Do not allow exception causing
3235         instructions to be considered for delay slots.
3236         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3237         (relax_delay_slots): Do not try to consider exception causing
3238         instructions as redundant.
3239
3240 2002-04-26  Richard Henderson  <rth@redhat.com>
3241
3242         PR c/5225
3243         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3244
3245 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
3246
3247         PR bootstrap/6445
3248         * config/i386/i386.md (untyped_call): Return the value in a float
3249         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3250         TARGET_80387.
3251
3252 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
3253
3254         * tree.c (tree_int_cst_lt): Compare constants whose types differ
3255         in unsigned-ness correctly.
3256
3257 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3258
3259         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3260         portable runtime model.
3261
3262 2002-04-26  Richard Henderson  <rth@redhat.com>
3263
3264         * c-parse.in (yyoverflow): Revert.
3265
3266 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
3267             Richard Henderson  <rth@redhat.com>
3268
3269         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3270         result as temporary value.
3271
3272 2002-04-26  Richard Henderson  <rth@redhat.com>
3273
3274         PR c/3581
3275         * c-common.c (fix_string_type): Split out of ...
3276         (combine_strings): ... here.  Take a varray, not a tree list.
3277         (c_expand_builtin_printf): Use fix_string_type.
3278         * c-common.h: Update decls.
3279         * c-parse.in (string): Remove.  Update all uses to use STRING
3280         instead, and not call combine_strings.
3281         (yylexstring): New.
3282         (_yylex): Use it.
3283         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3284         (build_asm_stmt): Likewise.
3285         * objc/objc-act.c (my_build_string): Use fix_string_type.
3286         (build_objc_string_object): Build varray for combine_strings.
3287
3288 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
3289
3290         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3291         x86-64.
3292
3293 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3294
3295         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3296         (HAVE_NO_R_OPERAND): Remove.
3297         (HAVE_VALUE): Remove.
3298         (op_to_prio): Update.
3299         (UNARY): Don't alter flags.
3300         (_cpp_parse_expr): want_value used to indicate whether
3301         a number or unary operator is expected next.  Distinguish
3302         unary and binary +/-.
3303         (op_as_text): Update for unary operators.
3304
3305 2002-04-25  Richard Henderson  <rth@redhat.com>
3306
3307         PR c/2161
3308         * c-parse.in (yyoverflow): New.
3309
3310 2002-04-25  Richard Henderson  <rth@redhat.com>
3311
3312         PR c/2098
3313         * c-common.c (shorten_compare): Simplfy conditions leading to
3314         the generation of a warning.
3315
3316 2002-04-25  Richard Henderson  <rth@redhat.com>
3317
3318         PR c/2035
3319         * expmed.c (extract_bit_field): Fall through to generic code rather
3320         than aborting on subreg special case.
3321
3322 2002-04-25  David S. Miller  <davem@redhat.com>
3323
3324         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3325         for DECL being NULL.
3326
3327 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
3328
3329         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3330
3331 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
3332
3333         * c-decl.c (grokdeclarator): Remove outdated ??? note
3334         on invalid declaration of flexible array members.
3335
3336 2002-04-25  Richard Henderson  <rth@redhat.com>
3337
3338         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3339
3340 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3341
3342         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3343         needed by the compiler, even if they are used as global regs.
3344
3345 2002-04-25  Matt Hiller  <hiller@redhat.com>
3346
3347         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3348         functions.
3349         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3350         of the corresponding functions.
3351         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3352         New prototypes.
3353
3354 2002-04-25  Matt Hiller  <hiller@redhat.com>
3355
3356         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3357
3358         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3359         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3360         registers, adjust comment accordingly.
3361         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3362         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3363         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3364         for coprocessor registers.
3365         (ADDITIONAL_REGISTER_NAMES): Include
3366         ALL_COP_ADDITIONAL_REGISTER_NAMES.
3367
3368         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3369         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3370         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3371         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3372         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3373
3374         (mips_char_to_class): Adjust comment to include coprocessor
3375         constraint letters.
3376
3377         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3378         New functions.
3379         (mips_reg_names, mips_regno_to_class): Include coprocessor
3380         information.
3381         (mips_sw_reg_names): Ditto, make non-static.
3382         (mips_move_1word): Handle moves to and from coprocessor registers.
3383         (mips_move_2words): Handle moves to and from coprocessor
3384         registers.
3385         (mips_class_max_nregs, mips_register_move_cost): Handle
3386         coprocessor register classes.
3387         (override_options): Initialize mips_char_to_class and
3388         mips_hard_regno_mode_ok properly for coprocessor registers.
3389
3390         * config/mips/mips.md (movdi_internal, movdi_internal2,
3391         movsi_internal1, movsi_internal2): Add constraint-sets for
3392         coprocessor registers.
3393         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3394         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3395         isn't mips.
3396         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3397         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3398         isn't mips.
3399         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3400         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3401         isn't mips.
3402         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3403         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3404         isn't mips.
3405
3406         * doc/tm.texi: Document feature.
3407
3408 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3409
3410         * integrate.c (function_attribute_inlinable_p): Simplify.
3411         Check the table pointer is not NULL.
3412
3413 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
3414
3415         * doc/c-tree.texi: Fix typo in introduction.
3416
3417 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3418
3419         * c-common.h (c_common_parse_file): Update.
3420         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3421         * c-lex.c (YYDEBUG): Get from c-lex.h.
3422         (c_common_parse_file): Update.
3423         * c-lex.h (YYDEBUG, yydebug): New.
3424         * c-parse.in (YYDEBUG): Get from c-lex.h.
3425         (c_set_yydebug): Remove.
3426         * c-tree.h (c_set_yydebug): Remove.
3427         * langhooks-def.h (lhd_do_nothing_i): New.
3428         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3429         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3430         * langhooks.c  (lhd_do_nothing_i): New.
3431         (lhd_set_yydebug): Remove.
3432         * langhooks.h (struct lang_hooks): Update.
3433         * toplev.c (set_yydebug): New.
3434         (compile_file): Update call to parse_file hook.
3435         (decode_d_option): Update.
3436 objc:
3437         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3438
3439 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
3440
3441         * loop.c (load_mems): Don't change the interface of called functions.
3442
3443         * calls.c (expand_call): Take current_function_pretend_args_size
3444         into account when setting argblock for sibcalls.
3445
3446 2002-04-24  Matt Hiller  <hiller@redhat.com>
3447
3448         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3449         * c-lex.c: Ditto.
3450
3451         * cpplex.c (skip_line_comment): Process comment one multibyte
3452         character at a time rather than one char at a time, if
3453         appropriate.
3454         (parse_string): Process string one multibyte character at a time
3455         rather than one char at a time, if appropriate.
3456         * c-lex.c (lex_string): Lex and copy multibyte strings
3457         appropriately.
3458         * cpplib.h (cppchar_t): Change to unsigned.
3459
3460 2002-04-24  Richard Henderson  <rth@redhat.com>
3461
3462         PR c/3467
3463         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3464         for c99.
3465
3466 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
3467
3468         * sh.c (sh_va_arg): If argument was passed by reference,
3469         dereference the pointer.
3470
3471         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3472
3473         * sh.md (divsi3_i4_media): Use match_operand for input values
3474         rather than hard registers.
3475         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3476         unnecessarily through hard registers.  Keep copies of pseudo
3477         registers outside of the libcall sequence.
3478
3479         * sh.md (casesi_shift_media): Add modes.
3480
3481         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3482         values in memory.
3483
3484 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3485
3486         * attribs.c (c_common_attribute_table): Move table and handlers
3487         to c-common.c.
3488         (format_attribute_table, lang_attribute_table,
3489         lang_attribute_common): Remove.
3490         (init_attributes): Replace NULL pointers with pointers to the
3491         empty table.
3492         (handle_packed_attribute, handle_nocommon_attribute,
3493         handle_common_attribute, handle_noreturn_attribute,
3494         handle_noinline_attribute, handle_always_inline_attribute,
3495         handle_used_attribute, handle_unused_attribute,
3496         handle_const_attribute, handle_transparent_union_attribute,
3497         handle_constructor_attribute, handle_destructor_attribute,
3498         handle_mode_attribute, handle_section_attribute,
3499         handle_aligned_attribute, handle_weak_attribute,
3500         handle_alias_attribute, handle_visibility_attribute,
3501         handle_no_instrument_function_attribute, handle_malloc_attribute,
3502         handle_no_limit_stack_attribute, handle_pure_attribute,
3503         handle_deprecated_attribute, handle_vector_size_attribute,
3504         vector_size_helper): Move to c-common.c.
3505         * c-common.c (c_common_attribute_table,
3506         handle_packed_attribute, handle_nocommon_attribute,
3507         handle_common_attribute, handle_noreturn_attribute,
3508         handle_noinline_attribute, handle_always_inline_attribute,
3509         handle_used_attribute, handle_unused_attribute,
3510         handle_const_attribute, handle_transparent_union_attribute,
3511         handle_constructor_attribute, handle_destructor_attribute,
3512         handle_mode_attribute, handle_section_attribute,
3513         handle_aligned_attribute, handle_weak_attribute,
3514         handle_alias_attribute, handle_visibility_attribute,
3515         handle_no_instrument_function_attribute, handle_malloc_attribute,
3516         handle_no_limit_stack_attribute, handle_pure_attribute,
3517         handle_deprecated_attribute, handle_vector_size_attribute,
3518         vector_size_helper): Move from attribs.c.
3519         * c-common.h (c_common_attribute_table,
3520         c_common_format_attribute_table): New.
3521         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3522         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3523         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3524         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3525         (LANG_HOOKS_INITIALIZER): Update.
3526         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3527         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3528         * target.h: Update comment.
3529         * tree.c (default_target_attribute_table): Remove.
3530         * tree.h (default_target_attribute_table, format_attribute_table,
3531         lang_attribute_table, lang_attribute_common): Remove.
3532 objc:
3533         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3534         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3535
3536 2002-04-24  Jason Merrill  <jason@redhat.com>
3537
3538         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3539         * dwarf2out.c (dwarf_attr_name): Support it.
3540         (gen_array_type_die): Emit it.
3541         (lookup_type_die): No special handling for VECTOR_TYPE.
3542         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3543
3544 2002-04-24  Richard Henderson  <rth@redhat.com>
3545
3546         * config/mips/mips.md (movdi_usd): Renumber.
3547
3548 2002-04-24  David S. Miller  <davem@redhat.com>
3549
3550         PR target/6420
3551         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3552         32-bit Sparc and current_function_returns_struct is true.
3553
3554 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
3555
3556         * loop.c (canonicalize_condition): Use gen_int_mode.
3557
3558 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
3559
3560         * config/rs6000/altivec.h: Cleanup file.  Add non individual
3561         variants.
3562         (vec_vaddubm): New.
3563         (vec_vadduhm): New.
3564         (vec_vadduwm): New.
3565         (vec_vaddfp): New.
3566         (vec_vaddcuw): New.
3567         (vec_vaddubs): New.
3568         (vec_vaddsbs): New.
3569         (vec_vadduhs): New.
3570         (vec_vadduws): New.
3571         (vec_vaddsws): New.
3572         (vec_vand): New.
3573         (vec_vandc): New.
3574         (vec_vavgub): New.
3575         (vec_vavgsb): New.
3576         (vec_vavguh): New.
3577         (vec_vavgsh): New.
3578         (vec_vavguw): New.
3579         (vec_vavgsw): New.
3580         (vec_vrfip): New.
3581         (vec_vcmpbfp): New.
3582         (vec_vcmpequb): New.
3583         (vec_vcmpequh): New.
3584         (vec_vcmpequw): New.
3585         (vec_vcmpeqfp): New.
3586         (vec_vcmpgefp): New.
3587         (vec_vcmpgtub): New.
3588         (vec_vcmpgtsb): New.
3589         (vec_vcmpgtuh): New.
3590         (vec_vcmpgtsh): New.
3591         (vec_vcmpgtuw): New.
3592         (vec_vcmpgtsw): New.
3593         (vec_vcmpgtfp): New.
3594         (vec_vcmpgefp): New.
3595         (vec_vcfux): New.
3596         (vec_vcfsx): New.
3597         (vec_vctsxs): New.
3598         (vec_vctuxs): New.
3599         (vec_vexptefp): New.
3600         (vec_vrfim): New.
3601         (vec_lvx): New.
3602         (vec_lvebx): New.
3603         (vec_lvehx): New.
3604         (vec_lde): Add vector float variant.
3605         (vec_lvewx): New.
3606         (vec_lvxl): New.
3607         (vec_vlogefp): New.
3608         (vec_vmaddfp): New.
3609         (vec_vmhaddshs): New.
3610         (vec_vmaxub): New.
3611         (vec_vmaxsb): New.
3612         (vec_vmaxuh): New.
3613         (vec_vmaxsh): New.
3614         (vec_vmaxuw): New.
3615         (vec_vmaxsw): New.
3616         (vec_vmaxsw): New.
3617         (vec_vmaxfp): New.
3618         (vec_vmrghb): New.
3619         (vec_vmrghh): New.
3620         (vec_vmrghw): New.
3621         (vec_vmrglb): New.
3622         (vec_vmrglh): New.
3623         (vec_vmrglw): New.
3624         (vec_vminub): New.
3625         (vec_vminsb): New.
3626         (vec_vminuh): New.
3627         (vec_vminsh): New.
3628         (vec_vminuw): New.
3629         (vec_vminsw): New.
3630         (vec_vminfp): New.
3631         (vec_vmladduhm): New.
3632         (vec_vmhraddshs): New.
3633         (vec_msumubm): New.
3634         (vec_vmsummbm): New.
3635         (vec_vmsumuhm): New.
3636         (vec_vmsumshm): New.
3637         (vec_vmsumuhs): New.
3638         (vec_vmsumshs): New.
3639         (vec_vmuleub): New.
3640         (vec_vmulesb): New.
3641         (vec_vmuleuh): New.
3642         (vec_vmulesh): New.
3643         (vec_vmuloub): New.
3644         (vec_mulosb): New.
3645         (vec_vmulouh): New.
3646         (vec_vmulosh): New.
3647         (vec_vnmsubfp): New.
3648         (vec_vnor): New.
3649         (vec_vor): New.
3650         (vec_vpkuhum): New.
3651         (vec_vpkuwum): New.
3652         (vec_vpkpx): New.
3653         (vec_vpkuhus): New.
3654         (vec_vpkshss): New.
3655         (vec_vpkuwus): New.
3656         (vec_vpkswss): New.
3657         (vec_vpkshus): New.
3658         (vec_vpkswus): New.
3659         (vec_vperm): New.
3660         (vec_vrefp): New.
3661         (vec_vrlb): New.
3662         (vec_vrlh): New.
3663         (vec_vrlw): New.
3664         (vec_vrfin): New.
3665         (vec_vrsqrtefp): New.
3666         (vec_vsel): New.
3667         (vec_vslb): New.
3668         (vec_vslh): New.
3669         (vec_vslw): New.
3670         (vec_vsldoi): New.
3671         (vec_vsl): New.
3672         (vec_vslo): New.
3673         (vec_vspltb): New.
3674         (vec_vsplth): New.
3675         (vec_vspltw): New.
3676         (vec_vspltisb): New.
3677         (vec_vspltish): New.
3678         (vec_vspltisw): New.
3679         (vec_vsrb): New.
3680         (vec_vsrh): New.
3681         (vec_vsrw): New.
3682         (vec_vsrab): New.
3683         (vec_vsrah): New.
3684         (vec_vsraw): New.
3685         (vec_vsr): New.
3686         (vec_vsro): New.
3687         (vec_stvx): New.
3688         (vec_stvebx): New.
3689         (vec_stvehx): New.
3690         (vec_stvewx): New.
3691         (vec_stvxl): New.
3692         (vec_vsububm): New.
3693         (vec_vsubuhm): New.
3694         (vec_vsubuwm): New.
3695         (vec_vsubfp): New.
3696         (vec_vsubcuw): New.
3697         (vec_vsububs): New.
3698         (vec_vsubsbs): New.
3699         (vec_vsubuhs): New.
3700         (vec_vsubshs): New.
3701         (vec_vsubuws): New.
3702         (vec_vsubsws): New.
3703         (vec_vsum4ubs): New.
3704         (vec_vsum4sbs): New.
3705         (vec_vsum4shs): New.
3706         (vec_vsum2sws): New.
3707         (vec_vsumsws): New.
3708         (vec_vrfiz): New.
3709         (vec_vupkhsb): New.
3710         (vec_vupkhpx): New.
3711         (vec_vupkhsh): New.
3712         (vec_vupklsb): New.
3713         (vec_vupklpx): New.
3714         (vec_vupklsh): New.
3715         (vec_vxor): New.
3716
3717 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
3718
3719         PR c/5430
3720         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3721         added literals from substracted literals.
3722         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3723         (fold) [associate]: Preserve MINUS_EXPR if needed.
3724
3725 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
3726
3727         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3728         are obsoleted.
3729
3730 2002-04-23  Tom Tromey  <tromey@redhat.com>
3731
3732         * gcc.c: Added --resource.  For PR java/6314.
3733
3734 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
3735
3736         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3737         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3738         these libraries.
3739
3740 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
3741
3742         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3743
3744 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
3745
3746         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3747         workaround.
3748         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3749         (ix86_expand_clrstr): Fix typo.
3750         * loop.c (gen_load_of_final_value): New.
3751         (loop_givs_rescan, strength_reduce, check_dbra_loop):
3752         Use it.
3753
3754 2002-04-23  Roger Sayle  <roger@eyesopen.com>
3755
3756         * builtins.c (builtin_memset_gen_str): New function.
3757         (expand_builtin_memset): Optimize the case of constant length, but
3758         unknown value.
3759
3760 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
3761
3762         * config/rs6000/altivec.h (vec_step): Remove extraneous
3763         parentheses.
3764         (vec_ctu): Cast return.
3765
3766 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
3767
3768         PR target/6413
3769         * function.h: (struct function): Add profile_label_no field.
3770         (current_function_profile_label_no): Define.
3771         * function.c: (profile_label_no): New static var.
3772         (expand_function_start): Increment it, and copy to
3773         current_function_profile_label_no.
3774         * output.h (profile_label_no): Delete.
3775         * final.c (profile_label_no): Delete.
3776         (profile_function): Use current_function_profile_label_no.
3777         (final_end_function): Don't increment profile_label_no here.
3778         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3779         profile_label_no with current_function_profile_label_no.
3780         * config/pa/pa.c (current_function_number): Delete.
3781         (pa_output_function_prologue): Don't output profile label here.
3782         (hppa_profile_hook): Use label_no param rather than
3783         current_function_number.
3784         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3785         * config/pa/pa.h: .. here.
3786         (FUNCTION_PROFILER): Output profile label here.
3787
3788 2002-04-22  Eric Christopher  <echristo@redhat.com>
3789
3790         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3791         patch of 2002-04-09 due to binutils issues.
3792         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3793
3794 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3795
3796         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3797         constraint to 'o' for m=r and r=m alternatives.
3798         ("*movv8hi_internal1"): Same.
3799         ("*movv16qi_internal1"): Same.
3800         ("*movv4sf_internal1"): Same.
3801
3802 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
3803
3804         * rtl.h (RTX_FLAG): New macro.
3805         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3806         * final.c (alter_subreg): Use macro to access rtx flag.
3807         * integrate.c (copy_rtx_and_substitute): Use new access macro.
3808         * print-rtl.c (print_rtx): Use new access macro.
3809
3810         * cse.c (insert): Check rtx code before accessing flag.
3811
3812         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3813         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3814         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3815         convert_const_symbol_ref, make_canonical, make_alternative_compare,
3816         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3817         simplify_test_exp, optimize_attrs, simplify_by_exploding,
3818         find_and_mark_used_attributes, unmark_used_attributes,
3819         add_values_to_cover, simplify_with_current_value,
3820         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3821         copy_rtx_unchanging, main): Use new access macros.
3822
3823 2002-04-22  Tom Rix  <trix@redhat.com>
3824
3825         * expmed.c (init_expmed): Generate shifted constant once.
3826
3827 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
3828
3829         * c-lex.c (lex_charconst): Call convert to get constant in
3830         proper type; don't just smash the type field.
3831         Fixes PR c/6300.
3832
3833         * config.gcc: Add list of obsolete configurations.  Disallow
3834         building these without --enable-obsolete.
3835         * doc/install.texi: Document --enable-obsolete and obsoletion
3836         policy.  Mention obsoletion of individual targets in
3837         appropriate places.
3838
3839 2002-04-22  Richard Henderson  <rth@redhat.com>
3840
3841         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3842
3843 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
3844
3845         PR f/6138.
3846         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3847         (walk_fixup_memory_subreg): Likewise.
3848         (fixup_var_refs_insn): Adjust accordingly.
3849         (fixup_var_refs_1): Likewise.
3850
3851 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
3852
3853         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3854         LIBPATH_ARCH64_SPEC): Define.
3855         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3856         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3857         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3858         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3859
3860 2002-04-22      Joel Sherrill <joel@OARcorp.com>
3861
3862         * gthr-rtems.h: Correct prototypes to remove warnings.
3863
3864 2002-04-22  Richard Henderson  <rth@redhat.com>
3865
3866         PR c/6344
3867         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3868
3869         * gcse.c (free_insn_expr_list_list): New.
3870         (clear_modify_mem_tables): Use it.  Fix bit set usage.
3871         (canon_list_insert): Use EXPR_LISTs for expressions.
3872         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3873
3874 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3875
3876         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
3877         file change and include code to _cpp_pop_buffer.
3878         * cpphash.h (struct pending_option): Predeclare.
3879         (struct cpp_reader): New member next_include_file.
3880         (_cpp_pop_file_buffer): Update.
3881         (_cpp_push_next_buffer): Update, rename.
3882         * cppinit.c (cpp_destroy): Free include chain and pending here.
3883         (cpp_finish_options): Simplify.
3884         (_cpp_push_next_buffer): Rename and clean up.
3885         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3886         Clarify.
3887         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3888
3889 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3890
3891         * config/rs6000/altivec.h (vec_xor): Add variant for both args
3892         being vector signed int.
3893         (vec_andc): Same.
3894         (vec_xor): Add variant for both args being vector signed char.
3895         Remove redundant variant.
3896         (vec_andc): Same.
3897
3898 2002-04-21  David S. Miller  <davem@redhat.com>
3899
3900         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3901         compare mode in output RTL.
3902
3903 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
3904
3905         * config/rs6000/rs6000.c (rs6000_override_options): Correct
3906         style and formatting of previous patch.
3907
3908 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
3909
3910         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3911         flag_pic for ABI_AIX.
3912
3913 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3914
3915         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3916         * cppfiles.c (read_include_file): Similarly.
3917         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3918         uxstrdup ustrchr, ufputs): Similarly.
3919         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3920         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3921         cpp_ideq, parse_identifier, parse_number): Similarly.
3922         * cpplib.c (struct directive, dequote_string, D, run_directive,
3923         cpp_push_buffer): Similarly.
3924         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3925         _cpp_create_definition, check_trad_stringification,
3926         cpp_macro_definition): Similarly.
3927
3928 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3929
3930         * cppmacro.c (funlike_invocation_p): Don't step back
3931         over CPP_EOF.
3932
3933 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
3934
3935         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3936         labelno.
3937
3938 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
3939
3940         * doc/invoke.texi: Remove Chill references.
3941         * doc/gcc.texi: Update last modified date.
3942
3943 2002-04-20  Kazu Hirata  <kazu@hxi.com>
3944
3945         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3946         push and pop.  Replace add.l with add.w.
3947
3948 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3949
3950         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3951         multiply instructions for H8/300H case.
3952
3953 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3954
3955         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3956         Bum three instructions from each routine.
3957
3958 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3959
3960         * Makefile.in: Update.
3961         * decl.c (push_c_function_context, pop_c_function_context,
3962         mark_c_function_context): Rename for consistency.
3963         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3964         * c-tree.h (push_c_function_context, pop_c_function_context,
3965         mark_c_function_context): Rename for consistency.
3966         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3967         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3968         * function.c (init_lang_status, save_lang_status,
3969         restore_lang_status, mark_lang_status, free_lang_status):
3970         Move to langhooks.h.
3971         (push_function_context_to, pop_function_context_from,
3972         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3973         Update.
3974         * function.h (init_lang_status, save_lang_status,
3975         restore_lang_status, mark_lang_status, free_lang_status):
3976         Move to langhooks.h.
3977         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3978         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3979         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3980         LANG_HOOKS_FUNCTION_INITIALIZER): New.
3981         (LANG_HOOKS_INITIALIZER): Update.
3982         (lhd_do_nothing_f): New.
3983         * langhooks.h (struct lang_hooks_for_functions): New.
3984         (struct lang_hooks): New hooks.
3985         * langhooks.c (lhd_do_nothing_f): New.
3986 objc:
3987         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3988         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3989
3990 2002-04-19  David S. Miller  <davem@redhat.com>
3991
3992         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3993         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3994
3995 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
3996
3997         PR optimization/3756
3998         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3999         x = ((int) y < 0) ? cst1 : cst2.
4000
4001 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
4002
4003         PR c/6358
4004         * function.c: Reapply patch for c/6358.
4005         (expand_function_end): Copy decl_rtl's mode, not
4006         current_function_return_rtx mode.
4007
4008 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
4009
4010         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
4011         targets.
4012
4013 2002-04-19  Tom Tromey  <tromey@redhat.com>
4014
4015         * doc/install.texi (Specific): Update status of Solaris 2.8.
4016         For PR libgcj/6158.
4017
4018 2002-04-19  Andreas Schwab  <schwab@suse.de>
4019
4020         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
4021         (PUT_REAL): Restore old definition.
4022
4023 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
4024             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4025
4026         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
4027         binutils 2.11.2 and higher generate smaller binaries than Sun's
4028         native tools.
4029
4030 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
4031
4032         PR c++/6352
4033         * toplev.c (rest_of_compilation): Do not defer functions for which
4034         TREE_SYMBOL_REFERENCED has already been set.
4035
4036 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
4037
4038         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
4039         alternative.
4040
4041 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4042
4043         * builtins.c: Include langhooks.h.
4044         (lang_type_promotes_to): Remove.
4045         (expand_builtin_va_arg): Use new hook.
4046         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
4047         (simple_type_promotes_to): Move to c-typeck.c.
4048         * c-common.h (simple_type_promotes_to): Remove.
4049         * c-decl.c (duplicate_decls, grokdeclarator): Update.
4050         * c-format.c: Include langhooks.h.
4051         (check_format_types): Update.
4052         * c-tree.h (c_type_promotes_to): New.
4053         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
4054         (type_lists_compatible_p): Update.
4055         * langhooks-def.h (lhd_type_promotes_to): New.
4056         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
4057         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4058         * langhooks.c (lhd_type_promotes_to): New.
4059         * langhooks.h (struct lang_hooks_for_types): New hook.
4060         * tree.h (lang_type_promotes_to): Remove.
4061 objc:
4062         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4063
4064 2002-04-18  Richard Henderson  <rth@redhat.com>
4065
4066         * function.c: Revert patch for c/6358.
4067
4068 2002-04-18  Richard Henderson  <rth@redhat.com>
4069
4070         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
4071         blocks.  Handle multiple references to the TRAP block.  Handle
4072         non-adjacent THEN and OTHER blocks.
4073
4074 2002-04-18  Richard Henderson  <rth@redhat.com>
4075
4076         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
4077         crash with no type for by-mode libcalls.
4078
4079         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
4080
4081 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
4082
4083         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
4084         __xtensa_nonlocal_goto): Use a syscall instructions to flush
4085         the register windows.
4086
4087 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
4088
4089         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
4090         appropriate.  Document need for extended precision even when
4091         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
4092         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
4093         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
4094         instead of relying on later syntax error when REAL_WIDTH > 5.
4095         * real.c: Define NE based only on whether or not we have a
4096         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
4097         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
4098         define GET_REAL and PUT_REAL as simple memcpy operations; no
4099         need to byteswap or round.
4100         Use #error instead of #ifdef-ing out the entire file, for
4101         prompt error detection.
4102
4103         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
4104
4105 2002-04-18  David S. Miller  <davem@redhat.com>
4106
4107         * config/sparc/sparc.h (BRANCH_COST): Define.
4108
4109         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
4110         does it.
4111
4112 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
4113
4114         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
4115         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
4116         propagate_block calls after relaxation loop using new variable
4117         stabilized_prop_flags.
4118
4119 2002-04-18  Richard Henderson  <rth@redhat.com>
4120
4121         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
4122         (ia64_va_arg): Expect variable sized types by reference.
4123         * config/ia64/ia64-protos.h: Update.
4124         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
4125         ia64_function_arg_pass_by_reference.
4126
4127 2002-04-18  Richard Henderson  <rth@redhat.com>
4128
4129         * ifcvt.c: Include except.h.
4130         (block_has_only_trap): Break out from find_cond_trap.
4131         (find_cond_trap): Use it.  Always delete the trap block.
4132         (merge_if_block): Allow then block null.  Be less simplistic about
4133         what insns can end a block.
4134         * Makefile.in (ifcvt.o): Depend on except.h.
4135
4136         * config/ia64/ia64.md (trap, conditional_trap): New.
4137
4138 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4139
4140         PR c/6358
4141         * function.c (assign_parms): Assign hard current_function_return_rtx
4142         register here...
4143         (expand_function_end): ...not here.
4144
4145 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4146
4147         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4148         * c-tree.h (c_incomplete_type_error): New.
4149         * c-typeck.c (require_complete_type, build_component_ref): Update.
4150         (incomplete_type_error): Rename.
4151         * langhooks-def.h (lhd_incomplete_type_error): New.
4152         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
4153         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4154         * langhooks.c (lhd_incomplete_type_error): New.
4155         * langhooks.h (struct lang_hooks_for_types): New hook.
4156         * tree.c (size_in_bytes): Use new hook.
4157         * tree.h (incomplete_type_error): Remove.
4158 objc:
4159         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4160
4161 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
4162
4163         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
4164         TARGET_FLOAT_FORMAT blocks.
4165
4166 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4167
4168         * doc/install.texi (Downloading the source): Do not mention Chill
4169         any longer, but mention Ada.
4170         (Configuration): Do not mention Chill any longer.
4171
4172 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
4173
4174         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4175
4176 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
4177
4178         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4179         in last patch.
4180
4181 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4182
4183         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4184         instead of unsigned_type.
4185
4186 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
4187
4188         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4189         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4190         later.
4191
4192 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
4193
4194         * attribs.c (vector_type_node_list): New static variable.
4195         (handle_vector_size_attribute): Use it to avoid generating a
4196         new type node each time we are called.
4197
4198         * combine.c (subst): Avoid trying to make a vector mode subreg of
4199         an integer constant.
4200         (gen_lowpart_for_combine): Likewise.
4201
4202 2002-04-18  Roger Sayle  <roger@eyesopen.com>
4203             Jakub Jelinek  <jakub@redhat.com>
4204
4205         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4206         for integer constant c (if x has unsigned type or sign bit is not
4207         set in c).  This folds the zero/sign extension into the bit-wise and
4208         operation.
4209
4210 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4211
4212         PR middle-end/6205
4213         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4214         otherwise xorps.
4215
4216 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
4217
4218         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4219
4220 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
4221
4222         * gcc.c (read_specs): Detect and fail if an attempt is made to
4223         rename a spec string to an already existing string.
4224
4225 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4226
4227         * config/s390/s390.c (legitimize_pic_address): Do not generate
4228         illegal address constant without CONST.
4229
4230 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4231
4232         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4233         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4234
4235 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4236
4237         PR optimization/6305
4238         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4239         to make sure previous reloads are taken into account.  Generate
4240         better code if one operand is an in-range immediate constant.
4241
4242 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
4243
4244         * doc/install.texi (Building): libgcj requires GNU make.
4245
4246 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4247
4248         PR bootstrap/6315
4249         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4250         even if hard quad and register is not floating.
4251         (movtf reg<-mem split): Disallow splitting if hard quad and
4252         register is floating.
4253         (movtf mem<-reg split): Likewise.
4254         * config/sparc/sparc.c (fp_register_operand): New predicate.
4255         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4256
4257 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
4258
4259         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4260         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4261         (unprotoize.o): Ditto.  Build from protoize.c.  Define
4262         UNPROTOIZE on command line.
4263         * protoize.c: Include cppdefault.h.  Delete include_defaults.
4264         (in_system_include_dir): Use cpp_include_defaults (defined in
4265         cppdefault.o).
4266         * unprotoize.c: Delete file.
4267
4268 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
4269
4270         * config/rs6000/altivec.h (vec_ld): Add array variants.
4271         (vec_lde): Same.
4272         (vec_ldl): Same.
4273
4274 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
4275             Aldy Hernandez <aldyh@redhat.com>
4276
4277         * config/rs6000/altivec.h: Define __ALTIVEC__.
4278         (bool): New.
4279         (__pixel): New.
4280         (pixel): New.
4281         (vec_cfux): New.
4282         (vec_vmaddfp): New.
4283         (vec_vsldoi): New.
4284         Add parentheses to all macro arguments.
4285
4286 2002-04-16  Richard Henderson  <rth@redhat.com>
4287
4288         PR c++/6320
4289         * except.c (remove_eh_handler): Insert inner regions at beginning
4290         of sibling chain.  Refactor expressions.
4291
4292 2002-04-16  Richard Henderson  <rth@redhat.com>
4293
4294         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4295         * config/sparc/sol2-gas-bi.h: New file.
4296         * config.gcc (sparc*-solaris): Add it as needed.
4297         * configure.in (AS_SPARC64_FLAG): Remove check.
4298         * config.in, configure: Regenerate.
4299
4300         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4301
4302 2002-04-16  Richard Henderson  <rth@redhat.com>
4303
4304         * config/mips/mips.c (override_options): Don't override N32 for
4305         a 64-bit ISA.
4306
4307         PR 6202
4308         * config/mips/mips.md (can_delay): Split out of existing define_delays.
4309         (HILO_delay): Set can_delay false.
4310
4311 2002-04-16  Dale Johannesen <dalej@apple.com>
4312
4313         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4314         instruction addresses.
4315         (rs6000_output_function_epilogue): Likewise.
4316
4317 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
4318
4319         * c-parse.in (poplevel, compstmt_start,
4320         compstmt_primary_start): Add ending ';', in accordance
4321         with POSIX.
4322
4323 2002-04-16  Richard Henderson  <rth@redhat.com>
4324
4325         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4326         Adjust tm_file order to get TARGET_DEFAULT set properly.
4327         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4328         * doc/install.texi (sparc-solaris): Update.
4329
4330 2002-04-16  Dale Johannesen <dalej@apple.com>
4331
4332         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4333         comparison operands do not match each other or if modes of
4334         conditions do not match result.
4335
4336 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
4337
4338         PR target/6305
4339         * config/s390/s390.md (mulsidi3): Set both subregs of the
4340         multiword register.
4341
4342 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
4343
4344         * config/rs6000/altivec.h (vec_addc): Type check.
4345
4346 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4347
4348         PR middle-end/6279
4349         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4350
4351         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4352
4353 2002-04-15  Richard Henderson  <rth@redhat.com>
4354
4355         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4356         call_really_used_regs too.
4357
4358 2002-04-15  Richard Henderson  <rth@redhat.com>
4359
4360         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4361
4362 2002-04-15  David S. Miller  <davem@redhat.com>
4363
4364         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4365         as being CLOBBERed.
4366
4367 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4368
4369         PR c/6290
4370         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4371         CONST_VECTOR is { 0, ... 0 }.
4372
4373 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
4374
4375         * doc/install.texi (Installing GCC: Configuration): Clarify
4376         the only supported ways to configure gcc.
4377
4378 2002-04-15  Roland McGrath  <roland@frob.com>
4379
4380         * config.gcc (alpha*-*-gnu*): New target configuration.
4381         * config/alpha/gnu.h: New file for it.
4382         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4383
4384 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
4385
4386         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4387         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4388         * tree.h (expand_start_stmt_expr): Update prototype.
4389         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4390         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4391         on the STMT_EXPR created for the inline function.
4392
4393 2002-04-15  Richard Henderson  <rth@redhat.com>
4394
4395         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4396         config/i386/linux-aout.h, config/i386/linux-oldld.h,
4397         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4398         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4399         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4400         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4401         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4402         Define __gnu_linux__, not gnu_linux.
4403         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4404
4405 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
4406
4407         Remove Chill front end.
4408         * gcc.c (default_compilers): Remove Chill entries.
4409         * ch: Remove directory.
4410         * doc/frontends.texi: Remove information about Chill.
4411         * doc/sourcebuild.texi: Likewise.
4412         * doc/standards.texi: Likewise.
4413
4414 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
4415
4416         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4417         (LONGLONG_STANDALONE): Define.
4418
4419 2002-04-15  David S. Miller  <davem@redhat.com>
4420
4421         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4422         Call emit_library_call with LCT_NORMAL.
4423         (sparc_initialize_trampoline): Use LCT_foo instead of
4424         magic constant in emit_library_call invocations.
4425         (sparc64_initialize_trampoline): Likewise.
4426         (sparc_profile_hook): Likewise.
4427         * config/sparc/sparc.md: Likewise.
4428
4429         * config/sparc/sparc.c (sparc_extra_constraint_check):
4430         Fix type of argument 'c'.
4431         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4432         Likewise.
4433
4434 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4435
4436         * diagnostic.h (output_buffer_state): Redefine.
4437         (output_format_decoder): New macro.
4438         (output_prefixing_rule): Likewise.
4439         (output_line_cutoff): Likewise.
4440         (diagnostic_format_decoder): Adjust.
4441         (diagnostic_prefixing_rule): Likewise.
4442         (diagnostic_line_cutoff): Likewise.
4443         (diagnostic_state): Likewise.
4444         (diagnostic_kind_count): Likewise.
4445         (diagnostic_buffer): Now a macro.
4446
4447         * diagnostic.c (diagnostic_buffer): Remove definition.
4448         (output_is_line_wrapping): Adjust.
4449         (set_real_maximum_length): Likewise.
4450         (output_set_maximum_length): Likewise.
4451         (init_output_buffer): Likewise.
4452         (lhd_print_error_function): Likewise.
4453         (output_do_verbatim): Likewise.
4454
4455 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4456
4457         * cpperror.c (print_location): Don't print include chain
4458         if line == 0.
4459         (cpp_begin_message): Update to use DL_ macros.
4460         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4461         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4462         cpp_notice, cpp_notice_from_errno): Remove.
4463         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4464         level.
4465         (cpp_errno): New.
4466         * cppexp.c (CPP_ICE): Remove.
4467         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4468         lex, integer_overflow, _cpp_parse_expr): Update.
4469         * cppfiles.c (read_include_file, find_include_file,
4470         handle_missing_header, _cpp_read_file, remap_filename): Update.
4471         * cpphash.h (enum error_type): Remove.
4472         (_cpp_begin_message): Update.
4473         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4474         cpp_handle_option, cpp_post_options): Update.
4475         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4476         skip_whitespace, parse_identifier, parse_slow, parse_string,
4477         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4478         cpp_interpret_charconst): Update.
4479         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4480         lex_macro_node, do_undef, glue_header_name, parse_include,
4481         do_include_common, read_flag, do_line, do_linemarker, do_ident,
4482         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4483         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4484         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4485         _cpp_pop_buffer, do_diagnostic): Update.
4486         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4487         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4488         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4489         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4490         cpp_notice, cpp_notice_from_errno): Remove.
4491         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4492         level.
4493         (cpp_errno): New.
4494         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4495         collect_args, enter_macro_context, save_parameter, parse_params,
4496         _cpp_create_definition, check_trad_stringification,
4497         cpp_macro_definition): Update.
4498         * cppmain.c (cpp_preprocess_file): Update.
4499         * fix-header.c (read_scan_file): Update.
4500
4501 2002-04-14  Andreas Schwab  <schwab@suse.de>
4502
4503         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4504
4505 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4506
4507         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4508
4509 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4510
4511         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4512         not gnu_hurd.
4513
4514 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
4515
4516         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4517
4518 2002-04-13      Joel Sherrill <joel@OARcorp.com>
4519
4520         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
4521         sparc-elf and sparc-rtems targets.
4522
4523 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4524
4525         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4526         defined, and __gnu_hurd__ wherever __GNU__ is defined.
4527         * arm/linux-elf.h: Likewise.
4528         * cris/aout.h: Likewise.
4529         * cris/linux.h: Likewise.
4530         * i370/linux.h: Likewise.
4531         * i386/gnu.h: Likewise.
4532         * i386/linux-aout.h: Likewise.
4533         * i386/linux-oldld.h: Likewise.
4534         * i386/linux.h: Likewise.
4535         * i386/linux64.h: Likewise.
4536         * ia64/linux.h: Likewise.
4537         * m68k/linux-aout.h: Likewise.
4538         * m68k/linux.h: Likewise.
4539         * mips/linux.h: Likewise.
4540         * pa/pa-linux.h: Likewise.
4541         * pj/linux.h: Likewise.
4542         * rs6000/sysv4.h: Likewise.
4543         * s390/linux.h: Likewise.
4544         * sh/linux.h: Likewise.
4545         * sparc/linux-aout.h: Likewise.
4546         * sparc/linux.h: Likewise.
4547         * sparc/linux64.h: Likewise.
4548         * xtensa/linux.h: Likewise.
4549
4550 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
4551
4552         * stmt.c (check_unique_operand_names): Expect operand names to
4553         be strings rather than identifiers.  Use simple_cst_equal to
4554         compare them.
4555         (resolve_operand_name_1): Make same identifier to string change here.
4556         * c-parse.in (asm_operand): Convert a named operand into a string.
4557         * cp/parse.y (asm_operand): Likewise.
4558
4559 2002-04-13  Andreas Schwab  <schwab@suse.de>
4560
4561         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4562
4563 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
4564
4565         Revert these changes:
4566
4567         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
4568
4569         PR c++/5571
4570         * stor-layout.c (layout_decl): Reset the RTL for the decl.
4571
4572 2002-04-12  Richard Henderson  <rth@redhat.com>
4573
4574         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4575         (sparc*-*-solaris): Clean up header files.
4576         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4577         and plan on generating 64-bit code.
4578         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4579         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4580         * config/sparc/sol2-sld-64.h: Rename ...
4581         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
4582         for AS_SPARC64_FLAG not defined.
4583         * config/sparc/sol2-gld-bi.h: New.
4584         * config/sparc/sol2-sld.h: Remove.
4585         * config/sparc/sol26-sld.h: New.
4586         * config/sparc/sol2.h: Tidy comments.
4587         * doc/install.texi: Document sparc-solaris configury changes.
4588
4589 2002-04-12  Richard Henderson  <rth@redhat.com>
4590
4591         * recog.c (offsettable_address_p): Match the logic in adjust_address.
4592
4593         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4594         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
4595
4596 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4597
4598         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4599
4600 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
4601
4602         * pa.c (pa_can_combine_p): Call extract_insn before calling
4603         constrain_operands.
4604
4605 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
4606
4607         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4608         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4609         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4610         (CPP_PREDEFINES): Handle __declspec.
4611         * config/i386/t-interix (USER_H): Remove.
4612
4613 2002-04-12  DJ Delorie  <dj@redhat.com>
4614
4615         * integrate.c (compare_blocks): Make comparisons safe for when
4616         sizeof(int) < sizeof(char *).
4617         (find_block): Likewise.
4618
4619 2002-04-12  Jan Hubicka  <jh@suse.cz>
4620             David Edelsohn  <edelsohn@gnu.org>
4621
4622         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4623         registers.
4624         (symbol_ref_operand): New.
4625         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4626         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4627
4628 2002-04-12  Andreas Schwab  <schwab@suse.de>
4629
4630         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4631         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4632         overrides the definition in config/svr4.h.
4633
4634 2002-04-12      Eric Norum <eric.norum@usask.ca>
4635
4636         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4637         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4638         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4639         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4640         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4641         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4642         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4643         definitions to config/rtems.h and make the targets more similar.
4644
4645 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4646
4647         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4648         POINTERS_EXTEND_UNSIGNED.
4649         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4650         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4651
4652         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4653         not specified.
4654
4655 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
4656
4657         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4658         depends on TARGET_SHMEDIA, not TARGET_SH5.
4659
4660 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
4661
4662         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4663         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4664
4665 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
4666
4667         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4668         no r0 clobber.
4669
4670 2002-04-12  Andreas Schwab  <schwab@suse.de>
4671
4672         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4673
4674 2002-04-12  Richard Henderson  <rth@redhat.com>
4675
4676         PR bootstrap/4191
4677         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4678
4679         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4680         modes spanning multiple hard regs.
4681
4682         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4683
4684 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4685
4686         * pa.c (pa_output_function_prologue): Don't accumulate the total
4687         number of code bytes when using TARGET_64BIT, or gas, SOM and not
4688         the portable runtime.
4689         (output_deferred_plabels): Handle 64bit plabels.
4690         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4691         generating pic code using the GAS assembler for object formats that
4692         are not SOM (ie., ELF32 and ELF64).
4693         (output_millicode_call): Check attribute type if attribute length is 28.
4694         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
4695         dbr_sequence_length once.
4696         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4697         dbr_sequence_length once.
4698         * pa.h (TARGET_SOM): Define if not defined.
4699         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4700         with GAS and not SOM.
4701         (jump, call_internal_reg, call_value_internal_reg): Likewise.
4702         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
4703
4704 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4705
4706         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4707         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4708         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4709         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4710         elfos.h and dbxelf.h values are fine now.
4711         * config/i386/freebsd.h, config/alpha/freebsd.h
4712         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4713
4714 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4715
4716         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4717         or set Acpu or Amachine.  Reformat.
4718         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4719         define.
4720         (LINK_SPEC): Do not need to undef.
4721         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4722         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4723         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4724         define.
4725         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4726         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4727         (LINK_SPEC): Do not need to undef.
4728         (DONT_USE_BUILTIN_SETJMP): Do not define.
4729         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4730         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
4731         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4732         Remove trailing spaces.
4733         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4734         __ELF__, or set Acpu or Amachine.  Reformat.
4735         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4736         define.
4737
4738 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4739
4740         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4741         all other *-*-freebsd* targets.
4742
4743 2002-04-11  Richard Henderson  <rth@redhat.com>
4744
4745         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4746
4747 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4748
4749         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4750         Include {cpu}/{cpu}.h thru tm_file.
4751         (alpha*-*-linux*ecoff): Remove target.
4752         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4753         (LINK_SPEC): Remove, is not OS independent.
4754         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4755         (LINK_SPEC): Do not need to #undef any longer.
4756         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4757         any longer.
4758         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4759         __ELF__.
4760         (LINK_SPEC): Moved here from alpha/elf.h.
4761         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4762         SUB_CPP_PREDEFINES.
4763         * config/alpha/linux-ecoff.h: Remove.
4764         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4765         (CPP_SPEC): Define _POSIX_SOURCE as needed.
4766         (CPP_SUBTARGET_SPEC): Do not define.
4767         (LINK_SPEC): Do not need to #undef any longer.
4768         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4769         * config/alpha/vms.h: Likewise.
4770
4771 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
4772
4773         * doc/extend.texi: Remove old claim that typedefs cannot have
4774         an alignment attribute.
4775
4776 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4777
4778         PR optimization/6177
4779         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4780         bitpos is 0 and bitsize CONCAT size.
4781
4782 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4783
4784         PR c/6223
4785         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4786
4787 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
4788
4789         * config/alpha/freebsd.h: Minor reformatting.
4790         (CPP_SPEC): Define ELF and add cpp_subtarget.
4791         (ASM_SPEC): No longer needed.
4792
4793 2002-04-11  Richard Henderson  <rth@redhat.com>
4794
4795         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4796         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
4797         (dimode mem/zero splitter): New.
4798
4799 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
4800
4801         * config/cris/cris.c (cris_override_options): Tweak error message
4802         for PIC not implemented.
4803
4804         * config/cris/cris.h: Tweak comments related to parameter-passing.
4805
4806         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4807
4808 2002-04-10  Richard Henderson  <rth@redhat.com>
4809
4810         * except.c (add_ehl_entry): Allow duplicates after landing pad
4811         creation.
4812
4813 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
4814
4815         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4816
4817 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
4818
4819         * c-decl.c (c_init_decl_processing): Move generation of
4820         decls for g77_integer_type_node and friends from here ...
4821         * c-common.c (c_common_nodes_and_builtins): ... to here.
4822
4823 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
4824
4825         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4826         is only used as frame pointer when frame_pointer_needed is true.
4827
4828 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
4829
4830         PR target/817
4831         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4832         for the fact that the pool entry uses two words.
4833         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
4834         1k bytes.
4835         (movdf_soft_insn): Similarly.
4836         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4837         for the fact that the pool entry uses three words.
4838
4839 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
4840
4841         * config/mips/mips.c (mips_va_arg): When using the struct version
4842         of the EABI va_list, allow arguments in the register save area to
4843         take up less room than a stack argument.
4844
4845 2002-04-10  Richard Henderson  <rth@redhat.com>
4846
4847         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4848         if EXPAND_INITIALIZER.
4849
4850 2002-04-09  Richard Henderson  <rth@redhat.com>
4851
4852         * config/alpha/alpha.md (movdi_er_maybe_g): New.
4853         * config/alpha/alpha.c (alpha_expand_mov): Use it.
4854
4855 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
4856
4857         PR optimization/6233
4858         * rtlanal.c (pure_call_p): New function.
4859         * rtl.h (pure_call_p): Declare.
4860         * loop.c (prescan_loop): Use it to set has_nonconst_call.
4861         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4862
4863 2002-04-09  Eric Christopher  <echristo@redhat.com>
4864
4865         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4866         information to .comm directive.
4867
4868 2002-04-09  Richard Henderson  <rth@redhat.com>
4869
4870         PR c/5078
4871         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4872
4873 2002-04-09  Richard Henderson  <rth@redhat.com>
4874
4875         * basic-block.h (flow_delete_block_noexpunge): Declare.
4876         (expunge_block_nocompact): Declare.
4877         * cfg.c (expunge_block_nocompact): Split out from ...
4878         (expunge_block): ... here.
4879         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4880         (flow_delete_block_noexpunge): Split out from ...
4881         (flow_delete_block): ... here.
4882         * cfgcleanup.c (delete_unreachable_blocks): Compact while
4883         removing dead blocks.
4884         * except.c (exception_handler_labels): Remove.
4885         (exception_handler_label_map): New.
4886         (struct eh_region): Add aka member.
4887         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4888         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4889         (for_each_eh_label, for_each_eh_label_1): New.
4890         (init_eh): Register exception_handler_label_map.
4891         (free_eh_status): Use free_region.
4892         (find_exception_handler_labels): Use the map, not the list.
4893         (remove_exception_handler_label): Likewise.
4894         (maybe_remove_eh_handler): Likewise.
4895         (remove_eh_handler): Use the region aka bitmap.
4896         * except.h (exception_handler_labels): Remove.
4897         (for_each_eh_label): Declare.
4898         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4899         * loop.c (invalidate_loops_containing_label): New.
4900         (find_and_verify_loops): Use it.  Use for_each_eh_label.
4901         * sched-rgn.c (is_cfg_nonregular): Use
4902         current_function_has_exception_handlers.
4903
4904 2002-04-09  Richard Henderson  <rth@redhat.com>
4905
4906         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4907         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4908         Do not return changed status.
4909         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4910         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4911         New functions that do return changed status.
4912         * sbitmap.h: Update decls.
4913         * gcse.c, lcm.c: Use _cg functions as needed.
4914
4915 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4916
4917         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4918         (sh64-*-elf*, sh-*-rtemself*): Likewise.
4919         * config/sh/embed_bb.c: New file.
4920         * config/sh/embed-elf.h: New file.
4921         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4922         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
4923         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4924         __PTRDIFF_TYPE__ .
4925         (SUBTARGET_CPP_PTR_SPEC): Don't define.
4926         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4927         Add subtarget_asm_endian_spec.
4928         (ASM_SPEC): Use subtarget_asm_endian_spec.
4929         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4930         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4931         (WCHAR_UNSIGNED): Define.
4932         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4933         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4934         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4935         Fix value.
4936         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4937         (sh_adjust_cost): Likewise.
4938         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4939         __PTRDIFF_TYPE__ .
4940         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4941         (WCHAR_TYPE_SIZE): Likewise.
4942         (ASM_SPEC): Use subtarget_asm_endian_spec.
4943         (SH_ELF_WCHAR_TYPE): #undef/ #define.
4944         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4945         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4946         (MAX_WCHAR_TYPE_SIZE): Don't #define .
4947         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4948         (USER_LABEL_PREFIX): Don't #undef /#define .
4949         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4950         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4951         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4952         (ASM_SPEC): Likewise.
4953         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4954         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4955         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4956         (LIB2FUNCS_EXTRA): Define.
4957         * t-sh64 (LIB2FUNCS_EXTRA): Define.
4958         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4959         (LIB1ASMFUNCS_CACHE): Define.
4960         (LIB2FUNCS_EXTRA): Redefine empty.
4961
4962 2002-04-08  Richard Henderson  <rth@redhat.com>
4963
4964         * reorg.c (get_branch_condition): Use reversed_comparison_code.
4965
4966 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4967
4968         * config/m68hc11/larith.asm (__map_data_section): Fix condition
4969         and optimize for size.
4970         (__do_global_ctors): Fix pointer comparison.
4971         (__do_global_dtors): Likewise.
4972
4973 2002-04-09  David S. Miller  <davem@redhat.com>
4974
4975         * config/sparc/sparc.c (sparc_extra_constraint_check): New
4976         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
4977         allow reloading pseudos.
4978         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4979         * config/sparc/sparc-protos.h: Declare it.
4980
4981         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4982         unsigned comparison warning.
4983         (output_restore_regs): Mark leaf_function as unused.
4984
4985 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4986
4987         * expr.c (is_aligning_offset): New function.
4988         (expand_expr, case COMPONENT_EXPR): Call it.
4989
4990 2002-04-08  David S. Miller  <davem@redhat.com>
4991
4992         PR target/6082
4993         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4994
4995         Make init_priority work on Sparc when using GNU ld.
4996         * config/sparc/linux.h, config/sparc/linux64.h,
4997         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4998         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4999         * config/sparc/sol2-gld.h: New file to do the same.
5000         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
5001         sparc/sol2-gld.h to tm_file.
5002
5003         PR optimization/4328
5004         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
5005         * doc/md.texi: Document it.
5006         * config/sparc/sparc.md (movdi_insn_sp64_novis,
5007         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
5008         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
5009         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
5010         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
5011
5012 2002-04-08  Andreas Jaeger  <aj@suse.de>
5013
5014         * stmt.c (expand_asm_operands): Revert last patch from Richard
5015         Henderson.
5016
5017 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5018
5019         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
5020         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
5021
5022 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5023
5024         * doc/contrib.texi (Contributors): Add David O'Brien.
5025
5026 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
5027
5028         * configure.in (auto-build.h): Use target_alias and build_alias
5029         when running configure.
5030         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
5031         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
5032         * configure: Regenerate.
5033
5034 2002-04-07  David S. Miller  <davem@redhat.com>
5035
5036         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
5037
5038 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5039
5040         PR 5933
5041         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
5042         generating 32-bit pic code.
5043
5044 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
5045
5046         * cppinit.c (cpp_create_reader): Initialize
5047         discard_comments_in_macro_exp.
5048         (COMMAND_LINE_OPTIONS): Add "-CC" option.
5049         (cpp_handle_option): Handle "-CC" option.
5050         * cpplex.c (save_comment): If saving a C++ comment in
5051         a directive, convert it to a C comment.
5052         (_cpp_lex_direct): Pass second comment start character to
5053         save_comment to indicate comment type.
5054         * cpplib.c (_cpp_handle_directive): If processing
5055         a "#define" directive and discard_comments_in_macro_exp
5056         is false,  re-enable saving of comments.
5057         (lex_macro_node): If discard_comments_in_macro_exp is false,
5058         discard any comments before the macro identifier.
5059         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
5060         member.
5061         * cppmacro.c (cpp_get_token): If expanding a macro while
5062         processing a directive, discard any comments we might encounter.
5063         (parse_params): If discard_comments_in_macro_exp is false,
5064         ignore comments in the macro parameter list.
5065         * gcc.c (cpp_unique_options): Add "-CC" option.
5066         (option_map): Map "--comments-in-macros" to "-CC".
5067         * doc/cppopts.texi: Document "-CC" option.
5068         * f/lang-specs.h: Add "-CC" option.
5069         * testsuite/gcc.dg/cpp/maccom1.c: New test.
5070         * testsuite/gcc.dg/cpp/maccom2.c: New test.
5071         * testsuite/gcc.dg/cpp/maccom3.c: New test.
5072         * testsuite/gcc.dg/cpp/maccom4.c: New test.
5073         * testsuite/gcc.dg/cpp/maccom5.c: New test.
5074         * testsuite/gcc.dg/cpp/maccom6.c: New test.
5075
5076 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5077
5078         PR middle-end/6180
5079         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
5080
5081 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
5082
5083         PR c++/5571
5084         * stor-layout.c (layout_decl): Reset the RTL for the decl.
5085
5086         PR opt/5120
5087         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
5088         RTX_UNCHANGING_P for the functions arguments when a tail call
5089         is made.
5090
5091 2002-04-06  Jason Merrill  <jason@redhat.com>
5092
5093         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
5094         (parse_options_and_default_flags): Set them appropriately.
5095         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
5096
5097 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
5098
5099         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
5100         here.
5101
5102         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
5103         semicolon.
5104
5105         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
5106         types come in by-reference.  Fix typo in comment.
5107
5108 2002-04-05  David S. Miller  <davem@redhat.com>
5109
5110         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
5111         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5112         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
5113         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
5114
5115 2002-04-05  David S. Miller  <davem@redhat.com>
5116
5117         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
5118         are not going to emit return instructions, emit at least a nop
5119         for the sake of sane backtraces.
5120
5121 2002-04-05  Richard Henderson  <rth@redhat.com>
5122
5123         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
5124
5125 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
5126
5127         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
5128
5129 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
5130
5131         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
5132         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5133         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
5134
5135 2002-04-05  Andreas Schwab  <schwab@suse.de>
5136
5137         * c-convert.c: Include c-common.h.
5138         * Makefile.in (c-convert.o): Updated.
5139
5140 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5141
5142         * mklibgcc.in: Use separate libgcc.map for each multilib.
5143         * Makefile.in (distclean): Don't remove libgcc.map here.
5144
5145 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5146
5147         * Makefile.in (s-mlib): Handle --disable-multilib by separate
5148         genmultilib invocation.
5149
5150 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
5151
5152         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
5153         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
5154         to num_gprs for symmetry.
5155         * config/mips/mips.c: Adjust accordingly.
5156
5157 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5158
5159         * c-common.c (truthvalue_conversion): Rename, update.
5160         * c-common.h (c_common_truthvalue_conversion): New.
5161         * c-convert.c (convert): Update.
5162         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5163         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
5164         * c-typeck.c (build_binary_op, build_unary_op,
5165         build_conditional_expr): Update.
5166         * fold-const.c (constant_boolean_node, fold): Use langhook.
5167         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5168         * langhooks.h (struct lang_hooks): New hook.
5169         * stmt.c (expand_decl_cleanup): Use langhook.
5170         * tree.h (truthvalue_conversion): Remove.
5171 objc:
5172         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5173
5174 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
5175
5176         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5177         Add rules to make null object file.
5178
5179 2002-04-04  Jim Blandy  <jimb@redhat.com>
5180
5181         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5182         macro formal parameter names.
5183
5184 2002-04-04  David S. Miller  <davem@redhat.com>
5185
5186         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5187
5188 2002-04-04  Richard Henderson  <rth@redhat.com>
5189
5190         PR middle-end/5099
5191         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5192         Support copies into and out of memory.  Don't accept allows_reg
5193         and allows_mem as gospel.
5194
5195 2002-04-04  Richard Henderson  <rth@redhat.com>
5196
5197         PR opt/6165
5198         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5199         (write_dependence_p): Likewise.
5200
5201 2002-04-04  Richard Henderson  <rth@redhat.com>
5202
5203         * predict.c (estimate_bb_frequencies): Do frequency calculation
5204         with a volatile temporary.
5205
5206 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
5207
5208         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5209
5210 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5211
5212         PR c++/6119
5213         * final.c (final_start_function): Don't bump profile_label_no here...
5214         (final_end_function): ...but here.
5215
5216 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5217
5218         * config/sparc/sparc.md (pic): New attribute.
5219         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5220         into stack slots.
5221         (split after do_builtin_setjmp_setup): New.
5222
5223 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5224
5225         PR fortran/6106
5226         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5227         change.
5228
5229 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5230
5231         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5232         UNITS_PER_WORD for zero sized aggregates.
5233
5234 2002-04-03  David S. Miller  <davem@redhat.com>
5235
5236         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5237         one-character spec for this, just use %(link_gcc_c_sequence).
5238
5239 2002-04-03  David S. Miller  <davem@redhat.com>
5240
5241         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5242         handling.
5243
5244 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5245
5246         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5247         (DWARF_FRAME_RETURN_COLUMN): Move.
5248         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5249         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5250         * pa.c (except.h, predict.h): Include.
5251         (FRP): Delete.
5252         (store_reg_modify, set_reg_plus_d): Revise prototypes.
5253         (output_ascii): Add cast.
5254         (store_reg_modify): Revise to add frame notes.
5255         (set_reg_plus_d): Likewise.
5256         (compute_frame_size): Include space for eh data registers in frame if
5257         the current function calls eh_return.
5258         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
5259         function calls eh_return.  Save eh data registers if the current
5260         function calls eh_return.  Fix code to add frame notes.  Emit
5261         blockage to prevent insns with frame notes being scheduled in the
5262         delay slot of calls.
5263         (hppa_expand_epilogue): Restore eh data registers and do final stack
5264         adjustment if the current function calls eh_return.  Don't add frame
5265         notes.
5266         (output_call): Revise for change in length of call insn.  Don't do
5267         return pointer adjustment for an unconditional jump in the delay slot
5268         of a call when using frame notes.
5269         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5270         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5271         (ARG_POINTER_CFA_OFFSET): Define.
5272         * pa.md (return_external_pic): New pattern.
5273         (prologue): Correct formatting.  Use return_external_pic if current
5274         function calls eh_return.
5275         (call_internal_symref, call_value_internal_symref,
5276         sibcall_internal_symref, sibcall_value_internal_symref): Change default
5277         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5278         respectively.
5279         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5280
5281         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5282         list of targets to check using "nop" insn.
5283         * configure: Rebuilt.
5284
5285 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
5286
5287         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5288
5289 2002-04-03  David S. Miller  <davem@redhat.com>
5290
5291         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5292         library sequence passed to the linker.
5293         (LINK_COMMAND_SPEC): Use it.
5294         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5295         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5296         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5297
5298 2002-04-03  Jason Merrill  <jason@redhat.com>
5299
5300         * except.c (struct eh_status): Remove protect_list.
5301         (begin_protect_partials, end_protect_partials): Remove.
5302         (add_partial_entry): Remove.
5303         * except.h: Remove prototypes.
5304
5305         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5306         expand_decl_cleanup_eh.
5307
5308         PR c++/5636
5309         * tree.h (CLEANUP_EH_ONLY): New macro.
5310         * stmt.c (expand_decl_cleanup_eh): New fn.
5311         (expand_cleanups): Check CLEANUP_EH_ONLY.
5312         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5313         Use expand_decl_cleanup_eh.
5314         (expand_stmt): Adjust.
5315         * c-common.h: Adjust prototype.
5316
5317 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
5318
5319         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5320         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5321         (cris_target_asm_function_epilogue): Ditto.
5322         (cris_initial_frame_pointer_offset): Ditto.
5323         (cris_simple_epilogue): Ditto.
5324         (cris_expand_builtin_va_arg): Variable-size types come in
5325         by-reference.
5326
5327 2002-04-03  David S. Miller  <davem@redhat.com>
5328
5329         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5330         little-endian.
5331         (set_fast_math): Correct 'fsr' type.
5332
5333 2002-04-03  Richard Henderson  <rth@redhat.com>
5334
5335         PR opt/3569
5336         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5337         * toplev.c (check_global_declarations): Use it.
5338         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5339         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5340         (LANG_HOOKS_DECLS): Add it.
5341         * langhooks.c (lhd_warn_unused_global_decl): New.
5342         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5343         * c-objc-common.c (c_warn_unused_global_decl): New.
5344         * c-tree.h (c_warn_unused_global_decl): Declare.
5345         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5346
5347 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5348
5349         * langhooks-def.h (lhd_set_decl_assembler_name,
5350         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5351         (LANG_HOOKS_INITIALIZER): Update.
5352         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5353         * langhooks.h (struct lang_hooks): New hook.
5354         * tree.c (set_decl_assembler_name): Move to langhooks.c.
5355         (lang_set_decl_assembler_name): Remove.
5356         (init_obstacks): Don't set hook.
5357         (decl_assembler_name): New function.
5358         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5359         (decl_assembler_name): New.
5360         (lang_set_decl_assembler_name): Remove.
5361
5362 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5363
5364         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5365         works properly with .hidden symbols.
5366         * configure: Rebuilt.
5367         * config.in: Rebuilt.
5368         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5369         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5370         properly with .hidden symbols.
5371
5372 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5373
5374         PR middle-end/6102
5375         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5376         USE argument.
5377
5378 2002-04-03  Richard Henderson  <rth@redhat.com>
5379
5380         PR opt/4120
5381         * sched-rgn.c (sets_likely_spilled): New.
5382         (sets_likely_spilled_1): New.
5383         (add_branch_dependences): Use it.
5384
5385 2002-04-02  Richard Henderson  <rth@redhat.com>
5386
5387         PR opt/4311
5388         * loop.h (LOOP_FIRST_PASS): New.
5389         * loop.c (strength_reduce): Mind it when deciding to unroll.
5390         * toplev.c (rest_of_compilation): Set it.
5391
5392 2002-04-02  David S. Miller  <davem@redhat.com>
5393
5394         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5395         mems_ok_for_ldd_peep when the order of the loads being examined
5396         is reversed.
5397         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5398         existing comment to increase comprehension of this situation.
5399
5400 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
5401
5402         * config/sh/sh.md: Don't use union real_extract.
5403
5404 2002-04-02  Richard Henderson  <rth@redhat.com>
5405
5406         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5407
5408 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5409
5410         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5411         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5412         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5413         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5414         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5415         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5416         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5417         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5418         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5419         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5420         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5421         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5422         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5423         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5424         Include as many configury headers via tm_file as possible.  This
5425         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5426         * config/openbsd-oldgas.h: New file.
5427         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5428         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5429         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5430         config/i386/i386-coff.h, config/i386/i386-interix.h,
5431         config/i386/iscdbx.h, config/i386/linux-aout.h,
5432         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5433         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5434         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5435         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5436         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5437         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5438         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5439         config/i386/vxi386.h: Do not directly include configury headers.
5440         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5441         Directly include configury headers that are no longer automatically
5442         included by the above headers.
5443         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5444         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5445         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5446         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5447         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5448         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5449         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5450         (TARGET_VERSION): Define.
5451         * config/i386/beos-elf.h, config/i386/freebsd.h,
5452         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5453         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5454         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5455         config/i386/sco5.h, config/i386/sysv4.h
5456         (TARGET_VERSION): Do not need to protect.
5457         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5458         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5459         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5460         config/i386/i386-interix.h, config/i386/linux-aout.h,
5461         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5462         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5463         (YES_UNDERSCORES): Do not define - not needed.
5464         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5465         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5466         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5467         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5468         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5469         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5470         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5471         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5472
5473 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
5474             Richard Henderson  <rth@redhat.com>
5475
5476         PR c/5484
5477         * function.c (assign_temp): Accept either type or decl argument.
5478         Detect variables whose size is too large to fit into an integer.
5479         * stmt.c (expand_decl): Pass the decl, not the type.
5480
5481 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5482
5483         * protoize.c: Match include directory usage with cppdefault.c.
5484
5485 2002-04-03  Jeffrey A Law  (law@redhat.com)
5486             Hans-Peter Nilsson  <hp@bitrange.com>
5487
5488         * combine.c (simplify_comparison): Avoid narrowing a comparison
5489         with a paradoxical subreg when doing so would drop signficant bits.
5490
5491 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
5492
5493         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5494         if POINTERS_EXTEND_UNSIGNED is defined.
5495
5496 2002-04-02  Richard Henderson  <rth@redhat.com>
5497
5498         PR opt/3967
5499         * local-alloc.c (contains_replace_regs): LO_SUM may contain
5500         replace regs.
5501
5502 2002-04-02  Richard Henderson  <rth@redhat.com>
5503
5504         * doc/standards.texi: Document required freestanding libc entry points.
5505
5506 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
5507
5508         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5509         associated splitter.  Remove MQ constraint.
5510         (ctrdi_internal4): Correct CCmode clobber.
5511
5512 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5513
5514         * milli64.S ($$dyncall): New function.
5515         * t-linux (LIB1ASMFUNCS): Revise module list.
5516         (LIB1ASMSRC): Use pa/milli64.S.
5517
5518 2002-04-02  Richard Henderson  <rth@redhat.com>
5519
5520         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5521         rename solaris_sys_varargs_h.
5522
5523 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5524
5525         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5526         the same mode as its component.
5527
5528 2002-04-02  Richard Henderson  <rth@redhat.com>
5529
5530         PR opt/190
5531         * final.c (this_is_asm_operands): Export.
5532         * output.h (this_is_asm_operands): Declare.
5533         * config/i386/i386.c (print_operand): Error odd asm operands.
5534
5535 2002-04-02  Richard Henderson  <rth@redhat.com>
5536
5537         PR opt/420
5538         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5539
5540 2002-04-01  Richard Henderson  <rth@redhat.com>
5541
5542         PR target/1538
5543         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5544         * fixinc/fixincl.x: Rebuild.
5545
5546 2002-04-01  Richard Henderson  <rth@redhat.com>
5547
5548         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5549         (atomic_alloc, atomic_free): New.
5550         (SIZE, MASK_FOR, PTR_IN): New.
5551         (emergency_reg_state, emergency_reg_state_free): New.
5552         (emergency_labeled_state, emergency_labeled_state_free): New.
5553         (reg_state_alloced, labeled_state_alloced): New.
5554         (alloc_reg_state, free_reg_state): New.
5555         (alloc_label_state, free_label_state, free_label_states): New.
5556         (push, pop, dup_state_stack, free_state_stack): Use them.
5557         (desc_label_state): Likewise.
5558         (uw_frame_state_for): Free label states and state stack.
5559         (uw_update_reg_address): Eliminate warnings.
5560
5561 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
5562
5563         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5564         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5565
5566 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5567
5568         * c-decl.c (grokdeclarator): Update.
5569         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5570         * c-tree.h (c_mark_addressable): New.
5571         * c-typeck.c (default_function_array_conversion, build_unary_op,
5572         build_array_ref, convert_for_assignment): Update.
5573         (mark_addressable): Rename.
5574         * calls.c (try_to_integrate, expand_call): Use langhook.
5575         * expr.c (expand_expr): Use langhook.
5576         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5577         * langhooks.h (struct lang_hooks): New hook.
5578         * stmt.c (expand_asm_operands): Use langhook.
5579         * tree.h (mark_addressable): Remove.
5580 objc:
5581         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5582
5583 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
5584
5585         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5586         in previous change.
5587
5588 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
5589
5590         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5591         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5592
5593 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5594
5595         * c-common.c (unsigned_conversion_warning, convert_and_check,
5596         unsigned_type, signed_type, shorten_compare,
5597         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5598         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5599         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5600         New.
5601         * c-decl.c (grokdeclarator): Update.
5602         * c-format.c (check_format_types): Update.
5603         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5604         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5605         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5606         * convert.c (convert_to_integer): Use new hooks.
5607         * expmed.c (make_tree): Use new hooks.
5608         * expr.c (store_expr): Use new hooks.
5609         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5610         all_ones_mask_p, unextend, fold): Use new hooks.
5611         * langhooks.h (struct lang_hooks_for_types): New hooks.
5612         * tree.h (signed_or_unsigned_type, signed_type,
5613         unsigned_type): Remove.
5614 objc:
5615         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5616         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5617
5618 2002-03-31  Richard Henderson  <rth@redhat.com>
5619
5620         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5621         (desc_frgr_mem): Fix reference to f16-f31.
5622
5623 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5624
5625         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5626         RTVEC_ELT): Const-ify.
5627         * varray.h (VARRAY_CHECK): Const-ify.
5628         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5629         ggc_mark_rtvec, ggc_mark): Const-ify.
5630
5631 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5632
5633         * diagnostic.c: Include langhooks-def.h.
5634         * Makefile.in (diagnostic.o): Update.
5635
5636 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5637
5638         * c-common.c (c_unsafe_for_reeval): Rename.
5639         * c-common.h (c_unsafe_for_reeval): Rename.
5640         * c-decl.c (finish_incomplete_decl): Rename.
5641         (c_init_decl_processing): Don't set langhook.
5642         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5643         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5644         * c-objc-common.c (c_objc_common_init): Don't set langhook.
5645         * c-tree.h (finish_incomplete_decl): Rename.
5646         * langhooks-def.h (lhd_unsafe_for_reeval): New.
5647         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5648         (LANG_HOOKS_INITIALIZER): Update.
5649         * langhooks.c (lhd_unsafe_For_reeval): New.
5650         * langhooks.h (struct langhooks): New hooks.
5651         * toplev.c (incomplete_decl_finalize_hook): Remove.
5652         (wrapup_global_declarations): Update.
5653         * tree.c (lang_unsafe_for_reeval): Remove.
5654         (unsafe_for_reeval): Update.
5655         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5656         Remove.
5657 objc:
5658         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5659         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5660
5661 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5662
5663         * diagnostic.c (print_error_function): Remove.
5664         (default_print_error_function): Rename.
5665         (report_error_function): Update.
5666         * diagnostic.h (print_error_function): Remove.
5667         (default_print_error_function): Remove.
5668         * langhooks-def.h (struct diagnostic_context): Predeclare.
5669         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5670         (LANG_HOOKS_INITIALIZER): Update.
5671         * langhooks.h (struct diagnostic context): Predeclare.
5672         (struct lang_hooks): New hook.
5673
5674 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5675
5676         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5677         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5678         !flag_pic.
5679         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5680         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5681         of PIC_OFFSET_TABLE_REGNUM thruout.
5682         * config/rs6000/rs6000.md: Likewise.
5683         * config/rs6000/darwin.h: Likewise.
5684
5685 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5686
5687         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5688         unsigned HOST_WIDE_INT, not unsigned int.
5689
5690 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5691
5692         PR middle-end/6096, middle-end/6098, middle-end/6099
5693         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5694         CODE_LABELs.
5695         (fill_slots_from_thread): Likewise.
5696
5697 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5698
5699         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5700         floating fields in float regs.
5701         (function_arg_record_value_2): Likewise.
5702
5703 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
5704
5705         * config/mmix/mmix.md (define_constants): Remove misleading
5706         FIXME.  Add MMIX_fp_rO_OFFSET.
5707         ("nonlocal_goto_receiver"): Don't have stack-frame address of
5708         saved rO as part of the pattern.  Remove FIXME.
5709         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
5710         here, at output-time.
5711
5712 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5713
5714         PR middle-end/6100
5715         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5716         REG_BR_PRED.
5717         (output_v9branch): Likewise.
5718
5719 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
5720
5721         * gcc.c: Revert previous patch for now.
5722         * config/i386/djgpp.h: Likewise.
5723
5724 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
5725
5726         * config/mmix/crti.asm (_init): Register _fini with atexit.
5727         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5728
5729 2002-03-31  Richard Henderson  <rth@redhat.com>
5730
5731         PR target/3997
5732         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5733         (ASM_OUTPUT_DEF_FROM_DECLS): New.
5734
5735 2002-03-31  Richard Henderson  <rth@redhat.com>
5736
5737         * libgcc2.c (__bb_exit_func): Make static.
5738
5739         * config/alpha/alpha.md (trap): New.
5740
5741 2002-03-31  Richard Henderson  <rth@redhat.com>
5742
5743         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5744         promoted argument types; build trap.
5745         (expand_builtin_trap): New.
5746         (expand_builtin): Use it.
5747         * stmt.c (expand_nl_goto_receivers): Likewise.
5748         * expr.h (expand_builtin_trap): Declare.
5749         * libfuncs.h (LTI_abort, abort_libfunc): New.
5750         * optabs.c (init_optabs): Init abort_libfunc.
5751
5752 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
5753
5754         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5755         (LINK_COMMAND_SPEC): ... from here.
5756         (init_gcc_specs): Duplicate it here too, omitting
5757         shared_name in the second copy.
5758         (init_spec): Test for duplicate
5759         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5760
5761 2002-03-30  David S. Miller  <davem@redhat.com>
5762
5763         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5764         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5765
5766 2002-03-30  Roger Sayle <roger@eyesopen.com>
5767             Richard Henderson  <rth@redhat.com>
5768
5769         * regmove.c (combine_stack_adjustments_for_block): Avoid
5770         emitting a stack adjustment of zero bytes.  Let delete_insn
5771         update bb->head.
5772
5773 2002-03-30  Richard Henderson  <rth@redhat.com>
5774
5775         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5776         (sparc_emitting_epilogue): New.
5777         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5778         * config/sparc/sparc-protos.h: Update.
5779         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5780         (TARGET_SWITCHES): Update.
5781         * config/sparc/sparc.md (return): Remove.
5782         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5783         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5784         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5785         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5786         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5787         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5788         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5789         Remove MASK_EPILOGUE.
5790         * doc/invoke.texi: Update.
5791
5792 2002-03-30  Daniel Berlin  <dan@dberlin.org>
5793
5794         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5795         CPP will start the file for us.
5796
5797 2002-03-30  Richard Henderson  <rth@redhat.com>
5798
5799         PR target/5446
5800         * config/ia64/ia64.c (group_barrier_needed_p): Special case
5801         prologue_allocate_stack.
5802         (ia64_single_set): Use insn codes for recognition of special
5803         cases, not rtl matching.
5804         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5805
5806 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
5807
5808         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5809
5810 2002-03-30  Richard Henderson  <rth@redhat.com>
5811
5812         PR target/6032
5813         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5814         or -fomit-frame-pointer with profiling.
5815         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5816         (FUNCTION_PROFILER): Do nothing.
5817         (PROFILE_HOOK): New.
5818         * config/sparc/sparc.c (sparc_override_options): Don't check
5819         code models for profiling.
5820         (sparc_function_profiler): Remove.
5821         (sparc_profile_hook): New.
5822         * config/sparc/sparc-protos.h: Update.
5823
5824 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
5825
5826         PR optimization/6086
5827         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5828         of SUBREG of volatile MEM or because the MEM was mode dependent,
5829         return CLOBBER instead of unmodified SUBREG.
5830
5831 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5832
5833         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5834         when not optimizing.
5835
5836         * toplev.c (rest_of_compilation): Cann mark_constant_function
5837         only when optimizing.
5838
5839         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5840         are NULL.
5841
5842         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5843         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5844         (try_optimize_cfg): clear all AUX fields.
5845
5846         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5847         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5848         (ix86_address_cost): Be prepared for SUBREGed registers.
5849         (legitimate_address_p): Accept SUBREGed registers.
5850
5851 2002-03-29  Richard Henderson  <rth@redhat.com>
5852
5853         PR target/5672
5854         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5855
5856 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5857
5858         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5859         for aggregate and TFmode types.
5860
5861 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5862
5863         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5864
5865 2002-03-29  Richard Henderson  <rth@redhat.com>
5866
5867         PR target/5886
5868         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5869         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5870
5871 2002-03-29  Richard Henderson  <rth@redhat.com>
5872
5873         PR target/6041
5874         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5875         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5876         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5877         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5878         conditional.
5879         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5880
5881 2002-03-29  Dale Johannesen <dalej@apple.com>
5882
5883         * loop.c (combine_movables): Do allow combination of pseudos.
5884
5885 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
5886
5887         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5888         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5889         No functional change except ...
5890         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
5891         * doc/install.texi (*-*-freebsd*): Document port configuration.
5892
5893 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5894
5895         * Makefile.in (convert.o, calls.o, expmed.o): Update.
5896         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5897         Use new hooks.
5898         * builtin-types.def (BT_PTRMODE): Update.
5899         * c-common.c (type_for_size): Rename c_common_type_for_size.
5900         (type_for_mode): Similarly.
5901         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5902         Use new hook.
5903         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5904         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5905         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5906         Redefine.
5907         * c-typeck.c (common_type, comptypes, default_conversion):
5908         Use new hooks.
5909         * calls.c: Include langhooks.h.
5910         (emit_library_call_value_1): Use new hooks.  Avoid redundant
5911         calls.
5912         * convert.c: Include langhooks.h
5913         (convert_to_pointer, convert_to_integer): Use new hooks.
5914         * except.c (init_eh): Similarly.
5915         * expmed.c: Include langhooks.h.
5916         (expand_mult_add): Use new hooks.
5917         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5918         try_casesi): Similarly.
5919         * fold-const.c (optimize_bit_field_compare, make_range,
5920         decode_field_reference, fold_truthop, fold): Similarly.
5921         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5922         put_var_into_stack): Similarly.
5923         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5924         LANG_HOOKS_TYPE_FOR_SIZE): New.
5925         (LANG_HOOKS_TYPES_INITIALIZER): Update.
5926         * langhooks.h (lang_hooks_for_types): New hooks.
5927         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5928         * tree.c (get_unwidened, get_narrower): Similarly.
5929         * tree.h (type_for_mode, type_for_size): Remove.
5930         * varasm.c (force_const_mem): Use new hooks.
5931         * utils2.c (nonbinary_modular_operation): Update.
5932 objc:
5933         * objc-act.c (handle_impent): Update.
5934         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5935         Redefine.
5936
5937 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
5938
5939         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5940         * config/ia64/ia64.c (basereg_operand): New.
5941         * config/ia64/ia64-protos.h (basereg_operand): Declare.
5942         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5943
5944 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5945
5946         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5947         unwind information when frame_pointer_needed.
5948         (mmix_assemble_integer): Tweak wording in comment.
5949
5950 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5951
5952         * Makefile.in (except.o): Update.
5953         * except.c: Include langhooks.h.
5954         (init_eh): Use langhook.
5955         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5956         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5957         (LANG_HOOKS_INITIALIZER): Update.
5958         * langhooks.h (lang_hooks_for_types): New.
5959         (struct lang_hooks): Add it.
5960         * tree.c (make_lang_type_fn, make_lang_type): Remove.
5961         * tree.h (make_lang_type_fn, make_lang_type): Remove.
5962 config:
5963         * alpha/alpha.c: Include langhooks.h.
5964         (alpha_build_va_list): Use langhook.
5965         * d30v/d30v.c: Include langhooks.h.
5966         (d30v_build_va_list): Use langhook.
5967         * i386/i386.c: Include langhooks.h.
5968         (ix86_build_va_list): Use langhook.
5969         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5970         * s390/s390.c: Include langhooks.h.
5971         (s390_build_va_list): Use langhook.
5972         * stormy16/stormy16.c: Include langhooks.h.
5973         (stormy16_build_va_list): Use langhook.
5974
5975 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5976
5977         PR c++/5964
5978         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5979         attributes.
5980         (length): Compute variable length for branches/calls/jumps here.
5981         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5982         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5983         define branch_type attribute.
5984         (divsi3_sp32): Maximum length is 6 not 7.
5985         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5986         call_address_untyped_struct_value_sp32,
5987         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5988         * config/sparc/sparc.c (empty_delay_slot): New function.
5989         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5990         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5991
5992 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5993
5994         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5995         nonzero_bits if not needed.
5996         (nonzero_bits) [XOR]: Likewise.
5997         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5998         reg_last_set_mode and mode are both MODE_INT, but not equal.
5999         (record_value_for_reg): Compute reg_last_set_nonzero_bits
6000         in nonzero_bits_mode for MODE_INT modes.
6001
6002 2002-03-28  Richard Henderson  <rth@redhat.com>
6003
6004         PR target/5715
6005         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
6006         to GAS.  Correct drift between alternatives.
6007
6008 2002-03-28  Richard Henderson  <rth@redhat.com>
6009
6010         PR target/6087
6011         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
6012
6013 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
6014
6015         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
6016         emulation to the linker.
6017
6018 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
6019
6020         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
6021         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
6022
6023 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
6024
6025         * combine.c (simplify_and_const_int): Make sure to apply mask
6026         when force_to_mode returns a constant integer.  PR3311.
6027
6028 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6029
6030         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
6031
6032 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6033
6034         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
6035         and Objective-C Dialect Options.
6036
6037 2002-03-28  Richard Henderson  <rth@redhat.com>
6038
6039         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
6040         comparison should be done vs !=0 not >0 return code.  Tidy cases.
6041
6042 2002-03-28  Richard Henderson  <rth@redhat.com>
6043
6044         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
6045         on to c_expand_body.
6046         * c-tree.h (finish_function): Update decl.
6047         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
6048
6049 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6050
6051         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
6052
6053 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
6054
6055         * rtlanal.c: Include flags.h
6056         (may_trap_p): Do not mark FP operations if trapping
6057         if !flag_trapping_math
6058         * Makefile.in (rtlanal.o): Add dependency on flag.h
6059         * ifcvt.c (noce_operand_ok): Avoid the lameness.
6060
6061 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
6062
6063         * mips.md: Use dconst1, not 1.0, as first argument of
6064         REAL_VALUE_LDEXP.  Don't use union real_extract.
6065
6066 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
6067
6068         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
6069         rather than $target.  Heed program_prefix and
6070         program_transform_name.  Search for gas in cross-compiler case too.
6071         "test -x" rather than "test -f".
6072         (gcc_cv_ld): Likewise.
6073         (gcc_cv_nm): Heed program_prefix and program_transform_name.
6074         (gcc_cv_objdump): Likewise.
6075         * configure: Regenerate.
6076
6077 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6078
6079         * Makefile.in (attribs.o): Update.
6080         * attribs.c: Include langhooks.h.
6081         (decl_attributes): Use langhook.
6082         * c-decl.c (insert_default_attributes): Rename.
6083         * c-tree.h (c_insert_default_attributes): New.
6084         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
6085         (LANG_HOOKS_INITIALIZER): Update.
6086         * langhooks.h (struct lang_hooks): New hook.
6087         * tree.h (insert_default_attributes): Remove.
6088 objc:
6089         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
6090
6091 2002-03-27  Andreas Schwab  <schwab@suse.de>
6092
6093         * config/i386/i386.c (classify_argument): Also check for
6094         QUAL_UNION_TYPE.
6095
6096 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6097
6098         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
6099         any more.
6100
6101 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6102
6103         * i960.md (ret): Set PC.
6104         (nonlocal_goto): Fix expander.
6105         * builtins.c (epxand_builin_longjmp): Check that we've emitted
6106         some jump or call.
6107
6108 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
6109
6110         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
6111         of libcall regions.
6112
6113 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6114
6115         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
6116         assigning to BLOCK_FOR_INSN directly.
6117
6118 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
6119
6120         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
6121
6122 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6123
6124         * c-common.c (c_expand_expr): Fix prototype.
6125         * c-common.h (c_expand_expr): Always declare, update.
6126         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6127         * c-objc-common.c (c_objc_common_init): No global hook.
6128         * expr.c (expand_expr): Use langhook.
6129         * expr.h (enum expand_modifier): Conditionally declare.
6130         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
6131         (LANG_HOOKS_INITIALIZER): Update.
6132         * langhooks.c (lhd_expand_expr): New.
6133         * langhooks.h (struct lang_hooks): New hook.
6134         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
6135         (lang_independent_init): Don't default hook.
6136 objc:
6137         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6138
6139 2002-03-27  Richard Henderson  <rth@redhat.com>
6140
6141         PR target/6054
6142         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
6143         TARGET_CONST_GP.  Simplify conditions.
6144
6145 2002-03-27  Richard Henderson  <rth@redhat.com>
6146
6147         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6148         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
6149         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6150
6151 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
6152
6153         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
6154         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
6155         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
6156         Remove unnecessary masks.
6157         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
6158         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
6159         -mwindows, -mdll switches and their negations.
6160
6161 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6162
6163         * gcc-common.c (lang_mark_false_label_stack): Remove.
6164         * ggc.h (lang_mark_false_label_stack): Similarly.
6165
6166 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
6167
6168         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6169
6170         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6171         or __rtems_ is defined.
6172
6173 2002-03-26  Richard Henderson  <rth@redhat.com>
6174
6175         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6176         if a non-trivial load was emitted.
6177         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
6178         in high+extra+low case.
6179
6180 2002-03-26  Richard Henderson  <rth@redhat.com>
6181
6182         * config.gcc (sparc*-solaris): Use float_format=sparc.
6183
6184 2002-03-26  Richard Henderson  <rth@redhat.com>
6185
6186         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6187         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6188         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6189         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6190         (WINT_TYPE_SIZE): Fix at 32.
6191
6192 2002-03-26  Richard Henderson  <rth@redhat.com>
6193
6194         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6195         until after eh landing pad generation.
6196         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6197         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6198
6199 2002-03-26  Richard Henderson  <rth@redhat.com>
6200
6201         * expr.h (ADD_PARM_SIZE): One more convert for INC.
6202
6203 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
6204
6205         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
6206         and warning switches.
6207         (cc1_options):  Likewise.
6208
6209 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
6210
6211         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6212         Restore more of the signal context.  Set no_reg_stack_frame.
6213         * config/ia64/unwind-ia64.c (unw_state_record):
6214         Add no_reg_stack_frame, comments.
6215         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6216         (uw_update_context): Adjust bsp when unwinding from leaf,
6217         but not signal frame.
6218
6219 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
6220
6221         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6222
6223 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
6224
6225         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6226
6227 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
6228
6229         PR target/5621
6230         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6231         "Add a pool_range attribute", which was lost during the ARM/Thumb
6232         merge.
6233
6234 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
6235
6236         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6237         a register into the MAC16 accumulator.
6238
6239 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
6240
6241         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6242         (Warning Options): Document -Wswitch-enum.
6243         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
6244         -Wswitch.
6245         (warn_switch_enum): Define variables.
6246         * flags.h (warn_switch_enum): Declare variables.
6247         * stmt.c (expand_end_case_type): When warn_switch_enum /
6248         -Wswitch-enum, perform switch checks.
6249         Fix PR c/5044.
6250
6251 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
6252
6253         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6254         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6255         (reload_muladdsi_compare0_scratch): Delete.
6256
6257 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
6258
6259         * doc/install.texi (*-*-freebsd*): Update.
6260
6261 2002-03-26  Richard Henderson  <rth@redhat.com>
6262
6263         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6264         (SUB_PARM_SIZE): Cast DEC to ssizetype.
6265
6266         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6267         types from the normal argument frame.
6268
6269         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6270         variable sized objects by reference.
6271         (sparc_va_arg): Receive them by reference too.
6272
6273 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
6274
6275         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6276         code to not restoring global registers.
6277
6278 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6279
6280         * Makefile.in (ggc-common.o): Update.
6281         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6282         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6283         * c-tree.h (c_mark_tree): New.
6284         * ggc-common.c: Include langhooks.h.
6285         (gcc_mark_trees): Use new langhook.
6286         * ggc-callbacks.c: Delete file.
6287         * ggc.h (lang_mark_tree): Remove.
6288         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6289         (LANG_HOOKS_INITIALIZER): Update.
6290         * langhooks.h (struct lang_hooks): New hook.
6291 objc:
6292         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6293
6294 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6295
6296         * doc/cpp.texi: Exclude entire Top node from printed manual.
6297         Move option index after directive index.  Insert page breaks
6298         before GFDL and concept index.  Index environment variables
6299         with command line options.
6300         * doc/cppenv.texi: Use @vtable for environment variable list.
6301         Add paragraph explaining semantics of empty elements in path
6302         variables.  Exclude a cross-reference to Fishkill from the
6303         manpage.  Remove an unnecessary cross-reference of the entry
6304         right above the referer.  Don't use @anchor in text that goes
6305         into manpage.
6306         * doc/cppopts.texi: Cross-reference the environment variables
6307         section, not the specific environment variable, for consistency.
6308
6309 2002-03-25  Richard Henderson  <rth@redhat.com>
6310
6311         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6312         anywhere in the block.  Don't refer to insns that have been
6313         removed from the chain.  Iterate backward through the new insns.
6314         Don't refer to edges that have been removed.
6315
6316 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
6317
6318         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6319         test for overflow of constant.
6320
6321 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
6322
6323         PR target/2623
6324         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6325         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6326         these patterns on arm_archv4.
6327
6328 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
6329
6330         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6331         int".
6332
6333 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6334
6335         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
6336         float_handled, float_handler, float_signal, set_float_handler,
6337         and do_float_handler.  Set handler for SIGFPE to crash_signal.
6338         * toplev.h: Don't prototype do_float_handler.
6339
6340         * c-lex.c: Fold parse_float into lex_number.  Make warning
6341         about portability of hex float constants more informative, and
6342         don't issue it on top of a syntax error.
6343         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6344         their callers.
6345         * real.h: Define REAL_VALUE_ABS here...
6346         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
6347         simplify_unary_real, simplify_binary_real, and
6348         simplify_binary_is2orm1 into their callers.
6349         * tree.c: Fold build_real_from_int_cst_1 into caller.
6350
6351         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6352
6353         * tsystem.h: Include float.h here...
6354         * libgcc2.c: ... not here.
6355
6356 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
6357
6358         Fixes for: PR bootstrap/3591, target/5676
6359         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6360         defined.  Do not disable exceptions or rtti.
6361         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6362         mcore.h.  Disable exceptions and rtti, since they are not
6363         supported by EPOC.
6364
6365 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
6366
6367         * c-decl.c (maybe_build_cleanup): Remove.
6368         * expr.c (expand_expr): Use langhook.
6369         * langhooks-def.h (lhd_return_null_tree,
6370         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6371         (LANGHOOKS_INITIALIZER): Update.
6372         * langhooks.c (lhd_return_null_tree): New.
6373         * langhooks.h (struct lang_hooks): New hook.
6374         * tree-inline.c (initialize_inlined_parameters): Use langhook.
6375         * tree.h (maybe_build_cleanup): Remove.
6376
6377 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6378
6379         * regrename.c (build_def_use): Move recog_memoized
6380         before extract_insn.
6381
6382 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6383
6384         PR target/6043
6385         * expr.c (emit_group_store): Handle storing into CONCAT.
6386
6387 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6388
6389         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6390         corresponding MATCH_DUP.
6391
6392 2002-03-24  Richard Henderson  <rth@redhat.com>
6393
6394         * unroll.c (unroll_loop): Zero label_map.
6395
6396         * gcse.c: Include except.h.
6397         * Makefile.in (gcse.o): Update.
6398
6399 2002-03-24  Richard Henderson  <rth@redhat.com>
6400
6401         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6402         Do resolve_unique_section before shared data clause.
6403
6404 2002-03-24  Richard Henderson  <rth@redhat.com>
6405
6406         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6407
6408 2002-03-24  Richard Henderson  <rth@redhat.com>
6409
6410         * recog.c (peephole2_optimize): Split blocks when EH insns are
6411         generated in the middle of a block.  Do global life update if
6412         zapped EH edges.
6413
6414 2002-03-24  Richard Henderson  <rth@redhat.com>
6415
6416         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6417
6418 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6419
6420         preprocessor/3951
6421         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6422         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6423         (init_dependency_output): Don't make no_output decision here.
6424
6425 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
6426
6427         * stmt.c (check_for_full_enumeration_handling): Remove tests of
6428         warn_switch.  Update description.
6429         (expand_end_case_type): Call check_for_full_enumeration_handling
6430         when warn_switch.
6431
6432 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6433
6434         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6435         (m68hc11_split_move): Call it to see if the source and destination
6436         operands use the same direction auto inc/dec mode, otherwise make the
6437         source an offsetable memory operand and generate an add.
6438
6439 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6440
6441         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6442         register for operand 2.
6443         ("*subsi3_zero_extendqi"): Likewise.
6444         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6445         bits so that it is compatible with a pop.
6446         ("*andhi3_gen"): Likewise.
6447         ("xorhi3"): Likewise.
6448
6449 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6450
6451         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6452         -pedantic here...
6453         (cpp_post_options): ... not here.
6454
6455 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6456             Aldy Hernandez  <aldyh@redhat.com>
6457
6458         Removal of separate preprocessor cpp0.
6459
6460         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6461         cpp0, install-common): Update.
6462         * c-common.c (flag_preprocess_only): New.
6463         (c_common_init): Preprocess for -E.
6464         * c-common.h (flag_preprocess_only): New.
6465         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6466         * c-objc-common.c (c_init_decl_processing): Exit quickly
6467         for NULL return from c_common_init.
6468         * cpplib.h (cpp_preprocess_file): New.
6469         * cppmain.c (main, general_init, pfile, progname): Remove.
6470         (do_preprocessing): Rename cpp_preprocess_file, don't call
6471         cpp_finish.  Don't close stdout here.
6472         (setup_callbacks): Update prototype.
6473         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6474         Update.
6475         * tradcpp.c (main): Ignore -quiet.
6476 objc:
6477         * lang-specs.h (default_compilers): Preprocess with cc1obj.
6478
6479 2002-03-24  Richard Henderson  <rth@redhat.com>
6480
6481         PR optimization/5742
6482         * machmode.def: Add inner mode field to complex modes.
6483         * config/mips/mips.c (mips_function_value): Always define.  Add
6484         new argument to handle libcalls.
6485         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6486         (FUNCTION_VALUE): Likewise.
6487         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6488         * config/mips/mips-protos.h: Update.
6489
6490 2002-03-23  Richard Henderson  <rth@redhat.com>
6491
6492         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6493         * config/sparc/sparc-protos.h: Update.
6494         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6495
6496 2002-03-23  Richard Henderson  <rth@redhat.com>
6497
6498         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6499         _start or _init begins the text segment.
6500
6501 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
6502
6503         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
6504         not HOST_WIDEST_INT.
6505         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6506
6507 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
6508
6509         PR java/5489
6510         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6511         operand argument to output_return_instruction.
6512         * arm.c (arm_print_operand, case 'd'): If the operand is
6513         const_true_rtx then just return.
6514         (arm_print_operand, case 'D'): If the operand is const_true_rtx
6515         then abort.
6516
6517 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
6518
6519         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6520         (Warning Options): Document -Wswitch-default.
6521         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
6522         -Wswitch.
6523         (warn_switch_default): Define variable.
6524         (warn_switch): Update comment.
6525         * flags.h (warn_switch_default): Declare variable.
6526         (warn_switch): Update comment.
6527         * stmt.c (expand_end_case): Check for and, when
6528         warn_switch_no_default, warn of a missing default case.
6529
6530 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
6531
6532         * real.h (N): Special case 128 bit doubles.
6533
6534         * combine.c (simplify_comparison): When widening modes, ignore
6535         sign extension on CONST_INTs.
6536
6537 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6538
6539         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6540         passed to adjust_address.  Fix comment formatting.
6541
6542
6543 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
6544
6545         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6546         Always make REAL_VALUE_TYPE a struct containing an array of
6547         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
6548         big it is.  Don't declare or use union real_extract.
6549
6550         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6551         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6552         (print_operand), config/arm/arm.c (output_move_double),
6553         config/arm/arm.md (consttable_4, consttable_8),
6554         config/romp/romp.c (output_fpops), config/s390/s390.h
6555         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6556         (xtensa_output_literal): Don't use union real_extract.
6557
6558         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6559         (sfmode_constant_to_ulong), config/ns32k/merlin.h
6560         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6561         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6562         (PRINT_OPERAND): Don't use local version of union
6563         real_extract.
6564
6565         * config/convex/convex.c (check_float_value), config/vax/vax.c
6566         (vax_float_literal), config/m88k/m88k.md (divdf3),
6567         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6568         config/pdp11/pdp11.c (output_move_quad): Don't do host
6569         arithmetic on target floating point quantities.
6570
6571         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6572         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6573
6574         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6575         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6576
6577         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6578         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6579         INFINITY.
6580         * print-rtl.c (print_rtx): Disable code which needs
6581         floating-point emulator.
6582         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6583         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6584         depending on HOST_FLOAT_FORMAT to be defined properly.
6585
6586         * config/1750a/1750a.c (get_double, float_label): Delete.
6587         (print_operand): Delete huge commented-out chunk.  Use
6588         REAL_VALUE_TO_DECIMAL.
6589         * config/1750a/1750a-protos.h: Delete prototypes of deleted
6590         functions.
6591         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6592         IEEE_FLOAT_FORMAT.
6593         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6594         Use REAL_VALUE_TO_DECIMAL as ELF version does.
6595         * config/m88k/m88k.c (real_power_of_2_operand,
6596         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6597         real_extract out of the union; run the input through
6598         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6599         from that into the union.
6600         * config/pdp11/pdp11.c (output_move_double): Rearrange
6601         parentheses to make automatic indenter happy.
6602
6603         * doc/tm.texi (Cross-compilation): Rename node to "Floating
6604         Point" and rewrite to describe current situation.  Also adjust
6605         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6606         match code.
6607         * doc/rtl.texi: Adjust cross reference.
6608
6609 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6610
6611         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6612         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6613         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6614         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6615         prevent use of sp as a reload register.
6616         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6617         non_acc_reg_operand.
6618         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6619         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6620         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6621         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6622
6623 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6624
6625         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6626         * cpplex.c (unterminated): Delete.
6627         (parse_string): No string literal may extend over multiple
6628         lines.  Suppress the error when preprocessing assembly.
6629         * cppmain.c (scan_translation_unit): Strings are single-line.
6630
6631         * doc/cpp.texi: Update to match.
6632
6633 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
6634
6635         PR optimization/5854
6636         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6637         Shut up warnings.
6638         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6639         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6640         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6641         const0 if scratch register was not allocated.
6642         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6643         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6644         with GEN_INT (...).
6645         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6646         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6647         with GEN_INT (...) everywhere.  Remove constraints in define_split
6648         patterns.
6649         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6650         require scratch register for setting 0 into regs/non-pushable memory.
6651
6652 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
6653
6654         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6655         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6656
6657 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
6658
6659         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
6660         * cppinit.c (cpp_create_reader):  On by default.
6661         (cpp_handle_option):  Handle -W[no-]endif-labels.
6662         (cpp_post_options):  Also enable if -pedantic.
6663         * cpplib.c (do_else):  Use it.
6664         (do_endif):  Likewise.
6665         * doc/cppopts.texi:  Document new option.
6666         * doc/invoke.texi:  Document new option.
6667
6668 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
6669
6670         * config/i386/i386.c, config/i386/i386.md: Change all occurences
6671         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6672
6673 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
6674
6675         * flow.c (calculate_global_regs_live): Clear aux fields of
6676         ENTRY and EXIT.
6677
6678 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
6679
6680         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6681         REG or MEM subregs, pass rtx * instead of rtx to it.
6682         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6683         rtx * instead of rtx to alter_subreg.
6684         * config/m32r/m32r.c (gen_split_move_double): Likewise.
6685         * config/pj/pj.c (pj_output_rval): Likewise.
6686
6687 2002-03-22  Richard Henderson  <rth@redhat.com>
6688
6689         PR target/3177
6690         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6691         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6692         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6693         (ia64_expand_prologue): Look at int_regs, not words, for number
6694         of incomming int regs.
6695
6696 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
6697
6698         * expr.c (expand_expr): A RESULT_DECL is part of a call.
6699
6700 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
6701
6702         * toplev.c (flag_loop_optimize, flag_crossjumping):
6703         New static variables.
6704         (rest_of_compilation): Conditionalize crossjumping and
6705         loop optimizer.
6706         (parse_options_and_default_flags): Default loop_optimize and
6707         crossjumping.
6708         (lang_independent_options): Add -fcrossjumping and -floop-optimize
6709         * invoke.texi (crossjumping, loop-optimize): Document.
6710
6711 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6712
6713         * real.c (eiisneg): Move outside #ifdef NANS.
6714
6715 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6716
6717         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6718         frequencies match; avoid match on different loop depths.
6719         (try_crossjump_to_bb): Kill tests that no longer brings time
6720         savings.
6721         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6722         updating code.
6723         (split_edge): Likewise.
6724
6725         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6726         variable.
6727
6728         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6729         * cfgrtl.c: Include insn-config.h
6730         (split_block) Dirtify block in presence of conditional execution
6731
6732 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6733
6734         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6735         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6736         (function_arg): Constify CUMULATIVE_ARGS.
6737         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6738         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6739         (UNITS_PER_DOUBLE): New macro.
6740         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
6741         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
6742         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
6743         fp_regs and stack_words.
6744         (EABI_FLOAT_VARARGS_P): New macro.
6745         * config/mips/mips.c (struct mips_arg_info): New.
6746         (mips_arg_info): New function.
6747         (function_arg_advance): Use it.  Add adjustment instructions here
6748         rather than in function_arg.
6749         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
6750         for VOIDmode at the beginning of the function.
6751         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
6752         (function_arg_pass_by_reference): Likewise.
6753         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6754         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6755         (mips_va_start): Likewise.  Use the new stack_words field of
6756         CUMULATIVE_ARGS to set up overflow area.  Reformat.
6757         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
6758         doubles and other types, aligning the overflow pointer for non-doubles
6759         too.  Remove some code duplication.  Replace hard-coded constants.
6760
6761 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6762
6763         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6764         (CLASS_UNITS): Undefine.
6765         (CLASS_MAX_NREGS): Use FP_INC.
6766         * config/mips/mips.c (compute_frame_size): Likewise.
6767         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6768
6769 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6770
6771         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6772         prototype, and handle lexing numbers and identifiers.
6773         (parse_identifier): Update to new form of parse_slow.
6774         (parse_number): Fast path only, use parse_slow otherwise.
6775         (_cpp_lex_direct): Update calls to parse_number.
6776
6777 2002-03-21  DJ Delorie  <dj@redhat.com>
6778
6779         * bb-reorder.c (make_reorder_chain_1): Protect against
6780         when redundant edges are omitted.
6781         * predict.c (dump_prediction): Likewise.
6782
6783 2002-03-21  Richard Henderson  <rth@redhat.com>
6784
6785         PR target/5996
6786         * fixinc/inclhack.def (solaris_stdio_tag): New.
6787         * fixinc/fixincl.x: Regenerate.
6788
6789 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6790
6791         PR c/5597
6792         * c-typeck.c (process_init_element): Flag non-static
6793         initialization of a flexible array member as illegal.
6794
6795 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
6796
6797         * config/rs6000/t-linux64: New.
6798         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6799         t-ppccomm.  Use t-rs6000 and t-linux64.
6800         (powerpc64-*-gnu* <tmake_file>): Likewise.
6801         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6802         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6803         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6804
6805 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
6806
6807         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6808         flag_really_no_inline instead of optimize == 0.
6809
6810         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6811
6812         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6813
6814         * flags.h (flag_really_no_inline): New.
6815
6816         * c-common.c (c_common_post_options): Initialize
6817         flag_really_no_inline.
6818
6819         * toplev.c (flag_really_no_inline): New.
6820
6821 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6822
6823         * config/avr/avr.md (length): Fix length computation for
6824         conditional branches.
6825
6826 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6827
6828         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6829         sdbout.o, profile.o): Update.
6830         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6831         langhook.
6832         * c-common.h (gettags): Move here from tree.h.
6833         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6834         insert_block, getdecls, kept_level_p, global_bindings_p): New.
6835         * dbxout.c (dbxout_init): Use getdecls langhook.
6836         * expr.c (expand_expr): Use insert_block langhook.
6837         * fold-const.c: Include langhooks.h.
6838         (fold_range_test, fold_binary_op_with_conditional_arg,
6839         fold): Use global_bindings_p langhook.
6840         * integrate.c (expand_inline_function): Use insert_block langhook.
6841         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6842         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6843         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6844         LANG_HOOKS_GETDECLS): New.
6845         (LANG_HOOKS_INITIALIZER): Update.
6846         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6847         langhook.
6848         * langhooks.h (struct lang_hooks_for_decls): New.
6849         (struct lang_hooks): Update.
6850         * profile.c: Include langhooks.h.
6851         (output_func_start_profiler): Use new langhooks.
6852         * sdbout.c: Include langhooks.h.
6853         (sdbout_init, sdbout_finish): Use getdecls langhook.
6854         * stmt.c: Include langhooks.h.
6855         (expand_fixup, fixup_gotos): Use new langhooks.
6856         * stor-layout.c: Include langhooks.h.
6857         (variable_size): Use global_bindings_p langhook.
6858         * toplev.c (compile_file): Use getdecls langhook.
6859         * tree-inline.c (remap_block): Use insert_block langhook.
6860         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6861         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6862
6863 2002-03-21  Richard Henderson  <rth@redhat.com>
6864
6865         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6866         constants in .data when -fpic.
6867
6868 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6869
6870         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6871         where appropriate.
6872
6873 2002-03-21  Tom Tromey  <tromey@redhat.com>
6874
6875         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
6876
6877 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6878
6879         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6880
6881         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6882
6883 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6884             Richard Henderson  <rth@redhat.com>
6885
6886         PR c/5354
6887         * c-common.c (c_expand_expr): Preserve result of a statement
6888         expression if needed.
6889
6890 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6891
6892         PR bootstrap/4195
6893         * genrecog.c (maybe_both_true_mode): Remove.
6894         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6895         * machmode.def (Pmode): Likewise.
6896
6897 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
6898
6899         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6900         (nonlocal_mentioned_p_1): New function.
6901         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6902         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6903         (mark_constant_function): Recognize pure functions.
6904         * rtl.h (global_reg_mentioned_p): New prototype.
6905         * rtlanal.c (global_reg_mentioned_p,
6906         global_reg_mentioned_p_1): New function.
6907
6908 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6909
6910         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6911         UNIX assert.h.
6912         * fixinc/fixincl.x: Regenerate.
6913
6914 2002-03-20  Jason Merrill  <jason@redhat.com>
6915
6916         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6917
6918 2002-03-20  Michael Meissner  <meissner@redhat.com>
6919
6920         * doc/invoke.texi (Optimize Options): Document that -O2 sets
6921         -fstrict-aliasing.
6922
6923 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
6924
6925         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6926         ".literal_position" directive before the constant pool.
6927
6928 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6929
6930         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6931         Add Craig Rodrigues.
6932         Add Brad Lucier to testers.
6933
6934 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6935
6936         PR target/4792
6937         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6938         to if_then_else.
6939         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6940         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6941         instead of insn_extract.
6942
6943 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6944
6945         PR bootstrap/4192
6946         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6947
6948         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6949         stmt if some case has been output.
6950
6951 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6952
6953         PR c/5972
6954         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6955         movsfcc_1, movdfcc_1): Add %O2.
6956         * config/i386/i386.c (print_operand): Handle %ON.
6957         Print . before float condition codes in Sun as cmov syntax.
6958         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6959         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6960         no longer true.
6961
6962 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
6963
6964         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6965         return instruction if PC was popped.
6966
6967 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
6968
6969         * config/xtensa/xtensa.md: Remove unused type attributes.
6970         (adddi_carry, subddi_carry): Change type attribute to "multi".
6971
6972 2002-03-19  Dale Johannesen  <dalej@apple.com>
6973
6974         PR optimization/5999, middle-end/5731
6975         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6976         multiplications by reciprocals.
6977
6978 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6979
6980         * Makefile.in: Update.
6981         * c-common.c: Include langhooks.h.
6982         (inline_forbidden_p): Use new hook.
6983         * diagnostic.c: Include langhooks.h.
6984         (format_with_decl, announce_function,
6985         default_print_error_function): Use new hook.
6986         * dwarf2out.c (dwarf2_name): Use new hook.
6987         * function.c: Include langhooks.h.
6988         (init_function_start): Use new hook.
6989         * langhooks-def.h (lhd_decl_printable_name): New.
6990         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6991         (LANGHOOKS_INITIALIZER): Update.
6992         * langhooks.c (lhd_decl_printable_name): New.
6993         * langhooks.h (struct lang_hooks): New hook.
6994         * toplev.c (decl_name, decl_printable_name): Remove.
6995         (open_dump_file): Use new hook.
6996         (process_options): Remove old hook.
6997         * tree.h (decl_printable_name): Remove.
6998 objc:
6999         * objc-act.c (objc_init): Remove old hook.
7000         (objc_printable_name): Export.
7001         * objc-act.h (objc_printable_name): New.
7002         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
7003
7004 2002-03-19  Jim Blandy  <jimb@redhat.com>
7005
7006         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
7007         the start_source_file debug hook, not the current line number.
7008
7009 2002-03-19  Richard Henderson  <rth@redhat.com>
7010
7011         * flow.c (EH_USES): Provide default.
7012         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
7013         * doc/tm.texi (EH_USES): New.
7014
7015         * config/ia64/ia64.c (ia64_eh_uses): New.
7016         * config/ia64/ia64-protos.h: Update.
7017         * config/ia64/ia64.h (EH_USES): New.
7018
7019 2002-03-19  Richard Henderson  <rth@redhat.com>
7020
7021         * varasm.c (output_constant_def): Fix stupid typo.
7022
7023 2002-03-19  Richard Henderson  <rth@redhat.com>
7024
7025         PR 5879
7026         * except.c (current_function_has_exception_handlers): New.
7027         * except.h: Declare it.
7028         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
7029         Combine tests that disable all sibcalls for the function.
7030
7031 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
7032
7033         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
7034         for INTEGER_CST.
7035
7036 2002-03-19  Richard Henderson  <rth@redhat.com>
7037
7038         PR 5977, 5991
7039         * config/ia64/ia64.c: Revert 2002-03-01 patch.
7040         * config/ia64/ia64.h (INIT_EXPANDERS): New.
7041
7042 2002-03-19  Jim Blandy  <jimb@redhat.com>
7043
7044         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
7045         name, even if the replacement list contains no tokens, as required
7046         by Dwarf.
7047
7048 2002-03-19  Jason Merrill  <jason@redhat.com>
7049
7050         * varasm.c (globalize_decl): Get the name from the RTL, not
7051         DECL_ASSEMBLER_NAME.
7052
7053         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
7054
7055 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
7056
7057         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
7058         subdi_carry): Define.
7059
7060 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
7061
7062         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
7063         about -fpic/-fPIC if extra_warnings set.
7064
7065 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
7066
7067         * expr.c (expand_expr): Sign-extend CONST_INT generated from
7068         TREE_STRING_POINTER.
7069         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
7070
7071 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7072
7073         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
7074         in favor of SP if FRAME_POINTER_REQUIRED is false.
7075
7076 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
7077
7078         * emit-rtl.c (gen_int_mode): New function.
7079         * rtl.h: Prototype for it.
7080         * combine.c (make_extraction, simplify_comparison), expmed.c
7081         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
7082         (convert_modes, store_field), optabs.c (expand_fix),
7083         simplify-rtx.c (neg_const_int, simplify_unary_real),
7084
7085         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
7086         Use it instead of GEN_INT (trunc_int_for_mode (...)).
7087
7088 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
7089
7090         PR c/5656
7091         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
7092         convert_parm_for_inlining.
7093         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7094         Define.
7095         * langhooks-def.h: Likewise.
7096         * objc/objc-lang.c: Likewise.
7097         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
7098         function.
7099         * tree-inline.c (initialize_inlined_parameters):
7100         Call convert_parm_for_inlining lang hook if needed.
7101         * c-typeck.c (c_convert_parm_for_inlining): New function.
7102         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
7103
7104 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
7105
7106         * calls.c (precompute_arguments): Do not assume that temporaries
7107         can be destroyed after expanding the argument.
7108         (expand_call): Likewise.
7109
7110 2002-03-15  Eric Christopher  <echristo@redhat.com>
7111
7112         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
7113         Fix register preference on last change.
7114         * config/mips/mips.c (mips_return_in_memory): New function.
7115         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
7116         * config/mips/mips-protos.h: Declare.
7117         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
7118         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
7119
7120 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
7121
7122         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
7123         a register too.
7124         (anddi3, iorsi3): Likewise.
7125
7126         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
7127         use %gprel for symbols that are going to be placed in linkonce
7128         sections.
7129
7130         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
7131         RETURN_ADDRESS_POINTER_REGNUM to $ra.
7132         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
7133         not needed.  Disregard leaf_function_p().
7134         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
7135         mips16 frame pointer.
7136         * config/mips/mips.md (store ra): Only to small SP offsets.
7137         2001-08-22  Graham Stott  <grahams@redhat.com>
7138         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
7139         return a REG rtx for the return address register.
7140
7141 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
7142
7143         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
7144         constant-pool addresses as "mode-dependent".
7145         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
7146
7147 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
7148
7149         PR target/5740
7150         * expr.c (emit_group_load): Use extract_bit_field if
7151         needed for CONCAT arguments.
7152
7153 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
7154
7155         PR target/4863
7156         * arm.md (tablejump): Make this a define_expand.  For PIC add the
7157         offset to the base of the table.
7158         (thumb_tablejump): Matcher for Thumb tablejump insn.
7159         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
7160         as the difference of two labels.
7161         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7162         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
7163         tables in the code.
7164         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7165         * arm.c (get_jump_table_size): If the table is not in the text
7166         section, return zero.
7167
7168 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
7169
7170         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7171         of gen_rtx_SUBREG.
7172         (arm_reload_out_hi): Use gen_lowpart instead of
7173         gen_rtx_SUBREG to access QImode components.
7174         * config/arm/arm.md: Disable zero_extend split for QImode
7175         subregs in BIG_ENDIAN mode.
7176         (storehi_bigend): Match use of least significant byte.
7177         (storeinthi): Remove extraneous SUBREG.
7178         Add missing construction of operands[2].
7179         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7180         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7181         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7182
7183 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
7184
7185         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7186         any_operand.
7187
7188 2002-03-17  Richard Henderson  <rth@redhat.com>
7189
7190         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7191         explicitly.
7192
7193 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
7194
7195         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7196         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7197
7198 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7199
7200         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7201
7202         * predict.c (estimate_bb_frequencies): Delete unused variables.
7203
7204 2002-03-17  Richard Henderson  <rth@redhat.com>
7205
7206         * config/ia64/ia64.c (ia64_attribute_table): Move before
7207         targetm definition.  Make static.
7208
7209 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7210
7211         * c-common.h (yyparse, c_common_parse_file): New.
7212         * c-lang.c: Include c-common.h.
7213         (LANG_HOOKS_PARSE_FILE): Redefine.
7214         * c-lex.c: Include c-common.h.
7215         (yyparse): Rename c_common_parse_file.  Call yyparse.
7216         * c-parse.in (yyparse): Remove macro.
7217         * c-tree.h (yyparse_1): Remove.
7218         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7219         (LANG_HOOKS_INITIALIZER): Update.
7220         * langhooks.h (struct lang_hoooks): New hook parse_file.
7221         * toplev.c (compile_file): Use parse_file hook.
7222         * tree.h (yyparse): Remove.
7223         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
7224
7225 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
7226
7227         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7228         float_truncate, not fix.
7229         ("*truncdfsf2_real"): Ditto.
7230         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7231
7232         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7233
7234 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
7235
7236         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7237         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
7238         where appropriate.  Make the second reference to
7239         leaf_function_p a function call, as intended.  Reindented.
7240
7241         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7242         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7243
7244         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7245         add register to non-constant into sp.
7246
7247         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7248         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7249         (mips16_gp_pseudo_rtx): Lose.
7250         (INIT_EXPANDERS): Deleted.
7251         * config/mips/mips.c (mips_init_machine_status): New.
7252         (mips_free_machine_status): New.
7253         (mips_mark_machine_status): New.
7254         (override_options): Set them.
7255         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7256         (struct machine_function): ... new.  Replaced all references.
7257         (mips_add_gc_roots): Don't mark them.
7258         (embedded_pic_fnaddr_reg): New, extracted from...
7259         (embedded_pic_offset): ... here.
7260         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7261         (movsi): Likewise.
7262
7263 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7264
7265         * cppinit.c: Revert -MD removal.
7266
7267 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7268
7269         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7270         soft registers by default for 68HC12.
7271         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7272         when compiling with -fomit-frame-pointer.
7273         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7274         (expand_epilogue): Likewise.
7275         (m68hc11_gen_rotate): Use exg when rotating by 8.
7276
7277 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7278
7279         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7280         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7281         (splits): Remove unused add splits.
7282         ("*addhi3_68hc12"): Tune constraints.
7283         ("addhi_sp"): Try to use X instead of Y in all cases and if the
7284         constant fits in 8-bits and D is dead use abx/aby instructions.
7285         ("*addhi3"): Remove extern declaration of ix_reg.
7286         ("*subsi3"): Optimize and provide new split.
7287         ("subhi3"): Cleanup.
7288         ("*subhi3_sp"): Avoid saving X if we know it is dead.
7289         (arith splits): For 68hc12 save the address register on the stack
7290         and do the arithmetic operation with a pop.
7291
7292 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7293
7294         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7295         allocating QImode in address registers.
7296         ("*movqi_m68hc11"): Likewise.
7297
7298 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
7299
7300         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7301
7302 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7303
7304         * cppinit.c (print_help): Display -MD and -MMD.
7305         Don't display usage string.  Update assertion syntax and
7306         typo.
7307         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7308         (cpp_handle_option): Update.
7309
7310 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
7311
7312         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7313         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7314         and define it so that regardless of target CPU size,
7315         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7316         of "int" rather than "long."
7317
7318 2002-03-15  Richard Henderson  <rth@redhat.com>
7319
7320         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7321         size as a tree.
7322
7323 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7324
7325         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7326         ("tstqi" split): Avoid using memory for tstqi on address register.
7327         (splits): Remove constraints.
7328         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7329         ("cmpdf", "cmpsf"): Remove since not used.
7330         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7331         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7332
7333 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7334
7335         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7336         ("neghi2"): Tighten constraints.
7337         ("one_cmplsi2"): Optimize and simplify split.
7338         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7339
7340 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7341
7342         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7343         and split of AND operation to clear the upper bits.
7344         ("*logicalsi3_zextqi"): Likewise.
7345         ("*logicallhi3_zexthi_ashift8"): Likewise.
7346         ("*logicalsi3_silshr16"): Likewise.
7347         ("logicalsi3_silshl16"): Likewise.
7348         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7349
7350 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7351
7352         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7353         (m68hc11_indirect_p): New function.
7354         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7355         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7356         TARGET_M6812.
7357         (asm_print_register): Likewise.
7358         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7359         (m68hc11_indirect_p): Declare.
7360         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7361         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7362         (TARGET_SWITCHES): New option -mrelax.
7363         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7364         destination.
7365         ("iorsi3", "xorsi3"): Likewise.
7366         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7367         ("*andhi3_mem"): New to handle destination in memory with bclr
7368         and a scratch register.
7369         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7370         ("*andhi3_const"): New when operand2 is constant.
7371         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7372         ("*andhi3_gen"): Cleanup of the old "andhi3".
7373         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7374         ("xorqi3"): Update constraints.
7375
7376 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7377
7378         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7379         for reg_equiv_memory_loc when the operand is a register that does
7380         not get a hard register (stack location).
7381         (tst_operand): After reload, accept all memory operand.
7382         (symbolic_memory_operand): Fix detection of symbolic references.
7383         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7384         accept symbols and any constant.
7385
7386 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7387
7388         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7389         note on the insn that sets the soft frame register.
7390         (must_parenthesize): ix and iy are also reserved names.
7391         (print_operand_address): One more place where parenthesis are required
7392         to avoid confusion with register names.
7393         (m68hc11_gen_movhi): Allow push of stack pointer.
7394         (m68hc11_check_z_replacement): Fix handling of parallel with a
7395         clobber.
7396         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7397         the replacement register is.
7398         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7399         and D8_REGS classes.
7400         (MODES_TIEABLE_P): All modes are tieable except QImode.
7401
7402 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7403
7404         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7405         (___subdi3): Likewise.
7406         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7407         (__map_data_section): Optimize 68hc11 case.
7408
7409 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7410
7411         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7412         than a shift to avoid adding a register with itself.
7413         (m68hc11_memory_move_cost): Take into account NO_REGS.
7414         (m68hc11_register_move_cost): Update and use memory move cost
7415         for soft registers.
7416         (m68hc11_address_cost): Make cost of valid offset not 0 so that
7417         it gives more opportunities to cse to optimize.
7418         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7419         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7420
7421 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
7422
7423         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7424         * c-common.def (CLEANUP_STMT): New tree node.
7425         * c-common.h (CLEANUP_DECL): New macro.
7426         (CLEANUP_EXPR): Likewise.
7427         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7428         * expr.c (expand_expr): Tidy.
7429         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7430         * tree-inline.c (initialize_inlined_parameters): Clean up
7431         new local variables.
7432
7433 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7434
7435         PR bootstrap/4128
7436         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7437         before movrXX only, use reg_overlap_mentioned_p.
7438         Only special case NE if just one insn can be generated.
7439
7440 2002-03-15  Jason Merrill  <jason@redhat.com>
7441
7442         * varasm.c (assemble_variable): Call resolve_unique_section before
7443         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
7444         of error_mark_node.
7445
7446 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7447
7448         PR target/5170
7449         * arm.md (split pattern for thumb shiftable immediates): Add comment
7450         explaining non-obvious test.
7451
7452 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7453
7454         PR target/5712
7455         * arm.md (movaddr, movaddr_insn): Delete.
7456
7457 2002-03-15  Jason Merrill  <jason@redhat.com>
7458
7459         * toplev.c (wrapup_global_declarations): Clarify variable handling.
7460         -fkeep-static-consts doesn't apply to comdats.
7461
7462 2002-03-14  Richard Henderson  <rth@redhat.com>
7463
7464         * c-decl.c: Include c-pragma.h.
7465         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7466         (finish_function): Tidy.
7467         * c-pragma.c: Include c-common.h.
7468         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7469         (handle_pragma_weak): Use them.
7470         (init_pragma): Register pending_weaks.
7471         * c-pragma.h (maybe_apply_pragma_weak): Declare.
7472         * print-tree.c (print_node): Print DECL_WEAK.
7473         * varasm.c (mark_weak_decls): Remove.
7474         (remove_from_pending_weak_list): Remove.
7475         (add_weak): Remove.
7476         (asm_emit_uninitialised): Call globalize_decl for weak commons.
7477         (weak_decls): Make a tree_list.
7478         (declare_weak): Cons weak_decls directly.
7479         (globalize_decl): Remove weak_decls elements directly.
7480         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
7481         symbols.  Don't pretend to handle aliases.
7482         (init_varasm_once): Update weak_decls registry.
7483         * Makefile.in: Update dependencies.
7484
7485 2002-03-14  Richard Henderson  <rth@redhat.com>
7486
7487         PR target/5312
7488         * config/ia64/ia64.c: Include tm_p.h last.
7489         (gen_nop_type): Remove duplicate definition.
7490         (cycle_end_fill_slots): Set sched_data for second L slot.
7491         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7492         (nop_cycles_until): Fix typos.
7493
7494 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7495
7496         PR optimization/5891
7497         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7498
7499 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7500
7501         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7502           descriptors correctly.
7503
7504 2002-03-14  Michael Meissner  <meissner@redhat.com>
7505
7506         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7507         100, allowing MAX_UNROLLED_INSNS to be overridden.
7508
7509         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7510         --param.
7511
7512         * unroll.c (params.h): Include.
7513         (MAX_UNROLLED_INSNS): Delete, now in params.h.
7514
7515         * doc/invoke.texi (--param max-unroll-insns): Document.
7516
7517         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7518
7519 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7520
7521         * arm.md: Fix warnings about constraints in peepholes and splits.
7522
7523 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
7524
7525         * cpphash.h (struct lexer_state): Remove line_extension member.
7526         * cpplib.c (dequote_string, do_linemarker): New functions.
7527         (linemarker_dir): New data object.
7528         (DIRECTIVE_TABLE): No longer need to interpret #line in
7529         preprocessed source.  Delete obsolete comment about return
7530         values of handlers.
7531         (end_directive, directive_diagnostics, _cpp_handle_directive):
7532         Don't muck with line_extension.
7533         (directive_diagnostics): No need to issue warnings for
7534         linemarkers here.
7535         (_cpp_handle_directive): Issue warnings for linemarkers here,
7536         when appropriate.  Dispatch linemarkers to do_linemarker, not
7537         do_line.
7538         (do_line): Code to handle linemarkers split out to do_linemarker.
7539         Convert escape sequences in filename argument, both places.
7540
7541         * cppmacro.c (quote_string): Rename cpp_quote_string and
7542         export.  All callers changed.
7543         * cpplib.h (cpp_quote_string): Prototype.
7544         * cppmain.c (print_line): Call cpp_quote_string on to_file
7545         before printing it.
7546
7547         * doc/cpp.texi: Document that escapes are now interpreted in
7548         #line and in linemarkers, and that non-printing characters are
7549         converted to octal escapes when linemarkers are generated.
7550
7551 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
7552
7553         * emit-rtl.c (try_split): Use delete_insns.
7554         * recog.c (split_all_insns): Fix terminating condition.
7555
7556 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7557             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7558
7559         PR target/5828
7560         * arm.c (arm_output_epilogue): Fix floating-point register save
7561         adjustment when using a frame pointer.
7562
7563 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
7564
7565         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7566         * config/mips/mips.c (compute_frame_size): Retrofit them here.
7567         (save_restore_insns, mips_expand_epilogue): And here.
7568         (build_mips16_call_stub): And here.
7569         (mips_function_value): Use the new macros to decide whether a single
7570         or complex float can be returned in floating-point registers.  Return
7571         a parallel rtx in the complex case.
7572
7573 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
7574
7575         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7576         call after liveness analysis.
7577
7578         * recog.c (split_insn): Use delete_insn_and_edges.
7579
7580         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7581         instructions to have branch prediction notes.
7582         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7583
7584 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
7585
7586         * configure.in: Don't pass -Wno-long-long to a ADA compiler
7587         that doesn't support it.
7588         * configure: Regenerate.
7589
7590 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7591
7592         PR target/5626
7593         * config/sparc/sparc.md (normal_branch, inverted_branch,
7594         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7595         inverted_fp_branch): Adjust calls to output_cbranch.
7596         Set length attribute.
7597         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7598         output_v9branch.  Set length attribute.
7599         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7600         predicates.
7601         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7602         (output_cbranch): Likewise.  Handle far branches.
7603         (output_v9branch): Handle far branches.
7604         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7605         Adjust prototypes.
7606         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7607         noov_compare64_op predicates.
7608
7609 2002-03-13  Jason Merrill  <jason@redhat.com>
7610
7611         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7612         into the function and constify it.
7613         * gthr-dce.h, gthr-solaris.h: Likewise.
7614
7615 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
7616
7617         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7618         * config/rs6000/rs6000.c (rs6000_va_arg): Use
7619         std_expand_builtin_va_arg if not ABI_V4.
7620
7621 2002-03-13  Jason Merrill  <jason@redhat.com>
7622
7623         * varasm.c (globalize_decl): New fn.
7624         (assemble_start_function): Use it.
7625         (asm_emit_uninitialized): Use it.
7626         (assemble_alias): Use it.
7627         (assemble_variable): Use it.
7628
7629 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
7630
7631         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7632         2002-03-12 internal visibility change.
7633         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7634         visibility into SYMBOL_REF_FLAG.
7635
7636 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
7637
7638         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7639         VOIDmode operand.  Add compile-time optimization for constant results.
7640
7641 2002-03-12  Jason Merrill  <jason@redhat.com>
7642
7643         * c-typeck.c (convert_for_assignment): Don't allow conversions
7644         between pointers and references.  Only allow lvalues to convert to
7645         reference.
7646
7647 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
7648
7649         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7650         before prologue, to avoid scheduling problems.
7651
7652 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7653
7654         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7655         (ELIMINABLE_REGS): Add sfp->sp.
7656         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7657
7658 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7659
7660         PR optimization/5892
7661         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7662
7663 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7664
7665         * loop.c (basic_induction_var): Don't call convert_modes if mode
7666         classes are different.
7667
7668 2002-03-12  Richard Henderson  <rth@redhat.com>
7669
7670         PR optimization/5901
7671         * function.c (reposition_prologue_and_epilogue_notes): Position
7672         the markers after/before the last/first insn not deleted.
7673
7674 2002-03-12  Richard Henderson  <rth@redhat.com>
7675
7676         PR optimization/5878
7677         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7678         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7679         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7680
7681         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7682         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7683         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7684
7685         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7686         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7687         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7688         also.  Don't set it if not flag_pic.
7689         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7690         to be INVALID_REGNUM when not used.
7691
7692 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
7693
7694         * expmed.c (store_bit_field): Reset alias set for memory.
7695         (extract_bit_field): Same.
7696
7697 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7698
7699         * c-common.c (c_tree_code_type, c_tree_code_length,
7700         c_tree_code_name, add_c_tree_codes): Delete.
7701         * c-common.h (add_c_tree_codes): Delete.
7702         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7703         Define.
7704         * c-objc-common.c (c_objc_common_init): Don't call
7705         add_c_tree_codes, instead set lang_unsafe_for_reeval.
7706         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7707         objc_tree_code_name, add_objc_tree_codes): Delete.
7708         (objc_init): Don't call add_objc_tree_codes.
7709         * objc/objc-lang.c (tree_code_type, tree_code_length,
7710         tree_code_name): Define.
7711         * toplev.c (lang_independent_init): Don't set
7712         tree_code_length[IDENTIFIER_NODE].
7713         * tree.c (tree_code_type, tree_code_length, tree_code_name):
7714         Delete definitions, moved to language front-ends.
7715         * tree.def (IDENTIFIER_NODE): Hardwire the length.
7716         * tree.h (tree_code_type, tree_code_length, tree_code_name):
7717         Const-ify.
7718         (tree_code_length): Change type to unsigned char.
7719
7720 2002-03-12  Richard Henderson  <rth@redhat.com>
7721
7722         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7723         internal visibility change.
7724
7725 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7726
7727         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7728         validize_mem() instead of change_address to avoid clobbering
7729         memory attributes.
7730
7731 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
7732
7733         * c-lex.h (position_after_whitespace): Remove.
7734
7735 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
7736
7737         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7738         (lex_string): Use unsigned char pointers.
7739
7740 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7741
7742         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7743         is not a valid memory_operand.
7744
7745 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7746
7747         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7748         * config/xtensa/lib1funcs.asm: Fix copyright to include
7749         special case for libgcc files.
7750         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7751         (__divsi3): Likewise.
7752         (__umodsi3): Likewise.
7753         (__modsi3): Likewise.
7754         * config/xtensa/lib2funcs.S: Fix copyright to include
7755         special case for libgcc files.
7756
7757 2002-03-12  Tom Rix  <trix@redhat.com>
7758
7759         * collect2.c (resolve_lib_name): Move outside of
7760         OBJECT_FORMAT_COFF ifdef.
7761         (ignore_library): Same.
7762
7763 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7764
7765         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7766
7767 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7768
7769         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7770         to function_section before writing out the constant pool.
7771
7772 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
7773
7774         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7775         zero_constant.
7776         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7777
7778 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
7779
7780         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7781         (adddi3): Likewise.
7782         (movdf): Likewise.
7783         (movdi): Likewise.
7784         (cmpsi splitter): Likewise.
7785         (modsi3): Fail if <= 0.
7786         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7787         redundant test when HOST_BITS_PER_WIDE_INT != 32.
7788         (reg_or_sub_cint64_operand): Likewise.
7789         (num_insns_constant_wide): Optimize sign extension.
7790         (rs6000_legitimize_address): Likewise.
7791
7792 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7793
7794         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7795         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7796
7797 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7798
7799         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7800         address calculation.
7801
7802 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7803
7804         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7805         scratch register to DImode / TImode.
7806         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7807         register used does not overlap the target.
7808
7809 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7810
7811         * Makefile.in (debug.o): Depend on debug.h.
7812         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7813         * debug.c (do_nothing_debug_hooks): Likewise.
7814         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7815         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7816         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7817         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7818         * dwarfout.c (dwarf_debug_hooks): Likewise.
7819         * integrate.c (output_inline_function): Likewise.
7820         * objc/objc-act.c (synth_module_prologue): Likewise.
7821         * sdbout.c (sdb_debug_hooks): Likewise.
7822         * toplev.c (debug_hooks): Likewise.
7823         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7824
7825 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7826
7827         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7828         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7829         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7830         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7831         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7832         * defaults.h (POINTER_SIZE): Define.
7833         * doc/tm.texi (POINTER_SIZE): Document default.
7834
7835 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7836
7837         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7838
7839 2002-03-11  Richard Henderson  <rth@redhat.com>
7840
7841         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7842         if rebuild_label_notes_after_reload.
7843
7844 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
7845
7846         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
7847         emit pic register load if "internal" visibility.
7848         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7849         (cris_expand_builtin_va_arg): Do all computations on trees.
7850
7851 2002-03-11  Richard Henderson  <rth@redhat.com>
7852
7853         * rtlanal.c: Include recog.h.
7854         (keep_with_call_p): Fix thinko.
7855         * Makefile.in (rtlanal.o): Update dependencies.
7856
7857 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
7858
7859         * genflags.c (gen_insn): Use IS_VSPACE.
7860         * genoutput.c (output_insn_data): Likewise.
7861         (process_template): Likewise.
7862
7863 2002-03-11  Richard Henderson  <rth@redhat.com>
7864
7865         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7866
7867 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7868
7869         * Makefile.in: Update.
7870         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7871         Update documentation.
7872         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7873         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7874
7875 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
7876
7877         * Makefile.in: Give texi2pod its input file as a command line
7878         argument, not on stdin.
7879
7880 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
7881             Daniel Berlin  <dan@dberlin.org>
7882
7883         C++ alias analysis improvement.
7884         * alias.c (record_component_aliases): Record aliases for base
7885         classes too.
7886
7887 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
7888
7889         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7890
7891 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
7892
7893         * toplev.c (vms_fopen): Remove, not needed.
7894
7895         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7896
7897         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7898
7899         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7900         for FP, already done later.
7901
7902         * toplev.c (debug_args): Add entry for VMS_DEBUG.
7903         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7904
7905 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
7906
7907         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7908         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7909         LARGEST_EXPONENT_IS_NORMAL for the given mode.
7910         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7911         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7912         (ediv, emul, eldexp, esqrt): Likewise.
7913         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7914         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7915         (saturate): New function.
7916         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7917         (make_nan): Use a saturation value instead of a NaN if
7918         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
7919         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7920         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
7921         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
7922         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7923         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7924         !ROUND_TOWARDS_ZERO.
7925         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7926         (ROUND_TOWARDS_ZERO): Document.
7927
7928 2002-03-11  Andreas Jaeger  <aj@suse.de>
7929
7930         * cfg.c (dump_flow_info): Remove unused variable.
7931
7932 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
7933
7934         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7935         computations on trees.
7936
7937 2002-03-10  Richard Henderson  <rth@redhat.com>
7938
7939         PR 5693:
7940         * reload.c (copy_replacements_1): New.
7941         (copy_replacements): Use it to recurse through the rtx.
7942
7943 2002-03-10  Richard Henderson  <rth@redhat.com>
7944
7945         * loop.c (strength_reduce): Compute number of iterations as
7946         unsigned HOST_WIDE_INT.
7947
7948 2002-03-10  Richard Henderson  <rth@redhat.com>
7949
7950         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7951         to move away from the end of the block.
7952
7953 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
7954
7955         PR preprocessor/5899
7956         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7957
7958 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7959
7960         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7961
7962         * attribs.c (decl_attributes): Fix signed/unsigned warning.
7963
7964 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
7965
7966         * config/mmix/mmix.c: Improve comments.
7967         (mmix_target_asm_function_prologue): Drop variable
7968         empty_stack_frame.  Don't allocate unused slot above fp.
7969         (mmix_target_asm_function_epilogue): Mirror prologue changes.
7970         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7971         brace in first column.
7972         (enum reg_class): Ditto.
7973         (FIRST_PARM_OFFSET): Now 0.
7974         (USER_LABEL_PREFIX): Remove #if 0:d definition.
7975
7976 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7977
7978         * combine.c (make_extraction): Fix error in last change.
7979
7980 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7981
7982         * c4x.c (c4x_fp_reglist): Const-ify.
7983         * cris.c (cris_print_operand): Likewise.
7984         * i386.c (ix86_va_arg): Likewise.
7985         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7986         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7987         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7988         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7989         * mcore.h (regno_reg_class): Likewise.
7990         * mips.c (gen_int_relational): Likewise.
7991         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7992         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7993         * pdp11.c (move_costs): Likewise.
7994         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7995         * s390.c (s390_branch_condition_mnemonic, regclass_map):
7996         Likewise.
7997         * s390.h (regclass_map): Likewise.
7998         * sh.c (shift_amounts): Likewise.
7999         * sh.md (rotlsi3): Likewise.
8000
8001 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
8002
8003         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
8004         (ne0+5): Use new clobber to generate proper shift pattern.
8005         Patch by Michael Matz <matz@kde.org>.
8006
8007 2002-03-09  Andreas Schwab  <schwab@suse.de>
8008
8009         * gcc.c (validate_all_switches): Also handle `%W{...}'.
8010
8011 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
8012
8013         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
8014
8015 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
8016
8017         PR middle-end/5877
8018         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
8019         even for non-representable constants.
8020
8021 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8022
8023         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
8024         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
8025         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
8026         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
8027         (pop_function_context): Compute MAY_SHARE parameter for
8028         fixup_var_refs.
8029         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
8030         (gen_mem_addressof): Call fixup_var_refs with new parm.
8031
8032         * combine.c (make_extraction): Don't make extension of CONST_INT.
8033
8034 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
8035
8036         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
8037         in o32 and o64 ABIs.
8038         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
8039         but getting fixed-size structs passed in registers regardless of
8040         padding in o32 and o64 ABIs.
8041
8042         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
8043         offset before loading address of argument passed by transparent
8044         reference.
8045
8046 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8047
8048         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
8049
8050 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
8051
8052         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
8053         marker such that registers after it are saved.
8054
8055 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8056
8057         * sparc.c (arith_4096_operand): Fix error in last change.
8058
8059 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
8060
8061         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
8062         defaults for MEABI.
8063
8064 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
8065
8066         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
8067         vectors.
8068
8069 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
8070
8071         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
8072
8073 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8074
8075         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
8076         removed; fix return value.
8077         * combine.c (combine_instructions): Dirtify blocks where we failed to
8078         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
8079         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
8080
8081 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8082
8083         * gcse.c (insert_insn_end_bb): Fix typo in last change.
8084
8085 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
8086
8087         * recog.c (peephole2_optimize): Re-distribute EH edges.
8088
8089 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8090
8091         * expr.c (expand_expr): Use unsave lang hook.
8092         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
8093         (LANG_HOOKS_INITIALIZER): Update.
8094         * langhooks.h (struct lang_hooks): New hook unsave.
8095         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
8096         (unsave_expr_1): Remove unused lang_unsave_expr_now.
8097         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
8098         (unsave_expr_now): Remove.
8099         * tree.h (unsave_expr_now, lang_unsave,
8100         lang_unsave_expr_now): Remove.
8101         (lhd_unsave): New.
8102
8103 2002-03-08  Andreas Jaeger  <aj@suse.de>
8104
8105         * flow.c (propagate_block_delete_insn): Remove unused variable.
8106
8107 2002-03-08  Kazu Hirata  <kazu@hxi.com>
8108
8109         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
8110         insn length for memory load/store.
8111
8112 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8113
8114         * doc/install.texi (--with-libiconv-prefix): Document.
8115
8116 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
8117
8118         * doc/sourcebuild.texi: Fix typo.
8119
8120 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
8121
8122         PR c/3711
8123         * builtins.c (std_expand_builtin_va_arg): Do all computations on
8124         trees.
8125
8126 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8127
8128         * rtl.c (copy_most_rtx): Move from here ...
8129         * emit-rtl.c (copy_most_rtx): ... to here.
8130
8131 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
8132
8133         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
8134         SUBTARGET_CPP_SIZE_SPEC.
8135         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
8136
8137         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
8138
8139 2002-03-07  Matt Hiller  <hiller@redhat.com>
8140
8141         * gensupport.c (first_dir_md_include): Renamed from include;
8142         change all references.
8143         (last_dir_md_include): Renamed from last_include; change all
8144         references.
8145         (init_md_reader): Unconditionally initialize base_dir whether or
8146         not filename is a relative path.
8147
8148 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
8149
8150         * config/fp-bit.c (_unord_f2): Compile it in even if
8151         US_SOFTWARE_GOFAST is enabled.
8152
8153         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
8154         NULL_RTX.  Set all HFmode operations as NULL_RTX.
8155         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
8156         NULL_RTX, try reversing the comparison and the operands.
8157
8158 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
8159
8160         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
8161         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
8162         and MATCH_OP_DUP.
8163
8164 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
8165
8166         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8167
8168 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8169
8170         * basic-block.h (fixup_abnormal_edges): Declare.
8171         * reload1.c (fixup_abnormal_edges): New function.
8172         * reg-stack.c (convert_regs): Use it.
8173
8174         * gcse.c (insert_insn_end_bb): Handle trapping insns.
8175
8176         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8177
8178 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
8179
8180         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8181         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8182         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8183         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8184         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8185         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8186         unless x and y could be infinite.
8187         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8188         Check that the common type of both arguments is a real, even for
8189         targets without unordered comparisons.  Allow an integer argument
8190         to be compared against a real.
8191         (expand_tree_builtin): Use expand_unordered_cmp.
8192         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8193         * cse.c (fold_rtx): Likewise.  Fix indentation.
8194         * fold-const.c (fold_real_zero_addition_p): New.
8195         (fold): Use it, and the new HONOR_... macros.
8196         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8197         * jump.c (reversed_comparison_code_parts): After searching for
8198         the true comparison mode, use HONOR_NANS to decide whether it
8199         can be safely reversed.
8200         (reverse_condition_maybe_unordered): Remove IEEE check.
8201         * simplify-rtx.c (simplify_binary_operation): Use the new macros
8202         to decide which simplifications are valid.  Allow the following
8203         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8204         and (a - -b) to (a + b).
8205         (simplify_relational_operation): Use HONOR_NANS.
8206         * doc/tm.texi: Document the MODE_HAS_... macros.
8207
8208 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
8209
8210         * combine.c (simplify_comparison): If simplifying a logical shift
8211         right and compare with constant, force the comparison to unsigned.
8212
8213 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
8214
8215         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
8216
8217         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8218         -mabi=no-altivec
8219         (alt_reg_names): Remove % for vrsave.
8220
8221 2002-03-06  Richard Henderson  <rth@redhat.com>
8222
8223         PR optimization/5844
8224         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
8225         if used indicates we've already emitted one copy of an operand.
8226         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8227         (gen_split): Supply a non-null used.
8228
8229 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
8230
8231         * reload1.c (reload): Unshare all rtl after reload is done.
8232
8233         * simplify-rtx.c (simplify_plus_minus): Do not abort,
8234         but simply fail if the expression is too complex to simplify.
8235         (simplify_gen_binary): Handle simplify_plus_minus failures.
8236
8237 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
8238
8239         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8240         consistently call delete_trivially_dead_insns after CSE and GCSE;
8241         fix DFI_life dumping; do jump threading after liveness; do crossjumping
8242         after liveness2; update comment in last crossjumping.
8243         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8244
8245 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
8246
8247         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8248         after completing fast dead code elimination.
8249
8250         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8251         COMPARE operator.
8252
8253 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
8254
8255         * version.c:  Fix misplaced leading blanks on first line.
8256
8257 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
8258
8259         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8260
8261 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
8262
8263         * cfgcleanup.c (mentions_nonequal_regs): New function.
8264         (thread_jump): Use it.
8265         * toplev.c (rest_of_compilation): Run jump threading after
8266         liveness.
8267
8268 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8269
8270         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8271         patch.
8272
8273 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8274
8275         * predict.c (estimate_bb_frequencies): Do not reload the
8276         frequencies from notes.
8277
8278 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
8279
8280         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8281         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8282
8283         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8284         delete_noop_moves): Return indeger.
8285         * flow.c (ndead): New variable.
8286         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8287         BB argument; update callers.
8288         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8289         (life_analysis): Do not call purge_all_dead_edges.
8290         (update_life_info): Return number of deleted insns; print statistics.
8291         (update_life_info_in_dirty_blocks): likewise.
8292         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8293         return number of insns deleted.
8294
8295         * cse.c: Include timevar.h
8296         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8297         iterate until stabilizes; print statistics; return number of killed
8298         insns.
8299         * Makefile.in: (cse.o): Add timevar.h dependency
8300         * rtl.h (delete_trivially_dead_insns): New.
8301         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8302         * toplev.c (rest_of_compilation): Update callers.
8303
8304         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8305         (try_optimize_cfg): Do not update liveness.
8306         (cleanup-cfg): Loop until try_optimize_cfg and dead code
8307         removal stabilizes; use delete_trivially_dead_insns.
8308
8309         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8310
8311 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
8312
8313         * cppmain.c (setup_callbacks): Disable #pragma and #ident
8314         callbacks when processing assembly language.
8315
8316 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8317
8318         * pa.h (ASM_FILE_END): Define.
8319         * som.h (ASM_FILE_END): Delete.
8320
8321         * pa.c (function_arg): Don't pass floats in general registers in
8322         indirect calls if TARGET_ELF32.
8323
8324 2002-03-05  Richard Henderson  <rth@redhat.com>
8325
8326         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8327
8328 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
8329
8330         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8331
8332 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8333
8334         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8335         -r command line.  Don't hide any symbols if not building
8336         shared libgcc.
8337
8338 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
8339
8340         * cfg.c (dump_flow_info): Warn about profile mismatches.
8341         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8342         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8343
8344 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8345
8346         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8347         wide volatile memory by parts.
8348
8349 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8350
8351         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8352         is NULL.
8353
8354 2002-03-05  Richard Henderson  <rth@redhat.com>
8355
8356         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8357
8358 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8359
8360         * toplev.c (documented_lang_options): Document more
8361         language-specific options.
8362         * doc/invoke.texi (Warning Options): Correct documentation for
8363         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8364         * c-decl.c (c_decode_option): Use a table to handle warning options.
8365
8366 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
8367
8368         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8369         parameter to mmix_encode_section_info.
8370         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8371         relocatably.  Always produce ELF, not mmo if linking relocatably.
8372         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8373         first is non-zero, don't add symbol prefix.
8374         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8375         prototype accordingly.
8376
8377 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
8378
8379         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8380
8381 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
8382
8383         * configure.in: Increase required makeinfo version to 4.1.
8384         * configure: Regenerate.
8385
8386 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8387
8388         * .cvsignore: Remove *.info* and genrtl*; these files are generated
8389         elsewhere now.
8390
8391 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
8392
8393         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8394         * doc/invoke.texi: Fix @math uses.
8395
8396 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8397
8398         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8399         removal
8400
8401 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
8402
8403         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8404         (powerpc-*-eabisimaltivec*): Same.
8405
8406         * config/rs6000/t-ppcendian: New.
8407
8408 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8409
8410         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8411         nonimmediate_src_operand and nonimmediate_lsrc_operand to
8412         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8413
8414 2002-03-03  Richard Henderson  <rth@redhat.com>
8415
8416         * toplev.c (rest_of_decl_compilation): Revert last two changes.
8417
8418 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
8419
8420         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8421         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8422         tree.c, config/m68k/m68k.c:
8423         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8424         REAL_ARITHMETIC blocks unconditional.  Delete some further
8425         #ifdef blocks predicated on REAL_ARITHMETIC.
8426         * flags.h, toplev.c: Delete remaining references to
8427         flag_pretend_float.
8428
8429         * doc/invoke.texi: Remove documentation of -fpretend-float.
8430         * doc/tm.texi: Describe the various REAL_* macros as provided by
8431         real.h, not by the target configuration files.
8432
8433         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8434         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8435         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8436         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8437         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8438         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8439         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8440         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8441         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8442         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8443         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8444         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8445         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8446         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8447         config/xtensa/xtensa.h:
8448         Do not define, undefine, or mention in comments any of
8449         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8450         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8451         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8452         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8453         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8454         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8455         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8456         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8457         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8458
8459 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8460
8461         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8462         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8463         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8464         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8465         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8466         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8467         Delete.
8468         * defaults.h (BITS_PER_WORD): Define.
8469         * doc/tm.texi (BITS_PER_WORD): Document default value.
8470
8471         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8472         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8473         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8474
8475 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8476
8477         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8478         lieu of explicit sizeof/sizeof.
8479         * i386.c (override_options, ix86_init_mmx_sse_builtins,
8480         ix86_expand_builtin): Likewise.
8481         * mips.c (mips_add_gc_roots): Likewise.
8482         * mmix.c (mmix_output_condition): Likewise.
8483         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8484         altivec_init_builtins): Likewise.
8485         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8486         * cppexp.c (Nsuff, parse_number): Likewise.
8487         * cppinit.c (builtin_array_end): Likewise.
8488         * gcc.c (n_default_compilers, process_command): Likewise.
8489         * genpreds.c (output_predicate_decls): Likewise.
8490         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8491         * lcm.c (N_ENTITIES): Likewise.
8492         * stor-layout.c (set_sizetype): Likewise.
8493
8494 2002-03-03  Richard Henderson  <rth@redhat.com>
8495
8496         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8497         for types or labels.
8498
8499 2002-03-03  Richard Henderson  <rth@redhat.com>
8500
8501         * c-decl.c (start_decl): Initialized variables are not common.
8502
8503 2002-03-02  Per Bothner  <per@bothner.com>
8504
8505         * gcc.c (option_map):  Suport new --bootclasspath option.
8506         --CLASSPATH is now just an alias for --classpath.
8507
8508 2002-03-02  Richard Henderson  <rth@redhat.com>
8509
8510         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8511         load if "internal" visibility.
8512         * doc/extend.texi: Document visibility meanings.
8513
8514 2002-03-02  Richard Henderson  <rth@redhat.com>
8515
8516         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8517         to functions as well.
8518
8519 2002-03-02  Richard Henderson  <rth@redhat.com>
8520
8521         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8522         (handle_visibility_attribute): Don't call assemble_visibility.
8523         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8524         without asmspec.  Invoke assemble_alias when needed.
8525         * varasm.c (maybe_assemble_visibility): New.
8526         (assemble_start_function, assemble_variable, assemble_alias): Use it.
8527
8528 2002-03-02  Richard Henderson  <rth@redhat.com>
8529
8530         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8531         invoke ENCODE_SECTION_INFO with first call flag.
8532
8533         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8534         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8535         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8536         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8537         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8538         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8539         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8540         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8541         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8542         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8543         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8544         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8545         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8546         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8547         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8548         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8549         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8550         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8551         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8552         config/sh/sh.h, config/sparc/sparc.h,
8553         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8554         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8555         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8556         FIRST argument.  As needed, examine it and do nothing.
8557
8558         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8559         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8560         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8561
8562         * config/arm/t-pe (pe.o): Add dependencies.
8563
8564 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8565
8566         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8567         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8568         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8569         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8570         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8571         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8572         * defaults.h (BITS_PER_UNIT): Define.
8573         * doc/tm.texi (BITS_PER_UNIT): Document default value.
8574
8575 2002-03-02  Kazu Hirata  <kazu@hxi.com>
8576
8577         * config/h8300/h8300-protos.h: Add a prototype for
8578         compute_a_shift_length.
8579         * config/h8300/h8300.c (h8300_asm_insn_count): New.
8580         (compute_a_shift_length): Likewise.
8581         (h8300_adjust_insn_length): Do not adjust insn length of shift
8582         insns.
8583         * config/h8300/h8300.md (anonymous shift patterns): Use
8584         compute_a_shift_length.
8585
8586 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8587
8588         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8589         trunc_int_for_mode.
8590
8591         * emit-rtl.c (offset_address): Call update_temp_slot_address.
8592
8593 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8594
8595         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8596         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8597         * flags.h (flag_zero_initialized_in_bss): Declare.
8598         * toplev.c (flag_zero_initialized_in_bss): New flag.
8599         (lang_independent_options): Add flag_zero_initialized_in_bss.
8600         * tree.c (initializer_zerop): New function.
8601         * tree.h (initializer_zerop): Declare.
8602         * varasm.c (assemble_variable): If we can emit bss, put zero
8603         initializers in the bss section.
8604
8605 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
8606
8607         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8608         like more than one symbol per .weak directive.
8609
8610 2002-03-01  Richard Henderson  <rth@redhat.com>
8611
8612         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8613         adjust argument_pointer by pretend_args_size.
8614         (ia64_va_start): Adjust va_start address by -pretend_args_size.
8615
8616 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8617
8618         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8619
8620 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
8621
8622         * toplev.c (rest_of_compilation): Delete dead jumptables before
8623         loop.
8624         * flow.c (delete_dead_jumptables): Make global.
8625         * rtl.h (delete_dead_jumptables): Declare.
8626
8627 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
8628
8629         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8630         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8631         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8632
8633 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8634
8635         * config/h8300/h8300-protos.h: Fix formatting.
8636         * config/h8300/h8300.c: Likewise.
8637         * config/h8300/h8300.h: Likewise.
8638
8639 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8640
8641         * config/h8300/h8300.c (print_operand): Support 16-bit
8642         constant addresses.
8643         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8644
8645 2002-02-28  Richard Henderson  <rth@redhat.com>
8646
8647         * expmed.c (store_bit_field): Prevent generation of CONCATs;
8648         pun complex values as integers; use gen_lowpart instead of
8649         gen_rtx_SUBREG.
8650         (extract_bit_field): Likewise.
8651
8652 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
8653             David Edelsohn  <edelsohn@gnu.org>
8654
8655         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8656         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8657         (SUPPORTS_WEAK): Likewise.
8658         * output.h (add_weak): Add tree param.
8659         * varasm.c (add_weak): Likewise.  Save decl.
8660         (struct weak_syms): Add decl field.
8661         (mark_weak_decls): New function.
8662         (init_varasm_once): ggc_add_root mark_weak_decls.
8663         (assemble_start_function): Use ASM_WEAKEN_DECL.
8664         (assemble_variable): Likewise.
8665         (assemble_alias): Likewise.
8666         (declare_weak): Pass decl to add_weak.
8667         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8668         (remove_from_pending_weak_list): Declare and define for
8669         ASM_WEAKEN_DECL.
8670         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8671         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8672         * defaults.h (SUPPORTS_WEAK): Likewise.
8673         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8674         .weak for code sym.  Do emit .size for descriptor sym.
8675         (ASM_DECLARE_FUNCTION_SIZE): Define.
8676         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8677         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
8678         .lglobl unless TARGET_XCOFF.  Formatting fixes.
8679         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8680         .weak for code sym.
8681         (HANDLE_PRAGMA_WEAK): Remove.
8682         (ASM_WEAKEN_LABEL): Remove.
8683         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8684
8685 2002-03-01  Jason Merrill  <jason@redhat.com>
8686
8687         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8688         (TARGET_EXPR_CLEANUP): New macro.
8689
8690 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
8691
8692         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8693         to take ptr_extend into account as third type of extension.
8694         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8695         fields used by SUBREG_PROMOTED_UNSIGNED_P.
8696         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8697         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8698         * calls.c (precompute_arguments): Use new macro.
8699         (expand_call): Ditto.
8700         * combine.c (nonzero_bits): Ditto.
8701         (record_promoted_value): Ditto.
8702         * expr.c (store_expr): Ditto.
8703         (expand_expr): Ditto.
8704         * function.c (assign_parms): Ditto.
8705
8706 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
8707
8708         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8709         override -shared and -shared-libgcc.
8710
8711 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
8712
8713         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8714         of "ultrasparc".
8715         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
8716         to be broken.
8717
8718 2002-02-28  Richard Henderson  <rth@redhat.com>
8719
8720         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8721         4 cycle latency from MM producers.
8722         (ia64_internal_sched_reorder): Likewise with pipeline flush.
8723
8724 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8725
8726         * mklibgcc.in: Don't use GNU make extension.
8727
8728 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8729
8730         * c-parse.in (STATIC): New terminal.
8731         (scspec): New non-terminal.  Update productions accordingly.
8732         (program): Remove bogus ifc / end ifc.
8733         (array_declarator): Simplify production using STATIC.
8734
8735 2002-02-28  Jim Meyering  <meyering@lucent.com>
8736
8737         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8738         \a still means TARGET_BELL.
8739
8740 2002-02-28  Richard Henderson  <rth@redhat.com>
8741
8742         * haifa-sched.c (sched_emit_insn): New.
8743         (schedule_block): Use last_scheduled_insn to track last insn.
8744         * sched-int.h (sched_emit_insn): Prototype.
8745         * config/ia64/ia64.c (last_issued): Remove.
8746         (ia64_variable_issue): Don't set it.
8747         (nop_cycles_until): Use sched_emit_insn.
8748
8749 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
8750
8751         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8752         extended constants.
8753
8754 2002-02-28  Kazu Hirata  <kazu@hxi.com>
8755
8756         * config/h8300/h8300.c: Fix formatting.
8757         * config/h8300/h8300.h: Likewise.
8758
8759 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8760
8761         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8762         which may overwrite the high byte of the frame pointer.
8763
8764 2002-02-28  Bo Thorsen  <bo@suse.de>
8765
8766         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8767         (STARTFILE_SPEC): Add 64 bit files.
8768         (ENDFILE_SPEC): Likewise.
8769
8770 2002-02-28  Jason Merrill  <jason@redhat.com>
8771
8772         * c-decl.c (finish_function): Only warn about missing return
8773         statement with -Wreturn-type.
8774
8775 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8776
8777         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8778
8779         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8780         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8781
8782 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8783
8784         * basic-block.h (BB_REACHABLE): Renumber.
8785         (BB_DIRTY, BB_NEW): New flags.
8786         (clear_bb_flags): Declare.
8787         (update_life_info_in_dirty_blocks): Declare.
8788         * cfg.c (clear_bb_flags): New function.
8789         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8790         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8791         reorder_insns, emit_insn_after): Mark block as dirty.
8792         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8793         (update_life_info_in_dirty_blocks): New function.
8794         * recog.c (apply_change_group): Dirtify block.
8795
8796         * cse.c (cse_insn): Reorder emitting of jump insn to keep
8797         cfg consistent.
8798         * gcse.c (delete_null_pointer_checks): Likewise.
8799
8800         * toplev.c (dump_file_index): Move cse2 after bp,
8801         add DFI_null
8802         (dump_file_info): Similary.
8803         (rest_of_compilation): Avoid most of CFG rebuilds;
8804         do first if converision after null pointer checks, do cse2
8805         after branch prediction; avoid full liveness rebuild after
8806         initializing subregs.
8807         * invoke.texi (-d options): Document -du, renumber.
8808
8809         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8810         (notice_new_block): Do not set BB_UPDATE_LIFE.
8811         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8812          merge_blocks_move_successor_nojumps, merge_blocks,
8813          try_crossjump_to_edge): Likewise.
8814         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8815         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8816         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8817         (merge_of_block): Do not use life_data_ok.
8818         (find_if_case_1): Do not use SET_UPDATE_LIFE.
8819         (if_convert): Use BB_DIRTY mechanizm to update life.
8820         * lcm.c (optimize_mode_switching): Update
8821         update_life_info_in_dirty_blocks
8822
8823 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8824
8825         * Makefile.in (integrate.o): Update.
8826         * c-decl.c (copy_lang_decl): Rename.
8827         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8828         * integrate.c: Include langhooks.h.
8829         (copy_decl_for_inlining): Update to use langhook.
8830         * langhooks-def.h (lhd_do_nothing_t,
8831         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8832         (LANG_HOOKS_INITIALIZER): Update.
8833         * langhooks.c (lhd_do_nothing_t): New.
8834         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8835         * tree.h (copy_lang_decl): Remove.
8836 objc:
8837         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8838
8839 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
8840
8841         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8842         POST_DEC, and POST_MODIFY.
8843
8844 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8845
8846         * c-typeck.c (digest_init): Remove unused parameter; all
8847         callers changed.
8848
8849 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
8850
8851         * expmed.c (expand_shift): Correctly test for low part of a
8852         subreg.
8853
8854 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
8855
8856         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8857         insn UIDs with insn addresses.
8858
8859 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8860
8861         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8862         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8863         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8864         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8865         gcc.c, toplev.c: Delete code implementing -traditional mode.
8866
8867         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8868         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8869         Document removal of -traditional mode for compilation, and
8870         remove documentation only relevant to that mode.
8871
8872         * config/nextstep.h, config/ptx4.h, config/svr4.h,
8873         config/convex/convex.h, config/d30v/d30v.h,
8874         config/i386/dgux.h, config/i386/osf1elf.h,
8875         config/i386/osfelf.h, config/i386/osfrose.h,
8876         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8877         config/m68k/hp310.h, config/m88k/dgux.h,
8878         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8879         config/m88k/m88k.h, config/m88k/openbsd.h,
8880         config/mips/abi64.h, config/mips/osfrose.h,
8881         config/mips/svr4-5.h, config/mips/svr4-t.h,
8882         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8883         config/stormy16/stormy16.h: Remove all references to
8884         -traditional from target specs.  Delete all mention of the
8885         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
8886         delete a couple of commented-out definitions of
8887         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8888         to -traditional.
8889
8890         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8891         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8892
8893 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8894
8895         * mklibgcc.in: Don't use \n in a line subject to
8896         interpretation by echo.
8897
8898 2002-02-27  Graham Stott  <grahams@redhat.com>
8899
8900         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8901         Constify NAME.
8902
8903         * loop.c (prescan_loop): Handle PARALLEL.
8904
8905         * unroll.c (loop_iterations): Return 0 if the add_val for
8906         a BIV is REG.
8907
8908         * final.c (output_operand_lossage): Constify PFX_STR.
8909
8910         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8911
8912 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8913
8914         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8915         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8916
8917 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
8918
8919         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8920
8921 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8922
8923         * cpplex.c (_cpp_lex_token): Handle directives in macro
8924         arguments.
8925         * cpplib.c (_cpp_handle_directive): Save and restore state
8926         if parsing macro args when entering a directive.
8927         * cppmacro.c (collect_args): No need to handle directives
8928         in macro arguments.
8929         (enter_macro_context, replace_args): Use the original macro
8930         definition in case it was redefined whilst collecting arguments.
8931 doc:
8932         * cpp.texi: Update.
8933
8934 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
8935
8936         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8937         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8938         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8939         method on AIX.
8940         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8941         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8942         (load_toc_v4_PIC_2): Same.
8943
8944 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
8945
8946         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8947
8948 2002-02-26  Richard Henderson  <rth@redhat.com>
8949
8950         * config/alpha/alpha.md (ashldi_se): Re-enable.
8951
8952 2002-02-26  Richard Henderson  <rth@redhat.com>
8953
8954         * config/alpha/alpha.c (alpha_encode_section_info): Examine
8955         MODULE_LOCAL_P; improve commentary.
8956
8957 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
8958
8959         * doc/cpp.texi: Clarify documentation of relationship between
8960         #line and #include.
8961
8962 2002-02-26  Kazu Hirata  <kazu@hxi.com>
8963
8964         * config/h8300/h8300-protos.h: Update the prototype for
8965         compute_logical_op_length.  Add the prototype for
8966         compute_logical_op_cc.
8967         * config/h8300/h8300.c (compute_logical_op_length): Figure out
8968         code from operands.
8969         (compute_logical_op_cc): New.
8970         * config/h8300/h8300.md: Combine all the logical op patterns
8971         in HImode and SImode.  Use compute_logical_op_cc.
8972
8973 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
8974
8975         * config/i386/i386.c (print_operand): Don't append ATT-style
8976         length suffixs to x87 opcodes when in Intel mode.
8977
8978 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
8979
8980         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8981         (init_emit_once): Update calls.
8982         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8983         (init_syntax_once): Prototype.
8984
8985 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8986
8987         * pa-linux.h (LIB_SPEC): Update definition.
8988         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8989
8990 2002-02-26  Richard Henderson  <rth@redhat.com>
8991
8992         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8993         if we emitted a stop bit.
8994
8995 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8996
8997         * configure.in (libgcc_visibility): Substitute.
8998         * configure: Rebuilt.
8999         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
9000         defined symbols .hidden.
9001
9002 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
9003
9004         * attribs.c (c_common_attribute_table): Add visibility.
9005         (handle_visibility_attribute): New function.
9006         * varasm.c (assemble_visibility): New function.
9007         * output.h (assemble_visibility): Add prototype.
9008         * tree.h (MODULE_LOCAL_P): Define.
9009         * crtstuff.c (__dso_handle): Use visibility attribute.
9010         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
9011         for MODULE_LOCAL_P symbols too.
9012         * config/ia64/ia64.c (ia64_encode_section_info): Handle
9013         MODULE_LOCAL_P symbols the same way as local symbols.
9014         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
9015         into .sdata/.sbss by the user.
9016         * doc/extend.texi (Function Attributes): Document visibility
9017         attribute.
9018
9019 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
9020
9021         PR debug/5770
9022         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
9023         STRING_CST initializer spanning the whole variable without
9024         embedded zeros.
9025         If expand_expr returned MEM, don't use it.
9026
9027 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
9028
9029         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
9030         generate a die for the lexical block.
9031
9032 2002-02-26  Kazu Hirata  <kazu@hxi.com>
9033
9034         * config/h8300/h8300-protos.h: Add a prototype for
9035         compute_logical_op_length.
9036         * config/h8300/h8300.c (compute_logical_op_length): New.
9037         * config/h8300/h8300.md (anonymous logical patterns): Use
9038         compute_logical_op_length for length.
9039
9040 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9041
9042         * dwarf2out.c (modified_type_die): Do not call type_main_variant
9043         for vectors.
9044         (gen_type_die): Same.
9045
9046         * attribs.c (handle_vector_size_attribute): Set debug information.
9047
9048 2002-02-26  Daniel Egger  <degger@fhm.edu>
9049
9050         * config/rs6000/rs6000.md: Swap define_insn attributes to
9051         fix incorrect generation of merge high instructions instead
9052         of merge low.
9053
9054 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9055
9056         * c-typeck.c (really_start_incremental_init): Use
9057         bitsize_zero_node for vectors.
9058
9059 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
9060
9061         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
9062         ("*set_vrsave_internal"): Same.
9063
9064 2002-02-25  Richard Henderson  <rth@redhat.com>
9065
9066         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
9067         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
9068
9069 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9070
9071         PR target/5755
9072         * config/i386/i386.c (ix86_return_pops_args): Only pop
9073         fake structure return argument if it was passed on the stack.
9074
9075 2002-02-25  Jason Merrill  <jason@redhat.com>
9076
9077         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
9078         RESULT_DECL.
9079
9080 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
9081
9082         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
9083         link with shared_name only.
9084         * doc/invoke.texi (Link Options): Document new behavior.
9085
9086 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
9087
9088         * c-typeck.c (push_init_level): Handle vectors.
9089
9090 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
9091
9092         * config/sparc/sparc.c (const64_high_operand): Zero-extend
9093         operands of SPARC_SETHI_P.
9094         (input_operand): Likewise.
9095         (sparc_emit_set_const32): Likewise.
9096         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
9097         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9098         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
9099         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
9100         (movdi_insn_sp64_vis): Likewise.
9101         (movdi split, movdf split): Use SETHI32.
9102         * doc/md.texi: Document SPARC constraints L, M and N.
9103
9104 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
9105
9106         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
9107         ("*set_vrsave_internal"): use mfspr for Darwin.
9108
9109         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
9110         gen_get_vrsave_internal.
9111
9112 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9113
9114         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
9115
9116 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9117
9118         * cpplex.c (cpp_interpret_charconst): Get signedness or
9119         otherwise of wide character constants correct.
9120         * cppexp.c (lex): Get signedness of wide charconsts correct.
9121
9122 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9123
9124         * optabs.c (widen_operand): Only call convert_modes for
9125         promoted SUBREG if signedness matches.
9126         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
9127
9128 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9129
9130         * cpplib.c (glue_header_name): Use local buffer to build up
9131         header name.
9132
9133 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9134
9135         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
9136
9137 2002-02-23  Kazu Hirata  <kazu@hxi.com>
9138
9139         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
9140         H8/300[HS] separately.
9141         * config/h8300/h8300.md: Remove the early clobber constraint
9142         from bit field patterns.
9143
9144 2002-02-23  Kazu Hirata  <kazu@hxi.com>
9145
9146         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
9147         register_operand.
9148         (mulhisi3): Likewise.
9149         (umulqisi3): Likewise.
9150         (umulhisi3): Likewise.
9151
9152 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9153
9154         * cppinit.c (output_deps): Correct test for stdout output.
9155         (init_dependency_output): Cure warning.
9156
9157 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9158
9159         * expr.c (store_expr): When converting expression to promoted
9160         equivalent type, allow using SUBREG_REG of TARGET as the target
9161         of the expansion of EXP.
9162         * loop.c (basic_induction_var, case SUBREG): Always look inside.
9163         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
9164         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
9165         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
9166         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9167
9168 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
9169
9170         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9171         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9172         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9173
9174 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
9175
9176         PR optimization/5747
9177         * loop.c (scan_loop): Update reg info if move_movables created new
9178         pseudos.
9179
9180 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
9181
9182         * gcc.c (init_gcc_spec): Revert last change.
9183
9184 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
9185
9186         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9187         gpc_reg_operand constraint.
9188
9189 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
9190
9191         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9192         Simplify comparison of `low'.
9193         (add_operand): Fix formatting.
9194         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
9195         (mask_operand): Disallow mask to wrap in 64-bit mode.
9196         (rs6000_stack_info): Remove redundant test setting push_p.
9197         (output_toc): Fix formatting.
9198         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9199         cc_reg_not_cr0_operand constraint.
9200         (booldi3, boolcdi3 splitters): Same.
9201
9202 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
9203
9204         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
9205
9206 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
9207
9208         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9209         gcc invoked with -shared-libgcc.
9210
9211 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
9212
9213         PR c++/5748
9214         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9215         decl if any of elements was TREE_USED.
9216
9217 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
9218
9219         * config/sparc/sol2.h: Don't include sys/mman.h.
9220         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9221         (arith_4096_operand): Don't throw high bits away.
9222         (const64_operand): Take sign extension of CONST_INTs into account.
9223         (const64_high_operand, sparc_emit_set_const32): Likewise.
9224         (GEN_HIGHINT64): Likewise.
9225         (sparc_emit_set_const64_quick1): Likewise.
9226         (const64_is_2insns): Likewise.
9227         (print_operand): Use trunc_int_for_mode for sign extension.
9228         * config/sparc/sparc.h (SMALL_INT32): Likewise.
9229         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9230         chars.  Assume CONST_INT is already properly sign-extended.
9231         (movdi split): Sign-extend each SImode part.
9232         (andsi3 split): Don't mask high bits off, so that result
9233         remains properly sign-extend.
9234         (iorsi3 split): Likewise.
9235         (xorsi3 split): Likewise.
9236
9237 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
9238
9239         * fold-const.c (fold): Fix typo in comments.
9240
9241 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
9242
9243         * Makefile.in (langhooks.o): Update dependencies.
9244
9245 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
9246
9247         * langhooks.c: Include flags.h.
9248
9249 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
9250
9251         * testsuite/gcc.dg/attr-alwaysinline.c: New.
9252
9253         * c-common.c (c_common_post_options): Set inline trees by
9254         default.
9255
9256         * doc/extend.texi (Function Attributes): Document always_inline
9257         attribute.
9258         Update documentation about inlining when not optimizing.
9259
9260         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9261
9262         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9263         unless DECL_ALWAYS_INLINE.
9264
9265         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9266         unless DECL_ALWAYS_INLINE.
9267         (c_disregard_inline_limits): Disregard if always_inline set.
9268
9269         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9270         Disregard if always_inline set.
9271         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9272         unless DECL_ALWAYS_INLINE.
9273
9274         * attribs.c (handle_always_inline_attribute): New.
9275         (c_common_attribute_table): Add always_inline.
9276
9277         * config/rs6000/altivec.h: Add prototypes for builtins
9278         requiring the always_inline attribute.
9279
9280 2002-02-21  Eric Christopher  <echristo@redhat.com>
9281
9282         * expmed.c (store_bit_field): Try to simplify the subreg
9283         before generating a new one when when the mode size of
9284         value is less than maxmode.
9285
9286 2002-02-21  Richard Henderson  <rth@redhat.com>
9287
9288         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9289         than gen_rtx_PLUS to form the sum.
9290         * explow.c (force_reg): Rearrange to not allocate new pseudo
9291         when force_operand returns a register.
9292         * expr.c (expand_assignment): Allow offset_rtx expansion to
9293         return a sum.  Do not force addresses into registers.
9294         (expand_expr): Likewise.
9295         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9296         to canonicalize arithmetic that didn't simpify.
9297         (simplify_plus_minus): New argument force; update
9298         all callers.  Don't split CONST unless we can do something with it,
9299         and wouldn't lose the constness of the operands.
9300
9301         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9302         that we generated earlier.
9303
9304 2002-02-21  Tom Tromey  <tromey@redhat.com>
9305
9306         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9307         (output_line_info): Use constant `1', with a long explanatory
9308         comment.
9309         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9310
9311 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
9312
9313         * jump.c (redirect_jump): If old label has no UID, don't try to
9314         delete it.
9315
9316 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
9317
9318         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9319         If input is constant, do shifts at compile time.
9320
9321 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9322
9323         * doc/extend.texi: Fix some more overfull hboxes.
9324
9325 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9326
9327         PR optimization/4994
9328         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9329         register moves.
9330
9331 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9332
9333         PR c++/4574
9334         * expr.h (expand_and): Add mode argument.
9335         * expmed.c (expand_and): Add mode argument.
9336         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9337         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9338         * except.c (expand_builtin_extract_return_addr): Likewise.
9339         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9340         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9341         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9342         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9343         * config/c4x/c4x.md: Use GEN_INT (x) instead of
9344         gen_rtx (CONST_INT, VOIDmode, x).
9345
9346 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9347
9348         PR c/4697:
9349         * stmt.c (warn_if_unused_value): Move side effects test once more.
9350
9351 2002-02-20  Torbjorn Granlund  <tege@swox.com>
9352
9353         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9354         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9355
9356 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
9357
9358         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9359         SUBREG or ZERO_EXTEND.
9360
9361 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
9362
9363         * sh.h (current_function_anonymous_args): Remove.
9364         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9365         of current_function_varargs and current_function_stdarg is set.
9366         * sh.c (sh_expand_prologue): Check current_function_varargs /
9367         current_function_stdarg / TARGET_SH5 instead of
9368         current_function_anonymous_args.
9369
9370         * sh64.h (TARGET_VERSION): Define.
9371
9372 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
9373
9374         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9375         VRSAVE_REGNO on TARGET_ALTIVEC.
9376
9377 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
9378
9379         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9380         bits of SImode const_int.
9381         (includes_rshift_p): Likewise.
9382         (print_operand): Call mask_operand and mask64_operand with correct
9383         mode.
9384         (rs6000_output_function_epilogue): Pad traceback table to word.
9385         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9386         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9387         mask64_operand with correct mode.
9388         (FUNCTION_ARG_REGNO_P): Correct parentheses.
9389
9390 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9391
9392         PR debug/4461
9393         * varasm.c (get_pool_constant_mark): New.
9394         * rtl.h (get_pool_constant_mark): Add prototype.
9395         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9396         be represented if it has not been output.
9397
9398 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9399
9400         * combine.c (do_SUBST): Sanity check substitutions of
9401         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9402         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9403         CONST_INT into its operand.
9404         (known_cond): Likewise, for ZERO_EXTEND.
9405         * simplify-rtx.c (simplify_unary_operation): Fix condition to
9406         allow for simplification of wide modes.  Reject CONST_INTs in
9407         ZERO_EXTEND when their actual mode is not given.
9408
9409 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9410
9411         * c-decl.c (pushdecl): If no global declaration is found for an
9412         extern declaration in block scope, try a limbo one.
9413
9414 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9415
9416         PR c++/4401
9417         * c-common.c (pointer_int_sum): Moved from...
9418         * c-typeck.c (pointer_int_sum): ...here.
9419         * c-common.h (pointer_int_sum): Add prototype.
9420
9421 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9422
9423         PR c++/5713
9424         * c-decl.c (duplicate_decls): Return 0 if issued error about
9425         redeclaration.
9426
9427 2002-02-20  Roger Sayle  <roger@eyesopen.com>
9428             Jakub Jelinek  <jakub@redhat.com>
9429
9430         PR c/4389
9431         * tree.c (host_integerp): Ensure that the constant integer is
9432         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9433         when pos is zero or non-zero respectively.  Clarify comment.
9434         * c-format.c (check_format_info_recurse): Fix host_integerp
9435         usage; the pos argument should be zero when assigning to a
9436         signed HOST_WIDE_INT.
9437
9438 2002-02-20  Richard Henderson  <rth@redhat.com>
9439
9440         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9441         of the operand, rather than assuming TImode.
9442         (ix86_expand_binop_builtin): Cope with commutative patterns
9443         using nonimmediate_operand for both operands.
9444         (ix86_expand_timode_binop_builtin): Likewise.
9445         (ix86_expand_store_builtin): Validate operand 1.
9446         (ix86_expand_unop1_builtin): Likewise.
9447
9448 2002-02-20  Philip Blundell  <philb@gnu.org>
9449
9450         PR 5705
9451         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9452
9453 2002-02-20  Richard Henderson  <rth@redhat.com>
9454
9455         PR c/5615
9456         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9457
9458 2002-02-20  Tom Tromey  <tromey@redhat.com>
9459
9460         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9461         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9462         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9463         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9464         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9465         unconditionally.
9466
9467 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9468
9469         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9470           for (const_int 0) in X not just INTVAL.
9471
9472 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9473
9474         * doc/extend.texi: Avoid or reduce overfull hboxes.
9475
9476 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
9477
9478         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9479         operations if the field does not start at a mode boundary.
9480
9481 2001-02-20      Joel Sherrill <joel@OARcorp.com>
9482
9483         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9484         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9485         Also done for -Acpu and -Amachine.
9486
9487 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9488
9489         * cppinit.c (init_dependency_output): Take deps output file
9490         from -o if none given with -MF.  Suppress normal output.
9491         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9492         * doc/cpp.texi, doc/invoke.texi: Update.
9493
9494 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9495
9496         * toplev.c (output_quoted_string): Write unprintable
9497         characters with octal escapes.
9498
9499 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9500
9501         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9502         really_call_used[VRSAVE_REGNO] if not Altivec.
9503
9504 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
9505
9506         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9507         MODE_MASK.
9508         (constant_pool_expr_1): Fix formatting.
9509         (rs6000_legitimize_reload_address): Likewise.
9510
9511 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9512
9513         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9514         now that we have one.
9515
9516 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9517
9518         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
9519         end of first block of bitfields (which was only seven bits);
9520         rename dummy to unused_1; remove comment which is no longer true.
9521
9522 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9523
9524         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9525
9526 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9527
9528         PR 5399
9529         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9530         if generating PIC.
9531
9532         PR 5054
9533         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9534         arm_is_longcall_p rather than inspecting call-type cookie
9535         directly.
9536         (call_value_insn) [TARGET_THUMB]: Likewise.
9537
9538 2002-02-19  Graham Stott  <grahams@redhat.com>
9539
9540         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9541
9542 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9543
9544         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9545         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9546         (FP_SAVE_INLINE): Delete.
9547
9548         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9549         * config/rs6000/eabi.asm: Remove ABI save restore routines.
9550         * config/rs6000/t-ppccomm: Build crtsavres.o.
9551         * config/rs6000/crtsavres.asm: New file.
9552
9553 2002-02-19  Philip Blundell  <philb@gnu.org>
9554
9555         * config/arm/arm.c (use_return_insn): Don't reject interrupt
9556         functions.
9557         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9558         (output_return_instruction): Allow interrupt functions to return with
9559         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
9560         (arm_expand_prologue): Subtract 4 before stacking LR in an
9561         interrupt function.
9562
9563 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9564
9565         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9566         decl, not just FUNCTION_DECL.
9567         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9568         (arm_assemble_integer): Likewise.
9569         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9570         marked local.
9571
9572 2002-02-19  matthew green  <mrg@eterna.com.au>
9573
9574         * config.gcc (sparc-*-netbsdelf*): Enable target.
9575         (sparc64-*-netbsd*): New target.
9576         * config/sparc/netbsd-elf.h: New file.
9577         * config/sparc/t-netbsd64: New file.
9578
9579 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9580
9581         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9582
9583 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
9584
9585         * doc/invoke.texi: explicitly list the style guidelines that
9586         -Weffc++ checks for.
9587
9588 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
9589
9590         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9591
9592 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9593
9594         PR other/5718
9595         * gcc.c (cpp_unique_options): Treat -o as indicating object file
9596         only if not -E.  If -E, pass -o through to the preprocessor.
9597
9598 2002-02-19  Kazu Hirata  <kazu@hxi.com>
9599
9600         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9601         register number with an appropriate macro.
9602
9603 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9604
9605         * doc/rtl.texi (Constants): Close @code tag.
9606
9607 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
9608
9609         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9610         ("mmx_uavgv4hi3"): Same.
9611         ("pmulhrwv4hi3"): Same.
9612
9613         * tree-inline.c (walk_tree): Handle vectors.
9614
9615         * c-common.c (constant_expression_warning): Handle vectors.
9616         (overflow_warning): Same.
9617
9618         * sched-deps.c (sched_analyze_2): Handle vectors.
9619
9620         * rtlanal.c (rtx_unstable_p): Handle vectors.
9621         (rtx_varies_p): Same.
9622         (count_occurrences): Same.
9623         (regs_set_between_p): Same.
9624         (modified_between_p): Same.
9625         (modified_in_p): Same.
9626         (volatile_insn_p): Same.
9627         (volatile_refs_p): Same.
9628         (side_effects_p): Same.
9629         (may_trap_p): Same.
9630         (inequality_comparisons_p): Same.
9631         (replace_regs): Same.
9632         (computed_jump_p_1): Same.
9633
9634         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9635         argument.
9636         (inner_mode_array): New.
9637         (copy_rtx): Handle vectors.
9638         (copy_most_rtx): Same.
9639         (rtx_equal_p): Same.
9640         (get_mode_alignment): Adjust for vectors.
9641
9642         * resource.c (mark_referenced_resources): Handle vectors.
9643         (mark_set_resources): Same.
9644
9645         * reload1.c (eliminate_regs): Handle vectors.
9646         (elimination_effects): Same.
9647         (scan_paradoxical_subregs): Same.
9648
9649         * reload.c (subst_reg_equivs): Handle vectors.
9650
9651         * regrename.c (scan_rtx): Handle vectors.
9652
9653         * regclass.c (reg_scan_mark_refs): Handle vectors.
9654
9655         * recog.c (find_single_use_1): Handle vectors.
9656
9657         * local-alloc.c (equiv_init_varies_p): Handle vectors.
9658         (contains_replace_regs): Same.
9659         (memref_referenced_p): Same.
9660
9661         * integrate.c (copy_rtx_and_substitute): Handle vectors.
9662         (subst_constants): Same.
9663
9664         * genattrtab.c (attr_copy_rtx): Handle vectors.
9665         (encode_units_mask): Same.
9666         (clear_struct_flag): Same.
9667         (count_sub_rtxs): Same.
9668
9669         * gcse.c (want_to_gcse_p): Handle vectors.
9670         (oprs_unchanged_p): Same.
9671         (hash_expr_1): Same.
9672         (oprs_not_set_p): Same.
9673         (expr_killed_p): Same.
9674         (compute_transp): Same.
9675         (store_ops_ok): Same.
9676
9677         * function.c (purge_addressof_1): Do not allow paradoxical subregs
9678         of vectors.
9679         (fixup_var_refs_1): Same.
9680         (instantiate_virtual_regs_1): Same.
9681
9682         * fold-const.c (operand_equal_p): Handle vectors.
9683         (fold): Same.
9684         (rtl_expr_nonnegative_p): Same.
9685
9686         * flow.c (mark_used_regs): Handle vectors.
9687
9688         * df.c (df_uses_record): Handle vectors.
9689
9690         * cselib.c (cselib_subst_to_values): Handle vectors.
9691         (cselib_mem_conflict_p): Same.
9692         (hash_rtx): Same.
9693
9694         * cse.c (canon_reg): Handle vectors.
9695         (fold_rt): Same.
9696         (cse_process_notes): Same.
9697         (count_reg_usage): Same.
9698         (canon_hash): Same.
9699
9700         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9701
9702         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9703
9704         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9705         (gen_rtx): Handle CONST_VECTOR.
9706         (gen_const_vector_0): New.
9707         (copy_rtx_if_shared): CONST_VECTORs can be shared.
9708         (reset_used_flags): Same.
9709         (copy_insn_1): Same.
9710         (initializer_constant_valid_p): Handle VECTOR_CST.
9711
9712         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9713
9714         * doc/rtl.texi (Constants): Document const_vector.
9715         (CONST0_RTX): Update for vectors.
9716         (RTL sharing): Same.
9717
9718         * print-tree.c (print_node): Add case for VECTOR_CST.
9719
9720         * tree.h (TREE_VECTOR_CST_ELTS): New.
9721         (struct tree_vector): New.
9722         (union tree_node): Add vector node.
9723         (build_vector): Add prototype.
9724
9725         * tree.def (VECTOR_CST): New.
9726
9727         * tree.c (build_vector): New.
9728
9729         * expmed.c (make_tree): Handle CONST_VECTOR.
9730
9731         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9732         (CONST_VECTOR_ELT): New.
9733         (CONST_VECTOR_NUNITS): New.
9734
9735         * machmode.h (GET_MODE_INNER): New.
9736         (DEF_MACHMODE): Accept 8th arg.
9737
9738         * machmode.def: Add 8th argument for vector inner mode.
9739         Add inner vector modes for vectors.
9740
9741         * rtl.def (VEC_CONST): Remove.
9742         (CONST_VECTOR): New.
9743
9744         * expr.c (clear_storage): Allow vectors.
9745         (is_zeros_p): Handle VECTOR_CST.
9746
9747         * varasm.c (output_constant_pool): Handle vectors.
9748         (rtx_const): Add veclo and vechi fields.
9749         (kind): Add RTX_VECTOR.
9750         (decode_rtx_const): Add case for vector.
9751
9752         * config/rs6000/rs6000-protos.h: Add zero_constant.
9753
9754         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9755         constants.  Force easy vector constants into memory.
9756         (easy_vector_constant): New.
9757         (emit_easy_vector_constant): New.
9758         (rs6000_legitimize_reload_address): Do not generate bad reloads on
9759         darwin.
9760
9761         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9762         instruction does.
9763         ("altivec_lvxl"): Same.
9764         (altivec_lvebx): Same.
9765         (altivec_lvehx): Same.
9766         (altivec_lvewx): Same.
9767         ("*movv4si_const0"): New.
9768         ("*movv4sf_const0"): New.
9769         ("*movv8hi_const0"): New.
9770         ("*movv16qi_const0"): New.
9771
9772 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9773
9774         * config/h8300/h8300.c (notice_update_cc): Use
9775         cc_status.value2.
9776
9777 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9778
9779         * config/h8300/h8300.md (divmod patterns): Change the
9780         constraints for operands[1] to register_operand.
9781
9782 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9783
9784         * config/h8300/h8300-protos.h: Remove the prototype for
9785         p_operand.
9786         * config/h8300/h8300.c (p_operand): Remove.
9787         * config/h8300/h8300.md: Replace p_operand with
9788         const_int_operand.
9789
9790 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9791
9792         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9793         comment.
9794         (output_return_instruction): Allow use of LDR to unstack
9795         return addresss even for interrupt handlers or when
9796         interworking.  If compiling for ARMv5, use interworking-safe
9797         return instructions by default.  Remove duplicated code and
9798         lengthy "strcat" sequences.
9799
9800 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9801
9802         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9803         (LINK_EH_SPEC): Define.
9804         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9805
9806 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9807
9808         * config/s390/s390.c (s390_emit_prologue): Do not set the
9809         frame_related flag for call-clobbered registers.
9810
9811 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
9812
9813         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9814         (construct_container): Fix handling of SSE operands.
9815         (ix86_expand_builtin): Fix handling of 64bit pointers.
9816         (mmx_maskmovq_rex): New pattern.
9817
9818 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
9819
9820         * regrename.c (kill_set_value): Handle subregs properly.
9821
9822 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
9823
9824         * objc/objc-act.c (handle_impent): Remove leading '*'
9825         from objc_class_name.
9826
9827 2002-02-17  Richard Henderson  <rth@redhat.com>
9828
9829         * config/alpha/alpha.c (some_small_symbolic_operand,
9830         some_small_symbolic_operand_1, split_small_symbolic_operand,
9831         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9832         Handle small SYMBOL_REFs anywhere, not just inside memories.
9833         * config/alpha/alpha-protos.h: Update.
9834         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9835         * config/alpha/alpha.md (small symbolic operand splitter): Update.
9836
9837 2002-02-17  Roland McGrath  <roland@frob.com>
9838
9839         * config.gcc (powerpc-*-gnu-gnualtivec*,
9840         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9841         * config/rs6000/gnu.h: New file.
9842         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9843         Grok "gnu" in rs6000_abi_name.
9844         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9845         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9846         Grok -mcall-gnu analogous to -mcall-linux et al.
9847         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9848         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9849         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9850
9851 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
9852
9853         PR c/3444:
9854         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9855         shortening.
9856
9857 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9858
9859         * config/cris/cris.h: Undefine STARTFILE_SPEC and
9860         ENDFILE_SPEC before (re)defining them.
9861
9862 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9863
9864         * config/h8300/h8300.c: Fix formatting.
9865         * config/h8300/h8300.h: Likewise.
9866
9867 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9868
9869         * doc/tm.texi: Explain why empty strings should not be
9870         marked for translation.
9871
9872 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9873
9874         * final.c (output_operand_lossage): Changed to accept
9875         printf style arguments. Change calls where necessary.
9876         * output.h (output_operand_lossage): Change declaration
9877         accordingly. Update copyright.
9878         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9879         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9880         Update copyright date where necessary.
9881
9882         * config/i386/i386.c (print_operand): Likewise. Remove use of
9883         sprintf.
9884
9885         * config/cris/cris.c (cris_operand_lossage): Likewise.
9886         Rename parameter so that exgettext recognizes it as
9887         translatable message.
9888         (LOSE_AND_RETURN): Rename parameter to msgid.
9889
9890 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9891
9892         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9893         hard coded register number with an appropriate macro.
9894         (HARD_REGNO_MODE_OK): Likewise.
9895         (ARG_POINTER_REGNUM): Likewise.
9896         (STATIC_CHAIN_REGNUM): Likewise.
9897         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9898         * config/h8300/h8300.md (define_constants): Define more
9899         register numbers.
9900
9901 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9902
9903         * config/i386/i386.h: Don't mark empty strings for translation.
9904
9905 2002-02-16  H.J. Lu <hjl@gnu.org>
9906
9907         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9908
9909 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
9910
9911         * cppinit.c (merge_include_chains): Check for brack being
9912         NULL before attempting to merge it with qtail.
9913
9914 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
9915
9916         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9917         DBX_DEBUG.
9918
9919 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9920
9921         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9922
9923 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9924
9925         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9926         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9927         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9928
9929 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9930
9931         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9932         now only if !TARGET_FIX.
9933         (*movsi_nt_vms_fix): New pattern.
9934
9935 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
9936
9937         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9938         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9939         (alpha_sa_mask, alpha_sa_size): Reflect above change.
9940         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9941         (alpha_start_function, alpha_expand_epilogue): Likewise.
9942         (unicosmk_gen_dsib): Likewise.
9943
9944 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9945
9946         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9947
9948 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
9949
9950         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9951         check_and_change_labels, s390_final_chunkify): Delete.
9952         (s390_split_branches, s390_chunkify_pool): New functions.
9953         (s390_function_prologue): Call them.
9954
9955         * config/s390/s390.h (S390_REL_MAX): Delete.
9956         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9957
9958         * config/s390/s390.md (cjump, icjump, jump): Fix length
9959         attribute calculation.
9960
9961
9962 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
9963
9964         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9965         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9966
9967 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9968
9969         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9970         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9971         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9972
9973 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
9974
9975         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9976
9977 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
9978
9979         * reload.c (find_dummy_reload): Check that an output register
9980         is valid for its mode.
9981
9982 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
9983
9984         * combine.c (known_cond): After replacing the REG of a SUBREG, try
9985         to simplify it.
9986
9987         * function.c (assign_parms): Demote promoted argument passed by
9988         transparent reference.
9989
9990 2001-02-14      Joel Sherrill <joel@OARcorp.com>
9991
9992         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9993         -Acpu() and -Amachine() to eliminate warnings.
9994
9995 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
9996
9997         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9998
9999 2002-02-14  Kazu Hirata  <kazu@hxi.com>
10000
10001         * config/h8300/h8300-protos.h: Update the prototype for
10002         const_costs.
10003         * config/h8300/h8300.c (const_costs): Treat SET as a little
10004         more expensive operation.
10005         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
10006         reference to const_costs.
10007
10008 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
10009
10010         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
10011
10012 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
10013
10014         PR c/5503:
10015         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
10016         use arguments from newtype.
10017
10018 2002-02-13  Eric Christopher  <echristo@redhat.com>
10019
10020         * config/mips/mips.c (override_options): Add check for march/mipsX
10021         on the same command line. Fix error message in cpu processing.
10022         Remove architecture and ISA checks.
10023
10024 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
10025
10026         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
10027
10028         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
10029
10030 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
10031
10032         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
10033         alternatives.
10034         ("*movv8hi_internal1"): Same.
10035         ("*movv16qi_internal1"): Same.
10036         ("*movv4sf_internal1"): Same.
10037
10038         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
10039         not push_reload for altivec modes.
10040
10041 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
10042
10043         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
10044         all RTEMS targets including removal of #includes from config/*/rtems*.h
10045         file and adding them to tm_file setting. Added xm_defines=POSIX to
10046         many targets.
10047         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
10048         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
10049         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
10050         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
10051         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
10052         config/m68k/rtemself.h: Ditto.
10053         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
10054         config/mips/rtems64.h: Ditto.
10055         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
10056         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
10057         Ditto.
10058         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
10059         config/sparc/rtemself.h: Ditto.
10060         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
10061         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
10062         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
10063         more like arm-elf.
10064         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
10065         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
10066         target made more similar to i386-elf.
10067         * config/i386/t-rtems-i386: Added soft float support and multilibs.
10068         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
10069         be similar to config/m68k/t-m68kelf.
10070         * gthr-rtems.h: Encapsulate with extern "C" for C++.
10071
10072 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
10073
10074         * regmove.c (kill_value): Handle subregs.
10075
10076 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10077
10078         * i386.md (mul patterns): Allow memory operand to be first;
10079         add expanders where needed; fix constraints.
10080         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
10081         Allow memory operand to be the first.
10082
10083         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
10084         operands.
10085
10086 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
10087
10088         PR c/5681:
10089         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
10090         GET_MODE (x).
10091
10092 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
10093
10094         PR optimization/5547:
10095         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
10096         all valid IA-32 address modes involving non-scaled %ebx and
10097         GOT/GOTOFF as displacement.
10098
10099 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
10100
10101         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
10102         after emitting ltorg insns.
10103
10104         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
10105         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
10106         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
10107         *abssf2): Fix "op_type" attribute.
10108
10109 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
10110
10111         * mkconfig.sh: Avoid using a subshell redirect.
10112         ($output.T): Change to $(output)T.
10113         (ENABLE_NLS): Remove unneeded undef.
10114
10115         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
10116         * config/alpha/x-vms (libsubdir): Define.
10117
10118         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
10119         register frame procedures. Optimize retrieving context.
10120
10121         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
10122         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
10123         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
10124
10125 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10126
10127         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
10128         Make same change as for find_base_value.
10129
10130 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10131
10132         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
10133         of QImode and SImode.
10134
10135 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10136
10137         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
10138         length computation of movsi.
10139         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
10140
10141 2002-02-13  Kazu Hirata  <kazu@hxi.com>
10142
10143         * config/h8300/h8300.md (subqi3): Tighten the predicate for
10144         operands[2] to register_operand.
10145
10146 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10147
10148         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
10149
10150 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
10151
10152         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
10153         for altivec_lvx* and altivec_stvx*.
10154         ("*movv4si_internal"): Add constraint for loading from GPRs.
10155         ("*movv8hi_internal1"): Same.
10156         ("*movv16qi_internal1"): Same.
10157         ("*movv4sf_internal1"): Same.
10158
10159         * config/rs6000/rs6000.c (altivec_register_operand): New.
10160
10161         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10162         altivec_register_operand.
10163
10164 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
10165
10166         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10167         handle SYMBOL_REF.
10168
10169 2002-02-13  Stan Shebs  <shebs@apple.com>
10170
10171         * c-typeck.c (digest_init): Handle vectors.
10172         (really_start_incremental_init): Same.
10173         (pop_init_level): Same.
10174         (process_init_element): Same.
10175
10176         * varasm.c (output_constant): Same.
10177
10178         * expr.c (clear_storage): Same.
10179         (store_constructor): Same.
10180
10181 2002-02-12  Eric Christopher  <echristo@redhat.com>
10182
10183         * explow.c (hard_function_value): Add comment explaining
10184         signed/unsigned comparison.
10185
10186 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
10187
10188         * jump.c (never_reached_warning): Add finish argument.
10189         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10190         real insn after end.
10191         * rtl.h (never_reached_warning): Adjust prototype.
10192         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10193         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10194         never_reached_warning.
10195
10196 2002-02-12  Graham Stott  <grahams@redhat.com>
10197
10198         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10199
10200 2002-02-12  Kazu Hirata  <kazu@hxi.com>
10201
10202         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10203         logical shifts on H8/300.
10204         (shift_alg_si): Improve several shifts on H8/300.
10205         (get_shift_alg): Likewise.
10206
10207 2002-02-12  Graham Stott  <grahams@redhat.com>
10208
10209         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10210
10211 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10212
10213         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10214         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10215
10216 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
10217
10218         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10219         non-CONST_INT through default_assemble_integer.
10220         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10221         <case 8>: Abort for CONST_DOUBLE.
10222
10223 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10224
10225         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10226         is specified.
10227         * config/pa/pa-linux.h (LIB_SPEC): Delete.
10228         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10229
10230 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
10231
10232         * config/stormy16/stormy16.md (zero_extendqihi2): New.
10233
10234 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
10235
10236         * regrename.c (regrename_optimize): Don't accept a
10237         part-clobbered register if the replaced register is not part
10238         clobbered.
10239
10240         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10241         take padding into account when computing the argument value.
10242
10243         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10244
10245         * combine.c (try_combine): Apply substitutions in
10246         CALL_INSN_FUNCTION_USAGE too.
10247
10248 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
10249
10250         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10251         __builtin_altivec_abs*.
10252         (bdesc_abs): New.
10253
10254         * config/rs6000/rs6000.h (rs6000_builtins): Add
10255         ALTIVEC_BUILTIN_ABS*.
10256
10257         * config/rs6000/altivec.h: Use const char for builtins expecting
10258         literals.
10259         (vec_abs): New versions for C and C++.
10260         (vec_abss): Same.
10261
10262 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10263
10264         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10265         using Pmode.
10266
10267 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10268
10269         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10270         constant definition from h8300.md.
10271         (FRAME_POINTER_REGNUM): Likewise.
10272         * config/h8300/h8300.md (define_constants): Add FP_REG.
10273
10274 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10275
10276         * config/h8300/h8300.c (print_operand): Remove redundant code.
10277
10278 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10279
10280         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10281         * config/h8300/h8300.c (byte_reg): Make it static.
10282
10283 2002-02-10  Richard Henderson  <rth@redhat.com>
10284
10285         PR c/5623
10286         * c-typeck.c (incomplete_type_error): Handle flexible array members.
10287
10288 2002-02-10  Richard Henderson  <rth@redhat.com>
10289
10290         PR c++/5624
10291         * tree.c (append_random_chars): Don't abort if main_input_filename
10292         does not exist.
10293
10294 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
10295
10296         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10297
10298 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10299
10300         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10301         (pushhi1): Likewise.
10302
10303 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10304
10305         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10306         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10307
10308 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
10309
10310         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10311         remove MASK_VIS.
10312         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
10313
10314 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10315
10316         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10317         a half of an SImode register on H8/300.
10318
10319 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
10320
10321         * i386.md (movdi_2): Add missing '!'.
10322
10323 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10324
10325         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
10326         definitions.
10327
10328 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10329
10330         * config/h8300/h8300.md (length): Correct the distance valid
10331         for the short branch.
10332
10333 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10334
10335         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10336
10337 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10338
10339         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10340         registers in SImode.
10341         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10342         part-clobbered.
10343
10344         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10345         patch.
10346
10347         Contribute sh64-elf.
10348         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10349         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10350         (sh_cannot_modify_jumps_p): New function.
10351         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
10352         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10353         (sh_ms_bitfield_layout_p): New function.
10354         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
10355                     Zack Weinberg  <zack@codesourcery.com>
10356         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10357         expand_simple_binop instead of expand_binop.
10358         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
10359         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10360         use of .quad and .uaquad.
10361         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10362         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10363         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10364         * config/sh/sh.md (movdi_const, movdi_const_32bit,
10365         movdi_const_16bit): Make sure all CONSTs have modes.
10366         (sym2PIC): Ditto, but by adjusting all callers.
10367         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10368         if the prologue calls the SHmedia argument decoder or register
10369         saver.
10370         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10371         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10372         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10373         (sh_expand_epilogue): Don't emit USE of return target register.
10374         (prepare_move_operands): Legitimize DImode PIC addresses.
10375         (sh_media_register_for_return): Skip tr0, used to initialize the
10376         PIC register.
10377         (sh_expand_prologue): Remove explicit USE of return register.
10378         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
10379         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
10380         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10381         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10382         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10383         EXTRA_CONSTRAINT_T.
10384         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10385         (MOVI_SHORI_BASE_OPERAND_P): New.
10386         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10387         (EXTRA_CONSTRAINT_T): Define in terms of them.
10388         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10389         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10390         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10391         alternatives supporting TARGET_REGS.
10392         (UNSPEC_GOTPLT): New constant.
10393         (movdi split): Move incrementing of LABEL_NUSES...
10394         (movdi_const, movdi_const_32bit): Here.  Use
10395         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10396         (movdi_const_16bit): New.
10397         (call, call_value) [flag_pic]: Use GOTPLT.
10398         (call_pop, call_value_pop): New expands.
10399         (call_pop_compact, call_pop_rettramp): New insns.
10400         (call_value_pop_compact, call_value_pop_rettramp): New insns.
10401         (sibcall) [flag_pic]: Use GOT.
10402         (builtint_setjmp_receiver): Remove bogus, unused expand.
10403         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10404         (*pt, *ptb, ptrel): New insns.
10405         (sym2GOT): Handle DImode GOT.
10406         (sym2GOTPLT, symGOTPLT2reg): New expands.
10407         (sym2PIC): New expand.
10408         (shcompact_return_tramp): Use GOTPLT to return trampoline.
10409         (shcompact_return_tramp_i): Use return register explicitly.
10410         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10411         disable flag_reorder_blocks.
10412         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10413         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10414         clobbers, for clarity.
10415         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10416         restoring of r0 in macl as MAYBE_DEAD.
10417         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
10418         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10419         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10420         alter_subreg all over.
10421         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10422         reload, instead of emitting instructions that would require
10423         reloading.
10424         (casesi_load_media): Add missing modes.
10425         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
10426         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10427         as used if the argument decoder is called.
10428         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10429         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10430         Pmode, then extend it to DImode if necessary.
10431         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10432         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10433         constants in FPU-enabled SHmedia, let them be loaded from memory.
10434         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10435         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10436         Adjust whitespace in assembly output templates.
10437         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10438         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10439         mode of if_then_else.
10440         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
10441         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10442         sh.h.
10443         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
10444                     Joern Rennecke <amylaar@redhat.com>
10445         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10446         (SUBTARGET_CPP_PTR_SPEC): New.
10447         (SUBTARGET_CPP_SPEC): Remove.
10448         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10449         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10450         Fix typo in previous checkin.
10451         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
10452         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10453         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
10454                     Alexandre Oliva  <aoliva@redhat.com>
10455         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10456         what single FP register can hold for SHmedia target.
10457         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10458                     Alexandre Oliva  <aoliva@redhat.com>
10459         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10460         Do not split into SUBREG.
10461         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
10462         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10463         and added new functions as specified in SH5 ABI r9.
10464         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
10465         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10466         8-byte boundary.
10467         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
10468         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10469         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
10470         and consttable_window_ends.
10471         2001-06-03  Graham Stott  <grahams@redhat,com>
10472         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10473         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
10474         * config/sh/sh.c (print_operand): Handle floating-point pair,
10475         vector and matrix registers.
10476         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10477         vector modes into account.
10478         * config/sh/sh.md (movv2sf): Split move between registers into
10479         movdf.
10480         (movv4sf, movv16sf): Introduce insns that get split only after
10481         reload.
10482         * config/sh/shmedia.h: Fix Copyright dates.
10483         * config/sh/ushmedia.h: Likewise.  Move loop counter
10484         declarations into conditionals that uses them.
10485         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10486         loop boundary.
10487         * config/sh/sshmedia.h: Fix Copyright dates.
10488         (sh_media_PUTCFG): Fix constraints.
10489         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
10490         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10491         ptrmemfunc_vbit_in_delta for SH5.
10492         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
10493         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10494         * invoke.texi: Likewise.
10495         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
10496         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10497         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10498         GCC_pop_shmedia_regs_nofpu): New global symbols.
10499         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10500         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10501         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10502         compact function with nonlocal labels.
10503         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10504         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10505         (initial_elimination_offset): Account for their stack space.
10506         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10507         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10508         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10509         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10510         least one of the operands to be a register.
10511         (movv2sf): Likewise.  Renamed to movv2sf_i.
10512         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10513         prepare_move_operands() before emitting SHmedia insns.
10514         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
10515         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10516         Don't save nor initialize r12.  Don't mis-align the stack.
10517         Pad the code with a nop.
10518         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
10519         stack.
10520         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
10521         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10522         [__SHMEDIA__]: Implement.
10523         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
10524         * config/sh/sh.md: Set latency of `pt' closer to reality.
10525         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10526         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10527         Set move, load and store type attributes.
10528         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10529         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10530         profiling.
10531         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10532         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10533         * config/sh/sh.c (sh_media_register_for_return): New function.
10534         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10535         branch-target register.
10536         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10537         * config/sh/sh.md (return_media_i): Use any call-clobbered
10538         branch-target register.
10539         (return_media): If r18 wasn't copied in the prologue, copy it
10540         here.
10541         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10542         Clear class FP0_REGS.
10543         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10544         from elf.h.
10545         2001-03-08  DJ Delorie  <dj@redhat.com>
10546         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10547         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
10548         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10549         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
10550         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10551         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
10552         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10553         return value correctly for call_cookie.
10554         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
10555         * config/sh/crt1.asm (start): Modified so as to call
10556         ___setup_argv_and_call_main.
10557         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
10558         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10559         SHmedia mode.
10560         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
10561         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10562         (STRIP_NAME_ENCODING): Use it.
10563         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
10564         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
10565         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10566         prepare_scc_operands().
10567         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10568         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10569         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
10570         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10571         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
10572         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10573         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10574         used in shcompact_incoming_args.
10575         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10576         change.
10577         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10578         mode.
10579         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10580         Adjust accordingly.
10581         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10582         Simplify.  Adjust.  Add sanity check.
10583         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10584         FPU_SINGLE_BIT.
10585         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10586         TARGET_SHCOMPACT.
10587         (udivsi3, divsi3): Use them.
10588         (force_mode_for_call): New insn.
10589         (call, call_value, sibcall_value): Emit it before SHcompact
10590         calls.
10591         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
10592         * config/sh/sh.md (call, call_value, sibcall): Make sure the
10593         call cookie is non-NULL before taking its value.
10594         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
10595         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10596         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
10597         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10598         block.
10599         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10600         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10601         temporary for stack adjusts.  Use MACL and MACH to pass
10602         arguments to shcompact_incoming_args.
10603         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
10604         clobber r1.
10605         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10606         (nested_trampoline): Load static chain address into r1.
10607         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10608         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
10609         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10610         fp_arith_reg_operand().
10611         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
10612         * config/sh/sh.md (casesi): Sign-extend the first two operands,
10613         and use signed compares for them.
10614         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10615         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
10616         ones properly aligned.
10617         (find_barrier): Account for extra alignment needed for 8-byte wide
10618         constants.
10619         (machine_dependent_reorg): Require a label for the second 4-byte
10620         constant after an 8-byte one.
10621         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10622         change.
10623         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10624         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10625         last_float when switching float modes.
10626         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10627         auto-increment for general-purpose registers.
10628         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10629         result.
10630         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10631         for stack adjust.
10632         * config/sh/sh.c (sh_builtin_saveregs): Support using all
10633         registers for varargs.
10634         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
10635         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10636         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10637         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10638         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10639         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
10640         call_cookie accordingly.
10641         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10642         (SHCOMPACT_BYREF): Likewise.
10643         (SHCOMPACT_FORCE_ON_STACK): New macro.
10644         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10645         (sh_builtin_saveregs): Likewise.
10646         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10647         shcompact_incoming_args): Use new shift values.  Support
10648         sequences of consecutive and non-consecutive pushes/pops.
10649         * config/sh/sh.md (return): Don't explicitly use PR_REG.
10650         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
10651         * config/sh/sh.h (TEXT_SECTION): Define.
10652         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10653         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10654         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10655         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10656         return values on FPU-enabled SHmedia.
10657         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10658         FPU-enabled SHmedia.
10659         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10660         value is returned in a non-FP reg and is not returned by
10661         reference.
10662         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10663         jump_ind.
10664         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
10665         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10666         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10667         quad-aligned to be passed by callee-copy reference.
10668         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
10669         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10670         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10671         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
10672         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10673         copying low-numbered FP regs to r7 and r8.
10674         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10675         FP regs to general-purpose regs only if the copy was passed on the
10676         stack.
10677         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10678         copying FP reg to r9.
10679         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10680         copy FP regs to general-purpose regs only in outgoing calls.
10681         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10682         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
10683         HOST_WIDE_INT.
10684         * config/sh/sh.h (struct sh_args): Document all fields.
10685         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10686         passed partially on the stack should not consider making
10687         sibcalls.
10688         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10689         stack_regs only for incoming calls.  When passing FP args,
10690         make sure there are FP regs available before modifying
10691         call_cookie.
10692         (SHCOMPACT_BYREF): Pass double args in general-purpose
10693         registers by reference.
10694         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
10695         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10696         attempt to generate sibcalls if the caller got any arguments
10697         by reference.
10698         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10699         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10700         to 8-byte boundaries.
10701         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10702         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10703         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10704         stored in the stack.
10705         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10706         for the offsets to have the ISA bit set.
10707         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
10708         invocation.  Use beq instead of bgt to mark end of sequence of
10709         loads.
10710         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
10711         bgt to mark end of sequence of stores.
10712         * config/sh/sh.c (arith_operand): Don't check whether
10713         CONST_OK_FOR_J for now.
10714         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10715         instead of long for conversion.
10716         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
10717         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10718         before passing it to fprintf.
10719         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
10720         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10721         Call set_fpscr before reading/writing SR.
10722         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10723         Call set_fpscr.
10724         * config/sh/lib1funcs.asm: Add `.align 2' directives before
10725         SHmedia code.
10726         (FMOVD_WORKS): Define on SH5 with FPU.
10727         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
10728         setting.
10729         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10730         _fpscr_values.
10731         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
10732         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10733         address.
10734         (ia_main_table): Ditto.
10735         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
10736         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10737         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10738         the definitions from sh.h.
10739         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10740         TARGET_SH5.
10741         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10742         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10743         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10744         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
10745         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10746         Increment LABEL_NUSES.
10747
10748         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10749         TARGET_SH5.
10750         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10751         defined.
10752         * config/sh/elf.h (SIZE_TYPE): Likewise.
10753         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10754         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10755         shcompact_incoming_args): Load switch table addresses using
10756         datalabel.
10757         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10758         (NO_BUILTIN_SIZE_TYPE): Define.
10759         (SIZE_TYPE): Don't define.
10760         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10761         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10762         definition of __SH5__=32 for -m5-compact-nofpu.
10763         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10764         ADDR_DIFF_VEC.
10765         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
10766         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10767         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
10768         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10769         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10770         (INSN_LENGTH_ALIGNMENT): Likewise.
10771         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10772         * config/sh/sh.md (call, call_value, sibcall): Simplify
10773         copying of non-branch-target register.
10774         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10775         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
10776         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10777         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10778         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10779         floating-point values as structs.
10780         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10781         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10782         general-purpose register.
10783         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10784         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10785         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10786         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10787         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10788         (ENCODE_SECTION_INFO): Enclose variables and constants in
10789         DATALABEL unspecs.
10790         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10791         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10792         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10793         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10794         only for LABEL_REFs.  For SYMBOL_REFs, prepend
10795         SH_DATALABEL_ENCODING to the symbol name.
10796         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10797         convert_mode().
10798         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10799         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10800         UNSPEC_DATALABEL.
10801         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10802         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10803         (DATALABEL_REF_P): Don't require CONST.
10804         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10805         REL label.
10806         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
10807         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10808         right.
10809         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10810         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10811         Use shallow_copy_rtx and PUT_MODE to change the mode of
10812         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10813         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10814         on SHmedia using GENERAL_REGs.
10815         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10816         bltu_media_i): Fix reversion of conditions.
10817         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10818         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10819         * config/sh/sh.c (output_far_jump): Save r13 in macl.
10820         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
10821         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10822         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
10823         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10824         (GCC_nested_trampoline): Likewise.
10825         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10826         * config/sh/sh.c (gen_datalabel_ref): Define.
10827         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10828         (INITIALIZE_TRAMPOLINE): Likewise.
10829         (TRAMPOLINE_ADJUST_ADDRESS): Define.
10830         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10831         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10832         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10833         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10834         (ic_invalidate): Adjust for SH5.
10835         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10836         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10837         _nested_trampoline.
10838         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
10839         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10840         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10841         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10842         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10843         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10844         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10845         * config/sh/sh.c (target_reg_operand): Match only target-branch
10846         registers and pseudos that aren't virtual registers.
10847         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10848         Copy operands that don't match target_reg_operand to pseudos.
10849         (call_media, call_value_media, sibcall_media): Use
10850         target_reg_operand instead of target_operand.
10851         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
10852         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10853         * config/sh/sh.c (target_reg_operand): Match hardware registers
10854         other than branch-target registers.
10855         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10856         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10857         (fpscr_values) [SH5 == 32]: Define.
10858         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10859         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10860         Handle function addresses coming in SUBREGs.
10861         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
10862         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10863         shcompact_return_trampoline): Use datalabel where appropriate.
10864         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
10865         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10866         general-purpose register to copy one branch-target register to
10867         another.
10868         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10869         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10870         SYMBOL_REFs with VOIDmode.
10871         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10872         bltu_media_i): New insns.
10873         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10874         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10875         (INIT_CUMULATIVE_ARGS): Likewise.
10876         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
10877         * machmode.def (V16SFmode): New mode.
10878         * c-common.c (type_for_mode): Support V2SF and V16SF.
10879         * tree.c (build_common_tree_nodes_2): Likewise.
10880         * tree.h (tree_index): Likewise.
10881         * calls.c (emit_call_1): Take args_so_far.  Adjust all
10882         callers.  Introduce CALL_POPS_ARGS.
10883         * tm.texi (CALL_POPS_ARGS): Document.
10884         * config/sh/crt1.asm: Implement in SHmedia mode.
10885         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10886         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10887         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10888         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10889         Implement divsi and udivsi in SHmedia mode.  Introduce
10890         SHcompact trampolines.
10891         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10892         only in SHmedia64.
10893         (regno_reg_class): Rewrite.
10894         (fp_reg_names): Remove.
10895         (sh_register_names, sh_additional_register_names): New.
10896         (print_operand): Added `u'.  Support SUBREGs in addresses.
10897         Add parentheses around shifted CONSTs.
10898         (output_file_start): Output .mode and .abi directives.
10899         (shiftcosts, addsubcosts, multcosts): Adjust.
10900         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
10901         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
10902         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
10903         bytes, not registers.  Take into account the need for the
10904         SHcompact incoming args trampoline.  Adjust all callers.
10905         (sh_expand_prologue): Take stack_regs into account.  Call
10906         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
10907         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
10908         stack aligned as per SH5 ABI.
10909         (sh_builtin_saveregs): Support SH5 ABI.
10910         (sh_build_va_list, sh_va_start): Likewise.
10911         (initial_elimination_offset): Take alignment into account.
10912         Compute location of PR according to the SH5 stack frame.
10913         (arith_reg_operand): Reject branch-target registers.
10914         (shmedia_6bit_operand): New.
10915         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10916         (target_reg_operand): Match DImode only.  Accept SUBREGs.
10917         (target_operand): New.
10918         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10919         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
10920         SIBCALL_REGS for SHmedia.
10921         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10922         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10923         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10924         (TARGET_SWITCHES): New SH5 flags.
10925         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
10926         VALID_REGISTER_P to disable unsupported registers.
10927         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10928         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10929         (FUNCTION_ARG_PADDING): Define.
10930         (FASTEST_ALIGNMENT): Adjust.
10931         (SH_REGISTER_NAMES_INITIALIZER): New.
10932         (sh_register_names): Declare.
10933         (DEBUG_REGISTER_NAMES): Define.
10934         (REGISTER_NAMES): Define based on sh_register_names.
10935         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10936         (sh_additional_register_names): Declare.
10937         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10938         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10939         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10940         (REGISTER_NATURAL_MODE): Define.
10941         (FIRST_PSEUDO_REGISTER): Adjust.
10942         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10943         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10944         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10945         (VECTOR_MODE_SUPPORTED_P): Define.
10946         (REG_CLASS_CONTENTS): Adjust.
10947         (SMALL_REGISTER_CLASSES): Adjust.
10948         (REG_ALLOC_ORDER): Adjust.
10949         (INDEX_REG_CLASS): Adjust.
10950         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10951         (CONST_OK_FOR_LETTER_P): Adjust.
10952         (PREFERRED_RELOAD_CLASS): Adjust.
10953         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10954         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10955         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10956         (FIRST_FP_PARM_REG): Adjust.
10957         (CALL_POPS_ARGS): Define.
10958         (FUNCTION_ARG_REGNO_P): Adjust.
10959         (struct sh_args): New fields.
10960         (GET_SH_ARG_CLASS): Adjust.
10961         (INIT_CUMULATIVE_ARGS): Adjust.
10962         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10963         (FUNCTION_ARG_ADVANCE): Adjust.
10964         (FUNCTION_ARG): Adjust.
10965         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10966         (FUNCTION_ARG_CALLEE_COPIES): Define.
10967         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10968         (STRICT_ARGUMENT_NAMING): Define.
10969         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10970         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10971         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10972         (SETUP_INCOMING_VARARGS): Adjust.
10973         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10974         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10975         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10976         (SUBREG_OK_FOR_INDEX_P): Adjust.
10977         (EXTRA_CONSTRAINT_S): Update.
10978         (EXTRA_CONSTRAINT_T): New.
10979         (EXTRA_CONSTRAINT): Adjust.
10980         (GO_IF_LEGITIMATE_INDEX): Adjust.
10981         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10982         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10983         (MOVE_MAX): Adjust.
10984         (MAX_MOVE_MAX): Define.
10985         (Pmode): Adjust.
10986         (CONST_COSTS): Adjust.
10987         (REGISTER_MOVE_COST): Adjust.
10988         (BRANCH_COST): Adjust.
10989         (TEXT_SECTION_ASM_OP): Adjust.
10990         (DBX_REGISTER_NUMBER): Adjust.
10991         (ASM_OUTPUT_DOUBLE_INT): New.
10992         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10993         (PREDICATE_CODES): Adjust.
10994         (PROMOTE_MODE): Adjust.
10995         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10996         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10997         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10998         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10999         (DR0_REG, DR2_REG, DR4_REG): Renumber.
11000         (TR0_REG, TR1_REG, TR2_REG): New.
11001         (XD0_REG): Renumber.
11002         (UNSPEC_COMPACT_ARGS): New.
11003         (type): Added pt and ptabs.
11004         (length): Default to 4 on SHmedia.  Default pt length to 12
11005         and     20 on SHmedia32 and SHmedia64, respectively.
11006         (pt): New function unit.
11007         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
11008         Add whitespace between operands of SHmedia instructions.
11009         (movdicc): Fix.
11010         (adddi3_media, addsi3_media): Adjust constraints.
11011         (subsi3) [SHmedia]: Force operand 1 into a register.
11012         (udivsi3_i1_media, udivsi3_i4_media): New.
11013         (udivsi3): Support SHmedia.
11014         (divsi3_i1_media, divsi3_i4_media): New.
11015         (divsi3): Support SHmedia.
11016         (anddi3, iordi3, xordi3): Adjust constraints.
11017         (zero_extendhidi2, zero_extendqidi2): New.
11018         (extendsidi2, extendhidi2, extendqidi2): New.
11019         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
11020         (pop_e, pop_fpul, pop_4): Likewise.
11021         (movsi_media): Support FP and BT registers.
11022         (movsi_media_nofpu): New.  Adjust splits to DImode.
11023         (lduw, ldub): Renamed to zero_extend* above.
11024         (movqi_media): Fix typo.
11025         (movdi_media): Support FP and BT registers.
11026         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
11027         (movdi_const_32bit): New.
11028         (shori_media): Require immediate operand.  Use `u' for output.
11029         (movdf_media, movsf_media): Simplified.
11030         (movdf_media_nofpu, movsf_media_nofpu): New.
11031         (movdf, movsf): Adjust
11032         (movv2sf, movv2sf, movv16sf): New.
11033         (beq_media, beq_media_i): Adjust constraints.  Don't use
11034         scratch BT register.
11035         (bne_media, bne_media_i): Likewise.
11036         (bgt_media, bgt_media_i): Likewise.
11037         (bge_media, bge_media_i): Likewise.
11038         (bgtu_media, bgtu_media_i): Likewise.
11039         (bgeu_media, bgeu_media_i): Likewise.
11040         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
11041         bunordered): Emit jump insn.  Force operands to registers when
11042         needed.
11043         (jump_media, jump): Simplify.
11044         (call_compact, call_compact_rettramp): New.
11045         (call_value_compact, call_value_compact_rettramp): New.
11046         (call_media, call_value_media): Simplify.
11047         (sibcall_compact, sibcall_media): New.
11048         (call, call_value): Adjust for SHmedia and SHcompact.
11049         (sibcall, sibcall_value, untyped_call): Likewise.
11050         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
11051         (indirect_jump): Adjust for SHmedia.
11052         (casesi_jump_media): New.
11053         (nop): Re-enable for SHmedia.
11054         (call_site): Restrict to SH1.
11055         (casesi): Adjust for SHmedia.
11056         (casesi_shift_media, casesi_load_media): New.
11057         (return): Explicitly use PR register.  Call return trampoline
11058         on SHcompact.
11059         (return_i): Explicitly use PR register.
11060         (shcompact_return_tramp, shcompact_return_tramp_i): New.
11061         (return_media): Adjust.
11062         (shcompact_incoming_args): New.
11063         (epilogue): Adjust.
11064         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11065         (movstrsi): Disable on SH5.
11066         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
11067         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
11068         (subsf3, subsf3_media): Likewise.
11069         (mulsf3, mulsf3_media, mac_media): Likewise.
11070         (divsf3, divsf3_media): Likewise.
11071         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
11072         (floatsisf2, fux_truncsfsi2): Likewise.
11073         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
11074         constraints.
11075         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
11076         (cmpunsf_media, cmpsf): Likewise.
11077         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
11078         (abssf2, abssf2_media): Likewise.
11079         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
11080         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
11081         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
11082         (floatsidf2, fix_truncdfsi2): Likewise.
11083         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
11084         constraints.
11085         (cmpeqdf_media, cmpgtdf_media): Likewise.
11086         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
11087         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
11088         (absdf2, absdf2_media): Likewise.
11089         (extendsfdf2, extendsfdf2_media): Likewise.
11090         (truncsfdf2, truncsfdf2_media): Likewise.
11091         * config/sh/sh64.h: New file.
11092         * config/sh/t-sh64: New file.
11093         * config/sh/shmedia.h: New file.
11094         * config/sh/ushmedia.h: New file.
11095         * config/sh/sshmedia.h: New file.
11096         * configure.in: Added sh64-*-elf.
11097         * configure: Rebuilt.
11098         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
11099         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
11100         (reg_class_from_letter): Use `b' for TARGET_REGS.
11101         (print_operand): Support `%M', `%m', `AND' and
11102         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
11103         (andcosts): Adjust for SHmedia.
11104         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
11105         Likewise.
11106         (target_reg_operand): New function.
11107         * config/sh/sh-protos.h (target_reg_operand): Declare.
11108         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
11109         FP registers on SH5.
11110         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
11111         on SH4.
11112         (TARGET_REGISTER_P): New macro.
11113         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
11114         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
11115         (EXTRA_CONSTRAINT_S): New macro.
11116         (EXTRA_CONSTRAINT): Adjust.
11117         (FLOAT_TYPE_SIZE): Define to 32.
11118         (Pmode): DImode on SHmedia.
11119         (CONST_COSTS): Adjust for SHmedia literals.
11120         (PREDICATE_CODES): Added target_reg_operand.
11121         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
11122         * config/sh/sh.md: Remove all attrs from SHmedia insns.
11123         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
11124         (cmpdi): Accept SHmedia.
11125         (movdicc_false, movdicc_true): New insns.
11126         (movdicc): New expand.
11127         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
11128         no_new_pseudos.
11129         (addsi3_media): Match `S' constraint.
11130         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
11131         (negdi2): Expand for SHmedia.
11132         (one_cmpldi2): New expand.
11133         (zero_extendsidi2): Change from expand to insn.
11134         (extendsidi2): Add constraints.
11135         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
11136         LD/ST address.  Fix SI immediate loading split.
11137         (movhi_media, movqi_media, lduw, ldub): New insns.
11138         (movhi, movqi): Accept SHmedia.
11139         (shori_media, movdi_media): Relax input constraints.  Split
11140         symbolic constants.
11141         (movdf_media, movsf_media): New insn.  New split to movdi.
11142         (movdf, movsf): Match on SHmedia.
11143         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
11144         bgeu_media): New insns and splits.  New insns with `_i' suffix.
11145         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
11146         (bunordered): New expand.
11147         (jump_compact): Renamed from `jump'.
11148         (jump_media): New insn.
11149         (jump): New expand.
11150         (call_media, call_value_media): New insns.
11151         (call, call_value): Adjust.
11152         (indirect_jump_compact): Renamed from `indirect_jump'.
11153         (indirect_jump_media): New insn.
11154         (indirect_jump): New expand.
11155         (untyped_call, return): Accept SHmedia.
11156         (return_media): New insn.
11157         (prologue, epilogue, blockage): Accept SHmedia.
11158         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11159         (sunordered): New expand.
11160         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
11161         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
11162         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
11163         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
11164         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
11165         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
11166         abssf2_media): New insns.
11167         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11168         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11169         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11170         floatdidf2, floatsidf2_media, fix_truncdfdi2,
11171         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11172         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11173         absdf2_media): New insns.
11174         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11175         (extendsfdf2_media, truncdfsf2_media): New insns.
11176         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
11177         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11178         * config/sh/sh.h (CONST_OK_FOR_J): Document.
11179         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11180         * config/sh/sh.md (adddi3): New expand.
11181         (adddi3_media, adddi3z_media): New insns.
11182         (adddi3_compact): Renamed from adddi3.
11183         (addsi3_media): Use add.l r63 to add constant zero.
11184         (subdi3): New expand.
11185         (subdi3_media): New insn.
11186         (subdi3_compact): Renamed from subdi3.
11187         (mulsidi3): New expand.
11188         (mulsidi3_media): New insn.
11189         (mulsidi3_compact): Renamed from mulsidi3.
11190         (umulsidi3): New expand.
11191         (umulsidi3_media): New insn.
11192         (umulsidi3_compact): Renamed from umulsidi3.
11193         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11194         (ashlsi3, ashrsi3, lshrsi3): Use them.
11195         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11196         (ashldi3, ashrdi3, lshrdi3): Use them.
11197         (zero_extendsidi2): New expand.
11198         (extendsidi2): New insn.
11199         (movsi_media): New insn.  Split to movdi to load constants.
11200         (movsi): Enable for shmedia.
11201         (movdi_media): New insn.  Use shori_media to load wide constants.
11202         (short_media): New insn.
11203         (movdi): Enable for shmedia.
11204         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
11205         * config/sh/sh.h (CPP_SPEC): Added `m5'.
11206         (SUBTARGET_CPP_SPEC): Added `!m5'.
11207         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11208         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
11209         to all other SH variants.
11210         (TARGET_DEFAULT): Set to SH1_BIT.
11211         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11212         (BITS_PER_WORD): Raise to 64 on shmedia.
11213         (MAX_BITS_PER_WORD): Change to 64.
11214         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11215         (INT_TYPE_SIZE): Keep as 32.
11216         (UNITS_PER_WORD): Raise to 8 on shmedia.
11217         (MIN_UNITS_PER_WORD): Keep as 4.
11218         (POINTER_SIZE): Raise to 64 on shmedia.
11219         (CONST_OK_FOR_J): New macro.
11220         (CONST_OK_FOR_LETTER_P): Use it.
11221         (processor_type): Add PROCESSOR_SH5.
11222         * config/sh/sh.md: Conditionalize all expands, insns and
11223         splits to TARGET_SH1.
11224         (cpu): Added sh5.
11225         (addsi3_compact): Renamed from...
11226         (addsi3): Now an expand.
11227         (addsi3_media, subsi3_media): New insns.
11228         (subsi3): Don't negate constants with SHmedia.
11229
11230         * hooks.c: New file.
11231         * hooks.h: New file.
11232         * Makefile.in (HOOKS_H): New.
11233         (TARGET_DEF_H): Added $(HOOKS_H).
11234         (OBJS): Added hooks.o.
11235         (cfgcleanup.o, bb-reorder.o): Added target.h.
11236         (hooks.o): Added dependencies.
11237         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11238         (TARGET_INITIALIZER): this.
11239         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11240         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11241         * bb-reorder.c: Include target.h.
11242         (reorder_basic_blocks): Skip if cannot modify jumps.
11243         * cfgcleanup.c: Include target.h.
11244         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11245
11246 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11247
11248         * config/mips/mips.md (casesi_internal, casesi_internal_di):
11249         Protect jump delay slot instructions with .set noreorder and
11250         .set nomacro.
11251
11252 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11253
11254         * config/mips/mips.md (casesi_internal_di): Calculate
11255         the index into the target offset table correctly.
11256
11257 2002-02-08  Richard Henderson  <rth@redhat.com>
11258
11259         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11260         * final.c (output_addr_const): Accept and discard SUBREG.
11261         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11262         mark them unknown instead.
11263         (simplify_subtraction): Handle RTX_UNKNOWN.
11264         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11265
11266 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
11267
11268         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11269
11270 2002-02-08  Richard Henderson  <rth@redhat.com>
11271
11272         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11273
11274 2002-02-08  Andreas Jaeger  <aj@suse.de>
11275
11276         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11277         * config/i386/t-linux64: New file.
11278
11279 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
11280
11281         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11282         * c-parse.in (compstmt): Clear last_expr_type.
11283
11284 2002-02-07  Richard Henderson  <rth@redhat.com>
11285
11286         * loop.c (strength_reduce): Sink final_value when not
11287         eliminating a biv.
11288
11289 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
11290
11291         * config/sparc/freebsd.h: Fix mismatched spec {.
11292
11293 2002-02-07  Richard Henderson  <rth@redhat.com>
11294
11295         * cfgrtl.c: Include recog.h and insn-config.h.
11296         (keep_with_call_p): Fix general_operand invocation.
11297         * Makefile.in (cfgrtl.o): Update dependencies.
11298
11299 2002-02-07  Kazu Hirata  <kazu@hxi.com>
11300
11301         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11302         comment.  Accept HImode only if TARGET_H8300.
11303
11304 2002-02-07  Eric Christopher  <echristo@redhat.com>
11305
11306         * config/mips/crtn.asm: Cleanup #ifdefs.
11307
11308 2002-02-07  Eric Christopher  <echristo@redhat.com>
11309
11310         * config/mips/crti.asm: Add changes for mips16. mips16 uses
11311         register 7 as RA instead of $31.
11312         * config/mips/crtn.asm: Ditto.
11313         * config/mips/mips.c (mips_move_2words): Add case for
11314         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11315         (compute_frame_size): Fix typo.
11316         (save_restore_insns): Ditto.  Make documentation about using
11317         register $7 as return register more precise.
11318         (mips_expand_epilogue): Fix comment. Add code to work around not
11319         being able to add to the stack pointer directly.
11320         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11321         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11322         epilogue.
11323
11324 2002-02-07  Tom Rix  <trix@redhat.com>
11325
11326         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11327         immediates in ldu and stdu DS opcode field.
11328         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11329         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11330         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11331
11332 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
11333
11334         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11335         offset for stack bias.
11336
11337 2002-02-07  H.J. Lu <hjl@gnu.org>
11338
11339         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11340
11341 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
11342
11343         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11344
11345 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
11346
11347         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11348         * i386.c (x86_order_regs_for_local_alloc): New global function.
11349         * i386.h (REG_ALLOC_ORDER): CLeanup.
11350         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11351
11352 2002-02-07  Richard Henderson  <rth@redhat.com>
11353
11354         PR optimization/2463
11355         * alias.c (find_base_value): Recall base values for fixed hard regs.
11356         * loop.c (loop_regs_update): Don't use single_set on non-insns.
11357
11358 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
11359
11360         * config/mips/mips.md (define_delay) [mips16]: Adjust required
11361         length.
11362
11363 2002-02-06  Richard Henderson  <rth@redhat.com>
11364
11365         PR c/5609
11366         * stmt.c (resolve_operand_name_1): Take more care with mixed
11367         named and unnamed operands.
11368
11369 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
11370             Jan Hubicka  <jh@suse.cz>
11371
11372         * loop.c (remove_constant_addition): Avoid clobbering a shared
11373         CONST expression.
11374
11375 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11376
11377         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11378         * config/s390/t-linux64: New file.
11379         * config/s390/libgcc-glibc.ver: New file.
11380
11381 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11382
11383         * config/s390/linux64.h: Delete file.
11384         * config/s390/s390x.h: New file.
11385         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11386         as target header file.
11387         * config/s390/linux.h (TARGET_VERSION): Define depending on
11388         DEFAULT_TARGET_64BIT.
11389         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11390         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11391         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11392         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11393         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11394         (EXTRA_SPEC): New define.
11395         * config/s390/s390.h (TARGET_VERSION): Define depending on
11396         DEFAULT_TARGET_64BIT.
11397         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11398
11399 2002-02-06  Jason Merrill  <jason@redhat.com>
11400
11401         * c-decl.c (finish_function): Warn about a non-void function with
11402         no return statement and no abnormal exit.
11403         (current_function_returns_abnormally): New variable.
11404         (start_function): Clear it.
11405         (struct c_language_function): Add returns_abnormally.
11406         (push_c_function_context): Save it.
11407         (pop_c_function_context): Restore it.
11408         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11409         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11410         an explicit return type.
11411         * c-tree.h: Declare current_function_returns_abnormally.
11412         (C_FUNCTION_IMPLICIT_INT): New macro.
11413         * c-typeck.c (build_function_call): Set it.
11414         (c_expand_return): Set current_function_returns_value even if the
11415         value is erroneous.
11416
11417 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11418
11419         PR c/5420:
11420         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11421         unsafe for reevaluation.
11422
11423 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11424
11425         PR c/5482:
11426         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11427         EXPR_STMT, but COMPOUND_STMT, recurse into it.
11428
11429 2002-02-06  Richard Henderson  <rth@redhat.com>
11430
11431         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11432         be a general_operand.  Dest for function value must be a pseudo.
11433
11434 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11435
11436         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11437         as SYMBOL_REFs from the constant pool.
11438
11439 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
11440
11441         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11442         passed by invisible reference.
11443
11444 2002-02-05  Richard Henderson  <rth@redhat.com>
11445
11446         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11447
11448 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
11449
11450         Implement using "base addresses" in insn operands as default.
11451         * config/mmix/mmix.c (mmix_conditional_register_usage): if
11452         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11453         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11454         used to read the rtx value.
11455         (mmix_target_asm_function_epilogue): Fix spacing.
11456         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11457         (mmix_legitimate_address): Ditto.
11458         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11459         should be loaded with a GETA insn.  Don't allocate needless extra
11460         char for nul termination and fix misleading comment.
11461         (mmix_print_operand_address): Handle constants if
11462         TARGET_BASE_ADDRESSES.
11463         (mmix_output_register_setting): Use base addressing if
11464         TARGET_BASE_ADDRESSES and the number of insns is 3.
11465         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11466         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11467         to use R as constraint, add LDA to match s.
11468         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11469         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11470         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11471         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11472         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11473         order with other fixed registers.
11474         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11475         other parameter/call-clobbered registers.
11476         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11477         -mbase-addresses, -mno-base-addresses.
11478         (MMIX Options): Ditto.
11479
11480 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11481
11482         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11483
11484 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
11485
11486         * config/rs6000/altivec.h: Change elem to _S_elem.
11487
11488 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11489
11490         * config/netbsd.h (WCHAR_TYPE): Define.
11491         (WCHAR_TYPE_SIZE): Ditto.
11492         (WINT_TYPE): Ditto.
11493         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11494         (WCHAR_UNSIGNED): Ditto.
11495         (WCHAR_TYPE_SIZE): Ditto.
11496         (WINT_TYPE): Ditto.
11497         * config/arm/netbsd.h: Likewise.
11498         * config/i386/netbsd-elf.h: Likewise.
11499         * config/i386/netbsd.h: Likewise.
11500         * config/m68k/netbsd-elf.h: Likewise.
11501         * config/m68k/netbsd.h: Likewise.
11502         * config/ns32k/netbsd.h: Likewise.
11503         * config/sparc/netbsd.h: Likewise.
11504         * config/vax/netbsd.: Likewise.
11505
11506 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
11507
11508         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11509         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
11510         (TARGET_INITIALIZER): this.
11511         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11512         (BITFIELD_NBYTES_LIMITED): Markup fix.
11513         * tree.h (default_ms_bitfield_layout_p): Declare.
11514         (record_layout_info): Added prev_field.
11515         * tree.c (default_ms_bitfield_layout_p): New fn.
11516         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11517         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11518         * stor-layout.c: Include target.h.
11519         (start_record_layout): Initialize prev_field.
11520         (place_field): Handle MS bit-field layout, and disregard
11521         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11522         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
11523         * Makefile.in (stor-layout.o): Adjust dependencies.
11524
11525 2002-02-05  Jason Merrill  <jason@redhat.com>
11526
11527         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11528
11529 2002-02-05  Andreas Jaeger  <aj@suse.de>
11530
11531         * crtstuff.c: Fix comments.
11532
11533 2002-02-05  Richard Henderson  <rth@redhat.com>
11534
11535         PR fortran/3393
11536         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11537         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11538
11539         PR fortran/3392
11540         * config/mips/mips.c (function_arg): Handle TImode.
11541         (function_arg_advance): Likewise.
11542
11543 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11544
11545         * config/rs6000/altivec.h (vec_step_help): Rename to
11546         __vec_step_help.
11547
11548 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11549
11550         * config/rs6000/altivec.h: Fix typos.
11551
11552 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11553
11554         * config/arm/netbsd.h: Correct a comment.
11555
11556 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11557
11558         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11559         building void typed builtins.
11560
11561         * config/rs6000/altivec.h (vec_ld*): Fix typos.
11562         (vec_step): Implement for C++.
11563
11564 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11565
11566         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11567
11568 2002-02-04  Richard Henderson  <rth@redhat.com>
11569
11570         * combine.c (nonzero_bits): Re-introduce special case for
11571         sp/fp/ap wrt REGNO_POINTER_ALIGN.
11572
11573 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11574
11575         * doc/extend.texi: Warn about unsupported usage of altivec
11576         builtins.
11577
11578         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11579         (altivec_predicate_*): New.
11580
11581         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11582         Add C++ version of vec_*() functions.
11583
11584         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11585         (bdesc_2arg): Remove altivec predicates.
11586         (altivec_expand_builtin): Handle predicates.
11587         (altivec_init_builtins): Handle predicates.
11588         (altivec_expand_predicate_builtin): New.
11589
11590 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11591
11592         * pa.c (DO_FRAME_NOTES): Move forward.
11593         (store_reg): Revise handling of frame notes.
11594         (load_reg): Likewise.
11595         (set_reg_plus_d): Likewise.
11596         (hppa_expand_prologue): Likewise.
11597         (hppa_expand_epilogue): Likewise.
11598
11599 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11600
11601         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11602
11603 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11604
11605         PR c/4475, c++/3780:
11606         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11607         * c-common.h (SWITCH_TYPE): Define.
11608         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11609         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11610         Rename spareness variable to sparseness.
11611         (expand_end_case_type): Renamed from expand_end_case, use orig_type
11612         if non-NULL instead of TREE_TYPE (orig_index).
11613         * tree.h (expand_end_case_type): Renamed from expand_end_case.
11614         (expand_end_case): Define using expand_end_case_type.
11615         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11616         to expand_end_case_type.
11617         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11618
11619 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11620
11621         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11622         (BIGGEST_ALIGNMENT): Change to 128.
11623
11624 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11625
11626         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11627
11628 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11629
11630         * pa.md (call_internal_reg_64bit): Remove unused variable.
11631
11632 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
11633
11634         * config/arm/arm.h (machine_function): Add uses_anonymous_args
11635         field.
11636         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11637         * config/arm/arm.c (current_function_anonymous_args): Delete,
11638         replace uses with cfun->machine->uses_anonymous_args.
11639         (arm_reorg): Do not reset uses_anonymous_args.
11640
11641         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11642         any geenral register.
11643
11644 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
11645
11646         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11647         the entry block.
11648
11649 2002-02-04  Richard Henderson  <rth@redhat.com>
11650
11651         * combine.c (force_to_mode): Remove STACK_BIAS code.
11652         (nonzero_bits): Likewise.  Replace sp/fp special case with
11653         REGNO_POINTER_ALIGN.
11654
11655         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11656         (HARD_FRAME_POINTER_REGNUM): New.
11657         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11658         (FIXED_REGS, CALL_USED_REGS): Update.
11659         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11660         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11661         (HARD_REGNO_NREGS): Update for SFP.
11662         (STACK_POINTER_OFFSET): Include bias here ...
11663         (FIRST_PARM_OFFSET): ... not here.
11664         (STACK_BIAS): Remove.
11665         (INIT_EXPANDERS): New.
11666         (STARTING_FRAME_OFFSET): Do not include bias.
11667         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11668         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11669         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11670         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11671         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11672         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11673         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11674         (MUST_SAVE_REGISTER): Likewise.
11675         (sparc_flat_function_prologue): Likewise.
11676         (sparc_flat_function_epilogue): Likewise.
11677         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11678         (sparc_init_modes): SFP is GENERAL_REGS.
11679         (sparc_builtin_saveregs): SFP does not have bias applied.
11680
11681 2002-02-04  Richard Henderson  <rth@redhat.com>
11682
11683         * config/alpha/alpha.c (current_function_is_thunk): Don't check
11684         current_function_is_thunk.
11685         (alpha_sa_mask): Distinguish between current_function_is_thunk
11686         called from ASM_OUTPUT_MI_THUNK and not.
11687         (alpha_does_function_need_gp): Thunks always need gp.
11688         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11689         (alpha_output_mi_thunk_osf): New.
11690         * config/alpha/alpha-protos.h: Update.
11691         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11692
11693 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
11694
11695         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11696         function types, not when they're taken away.
11697
11698 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
11699
11700         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11701         CODE_LABEL and jump table when replacing a table jump with a
11702         simple jump.
11703
11704 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11705
11706         * config/s390/s390-protos.h (legitimize_la_operand,
11707         s390_secondary_input_reload_class, s390_plus_operand,
11708         s390_expand_plus_operand): Add prototypes.
11709
11710         config/s390/s390.c (s390_secondary_input_reload_class,
11711         s390_plus_operand, s390_expand_plus_operand): New functions.
11712
11713         (struct s390_address): New member 'pointer'.
11714         (s390_decompose_address): Compute it.
11715         (legitimate_la_operand_p): Use it.
11716         (legitimize_la_operand): New function.
11717         (movti, movdi, movdf splitters): Call it.
11718
11719         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11720         (PREDICATE_CODES): Add s390_plus_operand.
11721
11722         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11723         (la_ccclobber): Allow GENERAL_REGS as output operand.
11724
11725         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11726         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11727         (*la_64, *la_31, reload_indi, reload_insi): ... these.
11728
11729 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11730
11731         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11732         register names for regular asm () construct.
11733
11734 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11735
11736         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11737         registers.
11738
11739 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11740
11741         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11742         pat for recog.
11743
11744 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
11745
11746         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11747         constant pool to be identical by string address and index.
11748
11749 2002-02-04  Anthony Green  <green@redhat.com>
11750
11751         * output.h (SECTION_OVERRIDE): Define.
11752         * varasm.c (named_section): Obey SECTION_OVERRIDE.
11753
11754 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11755
11756         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11757         by existing arm*-*-netbsd* (a.out) target.
11758         (ns32k-*-netbsdelf*): Likewise.
11759         (sparc-*-netbsdelf*): Likewise.
11760         (vax-*-netbsdelf*): Likewise.
11761
11762 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
11763
11764         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11765         headers and libobjc headers.
11766
11767 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
11768
11769         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11770         (_mingw.h): Remove duplicate include.
11771
11772 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11773
11774         * config.gcc: Set cpu_type to m68k for 68010, as well.
11775         (m68010-*-netbsdelf*): New...
11776         (m68k*-*-netbsdelf*): ...targets.
11777         * config/m68k/netbsd-elf.h: New file.
11778
11779 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11780
11781         * config/h8300/h8300.c (hand_list): Move inside function_arg.
11782
11783 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11784
11785         * config/h8300/h8300.c (h8_push_ops): Move inside
11786         h8300_init_once.
11787         (h8_pop_ops): Likewise.
11788         (h8_move_ops): Likewise.
11789
11790 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11791
11792         * config/h8300/h8300.c (os_task): Make it static.
11793         (monitor): Likewise.
11794         (pragma_saveall): Likewise.
11795
11796 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
11797
11798         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11799         constant is a valid sign-extension for Pmode.
11800
11801 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11802
11803         * config/h8300/h8300.c: Fix formatting.
11804
11805 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11806
11807         * config/h8300/h8300.md: Fix formatting.
11808
11809 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11810
11811         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11812         predicates of operands[1].  Split the patterns for each
11813         processor variant.
11814
11815 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11816
11817         * config/h8300/h8300.md (xor patterns): Tighten the predicates
11818         of operands[1] to register_operand.
11819
11820 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11821
11822         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11823         * cpphash.c (_cpp_init_hashtable): Similarly.
11824         * cppinit.c (cpp_create_reader): Default the signed_char flag.
11825         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11826         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11827         (cpp_handle_option): Handle the new options.
11828         * cpplex.c (cpp_interpret_charconst): Use new flag.
11829         * cpplib.h (struct cpp_options): New member signed_char.
11830         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11831         (cpp_options): Handle -fsigned-char and -funsigned-char.
11832         (static_specs): Remove signed_char_spec.
11833         (do_spec1): Don't handle %c.
11834         * system.h: Poison SIGNED_CHAR_SPEC.
11835         * tradcif.y (yylex): Use flag_signed_char.
11836         * tradcpp.h (flag_signed_char): New.
11837         * tradcpp.c (flag_signed_char): New.
11838         (main): Handle new command-line options.
11839         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11840 config:
11841         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11842         * avr/avr.h: Remove old comments.
11843         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11844         (CC1_SPEC): Pass -fsigned-char if -mic*.
11845         (SIGNED_CHAR_SPEC): Remove.
11846 doc:
11847         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11848
11849 2002-02-01  Eric Christopher  <echristo@redhat.com>
11850
11851         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11852         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11853         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11854         (ASM_OUTPUT_REG_POP): Ditto.
11855
11856 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11857
11858         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11859         patch.
11860
11861 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11862
11863         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11864
11865 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11866
11867         PR c/5304:
11868         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11869         unconditionally.
11870
11871 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11872
11873         * cfganal.c: Include tm_p.h.
11874         (keep_with_call_p): Fix the test that determines if a register holds
11875         the return value of a call.
11876
11877 2002-02-01  DJ Delorie  <dj@redhat.com>
11878
11879         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11880         we are given conflicting registers, switch to the other one we
11881         had allocated for us.
11882         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11883         as TImode so we know when the "other" register is available.
11884
11885 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
11886
11887         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11888         sparc/sparc_bi.h.
11889
11890 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11891
11892         * cfganal.c (keep_with_call_p): New function.
11893         (flow_call_edges_add): Prevent splitting a block between a call and
11894         a single-set instruction that should be kept in the same block.
11895
11896 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11897
11898         * doc/install.texi (avr): Update outdated URL.
11899
11900 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
11901
11902         * config/stormy16/stormy16.md (pushqi): New.
11903         (popqi): New.
11904         (pushhi): New.
11905         (pophi): New.
11906         (movhi): Remove stack operands.
11907         (movqi): Likewise.
11908         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11909         nonimmediate_nonstack_operand.
11910         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11911         New.
11912         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11913         New.
11914
11915 2002-01-31  Jason Merrill  <jason@redhat.com>
11916
11917         * Makefile.in (c-parse.c): Handle .output file.
11918         * objc/Make-lang.in (objc-parse.c): Likewise.
11919
11920 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
11921
11922         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11923         the -me[lb] option is given.  Don't output the default flag
11924         twice.
11925
11926 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
11927
11928         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11929         the primary source file; this has not been done yet.
11930         * c-decl.c (c_expand_body): Reset input_filename from
11931         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11932
11933 2002-01-31  Kazu Hirata  <kazu@hxi.com>
11934
11935         * rtlanal.c (subreg_regno_offset): Do not use
11936         SUBREG_REGNO_OFFSET.
11937         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11938         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11939
11940 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11941
11942         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
11943         version rather than GNATS version in --version output.
11944
11945 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
11946
11947         * ifcvt.c (noce_process_if_block): Make a copy of the destination
11948         when copying back from a temporary.
11949
11950 2002-01-30  Richard Henderson  <rth@redhat.com>
11951
11952         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11953         and new_dest are the same.
11954
11955 2002-01-30  Richard Henderson  <rth@redhat.com>
11956
11957         PR opt/5076
11958         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11959         * rtl.c (note_insn_name): Update.
11960         * emit-rtl.c (remove_unnecessary_notes): Kill it.
11961         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
11962         to perform loop rotation.
11963         (expand_exit_loop_top_cond): New.
11964         * tree.h (expand_exit_loop_top_cond): Declare it.
11965         * c-semantics.c (genrtl_while_stmt): Use it.
11966         (genrtl_for_stmt): Likewise.
11967
11968 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
11969
11970         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11971         arguments to 64-bit boundaries on 64-bit ABIs.
11972
11973 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
11974
11975         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11976
11977 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11978
11979         * c-decl.c (grokdeclarator): Handle type being a typedef for an
11980         invalid type.
11981
11982 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
11983
11984         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11985         * config/sparc/sparc_bi.h: Remove file.
11986         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11987
11988 2002-01-30  Richard Henderson  <rth@redhat.com>
11989
11990         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11991
11992 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
11993
11994         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11995
11996 2002-01-30  Jason Merrill  <jason@redhat.com>
11997
11998         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11999         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
12000         (reg_save): Use DW_CFA_offset_extended_sf instead.
12001
12002         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
12003
12004 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12005
12006         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
12007         in cselib_lookup.
12008
12009 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
12010
12011         * rs6000.md ("*call_value_local32"): Remove constraints.
12012         ("*call_value_local64"): Same.
12013         ("*call_value_indirect_nonlocal_aix32"): Same.
12014         ("*call_value_nonlocal_aix32"): Same.
12015         ("*call_value_indirect_nonlocal_aix64"): Same.
12016         ("*call_value_nonlocal_aix64"): Same.
12017         ("*call_value_nonlocal_sysv"): Same.
12018
12019 2002-01-29  Richard Henderson  <rth@redhat.com>
12020
12021         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
12022
12023 2002-01-29  Richard Henderson  <rth@redhat.com>
12024
12025         * expr.c (force_operand): Ignore flag_pic for detecting pic
12026         address loads.
12027         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
12028         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
12029         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
12030         instead of open-coded loop.
12031         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
12032         be fixed when in use.
12033
12034 2002-01-29  Richard Henderson  <rth@redhat.com>
12035
12036         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
12037         * sched-rgn.c (propagate_deps): Update them.
12038         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
12039         clobbers list when either gets too long.
12040
12041 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12042
12043         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
12044         and INDEX_REGS the same as GENERAL_REGS.
12045         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
12046
12047 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12048
12049         * tree.c (build_nonstandard_integer_type): Correct prototype.
12050
12051 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
12052
12053         * config/s390/s390.md (movstrsico, movstrdix_64,
12054         movstrsix_31): Remove, replace by ...
12055         (movstrdi_short, movstrsi_short, movstrdi_long,
12056         movstrsi_long): ... these.  New.
12057         (movstrdi, movstrsi): Adapt.
12058
12059         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
12060         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
12061         Remove unnecessary CC clobber.
12062         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
12063         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
12064
12065         (divmoddi4): Don't partially initialize TImode register.
12066
12067 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
12068
12069         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
12070
12071 2002-01-29  Richard Henderson  <rth@redhat.com>
12072
12073         * flow.c (print_rtl_and_abort): Remove.
12074         (print_rtl_and_abort_fcn): Remove.
12075         (verify_local_live_at_start): Use dump_bb instead.
12076         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
12077         (verify_wide_reg_1): Return 2 on mode test failure.
12078
12079 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12080
12081         PR c/3325, c/3326, c/2511, c/3347
12082         * c-decl.c (enum_decl_context): Remove BITFIELD.
12083         (grokdeclarator): Take bitfield width as an input.
12084         Ensure bitfields are given the correct type.  Perform
12085         bitfield width validation with build_bitfield_integer_type
12086         rather than waiting for finish_struct.
12087         (grok_typename, grok_typename_in_parm_context, start_decl,
12088         push_parmdecl, grokfield, start_function): Update calls to
12089         grokdeclarator.
12090         (build_bitfield_integer_type): New function.
12091         (finish_struct): Move bitfield validation to grokdeclarator
12092         and build_bitfield_integer_type.
12093         * tree.c (build_nonstandard_integer_type): New function.
12094         * tree.h (build_nonstandard_integer_type): New prototype.
12095 objc:
12096         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
12097
12098 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
12099
12100         PR other/1502:
12101         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
12102         don't ignore unrecognized -W* options.
12103         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
12104         * cpplib.h (cpp_handle_option): Adjust prototype.
12105         * c-decl.c (c_decode_options): Pass 0 as last argument to
12106         cpp_handle_option.
12107
12108         PR c/2896:
12109         * gcc.c (cpp_unique_options): Split from cpp_options.
12110         (cpp_options): Source cpp_unique_options.
12111         (default_compilers): Use cpp_unique_options instead of cpp_options
12112         when used together with cc1_options.
12113         (static_specs): Add cpp_unique_options.
12114         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
12115         when used together with cc1_options.
12116
12117 2002-01-29  Kazu Hirata  <kazu@hxi.com>
12118
12119         * config/h8300/h8300-protos.h: Update the prototype of
12120         output_a_shift.
12121         * config/h8300/h8300.c (output_a_shift): Remove an unused
12122         argument 'insn'.  Remove redundant code.
12123         * config/h8300/h8300.md: Adust to the new prototype of
12124         output_a_shift.
12125
12126 2002-01-29  Kazu Hirata  <kazu@hxi.com>
12127
12128         * config/h8300/h8300-protos.h: Update the prototypes of
12129         emit_a_rotate and expand_a_rotate.
12130         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
12131         first argument to 'enum rtx_code'.
12132         (expand_a_rotate): Likewise.
12133
12134 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12135
12136         * config/h8300/h8300-protos.h: Update the prototype of
12137         output_simode_bld.
12138         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
12139         'log2'.
12140         * config/h8300/h8300.md: Adjust to the new prototype.
12141
12142 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12143
12144         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
12145         redundant code.
12146
12147 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12148
12149         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
12150         is a fixed register before returning pic_offset_table_rtx.
12151         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
12152         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
12153
12154 2002-01-28  Jason Merrill  <jason@redhat.com>
12155
12156         * dwarf2.h: Sync with src version.
12157
12158 2002-01-28  Paul Koning  <pkoning@equallogic.com>
12159
12160         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
12161         BT_FN_VOID_PTR_VAR.
12162         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
12163         * doc/extend.texi (__builtin_prefetch): Update documentation:
12164         first argument is now const void ptr.
12165
12166 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12167
12168         * config/h8300/h8300-protos.h: Remove an unused prototype.
12169
12170 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
12171
12172         * toplev.c (lang_independent_init): Round up identifier size.
12173
12174 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
12175
12176         * config.gcc: Revert previous change.
12177
12178 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
12179
12180         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12181
12182 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
12183
12184         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12185         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
12186         other non-elf netbsd config frags.
12187         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12188         collect2 will does that.
12189         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12190         shared-lib frobbing will work.
12191
12192 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12193
12194         * config/h8300/h8300.h: Fix formatting.
12195         * config/h8300/h8300.md: Likewise.
12196
12197 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
12198
12199         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12200         the old, removed AAA_standards fix.
12201         * fixinc/fixincl.x: Rebuilt.
12202
12203 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
12204
12205         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12206         atexit call in crtbegin, hooked in after call to frame_dummy;
12207         register EH before registering __fini__start.
12208
12209 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
12210
12211         * config/rs6000/altivec.h: Remove spurious semicolons.
12212
12213 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12214
12215         * config/h8300/h8300.md: Replace dead bit extraction patterns
12216         with ones that work.
12217
12218 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12219
12220         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12221         if not STRICT_ALIGNMENT.
12222         * rtl.h (MEM_ALIGN): Likewise.
12223
12224 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12225
12226         * doc/invoke.texi (-fdump-translation-unit): Revert this
12227         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12228
12229 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12230
12231         * config/h8300/h8300.md (define_constants): New.
12232         (anonymous patterns) Use defined constants appropriately.
12233
12234 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12235
12236         * config/h8300/h8300.c (function_arg): Remove redundant code.
12237
12238 2002-01-26  Richard Henderson  <rth@redhat.com>
12239
12240         * sched-deps.c (reg_pending_uses_head): New.
12241         (reg_pending_barrier): Rename from reg_pending_sets_all.
12242         (find_insn_list): Don't mark inline.
12243         (find_insn_mem_list): Remove.
12244         (add_dependence_list, add_dependence_list_and_free): New.
12245         (flush_pending_lists): Replace only_write param with separate
12246         for_read and for_write parameters.  Update all callers.  Use
12247         add_dependence_list_and_free.
12248         (sched_analyze_1): Do not add reg dependencies here; just set
12249         the pending bits.  Use add_dependence_list.
12250         (sched_analyze_2): Likewise.
12251         (sched_analyze_insn): Replace schedule_barrier_found with
12252         reg_pending_barrier.  Add all dependencies for pending reg
12253         uses, sets, and clobbers.
12254         (sched_analyze): Don't add reg dependencies for calls, just
12255         set pending bits.  Use regs_invalidated_by_call.  Treat
12256         sched_before_next_call as a normal list, not a fake insn.
12257         (init_deps): No funny init for sched_before_next_call.
12258         (free_deps): Free pending mems lists.  Don't zero reg_last.
12259         (init_deps_global): Init reg_pending_uses.
12260         (finish_deps_global): Free it.
12261         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
12262         (find_insn_mem_list): Remove.
12263         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12264         (propagate_deps): Use them.  Zero temp mem lists.
12265
12266 2002-01-26  Richard Henderson  <rth@redhat.com>
12267
12268         * Makefile.in (CRTSTUFF_CFLAGS): New.
12269         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12270         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12271         crtstuff.c instead of alpha assembly version.
12272         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12273         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
12274         not FORCE_{INIT,FINI}_SECTION_ALIGN.
12275         (__do_global_dtors_aux): Mark used.
12276         (frame_dummy, __do_global_ctors_aux): Mark used.
12277         (fini_dummy, init_dummy): Remove.
12278
12279         * config/alpha/crtbegin.asm: Remove file.
12280         * config/alpha/crtend.asm: Remove file.
12281         * config/alpha/t-crtbe: Remove file.
12282         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12283         (LINK_EH_SPEC): New.
12284
12285         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12286         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
12287         calling constructors.
12288         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12289
12290         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12291         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12292         CRT_END_INIT_DUMMY hack.
12293         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12294         FORCE_{INIT,FINI}_SECTION_ALIGN.
12295
12296         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12297         FORCE_{INIT,FINI}_SECTION_ALIGN.
12298
12299         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12300         invocation sequence.
12301         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12302
12303         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12304         (FORCE_CODE_SECTION_ALIGN): New.
12305
12306 2002-01-26  Richard Henderson  <rth@redhat.com>
12307
12308         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12309
12310 2002-01-26  Richard Henderson  <rth@redhat.com>
12311
12312         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12313         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12314
12315 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12316
12317         * config/h8300/h8300.md: Remove bit extraction patterns that
12318         cannot be triggered.
12319         Restrict each bit extraction pattern to a variant on which the
12320         pattern is tested.
12321
12322 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
12323
12324         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12325
12326 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12327
12328         * config/h8300/h8300.md: Remove bit test patterns that cannot
12329         be triggered.
12330         Restrict each bit test pattern to a variant on which the
12331         pattern is tested.
12332
12333 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12334
12335         * builtins.c (expand_builtin_strncat): Remove redundant check for
12336         INTEGER_CST.
12337
12338 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12339
12340         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12341         default setting.
12342         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12343         existing setting.
12344
12345 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12346
12347         * dbxout.c (dbxout_init): Use assemble_name rather than just
12348         stripping off the first character.
12349         (dbxout_source_file): Likewise.
12350
12351 2002-01-25  DJ Delorie  <dj@redhat.com>
12352
12353         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12354         using rtx_equal_p, not by comparing pointers.
12355
12356 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
12357
12358         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12359         for PIC_OFFSET_TABLE_REGNUM.
12360         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12361
12362 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12363
12364         * config.gcc (x86_64-*-freebsd*): New target.
12365         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12366         value.
12367         (i[34567]86-*-freebsd*): Don't include svr4.h.
12368         * config/i386/freebsd64.h: New file.
12369
12370 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
12371
12372         * config/alpha/x-vms (version): Make static.
12373
12374         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12375         in previous checkin.
12376
12377         * Makefile.in (install-headers-cp): New target.
12378         * config.gcc (alpha-dec-*vms*): Install headers with
12379         install-headers-cp
12380
12381 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
12382
12383         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12384         avoid it's copies.
12385
12386 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12387
12388         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12389         of compare_tree_int.
12390         (expand_builtin_strncat): Likewise.
12391         * c-decl.c (finish_struct): Use tree_low_cst.
12392         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12393         * tree.c (compare_tree_int): Likewise.
12394
12395 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
12396
12397         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12398         adjustments even if they are implemented by more than two insns.
12399
12400 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12401
12402         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12403         * df.h (struct ref): Kill B.
12404         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12405
12406         * basic-block.h (PROP_EQUAL_NOTES): New flag.
12407         * flow.c (propagate_one_insn): Use it.
12408         (mark_used_regs): Handle NIL.
12409
12410 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12411
12412         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12413         to help folding.
12414
12415 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
12416
12417         * rs6000.md (prefetch): Make address V4SI mode so that the address
12418         is restricted to legitimate form for instruction.
12419
12420 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
12421
12422         * doc/install.texi (xtensa-*-elf): New target.
12423         (xtensa-*-linux*): New target.
12424         * doc/contrib.texi: Add myself.
12425
12426 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
12427
12428         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12429         purpose register to hold an SImode (or smaller) value.
12430
12431 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
12432
12433         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12434         registry only.
12435         * crtstuff.c: Likewise.
12436
12437 2002-01-25  Kazu Hirata  <kazu@hxi.com>
12438
12439         * config/h8300/h8300.md (negation patterns): Tighten
12440         predicates to register_operand.
12441
12442 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
12443
12444         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12445         mode, not Pmode.
12446
12447         * builtins.c (expand_builtin_prefetch): Same.
12448
12449 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12450
12451         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12452         modes.
12453
12454 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12455
12456         * config/h8300/h8300.c (print_operand): Remove support for
12457         operand character 'A'.
12458         * config/h8300/h8300.md (three anonymous patterns): Replace
12459         operand character 'A' with either 'T' or 'S'.
12460
12461 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12462
12463         * config/h8300/h8300.c (print_operand): Remove support for
12464         operand character 'U'.
12465
12466 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
12467
12468         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12469
12470 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
12471
12472         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12473         values to be assigned to the stack pointer.
12474
12475 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
12476
12477         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12478         to const_double needs to be done right for big-endian systems.
12479
12480 2002-01-24  Jason Merrill  <jason@redhat.com>
12481
12482         PR c++/2432
12483         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12484         to can_throw_internal.
12485
12486 2002-01-23  Richard Henderson  <rth@redhat.com>
12487
12488         * fold-const.c (fold): Change UINT_MAX test to check vs precision
12489         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
12490
12491 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12492
12493         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12494         (symGOT2reg): Use them, then set as GOT value as unchanging.
12495         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
12496         as a temporary, if possible.
12497         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
12498         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12499
12500 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12501
12502         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12503         accept to accept 0x80 as operands[2].
12504
12505 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12506
12507         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12508
12509 2002-01-23  Richard Henderson  <rth@redhat.com>
12510
12511         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12512
12513 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
12514
12515         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12516         (parmlist_or_identifiers_1): Verify that only a parmlist follows
12517         an attribute.
12518
12519 2002-01-23  Richard Henderson  <rth@redhat.com>
12520
12521         * expr.c (move_by_pieces_1): Extend size before negation.
12522
12523         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12524         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12525         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12526         * config/m68k/t-m68kelf: Likewise.
12527
12528 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
12529
12530         * config/xtensa/elf.h: New file.
12531         * config/xtensa/lib1funcs.asm: New file.
12532         * config/xtensa/lib2funcs.S: New file.
12533         * config/xtensa/linux.h: New file.
12534         * config/xtensa/t-xtensa: New file.
12535         * config/xtensa/xtensa-config.h: New file.
12536         * config/xtensa/xtensa-protos.h: New file.
12537         * config/xtensa/xtensa.c: New file.
12538         * config/xtensa/xtensa.h: New file.
12539         * config/xtensa/xtensa.md: New file.
12540         * config.gcc (xtensa-*-elf*): New target.
12541         (xtensa-*-linux*): New target.
12542         * cse.c (canon_hash): Compare rtx pointers instead of register
12543         numbers.  This is required for the Xtensa port.
12544         * integrate.c (copy_insn_list): Handle case where the static
12545         chain is in memory and the memory address has to be copied to
12546         a register.
12547         * doc/invoke.texi (Option Summary): Add Xtensa options.
12548         (Xtensa Options): New node.
12549         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12550
12551 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
12552
12553         * diagnostic.c (internal_error): Do ICE suppression only
12554         when ENABLE_CHECKING is not defined.
12555
12556         * c-typeck.c (require_complete_type): Return error_mark_node
12557         if type is error_mark_node.
12558
12559 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
12560
12561         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12562         -Os and issue a warning.
12563
12564 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
12565
12566         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12567         current (lack of) need for host configuration by hand.
12568
12569         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12570         references.  Documentation of some target macros moved from
12571         hostconfig.texi to tm.texi.
12572
12573 2002-01-23  Will Cohen  <wcohen@redhat.com>
12574
12575         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12576         defined.
12577
12578 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12579
12580         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12581         operand[3].
12582
12583 2002-01-23  Jason Merrill  <jason@redhat.com>
12584
12585         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12586
12587         * function.c (assign_parms): Don't put args of inline functions
12588         into registers when not optimizing.
12589
12590 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
12591
12592         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12593         (prologue_use): New pattern.
12594         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12595         preference to gen_rtx_USE.
12596         (thumb_expand_prologue): Use gen_prologue_use in preference to
12597         gen_rtx_USE.
12598         (thumb_expand_epilogue): Use gen_prologue_use in preference to
12599         gen_rtx_USE.
12600
12601 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
12602
12603         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12604
12605 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12606
12607         PR c/3504
12608         * doc/extend.texi: Correct documentation of __alignof__.
12609
12610 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
12611
12612         * params.h: Rename arguments of DEFPARAM so that it will be
12613         recognized as a translation keyword.
12614
12615 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12616
12617         * extend.texi: Document altivec functions.
12618         Fix N-bit adjectives in X86 builtin documentation.
12619
12620 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
12621
12622         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12623         auto_inc_dec values.
12624
12625 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
12626
12627         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12628         after backslash.
12629         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12630
12631 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
12632
12633         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12634
12635 2002-01-22  Richard Henderson  <rth@redhat.com>
12636
12637         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12638         copy_insn not copy_rtx.
12639
12640 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
12641
12642         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12643         "nonzero" as that might add "1" bits.  Ensure "constop" is
12644         properly sign extened.
12645         (force_to_mode): Tweak for sign extended constop.
12646
12647 2002-01-22  Richard Henderson  <rth@redhat.com>
12648
12649         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12650         for_each_rtx instead of assuming we're already looking at the MEM.
12651         (split_small_symbolic_mem_operand): Likewise.
12652         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12653         * config/alpha/alpha.md (small symbolic memory splitters): Update.
12654
12655 2002-01-22  Richard Henderson  <rth@redhat.com>
12656
12657         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12658         sequence number for the literal.
12659         (divmoddi_internal_er): Likewise.
12660
12661 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12662
12663         PR java/4972
12664         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12665         in LIBICONV variable.
12666         * configure: Regenerated.
12667
12668 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
12669
12670         * dependence.c (build_def_use): Remove array_idx.
12671
12672         * dwarfout.c (last_filename): Remove.
12673         (output_compile_unit_die): Remove last_filename.
12674
12675 2002-01-22  Roger Sayle  <roger@eyesopen.com>
12676             Richard Henderson  <rth@redhat.com>
12677
12678         PR opt/3640
12679         * fold-const.c (fold): Optimize unsigned comparisons against
12680         UINT_MAX (and similar unsigned constants).
12681
12682 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
12683
12684         * Makefile.in (loop.o): Depend on OPTABS_H.
12685         * loop.c (emit_prefetch_instructions): Check the prefetch operand
12686         against the predicate.
12687
12688         PR target/5379
12689         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12690         for the address operand.
12691
12692 2002-01-22  Richard Henderson  <rth@redhat.com>
12693
12694         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12695
12696 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12697
12698         PR other/5450
12699         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12700         preprocessor flags.
12701
12702 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
12703
12704         * config.gcc (x86_64-*-netbsd*): New target.
12705         * config/i386/netbsd64.h: New file.
12706
12707 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12708
12709         * regrename.c (kill_value): Fix typo.
12710
12711 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12712
12713         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12714
12715         * config/rs6000/rs6000.h: Same.
12716
12717         * function.c (instantiate_virtual_regs): Remove
12718         STARTING_FRAME_PHASE.
12719         (assign_stack_local_1): Same.
12720         Calculate frame phase.
12721
12722 2002-01-22  Nick Clifton  <nickc@redhat.com>
12723
12724         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12725         variable declaration to outer scope in order to simplify
12726         future extensions.
12727         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12728         arm_hard_regno_mode_ok.
12729         * config/arm/arm-protos.h: Add a prototype for
12730         arm_hard_regno_mode_ok.
12731         * config/arm/arm.c (soft_df_operand): Remove now redundant
12732         check for DImode values using IP_REGNUM.
12733         (nonimmediate_soft_df_operand): Remove now redundant check for
12734         DImode values using IP_REGNUM.
12735         (arm_hard_regno_mode_ok): New function. New check: make sure
12736         that DImode values are not stored in IP_REGNUM.
12737
12738         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12739         note with a USE.
12740         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12741
12742 2002-01-22  Jason Merrill  <jason@redhat.com>
12743
12744         * c-semantics.c (genrtl_compound_stmt): Only check nesting
12745         consistency if this COMPOUND_STMT is scoped.
12746
12747 2002-01-22  Kazu Hirata  <kazu@hxi.com>
12748
12749         * predict.c: Fix formatting.
12750         * print-tree.c: Likewise.
12751         * protoize.c: Likewise.
12752         * real.h: Likewise.
12753         * rtl.h: Likewise.
12754         * sbitmap.h: Likewise.
12755         * scan.c: Likewise.
12756         * sched-deps.c: Likewise.
12757         * sched-vis.c: Likewise.
12758         * sdbout.c: Likewise.
12759         * sibcall.c: Likewise.
12760         * ssa.c: Likewise.
12761         * ssa-ccp.c: Likewise.
12762         * ssa-dce.c: Likewise.
12763         * stmt.c: Likewise.
12764         * stor-layout.c: Likewise.
12765         * system.h: Likewise.
12766
12767 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12768
12769         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12770         if fits in bounds of base type.
12771
12772         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12773         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12774         (add_bound_info, default): If can't find a context, make a
12775         SAVE_EXPR.
12776         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12777
12778 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
12779
12780         * c-typeck.c (parser_build_binary_op): If result from
12781         build_binary_op is ERROR_MARK just return error_mark_node without
12782         further processing.
12783
12784 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
12785
12786         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12787         Split a.out-specific bits into...
12788         * config/netbsd-aout.h: ...this.
12789         * config/netbsd-elf.h: New file.
12790         * config/alpha/netbsd-elf.h: Remove.
12791         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12792         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12793         (STARTFILE_SPEC): Remove redundant definition.
12794         (ENDFILE_SPEC): Likewise.
12795         (LINK_SPEC): Likewise.
12796         (CPP_SPEC): Likewise.
12797         (ASM_SPEC): Likewise.
12798         (LIB_SPEC): Likewise.
12799         (SWITCH_TAKES_ARG): Likewise.
12800         (TARGET_MEM_FUNCTIONS): Likewise.
12801         (CPP_PREDEFINES): Redefine.
12802         (ASM_FINAL_SPEC): Remove redefinition.
12803         (ASM_COMMENT_START): Redefine.
12804         (FUNCTION_PROFILER): Define.
12805         (TARGET_VERSION): Redefine.
12806         Comment and formatting cleanup.
12807         * config/i386/netbsd.h: Include <netbsd-aout.h>.
12808         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12809         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12810         big- or little-endian.
12811         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12812         * config.gcc (*-*-netbsd*): Add definitions common to all
12813         NetBSD configs.
12814         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12815         gnu_ld definitions.  Add netbsd-elf.h to and remove
12816         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
12817         tmake_file, and don't lose previous tmake_file contents.
12818         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12819         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12820         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
12821         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12822         (mipsel-*-netbsd*): Rename this to...
12823         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
12824         mips/little.h to tm_file for mips*el-*.
12825         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12826         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12827         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12828
12829 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12830
12831         * pa-protos.h (reg_before_reload_operand): New function prototype.
12832         * pa.c (reg_before_reload_operand): New function implementation.
12833         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
12834         contraints to "*m".
12835
12836 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12837
12838         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12839
12840 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12841
12842         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12843         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12844         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12845         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12846         (ENDFILE_SPEC): Undefine.
12847         (STARTFILE_SPEC): Redefine for PA.
12848
12849 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12850
12851         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12852
12853 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
12854
12855         * config.gcc: Add entries to supported PowerPC --with-cpu
12856         types.
12857
12858 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
12859
12860         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12861         true for 64-bit mode only SSE registers in 32-bit mode.
12862
12863 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12864
12865         * unwind-dw2.c: Fix formatting.
12866         * unwind-dw2-fde.c: Likewise.
12867         * unwind-dw2-fde.h: Likewise.
12868         * unwind-pe.h: Likewise.
12869         * varasm.c: Likewise.
12870         * varray.h: Likewise.
12871
12872 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
12873
12874         Remove workaround for register stack overwrite bug in mmix.
12875         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12876         support for TARGET_REG_STACK_FILL_BUG.
12877         * config/mmix/mmix.h: Remove member has_call_without_parameters.
12878         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12879         Delete.
12880         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12881         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12882         -mno-reg-stack-fill-bug-workaround.
12883         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12884         machine member has_call_without_parameters.
12885         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12886         -mreg-stack-fill-bug-workaround and
12887         -mno-reg-stack-fill-bug-workaround.
12888         (MMIX Options): Ditto.
12889
12890 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12891
12892         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12893         as appropriate.
12894         Remove redundant code.
12895
12896 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12897
12898         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12899         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12900         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12901         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12902         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12903         out target macro definitions and non-target-specific comments
12904         mostly taken from old versions of the manual.
12905
12906 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12907
12908         * config/h8300/h8300.h: Fix comment formatting.
12909         * config/ia64/aix.h: Likewise.
12910         * config/ia64/ia64-protos.h: Likewise.
12911         * config/ia64/ia64.c: Likewise.
12912         * config/ia64/ia64.h: Likewise.
12913         * config/ia64/ia64intrin.h: Likewise.
12914         * config/ia64/linux.h: Likewise.
12915         * config/ia64/unwind-aix.c: Likewise.
12916         * config/ia64/unwind-ia64.c: Likewise.
12917
12918 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12919
12920         * config/h8300/h8300.c: Revise comments about shift code.
12921
12922 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12923
12924         * config/h8300/h8300.c (function_arg): Update a comment.
12925
12926 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12927
12928         * config/h8300/h8300.md: Update the comments at the beginning
12929         of the file.
12930
12931 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12932
12933         * config/i370/i370.c: Fix comment formatting.
12934         * config/i370/i370.h: Likewise.
12935         * config/i370/i370.md: Likewise.
12936         * config/i370/linux.h: Likewise.
12937
12938 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12939
12940         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12941
12942         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12943         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12944         in incomplete case.
12945
12946 2002-01-20  Graham Stott  <grahams@redhat.com>
12947
12948         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12949
12950 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12951
12952         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12953
12954 2002-01-19  Tom Rix  <trix@redhat.com>
12955
12956         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12957
12958 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
12959
12960         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12961
12962         * function.c (assign_stack_local_1): Adjust x_frame_offset with
12963         STARTING_FRAME_PHASE.
12964         (STARTING_FRAME_PHASE): New.
12965         (instantiate_virtual_regs): Check saneness of
12966         STARTING_FRAME_PHASE.
12967
12968         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12969
12970 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12971
12972         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12973
12974 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12975
12976         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12977         be used for bootstrapping GCC 3.0.
12978
12979 2002-01-18  Kazu Hirata  <kazu@hxi.com>
12980
12981         * config/h8300/h8300.md: Fix an insn length.
12982
12983 2002-01-18  Kazu Hirata  <kazu@hxi.com>
12984
12985         * bitmap.h: Fix comment formatting.
12986         * combine.c: Likewise.
12987         * cppfiles.c: Likewise.
12988         * c-pragma.h: Likewise.
12989         * c-typeck.c: Likewise.
12990         * df.c: Likewise.
12991         * dwarf2out.c: Likewise.
12992         * function.c: Likewise.
12993         * gcc.c: Likewise.
12994         * genattrtab.c: Likewise.
12995         * gthr-win32.h: Likewise.
12996         * haifa-sched.c: Likewise.
12997         * predict.c: Likewise.
12998         * rtlanal.c: Likewise.
12999         * rtl.h: Likewise.
13000         * unwind-dw2-fde.h: Likewise.
13001         * unwind-pe.h: Likewise.
13002         * vmsdbgout.c: Likewise.
13003
13004 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13005
13006         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
13007         if type_required and passed decl.
13008
13009 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
13010
13011         * config.gcc (cpu_type): Include altivec.h in powerpc
13012         extra_headers.
13013         Same for darwin.
13014
13015         * config/rs6000/altivec.h: New.
13016
13017 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
13018
13019         * doc/install.texi (*-ibm-aix*): Update assembler and exception
13020         handling information.
13021         * doc/trouble.texi (Interoperation): Add libstdc++ information
13022         for AIX.
13023         (Misunderstandings): Add template instantiation and static template
13024         member information for AIX.
13025
13026 2002-01-17  Jason Merrill  <jason@redhat.com>
13027
13028         * dbxout.c (dbxout_type): Support const and volatile.
13029
13030         * except.c (add_partial_entry): Remove backwards compatibility code.
13031         (end_protect_partials): Likewise.
13032
13033 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
13034
13035         * config/ia64/ia64.md (prologue_use): New.
13036         * config/ia64/ia64.c (ia64_expand_prologue): Use
13037         gen_prologue_use instead of gen_rtx_USE.
13038         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
13039         as CODE_FOR_pred_rel_mutex.
13040         (ia64_sched_reorder2): Likewise.
13041
13042 2002-01-16  Eric Christopher  <echristo@redhat.com>
13043
13044         * config/mips/r3900.h: Reformat.
13045         (SUBTARGET_CPP_SIZE_SPEC): Remove.
13046         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
13047         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
13048         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
13049         * config/mips/t-elf: Remove mips3 multilib.
13050
13051 2002-01-16  H.J. Lu <hjl@gnu.org>
13052
13053         * config/mips/linux.h: Include "mips/abi64.h".
13054
13055 2002-01-16  H.J. Lu <hjl@gnu.org>
13056
13057         * config/mips/t-linux: New.
13058
13059         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
13060
13061         * config/mips/linux.h: Don't include "gofast.h".
13062         (INIT_SUBTARGET_OPTABS): Removed.
13063
13064 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13065
13066         * config/h8300/h8300-protos.h: Replace emit_a_shift with
13067         output_a_shift.
13068         * config/h8300/h8300.c: Likewise.
13069         * config/h8300/h8300.md: Likewise.
13070
13071 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13072
13073         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
13074         spaces after an opcode name.
13075         (pushqi1_h8300hs): Likewise.
13076         (pushhi1_h8300hs): Likewise.
13077
13078 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13079
13080         * doc/extend.texi: Replace "option" with "attribute"
13081         appropriately.
13082
13083 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13084
13085         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
13086         (and:DI () (const_int -8)).
13087         (split_small_symbolic_mem_operand): Split
13088         (mem (and:DI () (const_int -8)).
13089
13090 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13091
13092         PR target/5309:
13093         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
13094         same way as TYPE_IMUL.
13095         (ultrasparc_sched_reorder): Likewise.
13096         * config/sparc/sparc.md (type): Add comment to update
13097         ultrasparc_sched_reorder when making changes.
13098
13099 2002-01-16  Kazu Hirata  <kazu@hxi.com>
13100
13101         * doc/invoke.texi: Change the dump file name of block
13102         reordering pass from 28.bbro to 29.bbro.
13103         Mention -dk option.
13104
13105 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
13106
13107         * i386.md (minsf splitter): Fix pasto.
13108
13109 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
13110
13111         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
13112         to frame pointer initialisation instruction.
13113         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
13114         initialisation instruction.
13115         (soft_df_operand): Do not accept the IP register.
13116         (nonimmediate_soft_df_operand): Do not accept the IP register.
13117
13118 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
13119
13120         PR target/5357:
13121         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
13122         MASK_V8 being both set.
13123
13124 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
13125
13126         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
13127         insn for GOT register; add REG_MAYBE_DEAD notes instead.
13128         config/s390/s390.md (call, call_value): Add GOT register to
13129         CALL_INSN_FUNCTION_USAGE where needed.
13130         (call_exp, call_value_exp): New.
13131
13132 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
13133
13134         * config/arm/arm.c: General formatting tidy up.
13135
13136 2002-01-16  Graham Stott  <grahams@redhat.com>
13137
13138         * calls.c (try_to_integrate): Use "(size_t)" intermediate
13139         cast and when casting an integer literal to "rtx" pointer.
13140         (expand_call): Likewise.
13141         * flow.c (try_pre_increment): Likewise.
13142         (find_use_as_address): Likewise.
13143         * integrate.c (expand_iline_function): Likewise.
13144         * regmove.c (try_auto_increment): Likewise.
13145
13146 2002-01-16  Graham Stott  <grahams@redhat.com>
13147
13148         * sched-rgn.c (passed): Use sbitmap_free.
13149         (header): Likewise.
13150         (inner): Likewise.
13151         (in_queue): Likewise.
13152         (in_stack): Likewise.
13153
13154 2002-01-15  Eric Christopher  <echristo@redhat.com>
13155
13156         * flow.c (propagate_one_insn): Change to use fatal_insn.
13157
13158 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13159
13160         * expmed.c (extract_fixed_bit_field): Remove unused code.
13161         * system.h: Poison SLOW_ZERO_EXTEND.
13162         * doc/tm.texi: Remove.
13163         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
13164         * config/arm/arm.h: Likewise.
13165         * config/avr/avr.h: Likewise.
13166         * config/clipper/clipper.h: Likewise.
13167         * config/convex/convex.h: Likewise.
13168         * config/d30v/d30v.h: Likewise.
13169         * config/dsp16xx/dsp16xx.h: Likewise.
13170         * config/elxsi/elxsi.h: Likewise.
13171         * config/fr30/fr30.h: Likewise.
13172         * config/h8300/h8300.h: Likewise.
13173         * config/i370/i370.h: Likewise.
13174         * config/i386/i386.h: Likewise.
13175         * config/m68k/m68k.h: Likewise.
13176         * config/mips/mips.h: Likewise.
13177         * config/ns32k/ns32k.h: Likewise.
13178         * config/pdp11/pdp11.h: Likewise.
13179         * config/pj/pj.h: Likewise.
13180         * config/s390/s390.h: Likewise.
13181         * config/sh/sh.h: Likewise.
13182         * config/stormy16/stormy16.h: Likewise.
13183         * config/v850/v850.h: Likewise.
13184         * config/vax/vax.h: Likewise.
13185         * config/we32k/we32k.h: Likewise.
13186
13187 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
13188
13189         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13190         (altivec_lvsl): Change constraint to b.
13191         (altivec_lvsr): Same.
13192         (altivec_lvebx): Same.
13193         (altivec_lvehx): Same.
13194         (altivec_lvewx): Same.
13195         (altivec_lvxl): Same.
13196         (altivec_lvx): Same.
13197         (altivec_stvx): Add parallel.
13198         (altivec_stvxl): Same.
13199         (altivec_stvehx): Same.
13200         (altivec_stvebx): Same.
13201         (altivec_stvebx): Same.
13202
13203 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
13204
13205         * config.gcc: Change altivec.h to altivec-defs.h.
13206
13207         * config/rs6000/altivec.h: Delete.
13208
13209         * config/rs6000/altivec-defs.h: Add.
13210
13211 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13212
13213         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13214         and UMOD modes.
13215
13216         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13217         less than or equal to eight bytes.
13218
13219         * vax.md (andsi3): Remove constraints and change SET destination
13220         operand type to nonimmediate_operand.
13221         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
13222         when it is a CONST_INT.
13223
13224 2002-01-15  Jason Merrill  <jason@redhat.com>
13225
13226         * c-common.def (FILE_STMT): New code.
13227         * c-common.c (statement_code_p): It's a statement.
13228         * c-common.h (stmt_tree_s): Add x_last_filename.
13229         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13230         (last_expr_filename): New macro.
13231         * c-semantics.c (begin_stmt_tree): Initialize it.
13232         (add_stmt): If the filename changed, also insert a
13233         FILE_STMT.
13234         (expand_stmt): Handle seeing one.
13235
13236 2002-01-15  Eric Christopher  <echristo@redhat.com>
13237
13238         * flow.c (propagate_one_insn): Add error message and print out
13239         insn for debugging.
13240
13241 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13242
13243         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13244         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13245         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13246         TRAMPOLINE_ALIGNMENT.
13247         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
13248         to be in bits.
13249         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13250         PCC_BITFIELD_TYPE_MATTERS.
13251         * config/interix.h (STDC_VALUE): Remove.  Use
13252         STDC_0_IN_SYSTEM_HEADERS.
13253         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13254         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13255         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13256
13257 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13258
13259         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13260         not work on this platform currently.
13261
13262 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13263
13264         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13265         readonly_warning in _().
13266
13267 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
13268
13269         * gcc.c (delete_if_ordinary): Backout previous change.
13270
13271 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13272
13273         * config/h8300/h8300.c (print_operand): Remove support for
13274         unused operand characters.
13275
13276         * read-rtl.c: Fix formatting.
13277         * real.c: Likewise.
13278         * recog.c: Likewise.
13279         * regclass.c: Likewise.
13280         * regmove.c: Likewise.
13281         * reg-stack.c: Likewise.
13282         * reload1.c: Likewise.
13283         * rtlanal.c: Likewise.
13284
13285 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13286
13287         * config/i386/i386.c: Fix formatting.
13288
13289 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
13290
13291         * c-typeck.c (process_init_element): Don't save_expr
13292         COMPOUND_LITERAL_EXPR if just its initializer will be used.
13293
13294 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
13295
13296         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13297         emit optional traceback table if optimize_size or TARGET_ELF.
13298         * config/rs6000/rs6000.md (prefetch): New.
13299
13300 2002-01-15  Andreas Jaeger  <aj@suse.de>
13301
13302         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13303
13304 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13305
13306         * mips-tfile.c: Fix formatting.
13307
13308 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13309
13310         * unroll.c (final_reg_note_copy): Fix previous commit.
13311
13312 2002-01-14  Kazu Hirata  <kazu@hxi.com>
13313
13314         * config/h8300/h8300-protos.h: Remove the prototype for
13315         eq_operator.
13316         * config/h8300/h8300.c (eq_operator): Remove.
13317
13318 2002-01-14  Richard Henderson  <rth@redhat.com>
13319
13320         * config/i386/i386.md (prefetch): Tidy.
13321         (prefetch_3dnow): Fix locality operand.
13322
13323 2002-01-14  Richard Henderson  <rth@redhat.com>
13324
13325         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13326         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13327
13328 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
13329
13330         * reload1.c (reload_combine): Pass reg_sum replacement through
13331         copy_rtx in loop performing multiple changes.
13332
13333 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
13334
13335         * except.c (remove_unreachable_regions): New.
13336         (free_eh_status): Clear exception_handler_labels.
13337         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13338         (find_exception_handler_labels): Don't add the same label more than
13339         once.
13340         (remove_exception_handler_label): Don't die if
13341         find_exception_handler_labels hasn't been called for the current
13342         function yet.
13343
13344 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
13345
13346         * toplev.c (rest_of_compilation): Rebuild jump labels after
13347         gcse.
13348
13349 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
13350
13351         * doc/extend.texi: Move documentation of X86 built-in functions
13352         here.
13353         * doc/invoke.texi: From here.
13354         * doc/sourcebuild.texi: Document location of documentation for
13355         machine built-in functions.
13356
13357 2002-01-13  Christopher Faylor  <cgf@redhat.com>
13358
13359         * cppfiles.c (TEST_THRESHOLD): New macro.
13360         (SHOULD_MMAP): Ditto.
13361         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13362         be used.
13363
13364 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
13365
13366         * unroll.c (final_reg_note_copy): Properly handle
13367         REG_LABEL
13368         (unroll_loops): Fix LOOP_CONDITION heuristics.
13369
13370 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
13371
13372         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13373         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13374
13375 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13376
13377         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13378         threaded loop.
13379
13380 2002-01-14  Tom Rix  <trix@redhat.com>
13381
13382         * config/rs6000/rs6000.md: Fix typo with sradi.
13383
13384 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
13385
13386         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13387         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13388         (clrstrdi, clrstrsi): Adapt callers.
13389
13390         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13391
13392         (movti splitter): Never use register 0 as base register.
13393
13394 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
13395
13396         * combine.c (simplify_shift_const): Always generate new rtx
13397         for shift expression instead of reusing given expression.
13398
13399 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13400
13401         * config/alpha/alpha.c (alpha_expand_mov): Don't call
13402         alpha_legitimize_address unless mode is Pmode.
13403
13404 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
13405
13406         * doc/md.texi (Modifiers): Document the '*' constraint for the
13407         user.
13408
13409         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13410         * doc/extend.texi (Function Attributes): 'interrupt' is valid
13411         for xstormy16 too.
13412
13413 2002-01-13  Richard Henderson  <rth@redhat.com>
13414
13415         * reload.c (find_reloads): Use a hard reg destination as reload reg
13416         for an input reload of the source.
13417
13418 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13419
13420         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13421         more generic.
13422
13423 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
13424
13425         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13426         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13427
13428         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13429
13430 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13431
13432         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13433
13434 2002-01-12  Tom Rix  <trix@redhat.com>
13435
13436         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13437         TARGET_POWERPC64.
13438
13439 2002-01-12  Richard Henderson  <rth@redhat.com>
13440
13441         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13442
13443         * doc/invoke.texi: Update Alpha options.
13444
13445         * doc/invoke.texi: Update i386 built-in function lists.
13446
13447 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13448
13449         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13450         referencing outside.
13451
13452 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13453
13454         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13455         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13456         offsets, and change line folding.
13457         * optabs.c (expand_binop): Remove warnings.
13458         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13459
13460 2002-01-12  Graham Stott <grahams@redhat.com>
13461
13462         * attribs.c (handle_deprecated_attribute): constify WHAT.
13463         * diagnostic.c (warn_deprecated_use): Add braces, fixes
13464         dangling else warning and constify WHAT.
13465         * except.h (struct function, struct inline_remap): Move
13466         struct tag forward defs before all prototypes.
13467         (duplicate_eh_regions): Whitespace.
13468
13469 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
13470
13471         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13472         MODE_BASE_REG_CLASS.
13473         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13474
13475 2002-01-12  Richard Henderson  <rth@redhat.com>
13476
13477         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13478         (ix86_expand_vector_move): New.
13479         (bdesc_2arg): Remove andps, andnps, orps, xorps.
13480         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
13481         Remove old prefetch builtins.  Special case the logicals removed above.
13482         (ix86_expand_builtin): Likewise.
13483         (safe_vector_operand): Use V4SFmode, not TImode.
13484         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
13485         (ix86_expand_timode_binop_builtin): New.
13486         * config/i386/i386-protos.h: Update.
13487         * config/i386/i386.h (enum ix86_builtins): Update.
13488         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13489         Use ix86_expand_vector_move in vector move expanders.
13490         (movti_internal, movti_rex64): Add xorps alternative.
13491         (sse_clrv4sf): Rename and adjust from sse_clrti.
13492         (prefetch): Don't work so hard.
13493         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13494         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13495         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13496
13497 2002-01-11  Richard Henderson  <rth@redhat.com>
13498
13499         * config/i386/mmintrin.h: New file.
13500         * config/i386/xmmintrin.h: New file.
13501         * config.gcc (i?86-*-*): Add extra_headers.
13502         * simplify-rtx.c (simplify_unary_operation): Handle saturating
13503         truncation codes.
13504         (simplify_binary_operation): Handle saturating arithmetic codes.
13505         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13506         not the lowpart subreg.
13507         (ix86_expand_builtin): Return a TImode dummy register instead of 0
13508         on error.
13509         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13510
13511 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13512
13513         * conflict.c (conflict_graph_compute): Free regsets when finished.
13514         * ssa.c (compute_coalesced_reg_partition): Likewise.
13515
13516 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13517
13518         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13519         every where we allocate a register.
13520
13521 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13522
13523         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13524         * lcm.c (compute_earliest, compute_farthest): Likewise.
13525
13526 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13527
13528         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13529
13530 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13531
13532         * doc/rtl.texi (Insns): Fix 2 typos.
13533
13534 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
13535
13536         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
13537         options.  Use @table @gcctabopt for MMIX options.  Add index
13538         entries for MMIX options.  Start new paragraph with first
13539         heading of the machine-dependent options.
13540
13541 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13542
13543         PR other/5299
13544         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13545         * combine.c (force_to_mode): Same.
13546         * reload1.c (clear_reload_reg_in_use): Same.
13547
13548 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
13549
13550         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13551         and 'subtargets'.
13552
13553 2002-01-11  Andreas Jaeger  <aj@suse.de>,
13554             Brad Lucier <lucier@math.purdue.edu>
13555
13556         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13557         mcpu.
13558
13559 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
13560
13561         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13562         Protect with IN_LIBGCC.
13563         (LINK_EH_SPEC): Add required trailing space.
13564
13565 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13566
13567         * c-tree.h: Move function declarations so that they are listed
13568         under the filename which contains them.
13569         (check_identifier, finish_decl_top_level,
13570         lookup_name_current_level_global, shadow_record_fields): Remove.
13571
13572 2002-01-11  Andreas Jaeger  <aj@suse.de>
13573
13574         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13575         march.
13576
13577 2002-01-10  Richard Henderson  <rth@redhat.com>
13578
13579         * config/alpha/alpha.c (print_operand): Add 'J'.
13580         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13581         new operand with the sequence number for the lituse.  When splitting
13582         the insns, use gen_movdi_er_high_g and generate a sequence number.
13583         (gen_movdi_er_high_g): Print the sequence number if non-zero.
13584
13585 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
13586
13587         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13588         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13589         stvxl.
13590         (altivec_expand_builtin): Same.
13591         (altivec_expand_stv_builtin): New.
13592
13593         * config/rs6000/rs6000.h (rs6000_builtins): Same.
13594
13595         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13596         ("altivec_lvehx"): New.
13597         ("altivec_lvewx"): New.
13598         ("altivec_lvxl"): New.
13599         ("altivec_lvx"): New.
13600         ("altivec_stvx"): New.
13601         ("altivec_stvebx"): New.
13602         ("altivec_stvehx"): New.
13603         ("altivec_stvewx"): New.
13604         ("altivec_stvxl"): New.
13605
13606 2002-01-10  Richard Henderson  <rth@redhat.com>
13607
13608         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13609         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
13610         care not to delete instructions twice.
13611
13612 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
13613
13614         * toplev.c: Don't declare environ (it's not used anywhere).
13615         * configure.in: Don't check for declaration of environ.
13616         * config/i386/xm-mingw32.h: Don't #define environ.
13617         * config.in, configure: Regenerate.
13618
13619 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
13620
13621         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13622         * configure: Regenerate.
13623
13624         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13625         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13626         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13627         alpha/xm-vms.h.
13628         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13629         LIMITS_H_TEST here, not in m68k/x-next.
13630         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13631         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13632
13633         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13634         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13635         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
13636
13637         * config/i386/x-djgpp: Renamed i386/t-djgpp.
13638         * config/m88k/x-dolph: Renamed m88k/t-dolph.
13639         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13640         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
13641         replacement of quadlib.asm with quadlib.c.
13642
13643         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13644         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13645         config/rs6000/xm-beos.h: Delete file.
13646
13647         * config.gcc: Update to match above changes.
13648
13649 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13650
13651         * config/h8300/h8300.h: Fix comment typos.
13652         * config/h8300/h8300.md: Likewise.
13653         * config/h8300/lib1funcs.asm: Likewise.
13654
13655 2002-01-10  Dale Johannesen  <dalej@apple.com>
13656
13657         PR optimization/5269
13658         * unroll.c (precondition_loop_p): Make *increment be the correct
13659         sign when n_iterations known, to avoid confusing caller.
13660
13661 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13662
13663         * doc/extend.texi (deprecated): Fix a typo.
13664
13665 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13666
13667         * basic-block.h (update_br_prob_note): Declare.
13668         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13669         (try_forward_edges): Care negative frequencies and update note.
13670         (outgoing_edges_match): Tweek conditional merging heuristics.
13671         (try_crossjump_to_edge): use update_br_prob_note.
13672         * cfglayout.c (fixup_reorder_chain): Likewise.
13673         * cfrtl.c (update_br_prob_note): New.
13674         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13675
13676         * i386.c (ix86_decompose_address): Return -1 if address contains
13677         shift.
13678         (legitimate_address_p): Require ix86_decompose_address to return 1.
13679
13680         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13681         (cprop_insn): Likewise.
13682
13683 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13684
13685         * toplev.c: Fix formatting.
13686         * tree.c: Likewise.
13687         * tree-dump.c: Likewise.
13688         * unroll.c: Likewise.
13689         * unwind-dw2.c: Likewise.
13690         * unwind-dw2-fde.c: Likewise.
13691         * unwind-dw2-fde-glibc.c: Likewise.
13692         * unwind-sjlj.c: Likewise.
13693
13694 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13695
13696         * doc/invoke.texi: Document PDP-11 options.
13697
13698 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13699
13700         * config/h8300/h8300.h: Fix formatting.
13701
13702 2002-01-10  Ira Ruben   <ira@apple.com>
13703
13704         Add __attribute__ ((deprecated)).
13705         * extend.texi: Document __attribute__ ((deprecated)).
13706         * invoke.texi: Document -Wno-deprecated-declarations.
13707         * testsuite/g++.dg/other/deprecated.C: New C++ test.
13708         * testsuite/gcc.dg/deprecated.c: New C test.
13709         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13710         (c_common_attribute_table): Add "deprecated" entry.
13711         (handle_deprecated_attribute): New function.
13712         * c-decl.c (deprecated_states): New enum.
13713         deprecated_state: State of "deprecated" handling.
13714         (start_decl): Set deprecated_state based on attributes.
13715         (grokdeclarator): Test for deprecated uses, propagate attribute.
13716         * c-typeck.c (build_component_ref): Test for deprecated fields.
13717         (build_external_ref): Test for deprecated primaries.
13718         * diagnostic.c (warn_deprecated_use) New function to issue
13719         warnings about __attribute__ ((depricated)) references.
13720         * flags.h (warn_deprecated_decl): Extern declared for
13721         -W[no-]deprecated-declarations option.
13722         * print-tree.c (print_node): Show deprecated flag status.
13723         * toplev.c (warn_deprecated_decl): Defined.
13724         (W_options): Added "deprecated-declaration".
13725         * toplev.h (warn_deprecated_use): Extern declared.
13726         * tree.h (struct tree_common): Define deprecated_flag.
13727         (TREE_DEPRECATED): New macro to access flag.
13728         * cp/call.c (build_call): Test for deprecated calls.
13729         * cp/class.c (add_implicitly_declared_members): Set global
13730         flag to tell grokdeclarator to not issue deprecated warnings.
13731         * cp/cp-tree.h: Add extern for adding_implicit_members.
13732         * cp/decl.c (deprecated_states): New enum.
13733         (start_decl): Set deprecated_state based on attributes.
13734         (grokdeclarator): Test for deprecated uses, propagate attribute.
13735         * cp/lex.c (do_identifier): Test for deprecated primaries.
13736         * cp/typeck.c (build_component_ref): Test for deprecated fields.
13737
13738 2002-01-10  Ira Ruben   <ira@apple.com>
13739
13740         Fix to assign attributes to inline member functions.
13741         * cp/decl.c (start_method): Handle attrlist.
13742
13743 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13744
13745         * combine.c (expand_field_assignment): Use subreg_lsb().
13746
13747 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
13748
13749         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13750         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13751         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13752         Recurse for any operand of AND as long as constant is non-zero.
13753
13754 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13755
13756         * config/h8300/h8300.md: Remove constraints from expanders.
13757
13758 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13759
13760         * varasm.c: Fix formatting.
13761         * varray.c: Likewise.
13762         * vmsdbgout.c: Likewise.
13763         * xcoffout.c: Likewise.
13764
13765 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
13766
13767         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13768         update edge probabilities to match.
13769
13770 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13771
13772         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13773         dependencies.
13774         * doc/languages.texi, doc/sourcebuild.texi: New files.
13775         * doc/configfiles.texi: Make a subsubsection.  Update.
13776         * doc/configterms.texi: Add @node.  Remove warning that this isn't
13777         instructions for building GCC.
13778         * doc/makefile.texi: Make a subsection.
13779         * doc/gccint.texi: Update.
13780
13781 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
13782
13783         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13784
13785 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13786
13787         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13788
13789 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
13790
13791         * optabs.c (expand_fix): Look for wider integer modes first.
13792
13793         * i386.md (mov?f): Avoid the fake const double trick for medium
13794         memory model.
13795         (min?f*/max?f*): Prohibit memory operands for i387 variant.
13796         (fop_df_4): Disable for SSE compilation.
13797
13798 2002-01-10  Graham Stott  <grahams@redhat.com>
13799
13800         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13801         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13802
13803 2002-01-10  Richard Henderson  <rth@redhat.com>
13804
13805         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13806
13807 2002-01-10  Richard Henderson  <rth@redhat.com>
13808
13809         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13810         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
13811
13812 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13813
13814         * combine.c (can_combine_p): Fix a comment typo.
13815
13816 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
13817
13818         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13819         empty list correctly.  Change loop index $t to $f for
13820         consistency with rest of Makefile.
13821
13822 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
13823
13824         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13825         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13826
13827         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13828         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13829         (altivec_init_builtins): Same.
13830         (altivec_expand_unop_builtin): Return NULL_RTX on error.
13831         (altivec_expand_binop_builtin): Same.
13832         (altivec_expand_ternop_builtin): Same.
13833         (bdesc_dst): New.
13834
13835         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13836         ("altivec_vctuxs"): Fix typo.
13837         ("altivec_vnmsubfp"): Same.
13838         ("altivec_dssall"): New.
13839         ("altivec_mfvscr"): New.
13840         ("altivec_dss"): New.
13841         ("altivec_lvsl"): New.
13842         ("altivec_lvsr"): New.
13843         ("altivec_dstt"): New.
13844         ("altivec_dstst"): New.
13845         ("altivec_dststt"): New.
13846         ("altivec_dst"): New.
13847
13848         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13849         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13850
13851 2002-01-09  Richard Henderson  <rth@redhat.com>
13852
13853         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13854
13855 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
13856
13857         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13858         function.
13859         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13860         prototype.
13861         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13862
13863 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13864
13865         * read-rtl.c: Fix formatting.
13866         * real.c: Likewise.
13867         * regclass.c: Likewise.
13868         * regrename.c: Likewise.
13869         * reg-stack.c: Likewise.
13870         * reload1.c: Likewise.
13871         * reload.c: Likewise.
13872         * rtl.c: Likewise.
13873
13874 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13875
13876         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13877         to extract items in the expr_list chain.
13878
13879 2002-01-09  Richard Henderson  <rth@redhat.com>
13880
13881         * config/vax/vax.c (vax_rtx_cost): Never abort.
13882
13883         * config/vax/vax.h (REAL_ARITHMETIC): Define.
13884
13885 2002-01-09  Jan Hubicka  <jh@suse.cz>
13886
13887         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13888
13889 2002-01-09  Richard Henderson  <rth@redhat.com>
13890
13891         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13892         Unify code from various alternatives.
13893
13894 2002-01-09  Richard Henderson  <rth@redhat.com>
13895
13896         * regrename.c (copy_value): Ignore the copy if the source register
13897         is present in the value chain with a narrower mode.
13898
13899 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
13900
13901         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13902         for the c4x target. Also improve layout.
13903
13904 2002-01-09  Richard Henderson  <rth@redhat.com>
13905
13906         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13907         * config/m32r/m32r.md (and ior xor splitters): Swap operands
13908         to match insn patterns.
13909
13910 2002-01-09  Richard Henderson  <rth@redhat.com>
13911
13912         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13913         (copyprop_hardreg_forward_1): Likewise.
13914
13915 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13916
13917         * pa.md (decrement_and_branch_until_zero): Change predicate for
13918         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13919
13920 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
13921
13922         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13923         gets undefined. For Darwin.
13924
13925 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13926
13927         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13928
13929 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13930
13931         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13932
13933 2002-01-08  Richard Henderson  <rth@redhat.com>
13934
13935         * regrename.c (copy_value): Ignore overlapping copies.
13936
13937 2002-01-08  Richard Henderson  <rth@redhat.com>
13938
13939         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13940         as needed to avoid shared structure.
13941
13942 2002-01-08  Kazu Hirata  <kazu@hxi.com>
13943
13944         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13945         H8/300H and H8/S.
13946
13947 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13948
13949         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13950         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13951         documentation of obsolete macros.
13952         * system.h: Poison these macros.
13953         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13954         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13955         config/c4x/c4x.h, config/clipper/clipper.h,
13956         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13957         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13958         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13959         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13960         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13961         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13962         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13963         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13964         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13965         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13966         config/sparc/sparc.h, config/stormy16/stormy16.h,
13967         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13968         definitions and commented out definitions of obsolete macros.
13969         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13970         of MAX_INT_TYPE_SIZE.
13971
13972 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
13973
13974         * config/s390/s390.c (s390_preferred_reload_class): Never
13975         return ADDR_REGS if it isn't a subset of the given class.
13976         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13977         FP_REGS, but all superclasses as well.
13978
13979         * config/s390/s390.c (s390_function_profiler): Fix thinko.
13980
13981         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13982         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13983         must not be a const_int.
13984
13985 2002-01-08  Richard Henderson  <rth@redhat.com>
13986
13987         * Makefile.in (toplev.o): Depend on options.h.
13988         (gcc.o): Depend on specs.h.
13989
13990 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
13991
13992         * expr.c (store_expr): Convert VOIDmode constants back to target's
13993         mode.
13994
13995 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13996
13997         * doc/invoke.texi: Markup gcc as @command.  Refer to
13998         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13999         of http://gcc.gnu.org/thanks.html.
14000
14001 2002-01-08  Dale Johannesen  <dalej@apple.com>
14002
14003         * config/rs6000/rs6000.md: Add missing int register
14004         target case to movdf_low.
14005
14006 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
14007
14008         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
14009         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
14010         (cppinit.o): Depend on except.h.
14011         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
14012         s-specs): New rules.
14013
14014         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
14015         Don't create specs.h/options.h/gencheck.h here.  Remove
14016         unnecessary variable settings from last argument of AC_OUTPUT.
14017         * config.in, configure: Regenerate.
14018         * intl.c: Hardcode package name as "gcc".
14019
14020         * cppinit.c: Include except.h.
14021         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
14022         appropriate.
14023         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
14024         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
14025         (!)USING_SJLJ_EXCEPTIONS.
14026         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
14027
14028 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14029
14030         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
14031         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
14032         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
14033         documentation of obsolete macros.
14034         * system.h: Poison these macros.
14035         * config/d30v/d30v.h, config/ns32k/encore.h,
14036         config/stormy16/stormy16.h: Remove definitions and commented out
14037         definitions of obsolete macros.
14038
14039 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
14040
14041         * objc/objc-act.c (handle_class_ref): Mark the declaration of
14042         %sobjc_class_ref_%s as used - to prevent unwanted compiler
14043         warnings.
14044
14045 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
14046
14047         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
14048         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
14049         to insn adjusting stack/frame pointer.
14050         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
14051         accept operands that cause the insn to be non-splittable.
14052
14053 2002-01-08  Graham Stott  <grahams@redhat.com>
14054
14055         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
14056         (C_TYPE_FIELDS_VOLATILE): Likewise.
14057         (C_TYPE_BEING_DEFINED): Likewise.
14058         (C_IS_RESERVED_WORD): Likewise.
14059         (C_TYPE_VARIABLE_SIZE): Likewise.
14060         (C_DECL_VARIABLE_SIZE): Likewise.
14061         (C_MISSING_PROTOTYPE_WARNED): Likewise.
14062         (C_SET_EXP_ORIGINAL_CODE): Likewise.
14063         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
14064         parenthesis.
14065         (C_DECL_ANTICIPATED): Likewise.
14066         (c_build_type_variant): Add parenthesis.
14067
14068 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14069
14070         * gcc.c (option_map): Remove --version.
14071         (process_command): Handle -fversion following the GNU Coding
14072         Standards.  Partially addresses PR other/704.
14073
14074 2002-01-08  Graham Stott  <grahams@redhat.com>
14075
14076         * combine.c (combine_instructions): Fix typo.
14077
14078 2002-01-08  Graham Stott  <grahams@redhat.com>
14079
14080         * debug.h: Use "tree" and "rtx" throughout.
14081
14082         * debug.c: Likewise.
14083
14084 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
14085
14086         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
14087         constant pool, use the pool's version of the symbol instead.
14088
14089 2002-01-07  Richard Henderson  <rth@redhat.com>
14090
14091         * regrename.c (find_oldest_value_reg): Ignore the value chain if
14092         the original register was copied in a mode with a fewer number of
14093         hard registers than the desired mode.
14094         (copyprop_hardreg_forward_1): Likewise.
14095         (debug_value_data): Fix loop test.
14096         * toplev.c (parse_options_and_default_flags): Reenable
14097         -fcprop-registers at -O1.
14098
14099 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14100
14101         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
14102         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
14103
14104         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
14105         predicates.
14106
14107         * config/rs6000/rs6000.md: Add altivec predicate patterns.
14108
14109 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14110
14111         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
14112         (pa_output_function_prologue): Output local label at the beginning of
14113         the prologue when profiling.
14114         (hppa_profile_hook): Use the local label rather than the function label.
14115         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
14116
14117 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14118
14119         * config/rs6000/rs6000.c (print_operand): Remove extra space.
14120         (altivec_expand_unop_builtin): Fix thinko.
14121         (altivec_expand_binop_builtin): Same.
14122         (altivec_expand_ternop_builtin): Same.
14123         (altivec_expand_builtin): Same.
14124
14125 2002-01-07  Richard Henderson  <rth@redhat.com>
14126
14127         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
14128
14129 2002-01-07  Jason Merrill  <jason@redhat.com>
14130
14131         * unwind-dw2.c (execute_cfa_program): Use < again.
14132
14133 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
14134
14135         * predict.c (combine_predictions_for_insn): Avoid division by zero.
14136
14137 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
14138
14139         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
14140         Don't allow -1 - x -> ~x simplifications in the first pass.
14141
14142 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
14143
14144         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
14145         arguments.
14146         (altivec_expand_binop_builtin): Same.
14147         (altivec_expand_unop_builtin): Same.
14148         (print_operand): Fix typo.
14149         (bdesc_1arg): Add vupk* variants.
14150
14151         * rs6000.h (rs6000_builtins): Add vupk* enums.
14152
14153         * rs6000.md: Add altivec_vupk* variants.
14154
14155 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
14156
14157         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
14158         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
14159         and last update dates.
14160
14161 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
14162
14163         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
14164
14165 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14166
14167         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14168         * config/avr/avr.h (CPP_SPEC): Likewise.
14169         (LINK_SPEC): Likewise.
14170         (CRT_BINUTILS_SPECS): Likewise.
14171         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14172         * doc/invoke.texi (AVR Options): Document them.
14173
14174 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
14175
14176         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14177         LABEL_NUSES.
14178
14179 2002-01-07  Graham Stott  <grahams@redhat.com>
14180
14181         * config/i386/i386.h: Update copyright date.
14182         (HALF_PIC_PTR): Add parenthesis.
14183         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14184         (CONSTANT_ALIGNMENT): Add parenthesis.
14185         (DATA_ALIGNMENT): Likewise.
14186         (LOCAL_ALIGNMENT): Likewise.
14187         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14188         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14189         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14190         (HARD_REGNO_NREGS): Add paranethesis.
14191         (VALID_SSE_REG_MODE): Whitespace.
14192         (VALID_MMX_REG_MODE): Whitespace.
14193         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14194         (ix86_hard_regno_mode_ok): Add parenthesis.
14195         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14196         (RETURN_IN_MEMORY): Whitespace.
14197         (N_REG_CLASSES): Add parenthesis.
14198         (INTEGER_CLASS_P): Add parenthesis and wrap.
14199         (FLOAT_CLASS_P): Likewise.
14200         (SSE_CLASS_P): Likewise.
14201         (MMX_CLASS_P): Likewise.
14202         (MAYBE_INTEGER_CLASS_P): Likewise.
14203         (MAYBE_FLOAT_CLASS_P): Likewise.
14204         (MAYBE_SSE_CLASS_P): Likewise.
14205         (MAYBE_MMX_CLASS_P): Likewise.
14206         (Q_CLASS_P): Likewise.
14207         (GENERAL_REGNO_P): Uppercase macro parameter.
14208         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14209         (FP_REGNO_P): Likewise.
14210         (ANY_FP_REGNO_P): Uppercase macro parameter.
14211         (SSE_REGNO_P): Likewise.
14212         (SSE_REGNO): Likewise.
14213         (SSE_REG_P): Likewise.
14214         (SSE_FLOAT_MODE_P): Likewise.
14215         (MMX_REGNO_P): Likewise.
14216         (MMX_REG_P):Likewise.
14217         (STACK_REG_P): Likewise.
14218         (NON_STACK_REG_P): Likewise.
14219         (STACK_TOP_P): Likewise.
14220         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14221         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14222         (SECONDARY_MEMORY_NEEDED): Likewise.
14223         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14224         (MD_ASM_CLOBBERS): Whitespace and wrap.
14225         (MUST_PASS_IN_STACK): Whitespace and wrap.
14226         (RETURN_POPS_ARGS): Add parenthesis.
14227         (INIT_CUMULATIVE_ARGS): Likewise.
14228         (FUNCTION_ARG): Likewise.
14229         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14230         (SETUP_INCOMING_VARARGS): Likewise.
14231         (BUILD_VA_LIST_TYPE):  Add parenthesis.
14232         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14233         parenthsis.
14234         (EXPAND_BUILTIN_VA_ARG): Likewise.
14235         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14236         (INITIALIZE_TRAMPOLINE): Add parenthesis.
14237         (INITIAL_ELIMINATION_OFFSET): Likewise.
14238         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14239         (REGNO_OK_FOR_BASE_P): Likewise.
14240         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14241         (REGNO_OK_FOR_DIREG_P): Likewise.
14242         (REG_OK_FOR_INDEX_P): Whitespace.
14243         (REG_OK_FOR_BASE_P): Whitespace.
14244         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14245         parenthesis.
14246         (FIND_BASE_TERM): Fix typo.
14247         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
14248         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14249         (SYMBOLIC_CONST; Whitespace.
14250         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
14251         (ENCODE_SECTION_INFO): Whitespace.
14252         (FINALIZE_PIC): Remove do { ... } while (0).
14253         (PROMOTE_MODE): Wrap in do { ... } while (0).
14254         (CONST_COSTS): Whitespace.
14255         (RTX_COSTS): Add paramethesis, whitespace and wrap.
14256         (REGISTER_MOVE_COST): Add parenthesis.
14257         (MEMORY_MOVE_COST): Likewise.
14258         (EXTRA_CC_MODES): Whitespace.
14259         (SELECT_CC_MODE): Add parenthesis and whitespace.
14260         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14261         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14262         (ASM_OUTPUT_LABEL): Add paramethesis.
14263         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14264         (ASM_OUTPUT_REG_POP): Likewise.
14265         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14266         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14267
14268         * config/i386/i386.c: Update copyright.
14269         (CHECK_STACK_LIMIT): Add parenthesis.
14270         (AT_BP): Uppercase macro parameter.
14271         (x86_64_int_parameter_registers): Constify.
14272         (x86_64_int_return_registers): Likewise.
14273         (ix86_compare_op0): Use rtx.
14274         (construct_container): Constify INTREG parameter.
14275         (function_arg): Use rtx.
14276
14277         * diagnostic.h: Update copyright date.
14278         (output_buffer_state): Add parenthesis.
14279         (output_buffer_format_args): Likewise.
14280
14281         * combine.c (combine_instructions): Replace XEXP (links, 0)
14282         with link.
14283
14284 2002-01-06  H.J. Lu <hjl@gnu.org>
14285
14286         * cfgcleanup.c (thread_jump): Fix 2 typos.
14287
14288 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
14289
14290         * config.gcc: Add support for --enable-altivec.
14291
14292 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14293
14294         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14295
14296 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
14297
14298         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14299         __objc_class_name_*.
14300
14301 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14302
14303         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14304
14305 2002-01-06  Richard Henderson  <rth@redhat.com>
14306
14307         * reorg.c (emit_delay_sequence): Remove death notes, not merely
14308         nop them out.  Increment label reference count for REG_LABEL.
14309         (fill_slots_from_thread): Frob label reference count around
14310         delete_related_insns.
14311
14312 2002-01-05  Richard Henderson  <rth@redhat.com>
14313
14314         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14315         jump threading.
14316
14317 2002-01-05  Richard Henderson  <rth@redhat.com>
14318
14319         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14320         * integrate.c (output_inline_function): Likewise.
14321         * toplev.c (rest_of_compilation): Do it here instead.  Move call
14322         to remove_unnecessary_notes after emitting abstract instance.
14323         Force an emitted nested function to have its parent emited as well.
14324         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14325         for null.
14326         (rtl_for_decl_location): Do not look at reload data structures
14327         before reload has run.
14328
14329 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14330
14331         * cse.c: Fix formatting.
14332         * dwarf2asm.c: Likewise.
14333         * dwarf2out.c: Likewise.
14334         * explow.c: Likewise.
14335         * expmed.c: Likewise.
14336         * function.c: Likewise.
14337         * gcov.c: Likewise.
14338         * gencheck.c: Likewise.
14339         * genrecog.c: Likewise.
14340         * ggc-common.c: Likewise.
14341         * ggc-page.c: Likewise.
14342         * global.c: Likewise.
14343
14344 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14345
14346         * combine.c: Fix formatting.
14347
14348 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
14349
14350         PR middle-end/1557
14351         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14352
14353 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
14354
14355         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14356         as 1 for __powerpc64__ as well.
14357
14358         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14359
14360         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14361         return it.
14362
14363 2002-01-05  Daniel Berlin  <dan@dberlin.org>
14364
14365         * lcm.c: Revert change, due to performance regression it causes on
14366         SPEC because it's slightly more conservative (sigh, I hate
14367         edge-based LCM).
14368
14369 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
14370
14371         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14372
14373 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14374
14375         * doc/cppinternals.texi: Update.
14376
14377 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
14378
14379         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14380         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14381         negatives.
14382         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
14383         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14384         kludge for pre-october-14th mmix versions to handle new-found bug
14385         with PUSHJ/PUSHGO and the register stack.
14386         * config/mmix/mmix.h (struct machine_function): Rename member
14387         has_call_value_without_parameters to has_call_without_parameters.
14388         All referers changed.
14389         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14390         TARGET_MASK_BRANCH_PREDICT): New macros.
14391         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14392         -mno-reg-stack-fill-bug-workaround.
14393         * config/mmix/mmix.md ("call"): Set struct machine member
14394         has_call_without_parameters.
14395
14396 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
14397
14398         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14399
14400 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14401
14402         * cfgcleanup.c: Include tm_p.h
14403         (mark_effect): Fix handling of hard register; fix handling of SET
14404
14405 2002-01-04  Kazu Hirata  <kazu@hxi.com>
14406
14407         * config/h8300/h8300.md (anonymous patterns): Check that
14408         operands are registers before using REGNO on them.
14409
14410 2002-01-03  Roland McGrath  <roland@frob.com>
14411
14412         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14413
14414 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
14415
14416         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14417         * c-common.h (genrtl_expr_stmt_value): Likewise.
14418         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14419         (expand_expr_stmt_value): Add maybe_last argument.
14420         Don't warn about statement with no effect if it is the last statement
14421         in expression statement.
14422         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14423         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14424         expand_expr_stmt_value.
14425         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14426         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14427         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14428         as maybe_last to expand_expr_stmt_value.
14429
14430 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
14431
14432         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14433         be passed in, do not build it.
14434         (c_begin_if_stmt): New function.
14435         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14436         * c-common.h (c_expand_start_cond): Update prototype.
14437         (c_begin_if_stmt): Prototype new function.
14438         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14439         * c-parse.in (if_prefix): Use c_begin_if_stmt,
14440         c_begin_while_stmt and c_finish_while_stmt_cond.
14441
14442 2002-01-04  William Cohen  <wcohen@redhat.com>
14443
14444         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14445         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14446         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14447         * config/pa/som.h (ASM_FILE_START): Likewise.
14448
14449 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
14450
14451         * lcm.c: Include df.h.
14452         Add available_transfer_function prototype.
14453         (compute_available): Rework to use iterative dataflow framework.
14454         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14455         with bb_info in df.h
14456         (available_transfer_function): New function.
14457
14458         * Makefile.in (lcm.o): add df.h to dependencies.
14459
14460 2002-01-04  Richard Henderson  <rth@redhat.com>
14461
14462         * config/alpha/alpha.c (some_operand): Accept HIGH.
14463         (input_operand): Likewise; accept simple references to globals.
14464         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14465         (alpha_const_double_ok_for_letter_p): Likewise.
14466         (alpha_extra_constraint): Likewise.
14467         (alpha_preferred_reload_class): Likewise.  Do not force
14468         symbolic constants to memory.
14469         (alpha_legitimate_address_p): Accept simple references
14470         to small_symbolic_operand.
14471         (alpha_legitimize_address): New arg scratch.  Be prepared to be
14472         called when no_new_pseudos.  Emit simple symbolic references.
14473         Split integers into low, high, and rest.
14474         (alpha_expand_mov): Use alpha_legitimize_address.
14475         (some_small_symbolic_mem_operand): New.
14476         (split_small_symbolic_mem_operand): New.
14477         * config/alpha/alpha-protos.h: Update.
14478         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14479         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14480         (EXTRA_CONSTRAINT): Likewise.
14481         (PREFERRED_RELOAD_CLASS): Likewise.
14482         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14483         (PREDICATE_CODES): Update.
14484         * config/alpha/alpha.md: New post-reload splitters to convert
14485         simplfied symbolic operands to the form that references $29.
14486         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14487         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14488
14489 2002-01-03  Richard Henderson  <rth@redhat.com>
14490
14491         * local-alloc.c (function_invariant_p): Update commentary.
14492
14493 2002-01-04  H.J. Lu <hjl@gnu.org>
14494
14495         * toplev.c (rest_of_compilation): Fix a typo when calling
14496         cleanup_cfg.
14497
14498 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14499
14500         * c-common.c: Fix formatting.
14501         * diagnostic.c: Likewise.
14502         * doloop.c: Likewise.
14503         * dwarf2out.c: Likewise.
14504
14505 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14506
14507         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14508         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14509
14510 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14511
14512         * cpperror.c: Update comments and copyright.
14513         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14514         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14515
14516 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14517
14518         * collect2.c (main): Use strcmp when testing for "-shared".
14519
14520 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14521
14522         * cppmacro.c: Don't include intl.h.  Update comments.
14523         (new_number_token): Allocate enough buffer for 64-bit unsigned
14524         integers; update prototype.
14525         * cppmain.c: Update comments.
14526
14527 2002-01-03  William Cohen  <wcohen@redhat.com>
14528
14529         * function.h (struct function): Add profile.
14530         (current_function_profile): New.
14531         doc/extend.texi: Update documentation.
14532         * final.c (final_start_function): Use current_function_profile
14533         instead of profile_flag.
14534         (profile_after_prologue): Likewise.
14535         * function.c (expand_function_start): Likewise.
14536         (expand_function_start): Likewise.
14537         * config/alpha/alpha.c (direct_call_operand):
14538         (alpha_does_function_need_gp): Likewise.
14539         (alpha_expand_prologue): Likewise.
14540         * config/arm/arm.c (arm_expand_prologue): Likewise.
14541         thumb_expand_prologue: Likewise.
14542         * config/d30v/d30v.c (d30v_stack_info): Likewise.
14543         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14544         (fr30_expand_prologue): Likewise.
14545         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14546         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14547         * config/i386/i386.h (FINALIZE_PIC): Likewise.
14548         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14549         * config/i960/i960.c (i960_output_function_prologue): Likewise.
14550         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14551         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14552         (m32r_expand_prologue): Likewise.
14553         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14554         (m88k_expand_prologue): Likewise.
14555         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14556         * config/mips/mips.c (compute_frame_size): Likewise.
14557         (mips_expand_prologue): Likewise.
14558         (mips_can_use_return_insn): Likewise.
14559         * config/pa/elf.h (ASM_FILE_START): Likewise.
14560         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14561         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14562         * config/pa/som.h (ASM_FILE_START): Likewise.
14563         * config/romp/romp.c (romp_using_r14): Likewise.
14564         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14565         (rs6000_stack_info): Likewise.
14566         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14567         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14568         * config/v850/v850.c (compute_register_save_size): Likewise.
14569
14570 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
14571
14572         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14573         gen_lowpart_common fails, use gen_lowpart_SUBREG.
14574
14575 2002-01-03  Turly O'Connor  <turly@apple.com>
14576
14577         * darwin.c (machopic_output_possible_stub_label): Don't generate
14578         stub routines for pseudo-stubs which we've just defined.
14579
14580 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14581
14582         * builtins.c: Fix formatting.
14583         * c-typeck.c: Likewise.
14584         * combine.c: Likewise.
14585         * expr.c: Likewise.
14586         * loop.c: Likewise.
14587
14588 2002-01-03  Andreas Schwab  <schwab@suse.de>
14589
14590         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14591         and return true if _cpp_push_next_buffer pushed a new include
14592         file.
14593         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14594         _cpp_pop_file_buffer did not push a new file.
14595         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14596
14597 2002-01-02  Eric Christopher  <echristo@redhat.com>
14598
14599         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14600         FIND_REG_INC_NOTE call. Update copyright.
14601         * loop.c (canonicalize_condition): Ditto.
14602         * reorg.c (delete_scheduled_jump): Ditto.
14603
14604 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14605
14606         * gcse.c: Fix formatting.
14607
14608 2002-01-03  Graham Stott  <grahams@redhat.com>
14609
14610         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14611         forward defs for struct tags rtx_def, union_tree, rtvec_def
14612         also output corresponding typedefs for rtx, tree, and rtvec.
14613
14614         * system.h: Move forward defs for struct tags rtx_def, union_tree,
14615         rtvec_def along with corresponding typedefs for rtx, tree, and
14616         rtvec to config.h, hconfig.h, tconfig.h.
14617
14618 2002-01-03  Graham Stott  <grahams@redhat.com>
14619
14620         * tree.h: Update copyright date.
14621         (IS_EXPR_CODE_CLASS): Add parenthesis.
14622         (TREE_SET_CODE): Add whitespace.
14623         (TREE_CHECK): Add parenthesis.
14624         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14625         (CST_OR_CONSTRUCTOR_CHECK):
14626         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14627         (TREE_SYMBOL_REFERENCED): Whitespace.
14628         (INT_CST_LT): Likewise.
14629         (INT_CST_LT_UNSIGNED): Likewise.
14630         (tree_real_cst): Unwrap comment.
14631         (tree_string): Likewise.
14632         (tree_complex): Likewise.
14633         (IDENTIFIER_POINTER): correct cast.
14634         (SAVE_EXPR_CONTEXT): Whitespace.
14635         (EXPR_WFL_FILENAME_NODE): Likewise.
14636         (EXPR_WFL_FILENAME): Remove parenthesis.
14637         (DECL_ORIGIN): Add parenthesis.
14638         (DECL_FROM_INLINE): Use NULL_TREE.
14639         (build_int_2): Whitespace.
14640         (build_type_variant): Add parenthesis.
14641
14642         * gcc/jcf-parse.c: Update copyright date.
14643         (yyparse): Constify resource_filename.
14644
14645 2002-01-03  Graham Stott  <grahams@redhat.com>
14646
14647         * rtl.h: Update copyright date.
14648         (RTL_CHECK1): Wrap long line.
14649         (RTL_CHECK2): Likewise.
14650         (RTL_CHECKC1): Wrap long line and whitespace.
14651         (RTL_CHECKC2): Likewise.
14652         (XWINT): Whitespace.
14653         (XINT): Likewise.
14654         (XSTR): Likewise.
14655         (XEXP): Likewise.
14656         (XVEC): Likewise.
14657         (XMODE): Likewise.
14658         (XBITMAP): Likewise.
14659         (XTREE): Likewise.
14660         (XBBDEF): Likewise.
14661         (XTMPL): Likewise.
14662         (X0WINT): Likewise.
14663         (X0INT):Likewise.
14664         (X0UINT): Likewise.
14665         (X0STR): Likewise.
14666         (X0EXP): Likewise.
14667         (X0VEC): Likewise.
14668         (X0MODE): Likewise.
14669         (X0BITMAP): Likewise.
14670         (X0TREE): Likewise.
14671         (X0BBDEF): Likewise.
14672         (X0ADVFLAGS): Likewise.
14673         (X0CSELIB): Likewise.
14674         (X0MEMATTR): Likewise.
14675         (XCWINT): Likewise.
14676         (XCINT): Likewise.
14677         (XCUINT): Likewise.
14678         (XCSTR): Likewise.
14679         (XCEXP): Likewise.
14680         (XCVEC): Likewise.
14681         (XCMODE): Likewise.
14682         (XCBITMAP): Likewise.
14683         (XCTREE): Likewise.
14684         (XCBBDEF): Likewise.
14685         (XCADVFLAGS): Likewise.
14686         (XCCSELIB): Likewise.
14687         (XC2EXP): Likewise.
14688         (INSN_UID): Likewise.
14689         (PREV_INSN): Likewise.
14690         (PATTERN): Likewise.
14691         (INSN_CODE): Likewise.
14692         (PUT_REG_NOTE_KIND): Likewise.
14693         (CODE_LABEL_NUMBER): Likewise.
14694         (NOTE_SOURCE_FILE): Likewise.
14695         (NOTE_BLOCK): Likewise.
14696         (NOTE_EH_HANDLER): Likewise.
14697         (NOTE_RANGE_INFO): Likewise.
14698         (NOTE_LIVE_INFO): Likewise.
14699         (NOTE_BASIC_BLOCK): Likewise.
14700         (NOTE_EXPECTED_VALUE): Likewise.
14701         (NOTE_LINE_NUMBER): Likewise.
14702         (LABEL_NAME): Likewise.
14703         (LABEL_NUSES): Likewise.
14704         (LABEL_ALTERNATE_NAME): Likewise.
14705         (ADDRESSOF_DECL): Likewise.
14706         (JUMP_LABEL): Likewise.
14707         (LABEL_NEXTREF): Likewise.
14708         (REGNO): Likewise.
14709         (ORIGINAL_REGNO: Likewise.
14710         (HARD_REGISTER_NUM_P): Add parenthesis.
14711         (SUBREG_REG): Whitespace.
14712         (SUBREG_BYTE): Likewise.
14713         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14714         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14715         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14716         (ASM_OPERANDS_INPUT_VEC): Likewise.
14717         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14718         (ASM_OPERANDS_INPUT): Likewise.
14719         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14720         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14721         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14722         (ASM_OPERANDS_INPUT_MODE): Likewise.
14723         (ASM_OPERANDS_SOURCE_FILE): Likewise.
14724         (ASM_OPERANDS_SOURCE_LINE): Likewise.
14725         (MEM_SET_IN_STRUCT_P): Minor reformat.
14726         (TRAP_CONDITION): Whitespace.
14727         (TRAP_CODE): Likewise.
14728         (COND_EXEC_TEST): Likewise.
14729         (COND_EXEC_CODE): Likewise.
14730         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14731         (PHI_NODE_P): Add parenthesis.
14732         (plus_constant): Whitespace and add parenthesis.
14733
14734 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14735
14736         * config/avr/avr.c: Fix comment typos.
14737         * config/c4x/c4x.md: Likewise.
14738         * config/dsp16xx/dsp16xx.h: Likewise.
14739         * config/dsp16xx/dsp16xx.md: Likewise.
14740         * config/i386/i386.md: Likewise.
14741         * config/ia64/ia64.c: Likewise.
14742         * config/m32r/m32r.h: Likewise.
14743         * config/m68hc11/m68hc11.md: Likewise.
14744         * config/mmix/mmix.c: Likewise.
14745         * config/mn10200/mn10200.c: Likewise.
14746         * config/romp/romp.c: Likewise.
14747         * config/sh/sh.c: Likewise.
14748         * config/stormy16/stormy16.c: Likewise.
14749         * config/stormy16/stormy16.h: Likewise.
14750         * config/stormy16/stormy16.md: Likewise.
14751
14752 2002-01-03  Graham Stott  <grahams@redhat.com>
14753
14754         * loop.h: Update copyright date.
14755         (LOOP_MOVABLES): Fix typo.
14756         (LOOP_REGS): Likewise.
14757         (LOOP_IVS): Likewise.
14758
14759 2002-01-03  Graham Stott  <grahams@redhat.com>
14760
14761         * cppinit.c: Update copyright date.
14762         Don't include output.h
14763         * Makefile.in: Update copyright date.
14764         Update dependency.
14765
14766 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14767
14768         PR c/5226
14769         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14770         (-pthread) Add to RS/6000 options.
14771
14772 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14773
14774         * except.c: Fix comment typos.
14775         * loop.c: Likewise.
14776         * varasm.c: Likewise.
14777         * doc/tm.texi: Fix a typo.
14778
14779 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
14780
14781         * c-typeck.c (output_init_element): Allow initializing static storage
14782         duration objects with compound literals.
14783
14784 2002-01-02  Richard Henderson  <rth@redhat.com>
14785
14786         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14787         after abusing it.
14788
14789 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14790
14791         * gcc.c (default_compilers): Const-ify.
14792         * mips-tdump.c (stab_names): Likewise.
14793         * mips-tfile.c (map_coff_types, map_coff_storage,
14794         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14795         pseudo_ops_t, pseudo_ops): Likewise.
14796         * protoize.c (default_include): Likewise
14797
14798         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14799         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14800         Add array size in declaration.
14801         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14802         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14803         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14804         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14805         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14806         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14807         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14808         emtens, make_nan): Const-ify.
14809         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14810         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14811
14812 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
14813
14814         * config.gcc (ia64-*-*): Set extra_headers.
14815         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
14816         * config/alpha/t-osf: Remove.
14817         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14818
14819 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
14820
14821         * config/rs6000/t-aix43: Revert previous change.
14822
14823 2002-01-02  Jason Merrill  <jason@redhat.com>
14824
14825         * c-decl.c (c_expand_body): Call outlining_inline_function when
14826         emitting an inline function out of line.
14827
14828 2002-01-02  Richard Henderson  <rth@redhat.com>
14829
14830         * dwarf2out.c (limbo_die_node): Add created_for member.
14831         (new_die): New argument created_for.  Update all callers.
14832         (mark_limbo_die_list): New.
14833         (dwarf2out_init): Register limbo_die_list as a root.
14834         (dwarf2out_finish): Force insert limbo dies into their function
14835         context.
14836
14837 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
14838
14839         PR c++/5089
14840         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14841
14842 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14843
14844         * config/h8300/fixunssfsi.c: Update copyright.
14845         Fix comment typos.
14846         Fix formatting.
14847         * config/h8300/h8300.c: Update copyright.
14848         Eliminate warnings.
14849
14850 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14851
14852         * config/romp/romp.c: Fix comment formatting.
14853         * config/romp/romp.h: Likewise.
14854         * config/romp/romp.md: Likewise.
14855         * config/s390/s390.c: Likewise.
14856         * config/stormy16/stormy16.c: Likewise.
14857         * config/stormy16/stormy16.h: Likewise.
14858
14859 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
14860
14861         * c-common.h (genrtl_expr_stmt_value): Declare.
14862         * c-semantics.c (genrtl_goto_stmt): Redirect to...
14863         (genrtl_goto_stmt_value): ... this new function.  Pass new
14864         argument down to expand_expr_stmt_value, taking
14865         TREE_ADDRESSABLE into account.
14866         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14867         STMT_EXPR as addressable, i.e., one whose result we want.
14868         * expr.c (expand_expr): Don't save expression statement value
14869         of labeled_blocks or loop_exprs.
14870         * stmt.c (expand_expr_stmt): Redirect to...
14871         (expand_expr_stmt_value): ... this new function.  Use new
14872         argument to tell whether to save expression value.
14873         (expand_end_stmt_expr): Reset last_expr_type and
14874         last_expr_value if we don't have either.
14875         * tree-inline.c (declare_return_variable): Mark its use
14876         statement as addressable.
14877         * tree.h: Document new use of TREE_ADDRESSABLE.
14878         (expand_expr_stmt_value): Declare.
14879
14880 2002-01-01  Tom Rix  <trix@redhat.com>
14881
14882         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14883         rs6000_emit_allocate_stack.
14884
14885 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
14886
14887         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14888         ${srcdir}/ginclude/ to every entry in extra_headers.
14889         * configure: Regenerate.
14890         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14891         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14892         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14893         * ginclude/proto.h: Rename to config/convex/proto.h.
14894
14895 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14896
14897         * attribs.c (handle_vector_size_attribute): Use host_integerp
14898         and tree_int_cst; remove warnings.
14899         * caller-save.c (insert_restore): Add cast to get rid of warning.
14900         (insert_save): Likewise.
14901         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14902         * regmove.c (find_matches): Add temporary var to kill a warning.
14903
14904 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
14905
14906         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14907         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14908         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14909         (vms-dwarf2eh.o): Add Makefile rule.
14910         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14911         * config/alpha/vms-dwarf2eh.asm: New file.
14912
14913         * gcc.c (delete_if_ordinary): Delete all versions.
14914
14915 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
14916
14917         * config/mmix/mmix.md: Update FIXME to not mention
14918         define_constants.
14919         (MMIX_rJ_REGNUM): New define_constants constant.
14920         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14921         "*movdicc_real"): Adjust contraints formatting.
14922         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14923         for branch prediction.
14924         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14925         output template.
14926         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14927         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14928         number.  Delete related FIXMEs.
14929         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14930         from number to MMIX_rJ_REGNUM.
14931         (TARGET_MASK_BRANCH_PREDICT): New.
14932         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14933         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
14934         value.  Add -mbranch-predict and -mno-branch-predict.
14935         (TARGET_VERSION): Drop date.
14936         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14937         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14938         for finding out global symbols.
14939         (mmix_asm_output_labelref): Revert condition for global symbol.
14940         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14941         (mmix_print_operand_punct_valid_p): A '+' is valid.
14942
14943 See ChangeLog.6 for earlier changes.