OSDN Git Service

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