OSDN Git Service

* config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-03-05  Richard Henderson  <rth@redhat.com>
2
3         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4
5 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
6
7         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8
9 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10
11         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12         -r command line.  Don't hide any symbols if not building
13         shared libgcc.
14
15 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
16
17         * cfg.c (dump_flow_info): Warn about profile mismatches.
18         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
19         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
20
21 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
22
23         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
24         wide volatile memory by parts.
25
26 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
27
28         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
29         is NULL.
30
31 2002-03-05  Richard Henderson  <rth@redhat.com>
32
33         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
34
35 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
36
37         * toplev.c (documented_lang_options): Document more
38         language-specific options.
39         * doc/invoke.texi (Warning Options): Correct documentation for
40         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
41         * c-decl.c (c_decode_option): Use a table to handle warning options.
42
43 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
44
45         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
46         parameter to mmix_encode_section_info.
47         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
48         relocatably.  Always produce ELF, not mmo if linking relocatably.
49         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
50         first is non-zero, don't add symbol prefix.
51         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
52         prototype accordingly.
53
54 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
55
56         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
57
58 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
59
60         * configure.in: Increase required makeinfo version to 4.1.
61         * configure: Regenerate.
62
63 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
64
65         * .cvsignore: Remove *.info* and genrtl*; these files are generated
66         elsewhere now.
67
68 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
69
70         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
71         * doc/invoke.texi: Fix @math uses.
72
73 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
74
75         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
76         removal
77
78 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
79
80         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
81         (powerpc-*-eabisimaltivec*): Same.
82
83         * config/rs6000/t-ppcendian: New.
84
85 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
86
87         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
88         nonimmediate_src_operand and nonimmediate_lsrc_operand to
89         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
90
91 2002-03-03  Richard Henderson  <rth@redhat.com>
92
93         * toplev.c (rest_of_decl_compilation): Revert last two changes.
94
95 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
96
97         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
98         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
99         tree.c, config/m68k/m68k.c:
100         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
101         REAL_ARITHMETIC blocks unconditional.  Delete some further
102         #ifdef blocks predicated on REAL_ARITHMETIC.
103         * flags.h, toplev.c: Delete remaining references to
104         flag_pretend_float.
105
106         * doc/invoke.texi: Remove documentation of -fpretend-float.
107         * doc/tm.texi: Describe the various REAL_* macros as provided by
108         real.h, not by the target configuration files.
109
110         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
111         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
112         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
113         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
114         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
115         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
116         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
117         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
118         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
119         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
120         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
121         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
122         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
123         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
124         config/xtensa/xtensa.h:
125         Do not define, undefine, or mention in comments any of
126         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
127         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
128         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
129         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
130         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
131         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
132         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
133         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
134         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
135
136 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
137
138         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
139         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
140         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
141         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
142         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
143         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
144         Delete.
145         * defaults.h (BITS_PER_WORD): Define.
146         * doc/tm.texi (BITS_PER_WORD): Document default value.
147
148         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
149         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
150         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
151
152 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
153
154         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
155         lieu of explicit sizeof/sizeof.
156         * i386.c (override_options, ix86_init_mmx_sse_builtins,
157         ix86_expand_builtin): Likewise.
158         * mips.c (mips_add_gc_roots): Likewise.
159         * mmix.c (mmix_output_condition): Likewise.
160         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
161         altivec_init_builtins): Likewise.
162         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
163         * cppexp.c (Nsuff, parse_number): Likewise.
164         * cppinit.c (builtin_array_end): Likewise.
165         * gcc.c (n_default_compilers, process_command): Likewise.
166         * genpreds.c (output_predicate_decls): Likewise.
167         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
168         * lcm.c (N_ENTITIES): Likewise.
169         * stor-layout.c (set_sizetype): Likewise.
170
171 2002-03-03  Richard Henderson  <rth@redhat.com>
172
173         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
174         for types or labels.
175
176 2002-03-03  Richard Henderson  <rth@redhat.com>
177
178         * c-decl.c (start_decl): Initialized variables are not common.
179
180 2002-03-02  Per Bothner  <per@bothner.com>
181
182         * gcc.c (option_map):  Suport new --bootclasspath option.
183         --CLASSPATH is now just an alias for --classpath.
184
185 2002-03-02  Richard Henderson  <rth@redhat.com>
186
187         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
188         load if "internal" visibility.
189         * doc/extend.texi: Document visibility meanings.
190
191 2002-03-02  Richard Henderson  <rth@redhat.com>
192
193         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
194         to functions as well.
195
196 2002-03-02  Richard Henderson  <rth@redhat.com>
197
198         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
199         (handle_visibility_attribute): Don't call assemble_visibility.
200         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
201         without asmspec.  Invoke assemble_alias when needed.
202         * varasm.c (maybe_assemble_visibility): New.
203         (assemble_start_function, assemble_variable, assemble_alias): Use it.
204
205 2002-03-02  Richard Henderson  <rth@redhat.com>
206
207         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
208         invoke ENCODE_SECTION_INFO with first call flag.
209
210         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
211         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
212         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
213         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
214         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
215         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
216         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
217         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
218         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
219         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
220         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
221         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
222         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
223         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
224         config/mcore/mcore-protos.h, config/mcore/mcore.c,
225         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
226         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
227         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
228         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
229         config/sh/sh.h, config/sparc/sparc.h,
230         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
231         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
232         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
233         FIRST argument.  As needed, examine it and do nothing.
234
235         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
236         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
237         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
238
239         * config/arm/t-pe (pe.o): Add dependencies.
240
241 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
242
243         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
244         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
245         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
246         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
247         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
248         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
249         * defaults.h (BITS_PER_UNIT): Define.
250         * doc/tm.texi (BITS_PER_UNIT): Document default value.
251
252 2002-03-02  Kazu Hirata  <kazu@hxi.com>
253
254         * config/h8300/h8300-protos.h: Add a prototype for
255         compute_a_shift_length.
256         * config/h8300/h8300.c (h8300_asm_insn_count): New.
257         (compute_a_shift_length): Likewise.
258         (h8300_adjust_insn_length): Do not adjust insn length of shift
259         insns.
260         * config/h8300/h8300.md (anonymous shift patterns): Use
261         compute_a_shift_length.
262
263 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
264
265         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
266         trunc_int_for_mode.
267
268         * emit-rtl.c (offset_address): Call update_temp_slot_address.
269
270 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
271
272         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
273         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
274         * flags.h (flag_zero_initialized_in_bss): Declare.
275         * toplev.c (flag_zero_initialized_in_bss): New flag.
276         (lang_independent_options): Add flag_zero_initialized_in_bss.
277         * tree.c (initializer_zerop): New function.
278         * tree.h (initializer_zerop): Declare.
279         * varasm.c (assemble_variable): If we can emit bss, put zero
280         initializers in the bss section.
281
282 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
283
284         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
285         like more than one symbol per .weak directive.
286
287 2002-03-01  Richard Henderson  <rth@redhat.com>
288
289         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
290         adjust argument_pointer by pretend_args_size.
291         (ia64_va_start): Adjust va_start address by -pretend_args_size.
292
293 2002-03-01  Kazu Hirata  <kazu@hxi.com>
294
295         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
296
297 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
298
299         * toplev.c (rest_of_compilation): Delete dead jumptables before
300         loop.
301         * flow.c (delete_dead_jumptables): Make global.
302         * rtl.h (delete_dead_jumptables): Declare.
303
304 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
305
306         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
307         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
308         * config/rs6000/xcoff.h (COLLET_EXPORT_LIST): Delete.
309
310 2002-03-01  Kazu Hirata  <kazu@hxi.com>
311
312         * config/h8300/h8300-protos.h: Fix formatting.
313         * config/h8300/h8300.c: Likewise.
314         * config/h8300/h8300.h: Likewise.
315
316 2002-03-01  Kazu Hirata  <kazu@hxi.com>
317
318         * config/h8300/h8300.c (print_operand): Support 16-bit
319         constant addresses.
320         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
321
322 2002-02-28  Richard Henderson  <rth@redhat.com>
323
324         * expmed.c (store_bit_field): Prevent generation of CONCATs;
325         pun complex values as integers; use gen_lowpart instead of
326         gen_rtx_SUBREG.
327         (extract_bit_field): Likewise.
328
329 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
330             David Edelsohn  <edelsohn@gnu.org>
331
332         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
333         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
334         (SUPPORTS_WEAK): Likewise.
335         * output.h (add_weak): Add tree param.
336         * varasm.c (add_weak): Likewise.  Save decl.
337         (struct weak_syms): Add decl field.
338         (mark_weak_decls): New function.
339         (init_varasm_once): ggc_add_root mark_weak_decls.
340         (assemble_start_function): Use ASM_WEAKEN_DECL.
341         (assemble_variable): Likewise.
342         (assemble_alias): Likewise.
343         (declare_weak): Pass decl to add_weak.
344         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
345         (remove_from_pending_weak_list): Declare and define for
346         ASM_WEAKEN_DECL.
347         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
348         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
349         * defaults.h (SUPPORTS_WEAK): Likewise.
350         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
351         .weak for code sym.  Do emit .size for descriptor sym.
352         (ASM_DECLARE_FUNCTION_SIZE): Define.
353         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
354         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
355         .lglobl unless TARGET_XCOFF.  Formatting fixes.
356         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
357         .weak for code sym.
358         (HANDLE_PRAGMA_WEAK): Remove.
359         (ASM_WEAKEN_LABEL): Remove.
360         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
361
362 2002-03-01  Jason Merrill  <jason@redhat.com>
363
364         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
365         (TARGET_EXPR_CLEANUP): New macro.
366
367 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
368
369         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
370         to take ptr_extend into account as third type of extension.
371         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
372         fields used by SUBREG_PROMOTED_UNSIGNED_P.
373         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
374         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
375         * calls.c (precompute_arguments): Use new macro.
376         (expand_call): Ditto.
377         * combine.c (nonzero_bits): Ditto.
378         (record_promoted_value): Ditto.
379         * expr.c (store_expr): Ditto.
380         (expand_expr): Ditto.
381         * function.c (assign_parms): Ditto.
382
383 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
384
385         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
386         override -shared and -shared-libgcc.
387
388 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
389
390         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
391         of "ultrasparc".
392         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
393         to be broken.
394
395 2002-02-28  Richard Henderson  <rth@redhat.com>
396
397         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
398         4 cycle latency from MM producers.
399         (ia64_internal_sched_reorder): Likewise with pipeline flush.
400
401 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
402
403         * mklibgcc.in: Don't use GNU make extension.
404
405 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
406
407         * c-parse.in (STATIC): New terminal.
408         (scspec): New non-terminal.  Update productions accordingly.
409         (program): Remove bogus ifc / end ifc.
410         (array_declarator): Simplify production using STATIC.
411
412 2002-02-28  Jim Meyering  <meyering@lucent.com>
413
414         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
415         \a still means TARGET_BELL.
416
417 2002-02-28  Richard Henderson  <rth@redhat.com>
418
419         * haifa-sched.c (sched_emit_insn): New.
420         (schedule_block): Use last_scheduled_insn to track last insn.
421         * sched-int.h (sched_emit_insn): Prototype.
422         * config/ia64/ia64.c (last_issued): Remove.
423         (ia64_variable_issue): Don't set it.
424         (nop_cycles_until): Use sched_emit_insn.
425
426 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
427
428         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
429         extended constants.
430
431 2002-02-28  Kazu Hirata  <kazu@hxi.com>
432
433         * config/h8300/h8300.c: Fix formatting.
434         * config/h8300/h8300.h: Likewise.
435
436 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
437
438         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
439         which may overwrite the high byte of the frame pointer.
440
441 2002-02-28  Bo Thorsen  <bo@suse.de>
442
443         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
444         (STARTFILE_SPEC): Add 64 bit files.
445         (ENDFILE_SPEC): Likewise.
446
447 2002-02-28  Jason Merrill  <jason@redhat.com>
448
449         * c-decl.c (finish_function): Only warn about missing return
450         statement with -Wreturn-type.
451
452 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
453
454         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
455
456         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
457         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
458
459 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
460
461         * basic-block.h (BB_REACHABLE): Renumber.
462         (BB_DIRTY, BB_NEW): New flags.
463         (clear_bb_flags): Declare.
464         (update_life_info_in_dirty_blocks): Declare.
465         * cfg.c (clear_bb_flags): New function.
466         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
467         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
468         reorder_insns, emit_insn_after): Mark block as dirty.
469         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
470         (update_life_info_in_dirty_blocks): New function.
471         * recog.c (apply_change_group): Dirtify block.
472
473         * cse.c (cse_insn): Reorder emitting of jump insn to keep
474         cfg consistent.
475         * gcse.c (delete_null_pointer_checks): Likewise.
476
477         * toplev.c (dump_file_index): Move cse2 after bp,
478         add DFI_null
479         (dump_file_info): Similary.
480         (rest_of_compilation): Avoid most of CFG rebuilds;
481         do first if converision after null pointer checks, do cse2
482         after branch prediction; avoid full liveness rebuild after
483         initializing subregs.
484         * invoke.texi (-d options): Document -du, renumber.
485
486         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
487         (notice_new_block): Do not set BB_UPDATE_LIFE.
488         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
489          merge_blocks_move_successor_nojumps, merge_blocks,
490          try_crossjump_to_edge): Likewise.
491         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
492         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
493         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
494         (merge_of_block): Do not use life_data_ok.
495         (find_if_case_1): Do not use SET_UPDATE_LIFE.
496         (if_convert): Use BB_DIRTY mechanizm to update life.
497         * lcm.c (optimize_mode_switching): Update
498         update_life_info_in_dirty_blocks
499
500 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
501
502         * Makefile.in (integrate.o): Update.
503         * c-decl.c (copy_lang_decl): Rename.
504         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
505         * integrate.c: Include langhooks.h.
506         (copy_decl_for_inlining): Update to use langhook.
507         * langhooks-def.h (lhd_do_nothing_t,
508         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
509         (LANG_HOOKS_INITIALIZER): Update.
510         * langhooks.c (lhd_do_nothing_t): New.
511         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
512         * tree.h (copy_lang_decl): Remove.
513 objc:
514         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
515
516 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
517
518         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
519         POST_DEC, and POST_MODIFY.
520
521 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
522
523         * c-typeck.c (digest_init): Remove unused parameter; all
524         callers changed.
525
526 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
527
528         * expmed.c (expand_shift): Correctly test for low part of a
529         subreg.
530
531 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
532
533         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
534         insn UIDs with insn addresses.
535
536 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
537
538         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
539         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
540         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
541         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
542         gcc.c, toplev.c: Delete code implementing -traditional mode.
543
544         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
545         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
546         Document removal of -traditional mode for compilation, and
547         remove documentation only relevant to that mode.
548
549         * config/nextstep.h, config/ptx4.h, config/svr4.h,
550         config/convex/convex.h, config/d30v/d30v.h,
551         config/i386/dgux.h, config/i386/osf1elf.h,
552         config/i386/osfelf.h, config/i386/osfrose.h,
553         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
554         config/m68k/hp310.h, config/m88k/dgux.h,
555         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
556         config/m88k/m88k.h, config/m88k/openbsd.h,
557         config/mips/abi64.h, config/mips/osfrose.h,
558         config/mips/svr4-5.h, config/mips/svr4-t.h,
559         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
560         config/stormy16/stormy16.h: Remove all references to
561         -traditional from target specs.  Delete all mention of the
562         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
563         delete a couple of commented-out definitions of
564         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
565         to -traditional.
566
567         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
568         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
569
570 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
571
572         * mklibgcc.in: Don't use \n in a line subject to
573         interpretation by echo.
574
575 2002-02-27  Graham Stott  <grahams@redhat.com>
576
577         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
578         Constify NAME.
579
580         * loop.c (prescan_loop): Handle PARALLEL.
581
582         * unroll.c (loop_iterations): Return 0 if the add_val for
583         a BIV is REG.
584
585         * final.c (output_operand_lossage): Constify PFX_STR.
586
587         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
588
589 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
590
591         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
592         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
593
594 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
595
596         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
597
598 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
599
600         * cpplex.c (_cpp_lex_token): Handle directives in macro
601         arguments.
602         * cpplib.c (_cpp_handle_directive): Save and restore state
603         if parsing macro args when entering a directive.
604         * cppmacro.c (collect_args): No need to handle directives
605         in macro arguments.
606         (enter_macro_context, replace_args): Use the original macro
607         definition in case it was redefined whilst collecting arguments.
608 doc:
609         * cpp.texi: Update.
610
611 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
612
613         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
614         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
615         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
616         method on AIX.
617         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
618         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
619         (load_toc_v4_PIC_2): Same.
620
621 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
622
623         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
624
625 2002-02-26  Richard Henderson  <rth@redhat.com>
626
627         * config/alpha/alpha.md (ashldi_se): Re-enable.
628
629 2002-02-26  Richard Henderson  <rth@redhat.com>
630
631         * config/alpha/alpha.c (alpha_encode_section_info): Examine
632         MODULE_LOCAL_P; improve commentary.
633
634 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
635
636         * doc/cpp.texi: Clarify documentation of relationship between
637         #line and #include.
638
639 2002-02-26  Kazu Hirata  <kazu@hxi.com>
640
641         * config/h8300/h8300-protos.h: Update the prototype for
642         compute_logical_op_length.  Add the prototype for
643         compute_logical_op_cc.
644         * config/h8300/h8300.c (compute_logical_op_length): Figure out
645         code from operands.
646         (compute_logical_op_cc): New.
647         * config/h8300/h8300.md: Combine all the logical op patterns
648         in HImode and SImode.  Use compute_logical_op_cc.
649
650 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
651
652         * config/i386/i386.c (print_operand): Don't append ATT-style
653         length suffixs to x87 opcodes when in Intel mode.
654
655 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
656
657         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
658         (init_emit_once): Update calls.
659         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
660         (init_syntax_once): Prototype.
661
662 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
663
664         * pa-linux.h (LIB_SPEC): Update definition.
665         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
666
667 2002-02-26  Richard Henderson  <rth@redhat.com>
668
669         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
670         if we emitted a stop bit.
671
672 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
673
674         * configure.in (libgcc_visibility): Substitute.
675         * configure: Rebuilt.
676         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
677         defined symbols .hidden.
678
679 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
680
681         * attribs.c (c_common_attribute_table): Add visibility.
682         (handle_visibility_attribute): New function.
683         * varasm.c (assemble_visibility): New function.
684         * output.h (assemble_visibility): Add prototype.
685         * tree.h (MODULE_LOCAL_P): Define.
686         * crtstuff.c (__dso_handle): Use visibility attribute.
687         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
688         for MODULE_LOCAL_P symbols too.
689         * config/ia64/ia64.c (ia64_encode_section_info): Handle
690         MODULE_LOCAL_P symbols the same way as local symbols.
691         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
692         into .sdata/.sbss by the user.
693         * doc/extend.texi (Function Attributes): Document visibility
694         attribute.
695
696 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
697
698         PR debug/5770
699         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
700         STRING_CST initializer spanning the whole variable without
701         embedded zeros.
702         If expand_expr returned MEM, don't use it.
703
704 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
705
706         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
707         generate a die for the lexical block.
708
709 2002-02-26  Kazu Hirata  <kazu@hxi.com>
710
711         * config/h8300/h8300-protos.h: Add a prototype for
712         compute_logical_op_length.
713         * config/h8300/h8300.c (compute_logical_op_length): New.
714         * config/h8300/h8300.md (anonymous logical patterns): Use
715         compute_logical_op_length for length.
716
717 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
718
719         * dwarf2out.c (modified_type_die): Do not call type_main_variant
720         for vectors.
721         (gen_type_die): Same.
722
723         * attribs.c (handle_vector_size_attribute): Set debug information.
724
725 2002-02-26  Daniel Egger  <degger@fhm.edu>
726
727         * config/rs6000/rs6000.md: Swap define_insn attributes to
728         fix incorrect generation of merge high instructions instead
729         of merge low.
730
731 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
732
733         * c-typeck.c (really_start_incremental_init): Use
734         bitsize_zero_node for vectors.
735
736 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
737
738         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
739         ("*set_vrsave_internal"): Same.
740
741 2002-02-25  Richard Henderson  <rth@redhat.com>
742
743         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
744         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
745
746 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
747
748         PR target/5755
749         * config/i386/i386.c (ix86_return_pops_args): Only pop
750         fake structure return argument if it was passed on the stack.
751
752 2002-02-25  Jason Merrill  <jason@redhat.com>
753
754         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
755         RESULT_DECL.
756
757 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
758
759         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
760         link with shared_name only.
761         * doc/invoke.texi (Link Options): Document new behavior.
762
763 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
764
765         * c-typeck.c (push_init_level): Handle vectors.
766
767 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
768
769         * config/sparc/sparc.c (const64_high_operand): Zero-extend
770         operands of SPARC_SETHI_P.
771         (input_operand): Likewise.
772         (sparc_emit_set_const32): Likewise.
773         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
774         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
775         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
776         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
777         (movdi_insn_sp64_vis): Likewise.
778         (movdi split, movdf split): Use SETHI32.
779         * doc/md.texi: Document SPARC constraints L, M and N.
780
781 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
782
783         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
784         ("*set_vrsave_internal"): use mfspr for Darwin.
785
786         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
787         gen_get_vrsave_internal.
788
789 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
790
791         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
792
793 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
794
795         * cpplex.c (cpp_interpret_charconst): Get signedness or
796         otherwise of wide character constants correct.
797         * cppexp.c (lex): Get signedness of wide charconsts correct.
798
799 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
800
801         * optabs.c (widen_operand): Only call convert_modes for
802         promoted SUBREG if signedness matches.
803         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
804
805 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
806
807         * cpplib.c (glue_header_name): Use local buffer to build up
808         header name.
809
810 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
811
812         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
813
814 2002-02-23  Kazu Hirata  <kazu@hxi.com>
815
816         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
817         H8/300[HS] separately.
818         * config/h8300/h8300.md: Remove the early clobber constraint
819         from bit field patterns.
820
821 2002-02-23  Kazu Hirata  <kazu@hxi.com>
822
823         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
824         register_operand.
825         (mulhisi3): Likewise.
826         (umulqisi3): Likewise.
827         (umulhisi3): Likewise.
828
829 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
830
831         * cppinit.c (output_deps): Correct test for stdout output.
832         (init_dependency_output): Cure warning.
833
834 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
835
836         * expr.c (store_expr): When converting expression to promoted
837         equivalent type, allow using SUBREG_REG of TARGET as the target
838         of the expansion of EXP.
839         * loop.c (basic_induction_var, case SUBREG): Always look inside.
840         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
841         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
842         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
843         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
844
845 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
846
847         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
848         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
849         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
850
851 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
852
853         PR optimization/5747
854         * loop.c (scan_loop): Update reg info if move_movables created new
855         pseudos.
856
857 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
858
859         * gcc.c (init_gcc_spec): Revert last change.
860
861 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
862
863         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
864         gpc_reg_operand constraint.
865
866 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
867
868         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
869         Simplify comparison of `low'.
870         (add_operand): Fix formatting.
871         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
872         (mask_operand): Disallow mask to wrap in 64-bit mode.
873         (rs6000_stack_info): Remove redundant test setting push_p.
874         (output_toc): Fix formatting.
875         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
876         cc_reg_not_cr0_operand constraint.
877         (booldi3, boolcdi3 splitters): Same.
878
879 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
880
881         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
882
883 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
884
885         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
886         gcc invoked with -shared-libgcc.
887
888 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
889
890         PR c++/5748
891         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
892         decl if any of elements was TREE_USED.
893
894 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
895
896         * config/sparc/sol2.h: Don't include sys/mman.h.
897         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
898         (arith_4096_operand): Don't throw high bits away.
899         (const64_operand): Take sign extension of CONST_INTs into account.
900         (const64_high_operand, sparc_emit_set_const32): Likewise.
901         (GEN_HIGHINT64): Likewise.
902         (sparc_emit_set_const64_quick1): Likewise.
903         (const64_is_2insns): Likewise.
904         (print_operand): Use trunc_int_for_mode for sign extension.
905         * config/sparc/sparc.h (SMALL_INT32): Likewise.
906         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
907         chars.  Assume CONST_INT is already properly sign-extended.
908         (movdi split): Sign-extend each SImode part.
909         (andsi3 split): Don't mask high bits off, so that result
910         remains properly sign-extend.
911         (iorsi3 split): Likewise.
912         (xorsi3 split): Likewise.
913
914 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
915
916         * fold-const.c (fold): Fix typo in comments.
917
918 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
919
920         * Makefile.in (langhooks.o): Update dependencies.
921
922 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
923
924         * langhooks.c: Include flags.h.
925
926 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
927
928         * testsuite/gcc.dg/attr-alwaysinline.c: New.
929
930         * c-common.c (c_common_post_options): Set inline trees by
931         default.
932
933         * doc/extend.texi (Function Attributes): Document always_inline
934         attribute.
935         Update documentation about inlining when not optimizing.
936
937         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
938
939         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
940         unless DECL_ALWAYS_INLINE.
941
942         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
943         unless DECL_ALWAYS_INLINE.
944         (c_disregard_inline_limits): Disregard if always_inline set.
945
946         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
947         Disregard if always_inline set.
948         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
949         unless DECL_ALWAYS_INLINE.
950
951         * attribs.c (handle_always_inline_attribute): New.
952         (c_common_attribute_table): Add always_inline.
953
954         * config/rs6000/altivec.h: Add prototypes for builtins
955         requiring the always_inline attribute.
956
957 2002-02-21  Eric Christopher  <echristo@redhat.com>
958
959         * expmed.c (store_bit_field): Try to simplify the subreg
960         before generating a new one when when the mode size of
961         value is less than maxmode.
962
963 2002-02-21  Richard Henderson  <rth@redhat.com>
964
965         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
966         than gen_rtx_PLUS to form the sum.
967         * explow.c (force_reg): Rearrange to not allocate new pseudo
968         when force_operand returns a register.
969         * expr.c (expand_assignment): Allow offset_rtx expansion to
970         return a sum.  Do not force addresses into registers.
971         (expand_expr): Likewise.
972         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
973         to canonicalize arithmetic that didn't simpify.
974         (simplify_plus_minus): New argument force; update
975         all callers.  Don't split CONST unless we can do something with it,
976         and wouldn't lose the constness of the operands.
977
978         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
979         that we generated earlier.
980
981 2002-02-21  Tom Tromey  <tromey@redhat.com>
982
983         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
984         (output_line_info): Use constant `1', with a long explanatory
985         comment.
986         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
987
988 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
989
990         * jump.c (redirect_jump): If old label has no UID, don't try to
991         delete it.
992
993 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
994
995         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
996         If input is constant, do shifts at compile time.
997
998 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
999
1000         * doc/extend.texi: Fix some more overfull hboxes.
1001
1002 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
1003
1004         PR optimization/4994
1005         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
1006         register moves.
1007
1008 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
1009
1010         PR c++/4574
1011         * expr.h (expand_and): Add mode argument.
1012         * expmed.c (expand_and): Add mode argument.
1013         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
1014         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
1015         * except.c (expand_builtin_extract_return_addr): Likewise.
1016         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
1017         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1018         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
1019         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
1020         * config/c4x/c4x.md: Use GEN_INT (x) instead of
1021         gen_rtx (CONST_INT, VOIDmode, x).
1022
1023 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
1024
1025         PR c/4697:
1026         * stmt.c (warn_if_unused_value): Move side effects test once more.
1027
1028 2002-02-20  Torbjorn Granlund  <tege@swox.com>
1029
1030         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
1031         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
1032
1033 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
1034
1035         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
1036         SUBREG or ZERO_EXTEND.
1037
1038 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
1039
1040         * sh.h (current_function_anonymous_args): Remove.
1041         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
1042         of current_function_varargs and current_function_stdarg is set.
1043         * sh.c (sh_expand_prologue): Check current_function_varargs /
1044         current_function_stdarg / TARGET_SH5 instead of
1045         current_function_anonymous_args.
1046
1047         * sh64.h (TARGET_VERSION): Define.
1048
1049 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
1050
1051         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
1052         VRSAVE_REGNO on TARGET_ALTIVEC.
1053
1054 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
1055
1056         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
1057         bits of SImode const_int.
1058         (includes_rshift_p): Likewise.
1059         (print_operand): Call mask_operand and mask64_operand with correct
1060         mode.
1061         (rs6000_output_function_epilogue): Pad traceback table to word.
1062         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
1063         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
1064         mask64_operand with correct mode.
1065         (FUNCTION_ARG_REGNO_P): Correct parentheses.
1066
1067 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
1068
1069         PR debug/4461
1070         * varasm.c (get_pool_constant_mark): New.
1071         * rtl.h (get_pool_constant_mark): Add prototype.
1072         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
1073         be represented if it has not been output.
1074
1075 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
1076
1077         * combine.c (do_SUBST): Sanity check substitutions of
1078         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
1079         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
1080         CONST_INT into its operand.
1081         (known_cond): Likewise, for ZERO_EXTEND.
1082         * simplify-rtx.c (simplify_unary_operation): Fix condition to
1083         allow for simplification of wide modes.  Reject CONST_INTs in
1084         ZERO_EXTEND when their actual mode is not given.
1085
1086 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
1087
1088         * c-decl.c (pushdecl): If no global declaration is found for an
1089         extern declaration in block scope, try a limbo one.
1090
1091 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
1092
1093         PR c++/4401
1094         * c-common.c (pointer_int_sum): Moved from...
1095         * c-typeck.c (pointer_int_sum): ...here.
1096         * c-common.h (pointer_int_sum): Add prototype.
1097
1098 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
1099
1100         PR c++/5713
1101         * c-decl.c (duplicate_decls): Return 0 if issued error about
1102         redeclaration.
1103
1104 2002-02-20  Roger Sayle  <roger@eyesopen.com>
1105             Jakub Jelinek  <jakub@redhat.com>
1106
1107         PR c/4389
1108         * tree.c (host_integerp): Ensure that the constant integer is
1109         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
1110         when pos is zero or non-zero respectively.  Clarify comment.
1111         * c-format.c (check_format_info_recurse): Fix host_integerp
1112         usage; the pos argument should be zero when assigning to a
1113         signed HOST_WIDE_INT.
1114
1115 2002-02-20  Richard Henderson  <rth@redhat.com>
1116
1117         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
1118         of the operand, rather than assuming TImode.
1119         (ix86_expand_binop_builtin): Cope with commutative patterns
1120         using nonimmediate_operand for both operands.
1121         (ix86_expand_timode_binop_builtin): Likewise.
1122         (ix86_expand_store_builtin): Validate operand 1.
1123         (ix86_expand_unop1_builtin): Likewise.
1124
1125 2002-02-20  Philip Blundell  <philb@gnu.org>
1126
1127         PR 5705
1128         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
1129
1130 2002-02-20  Richard Henderson  <rth@redhat.com>
1131
1132         PR c/5615
1133         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
1134
1135 2002-02-20  Tom Tromey  <tromey@redhat.com>
1136
1137         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1138         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1139         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1140         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1141         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
1142         unconditionally.
1143
1144 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
1145
1146         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
1147           for (const_int 0) in X not just INTVAL.
1148
1149 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1150
1151         * doc/extend.texi: Avoid or reduce overfull hboxes.
1152
1153 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
1154
1155         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
1156         operations if the field does not start at a mode boundary.
1157
1158 2001-02-20      Joel Sherrill <joel@OARcorp.com>
1159
1160         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
1161         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
1162         Also done for -Acpu and -Amachine.
1163
1164 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1165
1166         * cppinit.c (init_dependency_output): Take deps output file
1167         from -o if none given with -MF.  Suppress normal output.
1168         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
1169         * doc/cpp.texi, doc/invoke.texi: Update.
1170
1171 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
1172
1173         * toplev.c (output_quoted_string): Write unprintable
1174         characters with octal escapes.
1175
1176 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
1177
1178         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
1179         really_call_used[VRSAVE_REGNO] if not Altivec.
1180
1181 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
1182
1183         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
1184         MODE_MASK.
1185         (constant_pool_expr_1): Fix formatting.
1186         (rs6000_legitimize_reload_address): Likewise.
1187
1188 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1189
1190         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
1191         now that we have one.
1192
1193 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
1194
1195         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
1196         end of first block of bitfields (which was only seven bits);
1197         rename dummy to unused_1; remove comment which is no longer true.
1198
1199 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
1200
1201         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
1202
1203 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
1204
1205         PR 5399
1206         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
1207         if generating PIC.
1208
1209         PR 5054
1210         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
1211         arm_is_longcall_p rather than inspecting call-type cookie
1212         directly.
1213         (call_value_insn) [TARGET_THUMB]: Likewise.
1214
1215 2002-02-19  Graham Stott  <grahams@redhat.com>
1216
1217         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
1218
1219 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
1220
1221         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
1222         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
1223         (FP_SAVE_INLINE): Delete.
1224
1225         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
1226         * config/rs6000/eabi.asm: Remove ABI save restore routines.
1227         * config/rs6000/t-ppccomm: Build crtsavres.o.
1228         * config/rs6000/crtsavres.asm: New file.
1229
1230 2002-02-19  Philip Blundell  <philb@gnu.org>
1231
1232         * config/arm/arm.c (use_return_insn): Don't reject interrupt
1233         functions.
1234         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
1235         (output_return_instruction): Allow interrupt functions to return with
1236         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
1237         (arm_expand_prologue): Subtract 4 before stacking LR in an
1238         interrupt function.
1239
1240 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
1241
1242         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
1243         decl, not just FUNCTION_DECL.
1244         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
1245         (arm_assemble_integer): Likewise.
1246         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
1247         marked local.
1248
1249 2002-02-19  matthew green  <mrg@eterna.com.au>
1250
1251         * config.gcc (sparc-*-netbsdelf*): Enable target.
1252         (sparc64-*-netbsd*): New target.
1253         * config/sparc/netbsd-elf.h: New file.
1254         * config/sparc/t-netbsd64: New file.
1255
1256 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
1257
1258         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
1259
1260 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
1261
1262         * doc/invoke.texi: explicitly list the style guidelines that
1263         -Weffc++ checks for.
1264
1265 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
1266
1267         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
1268
1269 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1270
1271         PR other/5718
1272         * gcc.c (cpp_unique_options): Treat -o as indicating object file
1273         only if not -E.  If -E, pass -o through to the preprocessor.
1274
1275 2002-02-19  Kazu Hirata  <kazu@hxi.com>
1276
1277         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
1278         register number with an appropriate macro.
1279
1280 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1281
1282         * doc/rtl.texi (Constants): Close @code tag.
1283
1284 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
1285
1286         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
1287         ("mmx_uavgv4hi3"): Same.
1288         ("pmulhrwv4hi3"): Same.
1289
1290         * tree-inline.c (walk_tree): Handle vectors.
1291
1292         * c-common.c (constant_expression_warning): Handle vectors.
1293         (overflow_warning): Same.
1294
1295         * sched-deps.c (sched_analyze_2): Handle vectors.
1296
1297         * rtlanal.c (rtx_unstable_p): Handle vectors.
1298         (rtx_varies_p): Same.
1299         (count_occurrences): Same.
1300         (regs_set_between_p): Same.
1301         (modified_between_p): Same.
1302         (modified_in_p): Same.
1303         (volatile_insn_p): Same.
1304         (volatile_refs_p): Same.
1305         (side_effects_p): Same.
1306         (may_trap_p): Same.
1307         (inequality_comparisons_p): Same.
1308         (replace_regs): Same.
1309         (computed_jump_p_1): Same.
1310
1311         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
1312         argument.
1313         (inner_mode_array): New.
1314         (copy_rtx): Handle vectors.
1315         (copy_most_rtx): Same.
1316         (rtx_equal_p): Same.
1317         (get_mode_alignment): Adjust for vectors.
1318
1319         * resource.c (mark_referenced_resources): Handle vectors.
1320         (mark_set_resources): Same.
1321
1322         * reload1.c (eliminate_regs): Handle vectors.
1323         (elimination_effects): Same.
1324         (scan_paradoxical_subregs): Same.
1325
1326         * reload.c (subst_reg_equivs): Handle vectors.
1327
1328         * regrename.c (scan_rtx): Handle vectors.
1329
1330         * regclass.c (reg_scan_mark_refs): Handle vectors.
1331
1332         * recog.c (find_single_use_1): Handle vectors.
1333
1334         * local-alloc.c (equiv_init_varies_p): Handle vectors.
1335         (contains_replace_regs): Same.
1336         (memref_referenced_p): Same.
1337
1338         * integrate.c (copy_rtx_and_substitute): Handle vectors.
1339         (subst_constants): Same.
1340
1341         * genattrtab.c (attr_copy_rtx): Handle vectors.
1342         (encode_units_mask): Same.
1343         (clear_struct_flag): Same.
1344         (count_sub_rtxs): Same.
1345
1346         * gcse.c (want_to_gcse_p): Handle vectors.
1347         (oprs_unchanged_p): Same.
1348         (hash_expr_1): Same.
1349         (oprs_not_set_p): Same.
1350         (expr_killed_p): Same.
1351         (compute_transp): Same.
1352         (store_ops_ok): Same.
1353
1354         * function.c (purge_addressof_1): Do not allow paradoxical subregs
1355         of vectors.
1356         (fixup_var_refs_1): Same.
1357         (instantiate_virtual_regs_1): Same.
1358
1359         * fold-const.c (operand_equal_p): Handle vectors.
1360         (fold): Same.
1361         (rtl_expr_nonnegative_p): Same.
1362
1363         * flow.c (mark_used_regs): Handle vectors.
1364
1365         * df.c (df_uses_record): Handle vectors.
1366
1367         * cselib.c (cselib_subst_to_values): Handle vectors.
1368         (cselib_mem_conflict_p): Same.
1369         (hash_rtx): Same.
1370
1371         * cse.c (canon_reg): Handle vectors.
1372         (fold_rt): Same.
1373         (cse_process_notes): Same.
1374         (count_reg_usage): Same.
1375         (canon_hash): Same.
1376
1377         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
1378
1379         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
1380
1381         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
1382         (gen_rtx): Handle CONST_VECTOR.
1383         (gen_const_vector_0): New.
1384         (copy_rtx_if_shared): CONST_VECTORs can be shared.
1385         (reset_used_flags): Same.
1386         (copy_insn_1): Same.
1387         (initializer_constant_valid_p): Handle VECTOR_CST.
1388
1389         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
1390
1391         * doc/rtl.texi (Constants): Document const_vector.
1392         (CONST0_RTX): Update for vectors.
1393         (RTL sharing): Same.
1394
1395         * print-tree.c (print_node): Add case for VECTOR_CST.
1396
1397         * tree.h (TREE_VECTOR_CST_ELTS): New.
1398         (struct tree_vector): New.
1399         (union tree_node): Add vector node.
1400         (build_vector): Add prototype.
1401
1402         * tree.def (VECTOR_CST): New.
1403
1404         * tree.c (build_vector): New.
1405
1406         * expmed.c (make_tree): Handle CONST_VECTOR.
1407
1408         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
1409         (CONST_VECTOR_ELT): New.
1410         (CONST_VECTOR_NUNITS): New.
1411
1412         * machmode.h (GET_MODE_INNER): New.
1413         (DEF_MACHMODE): Accept 8th arg.
1414
1415         * machmode.def: Add 8th argument for vector inner mode.
1416         Add inner vector modes for vectors.
1417
1418         * rtl.def (VEC_CONST): Remove.
1419         (CONST_VECTOR): New.
1420
1421         * expr.c (clear_storage): Allow vectors.
1422         (is_zeros_p): Handle VECTOR_CST.
1423
1424         * varasm.c (output_constant_pool): Handle vectors.
1425         (rtx_const): Add veclo and vechi fields.
1426         (kind): Add RTX_VECTOR.
1427         (decode_rtx_const): Add case for vector.
1428
1429         * config/rs6000/rs6000-protos.h: Add zero_constant.
1430
1431         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
1432         constants.  Force easy vector constants into memory.
1433         (easy_vector_constant): New.
1434         (emit_easy_vector_constant): New.
1435         (rs6000_legitimize_reload_address): Do not generate bad reloads on
1436         darwin.
1437
1438         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
1439         instruction does.
1440         ("altivec_lvxl"): Same.
1441         (altivec_lvebx): Same.
1442         (altivec_lvehx): Same.
1443         (altivec_lvewx): Same.
1444         ("*movv4si_const0"): New.
1445         ("*movv4sf_const0"): New.
1446         ("*movv8hi_const0"): New.
1447         ("*movv16qi_const0"): New.
1448
1449 2002-02-18  Kazu Hirata  <kazu@hxi.com>
1450
1451         * config/h8300/h8300.c (notice_update_cc): Use
1452         cc_status.value2.
1453
1454 2002-02-18  Kazu Hirata  <kazu@hxi.com>
1455
1456         * config/h8300/h8300.md (divmod patterns): Change the
1457         constraints for operands[1] to register_operand.
1458
1459 2002-02-18  Kazu Hirata  <kazu@hxi.com>
1460
1461         * config/h8300/h8300-protos.h: Remove the prototype for
1462         p_operand.
1463         * config/h8300/h8300.c (p_operand): Remove.
1464         * config/h8300/h8300.md: Replace p_operand with
1465         const_int_operand.
1466
1467 2002-02-18 Philip Blundell <pb@nexus.co.uk>
1468
1469         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
1470         comment.
1471         (output_return_instruction): Allow use of LDR to unstack
1472         return addresss even for interrupt handlers or when
1473         interworking.  If compiling for ARMv5, use interworking-safe
1474         return instructions by default.  Remove duplicated code and
1475         lengthy "strcat" sequences.
1476
1477 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1478
1479         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1480         (LINK_EH_SPEC): Define.
1481         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
1482
1483 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
1484
1485         * config/s390/s390.c (s390_emit_prologue): Do not set the
1486         frame_related flag for call-clobbered registers.
1487
1488 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
1489
1490         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
1491         (construct_container): Fix handling of SSE operands.
1492         (ix86_expand_builtin): Fix handling of 64bit pointers.
1493         (mmx_maskmovq_rex): New pattern.
1494
1495 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1496
1497         * regrename.c (kill_set_value): Handle subregs properly.
1498
1499 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
1500
1501         * objc/objc-act.c (handle_impent): Remove leading '*'
1502         from objc_class_name.
1503
1504 2002-02-17  Richard Henderson  <rth@redhat.com>
1505
1506         * config/alpha/alpha.c (some_small_symbolic_operand,
1507         some_small_symbolic_operand_1, split_small_symbolic_operand,
1508         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
1509         Handle small SYMBOL_REFs anywhere, not just inside memories.
1510         * config/alpha/alpha-protos.h: Update.
1511         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1512         * config/alpha/alpha.md (small symbolic operand splitter): Update.
1513
1514 2002-02-17  Roland McGrath  <roland@frob.com>
1515
1516         * config.gcc (powerpc-*-gnu-gnualtivec*,
1517         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
1518         * config/rs6000/gnu.h: New file.
1519         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
1520         Grok "gnu" in rs6000_abi_name.
1521         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
1522         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
1523         Grok -mcall-gnu analogous to -mcall-linux et al.
1524         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1525         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
1526         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
1527
1528 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
1529
1530         PR c/3444:
1531         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
1532         shortening.
1533
1534 2002-02-17  Philipp Thomas  <pthomas@suse.de>
1535
1536         * config/cris/cris.h: Undefine STARTFILE_SPEC and
1537         ENDFILE_SPEC before (re)defining them.
1538
1539 2002-02-17  Kazu Hirata  <kazu@hxi.com>
1540
1541         * config/h8300/h8300.c: Fix formatting.
1542         * config/h8300/h8300.h: Likewise.
1543
1544 2002-02-17  Philipp Thomas  <pthomas@suse.de>
1545
1546         * doc/tm.texi: Explain why empty strings should not be
1547         marked for translation.
1548
1549 2002-02-17  Philipp Thomas  <pthomas@suse.de>
1550
1551         * final.c (output_operand_lossage): Changed to accept
1552         printf style arguments. Change calls where necessary.
1553         * output.h (output_operand_lossage): Change declaration
1554         accordingly. Update copyright.
1555         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
1556         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
1557         Update copyright date where necessary.
1558
1559         * config/i386/i386.c (print_operand): Likewise. Remove use of
1560         sprintf.
1561
1562         * config/cris/cris.c (cris_operand_lossage): Likewise.
1563         Rename parameter so that exgettext recognizes it as
1564         translatable message.
1565         (LOSE_AND_RETURN): Rename parameter to msgid.
1566
1567 2002-02-17  Kazu Hirata  <kazu@hxi.com>
1568
1569         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
1570         hard coded register number with an appropriate macro.
1571         (HARD_REGNO_MODE_OK): Likewise.
1572         (ARG_POINTER_REGNUM): Likewise.
1573         (STATIC_CHAIN_REGNUM): Likewise.
1574         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
1575         * config/h8300/h8300.md (define_constants): Define more
1576         register numbers.
1577
1578 2002-02-17  Philipp Thomas  <pthomas@suse.de>
1579
1580         * config/i386/i386.h: Don't mark empty strings for translation.
1581
1582 2002-02-16  H.J. Lu <hjl@gnu.org>
1583
1584         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
1585
1586 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
1587
1588         * cppinit.c (merge_include_chains): Check for brack being
1589         NULL before attempting to merge it with qtail.
1590
1591 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
1592
1593         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
1594         DBX_DEBUG.
1595
1596 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1597
1598         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
1599
1600 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1601
1602         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
1603         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
1604         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
1605
1606 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1607
1608         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1609         now only if !TARGET_FIX.
1610         (*movsi_nt_vms_fix): New pattern.
1611
1612 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
1613
1614         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
1615         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
1616         (alpha_sa_mask, alpha_sa_size): Reflect above change.
1617         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
1618         (alpha_start_function, alpha_expand_epilogue): Likewise.
1619         (unicosmk_gen_dsib): Likewise.
1620
1621 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1622
1623         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
1624
1625 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
1626
1627         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
1628         check_and_change_labels, s390_final_chunkify): Delete.
1629         (s390_split_branches, s390_chunkify_pool): New functions.
1630         (s390_function_prologue): Call them.
1631
1632         * config/s390/s390.h (S390_REL_MAX): Delete.
1633         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
1634
1635         * config/s390/s390.md (cjump, icjump, jump): Fix length
1636         attribute calculation.
1637
1638
1639 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
1640
1641         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
1642         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
1643
1644 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1645
1646         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
1647         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
1648         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
1649
1650 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
1651
1652         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
1653
1654 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
1655
1656         * reload.c (find_dummy_reload): Check that an output register
1657         is valid for its mode.
1658
1659 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
1660
1661         * combine.c (known_cond): After replacing the REG of a SUBREG, try
1662         to simplify it.
1663
1664         * function.c (assign_parms): Demote promoted argument passed by
1665         transparent reference.
1666
1667 2001-02-14      Joel Sherrill <joel@OARcorp.com>
1668
1669         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
1670         -Acpu() and -Amachine() to eliminate warnings.
1671
1672 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
1673
1674         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
1675
1676 2002-02-14  Kazu Hirata  <kazu@hxi.com>
1677
1678         * config/h8300/h8300-protos.h: Update the prototype for
1679         const_costs.
1680         * config/h8300/h8300.c (const_costs): Treat SET as a little
1681         more expensive operation.
1682         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
1683         reference to const_costs.
1684
1685 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
1686
1687         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
1688
1689 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
1690
1691         PR c/5503:
1692         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
1693         use arguments from newtype.
1694
1695 2002-02-13  Eric Christopher  <echristo@redhat.com>
1696
1697         * config/mips/mips.c (override_options): Add check for march/mipsX
1698         on the same command line. Fix error message in cpu processing.
1699         Remove architecture and ISA checks.
1700
1701 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
1702
1703         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
1704
1705         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
1706
1707 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
1708
1709         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
1710         alternatives.
1711         ("*movv8hi_internal1"): Same.
1712         ("*movv16qi_internal1"): Same.
1713         ("*movv4sf_internal1"): Same.
1714
1715         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1716         not push_reload for altivec modes.
1717
1718 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
1719
1720         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
1721         all RTEMS targets including removal of #includes from config/*/rtems*.h
1722         file and adding them to tm_file setting. Added xm_defines=POSIX to
1723         many targets.
1724         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
1725         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
1726         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
1727         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
1728         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
1729         config/m68k/rtemself.h: Ditto.
1730         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
1731         config/mips/rtems64.h: Ditto.
1732         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
1733         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
1734         Ditto.
1735         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
1736         config/sparc/rtemself.h: Ditto.
1737         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
1738         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
1739         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
1740         more like arm-elf.
1741         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
1742         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
1743         target made more similar to i386-elf.
1744         * config/i386/t-rtems-i386: Added soft float support and multilibs.
1745         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
1746         be similar to config/m68k/t-m68kelf.
1747         * gthr-rtems.h: Encapsulate with extern "C" for C++.
1748
1749 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
1750
1751         * regmove.c (kill_value): Handle subregs.
1752
1753 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
1754
1755         * i386.md (mul patterns): Allow memory operand to be first;
1756         add expanders where needed; fix constraints.
1757         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
1758         Allow memory operand to be the first.
1759
1760         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
1761         operands.
1762
1763 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
1764
1765         PR c/5681:
1766         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
1767         GET_MODE (x).
1768
1769 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
1770
1771         PR optimization/5547:
1772         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
1773         all valid IA-32 address modes involving non-scaled %ebx and
1774         GOT/GOTOFF as displacement.
1775
1776 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
1777
1778         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
1779         after emitting ltorg insns.
1780
1781         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
1782         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
1783         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
1784         *abssf2): Fix "op_type" attribute.
1785
1786 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
1787
1788         * mkconfig.sh: Avoid using a subshell redirect.
1789         ($output.T): Change to $(output)T.
1790         (ENABLE_NLS): Remove unneeded undef.
1791
1792         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1793         * config/alpha/x-vms (libsubdir): Define.
1794
1795         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
1796         register frame procedures. Optimize retrieving context.
1797
1798         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
1799         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
1800         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
1801
1802 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1803
1804         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1805         Make same change as for find_base_value.
1806
1807 2002-02-13  Kazu Hirata  <kazu@hxi.com>
1808
1809         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1810         of QImode and SImode.
1811
1812 2002-02-13  Kazu Hirata  <kazu@hxi.com>
1813
1814         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1815         length computation of movsi.
1816         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1817
1818 2002-02-13  Kazu Hirata  <kazu@hxi.com>
1819
1820         * config/h8300/h8300.md (subqi3): Tighten the predicate for
1821         operands[2] to register_operand.
1822
1823 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
1824
1825         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1826
1827 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
1828
1829         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1830         for altivec_lvx* and altivec_stvx*.
1831         ("*movv4si_internal"): Add constraint for loading from GPRs.
1832         ("*movv8hi_internal1"): Same.
1833         ("*movv16qi_internal1"): Same.
1834         ("*movv4sf_internal1"): Same.
1835
1836         * config/rs6000/rs6000.c (altivec_register_operand): New.
1837
1838         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1839         altivec_register_operand.
1840
1841 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
1842
1843         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1844         handle SYMBOL_REF.
1845
1846 2002-02-13  Stan Shebs  <shebs@apple.com>
1847
1848         * c-typeck.c (digest_init): Handle vectors.
1849         (really_start_incremental_init): Same.
1850         (pop_init_level): Same.
1851         (process_init_element): Same.
1852
1853         * varasm.c (output_constant): Same.
1854
1855         * expr.c (clear_storage): Same.
1856         (store_constructor): Same.
1857
1858 2002-02-12  Eric Christopher  <echristo@redhat.com>
1859
1860         * explow.c (hard_function_value): Add comment explaining
1861         signed/unsigned comparison.
1862
1863 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1864
1865         * jump.c (never_reached_warning): Add finish argument.
1866         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1867         real insn after end.
1868         * rtl.h (never_reached_warning): Adjust prototype.
1869         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1870         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1871         never_reached_warning.
1872
1873 2002-02-12  Graham Stott  <grahams@redhat.com>
1874
1875         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1876
1877 2002-02-12  Kazu Hirata  <kazu@hxi.com>
1878
1879         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1880         logical shifts on H8/300.
1881         (shift_alg_si): Improve several shifts on H8/300.
1882         (get_shift_alg): Likewise.
1883
1884 2002-02-12  Graham Stott  <grahams@redhat.com>
1885
1886         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1887
1888 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1889
1890         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
1891         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
1892
1893 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
1894
1895         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
1896         non-CONST_INT through default_assemble_integer.
1897         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
1898         <case 8>: Abort for CONST_DOUBLE.
1899
1900 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1901
1902         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
1903         is specified.
1904         * config/pa/pa-linux.h (LIB_SPEC): Delete.
1905         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1906
1907 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
1908
1909         * config/stormy16/stormy16.md (zero_extendqihi2): New.
1910
1911 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
1912
1913         * regrename.c (regrename_optimize): Don't accept a
1914         part-clobbered register if the replaced register is not part
1915         clobbered.
1916
1917         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
1918         take padding into account when computing the argument value.
1919
1920         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
1921
1922         * combine.c (try_combine): Apply substitutions in
1923         CALL_INSN_FUNCTION_USAGE too.
1924
1925 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
1926
1927         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
1928         __builtin_altivec_abs*.
1929         (bdesc_abs): New.
1930
1931         * config/rs6000/rs6000.h (rs6000_builtins): Add
1932         ALTIVEC_BUILTIN_ABS*.
1933
1934         * config/rs6000/altivec.h: Use const char for builtins expecting
1935         literals.
1936         (vec_abs): New versions for C and C++.
1937         (vec_abss): Same.
1938
1939 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1940
1941         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
1942         using Pmode.
1943
1944 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1945
1946         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
1947         constant definition from h8300.md.
1948         (FRAME_POINTER_REGNUM): Likewise.
1949         * config/h8300/h8300.md (define_constants): Add FP_REG.
1950
1951 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1952
1953         * config/h8300/h8300.c (print_operand): Remove redundant code.
1954
1955 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1956
1957         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
1958         * config/h8300/h8300.c (byte_reg): Make it static.
1959
1960 2002-02-10  Richard Henderson  <rth@redhat.com>
1961
1962         PR c/5623
1963         * c-typeck.c (incomplete_type_error): Handle flexible array members.
1964
1965 2002-02-10  Richard Henderson  <rth@redhat.com>
1966
1967         PR c++/5624
1968         * tree.c (append_random_chars): Don't abort if main_input_filename
1969         does not exist.
1970
1971 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
1972
1973         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
1974
1975 2002-02-10  Kazu Hirata  <kazu@hxi.com>
1976
1977         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
1978         (pushhi1): Likewise.
1979
1980 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1981
1982         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
1983         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
1984
1985 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
1986
1987         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
1988         remove MASK_VIS.
1989         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
1990
1991 2002-02-09  Kazu Hirata  <kazu@hxi.com>
1992
1993         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
1994         a half of an SImode register on H8/300.
1995
1996 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
1997
1998         * i386.md (movdi_2): Add missing '!'.
1999
2000 2002-02-09  Kazu Hirata  <kazu@hxi.com>
2001
2002         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
2003         definitions.
2004
2005 2002-02-09  Kazu Hirata  <kazu@hxi.com>
2006
2007         * config/h8300/h8300.md (length): Correct the distance valid
2008         for the short branch.
2009
2010 2002-02-09  Kazu Hirata  <kazu@hxi.com>
2011
2012         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
2013
2014 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
2015
2016         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
2017         registers in SImode.
2018         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
2019         part-clobbered.
2020
2021         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
2022         patch.
2023
2024         Contribute sh64-elf.
2025         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
2026         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
2027         (sh_cannot_modify_jumps_p): New function.
2028         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
2029         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
2030         (sh_ms_bitfield_layout_p): New function.
2031         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
2032                     Zack Weinberg  <zack@codesourcery.com>
2033         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
2034         expand_simple_binop instead of expand_binop.
2035         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
2036         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
2037         use of .quad and .uaquad.
2038         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
2039         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
2040         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2041         * config/sh/sh.md (movdi_const, movdi_const_32bit,
2042         movdi_const_16bit): Make sure all CONSTs have modes.
2043         (sym2PIC): Ditto, but by adjusting all callers.
2044         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
2045         if the prologue calls the SHmedia argument decoder or register
2046         saver.
2047         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2048         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
2049         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
2050         (sh_expand_epilogue): Don't emit USE of return target register.
2051         (prepare_move_operands): Legitimize DImode PIC addresses.
2052         (sh_media_register_for_return): Skip tr0, used to initialize the
2053         PIC register.
2054         (sh_expand_prologue): Remove explicit USE of return register.
2055         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
2056         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
2057         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
2058         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
2059         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
2060         EXTRA_CONSTRAINT_T.
2061         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
2062         (MOVI_SHORI_BASE_OPERAND_P): New.
2063         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
2064         (EXTRA_CONSTRAINT_T): Define in terms of them.
2065         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
2066         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
2067         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
2068         alternatives supporting TARGET_REGS.
2069         (UNSPEC_GOTPLT): New constant.
2070         (movdi split): Move incrementing of LABEL_NUSES...
2071         (movdi_const, movdi_const_32bit): Here.  Use
2072         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
2073         (movdi_const_16bit): New.
2074         (call, call_value) [flag_pic]: Use GOTPLT.
2075         (call_pop, call_value_pop): New expands.
2076         (call_pop_compact, call_pop_rettramp): New insns.
2077         (call_value_pop_compact, call_value_pop_rettramp): New insns.
2078         (sibcall) [flag_pic]: Use GOT.
2079         (builtint_setjmp_receiver): Remove bogus, unused expand.
2080         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
2081         (*pt, *ptb, ptrel): New insns.
2082         (sym2GOT): Handle DImode GOT.
2083         (sym2GOTPLT, symGOTPLT2reg): New expands.
2084         (sym2PIC): New expand.
2085         (shcompact_return_tramp): Use GOTPLT to return trampoline.
2086         (shcompact_return_tramp_i): Use return register explicitly.
2087         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
2088         disable flag_reorder_blocks.
2089         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
2090         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
2091         clobbers, for clarity.
2092         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
2093         restoring of r0 in macl as MAYBE_DEAD.
2094         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
2095         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
2096         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
2097         alter_subreg all over.
2098         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
2099         reload, instead of emitting instructions that would require
2100         reloading.
2101         (casesi_load_media): Add missing modes.
2102         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
2103         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
2104         as used if the argument decoder is called.
2105         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
2106         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
2107         Pmode, then extend it to DImode if necessary.
2108         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
2109         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
2110         constants in FPU-enabled SHmedia, let them be loaded from memory.
2111         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
2112         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
2113         Adjust whitespace in assembly output templates.
2114         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
2115         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
2116         mode of if_then_else.
2117         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
2118         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
2119         sh.h.
2120         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
2121                     Joern Rennecke <amylaar@redhat.com>
2122         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
2123         (SUBTARGET_CPP_PTR_SPEC): New.
2124         (SUBTARGET_CPP_SPEC): Remove.
2125         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
2126         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
2127         Fix typo in previous checkin.
2128         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
2129         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
2130         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
2131                     Alexandre Oliva  <aoliva@redhat.com>
2132         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
2133         what single FP register can hold for SHmedia target.
2134         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
2135                     Alexandre Oliva  <aoliva@redhat.com>
2136         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
2137         Do not split into SUBREG.
2138         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
2139         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
2140         and added new functions as specified in SH5 ABI r9.
2141         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
2142         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
2143         8-byte boundary.
2144         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
2145         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
2146         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
2147         and consttable_window_ends.
2148         2001-06-03  Graham Stott  <grahams@redhat,com>
2149         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
2150         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
2151         * config/sh/sh.c (print_operand): Handle floating-point pair,
2152         vector and matrix registers.
2153         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
2154         vector modes into account.
2155         * config/sh/sh.md (movv2sf): Split move between registers into
2156         movdf.
2157         (movv4sf, movv16sf): Introduce insns that get split only after
2158         reload.
2159         * config/sh/shmedia.h: Fix Copyright dates.
2160         * config/sh/ushmedia.h: Likewise.  Move loop counter
2161         declarations into conditionals that uses them.
2162         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
2163         loop boundary.
2164         * config/sh/sshmedia.h: Fix Copyright dates.
2165         (sh_media_PUTCFG): Fix constraints.
2166         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
2167         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
2168         ptrmemfunc_vbit_in_delta for SH5.
2169         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
2170         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
2171         * invoke.texi: Likewise.
2172         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
2173         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
2174         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
2175         GCC_pop_shmedia_regs_nofpu): New global symbols.
2176         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
2177         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
2178         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
2179         compact function with nonlocal labels.
2180         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
2181         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
2182         (initial_elimination_offset): Account for their stack space.
2183         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
2184         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
2185         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
2186         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
2187         least one of the operands to be a register.
2188         (movv2sf): Likewise.  Renamed to movv2sf_i.
2189         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
2190         prepare_move_operands() before emitting SHmedia insns.
2191         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
2192         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
2193         Don't save nor initialize r12.  Don't mis-align the stack.
2194         Pad the code with a nop.
2195         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
2196         stack.
2197         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
2198         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
2199         [__SHMEDIA__]: Implement.
2200         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
2201         * config/sh/sh.md: Set latency of `pt' closer to reality.
2202         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
2203         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
2204         Set move, load and store type attributes.
2205         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
2206         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
2207         profiling.
2208         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
2209         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
2210         * config/sh/sh.c (sh_media_register_for_return): New function.
2211         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
2212         branch-target register.
2213         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
2214         * config/sh/sh.md (return_media_i): Use any call-clobbered
2215         branch-target register.
2216         (return_media): If r18 wasn't copied in the prologue, copy it
2217         here.
2218         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
2219         Clear class FP0_REGS.
2220         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
2221         from elf.h.
2222         2001-03-08  DJ Delorie  <dj@redhat.com>
2223         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
2224         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
2225         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
2226         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
2227         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
2228         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
2229         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
2230         return value correctly for call_cookie.
2231         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
2232         * config/sh/crt1.asm (start): Modified so as to call
2233         ___setup_argv_and_call_main.
2234         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
2235         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
2236         SHmedia mode.
2237         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
2238         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
2239         (STRIP_NAME_ENCODING): Use it.
2240         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
2241         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
2242         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
2243         prepare_scc_operands().
2244         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
2245         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
2246         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
2247         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
2248         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
2249         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
2250         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
2251         used in shcompact_incoming_args.
2252         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
2253         change.
2254         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
2255         mode.
2256         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
2257         Adjust accordingly.
2258         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
2259         Simplify.  Adjust.  Add sanity check.
2260         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
2261         FPU_SINGLE_BIT.
2262         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
2263         TARGET_SHCOMPACT.
2264         (udivsi3, divsi3): Use them.
2265         (force_mode_for_call): New insn.
2266         (call, call_value, sibcall_value): Emit it before SHcompact
2267         calls.
2268         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
2269         * config/sh/sh.md (call, call_value, sibcall): Make sure the
2270         call cookie is non-NULL before taking its value.
2271         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
2272         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
2273         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
2274         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
2275         block.
2276         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
2277         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
2278         temporary for stack adjusts.  Use MACL and MACH to pass
2279         arguments to shcompact_incoming_args.
2280         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
2281         clobber r1.
2282         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
2283         (nested_trampoline): Load static chain address into r1.
2284         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
2285         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
2286         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
2287         fp_arith_reg_operand().
2288         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
2289         * config/sh/sh.md (casesi): Sign-extend the first two operands,
2290         and use signed compares for them.
2291         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
2292         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
2293         ones properly aligned.
2294         (find_barrier): Account for extra alignment needed for 8-byte wide
2295         constants.
2296         (machine_dependent_reorg): Require a label for the second 4-byte
2297         constant after an 8-byte one.
2298         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
2299         change.
2300         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
2301         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
2302         last_float when switching float modes.
2303         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
2304         auto-increment for general-purpose registers.
2305         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
2306         result.
2307         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
2308         for stack adjust.
2309         * config/sh/sh.c (sh_builtin_saveregs): Support using all
2310         registers for varargs.
2311         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
2312         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
2313         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
2314         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
2315         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
2316         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
2317         call_cookie accordingly.
2318         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
2319         (SHCOMPACT_BYREF): Likewise.
2320         (SHCOMPACT_FORCE_ON_STACK): New macro.
2321         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
2322         (sh_builtin_saveregs): Likewise.
2323         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2324         shcompact_incoming_args): Use new shift values.  Support
2325         sequences of consecutive and non-consecutive pushes/pops.
2326         * config/sh/sh.md (return): Don't explicitly use PR_REG.
2327         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
2328         * config/sh/sh.h (TEXT_SECTION): Define.
2329         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
2330         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
2331         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2332         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
2333         return values on FPU-enabled SHmedia.
2334         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
2335         FPU-enabled SHmedia.
2336         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
2337         value is returned in a non-FP reg and is not returned by
2338         reference.
2339         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
2340         jump_ind.
2341         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
2342         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
2343         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
2344         quad-aligned to be passed by callee-copy reference.
2345         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
2346         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
2347         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
2348         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
2349         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
2350         copying low-numbered FP regs to r7 and r8.
2351         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
2352         FP regs to general-purpose regs only if the copy was passed on the
2353         stack.
2354         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
2355         copying FP reg to r9.
2356         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
2357         copy FP regs to general-purpose regs only in outgoing calls.
2358         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
2359         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
2360         HOST_WIDE_INT.
2361         * config/sh/sh.h (struct sh_args): Document all fields.
2362         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
2363         passed partially on the stack should not consider making
2364         sibcalls.
2365         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
2366         stack_regs only for incoming calls.  When passing FP args,
2367         make sure there are FP regs available before modifying
2368         call_cookie.
2369         (SHCOMPACT_BYREF): Pass double args in general-purpose
2370         registers by reference.
2371         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
2372         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
2373         attempt to generate sibcalls if the caller got any arguments
2374         by reference.
2375         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
2376         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
2377         to 8-byte boundaries.
2378         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
2379         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
2380         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
2381         stored in the stack.
2382         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
2383         for the offsets to have the ISA bit set.
2384         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
2385         invocation.  Use beq instead of bgt to mark end of sequence of
2386         loads.
2387         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
2388         bgt to mark end of sequence of stores.
2389         * config/sh/sh.c (arith_operand): Don't check whether
2390         CONST_OK_FOR_J for now.
2391         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
2392         instead of long for conversion.
2393         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
2394         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
2395         before passing it to fprintf.
2396         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
2397         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
2398         Call set_fpscr before reading/writing SR.
2399         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
2400         Call set_fpscr.
2401         * config/sh/lib1funcs.asm: Add `.align 2' directives before
2402         SHmedia code.
2403         (FMOVD_WORKS): Define on SH5 with FPU.
2404         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
2405         setting.
2406         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
2407         _fpscr_values.
2408         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
2409         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
2410         address.
2411         (ia_main_table): Ditto.
2412         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
2413         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2414         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
2415         the definitions from sh.h.
2416         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
2417         TARGET_SH5.
2418         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
2419         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
2420         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2421         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
2422         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
2423         Increment LABEL_NUSES.
2424
2425         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
2426         TARGET_SH5.
2427         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
2428         defined.
2429         * config/sh/elf.h (SIZE_TYPE): Likewise.
2430         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2431         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2432         shcompact_incoming_args): Load switch table addresses using
2433         datalabel.
2434         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2435         (NO_BUILTIN_SIZE_TYPE): Define.
2436         (SIZE_TYPE): Don't define.
2437         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2438         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
2439         definition of __SH5__=32 for -m5-compact-nofpu.
2440         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
2441         ADDR_DIFF_VEC.
2442         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
2443         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
2444         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
2445         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
2446         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
2447         (INSN_LENGTH_ALIGNMENT): Likewise.
2448         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
2449         * config/sh/sh.md (call, call_value, sibcall): Simplify
2450         copying of non-branch-target register.
2451         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
2452         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
2453         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
2454         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
2455         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
2456         floating-point values as structs.
2457         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
2458         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
2459         general-purpose register.
2460         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
2461         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
2462         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
2463         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
2464         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
2465         (ENCODE_SECTION_INFO): Enclose variables and constants in
2466         DATALABEL unspecs.
2467         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
2468         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
2469         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
2470         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
2471         only for LABEL_REFs.  For SYMBOL_REFs, prepend
2472         SH_DATALABEL_ENCODING to the symbol name.
2473         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
2474         convert_mode().
2475         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
2476         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
2477         UNSPEC_DATALABEL.
2478         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
2479         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
2480         (DATALABEL_REF_P): Don't require CONST.
2481         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
2482         REL label.
2483         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
2484         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
2485         right.
2486         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
2487         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
2488         Use shallow_copy_rtx and PUT_MODE to change the mode of
2489         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
2490         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
2491         on SHmedia using GENERAL_REGs.
2492         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2493         bltu_media_i): Fix reversion of conditions.
2494         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
2495         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
2496         * config/sh/sh.c (output_far_jump): Save r13 in macl.
2497         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
2498         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
2499         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
2500         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
2501         (GCC_nested_trampoline): Likewise.
2502         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
2503         * config/sh/sh.c (gen_datalabel_ref): Define.
2504         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
2505         (INITIALIZE_TRAMPOLINE): Likewise.
2506         (TRAMPOLINE_ADJUST_ADDRESS): Define.
2507         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
2508         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
2509         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
2510         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
2511         (ic_invalidate): Adjust for SH5.
2512         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
2513         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
2514         _nested_trampoline.
2515         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
2516         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
2517         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
2518         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
2519         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
2520         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
2521         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
2522         * config/sh/sh.c (target_reg_operand): Match only target-branch
2523         registers and pseudos that aren't virtual registers.
2524         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2525         Copy operands that don't match target_reg_operand to pseudos.
2526         (call_media, call_value_media, sibcall_media): Use
2527         target_reg_operand instead of target_operand.
2528         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
2529         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
2530         * config/sh/sh.c (target_reg_operand): Match hardware registers
2531         other than branch-target registers.
2532         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
2533         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
2534         (fpscr_values) [SH5 == 32]: Define.
2535         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
2536         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2537         Handle function addresses coming in SUBREGs.
2538         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
2539         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2540         shcompact_return_trampoline): Use datalabel where appropriate.
2541         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
2542         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
2543         general-purpose register to copy one branch-target register to
2544         another.
2545         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
2546         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
2547         SYMBOL_REFs with VOIDmode.
2548         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2549         bltu_media_i): New insns.
2550         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
2551         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
2552         (INIT_CUMULATIVE_ARGS): Likewise.
2553         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
2554         * machmode.def (V16SFmode): New mode.
2555         * c-common.c (type_for_mode): Support V2SF and V16SF.
2556         * tree.c (build_common_tree_nodes_2): Likewise.
2557         * tree.h (tree_index): Likewise.
2558         * calls.c (emit_call_1): Take args_so_far.  Adjust all
2559         callers.  Introduce CALL_POPS_ARGS.
2560         * tm.texi (CALL_POPS_ARGS): Document.
2561         * config/sh/crt1.asm: Implement in SHmedia mode.
2562         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
2563         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
2564         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
2565         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
2566         Implement divsi and udivsi in SHmedia mode.  Introduce
2567         SHcompact trampolines.
2568         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
2569         only in SHmedia64.
2570         (regno_reg_class): Rewrite.
2571         (fp_reg_names): Remove.
2572         (sh_register_names, sh_additional_register_names): New.
2573         (print_operand): Added `u'.  Support SUBREGs in addresses.
2574         Add parentheses around shifted CONSTs.
2575         (output_file_start): Output .mode and .abi directives.
2576         (shiftcosts, addsubcosts, multcosts): Adjust.
2577         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
2578         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
2579         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
2580         bytes, not registers.  Take into account the need for the
2581         SHcompact incoming args trampoline.  Adjust all callers.
2582         (sh_expand_prologue): Take stack_regs into account.  Call
2583         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
2584         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
2585         stack aligned as per SH5 ABI.
2586         (sh_builtin_saveregs): Support SH5 ABI.
2587         (sh_build_va_list, sh_va_start): Likewise.
2588         (initial_elimination_offset): Take alignment into account.
2589         Compute location of PR according to the SH5 stack frame.
2590         (arith_reg_operand): Reject branch-target registers.
2591         (shmedia_6bit_operand): New.
2592         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
2593         (target_reg_operand): Match DImode only.  Accept SUBREGs.
2594         (target_operand): New.
2595         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
2596         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
2597         SIBCALL_REGS for SHmedia.
2598         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
2599         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
2600         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
2601         (TARGET_SWITCHES): New SH5 flags.
2602         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
2603         VALID_REGISTER_P to disable unsupported registers.
2604         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
2605         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
2606         (FUNCTION_ARG_PADDING): Define.
2607         (FASTEST_ALIGNMENT): Adjust.
2608         (SH_REGISTER_NAMES_INITIALIZER): New.
2609         (sh_register_names): Declare.
2610         (DEBUG_REGISTER_NAMES): Define.
2611         (REGISTER_NAMES): Define based on sh_register_names.
2612         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
2613         (sh_additional_register_names): Declare.
2614         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
2615         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
2616         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
2617         (REGISTER_NATURAL_MODE): Define.
2618         (FIRST_PSEUDO_REGISTER): Adjust.
2619         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
2620         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2621         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
2622         (VECTOR_MODE_SUPPORTED_P): Define.
2623         (REG_CLASS_CONTENTS): Adjust.
2624         (SMALL_REGISTER_CLASSES): Adjust.
2625         (REG_ALLOC_ORDER): Adjust.
2626         (INDEX_REG_CLASS): Adjust.
2627         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
2628         (CONST_OK_FOR_LETTER_P): Adjust.
2629         (PREFERRED_RELOAD_CLASS): Adjust.
2630         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
2631         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
2632         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
2633         (FIRST_FP_PARM_REG): Adjust.
2634         (CALL_POPS_ARGS): Define.
2635         (FUNCTION_ARG_REGNO_P): Adjust.
2636         (struct sh_args): New fields.
2637         (GET_SH_ARG_CLASS): Adjust.
2638         (INIT_CUMULATIVE_ARGS): Adjust.
2639         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
2640         (FUNCTION_ARG_ADVANCE): Adjust.
2641         (FUNCTION_ARG): Adjust.
2642         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
2643         (FUNCTION_ARG_CALLEE_COPIES): Define.
2644         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
2645         (STRICT_ARGUMENT_NAMING): Define.
2646         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
2647         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
2648         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
2649         (SETUP_INCOMING_VARARGS): Adjust.
2650         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
2651         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
2652         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
2653         (SUBREG_OK_FOR_INDEX_P): Adjust.
2654         (EXTRA_CONSTRAINT_S): Update.
2655         (EXTRA_CONSTRAINT_T): New.
2656         (EXTRA_CONSTRAINT): Adjust.
2657         (GO_IF_LEGITIMATE_INDEX): Adjust.
2658         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
2659         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
2660         (MOVE_MAX): Adjust.
2661         (MAX_MOVE_MAX): Define.
2662         (Pmode): Adjust.
2663         (CONST_COSTS): Adjust.
2664         (REGISTER_MOVE_COST): Adjust.
2665         (BRANCH_COST): Adjust.
2666         (TEXT_SECTION_ASM_OP): Adjust.
2667         (DBX_REGISTER_NUMBER): Adjust.
2668         (ASM_OUTPUT_DOUBLE_INT): New.
2669         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
2670         (PREDICATE_CODES): Adjust.
2671         (PROMOTE_MODE): Adjust.
2672         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
2673         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
2674         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
2675         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
2676         (DR0_REG, DR2_REG, DR4_REG): Renumber.
2677         (TR0_REG, TR1_REG, TR2_REG): New.
2678         (XD0_REG): Renumber.
2679         (UNSPEC_COMPACT_ARGS): New.
2680         (type): Added pt and ptabs.
2681         (length): Default to 4 on SHmedia.  Default pt length to 12
2682         and     20 on SHmedia32 and SHmedia64, respectively.
2683         (pt): New function unit.
2684         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
2685         Add whitespace between operands of SHmedia instructions.
2686         (movdicc): Fix.
2687         (adddi3_media, addsi3_media): Adjust constraints.
2688         (subsi3) [SHmedia]: Force operand 1 into a register.
2689         (udivsi3_i1_media, udivsi3_i4_media): New.
2690         (udivsi3): Support SHmedia.
2691         (divsi3_i1_media, divsi3_i4_media): New.
2692         (divsi3): Support SHmedia.
2693         (anddi3, iordi3, xordi3): Adjust constraints.
2694         (zero_extendhidi2, zero_extendqidi2): New.
2695         (extendsidi2, extendhidi2, extendqidi2): New.
2696         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
2697         (pop_e, pop_fpul, pop_4): Likewise.
2698         (movsi_media): Support FP and BT registers.
2699         (movsi_media_nofpu): New.  Adjust splits to DImode.
2700         (lduw, ldub): Renamed to zero_extend* above.
2701         (movqi_media): Fix typo.
2702         (movdi_media): Support FP and BT registers.
2703         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
2704         (movdi_const_32bit): New.
2705         (shori_media): Require immediate operand.  Use `u' for output.
2706         (movdf_media, movsf_media): Simplified.
2707         (movdf_media_nofpu, movsf_media_nofpu): New.
2708         (movdf, movsf): Adjust
2709         (movv2sf, movv2sf, movv16sf): New.
2710         (beq_media, beq_media_i): Adjust constraints.  Don't use
2711         scratch BT register.
2712         (bne_media, bne_media_i): Likewise.
2713         (bgt_media, bgt_media_i): Likewise.
2714         (bge_media, bge_media_i): Likewise.
2715         (bgtu_media, bgtu_media_i): Likewise.
2716         (bgeu_media, bgeu_media_i): Likewise.
2717         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
2718         bunordered): Emit jump insn.  Force operands to registers when
2719         needed.
2720         (jump_media, jump): Simplify.
2721         (call_compact, call_compact_rettramp): New.
2722         (call_value_compact, call_value_compact_rettramp): New.
2723         (call_media, call_value_media): Simplify.
2724         (sibcall_compact, sibcall_media): New.
2725         (call, call_value): Adjust for SHmedia and SHcompact.
2726         (sibcall, sibcall_value, untyped_call): Likewise.
2727         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
2728         (indirect_jump): Adjust for SHmedia.
2729         (casesi_jump_media): New.
2730         (nop): Re-enable for SHmedia.
2731         (call_site): Restrict to SH1.
2732         (casesi): Adjust for SHmedia.
2733         (casesi_shift_media, casesi_load_media): New.
2734         (return): Explicitly use PR register.  Call return trampoline
2735         on SHcompact.
2736         (return_i): Explicitly use PR register.
2737         (shcompact_return_tramp, shcompact_return_tramp_i): New.
2738         (return_media): Adjust.
2739         (shcompact_incoming_args): New.
2740         (epilogue): Adjust.
2741         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2742         (movstrsi): Disable on SH5.
2743         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
2744         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
2745         (subsf3, subsf3_media): Likewise.
2746         (mulsf3, mulsf3_media, mac_media): Likewise.
2747         (divsf3, divsf3_media): Likewise.
2748         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
2749         (floatsisf2, fux_truncsfsi2): Likewise.
2750         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
2751         constraints.
2752         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
2753         (cmpunsf_media, cmpsf): Likewise.
2754         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
2755         (abssf2, abssf2_media): Likewise.
2756         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
2757         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
2758         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
2759         (floatsidf2, fix_truncdfsi2): Likewise.
2760         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
2761         constraints.
2762         (cmpeqdf_media, cmpgtdf_media): Likewise.
2763         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
2764         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
2765         (absdf2, absdf2_media): Likewise.
2766         (extendsfdf2, extendsfdf2_media): Likewise.
2767         (truncsfdf2, truncsfdf2_media): Likewise.
2768         * config/sh/sh64.h: New file.
2769         * config/sh/t-sh64: New file.
2770         * config/sh/shmedia.h: New file.
2771         * config/sh/ushmedia.h: New file.
2772         * config/sh/sshmedia.h: New file.
2773         * configure.in: Added sh64-*-elf.
2774         * configure: Rebuilt.
2775         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
2776         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
2777         (reg_class_from_letter): Use `b' for TARGET_REGS.
2778         (print_operand): Support `%M', `%m', `AND' and
2779         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
2780         (andcosts): Adjust for SHmedia.
2781         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
2782         Likewise.
2783         (target_reg_operand): New function.
2784         * config/sh/sh-protos.h (target_reg_operand): Declare.
2785         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
2786         FP registers on SH5.
2787         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
2788         on SH4.
2789         (TARGET_REGISTER_P): New macro.
2790         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
2791         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
2792         (EXTRA_CONSTRAINT_S): New macro.
2793         (EXTRA_CONSTRAINT): Adjust.
2794         (FLOAT_TYPE_SIZE): Define to 32.
2795         (Pmode): DImode on SHmedia.
2796         (CONST_COSTS): Adjust for SHmedia literals.
2797         (PREDICATE_CODES): Added target_reg_operand.
2798         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
2799         * config/sh/sh.md: Remove all attrs from SHmedia insns.
2800         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
2801         (cmpdi): Accept SHmedia.
2802         (movdicc_false, movdicc_true): New insns.
2803         (movdicc): New expand.
2804         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2805         no_new_pseudos.
2806         (addsi3_media): Match `S' constraint.
2807         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2808         (negdi2): Expand for SHmedia.
2809         (one_cmpldi2): New expand.
2810         (zero_extendsidi2): Change from expand to insn.
2811         (extendsidi2): Add constraints.
2812         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
2813         LD/ST address.  Fix SI immediate loading split.
2814         (movhi_media, movqi_media, lduw, ldub): New insns.
2815         (movhi, movqi): Accept SHmedia.
2816         (shori_media, movdi_media): Relax input constraints.  Split
2817         symbolic constants.
2818         (movdf_media, movsf_media): New insn.  New split to movdi.
2819         (movdf, movsf): Match on SHmedia.
2820         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2821         bgeu_media): New insns and splits.  New insns with `_i' suffix.
2822         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2823         (bunordered): New expand.
2824         (jump_compact): Renamed from `jump'.
2825         (jump_media): New insn.
2826         (jump): New expand.
2827         (call_media, call_value_media): New insns.
2828         (call, call_value): Adjust.
2829         (indirect_jump_compact): Renamed from `indirect_jump'.
2830         (indirect_jump_media): New insn.
2831         (indirect_jump): New expand.
2832         (untyped_call, return): Accept SHmedia.
2833         (return_media): New insn.
2834         (prologue, epilogue, blockage): Accept SHmedia.
2835         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2836         (sunordered): New expand.
2837         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2838         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2839         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2840         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2841         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2842         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2843         abssf2_media): New insns.
2844         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2845         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2846         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2847         floatdidf2, floatsidf2_media, fix_truncdfdi2,
2848         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2849         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2850         absdf2_media): New insns.
2851         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2852         (extendsfdf2_media, truncdfsf2_media): New insns.
2853         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2854         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2855         * config/sh/sh.h (CONST_OK_FOR_J): Document.
2856         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2857         * config/sh/sh.md (adddi3): New expand.
2858         (adddi3_media, adddi3z_media): New insns.
2859         (adddi3_compact): Renamed from adddi3.
2860         (addsi3_media): Use add.l r63 to add constant zero.
2861         (subdi3): New expand.
2862         (subdi3_media): New insn.
2863         (subdi3_compact): Renamed from subdi3.
2864         (mulsidi3): New expand.
2865         (mulsidi3_media): New insn.
2866         (mulsidi3_compact): Renamed from mulsidi3.
2867         (umulsidi3): New expand.
2868         (umulsidi3_media): New insn.
2869         (umulsidi3_compact): Renamed from umulsidi3.
2870         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2871         (ashlsi3, ashrsi3, lshrsi3): Use them.
2872         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2873         (ashldi3, ashrdi3, lshrdi3): Use them.
2874         (zero_extendsidi2): New expand.
2875         (extendsidi2): New insn.
2876         (movsi_media): New insn.  Split to movdi to load constants.
2877         (movsi): Enable for shmedia.
2878         (movdi_media): New insn.  Use shori_media to load wide constants.
2879         (short_media): New insn.
2880         (movdi): Enable for shmedia.
2881         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
2882         * config/sh/sh.h (CPP_SPEC): Added `m5'.
2883         (SUBTARGET_CPP_SPEC): Added `!m5'.
2884         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2885         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
2886         to all other SH variants.
2887         (TARGET_DEFAULT): Set to SH1_BIT.
2888         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2889         (BITS_PER_WORD): Raise to 64 on shmedia.
2890         (MAX_BITS_PER_WORD): Change to 64.
2891         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
2892         (INT_TYPE_SIZE): Keep as 32.
2893         (UNITS_PER_WORD): Raise to 8 on shmedia.
2894         (MIN_UNITS_PER_WORD): Keep as 4.
2895         (POINTER_SIZE): Raise to 64 on shmedia.
2896         (CONST_OK_FOR_J): New macro.
2897         (CONST_OK_FOR_LETTER_P): Use it.
2898         (processor_type): Add PROCESSOR_SH5.
2899         * config/sh/sh.md: Conditionalize all expands, insns and
2900         splits to TARGET_SH1.
2901         (cpu): Added sh5.
2902         (addsi3_compact): Renamed from...
2903         (addsi3): Now an expand.
2904         (addsi3_media, subsi3_media): New insns.
2905         (subsi3): Don't negate constants with SHmedia.
2906
2907         * hooks.c: New file.
2908         * hooks.h: New file.
2909         * Makefile.in (HOOKS_H): New.
2910         (TARGET_DEF_H): Added $(HOOKS_H).
2911         (OBJS): Added hooks.o.
2912         (cfgcleanup.o, bb-reorder.o): Added target.h.
2913         (hooks.o): Added dependencies.
2914         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
2915         (TARGET_INITIALIZER): this.
2916         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
2917         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
2918         * bb-reorder.c: Include target.h.
2919         (reorder_basic_blocks): Skip if cannot modify jumps.
2920         * cfgcleanup.c: Include target.h.
2921         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
2922
2923 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
2924
2925         * config/mips/mips.md (casesi_internal, casesi_internal_di):
2926         Protect jump delay slot instructions with .set noreorder and
2927         .set nomacro.
2928
2929 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
2930
2931         * config/mips/mips.md (casesi_internal_di): Calculate
2932         the index into the target offset table correctly.
2933
2934 2002-02-08  Richard Henderson  <rth@redhat.com>
2935
2936         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
2937         * final.c (output_addr_const): Accept and discard SUBREG.
2938         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
2939         mark them unknown instead.
2940         (simplify_subtraction): Handle RTX_UNKNOWN.
2941         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
2942
2943 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
2944
2945         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
2946
2947 2002-02-08  Richard Henderson  <rth@redhat.com>
2948
2949         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
2950
2951 2002-02-08  Andreas Jaeger  <aj@suse.de>
2952
2953         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
2954         * config/i386/t-linux64: New file.
2955
2956 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
2957
2958         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
2959         * c-parse.in (compstmt): Clear last_expr_type.
2960
2961 2002-02-07  Richard Henderson  <rth@redhat.com>
2962
2963         * loop.c (strength_reduce): Sink final_value when not
2964         eliminating a biv.
2965
2966 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
2967
2968         * config/sparc/freebsd.h: Fix mismatched spec {.
2969
2970 2002-02-07  Richard Henderson  <rth@redhat.com>
2971
2972         * cfgrtl.c: Include recog.h and insn-config.h.
2973         (keep_with_call_p): Fix general_operand invocation.
2974         * Makefile.in (cfgrtl.o): Update dependencies.
2975
2976 2002-02-07  Kazu Hirata  <kazu@hxi.com>
2977
2978         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
2979         comment.  Accept HImode only if TARGET_H8300.
2980
2981 2002-02-07  Eric Christopher  <echristo@redhat.com>
2982
2983         * config/mips/crtn.asm: Cleanup #ifdefs.
2984
2985 2002-02-07  Eric Christopher  <echristo@redhat.com>
2986
2987         * config/mips/crti.asm: Add changes for mips16. mips16 uses
2988         register 7 as RA instead of $31.
2989         * config/mips/crtn.asm: Ditto.
2990         * config/mips/mips.c (mips_move_2words): Add case for
2991         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
2992         (compute_frame_size): Fix typo.
2993         (save_restore_insns): Ditto.  Make documentation about using
2994         register $7 as return register more precise.
2995         (mips_expand_epilogue): Fix comment. Add code to work around not
2996         being able to add to the stack pointer directly.
2997         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
2998         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
2999         epilogue.
3000
3001 2002-02-07  Tom Rix  <trix@redhat.com>
3002
3003         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
3004         immediates in ldu and stdu DS opcode field.
3005         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
3006         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
3007         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
3008
3009 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
3010
3011         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
3012         offset for stack bias.
3013
3014 2002-02-07  H.J. Lu <hjl@gnu.org>
3015
3016         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
3017
3018 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
3019
3020         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
3021
3022 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
3023
3024         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
3025         * i386.c (x86_order_regs_for_local_alloc): New global function.
3026         * i386.h (REG_ALLOC_ORDER): CLeanup.
3027         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
3028
3029 2002-02-07  Richard Henderson  <rth@redhat.com>
3030
3031         PR optimization/2463
3032         * alias.c (find_base_value): Recall base values for fixed hard regs.
3033         * loop.c (loop_regs_update): Don't use single_set on non-insns.
3034
3035 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
3036
3037         * config/mips/mips.md (define_delay) [mips16]: Adjust required
3038         length.
3039
3040 2002-02-06  Richard Henderson  <rth@redhat.com>
3041
3042         PR c/5609
3043         * stmt.c (resolve_operand_name_1): Take more care with mixed
3044         named and unnamed operands.
3045
3046 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
3047             Jan Hubicka  <jh@suse.cz>
3048
3049         * loop.c (remove_constant_addition): Avoid clobbering a shared
3050         CONST expression.
3051
3052 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
3053
3054         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
3055         * config/s390/t-linux64: New file.
3056         * config/s390/libgcc-glibc.ver: New file.
3057
3058 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
3059
3060         * config/s390/linux64.h: Delete file.
3061         * config/s390/s390x.h: New file.
3062         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
3063         as target header file.
3064         * config/s390/linux.h (TARGET_VERSION): Define depending on
3065         DEFAULT_TARGET_64BIT.
3066         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
3067         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
3068         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
3069         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
3070         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
3071         (EXTRA_SPEC): New define.
3072         * config/s390/s390.h (TARGET_VERSION): Define depending on
3073         DEFAULT_TARGET_64BIT.
3074         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
3075
3076 2002-02-06  Jason Merrill  <jason@redhat.com>
3077
3078         * c-decl.c (finish_function): Warn about a non-void function with
3079         no return statement and no abnormal exit.
3080         (current_function_returns_abnormally): New variable.
3081         (start_function): Clear it.
3082         (struct c_language_function): Add returns_abnormally.
3083         (push_c_function_context): Save it.
3084         (pop_c_function_context): Restore it.
3085         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
3086         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
3087         an explicit return type.
3088         * c-tree.h: Declare current_function_returns_abnormally.
3089         (C_FUNCTION_IMPLICIT_INT): New macro.
3090         * c-typeck.c (build_function_call): Set it.
3091         (c_expand_return): Set current_function_returns_value even if the
3092         value is erroneous.
3093
3094 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
3095
3096         PR c/5420:
3097         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
3098         unsafe for reevaluation.
3099
3100 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
3101
3102         PR c/5482:
3103         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
3104         EXPR_STMT, but COMPOUND_STMT, recurse into it.
3105
3106 2002-02-06  Richard Henderson  <rth@redhat.com>
3107
3108         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
3109         be a general_operand.  Dest for function value must be a pseudo.
3110
3111 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
3112
3113         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
3114         as SYMBOL_REFs from the constant pool.
3115
3116 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
3117
3118         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
3119         passed by invisible reference.
3120
3121 2002-02-05  Richard Henderson  <rth@redhat.com>
3122
3123         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
3124
3125 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
3126
3127         Implement using "base addresses" in insn operands as default.
3128         * config/mmix/mmix.c (mmix_conditional_register_usage): if
3129         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
3130         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
3131         used to read the rtx value.
3132         (mmix_target_asm_function_epilogue): Fix spacing.
3133         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
3134         (mmix_legitimate_address): Ditto.
3135         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
3136         should be loaded with a GETA insn.  Don't allocate needless extra
3137         char for nul termination and fix misleading comment.
3138         (mmix_print_operand_address): Handle constants if
3139         TARGET_BASE_ADDRESSES.
3140         (mmix_output_register_setting): Use base addressing if
3141         TARGET_BASE_ADDRESSES and the number of insns is 3.
3142         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
3143         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
3144         to use R as constraint, add LDA to match s.
3145         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
3146         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
3147         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
3148         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
3149         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
3150         order with other fixed registers.
3151         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
3152         other parameter/call-clobbered registers.
3153         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
3154         -mbase-addresses, -mno-base-addresses.
3155         (MMIX Options): Ditto.
3156
3157 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3158
3159         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
3160
3161 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
3162
3163         * config/rs6000/altivec.h: Change elem to _S_elem.
3164
3165 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
3166
3167         * config/netbsd.h (WCHAR_TYPE): Define.
3168         (WCHAR_TYPE_SIZE): Ditto.
3169         (WINT_TYPE): Ditto.
3170         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
3171         (WCHAR_UNSIGNED): Ditto.
3172         (WCHAR_TYPE_SIZE): Ditto.
3173         (WINT_TYPE): Ditto.
3174         * config/arm/netbsd.h: Likewise.
3175         * config/i386/netbsd-elf.h: Likewise.
3176         * config/i386/netbsd.h: Likewise.
3177         * config/m68k/netbsd-elf.h: Likewise.
3178         * config/m68k/netbsd.h: Likewise.
3179         * config/ns32k/netbsd.h: Likewise.
3180         * config/sparc/netbsd.h: Likewise.
3181         * config/vax/netbsd.: Likewise.
3182
3183 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
3184
3185         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
3186         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
3187         (TARGET_INITIALIZER): this.
3188         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
3189         (BITFIELD_NBYTES_LIMITED): Markup fix.
3190         * tree.h (default_ms_bitfield_layout_p): Declare.
3191         (record_layout_info): Added prev_field.
3192         * tree.c (default_ms_bitfield_layout_p): New fn.
3193         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
3194         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
3195         * stor-layout.c: Include target.h.
3196         (start_record_layout): Initialize prev_field.
3197         (place_field): Handle MS bit-field layout, and disregard
3198         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
3199         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
3200         * Makefile.in (stor-layout.o): Adjust dependencies.
3201
3202 2002-02-05  Jason Merrill  <jason@redhat.com>
3203
3204         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
3205
3206 2002-02-05  Andreas Jaeger  <aj@suse.de>
3207
3208         * crtstuff.c: Fix comments.
3209
3210 2002-02-05  Richard Henderson  <rth@redhat.com>
3211
3212         PR fortran/3393
3213         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
3214         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3215
3216         PR fortran/3392
3217         * config/mips/mips.c (function_arg): Handle TImode.
3218         (function_arg_advance): Likewise.
3219
3220 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
3221
3222         * config/rs6000/altivec.h (vec_step_help): Rename to
3223         __vec_step_help.
3224
3225 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
3226
3227         * config/rs6000/altivec.h: Fix typos.
3228
3229 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
3230
3231         * config/arm/netbsd.h: Correct a comment.
3232
3233 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
3234
3235         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
3236         building void typed builtins.
3237
3238         * config/rs6000/altivec.h (vec_ld*): Fix typos.
3239         (vec_step): Implement for C++.
3240
3241 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3242
3243         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
3244
3245 2002-02-04  Richard Henderson  <rth@redhat.com>
3246
3247         * combine.c (nonzero_bits): Re-introduce special case for
3248         sp/fp/ap wrt REGNO_POINTER_ALIGN.
3249
3250 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
3251
3252         * doc/extend.texi: Warn about unsupported usage of altivec
3253         builtins.
3254
3255         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
3256         (altivec_predicate_*): New.
3257
3258         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
3259         Add C++ version of vec_*() functions.
3260
3261         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
3262         (bdesc_2arg): Remove altivec predicates.
3263         (altivec_expand_builtin): Handle predicates.
3264         (altivec_init_builtins): Handle predicates.
3265         (altivec_expand_predicate_builtin): New.
3266
3267 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3268
3269         * pa.c (DO_FRAME_NOTES): Move forward.
3270         (store_reg): Revise handling of frame notes.
3271         (load_reg): Likewise.
3272         (set_reg_plus_d): Likewise.
3273         (hppa_expand_prologue): Likewise.
3274         (hppa_expand_epilogue): Likewise.
3275
3276 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3277
3278         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
3279
3280 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
3281
3282         PR c/4475, c++/3780:
3283         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
3284         * c-common.h (SWITCH_TYPE): Define.
3285         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
3286         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
3287         Rename spareness variable to sparseness.
3288         (expand_end_case_type): Renamed from expand_end_case, use orig_type
3289         if non-NULL instead of TREE_TYPE (orig_index).
3290         * tree.h (expand_end_case_type): Renamed from expand_end_case.
3291         (expand_end_case): Define using expand_end_case_type.
3292         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
3293         to expand_end_case_type.
3294         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
3295
3296 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3297
3298         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
3299         (BIGGEST_ALIGNMENT): Change to 128.
3300
3301 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3302
3303         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
3304
3305 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3306
3307         * pa.md (call_internal_reg_64bit): Remove unused variable.
3308
3309 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
3310
3311         * config/arm/arm.h (machine_function): Add uses_anonymous_args
3312         field.
3313         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3314         * config/arm/arm.c (current_function_anonymous_args): Delete,
3315         replace uses with cfun->machine->uses_anonymous_args.
3316         (arm_reorg): Do not reset uses_anonymous_args.
3317
3318         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
3319         any geenral register.
3320
3321 2001-02-04  Bernd Schmidt  <bernds@redhat.com>
3322
3323         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
3324         the entry block.
3325
3326 2002-02-04  Richard Henderson  <rth@redhat.com>
3327
3328         * combine.c (force_to_mode): Remove STACK_BIAS code.
3329         (nonzero_bits): Likewise.  Replace sp/fp special case with
3330         REGNO_POINTER_ALIGN.
3331
3332         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
3333         (HARD_FRAME_POINTER_REGNUM): New.
3334         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
3335         (FIXED_REGS, CALL_USED_REGS): Update.
3336         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
3337         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
3338         (HARD_REGNO_NREGS): Update for SFP.
3339         (STACK_POINTER_OFFSET): Include bias here ...
3340         (FIRST_PARM_OFFSET): ... not here.
3341         (STACK_BIAS): Remove.
3342         (INIT_EXPANDERS): New.
3343         (STARTING_FRAME_OFFSET): Do not include bias.
3344         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
3345         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
3346         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
3347         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
3348         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
3349         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
3350         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
3351         (MUST_SAVE_REGISTER): Likewise.
3352         (sparc_flat_function_prologue): Likewise.
3353         (sparc_flat_function_epilogue): Likewise.
3354         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
3355         (sparc_init_modes): SFP is GENERAL_REGS.
3356         (sparc_builtin_saveregs): SFP does not have bias applied.
3357
3358 2002-02-04  Richard Henderson  <rth@redhat.com>
3359
3360         * config/alpha/alpha.c (current_function_is_thunk): Don't check
3361         current_function_is_thunk.
3362         (alpha_sa_mask): Distinguish between current_function_is_thunk
3363         called from ASM_OUTPUT_MI_THUNK and not.
3364         (alpha_does_function_need_gp): Thunks always need gp.
3365         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3366         (alpha_output_mi_thunk_osf): New.
3367         * config/alpha/alpha-protos.h: Update.
3368         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
3369
3370 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
3371
3372         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
3373         function types, not when they're taken away.
3374
3375 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
3376
3377         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
3378         CODE_LABEL and jump table when replacing a table jump with a
3379         simple jump.
3380
3381 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
3382
3383         * config/s390/s390-protos.h (legitimize_la_operand,
3384         s390_secondary_input_reload_class, s390_plus_operand,
3385         s390_expand_plus_operand): Add prototypes.
3386
3387         config/s390/s390.c (s390_secondary_input_reload_class,
3388         s390_plus_operand, s390_expand_plus_operand): New functions.
3389
3390         (struct s390_address): New member 'pointer'.
3391         (s390_decompose_address): Compute it.
3392         (legitimate_la_operand_p): Use it.
3393         (legitimize_la_operand): New function.
3394         (movti, movdi, movdf splitters): Call it.
3395
3396         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
3397         (PREDICATE_CODES): Add s390_plus_operand.
3398
3399         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
3400         (la_ccclobber): Allow GENERAL_REGS as output operand.
3401
3402         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
3403         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
3404         (*la_64, *la_31, reload_indi, reload_insi): ... these.
3405
3406 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
3407
3408         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
3409         register names for regular asm () construct.
3410
3411 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
3412
3413         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
3414         registers.
3415
3416 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
3417
3418         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
3419         pat for recog.
3420
3421 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
3422
3423         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
3424         constant pool to be identical by string address and index.
3425
3426 2002-02-04  Anthony Green  <green@redhat.com>
3427
3428         * output.h (SECTION_OVERRIDE): Define.
3429         * varasm.c (named_section): Obey SECTION_OVERRIDE.
3430
3431 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
3432
3433         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
3434         by existing arm*-*-netbsd* (a.out) target.
3435         (ns32k-*-netbsdelf*): Likewise.
3436         (sparc-*-netbsdelf*): Likewise.
3437         (vax-*-netbsdelf*): Likewise.
3438
3439 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
3440
3441         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
3442         headers and libobjc headers.
3443
3444 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
3445
3446         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
3447         (_mingw.h): Remove duplicate include.
3448
3449 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
3450
3451         * config.gcc: Set cpu_type to m68k for 68010, as well.
3452         (m68010-*-netbsdelf*): New...
3453         (m68k*-*-netbsdelf*): ...targets.
3454         * config/m68k/netbsd-elf.h: New file.
3455
3456 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3457
3458         * config/h8300/h8300.c (hand_list): Move inside function_arg.
3459
3460 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3461
3462         * config/h8300/h8300.c (h8_push_ops): Move inside
3463         h8300_init_once.
3464         (h8_pop_ops): Likewise.
3465         (h8_move_ops): Likewise.
3466
3467 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3468
3469         * config/h8300/h8300.c (os_task): Make it static.
3470         (monitor): Likewise.
3471         (pragma_saveall): Likewise.
3472
3473 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
3474
3475         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
3476         constant is a valid sign-extension for Pmode.
3477
3478 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3479
3480         * config/h8300/h8300.c: Fix formatting.
3481
3482 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3483
3484         * config/h8300/h8300.md: Fix formatting.
3485
3486 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3487
3488         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
3489         predicates of operands[1].  Split the patterns for each
3490         processor variant.
3491
3492 2002-02-02  Kazu Hirata  <kazu@hxi.com>
3493
3494         * config/h8300/h8300.md (xor patterns): Tighten the predicates
3495         of operands[1] to register_operand.
3496
3497 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3498
3499         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
3500         * cpphash.c (_cpp_init_hashtable): Similarly.
3501         * cppinit.c (cpp_create_reader): Default the signed_char flag.
3502         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
3503         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
3504         (cpp_handle_option): Handle the new options.
3505         * cpplex.c (cpp_interpret_charconst): Use new flag.
3506         * cpplib.h (struct cpp_options): New member signed_char.
3507         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
3508         (cpp_options): Handle -fsigned-char and -funsigned-char.
3509         (static_specs): Remove signed_char_spec.
3510         (do_spec1): Don't handle %c.
3511         * system.h: Poison SIGNED_CHAR_SPEC.
3512         * tradcif.y (yylex): Use flag_signed_char.
3513         * tradcpp.h (flag_signed_char): New.
3514         * tradcpp.c (flag_signed_char): New.
3515         (main): Handle new command-line options.
3516         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
3517 config:
3518         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
3519         * avr/avr.h: Remove old comments.
3520         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
3521         (CC1_SPEC): Pass -fsigned-char if -mic*.
3522         (SIGNED_CHAR_SPEC): Remove.
3523 doc:
3524         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
3525
3526 2002-02-01  Eric Christopher  <echristo@redhat.com>
3527
3528         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
3529         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
3530         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
3531         (ASM_OUTPUT_REG_POP): Ditto.
3532
3533 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3534
3535         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
3536         patch.
3537
3538 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
3539
3540         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
3541
3542 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
3543
3544         PR c/5304:
3545         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
3546         unconditionally.
3547
3548 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
3549
3550         * cfganal.c: Include tm_p.h.
3551         (keep_with_call_p): Fix the test that determines if a register holds
3552         the return value of a call.
3553
3554 2002-02-01  DJ Delorie  <dj@redhat.com>
3555
3556         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
3557         we are given conflicting registers, switch to the other one we
3558         had allocated for us.
3559         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
3560         as TImode so we know when the "other" register is available.
3561
3562 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
3563
3564         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
3565         sparc/sparc_bi.h.
3566
3567 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
3568
3569         * cfganal.c (keep_with_call_p): New function.
3570         (flow_call_edges_add): Prevent splitting a block between a call and
3571         a single-set instruction that should be kept in the same block.
3572
3573 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3574
3575         * doc/install.texi (avr): Update outdated URL.
3576
3577 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
3578
3579         * config/stormy16/stormy16.md (pushqi): New.
3580         (popqi): New.
3581         (pushhi): New.
3582         (pophi): New.
3583         (movhi): Remove stack operands.
3584         (movqi): Likewise.
3585         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
3586         nonimmediate_nonstack_operand.
3587         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
3588         New.
3589         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
3590         New.
3591
3592 2002-01-31  Jason Merrill  <jason@redhat.com>
3593
3594         * Makefile.in (c-parse.c): Handle .output file.
3595         * objc/Make-lang.in (objc-parse.c): Likewise.
3596
3597 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
3598
3599         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
3600         the -me[lb] option is given.  Don't output the default flag
3601         twice.
3602
3603 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
3604
3605         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
3606         the primary source file; this has not been done yet.
3607         * c-decl.c (c_expand_body): Reset input_filename from
3608         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
3609
3610 2002-01-31  Kazu Hirata  <kazu@hxi.com>
3611
3612         * rtlanal.c (subreg_regno_offset): Do not use
3613         SUBREG_REGNO_OFFSET.
3614         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
3615         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
3616
3617 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
3618
3619         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
3620         version rather than GNATS version in --version output.
3621
3622 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
3623
3624         * ifcvt.c (noce_process_if_block): Make a copy of the destination
3625         when copying back from a temporary.
3626
3627 2002-01-30  Richard Henderson  <rth@redhat.com>
3628
3629         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
3630         and new_dest are the same.
3631
3632 2002-01-30  Richard Henderson  <rth@redhat.com>
3633
3634         PR opt/5076
3635         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
3636         * rtl.c (note_insn_name): Update.
3637         * emit-rtl.c (remove_unnecessary_notes): Kill it.
3638         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
3639         to perform loop rotation.
3640         (expand_exit_loop_top_cond): New.
3641         * tree.h (expand_exit_loop_top_cond): Declare it.
3642         * c-semantics.c (genrtl_while_stmt): Use it.
3643         (genrtl_for_stmt): Likewise.
3644
3645 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
3646
3647         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
3648         arguments to 64-bit boundaries on 64-bit ABIs.
3649
3650 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
3651
3652         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
3653
3654 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
3655
3656         * c-decl.c (grokdeclarator): Handle type being a typedef for an
3657         invalid type.
3658
3659 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
3660
3661         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
3662         * config/sparc/sparc_bi.h: Remove file.
3663         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
3664
3665 2002-01-30  Richard Henderson  <rth@redhat.com>
3666
3667         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
3668
3669 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
3670
3671         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
3672
3673 2002-01-30  Jason Merrill  <jason@redhat.com>
3674
3675         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
3676         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
3677         (reg_save): Use DW_CFA_offset_extended_sf instead.
3678
3679         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
3680
3681 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
3682
3683         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
3684         in cselib_lookup.
3685
3686 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
3687
3688         * rs6000.md ("*call_value_local32"): Remove constraints.
3689         ("*call_value_local64"): Same.
3690         ("*call_value_indirect_nonlocal_aix32"): Same.
3691         ("*call_value_nonlocal_aix32"): Same.
3692         ("*call_value_indirect_nonlocal_aix64"): Same.
3693         ("*call_value_nonlocal_aix64"): Same.
3694         ("*call_value_nonlocal_sysv"): Same.
3695
3696 2002-01-29  Richard Henderson  <rth@redhat.com>
3697
3698         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
3699
3700 2002-01-29  Richard Henderson  <rth@redhat.com>
3701
3702         * expr.c (force_operand): Ignore flag_pic for detecting pic
3703         address loads.
3704         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
3705         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
3706         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
3707         instead of open-coded loop.
3708         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
3709         be fixed when in use.
3710
3711 2002-01-29  Richard Henderson  <rth@redhat.com>
3712
3713         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
3714         * sched-rgn.c (propagate_deps): Update them.
3715         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
3716         clobbers list when either gets too long.
3717
3718 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
3719
3720         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
3721         and INDEX_REGS the same as GENERAL_REGS.
3722         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3723
3724 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3725
3726         * tree.c (build_nonstandard_integer_type): Correct prototype.
3727
3728 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
3729
3730         * config/s390/s390.md (movstrsico, movstrdix_64,
3731         movstrsix_31): Remove, replace by ...
3732         (movstrdi_short, movstrsi_short, movstrdi_long,
3733         movstrsi_long): ... these.  New.
3734         (movstrdi, movstrsi): Adapt.
3735
3736         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
3737         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
3738         Remove unnecessary CC clobber.
3739         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
3740         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
3741
3742         (divmoddi4): Don't partially initialize TImode register.
3743
3744 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
3745
3746         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
3747
3748 2002-01-29  Richard Henderson  <rth@redhat.com>
3749
3750         * flow.c (print_rtl_and_abort): Remove.
3751         (print_rtl_and_abort_fcn): Remove.
3752         (verify_local_live_at_start): Use dump_bb instead.
3753         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
3754         (verify_wide_reg_1): Return 2 on mode test failure.
3755
3756 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3757
3758         PR c/3325, c/3326, c/2511, c/3347
3759         * c-decl.c (enum_decl_context): Remove BITFIELD.
3760         (grokdeclarator): Take bitfield width as an input.
3761         Ensure bitfields are given the correct type.  Perform
3762         bitfield width validation with build_bitfield_integer_type
3763         rather than waiting for finish_struct.
3764         (grok_typename, grok_typename_in_parm_context, start_decl,
3765         push_parmdecl, grokfield, start_function): Update calls to
3766         grokdeclarator.
3767         (build_bitfield_integer_type): New function.
3768         (finish_struct): Move bitfield validation to grokdeclarator
3769         and build_bitfield_integer_type.
3770         * tree.c (build_nonstandard_integer_type): New function.
3771         * tree.h (build_nonstandard_integer_type): New prototype.
3772 objc:
3773         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
3774
3775 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
3776
3777         PR other/1502:
3778         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
3779         don't ignore unrecognized -W* options.
3780         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
3781         * cpplib.h (cpp_handle_option): Adjust prototype.
3782         * c-decl.c (c_decode_options): Pass 0 as last argument to
3783         cpp_handle_option.
3784
3785         PR c/2896:
3786         * gcc.c (cpp_unique_options): Split from cpp_options.
3787         (cpp_options): Source cpp_unique_options.
3788         (default_compilers): Use cpp_unique_options instead of cpp_options
3789         when used together with cc1_options.
3790         (static_specs): Add cpp_unique_options.
3791         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
3792         when used together with cc1_options.
3793
3794 2002-01-29  Kazu Hirata  <kazu@hxi.com>
3795
3796         * config/h8300/h8300-protos.h: Update the prototype of
3797         output_a_shift.
3798         * config/h8300/h8300.c (output_a_shift): Remove an unused
3799         argument 'insn'.  Remove redundant code.
3800         * config/h8300/h8300.md: Adust to the new prototype of
3801         output_a_shift.
3802
3803 2002-01-29  Kazu Hirata  <kazu@hxi.com>
3804
3805         * config/h8300/h8300-protos.h: Update the prototypes of
3806         emit_a_rotate and expand_a_rotate.
3807         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3808         first argument to 'enum rtx_code'.
3809         (expand_a_rotate): Likewise.
3810
3811 2002-01-28  Kazu Hirata  <kazu@hxi.com>
3812
3813         * config/h8300/h8300-protos.h: Update the prototype of
3814         output_simode_bld.
3815         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3816         'log2'.
3817         * config/h8300/h8300.md: Adjust to the new prototype.
3818
3819 2002-01-28  Kazu Hirata  <kazu@hxi.com>
3820
3821         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3822         redundant code.
3823
3824 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3825
3826         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3827         is a fixed register before returning pic_offset_table_rtx.
3828         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3829         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3830
3831 2002-01-28  Jason Merrill  <jason@redhat.com>
3832
3833         * dwarf2.h: Sync with src version.
3834
3835 2002-01-28  Paul Koning  <pkoning@equallogic.com>
3836
3837         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3838         BT_FN_VOID_PTR_VAR.
3839         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3840         * doc/extend.texi (__builtin_prefetch): Update documentation:
3841         first argument is now const void ptr.
3842
3843 2002-01-28  Kazu Hirata  <kazu@hxi.com>
3844
3845         * config/h8300/h8300-protos.h: Remove an unused prototype.
3846
3847 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
3848
3849         * toplev.c (lang_independent_init): Round up identifier size.
3850
3851 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
3852
3853         * config.gcc: Revert previous change.
3854
3855 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
3856
3857         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3858
3859 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
3860
3861         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3862         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
3863         other non-elf netbsd config frags.
3864         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3865         collect2 will does that.
3866         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3867         shared-lib frobbing will work.
3868
3869 2002-01-28  Kazu Hirata  <kazu@hxi.com>
3870
3871         * config/h8300/h8300.h: Fix formatting.
3872         * config/h8300/h8300.md: Likewise.
3873
3874 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
3875
3876         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3877         the old, removed AAA_standards fix.
3878         * fixinc/fixincl.x: Rebuilt.
3879
3880 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
3881
3882         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3883         atexit call in crtbegin, hooked in after call to frame_dummy;
3884         register EH before registering __fini__start.
3885
3886 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
3887
3888         * config/rs6000/altivec.h: Remove spurious semicolons.
3889
3890 2002-01-27  Kazu Hirata  <kazu@hxi.com>
3891
3892         * config/h8300/h8300.md: Replace dead bit extraction patterns
3893         with ones that work.
3894
3895 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3896
3897         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
3898         if not STRICT_ALIGNMENT.
3899         * rtl.h (MEM_ALIGN): Likewise.
3900
3901 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3902
3903         * doc/invoke.texi (-fdump-translation-unit): Revert this
3904         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3905
3906 2002-01-27  Kazu Hirata  <kazu@hxi.com>
3907
3908         * config/h8300/h8300.md (define_constants): New.
3909         (anonymous patterns) Use defined constants appropriately.
3910
3911 2002-01-27  Kazu Hirata  <kazu@hxi.com>
3912
3913         * config/h8300/h8300.c (function_arg): Remove redundant code.
3914
3915 2002-01-26  Richard Henderson  <rth@redhat.com>
3916
3917         * sched-deps.c (reg_pending_uses_head): New.
3918         (reg_pending_barrier): Rename from reg_pending_sets_all.
3919         (find_insn_list): Don't mark inline.
3920         (find_insn_mem_list): Remove.
3921         (add_dependence_list, add_dependence_list_and_free): New.
3922         (flush_pending_lists): Replace only_write param with separate
3923         for_read and for_write parameters.  Update all callers.  Use
3924         add_dependence_list_and_free.
3925         (sched_analyze_1): Do not add reg dependencies here; just set
3926         the pending bits.  Use add_dependence_list.
3927         (sched_analyze_2): Likewise.
3928         (sched_analyze_insn): Replace schedule_barrier_found with
3929         reg_pending_barrier.  Add all dependencies for pending reg
3930         uses, sets, and clobbers.
3931         (sched_analyze): Don't add reg dependencies for calls, just
3932         set pending bits.  Use regs_invalidated_by_call.  Treat
3933         sched_before_next_call as a normal list, not a fake insn.
3934         (init_deps): No funny init for sched_before_next_call.
3935         (free_deps): Free pending mems lists.  Don't zero reg_last.
3936         (init_deps_global): Init reg_pending_uses.
3937         (finish_deps_global): Free it.
3938         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
3939         (find_insn_mem_list): Remove.
3940         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
3941         (propagate_deps): Use them.  Zero temp mem lists.
3942
3943 2002-01-26  Richard Henderson  <rth@redhat.com>
3944
3945         * Makefile.in (CRTSTUFF_CFLAGS): New.
3946         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
3947         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
3948         crtstuff.c instead of alpha assembly version.
3949         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
3950         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
3951         not FORCE_{INIT,FINI}_SECTION_ALIGN.
3952         (__do_global_dtors_aux): Mark used.
3953         (frame_dummy, __do_global_ctors_aux): Mark used.
3954         (fini_dummy, init_dummy): Remove.
3955
3956         * config/alpha/crtbegin.asm: Remove file.
3957         * config/alpha/crtend.asm: Remove file.
3958         * config/alpha/t-crtbe: Remove file.
3959         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
3960         (LINK_EH_SPEC): New.
3961
3962         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
3963         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
3964         calling constructors.
3965         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
3966
3967         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
3968         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
3969         CRT_END_INIT_DUMMY hack.
3970         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
3971         FORCE_{INIT,FINI}_SECTION_ALIGN.
3972
3973         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
3974         FORCE_{INIT,FINI}_SECTION_ALIGN.
3975
3976         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
3977         invocation sequence.
3978         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3979
3980         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
3981         (FORCE_CODE_SECTION_ALIGN): New.
3982
3983 2002-01-26  Richard Henderson  <rth@redhat.com>
3984
3985         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
3986
3987 2002-01-26  Richard Henderson  <rth@redhat.com>
3988
3989         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
3990         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
3991
3992 2002-01-26  Kazu Hirata  <kazu@hxi.com>
3993
3994         * config/h8300/h8300.md: Remove bit extraction patterns that
3995         cannot be triggered.
3996         Restrict each bit extraction pattern to a variant on which the
3997         pattern is tested.
3998
3999 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
4000
4001         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
4002
4003 2002-01-26  Kazu Hirata  <kazu@hxi.com>
4004
4005         * config/h8300/h8300.md: Remove bit test patterns that cannot
4006         be triggered.
4007         Restrict each bit test pattern to a variant on which the
4008         pattern is tested.
4009
4010 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4011
4012         * builtins.c (expand_builtin_strncat): Remove redundant check for
4013         INTEGER_CST.
4014
4015 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
4016
4017         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
4018         default setting.
4019         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
4020         existing setting.
4021
4022 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
4023
4024         * dbxout.c (dbxout_init): Use assemble_name rather than just
4025         stripping off the first character.
4026         (dbxout_source_file): Likewise.
4027
4028 2002-01-25  DJ Delorie  <dj@redhat.com>
4029
4030         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
4031         using rtx_equal_p, not by comparing pointers.
4032
4033 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
4034
4035         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
4036         for PIC_OFFSET_TABLE_REGNUM.
4037         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
4038
4039 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
4040
4041         * config.gcc (x86_64-*-freebsd*): New target.
4042         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
4043         value.
4044         (i[34567]86-*-freebsd*): Don't include svr4.h.
4045         * config/i386/freebsd64.h: New file.
4046
4047 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
4048
4049         * config/alpha/x-vms (version): Make static.
4050
4051         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
4052         in previous checkin.
4053
4054         * Makefile.in (install-headers-cp): New target.
4055         * config.gcc (alpha-dec-*vms*): Install headers with
4056         install-headers-cp
4057
4058 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4059
4060         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
4061         avoid it's copies.
4062
4063 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4064
4065         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
4066         of compare_tree_int.
4067         (expand_builtin_strncat): Likewise.
4068         * c-decl.c (finish_struct): Use tree_low_cst.
4069         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
4070         * tree.c (compare_tree_int): Likewise.
4071
4072 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
4073
4074         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
4075         adjustments even if they are implemented by more than two insns.
4076
4077 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
4078
4079         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
4080         * df.h (struct ref): Kill B.
4081         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
4082
4083         * basic-block.h (PROP_EQUAL_NOTES): New flag.
4084         * flow.c (propagate_one_insn): Use it.
4085         (mark_used_regs): Handle NIL.
4086
4087 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
4088
4089         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
4090         to help folding.
4091
4092 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
4093
4094         * rs6000.md (prefetch): Make address V4SI mode so that the address
4095         is restricted to legitimate form for instruction.
4096
4097 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
4098
4099         * doc/install.texi (xtensa-*-elf): New target.
4100         (xtensa-*-linux*): New target.
4101         * doc/contrib.texi: Add myself.
4102
4103 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
4104
4105         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
4106         purpose register to hold an SImode (or smaller) value.
4107
4108 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
4109
4110         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
4111         registry only.
4112         * crtstuff.c: Likewise.
4113
4114 2002-01-25  Kazu Hirata  <kazu@hxi.com>
4115
4116         * config/h8300/h8300.md (negation patterns): Tighten
4117         predicates to register_operand.
4118
4119 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
4120
4121         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
4122         mode, not Pmode.
4123
4124         * builtins.c (expand_builtin_prefetch): Same.
4125
4126 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
4127
4128         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
4129         modes.
4130
4131 2002-01-24  Kazu Hirata  <kazu@hxi.com>
4132
4133         * config/h8300/h8300.c (print_operand): Remove support for
4134         operand character 'A'.
4135         * config/h8300/h8300.md (three anonymous patterns): Replace
4136         operand character 'A' with either 'T' or 'S'.
4137
4138 2002-01-24  Kazu Hirata  <kazu@hxi.com>
4139
4140         * config/h8300/h8300.c (print_operand): Remove support for
4141         operand character 'U'.
4142
4143 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
4144
4145         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
4146
4147 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
4148
4149         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
4150         values to be assigned to the stack pointer.
4151
4152 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
4153
4154         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
4155         to const_double needs to be done right for big-endian systems.
4156
4157 2002-01-24  Jason Merrill  <jason@redhat.com>
4158
4159         PR c++/2432
4160         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
4161         to can_throw_internal.
4162
4163 2002-01-23  Richard Henderson  <rth@redhat.com>
4164
4165         * fold-const.c (fold): Change UINT_MAX test to check vs precision
4166         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
4167
4168 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
4169
4170         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
4171         (symGOT2reg): Use them, then set as GOT value as unchanging.
4172         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
4173         as a temporary, if possible.
4174         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
4175         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
4176
4177 2002-01-23  Kazu Hirata  <kazu@hxi.com>
4178
4179         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
4180         accept to accept 0x80 as operands[2].
4181
4182 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
4183
4184         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
4185
4186 2002-01-23  Richard Henderson  <rth@redhat.com>
4187
4188         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
4189
4190 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
4191
4192         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
4193         (parmlist_or_identifiers_1): Verify that only a parmlist follows
4194         an attribute.
4195
4196 2002-01-23  Richard Henderson  <rth@redhat.com>
4197
4198         * expr.c (move_by_pieces_1): Extend size before negation.
4199
4200         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
4201         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
4202         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
4203         * config/m68k/t-m68kelf: Likewise.
4204
4205 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
4206
4207         * config/xtensa/elf.h: New file.
4208         * config/xtensa/lib1funcs.asm: New file.
4209         * config/xtensa/lib2funcs.S: New file.
4210         * config/xtensa/linux.h: New file.
4211         * config/xtensa/t-xtensa: New file.
4212         * config/xtensa/xtensa-config.h: New file.
4213         * config/xtensa/xtensa-protos.h: New file.
4214         * config/xtensa/xtensa.c: New file.
4215         * config/xtensa/xtensa.h: New file.
4216         * config/xtensa/xtensa.md: New file.
4217         * config.gcc (xtensa-*-elf*): New target.
4218         (xtensa-*-linux*): New target.
4219         * cse.c (canon_hash): Compare rtx pointers instead of register
4220         numbers.  This is required for the Xtensa port.
4221         * integrate.c (copy_insn_list): Handle case where the static
4222         chain is in memory and the memory address has to be copied to
4223         a register.
4224         * doc/invoke.texi (Option Summary): Add Xtensa options.
4225         (Xtensa Options): New node.
4226         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
4227
4228 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
4229
4230         * diagnostic.c (internal_error): Do ICE suppression only
4231         when ENABLE_CHECKING is not defined.
4232
4233         * c-typeck.c (require_complete_type): Return error_mark_node
4234         if type is error_mark_node.
4235
4236 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
4237
4238         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
4239         -Os and issue a warning.
4240
4241 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
4242
4243         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
4244         current (lack of) need for host configuration by hand.
4245
4246         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
4247         references.  Documentation of some target macros moved from
4248         hostconfig.texi to tm.texi.
4249
4250 2002-01-23  Will Cohen  <wcohen@redhat.com>
4251
4252         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
4253         defined.
4254
4255 2002-01-23  Kazu Hirata  <kazu@hxi.com>
4256
4257         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
4258         operand[3].
4259
4260 2002-01-23  Jason Merrill  <jason@redhat.com>
4261
4262         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
4263
4264         * function.c (assign_parms): Don't put args of inline functions
4265         into registers when not optimizing.
4266
4267 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
4268
4269         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
4270         (prologue_use): New pattern.
4271         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
4272         preference to gen_rtx_USE.
4273         (thumb_expand_prologue): Use gen_prologue_use in preference to
4274         gen_rtx_USE.
4275         (thumb_expand_epilogue): Use gen_prologue_use in preference to
4276         gen_rtx_USE.
4277
4278 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
4279
4280         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
4281
4282 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4283
4284         PR c/3504
4285         * doc/extend.texi: Correct documentation of __alignof__.
4286
4287 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
4288
4289         * params.h: Rename arguments of DEFPARAM so that it will be
4290         recognized as a translation keyword.
4291
4292 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
4293
4294         * extend.texi: Document altivec functions.
4295         Fix N-bit adjectives in X86 builtin documentation.
4296
4297 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
4298
4299         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
4300         auto_inc_dec values.
4301
4302 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
4303
4304         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
4305         after backslash.
4306         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
4307
4308 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
4309
4310         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
4311
4312 2002-01-22  Richard Henderson  <rth@redhat.com>
4313
4314         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
4315         copy_insn not copy_rtx.
4316
4317 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
4318
4319         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
4320         "nonzero" as that might add "1" bits.  Ensure "constop" is
4321         properly sign extened.
4322         (force_to_mode): Tweak for sign extended constop.
4323
4324 2002-01-22  Richard Henderson  <rth@redhat.com>
4325
4326         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
4327         for_each_rtx instead of assuming we're already looking at the MEM.
4328         (split_small_symbolic_mem_operand): Likewise.
4329         * config/alpha/alpha.h (PREDICATE_CODES): Update.
4330         * config/alpha/alpha.md (small symbolic memory splitters): Update.
4331
4332 2002-01-22  Richard Henderson  <rth@redhat.com>
4333
4334         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
4335         sequence number for the literal.
4336         (divmoddi_internal_er): Likewise.
4337
4338 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4339
4340         PR java/4972
4341         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
4342         in LIBICONV variable.
4343         * configure: Regenerated.
4344
4345 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
4346
4347         * dependence.c (build_def_use): Remove array_idx.
4348
4349         * dwarfout.c (last_filename): Remove.
4350         (output_compile_unit_die): Remove last_filename.
4351
4352 2002-01-22  Roger Sayle  <roger@eyesopen.com>
4353             Richard Henderson  <rth@redhat.com>
4354
4355         PR opt/3640
4356         * fold-const.c (fold): Optimize unsigned comparisons against
4357         UINT_MAX (and similar unsigned constants).
4358
4359 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
4360
4361         * Makefile.in (loop.o): Depend on OPTABS_H.
4362         * loop.c (emit_prefetch_instructions): Check the prefetch operand
4363         against the predicate.
4364
4365         PR target/5379
4366         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
4367         for the address operand.
4368
4369 2002-01-22  Richard Henderson  <rth@redhat.com>
4370
4371         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
4372
4373 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4374
4375         PR other/5450
4376         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
4377         preprocessor flags.
4378
4379 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
4380
4381         * config.gcc (x86_64-*-netbsd*): New target.
4382         * config/i386/netbsd64.h: New file.
4383
4384 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
4385
4386         * regrename.c (kill_value): Fix typo.
4387
4388 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
4389
4390         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
4391
4392         * config/rs6000/rs6000.h: Same.
4393
4394         * function.c (instantiate_virtual_regs): Remove
4395         STARTING_FRAME_PHASE.
4396         (assign_stack_local_1): Same.
4397         Calculate frame phase.
4398
4399 2002-01-22  Nick Clifton  <nickc@redhat.com>
4400
4401         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
4402         variable declaration to outer scope in order to simplify
4403         future extensions.
4404         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
4405         arm_hard_regno_mode_ok.
4406         * config/arm/arm-protos.h: Add a prototype for
4407         arm_hard_regno_mode_ok.
4408         * config/arm/arm.c (soft_df_operand): Remove now redundant
4409         check for DImode values using IP_REGNUM.
4410         (nonimmediate_soft_df_operand): Remove now redundant check for
4411         DImode values using IP_REGNUM.
4412         (arm_hard_regno_mode_ok): New function. New check: make sure
4413         that DImode values are not stored in IP_REGNUM.
4414
4415         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
4416         note with a USE.
4417         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
4418
4419 2002-01-22  Jason Merrill  <jason@redhat.com>
4420
4421         * c-semantics.c (genrtl_compound_stmt): Only check nesting
4422         consistency if this COMPOUND_STMT is scoped.
4423
4424 2002-01-22  Kazu Hirata  <kazu@hxi.com>
4425
4426         * predict.c: Fix formatting.
4427         * print-tree.c: Likewise.
4428         * protoize.c: Likewise.
4429         * real.h: Likewise.
4430         * rtl.h: Likewise.
4431         * sbitmap.h: Likewise.
4432         * scan.c: Likewise.
4433         * sched-deps.c: Likewise.
4434         * sched-vis.c: Likewise.
4435         * sdbout.c: Likewise.
4436         * sibcall.c: Likewise.
4437         * ssa.c: Likewise.
4438         * ssa-ccp.c: Likewise.
4439         * ssa-dce.c: Likewise.
4440         * stmt.c: Likewise.
4441         * stor-layout.c: Likewise.
4442         * system.h: Likewise.
4443
4444 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4445
4446         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
4447         if fits in bounds of base type.
4448
4449         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
4450         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
4451         (add_bound_info, default): If can't find a context, make a
4452         SAVE_EXPR.
4453         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
4454
4455 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
4456
4457         * c-typeck.c (parser_build_binary_op): If result from
4458         build_binary_op is ERROR_MARK just return error_mark_node without
4459         further processing.
4460
4461 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
4462
4463         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
4464         Split a.out-specific bits into...
4465         * config/netbsd-aout.h: ...this.
4466         * config/netbsd-elf.h: New file.
4467         * config/alpha/netbsd-elf.h: Remove.
4468         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
4469         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
4470         (STARTFILE_SPEC): Remove redundant definition.
4471         (ENDFILE_SPEC): Likewise.
4472         (LINK_SPEC): Likewise.
4473         (CPP_SPEC): Likewise.
4474         (ASM_SPEC): Likewise.
4475         (LIB_SPEC): Likewise.
4476         (SWITCH_TAKES_ARG): Likewise.
4477         (TARGET_MEM_FUNCTIONS): Likewise.
4478         (CPP_PREDEFINES): Redefine.
4479         (ASM_FINAL_SPEC): Remove redefinition.
4480         (ASM_COMMENT_START): Redefine.
4481         (FUNCTION_PROFILER): Define.
4482         (TARGET_VERSION): Redefine.
4483         Comment and formatting cleanup.
4484         * config/i386/netbsd.h: Include <netbsd-aout.h>.
4485         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
4486         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
4487         big- or little-endian.
4488         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
4489         * config.gcc (*-*-netbsd*): Add definitions common to all
4490         NetBSD configs.
4491         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
4492         gnu_ld definitions.  Add netbsd-elf.h to and remove
4493         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
4494         tmake_file, and don't lose previous tmake_file contents.
4495         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
4496         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
4497         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
4498         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
4499         (mipsel-*-netbsd*): Rename this to...
4500         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
4501         mips/little.h to tm_file for mips*el-*.
4502         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
4503         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
4504         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
4505
4506 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4507
4508         * pa-protos.h (reg_before_reload_operand): New function prototype.
4509         * pa.c (reg_before_reload_operand): New function implementation.
4510         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
4511         contraints to "*m".
4512
4513 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4514
4515         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
4516
4517 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4518
4519         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
4520         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
4521         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
4522         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
4523         (ENDFILE_SPEC): Undefine.
4524         (STARTFILE_SPEC): Redefine for PA.
4525
4526 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4527
4528         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
4529
4530 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
4531
4532         * config.gcc: Add entries to supported PowerPC --with-cpu
4533         types.
4534
4535 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
4536
4537         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
4538         true for 64-bit mode only SSE registers in 32-bit mode.
4539
4540 2002-01-21  Kazu Hirata  <kazu@hxi.com>
4541
4542         * unwind-dw2.c: Fix formatting.
4543         * unwind-dw2-fde.c: Likewise.
4544         * unwind-dw2-fde.h: Likewise.
4545         * unwind-pe.h: Likewise.
4546         * varasm.c: Likewise.
4547         * varray.h: Likewise.
4548
4549 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
4550
4551         Remove workaround for register stack overwrite bug in mmix.
4552         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
4553         support for TARGET_REG_STACK_FILL_BUG.
4554         * config/mmix/mmix.h: Remove member has_call_without_parameters.
4555         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
4556         Delete.
4557         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
4558         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
4559         -mno-reg-stack-fill-bug-workaround.
4560         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
4561         machine member has_call_without_parameters.
4562         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
4563         -mreg-stack-fill-bug-workaround and
4564         -mno-reg-stack-fill-bug-workaround.
4565         (MMIX Options): Ditto.
4566
4567 2002-01-21  Kazu Hirata  <kazu@hxi.com>
4568
4569         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
4570         as appropriate.
4571         Remove redundant code.
4572
4573 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4574
4575         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
4576         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4577         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4578         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
4579         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
4580         out target macro definitions and non-target-specific comments
4581         mostly taken from old versions of the manual.
4582
4583 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4584
4585         * config/h8300/h8300.h: Fix comment formatting.
4586         * config/ia64/aix.h: Likewise.
4587         * config/ia64/ia64-protos.h: Likewise.
4588         * config/ia64/ia64.c: Likewise.
4589         * config/ia64/ia64.h: Likewise.
4590         * config/ia64/ia64intrin.h: Likewise.
4591         * config/ia64/linux.h: Likewise.
4592         * config/ia64/unwind-aix.c: Likewise.
4593         * config/ia64/unwind-ia64.c: Likewise.
4594
4595 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4596
4597         * config/h8300/h8300.c: Revise comments about shift code.
4598
4599 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4600
4601         * config/h8300/h8300.c (function_arg): Update a comment.
4602
4603 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4604
4605         * config/h8300/h8300.md: Update the comments at the beginning
4606         of the file.
4607
4608 2002-01-20  Kazu Hirata  <kazu@hxi.com>
4609
4610         * config/i370/i370.c: Fix comment formatting.
4611         * config/i370/i370.h: Likewise.
4612         * config/i370/i370.md: Likewise.
4613         * config/i370/linux.h: Likewise.
4614
4615 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4616
4617         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
4618
4619         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
4620         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
4621         in incomplete case.
4622
4623 2002-01-20  Graham Stott  <grahams@redhat.com>
4624
4625         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
4626
4627 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4628
4629         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
4630
4631 2002-01-19  Tom Rix  <trix@redhat.com>
4632
4633         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
4634
4635 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
4636
4637         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
4638
4639         * function.c (assign_stack_local_1): Adjust x_frame_offset with
4640         STARTING_FRAME_PHASE.
4641         (STARTING_FRAME_PHASE): New.
4642         (instantiate_virtual_regs): Check saneness of
4643         STARTING_FRAME_PHASE.
4644
4645         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
4646
4647 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
4648
4649         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
4650
4651 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4652
4653         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
4654         be used for bootstrapping GCC 3.0.
4655
4656 2002-01-18  Kazu Hirata  <kazu@hxi.com>
4657
4658         * config/h8300/h8300.md: Fix an insn length.
4659
4660 2002-01-18  Kazu Hirata  <kazu@hxi.com>
4661
4662         * bitmap.h: Fix comment formatting.
4663         * combine.c: Likewise.
4664         * cppfiles.c: Likewise.
4665         * c-pragma.h: Likewise.
4666         * c-typeck.c: Likewise.
4667         * df.c: Likewise.
4668         * dwarf2out.c: Likewise.
4669         * function.c: Likewise.
4670         * gcc.c: Likewise.
4671         * genattrtab.c: Likewise.
4672         * gthr-win32.h: Likewise.
4673         * haifa-sched.c: Likewise.
4674         * predict.c: Likewise.
4675         * rtlanal.c: Likewise.
4676         * rtl.h: Likewise.
4677         * unwind-dw2-fde.h: Likewise.
4678         * unwind-pe.h: Likewise.
4679         * vmsdbgout.c: Likewise.
4680
4681 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4682
4683         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
4684         if type_required and passed decl.
4685
4686 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
4687
4688         * config.gcc (cpu_type): Include altivec.h in powerpc
4689         extra_headers.
4690         Same for darwin.
4691
4692         * config/rs6000/altivec.h: New.
4693
4694 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
4695
4696         * doc/install.texi (*-ibm-aix*): Update assembler and exception
4697         handling information.
4698         * doc/trouble.texi (Interoperation): Add libstdc++ information
4699         for AIX.
4700         (Misunderstandings): Add template instantiation and static template
4701         member information for AIX.
4702
4703 2002-01-17  Jason Merrill  <jason@redhat.com>
4704
4705         * dbxout.c (dbxout_type): Support const and volatile.
4706
4707         * except.c (add_partial_entry): Remove backwards compatibility code.
4708         (end_protect_partials): Likewise.
4709
4710 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
4711
4712         * config/ia64/ia64.md (prologue_use): New.
4713         * config/ia64/ia64.c (ia64_expand_prologue): Use
4714         gen_prologue_use instead of gen_rtx_USE.
4715         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
4716         as CODE_FOR_pred_rel_mutex.
4717         (ia64_sched_reorder2): Likewise.
4718
4719 2002-01-16  Eric Christopher  <echristo@redhat.com>
4720
4721         * config/mips/r3900.h: Reformat.
4722         (SUBTARGET_CPP_SIZE_SPEC): Remove.
4723         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
4724         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
4725         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
4726         * config/mips/t-elf: Remove mips3 multilib.
4727
4728 2002-01-16  H.J. Lu <hjl@gnu.org>
4729
4730         * config/mips/linux.h: Include "mips/abi64.h".
4731
4732 2002-01-16  H.J. Lu <hjl@gnu.org>
4733
4734         * config/mips/t-linux: New.
4735
4736         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
4737
4738         * config/mips/linux.h: Don't include "gofast.h".
4739         (INIT_SUBTARGET_OPTABS): Removed.
4740
4741 2002-01-16  Kazu Hirata  <kazu@hxi.com>
4742
4743         * config/h8300/h8300-protos.h: Replace emit_a_shift with
4744         output_a_shift.
4745         * config/h8300/h8300.c: Likewise.
4746         * config/h8300/h8300.md: Likewise.
4747
4748 2002-01-16  Kazu Hirata  <kazu@hxi.com>
4749
4750         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
4751         spaces after an opcode name.
4752         (pushqi1_h8300hs): Likewise.
4753         (pushhi1_h8300hs): Likewise.
4754
4755 2002-01-16  Kazu Hirata  <kazu@hxi.com>
4756
4757         * doc/extend.texi: Replace "option" with "attribute"
4758         appropriately.
4759
4760 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
4761
4762         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
4763         (and:DI () (const_int -8)).
4764         (split_small_symbolic_mem_operand): Split
4765         (mem (and:DI () (const_int -8)).
4766
4767 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
4768
4769         PR target/5309:
4770         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
4771         same way as TYPE_IMUL.
4772         (ultrasparc_sched_reorder): Likewise.
4773         * config/sparc/sparc.md (type): Add comment to update
4774         ultrasparc_sched_reorder when making changes.
4775
4776 2002-01-16  Kazu Hirata  <kazu@hxi.com>
4777
4778         * doc/invoke.texi: Change the dump file name of block
4779         reordering pass from 28.bbro to 29.bbro.
4780         Mention -dk option.
4781
4782 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
4783
4784         * i386.md (minsf splitter): Fix pasto.
4785
4786 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
4787
4788         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
4789         to frame pointer initialisation instruction.
4790         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
4791         initialisation instruction.
4792         (soft_df_operand): Do not accept the IP register.
4793         (nonimmediate_soft_df_operand): Do not accept the IP register.
4794
4795 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
4796
4797         PR target/5357:
4798         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
4799         MASK_V8 being both set.
4800
4801 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
4802
4803         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4804         insn for GOT register; add REG_MAYBE_DEAD notes instead.
4805         config/s390/s390.md (call, call_value): Add GOT register to
4806         CALL_INSN_FUNCTION_USAGE where needed.
4807         (call_exp, call_value_exp): New.
4808
4809 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
4810
4811         * config/arm/arm.c: General formatting tidy up.
4812
4813 2002-01-16  Graham Stott  <grahams@redhat.com>
4814
4815         * calls.c (try_to_integrate): Use "(size_t)" intermediate
4816         cast and when casting an integer literal to "rtx" pointer.
4817         (expand_call): Likewise.
4818         * flow.c (try_pre_increment): Likewise.
4819         (find_use_as_address): Likewise.
4820         * integrate.c (expand_iline_function): Likewise.
4821         * regmove.c (try_auto_increment): Likewise.
4822
4823 2002-01-16  Graham Stott  <grahams@redhat.com>
4824
4825         * sched-rgn.c (passed): Use sbitmap_free.
4826         (header): Likewise.
4827         (inner): Likewise.
4828         (in_queue): Likewise.
4829         (in_stack): Likewise.
4830
4831 2002-01-15  Eric Christopher  <echristo@redhat.com>
4832
4833         * flow.c (propagate_one_insn): Change to use fatal_insn.
4834
4835 2002-01-15  Kazu Hirata  <kazu@hxi.com>
4836
4837         * expmed.c (extract_fixed_bit_field): Remove unused code.
4838         * system.h: Poison SLOW_ZERO_EXTEND.
4839         * doc/tm.texi: Remove.
4840         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4841         * config/arm/arm.h: Likewise.
4842         * config/avr/avr.h: Likewise.
4843         * config/clipper/clipper.h: Likewise.
4844         * config/convex/convex.h: Likewise.
4845         * config/d30v/d30v.h: Likewise.
4846         * config/dsp16xx/dsp16xx.h: Likewise.
4847         * config/elxsi/elxsi.h: Likewise.
4848         * config/fr30/fr30.h: Likewise.
4849         * config/h8300/h8300.h: Likewise.
4850         * config/i370/i370.h: Likewise.
4851         * config/i386/i386.h: Likewise.
4852         * config/m68k/m68k.h: Likewise.
4853         * config/mips/mips.h: Likewise.
4854         * config/ns32k/ns32k.h: Likewise.
4855         * config/pdp11/pdp11.h: Likewise.
4856         * config/pj/pj.h: Likewise.
4857         * config/s390/s390.h: Likewise.
4858         * config/sh/sh.h: Likewise.
4859         * config/stormy16/stormy16.h: Likewise.
4860         * config/v850/v850.h: Likewise.
4861         * config/vax/vax.h: Likewise.
4862         * config/we32k/we32k.h: Likewise.
4863
4864 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
4865
4866         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4867         (altivec_lvsl): Change constraint to b.
4868         (altivec_lvsr): Same.
4869         (altivec_lvebx): Same.
4870         (altivec_lvehx): Same.
4871         (altivec_lvewx): Same.
4872         (altivec_lvxl): Same.
4873         (altivec_lvx): Same.
4874         (altivec_stvx): Add parallel.
4875         (altivec_stvxl): Same.
4876         (altivec_stvehx): Same.
4877         (altivec_stvebx): Same.
4878         (altivec_stvebx): Same.
4879
4880 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
4881
4882         * config.gcc: Change altivec.h to altivec-defs.h.
4883
4884         * config/rs6000/altivec.h: Delete.
4885
4886         * config/rs6000/altivec-defs.h: Add.
4887
4888 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4889
4890         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
4891         and UMOD modes.
4892
4893         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
4894         less than or equal to eight bytes.
4895
4896         * vax.md (andsi3): Remove constraints and change SET destination
4897         operand type to nonimmediate_operand.
4898         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
4899         when it is a CONST_INT.
4900
4901 2002-01-15  Jason Merrill  <jason@redhat.com>
4902
4903         * c-common.def (FILE_STMT): New code.
4904         * c-common.c (statement_code_p): It's a statement.
4905         * c-common.h (stmt_tree_s): Add x_last_filename.
4906         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
4907         (last_expr_filename): New macro.
4908         * c-semantics.c (begin_stmt_tree): Initialize it.
4909         (add_stmt): If the filename changed, also insert a
4910         FILE_STMT.
4911         (expand_stmt): Handle seeing one.
4912
4913 2002-01-15  Eric Christopher  <echristo@redhat.com>
4914
4915         * flow.c (propagate_one_insn): Add error message and print out
4916         insn for debugging.
4917
4918 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
4919
4920         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
4921         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
4922         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
4923         TRAMPOLINE_ALIGNMENT.
4924         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
4925         to be in bits.
4926         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
4927         PCC_BITFIELD_TYPE_MATTERS.
4928         * config/interix.h (STDC_VALUE): Remove.  Use
4929         STDC_0_IN_SYSTEM_HEADERS.
4930         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
4931         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
4932         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
4933
4934 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4935
4936         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
4937         not work on this platform currently.
4938
4939 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
4940
4941         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
4942         readonly_warning in _().
4943
4944 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
4945
4946         * gcc.c (delete_if_ordinary): Backout previous change.
4947
4948 2002-01-15  Kazu Hirata  <kazu@hxi.com>
4949
4950         * config/h8300/h8300.c (print_operand): Remove support for
4951         unused operand characters.
4952
4953         * read-rtl.c: Fix formatting.
4954         * real.c: Likewise.
4955         * recog.c: Likewise.
4956         * regclass.c: Likewise.
4957         * regmove.c: Likewise.
4958         * reg-stack.c: Likewise.
4959         * reload1.c: Likewise.
4960         * rtlanal.c: Likewise.
4961
4962 2002-01-15  Kazu Hirata  <kazu@hxi.com>
4963
4964         * config/i386/i386.c: Fix formatting.
4965
4966 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
4967
4968         * c-typeck.c (process_init_element): Don't save_expr
4969         COMPOUND_LITERAL_EXPR if just its initializer will be used.
4970
4971 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
4972
4973         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
4974         emit optional traceback table if optimize_size or TARGET_ELF.
4975         * config/rs6000/rs6000.md (prefetch): New.
4976
4977 2002-01-15  Andreas Jaeger  <aj@suse.de>
4978
4979         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
4980
4981 2002-01-15  Kazu Hirata  <kazu@hxi.com>
4982
4983         * mips-tfile.c: Fix formatting.
4984
4985 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
4986
4987         * unroll.c (final_reg_note_copy): Fix previous commit.
4988
4989 2002-01-14  Kazu Hirata  <kazu@hxi.com>
4990
4991         * config/h8300/h8300-protos.h: Remove the prototype for
4992         eq_operator.
4993         * config/h8300/h8300.c (eq_operator): Remove.
4994
4995 2002-01-14  Richard Henderson  <rth@redhat.com>
4996
4997         * config/i386/i386.md (prefetch): Tidy.
4998         (prefetch_3dnow): Fix locality operand.
4999
5000 2002-01-14  Richard Henderson  <rth@redhat.com>
5001
5002         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
5003         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
5004
5005 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
5006
5007         * reload1.c (reload_combine): Pass reg_sum replacement through
5008         copy_rtx in loop performing multiple changes.
5009
5010 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
5011
5012         * except.c (remove_unreachable_regions): New.
5013         (free_eh_status): Clear exception_handler_labels.
5014         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
5015         (find_exception_handler_labels): Don't add the same label more than
5016         once.
5017         (remove_exception_handler_label): Don't die if
5018         find_exception_handler_labels hasn't been called for the current
5019         function yet.
5020
5021 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
5022
5023         * toplev.c (rest_of_compilation): Rebuild jump labels after
5024         gcse.
5025
5026 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
5027
5028         * doc/extend.texi: Move documentation of X86 built-in functions
5029         here.
5030         * doc/invoke.texi: From here.
5031         * doc/sourcebuild.texi: Document location of documentation for
5032         machine built-in functions.
5033
5034 2002-01-13  Christopher Faylor  <cgf@redhat.com>
5035
5036         * cppfiles.c (TEST_THRESHOLD): New macro.
5037         (SHOULD_MMAP): Ditto.
5038         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
5039         be used.
5040
5041 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
5042
5043         * unroll.c (final_reg_note_copy): Properly handle
5044         REG_LABEL
5045         (unroll_loops): Fix LOOP_CONDITION heuristics.
5046
5047 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
5048
5049         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
5050         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
5051
5052 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5053
5054         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
5055         threaded loop.
5056
5057 2002-01-14  Tom Rix  <trix@redhat.com>
5058
5059         * config/rs6000/rs6000.md: Fix typo with sradi.
5060
5061 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
5062
5063         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
5064         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
5065         (clrstrdi, clrstrsi): Adapt callers.
5066
5067         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
5068
5069         (movti splitter): Never use register 0 as base register.
5070
5071 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
5072
5073         * combine.c (simplify_shift_const): Always generate new rtx
5074         for shift expression instead of reusing given expression.
5075
5076 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5077
5078         * config/alpha/alpha.c (alpha_expand_mov): Don't call
5079         alpha_legitimize_address unless mode is Pmode.
5080
5081 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
5082
5083         * doc/md.texi (Modifiers): Document the '*' constraint for the
5084         user.
5085
5086         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
5087         * doc/extend.texi (Function Attributes): 'interrupt' is valid
5088         for xstormy16 too.
5089
5090 2002-01-13  Richard Henderson  <rth@redhat.com>
5091
5092         * reload.c (find_reloads): Use a hard reg destination as reload reg
5093         for an input reload of the source.
5094
5095 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5096
5097         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
5098         more generic.
5099
5100 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
5101
5102         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
5103         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
5104
5105         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
5106
5107 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5108
5109         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
5110
5111 2002-01-12  Tom Rix  <trix@redhat.com>
5112
5113         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
5114         TARGET_POWERPC64.
5115
5116 2002-01-12  Richard Henderson  <rth@redhat.com>
5117
5118         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
5119
5120         * doc/invoke.texi: Update Alpha options.
5121
5122         * doc/invoke.texi: Update i386 built-in function lists.
5123
5124 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
5125
5126         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
5127         referencing outside.
5128
5129 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5130
5131         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
5132         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
5133         offsets, and change line folding.
5134         * optabs.c (expand_binop): Remove warnings.
5135         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
5136
5137 2002-01-12  Graham Stott <grahams@redhat.com>
5138
5139         * attribs.c (handle_deprecated_attribute): constify WHAT.
5140         * diagnostic.c (warn_deprecated_use): Add braces, fixes
5141         dangling else warning and constify WHAT.
5142         * except.h (struct function, struct inline_remap): Move
5143         struct tag forward defs before all prototypes.
5144         (duplicate_eh_regions): Whitespace.
5145
5146 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
5147
5148         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5149         MODE_BASE_REG_CLASS.
5150         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
5151
5152 2002-01-12  Richard Henderson  <rth@redhat.com>
5153
5154         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
5155         (ix86_expand_vector_move): New.
5156         (bdesc_2arg): Remove andps, andnps, orps, xorps.
5157         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
5158         Remove old prefetch builtins.  Special case the logicals removed above.
5159         (ix86_expand_builtin): Likewise.
5160         (safe_vector_operand): Use V4SFmode, not TImode.
5161         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
5162         (ix86_expand_timode_binop_builtin): New.
5163         * config/i386/i386-protos.h: Update.
5164         * config/i386/i386.h (enum ix86_builtins): Update.
5165         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
5166         Use ix86_expand_vector_move in vector move expanders.
5167         (movti_internal, movti_rex64): Add xorps alternative.
5168         (sse_clrv4sf): Rename and adjust from sse_clrti.
5169         (prefetch): Don't work so hard.
5170         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
5171         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
5172         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
5173
5174 2002-01-11  Richard Henderson  <rth@redhat.com>
5175
5176         * config/i386/mmintrin.h: New file.
5177         * config/i386/xmmintrin.h: New file.
5178         * config.gcc (i?86-*-*): Add extra_headers.
5179         * simplify-rtx.c (simplify_unary_operation): Handle saturating
5180         truncation codes.
5181         (simplify_binary_operation): Handle saturating arithmetic codes.
5182         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
5183         not the lowpart subreg.
5184         (ix86_expand_builtin): Return a TImode dummy register instead of 0
5185         on error.
5186         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
5187
5188 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5189
5190         * conflict.c (conflict_graph_compute): Free regsets when finished.
5191         * ssa.c (compute_coalesced_reg_partition): Likewise.
5192
5193 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5194
5195         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
5196         every where we allocate a register.
5197
5198 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5199
5200         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
5201         * lcm.c (compute_earliest, compute_farthest): Likewise.
5202
5203 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
5204
5205         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
5206
5207 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
5208
5209         * doc/rtl.texi (Insns): Fix 2 typos.
5210
5211 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5212
5213         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
5214         options.  Use @table @gcctabopt for MMIX options.  Add index
5215         entries for MMIX options.  Start new paragraph with first
5216         heading of the machine-dependent options.
5217
5218 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5219
5220         PR other/5299
5221         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
5222         * combine.c (force_to_mode): Same.
5223         * reload1.c (clear_reload_reg_in_use): Same.
5224
5225 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
5226
5227         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
5228         and 'subtargets'.
5229
5230 2002-01-11  Andreas Jaeger  <aj@suse.de>,
5231             Brad Lucier <lucier@math.purdue.edu>
5232
5233         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
5234         mcpu.
5235
5236 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
5237
5238         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
5239         Protect with IN_LIBGCC.
5240         (LINK_EH_SPEC): Add required trailing space.
5241
5242 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
5243
5244         * c-tree.h: Move function declarations so that they are listed
5245         under the filename which contains them.
5246         (check_identifier, finish_decl_top_level,
5247         lookup_name_current_level_global, shadow_record_fields): Remove.
5248
5249 2002-01-11  Andreas Jaeger  <aj@suse.de>
5250
5251         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
5252         march.
5253
5254 2002-01-10  Richard Henderson  <rth@redhat.com>
5255
5256         * config/alpha/alpha.c (print_operand): Add 'J'.
5257         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
5258         new operand with the sequence number for the lituse.  When splitting
5259         the insns, use gen_movdi_er_high_g and generate a sequence number.
5260         (gen_movdi_er_high_g): Print the sequence number if non-zero.
5261
5262 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
5263
5264         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
5265         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
5266         stvxl.
5267         (altivec_expand_builtin): Same.
5268         (altivec_expand_stv_builtin): New.
5269
5270         * config/rs6000/rs6000.h (rs6000_builtins): Same.
5271
5272         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
5273         ("altivec_lvehx"): New.
5274         ("altivec_lvewx"): New.
5275         ("altivec_lvxl"): New.
5276         ("altivec_lvx"): New.
5277         ("altivec_stvx"): New.
5278         ("altivec_stvebx"): New.
5279         ("altivec_stvehx"): New.
5280         ("altivec_stvewx"): New.
5281         ("altivec_stvxl"): New.
5282
5283 2002-01-10  Richard Henderson  <rth@redhat.com>
5284
5285         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
5286         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
5287         care not to delete instructions twice.
5288
5289 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
5290
5291         * toplev.c: Don't declare environ (it's not used anywhere).
5292         * configure.in: Don't check for declaration of environ.
5293         * config/i386/xm-mingw32.h: Don't #define environ.
5294         * config.in, configure: Regenerate.
5295
5296 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
5297
5298         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
5299         * configure: Regenerate.
5300
5301         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
5302         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
5303         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
5304         alpha/xm-vms.h.
5305         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
5306         LIMITS_H_TEST here, not in m68k/x-next.
5307         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
5308         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
5309
5310         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
5311         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
5312         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
5313
5314         * config/i386/x-djgpp: Renamed i386/t-djgpp.
5315         * config/m88k/x-dolph: Renamed m88k/t-dolph.
5316         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
5317         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
5318         replacement of quadlib.asm with quadlib.c.
5319
5320         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
5321         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
5322         config/rs6000/xm-beos.h: Delete file.
5323
5324         * config.gcc: Update to match above changes.
5325
5326 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5327
5328         * config/h8300/h8300.h: Fix comment typos.
5329         * config/h8300/h8300.md: Likewise.
5330         * config/h8300/lib1funcs.asm: Likewise.
5331
5332 2002-01-10  Dale Johannesen  <dalej@apple.com>
5333
5334         PR optimization/5269
5335         * unroll.c (precondition_loop_p): Make *increment be the correct
5336         sign when n_iterations known, to avoid confusing caller.
5337
5338 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5339
5340         * doc/extend.texi (deprecated): Fix a typo.
5341
5342 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5343
5344         * basic-block.h (update_br_prob_note): Declare.
5345         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
5346         (try_forward_edges): Care negative frequencies and update note.
5347         (outgoing_edges_match): Tweek conditional merging heuristics.
5348         (try_crossjump_to_edge): use update_br_prob_note.
5349         * cfglayout.c (fixup_reorder_chain): Likewise.
5350         * cfrtl.c (update_br_prob_note): New.
5351         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
5352
5353         * i386.c (ix86_decompose_address): Return -1 if address contains
5354         shift.
5355         (legitimate_address_p): Require ix86_decompose_address to return 1.
5356
5357         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
5358         (cprop_insn): Likewise.
5359
5360 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5361
5362         * toplev.c: Fix formatting.
5363         * tree.c: Likewise.
5364         * tree-dump.c: Likewise.
5365         * unroll.c: Likewise.
5366         * unwind-dw2.c: Likewise.
5367         * unwind-dw2-fde.c: Likewise.
5368         * unwind-dw2-fde-glibc.c: Likewise.
5369         * unwind-sjlj.c: Likewise.
5370
5371 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5372
5373         * doc/invoke.texi: Document PDP-11 options.
5374
5375 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5376
5377         * config/h8300/h8300.h: Fix formatting.
5378
5379 2002-01-10  Ira Ruben   <ira@apple.com>
5380
5381         Add __attribute__ ((deprecated)).
5382         * extend.texi: Document __attribute__ ((deprecated)).
5383         * invoke.texi: Document -Wno-deprecated-declarations.
5384         * testsuite/g++.dg/other/deprecated.C: New C++ test.
5385         * testsuite/gcc.dg/deprecated.c: New C test.
5386         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
5387         (c_common_attribute_table): Add "deprecated" entry.
5388         (handle_deprecated_attribute): New function.
5389         * c-decl.c (deprecated_states): New enum.
5390         deprecated_state: State of "deprecated" handling.
5391         (start_decl): Set deprecated_state based on attributes.
5392         (grokdeclarator): Test for deprecated uses, propagate attribute.
5393         * c-typeck.c (build_component_ref): Test for deprecated fields.
5394         (build_external_ref): Test for deprecated primaries.
5395         * diagnostic.c (warn_deprecated_use) New function to issue
5396         warnings about __attribute__ ((depricated)) references.
5397         * flags.h (warn_deprecated_decl): Extern declared for
5398         -W[no-]deprecated-declarations option.
5399         * print-tree.c (print_node): Show deprecated flag status.
5400         * toplev.c (warn_deprecated_decl): Defined.
5401         (W_options): Added "deprecated-declaration".
5402         * toplev.h (warn_deprecated_use): Extern declared.
5403         * tree.h (struct tree_common): Define deprecated_flag.
5404         (TREE_DEPRECATED): New macro to access flag.
5405         * cp/call.c (build_call): Test for deprecated calls.
5406         * cp/class.c (add_implicitly_declared_members): Set global
5407         flag to tell grokdeclarator to not issue deprecated warnings.
5408         * cp/cp-tree.h: Add extern for adding_implicit_members.
5409         * cp/decl.c (deprecated_states): New enum.
5410         (start_decl): Set deprecated_state based on attributes.
5411         (grokdeclarator): Test for deprecated uses, propagate attribute.
5412         * cp/lex.c (do_identifier): Test for deprecated primaries.
5413         * cp/typeck.c (build_component_ref): Test for deprecated fields.
5414
5415 2002-01-10  Ira Ruben   <ira@apple.com>
5416
5417         Fix to assign attributes to inline member functions.
5418         * cp/decl.c (start_method): Handle attrlist.
5419
5420 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5421
5422         * combine.c (expand_field_assignment): Use subreg_lsb().
5423
5424 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
5425
5426         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
5427         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
5428         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
5429         Recurse for any operand of AND as long as constant is non-zero.
5430
5431 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5432
5433         * config/h8300/h8300.md: Remove constraints from expanders.
5434
5435 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5436
5437         * varasm.c: Fix formatting.
5438         * varray.c: Likewise.
5439         * vmsdbgout.c: Likewise.
5440         * xcoffout.c: Likewise.
5441
5442 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5443
5444         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
5445         update edge probabilities to match.
5446
5447 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5448
5449         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
5450         dependencies.
5451         * doc/languages.texi, doc/sourcebuild.texi: New files.
5452         * doc/configfiles.texi: Make a subsubsection.  Update.
5453         * doc/configterms.texi: Add @node.  Remove warning that this isn't
5454         instructions for building GCC.
5455         * doc/makefile.texi: Make a subsection.
5456         * doc/gccint.texi: Update.
5457
5458 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
5459
5460         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
5461
5462 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
5463
5464         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
5465
5466 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
5467
5468         * optabs.c (expand_fix): Look for wider integer modes first.
5469
5470         * i386.md (mov?f): Avoid the fake const double trick for medium
5471         memory model.
5472         (min?f*/max?f*): Prohibit memory operands for i387 variant.
5473         (fop_df_4): Disable for SSE compilation.
5474
5475 2002-01-10  Graham Stott  <grahams@redhat.com>
5476
5477         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
5478         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
5479
5480 2002-01-10  Richard Henderson  <rth@redhat.com>
5481
5482         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
5483
5484 2002-01-10  Richard Henderson  <rth@redhat.com>
5485
5486         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
5487         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
5488
5489 2002-01-10  Kazu Hirata  <kazu@hxi.com>
5490
5491         * combine.c (can_combine_p): Fix a comment typo.
5492
5493 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
5494
5495         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
5496         empty list correctly.  Change loop index $t to $f for
5497         consistency with rest of Makefile.
5498
5499 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
5500
5501         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
5502         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5503
5504         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
5505         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
5506         (altivec_init_builtins): Same.
5507         (altivec_expand_unop_builtin): Return NULL_RTX on error.
5508         (altivec_expand_binop_builtin): Same.
5509         (altivec_expand_ternop_builtin): Same.
5510         (bdesc_dst): New.
5511
5512         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
5513         ("altivec_vctuxs"): Fix typo.
5514         ("altivec_vnmsubfp"): Same.
5515         ("altivec_dssall"): New.
5516         ("altivec_mfvscr"): New.
5517         ("altivec_dss"): New.
5518         ("altivec_lvsl"): New.
5519         ("altivec_lvsr"): New.
5520         ("altivec_dstt"): New.
5521         ("altivec_dstst"): New.
5522         ("altivec_dststt"): New.
5523         ("altivec_dst"): New.
5524
5525         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
5526         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5527
5528 2002-01-09  Richard Henderson  <rth@redhat.com>
5529
5530         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
5531
5532 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
5533
5534         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
5535         function.
5536         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
5537         prototype.
5538         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
5539
5540 2002-01-09  Kazu Hirata  <kazu@hxi.com>
5541
5542         * read-rtl.c: Fix formatting.
5543         * real.c: Likewise.
5544         * regclass.c: Likewise.
5545         * regrename.c: Likewise.
5546         * reg-stack.c: Likewise.
5547         * reload1.c: Likewise.
5548         * reload.c: Likewise.
5549         * rtl.c: Likewise.
5550
5551 2002-01-09  Kazu Hirata  <kazu@hxi.com>
5552
5553         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
5554         to extract items in the expr_list chain.
5555
5556 2002-01-09  Richard Henderson  <rth@redhat.com>
5557
5558         * config/vax/vax.c (vax_rtx_cost): Never abort.
5559
5560         * config/vax/vax.h (REAL_ARITHMETIC): Define.
5561
5562 2002-01-09  Jan Hubicka  <jh@suse.cz>
5563
5564         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
5565
5566 2002-01-09  Richard Henderson  <rth@redhat.com>
5567
5568         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
5569         Unify code from various alternatives.
5570
5571 2002-01-09  Richard Henderson  <rth@redhat.com>
5572
5573         * regrename.c (copy_value): Ignore the copy if the source register
5574         is present in the value chain with a narrower mode.
5575
5576 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
5577
5578         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
5579         for the c4x target. Also improve layout.
5580
5581 2002-01-09  Richard Henderson  <rth@redhat.com>
5582
5583         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
5584         * config/m32r/m32r.md (and ior xor splitters): Swap operands
5585         to match insn patterns.
5586
5587 2002-01-09  Richard Henderson  <rth@redhat.com>
5588
5589         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
5590         (copyprop_hardreg_forward_1): Likewise.
5591
5592 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5593
5594         * pa.md (decrement_and_branch_until_zero): Change predicate for
5595         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
5596
5597 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5598
5599         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
5600         gets undefined. For Darwin.
5601
5602 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5603
5604         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
5605
5606 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5607
5608         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
5609
5610 2002-01-08  Richard Henderson  <rth@redhat.com>
5611
5612         * regrename.c (copy_value): Ignore overlapping copies.
5613
5614 2002-01-08  Richard Henderson  <rth@redhat.com>
5615
5616         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
5617         as needed to avoid shared structure.
5618
5619 2002-01-08  Kazu Hirata  <kazu@hxi.com>
5620
5621         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
5622         H8/300H and H8/S.
5623
5624 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5625
5626         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
5627         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
5628         documentation of obsolete macros.
5629         * system.h: Poison these macros.
5630         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
5631         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
5632         config/c4x/c4x.h, config/clipper/clipper.h,
5633         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
5634         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
5635         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
5636         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
5637         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
5638         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
5639         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5640         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
5641         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
5642         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5643         config/sparc/sparc.h, config/stormy16/stormy16.h,
5644         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
5645         definitions and commented out definitions of obsolete macros.
5646         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
5647         of MAX_INT_TYPE_SIZE.
5648
5649 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
5650
5651         * config/s390/s390.c (s390_preferred_reload_class): Never
5652         return ADDR_REGS if it isn't a subset of the given class.
5653         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
5654         FP_REGS, but all superclasses as well.
5655
5656         * config/s390/s390.c (s390_function_profiler): Fix thinko.
5657
5658         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
5659         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
5660         must not be a const_int.
5661
5662 2002-01-08  Richard Henderson  <rth@redhat.com>
5663
5664         * Makefile.in (toplev.o): Depend on options.h.
5665         (gcc.o): Depend on specs.h.
5666
5667 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
5668
5669         * expr.c (store_expr): Convert VOIDmode constants back to target's
5670         mode.
5671
5672 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5673
5674         * doc/invoke.texi: Markup gcc as @command.  Refer to
5675         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
5676         of http://gcc.gnu.org/thanks.html.
5677
5678 2002-01-08  Dale Johannesen  <dalej@apple.com>
5679
5680         * config/rs6000/rs6000.md: Add missing int register
5681         target case to movdf_low.
5682
5683 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
5684
5685         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
5686         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
5687         (cppinit.o): Depend on except.h.
5688         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
5689         s-specs): New rules.
5690
5691         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
5692         Don't create specs.h/options.h/gencheck.h here.  Remove
5693         unnecessary variable settings from last argument of AC_OUTPUT.
5694         * config.in, configure: Regenerate.
5695         * intl.c: Hardcode package name as "gcc".
5696
5697         * cppinit.c: Include except.h.
5698         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
5699         appropriate.
5700         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
5701         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
5702         (!)USING_SJLJ_EXCEPTIONS.
5703         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
5704
5705 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5706
5707         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
5708         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
5709         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
5710         documentation of obsolete macros.
5711         * system.h: Poison these macros.
5712         * config/d30v/d30v.h, config/ns32k/encore.h,
5713         config/stormy16/stormy16.h: Remove definitions and commented out
5714         definitions of obsolete macros.
5715
5716 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
5717
5718         * objc/objc-act.c (handle_class_ref): Mark the declaration of
5719         %sobjc_class_ref_%s as used - to prevent unwanted compiler
5720         warnings.
5721
5722 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
5723
5724         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
5725         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
5726         to insn adjusting stack/frame pointer.
5727         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
5728         accept operands that cause the insn to be non-splittable.
5729
5730 2002-01-08  Graham Stott  <grahams@redhat.com>
5731
5732         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
5733         (C_TYPE_FIELDS_VOLATILE): Likewise.
5734         (C_TYPE_BEING_DEFINED): Likewise.
5735         (C_IS_RESERVED_WORD): Likewise.
5736         (C_TYPE_VARIABLE_SIZE): Likewise.
5737         (C_DECL_VARIABLE_SIZE): Likewise.
5738         (C_MISSING_PROTOTYPE_WARNED): Likewise.
5739         (C_SET_EXP_ORIGINAL_CODE): Likewise.
5740         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
5741         parenthesis.
5742         (C_DECL_ANTICIPATED): Likewise.
5743         (c_build_type_variant): Add parenthesis.
5744
5745 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5746
5747         * gcc.c (option_map): Remove --version.
5748         (process_command): Handle -fversion following the GNU Coding
5749         Standards.  Partially addresses PR other/704.
5750
5751 2002-01-08  Graham Stott  <grahams@redhat.com>
5752
5753         * combine.c (combine_instructions): Fix typo.
5754
5755 2002-01-08  Graham Stott  <grahams@redhat.com>
5756
5757         * debug.h: Use "tree" and "rtx" throughout.
5758
5759         * debug.c: Likewise.
5760
5761 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
5762
5763         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
5764         constant pool, use the pool's version of the symbol instead.
5765
5766 2002-01-07  Richard Henderson  <rth@redhat.com>
5767
5768         * regrename.c (find_oldest_value_reg): Ignore the value chain if
5769         the original register was copied in a mode with a fewer number of
5770         hard registers than the desired mode.
5771         (copyprop_hardreg_forward_1): Likewise.
5772         (debug_value_data): Fix loop test.
5773         * toplev.c (parse_options_and_default_flags): Reenable
5774         -fcprop-registers at -O1.
5775
5776 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
5777
5778         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
5779         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
5780
5781         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
5782         predicates.
5783
5784         * config/rs6000/rs6000.md: Add altivec predicate patterns.
5785
5786 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5787
5788         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
5789         (pa_output_function_prologue): Output local label at the beginning of
5790         the prologue when profiling.
5791         (hppa_profile_hook): Use the local label rather than the function label.
5792         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
5793
5794 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
5795
5796         * config/rs6000/rs6000.c (print_operand): Remove extra space.
5797         (altivec_expand_unop_builtin): Fix thinko.
5798         (altivec_expand_binop_builtin): Same.
5799         (altivec_expand_ternop_builtin): Same.
5800         (altivec_expand_builtin): Same.
5801
5802 2002-01-07  Richard Henderson  <rth@redhat.com>
5803
5804         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5805
5806 2002-01-07  Jason Merrill  <jason@redhat.com>
5807
5808         * unwind-dw2.c (execute_cfa_program): Use < again.
5809
5810 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
5811
5812         * predict.c (combine_predictions_for_insn): Avoid division by zero.
5813
5814 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
5815
5816         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5817         Don't allow -1 - x -> ~x simplifications in the first pass.
5818
5819 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
5820
5821         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5822         arguments.
5823         (altivec_expand_binop_builtin): Same.
5824         (altivec_expand_unop_builtin): Same.
5825         (print_operand): Fix typo.
5826         (bdesc_1arg): Add vupk* variants.
5827
5828         * rs6000.h (rs6000_builtins): Add vupk* enums.
5829
5830         * rs6000.md: Add altivec_vupk* variants.
5831
5832 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5833
5834         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5835         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5836         and last update dates.
5837
5838 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
5839
5840         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5841
5842 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5843
5844         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5845         * config/avr/avr.h (CPP_SPEC): Likewise.
5846         (LINK_SPEC): Likewise.
5847         (CRT_BINUTILS_SPECS): Likewise.
5848         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5849         * doc/invoke.texi (AVR Options): Document them.
5850
5851 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
5852
5853         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5854         LABEL_NUSES.
5855
5856 2002-01-07  Graham Stott  <grahams@redhat.com>
5857
5858         * config/i386/i386.h: Update copyright date.
5859         (HALF_PIC_PTR): Add parenthesis.
5860         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5861         (CONSTANT_ALIGNMENT): Add parenthesis.
5862         (DATA_ALIGNMENT): Likewise.
5863         (LOCAL_ALIGNMENT): Likewise.
5864         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5865         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5866         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5867         (HARD_REGNO_NREGS): Add paranethesis.
5868         (VALID_SSE_REG_MODE): Whitespace.
5869         (VALID_MMX_REG_MODE): Whitespace.
5870         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5871         (ix86_hard_regno_mode_ok): Add parenthesis.
5872         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5873         (RETURN_IN_MEMORY): Whitespace.
5874         (N_REG_CLASSES): Add parenthesis.
5875         (INTEGER_CLASS_P): Add parenthesis and wrap.
5876         (FLOAT_CLASS_P): Likewise.
5877         (SSE_CLASS_P): Likewise.
5878         (MMX_CLASS_P): Likewise.
5879         (MAYBE_INTEGER_CLASS_P): Likewise.
5880         (MAYBE_FLOAT_CLASS_P): Likewise.
5881         (MAYBE_SSE_CLASS_P): Likewise.
5882         (MAYBE_MMX_CLASS_P): Likewise.
5883         (Q_CLASS_P): Likewise.
5884         (GENERAL_REGNO_P): Uppercase macro parameter.
5885         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5886         (FP_REGNO_P): Likewise.
5887         (ANY_FP_REGNO_P): Uppercase macro parameter.
5888         (SSE_REGNO_P): Likewise.
5889         (SSE_REGNO): Likewise.
5890         (SSE_REG_P): Likewise.
5891         (SSE_FLOAT_MODE_P): Likewise.
5892         (MMX_REGNO_P): Likewise.
5893         (MMX_REG_P):Likewise.
5894         (STACK_REG_P): Likewise.
5895         (NON_STACK_REG_P): Likewise.
5896         (STACK_TOP_P): Likewise.
5897         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
5898         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
5899         (SECONDARY_MEMORY_NEEDED): Likewise.
5900         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
5901         (MD_ASM_CLOBBERS): Whitespace and wrap.
5902         (MUST_PASS_IN_STACK): Whitespace and wrap.
5903         (RETURN_POPS_ARGS): Add parenthesis.
5904         (INIT_CUMULATIVE_ARGS): Likewise.
5905         (FUNCTION_ARG): Likewise.
5906         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
5907         (SETUP_INCOMING_VARARGS): Likewise.
5908         (BUILD_VA_LIST_TYPE):  Add parenthesis.
5909         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
5910         parenthsis.
5911         (EXPAND_BUILTIN_VA_ARG): Likewise.
5912         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
5913         (INITIALIZE_TRAMPOLINE): Add parenthesis.
5914         (INITIAL_ELIMINATION_OFFSET): Likewise.
5915         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
5916         (REGNO_OK_FOR_BASE_P): Likewise.
5917         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
5918         (REGNO_OK_FOR_DIREG_P): Likewise.
5919         (REG_OK_FOR_INDEX_P): Whitespace.
5920         (REG_OK_FOR_BASE_P): Whitespace.
5921         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
5922         parenthesis.
5923         (FIND_BASE_TERM): Fix typo.
5924         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
5925         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
5926         (SYMBOLIC_CONST; Whitespace.
5927         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
5928         (ENCODE_SECTION_INFO): Whitespace.
5929         (FINALIZE_PIC): Remove do { ... } while (0).
5930         (PROMOTE_MODE): Wrap in do { ... } while (0).
5931         (CONST_COSTS): Whitespace.
5932         (RTX_COSTS): Add paramethesis, whitespace and wrap.
5933         (REGISTER_MOVE_COST): Add parenthesis.
5934         (MEMORY_MOVE_COST): Likewise.
5935         (EXTRA_CC_MODES): Whitespace.
5936         (SELECT_CC_MODE): Add parenthesis and whitespace.
5937         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
5938         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
5939         (ASM_OUTPUT_LABEL): Add paramethesis.
5940         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
5941         (ASM_OUTPUT_REG_POP): Likewise.
5942         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
5943         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5944
5945         * config/i386/i386.c: Update copyright.
5946         (CHECK_STACK_LIMIT): Add parenthesis.
5947         (AT_BP): Uppercase macro parameter.
5948         (x86_64_int_parameter_registers): Constify.
5949         (x86_64_int_return_registers): Likewise.
5950         (ix86_compare_op0): Use rtx.
5951         (construct_container): Constify INTREG parameter.
5952         (function_arg): Use rtx.
5953
5954         * diagnostic.h: Update copyright date.
5955         (output_buffer_state): Add parenthesis.
5956         (output_buffer_format_args): Likewise.
5957
5958         * combine.c (combine_instructions): Replace XEXP (links, 0)
5959         with link.
5960
5961 2002-01-06  H.J. Lu <hjl@gnu.org>
5962
5963         * cfgcleanup.c (thread_jump): Fix 2 typos.
5964
5965 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
5966
5967         * config.gcc: Add support for --enable-altivec.
5968
5969 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5970
5971         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
5972
5973 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
5974
5975         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
5976         __objc_class_name_*.
5977
5978 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5979
5980         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
5981
5982 2002-01-06  Richard Henderson  <rth@redhat.com>
5983
5984         * reorg.c (emit_delay_sequence): Remove death notes, not merely
5985         nop them out.  Increment label reference count for REG_LABEL.
5986         (fill_slots_from_thread): Frob label reference count around
5987         delete_related_insns.
5988
5989 2002-01-05  Richard Henderson  <rth@redhat.com>
5990
5991         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
5992         jump threading.
5993
5994 2002-01-05  Richard Henderson  <rth@redhat.com>
5995
5996         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
5997         * integrate.c (output_inline_function): Likewise.
5998         * toplev.c (rest_of_compilation): Do it here instead.  Move call
5999         to remove_unnecessary_notes after emitting abstract instance.
6000         Force an emitted nested function to have its parent emited as well.
6001         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
6002         for null.
6003         (rtl_for_decl_location): Do not look at reload data structures
6004         before reload has run.
6005
6006 2002-01-05  Kazu Hirata  <kazu@hxi.com>
6007
6008         * cse.c: Fix formatting.
6009         * dwarf2asm.c: Likewise.
6010         * dwarf2out.c: Likewise.
6011         * explow.c: Likewise.
6012         * expmed.c: Likewise.
6013         * function.c: Likewise.
6014         * gcov.c: Likewise.
6015         * gencheck.c: Likewise.
6016         * genrecog.c: Likewise.
6017         * ggc-common.c: Likewise.
6018         * ggc-page.c: Likewise.
6019         * global.c: Likewise.
6020
6021 2002-01-05  Kazu Hirata  <kazu@hxi.com>
6022
6023         * combine.c: Fix formatting.
6024
6025 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
6026
6027         PR middle-end/1557
6028         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
6029
6030 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
6031
6032         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
6033         as 1 for __powerpc64__ as well.
6034
6035         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
6036
6037         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
6038         return it.
6039
6040 2002-01-05  Daniel Berlin  <dan@dberlin.org>
6041
6042         * lcm.c: Revert change, due to performance regression it causes on
6043         SPEC because it's slightly more conservative (sigh, I hate
6044         edge-based LCM).
6045
6046 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
6047
6048         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
6049
6050 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6051
6052         * doc/cppinternals.texi: Update.
6053
6054 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
6055
6056         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
6057         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
6058         negatives.
6059         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
6060         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
6061         kludge for pre-october-14th mmix versions to handle new-found bug
6062         with PUSHJ/PUSHGO and the register stack.
6063         * config/mmix/mmix.h (struct machine_function): Rename member
6064         has_call_value_without_parameters to has_call_without_parameters.
6065         All referers changed.
6066         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
6067         TARGET_MASK_BRANCH_PREDICT): New macros.
6068         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
6069         -mno-reg-stack-fill-bug-workaround.
6070         * config/mmix/mmix.md ("call"): Set struct machine member
6071         has_call_without_parameters.
6072
6073 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
6074
6075         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
6076
6077 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
6078
6079         * cfgcleanup.c: Include tm_p.h
6080         (mark_effect): Fix handling of hard register; fix handling of SET
6081
6082 2002-01-04  Kazu Hirata  <kazu@hxi.com>
6083
6084         * config/h8300/h8300.md (anonymous patterns): Check that
6085         operands are registers before using REGNO on them.
6086
6087 2002-01-03  Roland McGrath  <roland@frob.com>
6088
6089         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
6090
6091 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
6092
6093         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
6094         * c-common.h (genrtl_expr_stmt_value): Likewise.
6095         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
6096         (expand_expr_stmt_value): Add maybe_last argument.
6097         Don't warn about statement with no effect if it is the last statement
6098         in expression statement.
6099         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
6100         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
6101         expand_expr_stmt_value.
6102         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
6103         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
6104         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
6105         as maybe_last to expand_expr_stmt_value.
6106
6107 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
6108
6109         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
6110         be passed in, do not build it.
6111         (c_begin_if_stmt): New function.
6112         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
6113         * c-common.h (c_expand_start_cond): Update prototype.
6114         (c_begin_if_stmt): Prototype new function.
6115         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
6116         * c-parse.in (if_prefix): Use c_begin_if_stmt,
6117         c_begin_while_stmt and c_finish_while_stmt_cond.
6118
6119 2002-01-04  William Cohen  <wcohen@redhat.com>
6120
6121         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
6122         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
6123         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
6124         * config/pa/som.h (ASM_FILE_START): Likewise.
6125
6126 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
6127
6128         * lcm.c: Include df.h.
6129         Add available_transfer_function prototype.
6130         (compute_available): Rework to use iterative dataflow framework.
6131         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
6132         with bb_info in df.h
6133         (available_transfer_function): New function.
6134
6135         * Makefile.in (lcm.o): add df.h to dependencies.
6136
6137 2002-01-04  Richard Henderson  <rth@redhat.com>
6138
6139         * config/alpha/alpha.c (some_operand): Accept HIGH.
6140         (input_operand): Likewise; accept simple references to globals.
6141         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
6142         (alpha_const_double_ok_for_letter_p): Likewise.
6143         (alpha_extra_constraint): Likewise.
6144         (alpha_preferred_reload_class): Likewise.  Do not force
6145         symbolic constants to memory.
6146         (alpha_legitimate_address_p): Accept simple references
6147         to small_symbolic_operand.
6148         (alpha_legitimize_address): New arg scratch.  Be prepared to be
6149         called when no_new_pseudos.  Emit simple symbolic references.
6150         Split integers into low, high, and rest.
6151         (alpha_expand_mov): Use alpha_legitimize_address.
6152         (some_small_symbolic_mem_operand): New.
6153         (split_small_symbolic_mem_operand): New.
6154         * config/alpha/alpha-protos.h: Update.
6155         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
6156         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
6157         (EXTRA_CONSTRAINT): Likewise.
6158         (PREFERRED_RELOAD_CLASS): Likewise.
6159         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
6160         (PREDICATE_CODES): Update.
6161         * config/alpha/alpha.md: New post-reload splitters to convert
6162         simplfied symbolic operands to the form that references $29.
6163         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
6164         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
6165
6166 2002-01-03  Richard Henderson  <rth@redhat.com>
6167
6168         * local-alloc.c (function_invariant_p): Update commentary.
6169
6170 2002-01-04  H.J. Lu <hjl@gnu.org>
6171
6172         * toplev.c (rest_of_compilation): Fix a typo when calling
6173         cleanup_cfg.
6174
6175 2002-01-03  Kazu Hirata  <kazu@hxi.com>
6176
6177         * c-common.c: Fix formatting.
6178         * diagnostic.c: Likewise.
6179         * doloop.c: Likewise.
6180         * dwarf2out.c: Likewise.
6181
6182 2002-01-03  Kazu Hirata  <kazu@hxi.com>
6183
6184         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
6185         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
6186
6187 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
6188
6189         * cpperror.c: Update comments and copyright.
6190         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
6191         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
6192
6193 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6194
6195         * collect2.c (main): Use strcmp when testing for "-shared".
6196
6197 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
6198
6199         * cppmacro.c: Don't include intl.h.  Update comments.
6200         (new_number_token): Allocate enough buffer for 64-bit unsigned
6201         integers; update prototype.
6202         * cppmain.c: Update comments.
6203
6204 2002-01-03  William Cohen  <wcohen@redhat.com>
6205
6206         * function.h (struct function): Add profile.
6207         (current_function_profile): New.
6208         doc/extend.texi: Update documentation.
6209         * final.c (final_start_function): Use current_function_profile
6210         instead of profile_flag.
6211         (profile_after_prologue): Likewise.
6212         * function.c (expand_function_start): Likewise.
6213         (expand_function_start): Likewise.
6214         * config/alpha/alpha.c (direct_call_operand):
6215         (alpha_does_function_need_gp): Likewise.
6216         (alpha_expand_prologue): Likewise.
6217         * config/arm/arm.c (arm_expand_prologue): Likewise.
6218         thumb_expand_prologue: Likewise.
6219         * config/d30v/d30v.c (d30v_stack_info): Likewise.
6220         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
6221         (fr30_expand_prologue): Likewise.
6222         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
6223         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
6224         * config/i386/i386.h (FINALIZE_PIC): Likewise.
6225         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
6226         * config/i960/i960.c (i960_output_function_prologue): Likewise.
6227         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
6228         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
6229         (m32r_expand_prologue): Likewise.
6230         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
6231         (m88k_expand_prologue): Likewise.
6232         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
6233         * config/mips/mips.c (compute_frame_size): Likewise.
6234         (mips_expand_prologue): Likewise.
6235         (mips_can_use_return_insn): Likewise.
6236         * config/pa/elf.h (ASM_FILE_START): Likewise.
6237         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
6238         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
6239         * config/pa/som.h (ASM_FILE_START): Likewise.
6240         * config/romp/romp.c (romp_using_r14): Likewise.
6241         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
6242         (rs6000_stack_info): Likewise.
6243         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6244         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
6245         * config/v850/v850.c (compute_register_save_size): Likewise.
6246
6247 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
6248
6249         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
6250         gen_lowpart_common fails, use gen_lowpart_SUBREG.
6251
6252 2002-01-03  Turly O'Connor  <turly@apple.com>
6253
6254         * darwin.c (machopic_output_possible_stub_label): Don't generate
6255         stub routines for pseudo-stubs which we've just defined.
6256
6257 2002-01-03  Kazu Hirata  <kazu@hxi.com>
6258
6259         * builtins.c: Fix formatting.
6260         * c-typeck.c: Likewise.
6261         * combine.c: Likewise.
6262         * expr.c: Likewise.
6263         * loop.c: Likewise.
6264
6265 2002-01-03  Andreas Schwab  <schwab@suse.de>
6266
6267         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
6268         and return true if _cpp_push_next_buffer pushed a new include
6269         file.
6270         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
6271         _cpp_pop_file_buffer did not push a new file.
6272         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
6273
6274 2002-01-02  Eric Christopher  <echristo@redhat.com>
6275
6276         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
6277         FIND_REG_INC_NOTE call. Update copyright.
6278         * loop.c (canonicalize_condition): Ditto.
6279         * reorg.c (delete_scheduled_jump): Ditto.
6280
6281 2002-01-03  Kazu Hirata  <kazu@hxi.com>
6282
6283         * gcse.c: Fix formatting.
6284
6285 2002-01-03  Graham Stott  <grahams@redhat.com>
6286
6287         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
6288         forward defs for struct tags rtx_def, union_tree, rtvec_def
6289         also output corresponding typedefs for rtx, tree, and rtvec.
6290
6291         * system.h: Move forward defs for struct tags rtx_def, union_tree,
6292         rtvec_def along with corresponding typedefs for rtx, tree, and
6293         rtvec to config.h, hconfig.h, tconfig.h.
6294
6295 2002-01-03  Graham Stott  <grahams@redhat.com>
6296
6297         * tree.h: Update copyright date.
6298         (IS_EXPR_CODE_CLASS): Add parenthesis.
6299         (TREE_SET_CODE): Add whitespace.
6300         (TREE_CHECK): Add parenthesis.
6301         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
6302         (CST_OR_CONSTRUCTOR_CHECK):
6303         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
6304         (TREE_SYMBOL_REFERENCED): Whitespace.
6305         (INT_CST_LT): Likewise.
6306         (INT_CST_LT_UNSIGNED): Likewise.
6307         (tree_real_cst): Unwrap comment.
6308         (tree_string): Likewise.
6309         (tree_complex): Likewise.
6310         (IDENTIFIER_POINTER): correct cast.
6311         (SAVE_EXPR_CONTEXT): Whitespace.
6312         (EXPR_WFL_FILENAME_NODE): Likewise.
6313         (EXPR_WFL_FILENAME): Remove parenthesis.
6314         (DECL_ORIGIN): Add parenthesis.
6315         (DECL_FROM_INLINE): Use NULL_TREE.
6316         (build_int_2): Whitespace.
6317         (build_type_variant): Add parenthesis.
6318
6319         * gcc/jcf-parse.c: Update copyright date.
6320         (yyparse): Constify resource_filename.
6321
6322 2002-01-03  Graham Stott  <grahams@redhat.com>
6323
6324         * rtl.h: Update copyright date.
6325         (RTL_CHECK1): Wrap long line.
6326         (RTL_CHECK2): Likewise.
6327         (RTL_CHECKC1): Wrap long line and whitespace.
6328         (RTL_CHECKC2): Likewise.
6329         (XWINT): Whitespace.
6330         (XINT): Likewise.
6331         (XSTR): Likewise.
6332         (XEXP): Likewise.
6333         (XVEC): Likewise.
6334         (XMODE): Likewise.
6335         (XBITMAP): Likewise.
6336         (XTREE): Likewise.
6337         (XBBDEF): Likewise.
6338         (XTMPL): Likewise.
6339         (X0WINT): Likewise.
6340         (X0INT):Likewise.
6341         (X0UINT): Likewise.
6342         (X0STR): Likewise.
6343         (X0EXP): Likewise.
6344         (X0VEC): Likewise.
6345         (X0MODE): Likewise.
6346         (X0BITMAP): Likewise.
6347         (X0TREE): Likewise.
6348         (X0BBDEF): Likewise.
6349         (X0ADVFLAGS): Likewise.
6350         (X0CSELIB): Likewise.
6351         (X0MEMATTR): Likewise.
6352         (XCWINT): Likewise.
6353         (XCINT): Likewise.
6354         (XCUINT): Likewise.
6355         (XCSTR): Likewise.
6356         (XCEXP): Likewise.
6357         (XCVEC): Likewise.
6358         (XCMODE): Likewise.
6359         (XCBITMAP): Likewise.
6360         (XCTREE): Likewise.
6361         (XCBBDEF): Likewise.
6362         (XCADVFLAGS): Likewise.
6363         (XCCSELIB): Likewise.
6364         (XC2EXP): Likewise.
6365         (INSN_UID): Likewise.
6366         (PREV_INSN): Likewise.
6367         (PATTERN): Likewise.
6368         (INSN_CODE): Likewise.
6369         (PUT_REG_NOTE_KIND): Likewise.
6370         (CODE_LABEL_NUMBER): Likewise.
6371         (NOTE_SOURCE_FILE): Likewise.
6372         (NOTE_BLOCK): Likewise.
6373         (NOTE_EH_HANDLER): Likewise.
6374         (NOTE_RANGE_INFO): Likewise.
6375         (NOTE_LIVE_INFO): Likewise.
6376         (NOTE_BASIC_BLOCK): Likewise.
6377         (NOTE_EXPECTED_VALUE): Likewise.
6378         (NOTE_LINE_NUMBER): Likewise.
6379         (LABEL_NAME): Likewise.
6380         (LABEL_NUSES): Likewise.
6381         (LABEL_ALTERNATE_NAME): Likewise.
6382         (ADDRESSOF_DECL): Likewise.
6383         (JUMP_LABEL): Likewise.
6384         (LABEL_NEXTREF): Likewise.
6385         (REGNO): Likewise.
6386         (ORIGINAL_REGNO: Likewise.
6387         (HARD_REGISTER_NUM_P): Add parenthesis.
6388         (SUBREG_REG): Whitespace.
6389         (SUBREG_BYTE): Likewise.
6390         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
6391         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
6392         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
6393         (ASM_OPERANDS_INPUT_VEC): Likewise.
6394         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
6395         (ASM_OPERANDS_INPUT): Likewise.
6396         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
6397         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
6398         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
6399         (ASM_OPERANDS_INPUT_MODE): Likewise.
6400         (ASM_OPERANDS_SOURCE_FILE): Likewise.
6401         (ASM_OPERANDS_SOURCE_LINE): Likewise.
6402         (MEM_SET_IN_STRUCT_P): Minor reformat.
6403         (TRAP_CONDITION): Whitespace.
6404         (TRAP_CODE): Likewise.
6405         (COND_EXEC_TEST): Likewise.
6406         (COND_EXEC_CODE): Likewise.
6407         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
6408         (PHI_NODE_P): Add parenthesis.
6409         (plus_constant): Whitespace and add parenthesis.
6410
6411 2002-01-03  Kazu Hirata  <kazu@hxi.com>
6412
6413         * config/avr/avr.c: Fix comment typos.
6414         * config/c4x/c4x.md: Likewise.
6415         * config/dsp16xx/dsp16xx.h: Likewise.
6416         * config/dsp16xx/dsp16xx.md: Likewise.
6417         * config/i386/i386.md: Likewise.
6418         * config/ia64/ia64.c: Likewise.
6419         * config/m32r/m32r.h: Likewise.
6420         * config/m68hc11/m68hc11.md: Likewise.
6421         * config/mmix/mmix.c: Likewise.
6422         * config/mn10200/mn10200.c: Likewise.
6423         * config/romp/romp.c: Likewise.
6424         * config/sh/sh.c: Likewise.
6425         * config/stormy16/stormy16.c: Likewise.
6426         * config/stormy16/stormy16.h: Likewise.
6427         * config/stormy16/stormy16.md: Likewise.
6428
6429 2002-01-03  Graham Stott  <grahams@redhat.com>
6430
6431         * loop.h: Update copyright date.
6432         (LOOP_MOVABLES): Fix typo.
6433         (LOOP_REGS): Likewise.
6434         (LOOP_IVS): Likewise.
6435
6436 2002-01-03  Graham Stott  <grahams@redhat.com>
6437
6438         * cppinit.c: Update copyright date.
6439         Don't include output.h
6440         * Makefile.in: Update copyright date.
6441         Update dependency.
6442
6443 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6444
6445         PR c/5226
6446         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
6447         (-pthread) Add to RS/6000 options.
6448
6449 2002-01-02  Kazu Hirata  <kazu@hxi.com>
6450
6451         * except.c: Fix comment typos.
6452         * loop.c: Likewise.
6453         * varasm.c: Likewise.
6454         * doc/tm.texi: Fix a typo.
6455
6456 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
6457
6458         * c-typeck.c (output_init_element): Allow initializing static storage
6459         duration objects with compound literals.
6460
6461 2002-01-02  Richard Henderson  <rth@redhat.com>
6462
6463         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
6464         after abusing it.
6465
6466 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6467
6468         * gcc.c (default_compilers): Const-ify.
6469         * mips-tdump.c (stab_names): Likewise.
6470         * mips-tfile.c (map_coff_types, map_coff_storage,
6471         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
6472         pseudo_ops_t, pseudo_ops): Likewise.
6473         * protoize.c (default_include): Likewise
6474
6475         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
6476         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
6477         Add array size in declaration.
6478         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
6479         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
6480         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
6481         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
6482         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
6483         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
6484         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
6485         emtens, make_nan): Const-ify.
6486         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
6487         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
6488
6489 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6490
6491         * config.gcc (ia64-*-*): Set extra_headers.
6492         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
6493         * config/alpha/t-osf: Remove.
6494         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
6495
6496 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
6497
6498         * config/rs6000/t-aix43: Revert previous change.
6499
6500 2002-01-02  Jason Merrill  <jason@redhat.com>
6501
6502         * c-decl.c (c_expand_body): Call outlining_inline_function when
6503         emitting an inline function out of line.
6504
6505 2002-01-02  Richard Henderson  <rth@redhat.com>
6506
6507         * dwarf2out.c (limbo_die_node): Add created_for member.
6508         (new_die): New argument created_for.  Update all callers.
6509         (mark_limbo_die_list): New.
6510         (dwarf2out_init): Register limbo_die_list as a root.
6511         (dwarf2out_finish): Force insert limbo dies into their function
6512         context.
6513
6514 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
6515
6516         PR c++/5089
6517         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
6518
6519 2002-01-02  Kazu Hirata  <kazu@hxi.com>
6520
6521         * config/h8300/fixunssfsi.c: Update copyright.
6522         Fix comment typos.
6523         Fix formatting.
6524         * config/h8300/h8300.c: Update copyright.
6525         Eliminate warnings.
6526
6527 2002-01-02  Kazu Hirata  <kazu@hxi.com>
6528
6529         * config/romp/romp.c: Fix comment formatting.
6530         * config/romp/romp.h: Likewise.
6531         * config/romp/romp.md: Likewise.
6532         * config/s390/s390.c: Likewise.
6533         * config/stormy16/stormy16.c: Likewise.
6534         * config/stormy16/stormy16.h: Likewise.
6535
6536 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
6537
6538         * c-common.h (genrtl_expr_stmt_value): Declare.
6539         * c-semantics.c (genrtl_goto_stmt): Redirect to...
6540         (genrtl_goto_stmt_value): ... this new function.  Pass new
6541         argument down to expand_expr_stmt_value, taking
6542         TREE_ADDRESSABLE into account.
6543         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
6544         STMT_EXPR as addressable, i.e., one whose result we want.
6545         * expr.c (expand_expr): Don't save expression statement value
6546         of labeled_blocks or loop_exprs.
6547         * stmt.c (expand_expr_stmt): Redirect to...
6548         (expand_expr_stmt_value): ... this new function.  Use new
6549         argument to tell whether to save expression value.
6550         (expand_end_stmt_expr): Reset last_expr_type and
6551         last_expr_value if we don't have either.
6552         * tree-inline.c (declare_return_variable): Mark its use
6553         statement as addressable.
6554         * tree.h: Document new use of TREE_ADDRESSABLE.
6555         (expand_expr_stmt_value): Declare.
6556
6557 2002-01-01  Tom Rix  <trix@redhat.com>
6558
6559         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
6560         rs6000_emit_allocate_stack.
6561
6562 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
6563
6564         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
6565         ${srcdir}/ginclude/ to every entry in extra_headers.
6566         * configure: Regenerate.
6567         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
6568         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
6569         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
6570         * ginclude/proto.h: Rename to config/convex/proto.h.
6571
6572 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6573
6574         * attribs.c (handle_vector_size_attribute): Use host_integerp
6575         and tree_int_cst; remove warnings.
6576         * caller-save.c (insert_restore): Add cast to get rid of warning.
6577         (insert_save): Likewise.
6578         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
6579         * regmove.c (find_matches): Add temporary var to kill a warning.
6580
6581 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
6582
6583         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
6584         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
6585         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
6586         (vms-dwarf2eh.o): Add Makefile rule.
6587         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
6588         * config/alpha/vms-dwarf2eh.asm: New file.
6589
6590         * gcc.c (delete_if_ordinary): Delete all versions.
6591
6592 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
6593
6594         * config/mmix/mmix.md: Update FIXME to not mention
6595         define_constants.
6596         (MMIX_rJ_REGNUM): New define_constants constant.
6597         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
6598         "*movdicc_real"): Adjust contraints formatting.
6599         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
6600         for branch prediction.
6601         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
6602         output template.
6603         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
6604         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
6605         number.  Delete related FIXMEs.
6606         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
6607         from number to MMIX_rJ_REGNUM.
6608         (TARGET_MASK_BRANCH_PREDICT): New.
6609         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
6610         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
6611         value.  Add -mbranch-predict and -mno-branch-predict.
6612         (TARGET_VERSION): Drop date.
6613         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
6614         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
6615         for finding out global symbols.
6616         (mmix_asm_output_labelref): Revert condition for global symbol.
6617         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
6618         (mmix_print_operand_punct_valid_p): A '+' is valid.
6619
6620 See ChangeLog.6 for earlier changes.