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