70e76fce638a0f60d12b7ca4ebd3f1d831e8f988
[gcc.git] / gcc / ChangeLog
1 2002-05-20 Richard Henderson <rth@redhat.com>
2
3 * cse.c (canon_hash): Reorder do_not_record test. Always
4 allow pic_offset_table_rtx.
5
6 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
7
8 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
9 (expand_binop): Ditto (3 times).
10
11 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
12
13 * Makefile.in (distclean): Remove QMTest stuff.
14 (QMTEST_PATH): New variable.
15 (QMTESTFLAGS): Likewise.
16 (QMTESTRUNFLAGS): Likewise.
17 (QMTEST): Likewise.
18 (QMTEST_GPP_TESTS): Likewise.
19 (QMTEST_DIR): Likewise.
20 (QMTEST_DIR/context): New target.
21 (qmtest-g++): Likeise.
22 (qmtest-gui): Likewise.
23 (QMTEST_DIR/gpp-expected.qmr): Likewise.
24
25 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
26
27 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
28 an altivec register if TARGET_ALTIVEC.
29
30 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
31 to ALTIVEC_VECTOR_MODE.
32 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
33 (rs6000_va_arg): Vectors may go in registers if they are not
34 altivec vectors.
35
36 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
37
38 * protoize.c: Fix formatting.
39
40 2002-05-19 Richard Henderson <rth@redhat.com>
41
42 * gensupport.c (init_include_reader): Merge into ...
43 (process_include): ... here. Simplify composite path creation.
44 Plug memory leaks. Fix file/line number tracking. Do not
45 process_define_cond_exec. Return void.
46 (process_rtx): Don't check process_include return value.
47
48 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
49
50 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
51 fields.
52 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
53 traversing basic block chain.
54 (create_basic_block_structure, create_basic_block): Declaration changed.
55 (link_block, unlink_block): Declare.
56 * cfg.c (entry_exit_blocks): Initialize new fields.
57 (link_block, unlink_block): New.
58 (expunge_block_nocompact): Unlink basic block.
59 (dump_flow_info): Print prev_bb/next_bb fields.
60 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
61 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
62 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
63 * cfgrtl.c (create_basic_block_structure, create_basic_block,
64 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
65 (verify_flow_info): Check that list agrees with numbering.
66
67 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
68
69 * c-common.c (preprocessing_asm): New macro.
70 * c-lex.h (builtin_define, builtin_assert): Use pfile.
71 doc:
72 * tm.texi: Update.
73 config/alpha:
74 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
75 (CPP_SPEC): Simplify.
76 (TARGET_CPU_CPP_BUILTINS): Update.
77 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
78 (CPP_SPEC): Simplify.
79 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
80 (TARGET_OS_CPP_BUILTINS): Update.
81 * osf.h (CPP_XFLOAT_SPEC): Kill.
82 (TARGET_OS_CPP_BUILTINS): Update.
83 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
84 * osf5.h (CPP_XFLOAT_SPEC): Kill.
85 * vms.h (CPP_SUBTARGET_SPEC): Kill.
86 (TARGET_OS_CPP_BUILTINS): Update.
87
88 2002-05-19 Richard Henderson <rth@redhat.com>
89
90 * varasm.c (default_binds_local_p): Fix typo.
91
92 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
93
94 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
95 CONST_INT operand to the correct mode after adding 1 to it.
96
97 2002-05-19 Mark Mitchell <mark@codesourcery.com>
98
99 * config.gcc (powerpc-wrs-windiss*): New target.
100
101 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
102
103 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
104 (ashrdi3): Use it.
105
106 2002-05-18 Mark Mitchell <mark@codesourcery.com>
107
108 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
109 alphasort.
110 * config.in: Regenerated.
111 * configure: Regenerated.
112
113 2002-05-19 Richard Henderson <rth@redhat.com>
114
115 * target-def.h (TARGET_BINDS_LOCAL_P): New.
116 * target.h (struct gcc_target): Move boolean fields to the end.
117 Add binds_local_p.
118 * varasm.c (default_binds_local_p): New.
119 * output.h: Declare it.
120
121 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
122 * config/cris/cris.c (cris_encode_section_info): Likewise.
123 * config/i386/i386.c (i386_encode_section_info): Likewise.
124 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
125 * config/sh/sh.c (sh_encode_section_info): Likewise.
126
127 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
128 (TARGET_BINDS_LOCAL_P): New.
129
130 2002-05-19 Richard Henderson <rth@redhat.com>
131
132 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
133 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
134 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
135
136 * toplev.c (display_help): Kill -a -ax help.
137
138 * config/1750a/1750a.h, config/alpha/alpha.h,
139 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
140 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
141 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
142 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
143
144 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
145 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
146
147 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
148 (ix86_output_function_block_profiler): Kill.
149 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
150 (m68hc11_function_block_profiler): Kill.
151 * config/m68hc11/m68hc11-protos.h: Update.
152 * config/m88k/m88k.c (output_block_profiler): Kill.
153 (output_function_block_profiler): Kill.
154 * config/m88k/m88k-protos.h: Update.
155
156 2002-05-19 Richard Henderson <rth@redhat.com>
157
158 * system.h (STRIP_NAME_ENCODING): Poison it.
159 * output.h (STRIP_NAME_ENCODING): Remove.
160 (default_strip_name_encoding): Declare.
161 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
162 * target.h (strip_name_encoding): New.
163 * varasm.c (default_strip_name_encoding): New.
164
165 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
166 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
167 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
168 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
169 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
170 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
171 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
172 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
173 config/v850/v850.h: Use the hook, not the macro.
174
175 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
176 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
177 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
178 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
179 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
180 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
181 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
182 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
183 config/v850/v850.c, config/v850/v850.h:
184 Move STRIP_NAME_ENCODING to out-of-line function and add
185 TARGET_STRIP_NAME_ENCODING.
186
187 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
188 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
189 with TARGET_STRIP_NAME_ENCODING referencing existing function;
190 make function static.
191
192 * xcoffout.c: Include target.h
193 * Makefile.in (xcoffout.o): Update.
194
195 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
196 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
197 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
198 reloc argument unused.
199 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
200
201 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
202 STRIP_NAME_ENCODING docs.
203
204 2002-05-19 Andreas Jaeger <aj@suse.de>
205
206 * gengenrtl.c: Add prototype for excluded_rtx.
207
208 * real.h: Add prototype for exact_real_truncate.
209
210 2002-05-18 Richard Henderson <rth@redhat.com>
211
212 * system.h (ENCODE_SECTION_INFO): Poison it.
213 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
214 * target.h (encode_section_info): New.
215 * varasm.c (make_decl_rtl, output_constant_def): Use it.
216 * hooks.c (hook_tree_int_void): New.
217 * hooks.h: Declare it.
218
219 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
220 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
221 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
222 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
223 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
224 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
225 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
226 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
227 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
228 config/mcore/mcore-protos.h, config/mcore/mcore.c,
229 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
230 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
231 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
232 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
233 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
234 referencing existing function. Make function static.
235
236 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
237 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
238 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
239 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
240 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
241 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
242 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
243 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
244 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
245 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
246 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
247 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
248 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
249 Move ENCODE_SECTION_INFO to out-of-line function and add
250 TARGET_ENCODE_SECTION_INFO.
251
252 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
253 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
254
255 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
256 from SUBTARGET_*
257 (switch_to_section): Replace in_rdata case with in_readonly_data.
258
259 * config/h8300/h8300.c (h8300_encode_label): Make static.
260 * config/h8300/h8300-protos.h: Update.
261
262 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
263 from rs6000_encode_section_info; make static.
264 (rs6000_xcoff_encode_section_info): New.
265
266 * config/v850/v850.c (v850_encode_data_area): Make static.
267 * config/v850/v850-protos.h: Update.
268
269 * config/vax/vax.c: Include flags.h.
270 (vms_select_section): Fix typo.
271
272 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
273 ENCODE_SECTION_INFO docs.
274
275 2002-05-18 Richard Henderson <rth@redhat.com>
276
277 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
278 REGISTER_TARGET_PRAGMAS.
279 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
280
281 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
282
283 2002-05-18 Richard Henderson <rth@redhat.com>
284
285 * system.h (SELECT_RTX_SECTION): Poison.
286 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
287 * target.h (select_rtx_section): New.
288 * varasm.c (output_constant_pool): Use it.
289 (default_select_rtx_section, default_elf_select_rtx_section): New.
290 * output.h: Declare them.
291
292 * config/darwin.h (SELECT_RTX_SECTION): Move ...
293 * config/darwin.c (machopic_select_rtx_section): ... here.
294 * config/darwin-protos.h: Update.
295
296 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
297 * config/nextstep.c (machopic_select_rtx_section): ... here.
298 (nextstep_select_section): Rename variable to avoid macro clash.
299 * config/nextstep-protos.h: Update.
300
301 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
302 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
303 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
304 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
305 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
306 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
307 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
308 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
309 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
310 (SELECT_RTX_SECTION): Remove.
311
312 * config/darwin.h, config/elfos.h, config/nextstep.h,
313 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
314 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
315 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
316 config/sparc/lynx.h, config/xtensa/xtensa.c
317 (TARGET_ASM_SELECT_RTX_SECTION): New.
318
319 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
320 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
321 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
322 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
323 (ia64_aix_select_rtx_section): New.
324 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
325 redefining.
326 * config/mips/mips.c (mips_select_rtx_section): Make static.
327 Support ELF SHF_MERGE features.
328 * config/mips/mips-protos.h: Update.
329 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
330 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
331 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
332 make static, fall back to default_elf_select_rtx_section.
333 * config/rs6000/rs6000-protos.h: Update.
334 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
335 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
336 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
337 * config/romp/romp.c (romp_select_rtx_section): New.
338 * config/s390/s390.c (s390_select_rtx_section): New.
339 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
340 declarations before target macro definition.
341 (xtensa_emit_call): Use static buffer.
342 (xtensa_select_rtx_section): New.
343 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
344 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
345 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
346
347 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
348 SELECT_RTX_SECTION docs.
349
350 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
351
352 * i386.md (movsi/movdi): Fix template.
353 (sse2 patterns): Set attributes consistently.
354
355 * i386.md (pushqi2, ashrqi_*): Fix constraint.
356
357 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
358
359 * optabs.c (complex_part_zero_p): New.
360 * (expand_cmplxdiv_straight): Use it.
361 * (expand_cmplxdiv_wide): Ditto.
362 * (expand_binop): Ditto.
363
364 2002-05-18 Richard Henderson <rth@redhat.com>
365
366 * final.c (HAVE_READONLY_DATA_SECTION): New.
367 (shorten_branches): Use it instead of ifdefs.
368 * varasm.c (enum in_section): Add in_readonly_data.
369 (text_section, data_section): Tidy.
370 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
371
372 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
373 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
374 (READONLY_DATA_SECTION): Don't undef.
375
376 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
377 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
378 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
379
380 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
381 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
382 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
383 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
384
385 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
386 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
387 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
388 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
389 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
390 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
391 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
392 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
393 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
394
395 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
396 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
397 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
398 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
399 config/pa/pa64-hpux.h, config/sparc/litecoff.h
400 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
401
402 * config/elfos.h, config/netware.h, config/svr3.h,
403 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
404 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
405 config/h8300/h8300.h, config/i386/i386-interix.h,
406 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
407 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
408
409 * config/elfos.h, config/netware.h, config/svr3.h,
410 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
411 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
412 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
413 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
414
415 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
416 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
417 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
418 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
419 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
420 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
421 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
422 config/rs6000/sysv4.h, config/v850/v850.h
423 (EXTRA_SECTIONS): Remove in_const/in_rdata.
424 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
425
426 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
427 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
428 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
429 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
430 * config/alpha/alpha.c (alpha_start_function): Likewise.
431 (alpha_write_linkage): Likewise.
432 * config/m32r/m32r.c (m32r_select_section): Likewise.
433 * config/m88k/m88k.c (m88k_select_section): Likewise.
434 * config/mips/mips.c (mips_select_rtx_section): Likewise.
435 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
436 (rs6000_elf_select_section): Likewise.
437 * config/v850/v850.c (v850_select_section): Likewise.
438
439 * config/1750a/1750a.h, config/i860/sysv3.h
440 (READONLY_DATA_SECTION_ASM_OP): New.
441 READONLY_DATA_SECTION_ASM_OP.
442 * config/i386/interix.c, config/i386/winnt.c
443 (i386_pe_unique_section): Always use .rdata prefix.
444 * config/pa/som.h (readonly_data): Always switch to read-only section.
445 (READONLY_DATA_SECTION): Predicate on flag_pic.
446 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
447 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
448 (READONLY_DATA_SECTION): Update.
449
450 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
451
452 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
453 is used without -Wformat.
454 * c-common.h (warn_format_zero_length): Declare extern.
455 * c-decl.c (warn_options): Add "format-zero-length".
456 * c-format.c (warn_format_zero_length): Declare.
457 (set_Wformat): Set warn_format_zero_length for -Wformat.
458 (check_format_info): Only warn about zero-length formats if
459 warn_format_zero_length is true. Include the format type
460 name in the warning message.
461 * doc/invoke.texi: Document -Wformat-zero-length.
462 * testsuite/gcc.dg/format/zero-length-1.c: New test.
463
464 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
465
466 * timevar.c: Fix formatting.
467 * tlink.c: Likewise.
468 * toplev.c: Likewise.
469 * tree-dump.c: Likewise.
470 * tree-inline.c: Likewise.
471
472 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
473
474 * cppinit.c (cpp_post_options): If preprocessed, turn off
475 traditional. If traditional, turn off column numbers.
476 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
477 * cpptrad.c (handle_newline): Update line_base.
478 (skip_comment): Handle -Wcomment.
479
480 2002-05-17 Zack Weinberg <zack@codesourcery.com>
481
482 * cppinit.c (struct builtin): Remove unused fields.
483 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
484 (operator_array): New - was second half of builtin_array.
485 (init_builtins): Simplify loop over builtin_array/operator_array.
486
487 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
488
489 * defaults.h (UNIQUE_SECTION): Remove.
490 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
491
492 2002-05-17 Richard Henderson <rth@redhat.com>
493
494 * expr.c (init_expr_once): Don't use start/end_sequence.
495 Use rtx_alloc instead of emit_insn.
496 * toplev.c (lang_dependent_init): Run init_expr_once here ...
497 (lang_independent_init): ... not here.
498
499 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
500
501 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
502
503 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
504
505 * config/avr/avr.c (avr_regs_to_save): New function. Also check
506 for fixed registers, possibly used for global register variables.
507 (initial_elimination_offset, avr_output_function_prologue,
508 avr_output_function_epilogue): Move common code to avr_regs_to_save.
509
510 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
511
512 * Makefile.in: Update for cpptrad.c.
513 * cpphash.h (struct cpp_buffer): New members for buffer
514 overlays.
515 (struct cpp_reader): New members for traditional output.
516 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
517 * cppinit.c (cpp_create_reader): Set trad_line.
518 (cpp_destroy): Free trad_out_base if used.
519 (cpp_read_main_file): Overlay an empty buffer if traditional.
520 (cpp_finish_options): Don't do builtins.
521 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
522 (cpp_handle_option): Handle it.
523 * cpplex.c (continue_after_nul): New.
524 (_cpp_lex_direct): Use handle_nul.
525 * cpplib.h (struct cpp_options): New traditional option.
526 * cpptrad.c: New file.
527
528 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
529
530 * c-common.c (c_common_init_options): Use C89 for Objective-C,
531 and set the options flag.
532 * cppinit.c (lang_flags): Remove objc.
533 (lang_defaults): Remove OBJC and OBJCXX.
534 (set_lang): Update.
535 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
536 (cpp_handle_option): Remove -+ and -lang-objc++.
537 For ObjC, just set a flag.
538 (print_help): Update.
539 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
540
541 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
542
543 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
544 bootstrap with -mips3.
545
546 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
547
548 * final.c: Fix formatting.
549 * fix-header.c: Likewise.
550 * flow.c: Likewise.
551 * fold-const.c: Likewise.
552 * function.c: Likewise.
553
554 2002-05-17 David S. Miller <davem@redhat.com>
555
556 PR c/6689, PR optimization/6615
557 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
558 and make it a pointer to rtx. Update comments.
559 (update_equiv_regs): When scanning for equivalences, record
560 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
561 it while making the equiv replacements.
562
563 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
564
565 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
566
567 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
568
569 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
570 when encoding visibility into SYMBOL_REF_FLAG.
571
572 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
573
574 * expr.c (force_operand): Fix reversed move.
575
576 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
577
578 * doc/install.texi (Testing): Mention two common DejaGnu warnings
579 that can be ignored.
580
581 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
582
583 * doc/install.texi (Final install): Recommend to install into a
584 "clean" target directory.
585
586 2002-05-17 Richard Henderson <rth@redhat.com>
587
588 * config/ia64/ia64.md: Use braced strings instead of quoted strings
589 for code blocks. Tidy whitespace.
590
591 2002-05-17 Richard Henderson <rth@redhat.com>
592
593 * hooks.c (hook_tree_bool_false): New.
594 * hooks.h: Declare it.
595 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
596 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
597 * target.h (select_section, unique_section): New.
598 (in_small_data_p): New.
599 * varasm.c (resolve_unique_section): Use hooks instead of macros.
600 (variable_section, output_constant_def_contents): Likewise.
601 (default_select_section, default_unique_section): New.
602 (categorize_decl_for_section, default_elf_select_section): New.
603 * output.h: Declare them.
604
605 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
606 (TARGET_ASM_SELECT_SECTION): New.
607 (SELECT_SECTION): Move ...
608 * config/darwin.c (machopic_select_section): ... here.
609 * config/darwin-protos.h: Update.
610
611 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
612 (SELECT_SECTION): Move ...
613 * config/nextstep.c (nextstep_select_section): ... here.
614 * config/nextstep-protos.h: Update.
615
616 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
617 (TARGET_ASM_SELECT_SECTION): New.
618 * config/svr3.h (SELECT_SECTION): Remove.
619
620 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
621 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
622 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
623 (alpha_encode_section_info): Use it.
624 * config/alpha/alpha-protos.h: Update.
625 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
626 (SELECT_SECTION, UNIQUE_SECTION): Remove.
627 (TARGET_ASM_SELECT_SECTION): New.
628 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
629
630 * config/arm/pe.h (UNIQUE_SECTION): Remove.
631 (TARGET_ASM_UNIQUE_SECTION): New.
632
633 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
634 (avr_unique_section): Rename from unique_section; make static.
635 * config/avr/avr-protos.h: Update.
636 * config/avr/avr.h (UNIQUE_SECTION): Remove.
637
638 * config/c4x/c4x.h (SELECT_SECTION): Remove.
639
640 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
641 (TARGET_ASM_UNIQUE_SECTION): New.
642 * config/i386/i386-interix.h: Likewise.
643 * config/i386/win32.h: Likewise.
644 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
645 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
646 * config/i386/sco5.h (SELECT_SECTION): Remove.
647 (TARGET_ASM_SELECT_SECTION): New.
648 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
649
650 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
651 instead of SELECT_SECTION.
652 * config/m68k/dpx2.h: Likewise.
653 * config/rs6000/lynx.h: Likewise.
654
655 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
656 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
657 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
658 (ia64_in_small_data_p): New.
659 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
660 (ia64_aix_select_section, ia64_aix_unique_section): New.
661 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
662 (SELECT_SECTION, UNIQUE_SECTION): Remove.
663
664 * config/m32r/m32r.h (SELECT_SECTION): Remove.
665 (TARGET_ASM_SELECT_SECTION): New.
666 * config/m32r/m32r.c (m32r_select_section): Take align argument.
667 * config/m32r/m32r-protos.h: Update.
668
669 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
670 (SELECT_SECTION): Move ...
671 * config/m88k/m88k.c (m88k_select_section): ... here.
672
673 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
674 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
675 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
676 (mcore_unique_section): Make static.
677 * config/mcore/mcore-protos.h: Update.
678
679 * config/mips/elf.h (UNIQUE_SECTION): Remove.
680 (TARGET_ASM_UNIQUE_SECTION): New.
681 * config/mips/elf64.h: Likewise.
682 * config/mips/iris6gld.h: Likewise.
683 * config/mips/linux.h: Likewise.
684 * config/mips/mips-protos.h: Update.
685 * config/mips/mips.c (mips_select_section): Add align argument.
686 * config/mips/mips.h (SELECT_SECTION): Remove.
687 (TARGET_ASM_SELECT_SECTION): New.
688
689 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
690 * config/mmix/mmix.c (mmix_select_section): Remove.
691 (mmix_unique_section): Remove.
692 * config/mmix/mmix-protos.h: Update.
693
694 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
695 (SELECT_SECTION): Move ...
696 * config/pa/pa.c (pa_select_section): ... here.
697 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
698
699 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
700 from rs6000_select_section and make static.
701 (rs6000_elf_unique_section): Similarly.
702 (rs6000_xcoff_select_section): From xcoff.h.
703 (rs6000_xcoff_unique_section): Likewise.
704 * config/rs6000/rs6000-protos.h: Update.
705 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
706 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
707 * config/rs6000/xcoff.h: Likewise.
708
709 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
710 (SELECT_SECTION): Move ...
711 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
712
713 * config/v850/v850.h (SELECT_SECTION): Move ...
714 * config/v850/v850.c (v850_select_section): ... here.
715 (TARGET_ASM_SELECT_SECTION): New.
716
717 * config/vax/vms.h (SELECT_SECTION): Move ...
718 * config/vax/vax.c (vms_select_section): ... here.
719 (TARGET_ASM_SELECT_SECTION): New.
720
721 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
722 for the target hooks.
723
724 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
725
726 * config/arm/arm.c (emit_multi_reg_push): Do not set
727 RTX_FRAME_RELATED_P on the SEQUENCE.
728
729 2002-05-16 Richard Henderson <rth@redhat.com>
730
731 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
732 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
733
734 2002-05-16 Richard Henderson <rth@redhat.com>
735
736 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
737
738 * config/ia64/ia64.c (saveable_obstack): Do not declare.
739
740 2002-05-16 Richard Henderson <rth@redhat.com>
741
742 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
743 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
744 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
745 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
746 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
747 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
748 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
749 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
750 Revert "Basic block renumbering removal", and two followup patches.
751
752 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
753
754 * lcm.c (optimize_mode_switching): Revert previous change.
755
756 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
757
758 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
759 with only extant block numbers.
760
761 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
762
763 * lcm.c (optimize_mode_switching): Fix typo.
764
765 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
766
767 * flow.c (calculate_global_regs_live): Queue blocks in program order.
768
769 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
770
771 * doc/install.texi (Configuration): Document PWDCMD.
772
773 2002-05-16 Dale Johannesen <dalej@apple.com>
774
775 * combine.c (cant_combine_insn_p): Reenable combinations
776 involving hard regs unless CLASS_LIKELY_SPILLED_P.
777
778 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
779
780 * c-common.c (cb_register_builtins): Handle more built-ins
781 here rather than in gcc.c specs.
782 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
783 (cpp_options): Pass -O flags even when only preprocessing.
784 * toplev.c (set_fast_math_flags): New prototype.
785 (fast_math_flags_set_p): New.
786 (set_no_fast_math_flags): Remove.
787 (decode_f_option): Update.
788 * toplev.h (set_fast_math_flags): Update.
789 (fast_math_flags_set_p): New.
790 (set_no_fast_math_flags): Remove.
791 config:
792 * c4x/c4x.c (c4x_override_options): Update.
793
794 2002-05-16 Zack Weinberg <zack@codesourcery.com>
795
796 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
797 Default-define here.
798 (builtin_define_with_value): Can now wrap the expansion in
799 quotation marks if such is wanted.
800 (cb_register_builtins): Update calls to builtin_define_with_value.
801 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
802 here.
803 (c_common_init): Set options->stdc_0_in_system_headers.
804 * c-lex.h: Update prototype of builtin_define_with_value.
805 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
806 and REGISTER_PREFIX.
807
808 * cppinit.c (VERS, ULP, C, X): Kill.
809 (builtin_array): Remove entries for __VERSION__,
810 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
811 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
812 a constant.
813 (init_builtins): Kill off a bunch of now-dead code.
814 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
815 -fno-leading-underscore.
816 (cpp_handle_option): Remove code to set user_label_prefix.
817 (cpp_post_options): Likewise.
818
819 * cpplib.h (struct cpp_options): Remove user_label_prefix.
820 (stdc_0_in_system_headers): New.
821 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
822 stdc_0_in_system_headers) too to decide the value of __STDC__.
823
824 * tradcpp.c (user_label_prefix): Kill.
825 (main): Remove code handling -f(no-)leading-underscore.
826 (initialize_builtins): Don't define __REGISTER_PREFIX__
827 or __USER_LABEL_PREFIX__.
828 (install_value): Wrap compound statement in dummy loop so the
829 macro works properly in an if statement.
830
831
832 2002-05-16 Janis Johnson <janis187@us.ibm.com>
833
834 * loop.h (struct loop_info): Add member has_prefetch.
835 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
836 (prescan_loop): Initialize has_prefetch.
837 (struct prefetch_info): Change prefetch_in_loop and
838 prefetch_before_loop from bit fields to ints.
839 (emit_prefetch_instructions): Several small fixes.
840 (check_dbra_loop): Don't reverse loop that uses prefetch.
841
842 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
843
844 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
845 * configure.in: Likewise.
846 * fixinc/check.tpl: Likewise.
847 * fixinc/fixinc.dgux: Likewise.
848 * fixinc/fixinc.svr4: Likewise.
849 * fixinc/fixinc.winnt: Likewise.
850 * fixinc/fixincl.sh: Likewise.
851 * fixproto: Likewise.
852 * configure: Regenerate.
853
854 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
855
856 Basic block renumbering removal:
857 * basic_block.h (struct basic_block_def): Renamed index to sindex,
858 added prev_bb and next_bb fields.
859 (n_basic_blocks): Renamed to num_basic_blocks.
860 (last_basic_block): New, index of last basic block.
861 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
862 traversing basic block chain.
863 (BLOCK_NUM): index -> sindex.
864 (create_basic_block_structure, create_basic_block): Declaration changed.
865 (debug_num2bb): Declare.
866 (expunge_block_nocompact): Declaration removed.
867 (link_block, unlink_block, compact_blocks): Declare.
868 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
869 * cfg.c (entry_exit_blocks): Initialize new fields.
870 (clear_edges, alloc_block, expunge_block, cached_make_edge,
871 redirect_edge_pred, dump_flow_info, dump_edge_info,
872 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
873 free_aux_for_edges): Modified.
874 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
875 (expunge_block_nocompact): Removed.
876 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
877 find_unreachable_blocks, create_edge_list, print_edge_list,
878 verify_edge_list, flow_edge_list_print, remove_fake_successors,
879 remove_fake_edges, flow_reverse_top_sort_order_compute,
880 flow_depth_first_order_compute, flow_preorder_transversal_compute,
881 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
882 flow_dfs_compute_reverse_execute): Modified.
883 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
884 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
885 Modified.
886 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
887 merge_blocks_move_predecessor_nojumps,
888 merge_blocks_move_successor_nojumps, merge_blocks,
889 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
890 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
891 * cfglayout.c (skip_insns_after_block, label_for_bb,
892 record_effective_endpoints, scope_to_insns_finalize,
893 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
894 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
895 cfg_layout_duplicate_bb): Modified.
896 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
897 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
898 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
899 flow_loops_find, flow_loop_outside_edge_p): Modified.
900 * cfgrtl.c (create_basic_block_structure, create_basic_block,
901 flow_delete_block, compute_bb_for_insn, split_block,
902 try_redirect_by_replacing_jump, redirect_edge_and_branch,
903 force_nonfallthru_and_redirect, tidy_fallthru_edge,
904 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
905 commit_edge_insertions, commit_edge_insertions_watch_calls,
906 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
907 purge_all_dead_edges): Modified.
908 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
909 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
910 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
911 Modified.
912 * conflict.c (conflict_graph_compute): Modified.
913 * df.c (FOR_ALL_BBS): Removed.
914 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
915 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
916 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
917 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
918 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
919 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
920 * final.c (compute_alignments, final_scan_insn): Modified.
921 * flow.c (verify_local_live_at_start, update_life_info,
922 update_life_info_in_dirty_blocks, free_basic_block_vars,
923 delete_noop_moves, calculate_global_regs_live,
924 initialize_uninitialized_subregs, allocate_bb_life_data,
925 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
926 mark_used_reg, count_or_remove_death_notes): Modified.
927 * function.c (thread_prologue_and_epilogue_insns): Modified.
928 * gcse.c (struct null_pointer_info): Change typo of current_block
929 to basic_block.
930 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
931 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
932 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
933 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
934 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
935 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
936 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
937 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
938 pre_delete, one_pre_gcse_pass, compute_transpout,
939 invalidate_nonnull_info, delete_null_pointer_checks_1,
940 free_code_hoist_mem, compute_code_hoist_vbeinout,
941 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
942 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
943 compute_store_table, build_store_vectors, insert_insn_start_bb,
944 insert_store, replace_store_insn, free_store_memory, store_motion):
945 Modified.
946 * global.c (global_alloc, global_conflicts, mark_elimination,
947 build_insn_chain): Modified.
948 * graph.c (print_rtl_graph_with_bb): Modified.
949 * haifa-sched.c (sched_init): Modified.
950 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
951 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
952 if_convert): Modified.
953 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
954 compute_insert_delete, pre_edge_lcm, compute_available,
955 compute_farthest, compute_nearerout, compute_rev_insert_delete,
956 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
957 Modified.
958 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
959 * loop.c (loop_dump_aux): Modified.
960 * predict.c (combine_predictions_for_insn, estimate_probability,
961 last_basic_block_p, process_note_prediction, process_note_predictions,
962 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
963 expensive_function_p, estimate_bb_frequencies,
964 compute_function_frequency): Modified.
965 * print-rtl.c (print_rtx): Modified.
966 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
967 get_exec_counts, compute_branch_probabilities, compute_checksum,
968 branch_prob, find_spanning_tree): Modified.
969 * recog.c (split_all_insns, peephole2_optimize): Modified.
970 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
971 convert_regs_1, convert_regs_2, convert_regs): Modified.
972 * regclass.c (scan_one_insn, regclass): Modified.
973 * regmove.c (mark_flags_life_zones, regmove_optimize,
974 combine_stack_adjustments): Modified.
975 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
976 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
977 * reorg.c (dbr_schedule): Modified.
978 * resource.c (find_basic_block, init_resource_info): Modified.
979 * sbitmap.c (sbitmap_intersection_of_succs,
980 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
981 sbitmap_union_of_preds): Modified.
982 * sched-deps.c (init_dependency_caches): Modified.
983 * sched-ebb.c (schedule_ebbs): Modified.
984 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
985 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
986 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
987 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
988 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
989 ssa_const_prop): Modified.
990 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
991 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
992 * ssa.c (remove_phi_alternative, find_evaluations,
993 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
994 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
995 make_regs_equivalent_over_bad_edges,
996 make_equivalent_phi_alternatives_equival,
997 compute_conservative_reg_partition,
998 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
999 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
1000 Modified.
1001
1002 2002-05-16 Mark Mitchell <mark@codesourcery.com>
1003
1004 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
1005
1006 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1007
1008 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
1009 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1010 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
1011 calling CONSTANT_POOL_ADDRESS_P.
1012 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
1013 to decide whether to define __arm__ or __thumb.
1014 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
1015 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1016
1017 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1018
1019 * config/arc/arc.h (CPP_PREDEFINES): Remove.
1020 (CPP_SPEC): Update.
1021 (TARGET_CPU_CPP_BUILTINS): New.
1022
1023 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1024
1025 * cpphash.h (cpp_macro): Move here, and make expansion a union.
1026 * cppmacro.c (cpp_macro): Remove.
1027 (enter_macro_context, replace_args, warn_of_redefinition,
1028 _cpp_create_definition, cpp_macro_definition): Update.
1029
1030 2002-05-16 Jason Merrill <jason@redhat.com>
1031
1032 * config/mips/mips.c (mips_output_external): Don't do sdata
1033 optimization for a variable with DECL_COMDAT set.
1034
1035 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1036
1037 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
1038 Cleanups for accepting modifiers on pointers.
1039 Fix predicate typos.
1040 Allow long pointers as well as int pointers.
1041
1042 2002-05-15 Richard Henderson <rth@redhat.com>
1043
1044 * varasm.c (merge_weak): Remove special case for extern and common.
1045
1046 2002-05-15 Matt Hiller <hiller@redhat.com>
1047
1048 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
1049 XFAILing.
1050 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
1051 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
1052 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
1053 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
1054 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
1055 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
1056
1057 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1058
1059 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
1060
1061 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1062
1063 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
1064 ("altivec_mfvscr"): Read from VSCR.
1065
1066 Add vscr sets for the following insns: altivec_vctuxs,
1067 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
1068 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
1069 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
1070 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
1071 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
1072 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
1073 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
1074 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
1075 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
1076 altivec_vsum2sws, altivec_vsumsws.
1077
1078 * config/rs6000/rs6000.h: Add VSCR fixed register.
1079 (CALL_REALLY_USED_REGISTERS): Add vscr.
1080 (CALL_USED_REGISTERS): Same.
1081 (FIXED_REGISTERS): Same.
1082 (REG_ALLOC_ORDER): Same.
1083 (reg_class): Add VSCR_REGS.
1084 (REG_CLASS_NAMES): Same.
1085 (REG_CLASS_CONTENTS): Same.
1086 (VSCR_REGNO): New.
1087 (REGISTER_NAMES): Add vscr.
1088 (DEBUG_REGISTER_NAMES): Same.
1089 (ADDITIONAL_REGISTER_NAMES): Same.
1090 (FIRST_PSEUDO_REGISTER): Increment.
1091 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
1092
1093 2002-05-15 Jakub Jelinek <jakub@redhat.com>
1094
1095 * fold-const.c (fold): Fix a typo.
1096
1097 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
1098
1099 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
1100 comparison against the highest or lowest integer value before
1101 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
1102 transformation and that of an unsigned comparison against 0
1103 right after.
1104
1105 2002-05-15 Richard Henderson <rth@redhat.com>
1106
1107 * varasm.c (merge_weak): Error for any weakening after definition.
1108 Adjust weakening after use warning to catch more cases.
1109 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
1110 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
1111
1112 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1113
1114 * invoke.texi (-malign-double): Re-add lost warning.
1115
1116 * i386-protos.h (x86_output_mi_thunk): Declare.
1117 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
1118 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
1119
1120 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
1121 when flag_asynchronous_unwind_tables is set.
1122
1123 * flags.h (flag_reorder_functions): Declare.
1124 * function.c (prepare_function_start): Initialize frequnecy.
1125 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
1126 * Makefile.in (predict.o): Add dependency on target.h and params.h
1127 * defaults.h (HOT_TEXT_SECTION_NAME,
1128 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
1129 * predict.c (choose_function_section): New function.
1130 (estimate_bb_frequencies): Use it.
1131 * toplev.c (flag_reorder_functions): New global variable.
1132 (lang_independent_options): New.
1133 (parse_options_and_default_flags): Set.
1134 * varasm.c (assemble_start_function): Bypass functdion alignment
1135 for never executed functions.
1136 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
1137 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
1138 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1139 Document.
1140
1141 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
1142
1143 * predict.c: Inlude profile.h
1144 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
1145 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
1146 Use the information about maximal counter in the program.
1147
1148 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
1149
1150 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
1151 probably_never_executed_bb_p): New functions.
1152 * cfgcleanup.c (outgoing_edges_match): Use them.
1153 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
1154 (maybe_hot_bb_p, probably_cold_bb_p,
1155 probably_never_executed_bb_p): New functions.
1156
1157 * function.h (function): Add new field function_frequency.
1158 * predict.c (compute_function_frequency): New function.
1159 (estimate_probability): Call it.
1160
1161 2002-03-09 Jakub Jelinek <jakub@redhat.com>
1162
1163 PR optimization/5172, optimization/5200
1164 * gcse.c (gcse_main): Disable store_motion.
1165
1166 2002-05-14 Zack Weinberg <zack@codesourcery.com>
1167
1168 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
1169 (c_common_nodes_and_builtins): Use it.
1170 (builtin_define_with_value): New function.
1171 (cb_register_builtins): Define __SIZE_TYPE__,
1172 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
1173 using builtin_define_with_value. Use consistent notation when
1174 defining __GXX_WEAK__.
1175 (WCHAR_TYPE_SIZE): Don't redefine.
1176 (combine_strings): Don't use WCHAR_TYPE_SIZE.
1177
1178 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
1179 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
1180 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
1181 * tradcpp.c (initialize_builtins): Likewise.
1182 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
1183
1184 * c-lex.h (builtin_define_with_value): Prototype.
1185 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
1186 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
1187 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
1188
1189 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
1190 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
1191 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
1192 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
1193 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
1194 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
1195 config/sparc/sol2-bi.h, config/sparc/sparc.h:
1196 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
1197 to __SIZE_TYPE__ etc from all spec strings. When this makes
1198 extra specs empty, delete them.
1199
1200 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
1201
1202 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
1203 for PA8000 or generating dwarf2 call frame information.
1204 (output_call): Remove DO_FRAME_NOTES check from return pointer
1205 optimization.
1206 (following_call): Return 0 when scheduling for PA8000 or generating
1207 dwarf2 call frame information. Revise comment.
1208
1209 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1210
1211 config/alpha:
1212 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
1213 and __IEEE_FP_INEXACT as appropriate.
1214 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
1215 (CPP_SPEC): Remove ieee defines.
1216 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
1217
1218 2002-05-14 Richard Henderson <rth@redhat.com>
1219
1220 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
1221 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
1222
1223 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1224
1225 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
1226 (CPP_SPEC): Update.
1227 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
1228 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
1229 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
1230 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
1231 (EXTRA_SPECS): Update.
1232 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
1233 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
1234 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
1235 define TARGET_OS_CPP_BUILTINS if necessary.
1236
1237 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1238
1239 * gcc.c (cpp_options): Must pass -m* and -f* options
1240 to the front end even when only preprocessing.
1241 (cc1_options): Remove redundant -lang-c.
1242 * tradcpp.c (main): Ignore -m options.
1243 objc:
1244 * lang-specs.h: Similarly.
1245
1246 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
1247
1248 * genautomata.c (transform_3): Add code for transformation
1249 `(A,B,...)+C -> A+C,B,...'.
1250
1251 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
1252
1253 * final.c (end_final): Do not output profile_arcs constructor, when
1254 no functions are instrumented.
1255
1256 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
1257
1258 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
1259
1260 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1261
1262 * doc/install.texi: Remove special markup originally required for
1263 HTML generation with texi2html.
1264
1265 2002-05-14 Andreas Schwab <schwab@suse.de>
1266
1267 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
1268 SELECT_SECTION.
1269 (UNIQUE_SECTION): Define to get small data correctly.
1270
1271 * varasm.c (resolve_unique_section): Add third parameter
1272 flag_function_or_data_sections and use it instead of
1273 flag_function_sections.
1274 (assemble_start_function): Pass flag_function_sections.
1275 (asm_emit_uninitialised): Pass flag_data_sections.
1276 (assemble_variable): Likewise.
1277
1278 2002-05-14 Richard Henderson <rth@redhat.com>
1279
1280 * config/i386/i386.md: Use define_constants for unspec numbers.
1281 * config/i386/i386.c: Likewise.
1282
1283 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1284
1285 * doc/contrib.texi: Update my entry.
1286
1287 2002-05-13 Mark Mitchell <mark@codesourcery.com>
1288
1289 * fixinc/inclhack.def (winidss_valist): Limit applicability.
1290 * fixinc/fixincl.x: Regenerated.
1291 * fixinc/tests/base/math.h: Update.
1292 * fixinc/tests/base/testing.h: Likewise.
1293
1294 2002-05-13 Zack Weinberg <zack@codesourcery.com>
1295
1296 * genattr.c (gen_attr): Don't emit a comma after the last
1297 enumerator.
1298
1299 2002-05-13 Richard Henderson <rth@redhat.com>
1300
1301 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
1302 by non-local gotos.
1303 * recog.c (peephole2_optimize): Likewise.
1304
1305 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
1306
1307 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
1308 input to O_BINARY.
1309
1310 2002-05-13 Jeffrey A Law (law@redhat.com)
1311
1312 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
1313 Update prototype and callers.
1314 (propagate_one_insn): Stack pointer adjustments kill MEMs on
1315 the mem_set_list which reference the stack pointer, as do
1316 calls to constant functions as they may clobber outgoing
1317 argument space.
1318
1319 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
1320
1321 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1322 (ia32_multipass_dfa_lookahead): New function.
1323
1324 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1325
1326 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
1327 (translate_options): Remove 'V'.
1328 (process_command): Similarly.
1329 doc:
1330 * invoke.texi: Remove documentation of 'V'.
1331
1332 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1333
1334 * config/s390/linux.h: Revert 2002-04-22 changes.
1335
1336 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
1337
1338 * config/fr30/fr30.md: Only allow splits of immediate loads
1339 if the destination is a register.
1340
1341 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1342
1343 * Makefile.in (c-common.o, cppinit.o): Update.
1344 * c-common.c: Include except.h.
1345 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
1346 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
1347 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
1348 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
1349 CPP_PREDEFINES): Handle here.
1350 config:
1351 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
1352 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
1353 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
1354 TARGET_OS_CPP_BUILTINS.
1355 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
1356 (CPP_SPEC, EXTRA_SPECS): Update.
1357 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
1358 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
1359 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
1360 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
1361 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
1362 doc:
1363 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
1364 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
1365
1366 2002-05-12 Zack Weinberg <zack@codesourcery.com>
1367
1368 * emit-rtl.c (global_rtl): Update comment.
1369 (const_double_htab, const_double_htab_hash,
1370 const_double_htab_hash, lookup_const_double): New.
1371 (const_int_htab_hash, const_int_htab_eq): Remove const
1372 qualifiers, which cause tons of warnings with RTL checking on.
1373 (gen_rtx_CONST_DOUBLE): Deleted.
1374 (const_double_from_real_value): New function - bears some
1375 resemblance to the former immed_real_const_1.
1376 (immed_double_const): Moved here from varasm.c and
1377 simplified.
1378 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
1379 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
1380 (gen_rtx): Use immed_double_const.
1381 (init_emit_once): Initialize the const_double_htab. Use
1382 REAL_VALUE_FROM_INT where possible. Can now use
1383 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
1384 * varasm.c (struct varasm_status): Remove x_const_double_chain.
1385 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
1386 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
1387 (init_varasm_status, mark_varasm_status): Don't touch
1388 x_const_double_chain.
1389
1390 * output.h: Delete prototype for clear_const_double_mem.
1391 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
1392 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
1393 const_double_from_real_value, not immed_real_const_1, and use
1394 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
1395 CONST_DOUBLE_ATOF.
1396 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
1397 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
1398 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
1399 (gen_rtx_REG): Second arg is unsigned.
1400
1401 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
1402 (excluded_rtx): New, return true for CONST_DOUBLE.
1403 (genmacro): Write nothing for excluded codes.
1404 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
1405 * expr.c (expand_expr): Likewise.
1406 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
1407 CONST_DOUBLE_CHAIN.
1408 * toplev.c (rest_of_compilation): Don't call
1409 clear_const_double_mem.
1410
1411 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
1412 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
1413 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
1414 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
1415 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
1416 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
1417 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
1418 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
1419
1420 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1421
1422 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1423
1424 2002-05-12 Tom Tromey <tromey@redhat.com>
1425
1426 * tree.h (copy_node): Don't mention TREE_PERMANENT.
1427
1428 2002-05-12 Zack Weinberg <zack@codesourcery.com>
1429
1430 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
1431 (scan_comma_elt): New function. Accepts whitespace in comma lists.
1432 * gensupport.h: Prototype new routines.
1433 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
1434 use of printf.
1435 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
1436 (next_comma_elt): Use scan_comma_elt.
1437
1438 * config/i386/i386.md: Use new attribute notation to break up
1439 long lines in define_attr forms.
1440
1441 2002-05-12 Richard Henderson <rth@redhat.com>
1442
1443 * expr.c (compress_float_constant): New.
1444 (emit_move_insn): Use it.
1445 (float_extend_from_mem): New.
1446 (init_expr_once): Initialize it.
1447 * real.c (exact_real_truncate): New.
1448
1449 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1450 dropped into memory; penalize for size.
1451 (RTX_COSTS): FLOAT_EXTEND is free.
1452 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1453 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1454
1455 2002-05-12 Richard Henderson <rth@redhat.com>
1456
1457 * profile.h (profile_info): Add missing extern to declaration.
1458 * profile.c (profile_info): Define it.
1459
1460 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1461
1462 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1463 used for DImode and TImode.
1464
1465 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
1466
1467 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1468 fake a newline.
1469
1470 2002-05-11 Zack Weinberg <zack@codesourcery.com>
1471
1472 * config/rs6000/rs6000.c (rs6000_default_long_calls,
1473 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1474 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1475 (rs6000_override_options): Handle -m(no-)longcall.
1476 (init_cumulative_args, output_mi_thunk): Check for both
1477 longcall and shortcall attributes on the function.
1478 (rs6000_attribute_table): Add "shortcall".
1479 (rs6000_handle_longcall_attribute): Update comment.
1480 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1481 altivec_expand_ternop_builtin): Add default clauses to switches
1482 to silence warnings.
1483
1484 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1485 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
1486 (TARGET_OPTIONS): Add longcall and no-longcall.
1487
1488 * config/rs6000/rs6000.md (call_nonlocal_sysv,
1489 call_value_nonlocal_sysv): Split by alternatives. One pair
1490 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1491 the call cookie. The other pair accepts only LR/CTR and has
1492 no restriction.
1493
1494 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1495 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1496 tmake_file.
1497 * config/rs6000/rs6000-c.c: New file.
1498 * config/rs6000/t-rs6000-c-rule: New file.
1499 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1500 Prototype rs6000_pragma_longcall.
1501
1502 * doc/extend.texi: Document shortcall attribute.
1503 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1504
1505 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1506
1507 * reorg.c (dbr_schedule): Remove unnecessary test.
1508
1509 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1510
1511 * i386.md (testsi to testqi spliters): New.
1512
1513 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
1514
1515 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1516
1517 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
1518
1519 * basic-block.h: New flag EDGE_CAN_FALLTHRU
1520 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1521 that can be made fallthru.
1522
1523 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
1524
1525 * cfglayout.c (cleanup_unconditional_jumps): New static function.
1526 (cfg_layout_initialize): Use it.
1527
1528 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
1529
1530 * config/avr/avr.c (avr_mcu_types): Update supported devices.
1531 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1532 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1533
1534 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
1535
1536 * dbxout.c: Fix formatting.
1537 * dependence.c: Likewise.
1538 * df.c: Likewise.
1539 * diagnostic.c: Likewise.
1540 * doloop.c: Likewise.
1541 * dominance.c: Likewise.
1542 * doschk.c: Likewise.
1543 * dwarf2asm.c: Likewise.
1544 * dwarf2out.c: Likewise.
1545 * dwarfout.c: Likewise.
1546
1547 2002-05-10 Richard Henderson <rth@redhat.com>
1548
1549 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
1550 Convert integers constants as needed. Replace "nwords" field with
1551 "sizeof_bb".
1552 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1553 * function.h: Fix typo in comment.
1554 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1555
1556 2002-05-10 Roger Sayle <roger@eyesopen.com>
1557
1558 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1559 into the equivalent (signed char)c > 0.
1560
1561 2002-05-10 Janis Johnson <janis187@us.ibm.com>
1562
1563 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1564 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1565 (struct prefetch_info): Fix spelling of member bytes_accessed.
1566 (emit_prefetch_instructions): Make dump messages more regular;
1567 restructure code to add more dump messages; use new macros for
1568 heuristics. (There are no code generation changes in any of this).
1569
1570 2002-05-10 David S. Miller <davem@redhat.com>
1571
1572 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1573 (struct rtx_def): Update unchanging flag comment.
1574 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1575 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1576 to be handled to INSN too.
1577 (dbr_schedule): Likewise.
1578 * resource.c (next_insn_no_annul): Likewise.
1579
1580 * cse.c (rtx_cost): Remove multiplication by power of 2 special
1581 casing.
1582
1583 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1584
1585 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1586 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1587 (possibly) work around broken /bin/sh.
1588
1589 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1590
1591 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1592 . as N64/N32 libgcc_s.so subdirs.
1593
1594 2002-05-10 David S. Miller <davem@redhat.com>
1595
1596 * config/sparc/sparc.md: Use define_constants for unspec numbers.
1597
1598 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1599 more accurately.
1600 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1601 comment.
1602 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1603 * doc/rtl.texi: Document these macros more accurately.
1604 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1605 JUMP_INSNs and CALL_INSNs.
1606 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1607 or INSN_FROM_TARGET_P if the code is appropriate.
1608
1609 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1610
1611 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1612 before using SYMBOL_REF_FLAG (addr).
1613
1614 * config/avr/avr-protos.h (avr_io_address_p): Declare.
1615 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1616 Make non-static. Update all callers.
1617 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1618 New insns to clear/set/test a single bit in I/O address space.
1619
1620 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1621
1622 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1623
1624 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1625
1626 * Makefile.in: Update.
1627 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1628 builtin_define_std): New.
1629 (c_common_init): Register CPP builtins callback.
1630 * c-common.h (flag_iso, flag_undef): New.
1631 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1632 * c-lex.c: Don't include target.h.
1633 (cb_register_builtins): Move to c-common.c.
1634 (init_c_lex): Don't register hook here.
1635 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1636 (cpp_define, cpp_assert): Remove.
1637 * gcc.c (cc1_options): Pass -undef to front end.
1638 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1639 (TARGET_INITIALIZER): Update.
1640 * target.h (struct cpp_reader): Don't predeclare.
1641 (struct gcc_target): Remove cpp builtin hook.
1642 * tree.c (default_register_cpp_builtins): Remove.
1643 doc:
1644 * tm.texi: Update.
1645
1646 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1647
1648 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1649
1650 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1651
1652 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1653 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1654
1655 2002-05-09 Jakub Jelinek <jakub@redhat.com>
1656
1657 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1658 * config/sparc/libgcc-sparc-glibc.ver: New file.
1659 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1660 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1661
1662 2002-05-09 Jakub Jelinek <jakub@redhat.com>
1663
1664 PR target/6429
1665 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1666 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1667 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1668 base multilibs.
1669 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1670 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1671 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1672 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1673
1674 2002-05-09 Richard Henderson <rth@redhat.com>
1675
1676 * config/ia64/ia64.md: Use define_constants for unspec numbers.
1677 * config/ia64/ia64.c: Likewise.
1678
1679 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
1680
1681 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1682 (save_restore_insns): Likewise.
1683 (mips_expand_prologue, mips_expand_epilogue): Update callers.
1684 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1685
1686 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
1687
1688 * athlon.md, k6.md, pentium.md, ppro.md): New files.
1689 * i386.md: Move scheduling information into new files.
1690
1691 * i386.md (type attribute): Add "rotate" for rotate insns.
1692 (rotate insns): Set type to "rotate".
1693 (various attributes and function units): Treat rotate like shift.
1694 (pent_pair attribute): Only rotates by one bit position are
1695 pairable.
1696 (sbb insns): Explicitly set pent_pair attribute on a couple
1697 that were missing it.
1698
1699 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1700
1701 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1702 make sure that buffer starts on odd word address.
1703 (sh_va_arg): Skip odd fp registers when reading a double precision
1704 value.
1705
1706 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1707
1708 * tree.h (preserve_data, object_permanent_p, type_precision):
1709 Remove.
1710
1711 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1712
1713 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1714 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1715 doc:
1716 * cpp.texi: Update for removal of obsolete features.
1717
1718 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
1719 Jeffrey A Law (law@redhat.com)
1720
1721 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
1722 the DFA interface for Pentium processors.
1723 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1724 (attr_pent_pair, ix86_pent_find_pair): Remove.
1725 (ix86_sched_reorder_pentium): Remove.
1726 (ix86_sched_reorder): Remove reordering for Pentium.
1727 * i386.md (Pentium scheduling): Rewrite using DFA description.
1728
1729 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1730
1731 * cfganal.c (can_fallthru): Fix fast path.
1732 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1733 with edges to the next block.
1734
1735 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
1736 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1737
1738 * final.c (end_final): Use C trees to output data structures for profiling.
1739
1740 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1741 (profile.o): New dependency profile.h
1742 (final.o): New dependency profile.h
1743 * profile.h: New file. New global structure profile_info.
1744 * final.h (count_edges_instrumented_now): Declare.
1745 (current_function_cfg_checksum): Declare.
1746 (function_list): New structure.
1747 (functions_head, functions_tail): New static variables.
1748 (end_final): Emits more data, removed some -ax stuff.
1749 (final): Stores function names and chcksums.
1750 * gcov-io.h (__write_gcov_string): New function.
1751 (__read_gcov_string): New function.
1752 * gcov.c (read_profile): New function.
1753 (create_program_flow_graph): Uses read_profile instead of reading
1754 da_file.
1755 (read_files): Removed da_file checking, it's done by read_profile now.
1756 * libgcc2.c (bb_function_info): New structure.
1757 (bb): New field in structure, removed some -ax stuff.
1758 (__bb_exit_func): Changed structure of da_file.
1759 * profile.c (count_edges_instrumented_now): New global variable.
1760 (current_function_cfg_checksum): New global variable.
1761 (max_counter_in_program): New global variable.
1762 (get_exec_counts): New function.
1763 (compute_checksum): New function.
1764 (instrument_edges): Sets count_edges_instrumented_now.
1765 (compute_branch_probabilities): Uses get_exec_counts instead of
1766 reading da_file.
1767 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1768 (init_branch_prob): Removed da_file checking, done in get_exec_counts
1769 now.
1770 (end_branch_prob): Removed da_file checking, done in get_exec_counts
1771 now.
1772 * gcov.texi: Updated information about gcov file format.
1773
1774 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1775
1776 * sbitmap.c: Fix formatting.
1777 * scan.c: Likewise.
1778 * scan-decls.c: Likewise.
1779 * sched-deps.c: Likewise.
1780 * sched-ebb.c: Likewise.
1781 * sched-rgn.c: Likewise.
1782 * sched-vis.c: Likewise.
1783 * sdbout.c: Likewise.
1784 * sibcall.c: Likewise.
1785 * simplify-rtx.c: Likewise.
1786 * ssa.c: Likewise.
1787 * ssa-ccp.c: Likewise.
1788 * ssa-dce.c: Likewise.
1789 * stmt.c: Likewise.
1790 * stor-layout.c: Likewise.
1791 * stringpool.c: Likewise.
1792
1793 2002-05-09 David S. Miller <davem@redhat.com>
1794
1795 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1796
1797 2002-05-07 David S. Miller <davem@redhat.com>
1798
1799 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1800 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1801 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1802 library implementation clobbers the output before the inputs
1803 are fully consumed, use stack temporary for the output.
1804
1805 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
1806
1807 * config/netbsd.h (CPP_SPEC): Remove.
1808 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1809 * config/i386/netbsd.h (CPP_SPEC): Define.
1810 * config/ns32k/netbsd.h (CPP_SPEC): Define.
1811 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1812 * config/sparc/netbsd.h (CPP_SPEC): Define.
1813 * config/vax/netbsd.h (CPP_SPEC): Define.
1814
1815 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1816
1817 * read-rtl.c: Fix formatting.
1818 * real.c: Likewise.
1819 * recog.c: Likewise.
1820 * regclass.c: Likewise.
1821 * regmove.c: Likewise.
1822 * reg-stack.c: Likewise.
1823 * reload1.c: Likewise.
1824 * reload.c: Likewise.
1825 * resource.c: Likewise.
1826 * rtlanal.c: Likewise.
1827 * rtl.c: Likewise.
1828 * rtl-error.c: Likewise.
1829
1830 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1831
1832 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1833 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1834
1835 2002-05-08 Bernd Schmidt <bernds@redhat.com>
1836
1837 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1838 use __SSE2__ macro instead.
1839 * config/i386/xmmintrin.h: Likewise.
1840
1841 2002-05-08 Janis Johnson <janis187@us.ibm.com>
1842
1843 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1844 and use it in all invocations of these macros. Clean up comments.
1845 * rtl.c (rtl_check_failed_flag): Add an argument for the name
1846 of the flag access macro whose check failed.
1847 * doc/rtl.texi (Flags): Document additional flag uses.
1848
1849 2002-05-08 Robert Spier <rspier@pobox.com>
1850 Neil Booth <neil@daikokuya.demon.co.uk>
1851
1852 PR preprocessor/6521
1853 * cppfiles.c (handle_missing_header): Don't do anything
1854 different for <> includes.
1855 doc:
1856 * cppopts.texi: Update documentation for -MG.
1857
1858 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
1859
1860 * cpplex.c (cpp_interpret_charconst): Truncate as well as
1861 sign-extend.
1862 doc:
1863 * cpp.texi: Clarify multichar charconst valuation.
1864
1865 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1866
1867 * doc/invoke.texi: Document -mwindiss option.
1868
1869 2002-05-08 Jason Merrill <jason@redhat.com>
1870
1871 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1872
1873 * dwarf2out.c (gen_type_die): Abort on broken recursion.
1874
1875 PR c++/6381
1876 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1877 REAL_CST.
1878
1879 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
1880
1881 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1882 little-endian multilibs to override arm/thumb multilibs.
1883 Do not build hardware floating point multilibs, nor apcs-26
1884 multilibs for the Thumb.
1885
1886 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1887
1888 PR c/6569.
1889 * varasm.c (mark_weak): New function.
1890 (merge_weak): Use it. Do not call declare_weak.
1891 (declare_weak): Use merge_weak.
1892
1893 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1894
1895 * cse.c (dead_libcall_p): Update counts.
1896 (delete_trivially_dead_insns): Update call of dead_libcall_p.
1897
1898 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1899
1900 * cfglayout.c (function_tail_eff_head): Rename to ...
1901 (function_footer): ... this one.
1902 (unlink_insn_chain): New functions.
1903 (label_for_bb): Only call block_label and emit debug message.
1904 (record_effective_endpoints): Actually unlink the headers and footers.
1905 (fixup_reorder_cahin): Re-insert the unlinked sequences.
1906 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1907 * cfglayout.h (struct reorder_block_def): New fields footer/header;
1908 remove eff_head/eff_end.
1909 * rtl.h (set_first_insn): Declare.
1910 * emit-rtl.c (set_first_insn): New function.
1911
1912 * cfglayout.c (fixup_reorder_chain): Dump duplicated
1913 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1914 cfg_layout_duplicate_bb): New global function.
1915 (duplicate_insn_chain): New static function.
1916 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1917 cfg_layout_duplicate_bb): Declare.
1918 (struct reorder_block_def): Add "original" field.
1919 * emit-rtl.c (emit_copy_of_insn_after): New function.
1920 * rtl.h (emit_copy_of_insn_after): Declare.
1921
1922 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1923 (fixup_reorder_chain): properly handle edges to exit block.
1924
1925 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1926 Jan Hubicka <jh@suse.cz>
1927
1928 * basic-block.h (note_prediction_to_br_prob): declare.
1929 * c-semantics.c: Inlucde predit.h
1930 (expand_stmt): predict GOTO_STMT as not taken.
1931 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1932 (cleanup_cfg): Do not free tail_recursion_list.
1933 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1934 (flow_delete_block): Kill predictions past end of basic block.
1935 * output.h (delete_unreachable_blocks): Declare.
1936 * predict.c (predicted_by_p, process_note_predictions,
1937 process_note_prediction, last_block_p): New function.
1938 (estimate_probability): Bypass loop on PRED_CONTINUE;
1939 do not handle noreturn heuristics; kill PRED_RETURN; add
1940 PRED_EARLY_RETURN.
1941 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1942 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1943 * predict.h (IS_TAKEN): New constant.
1944 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1945 * rtl.c (NOTE_INSN_PREDICTION): New.
1946 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1947 New macro.
1948 (insn_note): add NOTE_INSN_PREDICTION.
1949 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1950 CFG; free tail_recursion_label_list.
1951 * stmt.c: Include predict.h;
1952 (return_prediction): New.
1953 (expand_value_return): Use it.
1954 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1955
1956 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
1957
1958 * config/mips/mips.md: Name the unspecs with define_constant.
1959 (*HILO_delay): Rename to 'hilo_delay' (no star).
1960 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1961 (reload_outdi, reload_outsi): Likewise.
1962
1963 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1964
1965 * toplev.c: Fix formatting.
1966
1967 2002-05-07 Janis Johnson <janis187@us.ibm.com>
1968
1969 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1970 * configure.in (ac_rtlflag_checking): New.
1971 * doc/install.texi (--enable-checking): Document RTL flag checking.
1972
1973 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1974
1975 * c-common.c (c_common_init): Set options->unsigned_wchar.
1976 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1977 group target dependencies.
1978 (init_builtins, cpp_handle_option): Update.
1979 * cpplex.c (cpp_interpret_charconst): Update.
1980 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1981 signed_char to unsigned_char, group target dependencies.
1982 * defaults.h (WCHAR_UNSIGNED): Remove.
1983 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1984 config:
1985 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1986 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1987 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1988 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1989 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1990 doc:
1991 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1992
1993 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1994
1995 * fixinc/inclhack.def (windiss_math1): New fix.
1996 (windiss_math2): Likewise.
1997 (windiss_valist): Likewise.
1998 * fixinc/fixincl.x: Regenerated.
1999
2000 2002-05-07 Andreas Jaeger <aj@suse.de>
2001
2002 * genautomata.c (output_internal_min_issue_delay_func): Add
2003 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
2004 (output_internal_trans_func): Likewise.
2005
2006 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
2007
2008 * pa.c (hppa_profile_hook): Use force_reg to get the address
2009 of the profile hook into an appropriate pseudo register.
2010
2011 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2012
2013 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
2014 (LINK_START_SPEC): Handle it.
2015 (LINK_OS_SPEC): Likewise.
2016 (CPP_SPEC): Likewise.
2017 (STARTFILE_SPEC): Likewise.
2018 (LIB_SPEC): Likewise.
2019 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
2020 all platforms.
2021 (CRTSAVRES_DEFAULT_SPEC): New macro.
2022 (LIB_WINDISS_SPEC): New macro.
2023 (CPP_OS_WINDISS_SPEC): Likewise.
2024 (STARTFILE_WINDISS_SPEC): Likewise.
2025 (ENDFILE_WINDISS_SPEC): Likewise.
2026 (LINK_START_WINDISS_SPEC): Likewise.
2027 (LINK_OS_WINDISS_SPEC): Likewise.
2028 * config/rs6000/windiss.h: New file.
2029
2030 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
2031
2032 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
2033
2034 2002-05-06 David S. Miller <davem@redhat.com>
2035
2036 * config/sparc/sparc.md (shift insns): Do not mask off
2037 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
2038 take care of it.
2039
2040 2002-05-06 Richard Henderson <rth@redhat.com>
2041
2042 PR c++/6212
2043 * expr.c (highest_pow2_factor_for_type): New.
2044 (expand_assignment): Use it.
2045
2046 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
2047
2048 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
2049 unspec_volatile.
2050 ("altivec_mfvscr"): Same.
2051
2052 2002-05-06 Janis Johnson <janis187@us.ibm.com>
2053
2054 * rtl.h (struct rtx_def): Update comments.
2055 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
2056 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
2057 RTL_FLAG_CHECK macros with list of expected RTL codes.
2058 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
2059 (rtl_check_failed_flag): New.
2060 * reload1.c (reload): Use REG macro before changing rtx to MEM.
2061 (reload_cse_noop_set_p): Check rtx code before using access macro.
2062 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
2063 before using access macro.
2064
2065 2002-05-06 Janis Johnson <janis187@us.ibm.com>
2066
2067 * doc/rtl.texi (Flags): Update to reflect current usage.
2068
2069 2002-05-06 Roger Sayle <roger@eyesopen.com>
2070
2071 PR opt/3995
2072 * fold-const.c (sign_bit_p): New function.
2073 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
2074 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
2075 Reapply fold when converting (A & C) == C into (A & C) != 0.
2076 (fold_binary_op_with_conditional_arg): Fix typo in comment.
2077
2078 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2079
2080 * c-common.c (warn_multichar): New.
2081 (c_common_init): Set CPP's warn_multichar.
2082 * c-common.h (warn_multichar): New.
2083 * c-decl.c (warn_multichar): Remove.
2084 * c-lex.c (lex_charconst): Update.
2085 * c-tree.h (warn_multichar): Remove.
2086 * cppexp.c (eval_token): Sign-extend charconst value.
2087 * cppinit.c (cpp_create_reader): Set warn_multichar.
2088 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
2089 each character. Update prototype. Sign-extend the result.
2090 * cpplib.h: Fix conditions.
2091 (struct cpp_options): Add new warning flag.
2092 (cpp_interpret_charconst): Update prototype.
2093 doc:
2094 * cpp.texi: Update documentation.
2095
2096 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
2097
2098 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2099 Fix typo in usage of allof instead of unit.
2100
2101 2002-05-06 Richard Henderson <rth@redhat.com>
2102
2103 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
2104 and any jump or call for IN.
2105
2106 2002-05-06 Bernd Schmidt <bernds@redhat.com>
2107
2108 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
2109 -msse2.
2110 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
2111
2112 2002-05-06 Roger Sayle <roger@eyesopen.com>
2113
2114 * fold-const.c (lshift-double): Cast the high word to an unsigned
2115 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
2116 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
2117 avoid compiler warning. (fold): Remove redundant code from
2118 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
2119
2120 2002-05-06 Jeff Law <law@redhat.com>
2121
2122 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
2123 * pa.c (pa_adjust_cost): Remove all true dependency cost
2124 adjustments. Also remove support for non-DFA scheduling.
2125 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
2126 to adjust true dependency costs. Update various comments.
2127 (7100lc, 7200, 7300 scheduling): Simplify by combining the
2128 FP ALU & MPY units into a single unit.
2129
2130 2002-05-06 Catherine Moore <clm@redhat.com>
2131
2132 * config/v850/v850.c (compute_register_save_size): Make sure
2133 to count all of the registers that will be saved.
2134
2135 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2136
2137 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
2138
2139 2002-05-06 David S. Miller <davem@redhat.com>
2140
2141 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
2142 allow result to overlap input operands in memory.
2143
2144 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
2145
2146 doc:
2147 * cpp.texi: Update multichar charconst docs.
2148
2149 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
2150
2151 * cpplex.c (cpp_interpret_charconst): Sign-extend each
2152 character. Don't ignore excess characters. Treat
2153 multicharacter character constants as signed.
2154 (cpp_parse_escape): Clarify diagnostic.
2155
2156 2002-05-05 Jakub Jelinek <jakub@redhat.com>
2157
2158 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
2159 use add instead of shift.
2160 (ashldi3_sp64): Likewise.
2161 (ashlsi3_const1, ashldi3_const1): Remove.
2162 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
2163 * config/sparc/sparc.c (const1_operand): New.
2164
2165 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
2166
2167 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
2168
2169 2002-05-05 Jakub Jelinek <jakub@redhat.com>
2170
2171 PR target/6561
2172 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
2173
2174 2002-05-05 Richard Henderson <rth@redhat.com>
2175
2176 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
2177 memory latency adjustments.
2178 (alpha_variable_issue): Remove.
2179 (alpha_use_dfa_pipeline_interface): New.
2180 (alpha_multipass_dfa_lookahead): New.
2181 * config/alpha/alpha.md: Remove define_function_unit scheduling;
2182 include new dfa scheduling.
2183 (attr type): Add none.
2184 (blockage): Use it.
2185 * config/alpha/ev4.md: New.
2186 * config/alpha/ev5.md: New.
2187 * config/alpha/ev6.md: New.
2188
2189 2002-05-05 David S. Miller <davem@redhat.com>
2190
2191 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
2192
2193 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
2194
2195 * cse.c: Fix formatting.
2196 * emit-rtl.c: Likewise.
2197
2198 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2199
2200 * genautomata.c (initiate_states): Add additional guard to
2201 initialize `units_array'.
2202
2203 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2204
2205 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
2206 process_unit_to_form_the_same_automaton_unit_lists,
2207 form_the_same_automaton_unit_lists
2208 check_unit_distributions_to_automata): New prototypes and
2209 functions.
2210 (check_automata): Rename it into `check_automata_insn_issues'.
2211 (unit_decl): New fields `the_same_automaton_unit' and
2212 `the_same_automaton_message_reported_p'.
2213 (unit_decl_t): New typedef.
2214 (the_same_automaton_lists): New gloval variable.
2215 (unit_regexp, unit_set_el, units_array, units_cmp,
2216 output_get_cpu_unit_code_func): Use the typedef.
2217 (evaluate_max_reserv_cycles): Increment
2218 `description->max_insn_reserv_cycles'.
2219 (initiate_states): Don't increment `max_cycles_num'.
2220 (transform_insn_regexps): Move code around transformation of
2221 regexps from `generate'.
2222 (generate): Remove call of `transform_insn_regexps'.
2223 (expand_automata): Call `transform_insn_regexps' and
2224 `check_unit_distributions_to_automata'. Check errors before
2225 `generate'.
2226
2227 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
2228 automaton `ultrasparc3_1'.
2229
2230 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
2231
2232 * c-common.c (c_common_init): Set up CPP arithmetic.
2233 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
2234 something reasonable for the host.
2235 (sanity_checks): Add checks.
2236 (cpp_read_main_file): Call sanity_checks() from here...
2237 (cpp_post_options): ... not here.
2238 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
2239 * cpplib.h (struct cpp_options): New member int_precision.
2240
2241 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2242
2243 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
2244
2245 2002-05-04 David S. Miller <davem@redhat.com>
2246
2247 * config/sparc/linux.h, config/sparc/linux64.h
2248 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
2249
2250 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
2251 more RTX codes.
2252 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
2253
2254 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
2255 of SETs.
2256
2257 2002-05-05 Tim Josling <tej@melbpc.org.au>
2258
2259 * treelang; New directory for new sample language treelang.
2260
2261 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2262
2263 * Makefile.in (c-lex.o): Update.
2264 * c-lex.c: Include target.h.
2265 (cb_register_builtins): New.
2266 (init_c_lex): Set builtins callback.
2267 * c-lex.h (cpp_define, cpp_assert): New prototypes.
2268 * cppinit.c (init_builtins): Use callback, including for
2269 GXX_WEAK.
2270 * cpplib.h (struct cpp_callbacks): New member.
2271 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
2272 (TARGET_INITIALIZER): Update.
2273 * target.h (struct gcc_target): New hook.
2274 * tree.c (default_register_cpp_builtins): New.
2275 * tree.h (default_register_cpp_builtins): New.
2276 doc:
2277 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
2278
2279 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2280
2281 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
2282 (cpp_post_options): Move sanity checks to...
2283 (sanity_checks): New.
2284 * cpplex.c (maybe_read_ucs): Fix prototype.
2285 (parse_string, cpp_parse_escape): Cast for %c format specifier.
2286 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
2287 if necessary.
2288
2289 2002-05-04 Bernd Schmidt <bernds@redhat.com>
2290
2291 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
2292 builtins. Use V2DI patterns instead of TI for logical operations.
2293 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
2294 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
2295 (ix86_expand_builtins): Change the pattern used for movntdq.
2296 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
2297 sse2_nandv2di3): New patterns.
2298 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
2299 on operands.
2300 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
2301 (cvtdq2pd): Correct mode on operand 1.
2302 (sse2_umulsidi3): Describe without unspec.
2303 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
2304 machine modes.
2305 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
2306 (ashlv2di3): Likewise, from sse2_ashlv2di3.
2307 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
2308 ashlv4si3, ashlv2di3): Use SImode for shift count.
2309 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
2310 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
2311 New patterns.
2312 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
2313 New typedefs.
2314 (__m128i, __m128d): New macros.
2315 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
2316 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
2317 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
2318 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
2319 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
2320 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
2321 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
2322 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
2323 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
2324 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
2325 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
2326 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
2327 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
2328 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
2329 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
2330 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
2331 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
2332 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
2333 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
2334 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
2335 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
2336 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
2337 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
2338 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
2339 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
2340 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
2341 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
2342 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
2343 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
2344 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
2345 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
2346 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
2347 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
2348 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
2349 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
2350 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
2351 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
2352 functions.
2353 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
2354 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
2355
2356 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2357
2358 * dwarf2out.c: Fix formatting.
2359 * varasm.c: Likewise.
2360
2361 2002-05-04 David Edelsohn <edelsohn@gnu.org>
2362
2363 PR c/6543
2364 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
2365 clobber and use result as temporary value.
2366
2367 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2368
2369 * expr.c (force_operand): Use expand_simple_* to handle more
2370 cases.
2371
2372 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2373
2374 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
2375 and sign-extension.
2376 (lex_charconst): Update for change in prototype of
2377 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
2378 appropriately.
2379 * cpphash.h (BITS_PER_CPPCHAR_T): New.
2380 * cppinit.c (cpp_create_reader): Initialize them for no
2381 change in semantics.
2382 (cpp_post_options): Add sanity checks.
2383 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
2384 and truncation issues. Calculate in type cppchar_t.
2385 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
2386 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
2387 run-time dependent precision correctly. Return whether the
2388 result is signed or not.
2389 * cpplib.c (dequote_string): Use cppchar_t; update.
2390 * cpplib.h (cppchar_signed_t): New.
2391 struct cpp_options): New precision members.
2392 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
2393 * cppexp.c (eval_token): Update.
2394
2395 2002-05-03 David S. Miller <davem@redhat.com>
2396
2397 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
2398 * config/sparc/sparc.c (sparc_rtx_costs): New function
2399 implementing RTX_COSTS and CONST_COSTS.
2400 * config/sparc/sparc.h (CONST_COSTS): Delete.
2401 (RTX_COSTS_CASES): Define.
2402 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
2403 the work.
2404
2405 * config/sparc/sparc.md (DFA schedulers): Split out...
2406 * config/sparc/cypress.md, config/sparc/hypersparc.md,
2407 config/sparc/sparclet.md, config/sparc/supersparc.md,
2408 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
2409
2410 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
2411 checks on it, always defined for Sparc.
2412
2413 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
2414 Tweak, and add more detailed comments.
2415
2416 2002-05-03 Zack Weinberg <zack@codesourcery.com>
2417
2418 * Re-apply patch accidentally reverted with
2419 DFA scheduler merge: remove all rules and variables to slurp
2420 source files out of libiberty and rebuild them with HOST_CC.
2421 ($(HOST_PREFIX_1)varray.o): New rule.
2422 (genattrtab rule): Word wrap.
2423
2424 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2425
2426 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
2427 (CPP_SUBTARGET_SPEC): Define.
2428 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
2429 cpp_subtarget specs.
2430 (CPP_SPEC): Redefine to include %(cpp_subtarget).
2431
2432 2002-05-03 David S. Miller <davem@redhat.com>
2433
2434 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2435 * target.h (struct gcc_target): Delete cycle_display member.
2436
2437 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
2438 (rtx_needs_barrier): Delete reference to cycle_display unspec.
2439 (ia64_sched_reorder2): Mention need for cycle display handling
2440 once such notes exist.
2441
2442 2002-05-03 Richard Henderson <rth@redhat.com>
2443
2444 * real.c (etoasc): Strip most trailing zeros for clarity.
2445 * sched-vis.c: Include real.h.
2446 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
2447 * Makefile.in (sched-vis.o): Add real.h.
2448
2449 2002-05-03 David S. Miller <davem@redhat.com>
2450
2451 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2452 no longer needed.
2453
2454 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
2455
2456 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2457 when we get an out of range literal.
2458 (altivec_expand_ternop_builtin): Same.
2459 (altivec_expand_unop_builtin): Same.
2460 (altivec_expand_builtin): Same, for dss.
2461 (altivec_expand_builtin): Use trees instead of rtl when
2462 determining literal argument validity.
2463
2464 2002-05-03 David S. Miller <davem@redhat.com>
2465
2466 Delete cycle display scheduling hook.
2467 * config/ia64/ia64.c (ia64_cycle_display,
2468 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2469 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2470 and use emit_insn_before instead of ia64_emit_insn_before.
2471 * config/ia64/ia64.md (unspec usage): Delete cycle display.
2472 (cycle_display): Delete insn pattern.
2473 * config/sparc/sparc.md (unspec usage): Delete cycle display.
2474 (cycle_display): Delete insn pattern.
2475 * config/sparc/sparc.c (sparc_cycle_display,
2476 TARGET_SCHED_CYCLE_DISPLAY): Delete.
2477 * doc/md.texi (cycle_display): Don't mention.
2478 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
2479
2480 2002-05-03 Richard Henderson <rth@redhat.com>
2481
2482 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2483 * recog.h: Declare them.
2484
2485 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2486 * config/sparc/sparc.md: Use store_data_bypass_p instead.
2487 * config/sparc/sparc-protos.h: Update.
2488
2489 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2490
2491 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2492 -D__arch64__. Add -D_LP64.
2493 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2494 from sparc.h.
2495 (CPP_ARCH64_SPEC): Likewise.
2496 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2497 (NO_BUILTIN_SIZE_TYPE): Undef.
2498
2499 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
2500
2501 * genautomata.c (min_issue_delay_pass_states): Change return type
2502 in the prototype.
2503 (min_issue_delay_pass_states): Change the algorithm.
2504 (min_issue_delay): Set up min_insn_issue_delay for the state.
2505 (output_min_issue_delay_table): Interchange the nested loops and
2506 and initiate min_insn_issue_delay for states.
2507
2508 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
2509
2510 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
2511 jump is simplejump.
2512
2513 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
2514
2515 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
2516 sequence.
2517
2518 2002-05-03 Richard Henderson <rth@redhat.com>
2519
2520 PR opt/6534
2521 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2522 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2523 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2524 code before JUMP, not EARLIEST.
2525
2526 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
2527
2528 * c-format.c (check_format_info_main): Don't check for presence of
2529 parameter for * width until after operand number has been read,
2530 and only check for it if format parameters are available.
2531 Fixes PR c/6547.
2532
2533 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2534
2535 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2536 (LINK_SPEC): Undef before defining.
2537
2538 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2539
2540 PR preprocessor/6489
2541 * tradcpp.c (fixup_newlines): New.
2542 (main, finclude): Use it.
2543
2544 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
2545
2546 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2547 * config/mips/mips.c (mips_unique_section): Strip encoding from
2548 decl name.
2549
2550 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2551
2552 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2553 mode.
2554
2555 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2556
2557 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2558 (Specific): Removed buildstats references.
2559 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2560 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2561 Accomodate Solaris versions beyond 8.
2562 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2563 (Specific, *-*-solaris2.8): Removed, obsolete.
2564
2565 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2566
2567 PR target/6542
2568 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2569 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2570 fill leaf_reg_remap with identity.
2571 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2572
2573 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2574
2575 * config/h8300/crti.asm: Remove trailing spaces.
2576 * config/h8300/h8300.c: Likewise.
2577 * config/h8300/lib1funcs.asm: Likewise.
2578
2579 2002-05-02 Jason Merrill <jason@redhat.com>
2580
2581 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2582 * c-decl.c (c_init_decl_processing): Use it.
2583 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2584 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2585 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2586
2587 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2588
2589 * regrename.c: Fix formatting.
2590 * tree.c: Likewise.
2591
2592 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2593
2594 * i386.md (attribute memory): Handle compares properly.
2595
2596 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
2597
2598 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2599 to none.
2600
2601 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2602
2603 * function.c: Fix formatting.
2604
2605 2002-05-02 Jan Hubicka <jh@suse.cz>
2606
2607 * haifa-sched.c (schedule_insn): Print table of instructions and
2608 reservations.
2609 (sched_block): Do not print ready list at verbosity level 1.
2610 * sched-vis.c (print_insn): Make global.
2611 * sched-ebb.c (ebb_print_insn): Rename from...
2612 (print_insn): ... this one.
2613 * sched-int.h (print_insn): Declare
2614
2615 2002-05-02 Richard Henderson <rth@redhat.com>
2616
2617 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2618 emitted by cycle_display.
2619
2620 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
2621
2622 * doc/install.texi (*-*-freebsd*): Update to latest status.
2623
2624 2002-05-02 Jakub Jelinek <jakub@redhat.com>
2625
2626 PR target/6540
2627 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2628 * config/float-sparc.h: Assume 128-bit long double if
2629 __LONG_DOUBLE_128__ is defined.
2630
2631 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
2632
2633 * genattrtab.c (write_function_unit_info): Add a dummy element
2634 when num_units == 0.
2635
2636 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2637
2638 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2639 TYPE_MODE (double_type_node) instead of DFmode.
2640
2641 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
2642
2643 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2644 jumps post reload.
2645 * toplev.c (rest_of_compilation): Revert Richard's patch.
2646
2647 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2648
2649 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2650
2651 2002-05-02 Catherine Moore <clm@redhat.com>
2652
2653 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2654
2655 2002-05-02 Kazu Hirata <kazu@hxi.com>
2656
2657 * combine.c: Fix comment typos.
2658 * expr.c: Likewise.
2659 * genautomata.c: Likewise.
2660 * stmt.c: Likewise.
2661 * tree.h: Likewise.
2662
2663 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
2664
2665 * doc/install.texi: State GNAT version requirements.
2666
2667 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2668
2669 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2670 of the frame pointer or arg pointer register which strict register
2671 checking is not enabled.
2672
2673 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
2674
2675 * gcc.dg/altivec-8.c: New.
2676
2677 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2678 PRE_INC and PRE_DEC for altivec modes.
2679
2680 2002-05-01 Bruce Korb <bkorb@gnu.org>
2681
2682 * fixinc/check.tpl(set-writable): make sure the function exists first
2683 * fixinc/inclhack.def(alpha_assert): fix test_text
2684 * fixinc/tests/base/assert.h: add in missing result
2685
2686 2002-05-01 Jeff Law <law@redhat.com>
2687
2688 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2689 'T' constraint.
2690
2691 2002-05-01 Joel Brobecker <brobecker@gnat.com>
2692
2693 * dbxout.c (dbxout_type): Emit size information for range types,
2694 as well, but only when using GDB extensions.
2695
2696 2002-05-01 Richard Henderson <rth@redhat.com>
2697
2698 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2699 target-independent gnu binutils date test.
2700
2701 2002-05-01 Richard Henderson <rth@redhat.com>
2702
2703 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2704 info before expunging the block.
2705
2706 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2707
2708 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2709 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
2710 -M -or -MM is in effect.
2711
2712 2002-05-01 Zack Weinberg <zack@codesourcery.com>
2713
2714 * config.gcc: Correct test of --enable-obsolete. Obsolete all
2715 A29k configurations.
2716 * doc/install.texi: Update to match.
2717
2718 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2719
2720 PR bootstrap/6514
2721 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2722 for duplicates. Always loop over whole list.
2723
2724 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2725
2726 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2727
2728 2002-05-01 Joel Sherrill <joel@OARcorp.com>
2729
2730 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2731 support routines.
2732
2733 2002-05-01 Joel Sherrill <joel@OARcorp.com>
2734
2735 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2736
2737 2002-05-01 David Edelsohn <edelsohn@gnu.org>
2738
2739 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2740 (nabs_nopower): Same.
2741 (floatdisf2): New pattern.
2742 (absdi2): Convert to define_insn_and_split.
2743 (nabsdi2): Same.
2744 (trunctfsf2): Same.
2745 (floatditf2): Same.
2746 (floatsitf2): Same.
2747 (fix_trunctfdi2): Same.
2748 (fix_trunctfsi2): Same.
2749
2750 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
2751
2752 * doc/install.texi: Update Texinfo version requirement
2753 documentation.
2754
2755 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2756
2757 PR target/6512, PR target/5628
2758 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2759 when memory is not aligned.
2760 (movdf_insn_v9only_vis): Likewise.
2761 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2762 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2763 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2764
2765 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
2766
2767 * gcc.dg/altivec-7.c: New.
2768
2769 * config/rs6000/altivec.h: Cleanup.
2770
2771 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
2772
2773 * doc/invoke.texi (Option Summary): Add -mvrsave=.
2774 (RS/6000 and PowerPC Options): Document -mvrsave=.
2775
2776 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2777 (rs6000_altivec_vrsave_string): Same.
2778 (rs6000_override_options): Call rs6000_parse_vrsave_option.
2779 (rs6000_parse_vrsave_option): New.
2780 (rs6000_stack_info): Only generate vrsave instructions when
2781 TARGET_ALTIVEC_VRSAVE.
2782
2783 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2784 (rs6000_altivec_vrsave_string): Define extern.
2785 (rs6000_altivec_vrsave): Same.
2786 (TARGET_ALTIVEC_VRSAVE): New.
2787
2788 2002-04-30 Richard Henderson <rth@redhat.com>
2789
2790 PR opt/6516
2791 * toplev.c (rest_of_compilation): Don't run cross-jump before
2792 bb-reorder.
2793
2794 2002-04-30 Tom Rix <trix@redhat.com>
2795
2796 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2797 check which_alternative.
2798
2799 2002-04-30 Kazu Hirata <kazu@hxi.com>
2800
2801 * cpplex.c: Fix comment formatting.
2802 * function.c: Likewise.
2803 * integrate.c: Likewise.
2804 * regrename.c: Likewise.
2805 * sibcall.c: Likewise.
2806 * simplify-rtx.c: Likewise.
2807 * tree-inline.c: Likewise.
2808
2809 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2810
2811 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2812 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2813 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2814 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2815 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2816 * pa/x-ada: New file. Define ADA_CFLAGS.
2817
2818 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
2819
2820 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2821 from MMIX_LAST_REGISTER_FILE_REGNUM.
2822 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2823 (struct machine_function): New member highest_saved_stack_register
2824 previously static variable in mmix.c.
2825 (MACHINE_DEPENDENT_REORG): Define.
2826 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2827 (MMIX_OUTPUT_REGNO): New.
2828 (mmix_target_asm_function_prologue): Move calculation of last used
2829 saved-stack-register into...
2830 (mmix_machine_dependent_reorg): New function. Update to also handle
2831 !TARGET_ABI_GNU.
2832 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2833 register names, simplify somewhat by new variable regno.
2834 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
2835 register.
2836 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2837 emitting register names.
2838 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2839 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2840 Remove fixed FIXME.
2841 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2842 Declare.
2843
2844 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2845
2846 2002-04-30 Richard Henderson <rth@redhat.com>
2847
2848 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2849 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2850 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2851 emit_tfmode_cvt): New.
2852 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2853 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2854 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2855 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2856 * config/sparc/sparc-protos.h: Update.
2857
2858 2002-04-30 Janis Johnson <janis187@us.ibm.com>
2859
2860 * install.texi (Final install): Add to the list of info to include
2861 in a report of a successful bootstrap, and add link to 3.1 list.
2862
2863 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
2864
2865 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2866 (mode): Add vector modes
2867 (i387): Kill attribute.
2868 (unit): New attribute.
2869 (length_immediate): Grok new types.
2870 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2871 (modrm): Use "unit".
2872 (memory): Handle MMX/SSE properly.
2873 (scheduling descriptions): Kill uses of fop1.
2874 (sse, mmx, fp patterns): Set type and mode properly.
2875
2876 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
2877
2878 * pa.c (override_options): Default to PA8000 scheduling.
2879 * doc/invoke.texi (HP-PA options): Mention newly added 7300
2880 scheduling parameter.
2881
2882 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2883 handling of double precision multiplies.
2884
2885 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2886 fpdiv and fpsqrt instructions.
2887 (7200 & 7300 scheduling): Fix typo in handling of
2888 store-load and store-store penalties.
2889
2890 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2891
2892 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2893 mips. Add two missing commas.
2894
2895 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
2896
2897 * doc/contrib.texi (Contributors): Update Paolo Carlini's
2898 and Benjamin Kosnik's entries.
2899
2900 2002-04-29 David S. Miller <davem@redhat.com>
2901
2902 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2903 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2904 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2905 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2906
2907 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2908
2909 * combine.c (find_split_point): Use gen_int_mode.
2910
2911 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
2912
2913 Merging code from dfa-branch:
2914
2915 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
2916
2917 * genautomata.c (output_reserv_sets): Fix typo.
2918
2919 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
2920
2921 * genautomata.c (output_reserv_sets): Remove
2922 next_cycle_output_flag.
2923
2924 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
2925
2926 * sched-rgn.c (init_ready_list): Make the DFA code handle
2927 USE/CLOBBER insns in the same way as the traditional
2928 scheduler.
2929 (new_ready): Similarly..
2930
2931 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
2932
2933 * haifa-sched.c (schedule_block): Change the DFA state only after
2934 issuing insn.
2935
2936 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
2937
2938 * pa.c (hppa_use_dfa_pipeline_interface): New function.
2939 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2940 (override_options): Add PA7300 scheduling support.
2941 (pa_adjust_cost): Update various comments. Properly
2942 handle anti and output dependencies when using the
2943 DFA scheduler.
2944 (pa_issue_rate): Add PA7300 scheduling support.
2945 (pa_can_combine_p): Call extract_insn before calling
2946 constrain_operands (taken from mainline tree).
2947 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2948 * pa.md (cpu attr): Add 7300. Rewrite pipeline
2949 descriptions using DFA descriptions. Add PA7300
2950 scheduling support.
2951
2952 2002-03-30 David S. Miller <davem@redhat.com>
2953
2954 Add UltraSPARC-III DFA scheduling support.
2955 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2956 Update FP conditional move on register insn patterns to use it, as
2957 appropriate.
2958 (define_attr cpu): Add ultrasparc3.
2959 (define_attr us3load_type): New, update integer load patterns to
2960 set it, as appropriate.
2961 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2962 (rest): Add UltraSPARC3 scheduling description.
2963 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2964 (PROCESSOR_ULTRASPARC3): New.
2965 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2966 ({ASM,CPP}_CPU_SPEC): Likewise.
2967 (REGISTER_MOVE_COST): Likewise.
2968 (RTX_COSTS): Likewise.
2969 * config/sparc/sparc.c (sparc_override_options,
2970 sparc_initialize_trampoline, sparc64_initialize_trampoline,
2971 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2972 sparc_issue_rate): Likewise.
2973 * config/sparc/sol2.h: Likewise.
2974 * config/sparc/sol2-sld-64.h: Likewise.
2975 * config/sparc/linux64.h: Likewise.
2976
2977 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
2978
2979 * doc/md.texi: Add comments about usage the latency time for the
2980 different dependencies and about case when two or more conditions
2981 in different define_insn_reservations returns TRUE for an insn.
2982
2983 * doc/md.texi: Add reference for automaton based pipeline
2984 description.
2985
2986 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
2987
2988 * doc/passes.texi: Add missed information about genattrtab.
2989
2990 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
2991
2992 * genautomata.c (output_automata_list_transition_code): Check
2993 automata_list on NULL.
2994
2995 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
2996
2997 * genautomata.c (output_insn_code_cases,
2998 output_automata_list_min_issue_delay_code,
2999 output_automata_list_transition_code,
3000 output_automata_list_state_alts_code): Comment the functions.
3001
3002 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
3003
3004 * genautomata.c (automata_list_el_t): New typedef.
3005 (get_free_automata_list_el,free_automata_list_el,
3006 free_automata_list, automata_list_hash, automata_list_eq_p,
3007 initiate_automata_lists, automata_list_start, automata_list_add,
3008 automata_list_finish, finish_automata_lists,
3009 output_insn_code_cases, output_automata_list_min_issue_delay_code,
3010 output_automata_list_transition_code,
3011 output_automata_list_state_alts_code, add_automaton_state,
3012 form_important_insn_automata_lists): New functions and prototypes.
3013 (insn_reserv_decl): Add members important_automata_list and
3014 processed_p.
3015 (ainsn): Add members important_p.
3016 (automata_list_el): New structure.
3017 (first_free_automata_list_el, current_automata_list,
3018 automata_list_table): New global variables.
3019 (create_ainsns): Initiate member important_p.
3020 (output_internal_min_issue_delay_func): Generate the switch and
3021 call output_insn_code_cases.
3022 (output_internal_trans_func, output_internal_state_alts_func):
3023 Ditto.
3024 (generate): Call initiate_automata_lists.
3025 (automaton_states): New global variable.
3026 (expand_automata): Call form_important_insn_automata_lists.
3027 (write_automata): Call finish_automata_lists.
3028
3029 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
3030
3031 * genautomata.c (add_excls, add_presence_absence): Check that
3032 cpu units in the sets belong the same automaton.
3033
3034 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
3035 about that cpu units in the sets belong the same automaton.
3036
3037 * doc/md.texi: Ditto.
3038
3039 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
3040 Nitin Gupta <niting@noida.hcltech.com>
3041
3042 * config/sh/sh.c (sh_use_dfa_interface): New function.
3043
3044 (sh_issue_rate): New Function.
3045 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
3046 TARGET_SCHED_ISSUE_RATE: define.
3047
3048 * config/sh/sh.md: Add DFA based pipeline description for SH4.
3049
3050 (define_attr insn_class): New attribute used for DFA
3051 scheduling.
3052 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
3053 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
3054 cmpeqdi_t): Likewise.
3055
3056 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
3057 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
3058 ex_group.
3059 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
3060
3061 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
3062
3063 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
3064 break.
3065
3066 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
3067
3068 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
3069 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
3070 necessary.
3071 (output_dfa_start_func): Initiate new variable insn_codes_length,
3072 (write_automata): Output definition of the new variable.
3073
3074 2001-10-02 David S. Miller <davem@redhat.com>
3075
3076 * haifa-sched.c (advance_one_cycle): New function.
3077 (schedule_block): Use it.
3078 (queue_to_ready): Use it, and also make sure to advance the DFA
3079 state on all stall cycles, not just those where insn_queue links
3080 are found.
3081
3082 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
3083
3084 * haifa-sched.c (max_issue): Remove last_p argument. Only return
3085 non-zero if the highest-priority instruction could be scheduled.
3086 (choose_ready): Remove last argument from max_issue call.
3087
3088 2001-09-28 David S. Miller <davem@redhat.com>
3089
3090 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
3091 ultrasparc and 3 for other multi-issue sparcs.
3092
3093 2001-09-27 David S. Miller <davem@redhat.com>
3094
3095 * config/sparc/sparc.md (cycle_display): New pattern.
3096 * config/sparc/sparc.c (sparc_cycle_display): New.
3097 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
3098
3099 2001-09-25 David S. Miller <davem@redhat.com>
3100
3101 Convert all of Sparc scheduling to DFA
3102 * config/sparc/sparc.md: Kill all define_function_unit
3103 directives and replace with DFA equivalent.
3104 * config/sparc/sparc.c (ultrasparc_adjust_cost,
3105 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
3106 ultra_fpmode_conflict_exists, ultra_find_type,
3107 ultra_build_types_avail, ultra_flush_pipeline,
3108 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
3109 ultrasparc_variable_issue, ultrasparc_sched_init,
3110 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
3111 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
3112 ultra_cur_hist, ultra_cycles_elapsed): Kill.
3113 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3114 ultrasparc_store_bypass_p): New.
3115 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
3116 Declare.
3117
3118 2001-09-24 David S. Miller <davem@redhat.com>
3119
3120 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
3121 ready->vec[foo] not ready[foo].
3122
3123 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
3124
3125 * doc/md.texi: Correct examples for define_insn_reservations
3126 `mult' and `div'.
3127
3128 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
3129
3130 * genautomata.c (create_automata): Print message about creation of
3131 each automaton.
3132 (generate): Remove printing meease about creation of
3133 automata.
3134
3135 2001-09-05 David S. Miller <davem@redhat.com>
3136
3137 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
3138 * config/sparc/linux64.h: Likewise.
3139
3140 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
3141
3142 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
3143 schedule_block, sched_init, sched_finish): Add missed calls of
3144 use_dfa_pipeline_interface.
3145
3146 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
3147 Ditto.
3148
3149 * sched-vis.c (get_visual_tbl_length): Ditto.
3150
3151 2001-08-27 Richard Henderson <rth@redhat.com>
3152
3153 * genattr.c (main): Emit state_t even when not doing scheduling.
3154
3155 2001-08-27 Richard Henderson <rth@redhat.com>
3156
3157 * genautomata.c (expand_automata): Always create a description.
3158
3159 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
3160
3161 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
3162 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
3163 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
3164 RTL constructions.
3165
3166 * genattr.c (main): New variable num_insn_reservations. Increase
3167 it if there is DEFINE_INSN_RESERVATION. Output automaton based
3168 pipeline hazard recognizer interface.
3169
3170 * genattrtab.h: New file.
3171
3172 * genattrtab.c: Include genattrtab.h.
3173 (attr_printf, check_attr_test, make_internal_attr,
3174 make_numeric_value): Move protypes into genattrtab.h. Define them
3175 as external.
3176 (num_dfa_decls): New global variable.
3177 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
3178 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
3179 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
3180 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
3181
3182 * genautomata.c: New file.
3183
3184 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
3185
3186 * sched-int.h: (curr_state): Add the external definition for
3187 automaton pipeline interface.
3188 (haifa_insn_data): Add comments for members blockage and units.
3189
3190 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3191 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3192 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3193 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3194 TARGET_SCHED_DFA_POST_CYCLE_INSN,
3195 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3196 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
3197 macros.
3198 (TARGET_SCHED): Use the new macros.
3199
3200 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
3201 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
3202 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
3203 dfa_bubble): New members in gcc_target.sched.
3204
3205 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
3206 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
3207 (insn_queue): Redefine it as pointer to array.
3208 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
3209 INSN_QUEUE_SIZE.
3210 (max_insn_queue_index_macro_value): New variable.
3211 (curr_state, dfa_state_size, ready_try): New varaibles for
3212 automaton interface.
3213 (ready_element, ready_remove, max_issue): New function prototypes
3214 for automaton interface.
3215 (choose_ready): New function prototype.
3216 (insn_unit, blockage_range): Add comments.
3217 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
3218 FUNCTION_UNITS_SIZE == 0.
3219 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
3220 actual_hazard, potential_hazard): Add comments.
3221 (insn_cost): Use cost -1 as undefined value. Remove
3222 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
3223 pipeline interface.
3224 (ready_element, ready_remove): New functions for automaton
3225 interface.
3226 (schedule_insn): Add new code for automaton pipeline interface.
3227 (queue_to_ready): Add new code for automaton pipeline interface.
3228 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
3229 (debug_ready_list): Print newline when the queue is empty.
3230 (max_issue): New function for automaton pipeline interface.
3231 (choose_ready): New function.
3232 (schedule_block): Add new code for automaton pipeline interface.
3233 Print ready list before scheduling each insn.
3234 (sched_init): Add new code for automaton pipeline interface.
3235 Initiate insn cost by -1.
3236 (sched_finish): Free the current automaton state and finalize
3237 automaton pipeline interface.
3238
3239 * sched-rgn.c: Include target.h.
3240 (init_ready_list, new_ready, debug_dependencies): Add new code for
3241 automaton pipeline interface.
3242
3243 * sched-vis.c: Include target.h.
3244 (get_visual_tbl_length): Add code for automaton interface.
3245 (target_units, print_block_visualization): Add comments.
3246
3247 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
3248 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
3249 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
3250 (getruntime.o, genautomata.o): New entries.
3251 (genattrtab.o): Add new dependency file genattrtab.h.
3252 (genattrtab): Add new dependencies. Link it with `libm.a'.
3253 (getruntime.o, hashtab.o): New entries for canadian cross.
3254
3255 * doc/md.texi: Description of automaton based model.
3256
3257 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
3258 Add comments.
3259 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3260 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3261 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3262 TARGET_SCHED_DFA_POST_CYCLE_INSN,
3263 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3264 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3265 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
3266 hook descriptions.
3267 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
3268 MAX_DFA_ISSUE_RATE): New macro descriptions.
3269
3270 * doc/contrib.texi: Add dfa based scheduler contribution.
3271
3272 * doc/gcc.texi: Add more information about genattrtab.
3273
3274 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3275
3276 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
3277 adjust_address_nv call.
3278
3279 2002-04-29 Janis Johnson <janis187@us.ibm.com>
3280
3281 * doc/install.texi (Testing): Provide additional information, and
3282 a stronger encouragement, for running the testsuites.
3283
3284 2002-04-29 DJ Delorie <dj@redhat.com>
3285
3286 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
3287 given in upper case.
3288
3289 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3290
3291 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
3292 Solaris 2 <widec.h> if missing.
3293 * fixinc/fixincl.x: Regenerate.
3294 * fixinc/tests/base/widec.h: New file.
3295
3296 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
3297
3298 * toplev.c (f_options): Add "profile" switch so that
3299 -fno-profile can be used to disable -p.
3300
3301 2002-04-29 Bernd Schmidt <bernds@redhat.com>
3302
3303 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
3304 UV2DImode.
3305 * tree.c (build_common_tree_nodes_2): Likewise.
3306 * tree.h (enum tree_index): Likewise.
3307 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
3308
3309 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
3310 entries.
3311 (init_mmx_sse_builtins): Initialize SSE2 builtins.
3312 (ix86_expand_builtin): Add support for SSE2 builtins.
3313 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
3314 (VALID_SSE_REG_MODE): Use it.
3315 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
3316 (enum ix86_builtins): Add SSE2 builtins.
3317 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
3318 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
3319 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
3320 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
3321 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
3322 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
3323 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
3324 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
3325 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
3326 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
3327 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
3328 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
3329 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
3330 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
3331 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
3332 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
3333 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
3334 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
3335 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
3336 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
3337 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
3338 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
3339 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
3340 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
3341 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
3342 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
3343 lfence_insn): New patterns.
3344 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
3345 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
3346
3347 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
3348
3349 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
3350
3351 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3352
3353 * doc/contrib.texi (Contributors): Add Paolo Carlini and
3354 Janis Johnson.
3355 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
3356 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
3357 and CPU instead of cpu.
3358
3359 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3360
3361 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
3362 variables.
3363 (lang_independent_options): Add -fif-conversion, -fif-conversion2
3364 (rest_of_compilation): Do if conversion only when asked for.
3365 (parse_options_and_default_flags): Set new variables to 1 for -O1
3366 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
3367
3368 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3369
3370 * i386.c (dbx64_register_map): Fix typo.
3371
3372 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3373
3374 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
3375 real_one_half, real_bb_freq_max): New static variables.
3376 (debug_profile_bbauxs): Kill.
3377 (process_note_predictions): Kill unused variable.
3378 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
3379 volatile double.
3380 (propagate_freq): Use REAL_ARITHMETICS.
3381 (estimate_bb_frequencies): Likevise; init new static variables.
3382 * Makefile.in (predict.o): Add dependency on real.h
3383
3384 2002-04-28 David S. Miller <davem@redhat.com>
3385
3386 PR target/6500
3387 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
3388 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
3389 several {reads,writes} instead.
3390 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
3391 Define.
3392
3393 2002-04-27 David S. Miller <davem@redhat.com>
3394
3395 PR target/6494
3396 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
3397 of the stack bias.
3398
3399 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
3400 including signal.h and sys/ucontext.h, not needed.
3401
3402 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
3403
3404 * varasm.c (output_constant_def): Correct test for not calling
3405 ENCODE_SECTION_INFO for INTEGER_CST.
3406
3407 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
3408
3409 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
3410 keep most cases as function eval_token.
3411 (eval_token): New function.
3412 (_cpp_parse_expr): Read token here for improved diagnostics.
3413 Don't use op_as_text. Detect bad ':' here.
3414 (reduce): Don't detect bad ':' here.
3415 (op_as_text): Remove.
3416 * cpphash.h (_cpp_test_assertion): Change prototype.
3417 * cpplib.c (_cpp_test_assertion): Change prototype.
3418
3419 2002-04-28 Richard Henderson <rth@redhat.com>
3420
3421 PR c/5154
3422 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
3423 (ggc_mark_rtx_children): New.
3424
3425 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3426
3427 PR target/6496
3428 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
3429 after call peepholes for UltraSPARC.
3430 (call + jump 64-bit peepholes): Remove.
3431
3432 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3433
3434 PR c/6497
3435 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
3436 result as temporary value.
3437
3438 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3439
3440 PR c++/6396
3441 * toplev.c (rest_of_compilation): Only run regrename and copy
3442 propagation if optimizing.
3443
3444 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3445
3446 PR optimization/6475
3447 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
3448 register of REGNO_DECL (i).
3449 * Makefile.in (reload1.o): Add $(TREE_H).
3450
3451 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
3452
3453 * cppexp.c (lex): Update to use state.skip_eval.
3454 (struct op): Remove prio and flags members.
3455 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3456 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3457 (LEFT_ASSOC): New macro.
3458 (optab): New table of operator priorities and flags.
3459 (SHIFT): Update.
3460 (_cpp_parse_expr): Clean up logic. Return bool. Use a
3461 malloc-ed parser stack.
3462 (reduce): New; reduce the operator stack.
3463 (_cpp_expand_op_stack): Expand the operator stack as necessary.
3464 * cpphash.h (struct op): Predeclare.
3465 (struct cpp_reader): New members op_stack, op_limit.
3466 (struct lexer_state): New member skip_eval.
3467 (_cpp_parse_expr): Update.
3468 (_cpp_expand_op_stack): New.
3469 * cpplib.c (do_if): Update.
3470 * cppinit.c (cpp_create_reader): Create op stack.
3471 (cpp_destroy): And destroy it.
3472 * cpplib.h (CPP_LAST_CPP_OP): Correct.
3473 (TTYPE_TABLE): Correct.
3474
3475 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3476
3477 PR c/6343
3478 * c-decl.c (duplicate_decls): Call merge_weak.
3479 * c-pragma.c (apply_pragma_weak): Warn about misuse.
3480 * output.h (merge_weak): Prototype merge_weak.
3481 * varasm.c (merge_weak): New function.
3482 (declare_weak): Make sure we don't give an error on VAR_DECLs.
3483 Mark RTL with SYMBOL_REF_WEAK.
3484
3485 2002-04-27 Kurt Garloff <garloff@suse.de>
3486
3487 * tree-inline.c (inlinable_function_p): Improve heuristics
3488 by using a smoother function to cut down allowable inlinable size.
3489 * param.def: Add parameters max-inline-insns-single,
3490 max-inline-slope, min-inline-insns that determine the exact
3491 shape of the above function.
3492 * param.h: Likewise.
3493
3494 2002-04-26 Richard Henderson <rth@redhat.com>
3495
3496 * c-parse.in (malloced_yyss, malloced_yyvs): New.
3497 (yyoverflow): Re-add. Set them.
3498 (free_parser_stacks): New.
3499 * c-common.h: Declare it.
3500 * c-lex.c (c_common_parse_file): Call it.
3501
3502 2002-04-26 Richard Henderson <rth@redhat.com>
3503
3504 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3505 for fallthru search.
3506
3507 2002-04-26 Eric Christopher <echristo@redhat.com>
3508
3509 PR optimization/3700
3510 * config/mips/mips.c (mips_issue_rate): Define. New function.
3511 (TARGET_SCHED_ISSUE_RATE): Use.
3512
3513 2002-04-25 David S. Miller <davem@redhat.com>
3514
3515 PR target/6422
3516 * reorg.c (optimize_skip): Do not allow exception causing
3517 instructions to be considered for delay slots.
3518 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3519 (relax_delay_slots): Do not try to consider exception causing
3520 instructions as redundant.
3521
3522 2002-04-26 Richard Henderson <rth@redhat.com>
3523
3524 PR c/5225
3525 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3526
3527 2002-04-26 Mark Mitchell <mark@codesourcery.com>
3528
3529 PR bootstrap/6445
3530 * config/i386/i386.md (untyped_call): Return the value in a float
3531 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3532 TARGET_80387.
3533
3534 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
3535
3536 * tree.c (tree_int_cst_lt): Compare constants whose types differ
3537 in unsigned-ness correctly.
3538
3539 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3540
3541 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3542 portable runtime model.
3543
3544 2002-04-26 Richard Henderson <rth@redhat.com>
3545
3546 * c-parse.in (yyoverflow): Revert.
3547
3548 2002-04-26 David Edelsohn <edelsohn@gnu.org>
3549 Richard Henderson <rth@redhat.com>
3550
3551 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3552 result as temporary value.
3553
3554 2002-04-26 Richard Henderson <rth@redhat.com>
3555
3556 PR c/3581
3557 * c-common.c (fix_string_type): Split out of ...
3558 (combine_strings): ... here. Take a varray, not a tree list.
3559 (c_expand_builtin_printf): Use fix_string_type.
3560 * c-common.h: Update decls.
3561 * c-parse.in (string): Remove. Update all uses to use STRING
3562 instead, and not call combine_strings.
3563 (yylexstring): New.
3564 (_yylex): Use it.
3565 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3566 (build_asm_stmt): Likewise.
3567 * objc/objc-act.c (my_build_string): Use fix_string_type.
3568 (build_objc_string_object): Build varray for combine_strings.
3569
3570 2002-04-26 Bo Thorsen <bo@suse.co.uk>
3571
3572 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3573 x86-64.
3574
3575 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
3576
3577 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3578 (HAVE_NO_R_OPERAND): Remove.
3579 (HAVE_VALUE): Remove.
3580 (op_to_prio): Update.
3581 (UNARY): Don't alter flags.
3582 (_cpp_parse_expr): want_value used to indicate whether
3583 a number or unary operator is expected next. Distinguish
3584 unary and binary +/-.
3585 (op_as_text): Update for unary operators.
3586
3587 2002-04-25 Richard Henderson <rth@redhat.com>
3588
3589 PR c/2161
3590 * c-parse.in (yyoverflow): New.
3591
3592 2002-04-25 Richard Henderson <rth@redhat.com>
3593
3594 PR c/2098
3595 * c-common.c (shorten_compare): Simplfy conditions leading to
3596 the generation of a warning.
3597
3598 2002-04-25 Richard Henderson <rth@redhat.com>
3599
3600 PR c/2035
3601 * expmed.c (extract_bit_field): Fall through to generic code rather
3602 than aborting on subreg special case.
3603
3604 2002-04-25 David S. Miller <davem@redhat.com>
3605
3606 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3607 for DECL being NULL.
3608
3609 2002-04-25 Steve Christiansen <smc@us.ibm.com>
3610
3611 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3612
3613 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
3614
3615 * c-decl.c (grokdeclarator): Remove outdated ??? note
3616 on invalid declaration of flexible array members.
3617
3618 2002-04-25 Richard Henderson <rth@redhat.com>
3619
3620 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3621
3622 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3623
3624 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3625 needed by the compiler, even if they are used as global regs.
3626
3627 2002-04-25 Matt Hiller <hiller@redhat.com>
3628
3629 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3630 functions.
3631 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3632 of the corresponding functions.
3633 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3634 New prototypes.
3635
3636 2002-04-25 Matt Hiller <hiller@redhat.com>
3637
3638 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3639
3640 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3641 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3642 registers, adjust comment accordingly.
3643 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3644 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3645 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3646 for coprocessor registers.
3647 (ADDITIONAL_REGISTER_NAMES): Include
3648 ALL_COP_ADDITIONAL_REGISTER_NAMES.
3649
3650 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3651 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3652 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3653 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3654 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3655
3656 (mips_char_to_class): Adjust comment to include coprocessor
3657 constraint letters.
3658
3659 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3660 New functions.
3661 (mips_reg_names, mips_regno_to_class): Include coprocessor
3662 information.
3663 (mips_sw_reg_names): Ditto, make non-static.
3664 (mips_move_1word): Handle moves to and from coprocessor registers.
3665 (mips_move_2words): Handle moves to and from coprocessor
3666 registers.
3667 (mips_class_max_nregs, mips_register_move_cost): Handle
3668 coprocessor register classes.
3669 (override_options): Initialize mips_char_to_class and
3670 mips_hard_regno_mode_ok properly for coprocessor registers.
3671
3672 * config/mips/mips.md (movdi_internal, movdi_internal2,
3673 movsi_internal1, movsi_internal2): Add constraint-sets for
3674 coprocessor registers.
3675 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3676 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3677 isn't mips.
3678 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3679 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3680 isn't mips.
3681 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3682 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3683 isn't mips.
3684 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3685 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3686 isn't mips.
3687
3688 * doc/tm.texi: Document feature.
3689
3690 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3691
3692 * integrate.c (function_attribute_inlinable_p): Simplify.
3693 Check the table pointer is not NULL.
3694
3695 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
3696
3697 * doc/c-tree.texi: Fix typo in introduction.
3698
3699 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3700
3701 * c-common.h (c_common_parse_file): Update.
3702 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3703 * c-lex.c (YYDEBUG): Get from c-lex.h.
3704 (c_common_parse_file): Update.
3705 * c-lex.h (YYDEBUG, yydebug): New.
3706 * c-parse.in (YYDEBUG): Get from c-lex.h.
3707 (c_set_yydebug): Remove.
3708 * c-tree.h (c_set_yydebug): Remove.
3709 * langhooks-def.h (lhd_do_nothing_i): New.
3710 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3711 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3712 * langhooks.c (lhd_do_nothing_i): New.
3713 (lhd_set_yydebug): Remove.
3714 * langhooks.h (struct lang_hooks): Update.
3715 * toplev.c (set_yydebug): New.
3716 (compile_file): Update call to parse_file hook.
3717 (decode_d_option): Update.
3718 objc:
3719 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3720
3721 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
3722
3723 * loop.c (load_mems): Don't change the interface of called functions.
3724
3725 * calls.c (expand_call): Take current_function_pretend_args_size
3726 into account when setting argblock for sibcalls.
3727
3728 2002-04-24 Matt Hiller <hiller@redhat.com>
3729
3730 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3731 * c-lex.c: Ditto.
3732
3733 * cpplex.c (skip_line_comment): Process comment one multibyte
3734 character at a time rather than one char at a time, if
3735 appropriate.
3736 (parse_string): Process string one multibyte character at a time
3737 rather than one char at a time, if appropriate.
3738 * c-lex.c (lex_string): Lex and copy multibyte strings
3739 appropriately.
3740 * cpplib.h (cppchar_t): Change to unsigned.
3741
3742 2002-04-24 Richard Henderson <rth@redhat.com>
3743
3744 PR c/3467
3745 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3746 for c99.
3747
3748 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
3749
3750 * sh.c (sh_va_arg): If argument was passed by reference,
3751 dereference the pointer.
3752
3753 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3754
3755 * sh.md (divsi3_i4_media): Use match_operand for input values
3756 rather than hard registers.
3757 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3758 unnecessarily through hard registers. Keep copies of pseudo
3759 registers outside of the libcall sequence.
3760
3761 * sh.md (casesi_shift_media): Add modes.
3762
3763 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3764 values in memory.
3765
3766 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
3767
3768 * attribs.c (c_common_attribute_table): Move table and handlers
3769 to c-common.c.
3770 (format_attribute_table, lang_attribute_table,
3771 lang_attribute_common): Remove.
3772 (init_attributes): Replace NULL pointers with pointers to the
3773 empty table.
3774 (handle_packed_attribute, handle_nocommon_attribute,
3775 handle_common_attribute, handle_noreturn_attribute,
3776 handle_noinline_attribute, handle_always_inline_attribute,
3777 handle_used_attribute, handle_unused_attribute,
3778 handle_const_attribute, handle_transparent_union_attribute,
3779 handle_constructor_attribute, handle_destructor_attribute,
3780 handle_mode_attribute, handle_section_attribute,
3781 handle_aligned_attribute, handle_weak_attribute,
3782 handle_alias_attribute, handle_visibility_attribute,
3783 handle_no_instrument_function_attribute, handle_malloc_attribute,
3784 handle_no_limit_stack_attribute, handle_pure_attribute,
3785 handle_deprecated_attribute, handle_vector_size_attribute,
3786 vector_size_helper): Move to c-common.c.
3787 * c-common.c (c_common_attribute_table,
3788 handle_packed_attribute, handle_nocommon_attribute,
3789 handle_common_attribute, handle_noreturn_attribute,
3790 handle_noinline_attribute, handle_always_inline_attribute,
3791 handle_used_attribute, handle_unused_attribute,
3792 handle_const_attribute, handle_transparent_union_attribute,
3793 handle_constructor_attribute, handle_destructor_attribute,
3794 handle_mode_attribute, handle_section_attribute,
3795 handle_aligned_attribute, handle_weak_attribute,
3796 handle_alias_attribute, handle_visibility_attribute,
3797 handle_no_instrument_function_attribute, handle_malloc_attribute,
3798 handle_no_limit_stack_attribute, handle_pure_attribute,
3799 handle_deprecated_attribute, handle_vector_size_attribute,
3800 vector_size_helper): Move from attribs.c.
3801 * c-common.h (c_common_attribute_table,
3802 c_common_format_attribute_table): New.
3803 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3804 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3805 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3806 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3807 (LANG_HOOKS_INITIALIZER): Update.
3808 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3809 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3810 * target.h: Update comment.
3811 * tree.c (default_target_attribute_table): Remove.
3812 * tree.h (default_target_attribute_table, format_attribute_table,
3813 lang_attribute_table, lang_attribute_common): Remove.
3814 objc:
3815 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3816 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3817
3818 2002-04-24 Jason Merrill <jason@redhat.com>
3819
3820 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3821 * dwarf2out.c (dwarf_attr_name): Support it.
3822 (gen_array_type_die): Emit it.
3823 (lookup_type_die): No special handling for VECTOR_TYPE.
3824 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3825
3826 2002-04-24 Richard Henderson <rth@redhat.com>
3827
3828 * config/mips/mips.md (movdi_usd): Renumber.
3829
3830 2002-04-24 David S. Miller <davem@redhat.com>
3831
3832 PR target/6420
3833 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3834 32-bit Sparc and current_function_returns_struct is true.
3835
3836 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3837
3838 * loop.c (canonicalize_condition): Use gen_int_mode.
3839
3840 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
3841
3842 * config/rs6000/altivec.h: Cleanup file. Add non individual
3843 variants.
3844 (vec_vaddubm): New.
3845 (vec_vadduhm): New.
3846 (vec_vadduwm): New.
3847 (vec_vaddfp): New.
3848 (vec_vaddcuw): New.
3849 (vec_vaddubs): New.
3850 (vec_vaddsbs): New.
3851 (vec_vadduhs): New.
3852 (vec_vadduws): New.
3853 (vec_vaddsws): New.
3854 (vec_vand): New.
3855 (vec_vandc): New.
3856 (vec_vavgub): New.
3857 (vec_vavgsb): New.
3858 (vec_vavguh): New.
3859 (vec_vavgsh): New.
3860 (vec_vavguw): New.
3861 (vec_vavgsw): New.
3862 (vec_vrfip): New.
3863 (vec_vcmpbfp): New.
3864 (vec_vcmpequb): New.
3865 (vec_vcmpequh): New.
3866 (vec_vcmpequw): New.
3867 (vec_vcmpeqfp): New.
3868 (vec_vcmpgefp): New.
3869 (vec_vcmpgtub): New.
3870 (vec_vcmpgtsb): New.
3871 (vec_vcmpgtuh): New.
3872 (vec_vcmpgtsh): New.
3873 (vec_vcmpgtuw): New.
3874 (vec_vcmpgtsw): New.
3875 (vec_vcmpgtfp): New.
3876 (vec_vcmpgefp): New.
3877 (vec_vcfux): New.
3878 (vec_vcfsx): New.
3879 (vec_vctsxs): New.
3880 (vec_vctuxs): New.
3881 (vec_vexptefp): New.
3882 (vec_vrfim): New.
3883 (vec_lvx): New.
3884 (vec_lvebx): New.
3885 (vec_lvehx): New.
3886 (vec_lde): Add vector float variant.
3887 (vec_lvewx): New.
3888 (vec_lvxl): New.
3889 (vec_vlogefp): New.
3890 (vec_vmaddfp): New.
3891 (vec_vmhaddshs): New.
3892 (vec_vmaxub): New.
3893 (vec_vmaxsb): New.
3894 (vec_vmaxuh): New.
3895 (vec_vmaxsh): New.
3896 (vec_vmaxuw): New.
3897 (vec_vmaxsw): New.
3898 (vec_vmaxsw): New.
3899 (vec_vmaxfp): New.
3900 (vec_vmrghb): New.
3901 (vec_vmrghh): New.
3902 (vec_vmrghw): New.
3903 (vec_vmrglb): New.
3904 (vec_vmrglh): New.
3905 (vec_vmrglw): New.
3906 (vec_vminub): New.
3907 (vec_vminsb): New.
3908 (vec_vminuh): New.
3909 (vec_vminsh): New.
3910 (vec_vminuw): New.
3911 (vec_vminsw): New.
3912 (vec_vminfp): New.
3913 (vec_vmladduhm): New.
3914 (vec_vmhraddshs): New.
3915 (vec_msumubm): New.
3916 (vec_vmsummbm): New.
3917 (vec_vmsumuhm): New.
3918 (vec_vmsumshm): New.
3919 (vec_vmsumuhs): New.
3920 (vec_vmsumshs): New.
3921 (vec_vmuleub): New.
3922 (vec_vmulesb): New.
3923 (vec_vmuleuh): New.
3924 (vec_vmulesh): New.
3925 (vec_vmuloub): New.
3926 (vec_mulosb): New.
3927 (vec_vmulouh): New.
3928 (vec_vmulosh): New.
3929 (vec_vnmsubfp): New.
3930 (vec_vnor): New.
3931 (vec_vor): New.
3932 (vec_vpkuhum): New.
3933 (vec_vpkuwum): New.
3934 (vec_vpkpx): New.
3935 (vec_vpkuhus): New.
3936 (vec_vpkshss): New.
3937 (vec_vpkuwus): New.
3938 (vec_vpkswss): New.
3939 (vec_vpkshus): New.
3940 (vec_vpkswus): New.
3941 (vec_vperm): New.
3942 (vec_vrefp): New.
3943 (vec_vrlb): New.
3944 (vec_vrlh): New.
3945 (vec_vrlw): New.
3946 (vec_vrfin): New.
3947 (vec_vrsqrtefp): New.
3948 (vec_vsel): New.
3949 (vec_vslb): New.
3950 (vec_vslh): New.
3951 (vec_vslw): New.
3952 (vec_vsldoi): New.
3953 (vec_vsl): New.
3954 (vec_vslo): New.
3955 (vec_vspltb): New.
3956 (vec_vsplth): New.
3957 (vec_vspltw): New.
3958 (vec_vspltisb): New.
3959 (vec_vspltish): New.
3960 (vec_vspltisw): New.
3961 (vec_vsrb): New.
3962 (vec_vsrh): New.
3963 (vec_vsrw): New.
3964 (vec_vsrab): New.
3965 (vec_vsrah): New.
3966 (vec_vsraw): New.
3967 (vec_vsr): New.
3968 (vec_vsro): New.
3969 (vec_stvx): New.
3970 (vec_stvebx): New.
3971 (vec_stvehx): New.
3972 (vec_stvewx): New.
3973 (vec_stvxl): New.
3974 (vec_vsububm): New.
3975 (vec_vsubuhm): New.
3976 (vec_vsubuwm): New.
3977 (vec_vsubfp): New.
3978 (vec_vsubcuw): New.
3979 (vec_vsububs): New.
3980 (vec_vsubsbs): New.
3981 (vec_vsubuhs): New.
3982 (vec_vsubshs): New.
3983 (vec_vsubuws): New.
3984 (vec_vsubsws): New.
3985 (vec_vsum4ubs): New.
3986 (vec_vsum4sbs): New.
3987 (vec_vsum4shs): New.
3988 (vec_vsum2sws): New.
3989 (vec_vsumsws): New.
3990 (vec_vrfiz): New.
3991 (vec_vupkhsb): New.
3992 (vec_vupkhpx): New.
3993 (vec_vupkhsh): New.
3994 (vec_vupklsb): New.
3995 (vec_vupklpx): New.
3996 (vec_vupklsh): New.
3997 (vec_vxor): New.
3998
3999 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
4000
4001 PR c/5430
4002 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
4003 added literals from substracted literals.
4004 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
4005 (fold) [associate]: Preserve MINUS_EXPR if needed.
4006
4007 2002-04-23 Zack Weinberg <zack@codesourcery.com>
4008
4009 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
4010 are obsoleted.
4011
4012 2002-04-23 Tom Tromey <tromey@redhat.com>
4013
4014 * gcc.c: Added --resource. For PR java/6314.
4015
4016 2002-04-23 David O'Brien <obrien@FreeBSD.org>
4017
4018 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
4019 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
4020 these libraries.
4021
4022 2002-04-23 David O'Brien <obrien@FreeBSD.org>
4023
4024 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
4025
4026 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
4027
4028 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
4029 workaround.
4030 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
4031 (ix86_expand_clrstr): Fix typo.
4032 * loop.c (gen_load_of_final_value): New.
4033 (loop_givs_rescan, strength_reduce, check_dbra_loop):
4034 Use it.
4035
4036 2002-04-23 Roger Sayle <roger@eyesopen.com>
4037
4038 * builtins.c (builtin_memset_gen_str): New function.
4039 (expand_builtin_memset): Optimize the case of constant length, but
4040 unknown value.
4041
4042 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
4043
4044 * config/rs6000/altivec.h (vec_step): Remove extraneous
4045 parentheses.
4046 (vec_ctu): Cast return.
4047
4048 2002-04-23 Alan Modra <amodra@bigpond.net.au>
4049
4050 PR target/6413
4051 * function.h: (struct function): Add profile_label_no field.
4052 (current_function_profile_label_no): Define.
4053 * function.c: (profile_label_no): New static var.
4054 (expand_function_start): Increment it, and copy to
4055 current_function_profile_label_no.
4056 * output.h (profile_label_no): Delete.
4057 * final.c (profile_label_no): Delete.
4058 (profile_function): Use current_function_profile_label_no.
4059 (final_end_function): Don't increment profile_label_no here.
4060 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
4061 profile_label_no with current_function_profile_label_no.
4062 * config/pa/pa.c (current_function_number): Delete.
4063 (pa_output_function_prologue): Don't output profile label here.
4064 (hppa_profile_hook): Use label_no param rather than
4065 current_function_number.
4066 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
4067 * config/pa/pa.h: .. here.
4068 (FUNCTION_PROFILER): Output profile label here.
4069
4070 2002-04-22 Eric Christopher <echristo@redhat.com>
4071
4072 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
4073 patch of 2002-04-09 due to binutils issues.
4074 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
4075
4076 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
4077
4078 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
4079 constraint to 'o' for m=r and r=m alternatives.
4080 ("*movv8hi_internal1"): Same.
4081 ("*movv16qi_internal1"): Same.
4082 ("*movv4sf_internal1"): Same.
4083
4084 2002-04-22 Janis Johnson <janis187@us.ibm.com>
4085
4086 * rtl.h (RTX_FLAG): New macro.
4087 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
4088 * final.c (alter_subreg): Use macro to access rtx flag.
4089 * integrate.c (copy_rtx_and_substitute): Use new access macro.
4090 * print-rtl.c (print_rtx): Use new access macro.
4091
4092 * cse.c (insert): Check rtx code before accessing flag.
4093
4094 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
4095 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
4096 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
4097 convert_const_symbol_ref, make_canonical, make_alternative_compare,
4098 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
4099 simplify_test_exp, optimize_attrs, simplify_by_exploding,
4100 find_and_mark_used_attributes, unmark_used_attributes,
4101 add_values_to_cover, simplify_with_current_value,
4102 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
4103 copy_rtx_unchanging, main): Use new access macros.
4104
4105 2002-04-22 Tom Rix <trix@redhat.com>
4106
4107 * expmed.c (init_expmed): Generate shifted constant once.
4108
4109 2002-04-22 Zack Weinberg <zack@codesourcery.com>
4110
4111 * c-lex.c (lex_charconst): Call convert to get constant in
4112 proper type; don't just smash the type field.
4113 Fixes PR c/6300.
4114
4115 * config.gcc: Add list of obsolete configurations. Disallow
4116 building these without --enable-obsolete.
4117 * doc/install.texi: Document --enable-obsolete and obsoletion
4118 policy. Mention obsoletion of individual targets in
4119 appropriate places.
4120
4121 2002-04-22 Richard Henderson <rth@redhat.com>
4122
4123 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
4124
4125 2002-04-22 Mark Mitchell <mark@codesourcery.com>
4126
4127 PR f/6138.
4128 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
4129 (walk_fixup_memory_subreg): Likewise.
4130 (fixup_var_refs_insn): Adjust accordingly.
4131 (fixup_var_refs_1): Likewise.
4132
4133 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
4134
4135 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
4136 LIBPATH_ARCH64_SPEC): Define.
4137 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
4138 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
4139 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
4140 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
4141
4142 2002-04-22 Joel Sherrill <joel@OARcorp.com>
4143
4144 * gthr-rtems.h: Correct prototypes to remove warnings.
4145
4146 2002-04-22 Richard Henderson <rth@redhat.com>
4147
4148 PR c/6344
4149 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
4150
4151 * gcse.c (free_insn_expr_list_list): New.
4152 (clear_modify_mem_tables): Use it. Fix bit set usage.
4153 (canon_list_insert): Use EXPR_LISTs for expressions.
4154 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
4155
4156 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
4157
4158 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
4159 file change and include code to _cpp_pop_buffer.
4160 * cpphash.h (struct pending_option): Predeclare.
4161 (struct cpp_reader): New member next_include_file.
4162 (_cpp_pop_file_buffer): Update.
4163 (_cpp_push_next_buffer): Update, rename.
4164 * cppinit.c (cpp_destroy): Free include chain and pending here.
4165 (cpp_finish_options): Simplify.
4166 (_cpp_push_next_buffer): Rename and clean up.
4167 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
4168 Clarify.
4169 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
4170
4171 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
4172
4173 * config/rs6000/altivec.h (vec_xor): Add variant for both args
4174 being vector signed int.
4175 (vec_andc): Same.
4176 (vec_xor): Add variant for both args being vector signed char.
4177 Remove redundant variant.
4178 (vec_andc): Same.
4179
4180 2002-04-21 David S. Miller <davem@redhat.com>
4181
4182 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
4183 compare mode in output RTL.
4184
4185 2002-04-22 David Edelsohn <edelsohn@gnu.org>
4186
4187 * config/rs6000/rs6000.c (rs6000_override_options): Correct
4188 style and formatting of previous patch.
4189
4190 2002-04-22 Alan Modra <amodra@bigpond.net.au>
4191
4192 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
4193 flag_pic for ABI_AIX.
4194
4195 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
4196
4197 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
4198 * cppfiles.c (read_include_file): Similarly.
4199 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
4200 uxstrdup ustrchr, ufputs): Similarly.
4201 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
4202 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
4203 cpp_ideq, parse_identifier, parse_number): Similarly.
4204 * cpplib.c (struct directive, dequote_string, D, run_directive,
4205 cpp_push_buffer): Similarly.
4206 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
4207 _cpp_create_definition, check_trad_stringification,
4208 cpp_macro_definition): Similarly.
4209
4210 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
4211
4212 * cppmacro.c (funlike_invocation_p): Don't step back
4213 over CPP_EOF.
4214
4215 2002-04-21 David Edelsohn <edelsohn@gnu.org>
4216
4217 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
4218 labelno.
4219
4220 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
4221
4222 * doc/invoke.texi: Remove Chill references.
4223 * doc/gcc.texi: Update last modified date.
4224
4225 2002-04-20 Kazu Hirata <kazu@hxi.com>
4226
4227 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
4228 push and pop. Replace add.l with add.w.
4229
4230 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4231
4232 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
4233 multiply instructions for H8/300H case.
4234
4235 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4236
4237 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
4238 Bum three instructions from each routine.
4239
4240 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
4241
4242 * Makefile.in: Update.
4243 * decl.c (push_c_function_context, pop_c_function_context,
4244 mark_c_function_context): Rename for consistency.
4245 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
4246 * c-tree.h (push_c_function_context, pop_c_function_context,
4247 mark_c_function_context): Rename for consistency.
4248 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4249 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4250 * function.c (init_lang_status, save_lang_status,
4251 restore_lang_status, mark_lang_status, free_lang_status):
4252 Move to langhooks.h.
4253 (push_function_context_to, pop_function_context_from,
4254 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
4255 Update.
4256 * function.h (init_lang_status, save_lang_status,
4257 restore_lang_status, mark_lang_status, free_lang_status):
4258 Move to langhooks.h.
4259 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
4260 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
4261 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
4262 LANG_HOOKS_FUNCTION_INITIALIZER): New.
4263 (LANG_HOOKS_INITIALIZER): Update.
4264 (lhd_do_nothing_f): New.
4265 * langhooks.h (struct lang_hooks_for_functions): New.
4266 (struct lang_hooks): New hooks.
4267 * langhooks.c (lhd_do_nothing_f): New.
4268 objc:
4269 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4270 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4271
4272 2002-04-19 David S. Miller <davem@redhat.com>
4273
4274 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
4275 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
4276
4277 2002-04-19 Jakub Jelinek <jakub@redhat.com>
4278
4279 PR optimization/3756
4280 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
4281 x = ((int) y < 0) ? cst1 : cst2.
4282
4283 2002-04-19 Jakub Jelinek <jakub@redhat.com>
4284
4285 PR c/6358
4286 * function.c: Reapply patch for c/6358.
4287 (expand_function_end): Copy decl_rtl's mode, not
4288 current_function_return_rtx mode.
4289
4290 2002-04-19 Joel Sherrill <joel@OARcorp.com>
4291
4292 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
4293 targets.
4294
4295 2002-04-19 Tom Tromey <tromey@redhat.com>
4296
4297 * doc/install.texi (Specific): Update status of Solaris 2.8.
4298 For PR libgcj/6158.
4299
4300 2002-04-19 Andreas Schwab <schwab@suse.de>
4301
4302 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
4303 (PUT_REAL): Restore old definition.
4304
4305 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
4306 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4307
4308 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
4309 binutils 2.11.2 and higher generate smaller binaries than Sun's
4310 native tools.
4311
4312 2002-04-19 Mark Mitchell <mark@codesourcery.com>
4313
4314 PR c++/6352
4315 * toplev.c (rest_of_compilation): Do not defer functions for which
4316 TREE_SYMBOL_REFERENCED has already been set.
4317
4318 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
4319
4320 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
4321 alternative.
4322
4323 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
4324
4325 * builtins.c: Include langhooks.h.
4326 (lang_type_promotes_to): Remove.
4327 (expand_builtin_va_arg): Use new hook.
4328 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
4329 (simple_type_promotes_to): Move to c-typeck.c.
4330 * c-common.h (simple_type_promotes_to): Remove.
4331 * c-decl.c (duplicate_decls, grokdeclarator): Update.
4332 * c-format.c: Include langhooks.h.
4333 (check_format_types): Update.
4334 * c-tree.h (c_type_promotes_to): New.
4335 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
4336 (type_lists_compatible_p): Update.
4337 * langhooks-def.h (lhd_type_promotes_to): New.
4338 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
4339 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4340 * langhooks.c (lhd_type_promotes_to): New.
4341 * langhooks.h (struct lang_hooks_for_types): New hook.
4342 * tree.h (lang_type_promotes_to): Remove.
4343 objc:
4344 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4345
4346 2002-04-18 Richard Henderson <rth@redhat.com>
4347
4348 * function.c: Revert patch for c/6358.
4349
4350 2002-04-18 Richard Henderson <rth@redhat.com>
4351
4352 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
4353 blocks. Handle multiple references to the TRAP block. Handle
4354 non-adjacent THEN and OTHER blocks.
4355
4356 2002-04-18 Richard Henderson <rth@redhat.com>
4357
4358 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
4359 crash with no type for by-mode libcalls.
4360
4361 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
4362
4363 2002-04-18 Bob Wilson <bob.wilson@acm.org>
4364
4365 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
4366 __xtensa_nonlocal_goto): Use a syscall instructions to flush
4367 the register windows.
4368
4369 2002-04-18 Zack Weinberg <zack@codesourcery.com>
4370
4371 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
4372 appropriate. Document need for extended precision even when
4373 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
4374 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
4375 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
4376 instead of relying on later syntax error when REAL_WIDTH > 5.
4377 * real.c: Define NE based only on whether or not we have a
4378 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
4379 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
4380 define GET_REAL and PUT_REAL as simple memcpy operations; no
4381 need to byteswap or round.
4382 Use #error instead of #ifdef-ing out the entire file, for
4383 prompt error detection.
4384
4385 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
4386
4387 2002-04-18 David S. Miller <davem@redhat.com>
4388
4389 * config/sparc/sparc.h (BRANCH_COST): Define.
4390
4391 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
4392 does it.
4393
4394 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
4395
4396 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
4397 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
4398 propagate_block calls after relaxation loop using new variable
4399 stabilized_prop_flags.
4400
4401 2002-04-18 Richard Henderson <rth@redhat.com>
4402
4403 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
4404 (ia64_va_arg): Expect variable sized types by reference.
4405 * config/ia64/ia64-protos.h: Update.
4406 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
4407 ia64_function_arg_pass_by_reference.
4408
4409 2002-04-18 Richard Henderson <rth@redhat.com>
4410
4411 * ifcvt.c: Include except.h.
4412 (block_has_only_trap): Break out from find_cond_trap.
4413 (find_cond_trap): Use it. Always delete the trap block.
4414 (merge_if_block): Allow then block null. Be less simplistic about
4415 what insns can end a block.
4416 * Makefile.in (ifcvt.o): Depend on except.h.
4417
4418 * config/ia64/ia64.md (trap, conditional_trap): New.
4419
4420 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4421
4422 PR c/6358
4423 * function.c (assign_parms): Assign hard current_function_return_rtx
4424 register here...
4425 (expand_function_end): ...not here.
4426
4427 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
4428
4429 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4430 * c-tree.h (c_incomplete_type_error): New.
4431 * c-typeck.c (require_complete_type, build_component_ref): Update.
4432 (incomplete_type_error): Rename.
4433 * langhooks-def.h (lhd_incomplete_type_error): New.
4434 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
4435 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4436 * langhooks.c (lhd_incomplete_type_error): New.
4437 * langhooks.h (struct lang_hooks_for_types): New hook.
4438 * tree.c (size_in_bytes): Use new hook.
4439 * tree.h (incomplete_type_error): Remove.
4440 objc:
4441 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4442
4443 2002-04-18 Zack Weinberg <zack@codesourcery.com>
4444
4445 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
4446 TARGET_FLOAT_FORMAT blocks.
4447
4448 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4449
4450 * doc/install.texi (Downloading the source): Do not mention Chill
4451 any longer, but mention Ada.
4452 (Configuration): Do not mention Chill any longer.
4453
4454 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
4455
4456 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4457
4458 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
4459
4460 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4461 in last patch.
4462
4463 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4464
4465 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4466 instead of unsigned_type.
4467
4468 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4469
4470 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4471 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4472 later.
4473
4474 2002-04-18 Bernd Schmidt <bernds@redhat.com>
4475
4476 * attribs.c (vector_type_node_list): New static variable.
4477 (handle_vector_size_attribute): Use it to avoid generating a
4478 new type node each time we are called.
4479
4480 * combine.c (subst): Avoid trying to make a vector mode subreg of
4481 an integer constant.
4482 (gen_lowpart_for_combine): Likewise.
4483
4484 2002-04-18 Roger Sayle <roger@eyesopen.com>
4485 Jakub Jelinek <jakub@redhat.com>
4486
4487 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4488 for integer constant c (if x has unsigned type or sign bit is not
4489 set in c). This folds the zero/sign extension into the bit-wise and
4490 operation.
4491
4492 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4493
4494 PR middle-end/6205
4495 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4496 otherwise xorps.
4497
4498 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
4499
4500 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4501
4502 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
4503
4504 * gcc.c (read_specs): Detect and fail if an attempt is made to
4505 rename a spec string to an already existing string.
4506
4507 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4508
4509 * config/s390/s390.c (legitimize_pic_address): Do not generate
4510 illegal address constant without CONST.
4511
4512 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4513
4514 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4515 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4516
4517 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4518
4519 PR optimization/6305
4520 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4521 to make sure previous reloads are taken into account. Generate
4522 better code if one operand is an in-range immediate constant.
4523
4524 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
4525
4526 * doc/install.texi (Building): libgcj requires GNU make.
4527
4528 2002-04-17 Jakub Jelinek <jakub@redhat.com>
4529
4530 PR bootstrap/6315
4531 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4532 even if hard quad and register is not floating.
4533 (movtf reg<-mem split): Disallow splitting if hard quad and
4534 register is floating.
4535 (movtf mem<-reg split): Likewise.
4536 * config/sparc/sparc.c (fp_register_operand): New predicate.
4537 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4538
4539 2002-04-17 Zack Weinberg <zack@codesourcery.com>
4540
4541 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4542 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4543 (unprotoize.o): Ditto. Build from protoize.c. Define
4544 UNPROTOIZE on command line.
4545 * protoize.c: Include cppdefault.h. Delete include_defaults.
4546 (in_system_include_dir): Use cpp_include_defaults (defined in
4547 cppdefault.o).
4548 * unprotoize.c: Delete file.
4549
4550 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
4551
4552 * config/rs6000/altivec.h (vec_ld): Add array variants.
4553 (vec_lde): Same.
4554 (vec_ldl): Same.
4555
4556 2002-04-17 Alan Matsuoka <alanm@redhat.com>
4557 Aldy Hernandez <aldyh@redhat.com>
4558
4559 * config/rs6000/altivec.h: Define __ALTIVEC__.
4560 (bool): New.
4561 (__pixel): New.
4562 (pixel): New.
4563 (vec_cfux): New.
4564 (vec_vmaddfp): New.
4565 (vec_vsldoi): New.
4566 Add parentheses to all macro arguments.
4567
4568 2002-04-16 Richard Henderson <rth@redhat.com>
4569
4570 PR c++/6320
4571 * except.c (remove_eh_handler): Insert inner regions at beginning
4572 of sibling chain. Refactor expressions.
4573
4574 2002-04-16 Richard Henderson <rth@redhat.com>
4575
4576 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4577 * config/sparc/sol2-gas-bi.h: New file.
4578 * config.gcc (sparc*-solaris): Add it as needed.
4579 * configure.in (AS_SPARC64_FLAG): Remove check.
4580 * config.in, configure: Regenerate.
4581
4582 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4583
4584 2002-04-16 Richard Henderson <rth@redhat.com>
4585
4586 * config/mips/mips.c (override_options): Don't override N32 for
4587 a 64-bit ISA.
4588
4589 PR 6202
4590 * config/mips/mips.md (can_delay): Split out of existing define_delays.
4591 (HILO_delay): Set can_delay false.
4592
4593 2002-04-16 Dale Johannesen <dalej@apple.com>
4594
4595 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4596 instruction addresses.
4597 (rs6000_output_function_epilogue): Likewise.
4598
4599 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
4600
4601 * c-parse.in (poplevel, compstmt_start,
4602 compstmt_primary_start): Add ending ';', in accordance
4603 with POSIX.
4604
4605 2002-04-16 Richard Henderson <rth@redhat.com>
4606
4607 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4608 Adjust tm_file order to get TARGET_DEFAULT set properly.
4609 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4610 * doc/install.texi (sparc-solaris): Update.
4611
4612 2002-04-16 Dale Johannesen <dalej@apple.com>
4613
4614 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4615 comparison operands do not match each other or if modes of
4616 conditions do not match result.
4617
4618 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
4619
4620 PR target/6305
4621 * config/s390/s390.md (mulsidi3): Set both subregs of the
4622 multiword register.
4623
4624 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
4625
4626 * config/rs6000/altivec.h (vec_addc): Type check.
4627
4628 2002-04-16 Jakub Jelinek <jakub@redhat.com>
4629
4630 PR middle-end/6279
4631 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4632
4633 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4634
4635 2002-04-15 Richard Henderson <rth@redhat.com>
4636
4637 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4638 call_really_used_regs too.
4639
4640 2002-04-15 Richard Henderson <rth@redhat.com>
4641
4642 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4643
4644 2002-04-15 David S. Miller <davem@redhat.com>
4645
4646 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4647 as being CLOBBERed.
4648
4649 2002-04-16 Jakub Jelinek <jakub@redhat.com>
4650
4651 PR c/6290
4652 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4653 CONST_VECTOR is { 0, ... 0 }.
4654
4655 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
4656
4657 * doc/install.texi (Installing GCC: Configuration): Clarify
4658 the only supported ways to configure gcc.
4659
4660 2002-04-15 Roland McGrath <roland@frob.com>
4661
4662 * config.gcc (alpha*-*-gnu*): New target configuration.
4663 * config/alpha/gnu.h: New file for it.
4664 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4665
4666 2002-04-16 Mark Mitchell <mark@codesourcery.com>
4667
4668 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4669 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4670 * tree.h (expand_start_stmt_expr): Update prototype.
4671 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4672 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4673 on the STMT_EXPR created for the inline function.
4674
4675 2002-04-15 Richard Henderson <rth@redhat.com>
4676
4677 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4678 config/i386/linux-aout.h, config/i386/linux-oldld.h,
4679 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4680 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4681 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4682 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4683 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4684 Define __gnu_linux__, not gnu_linux.
4685 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4686
4687 2002-04-15 Mark Mitchell <mark@codesourcery.com>
4688
4689 Remove Chill front end.
4690 * gcc.c (default_compilers): Remove Chill entries.
4691 * ch: Remove directory.
4692 * doc/frontends.texi: Remove information about Chill.
4693 * doc/sourcebuild.texi: Likewise.
4694 * doc/standards.texi: Likewise.
4695
4696 2002-04-15 Douglas B Rupp <rupp@gnat.com>
4697
4698 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4699 (LONGLONG_STANDALONE): Define.
4700
4701 2002-04-15 David S. Miller <davem@redhat.com>
4702
4703 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4704 Call emit_library_call with LCT_NORMAL.
4705 (sparc_initialize_trampoline): Use LCT_foo instead of
4706 magic constant in emit_library_call invocations.
4707 (sparc64_initialize_trampoline): Likewise.
4708 (sparc_profile_hook): Likewise.
4709 * config/sparc/sparc.md: Likewise.
4710
4711 * config/sparc/sparc.c (sparc_extra_constraint_check):
4712 Fix type of argument 'c'.
4713 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4714 Likewise.
4715
4716 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4717
4718 * diagnostic.h (output_buffer_state): Redefine.
4719 (output_format_decoder): New macro.
4720 (output_prefixing_rule): Likewise.
4721 (output_line_cutoff): Likewise.
4722 (diagnostic_format_decoder): Adjust.
4723 (diagnostic_prefixing_rule): Likewise.
4724 (diagnostic_line_cutoff): Likewise.
4725 (diagnostic_state): Likewise.
4726 (diagnostic_kind_count): Likewise.
4727 (diagnostic_buffer): Now a macro.
4728
4729 * diagnostic.c (diagnostic_buffer): Remove definition.
4730 (output_is_line_wrapping): Adjust.
4731 (set_real_maximum_length): Likewise.
4732 (output_set_maximum_length): Likewise.
4733 (init_output_buffer): Likewise.
4734 (lhd_print_error_function): Likewise.
4735 (output_do_verbatim): Likewise.
4736
4737 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
4738
4739 * cpperror.c (print_location): Don't print include chain
4740 if line == 0.
4741 (cpp_begin_message): Update to use DL_ macros.
4742 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4743 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4744 cpp_notice, cpp_notice_from_errno): Remove.
4745 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4746 level.
4747 (cpp_errno): New.
4748 * cppexp.c (CPP_ICE): Remove.
4749 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4750 lex, integer_overflow, _cpp_parse_expr): Update.
4751 * cppfiles.c (read_include_file, find_include_file,
4752 handle_missing_header, _cpp_read_file, remap_filename): Update.
4753 * cpphash.h (enum error_type): Remove.
4754 (_cpp_begin_message): Update.
4755 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4756 cpp_handle_option, cpp_post_options): Update.
4757 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4758 skip_whitespace, parse_identifier, parse_slow, parse_string,
4759 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4760 cpp_interpret_charconst): Update.
4761 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4762 lex_macro_node, do_undef, glue_header_name, parse_include,
4763 do_include_common, read_flag, do_line, do_linemarker, do_ident,
4764 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4765 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4766 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4767 _cpp_pop_buffer, do_diagnostic): Update.
4768 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4769 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4770 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4771 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4772 cpp_notice, cpp_notice_from_errno): Remove.
4773 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4774 level.
4775 (cpp_errno): New.
4776 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4777 collect_args, enter_macro_context, save_parameter, parse_params,
4778 _cpp_create_definition, check_trad_stringification,
4779 cpp_macro_definition): Update.
4780 * cppmain.c (cpp_preprocess_file): Update.
4781 * fix-header.c (read_scan_file): Update.
4782
4783 2002-04-14 Andreas Schwab <schwab@suse.de>
4784
4785 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4786
4787 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4788
4789 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4790
4791 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4792
4793 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4794 not gnu_hurd.
4795
4796 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
4797
4798 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4799
4800 2002-04-13 Joel Sherrill <joel@OARcorp.com>
4801
4802 * config/sparc/t-elf: Enable v8 multilibs. Impacts
4803 sparc-elf and sparc-rtems targets.
4804
4805 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4806
4807 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4808 defined, and __gnu_hurd__ wherever __GNU__ is defined.
4809 * arm/linux-elf.h: Likewise.
4810 * cris/aout.h: Likewise.
4811 * cris/linux.h: Likewise.
4812 * i370/linux.h: Likewise.
4813 * i386/gnu.h: Likewise.
4814 * i386/linux-aout.h: Likewise.
4815 * i386/linux-oldld.h: Likewise.
4816 * i386/linux.h: Likewise.
4817 * i386/linux64.h: Likewise.
4818 * ia64/linux.h: Likewise.
4819 * m68k/linux-aout.h: Likewise.
4820 * m68k/linux.h: Likewise.
4821 * mips/linux.h: Likewise.
4822 * pa/pa-linux.h: Likewise.
4823 * pj/linux.h: Likewise.
4824 * rs6000/sysv4.h: Likewise.
4825 * s390/linux.h: Likewise.
4826 * sh/linux.h: Likewise.
4827 * sparc/linux-aout.h: Likewise.
4828 * sparc/linux.h: Likewise.
4829 * sparc/linux64.h: Likewise.
4830 * xtensa/linux.h: Likewise.
4831
4832 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
4833
4834 * stmt.c (check_unique_operand_names): Expect operand names to
4835 be strings rather than identifiers. Use simple_cst_equal to
4836 compare them.
4837 (resolve_operand_name_1): Make same identifier to string change here.
4838 * c-parse.in (asm_operand): Convert a named operand into a string.
4839 * cp/parse.y (asm_operand): Likewise.
4840
4841 2002-04-13 Andreas Schwab <schwab@suse.de>
4842
4843 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4844
4845 2002-04-12 Mark Mitchell <mark@codesourcery.com>
4846
4847 Revert these changes:
4848
4849 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4850
4851 PR c++/5571
4852 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4853
4854 2002-04-12 Richard Henderson <rth@redhat.com>
4855
4856 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4857 (sparc*-*-solaris): Clean up header files.
4858 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4859 and plan on generating 64-bit code.
4860 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4861 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4862 * config/sparc/sol2-sld-64.h: Rename ...
4863 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
4864 for AS_SPARC64_FLAG not defined.
4865 * config/sparc/sol2-gld-bi.h: New.
4866 * config/sparc/sol2-sld.h: Remove.
4867 * config/sparc/sol26-sld.h: New.
4868 * config/sparc/sol2.h: Tidy comments.
4869 * doc/install.texi: Document sparc-solaris configury changes.
4870
4871 2002-04-12 Richard Henderson <rth@redhat.com>
4872
4873 * recog.c (offsettable_address_p): Match the logic in adjust_address.
4874
4875 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4876 in 64-bit mode only. Use only for 32-bit or MEDLOW.
4877
4878 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4879
4880 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4881
4882 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
4883
4884 * pa.c (pa_can_combine_p): Call extract_insn before calling
4885 constrain_operands.
4886
4887 2002-04-12 Douglas B Rupp <rupp@gnat.com>
4888
4889 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4890 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4891 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4892 (CPP_PREDEFINES): Handle __declspec.
4893 * config/i386/t-interix (USER_H): Remove.
4894
4895 2002-04-12 DJ Delorie <dj@redhat.com>
4896
4897 * integrate.c (compare_blocks): Make comparisons safe for when
4898 sizeof(int) < sizeof(char *).
4899 (find_block): Likewise.
4900
4901 2002-04-12 Jan Hubicka <jh@suse.cz>
4902 David Edelsohn <edelsohn@gnu.org>
4903
4904 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4905 registers.
4906 (symbol_ref_operand): New.
4907 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4908 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4909
4910 2002-04-12 Andreas Schwab <schwab@suse.de>
4911
4912 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4913 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4914 overrides the definition in config/svr4.h.
4915
4916 2002-04-12 Eric Norum <eric.norum@usask.ca>
4917
4918 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4919 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4920 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4921 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4922 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4923 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4924 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4925 definitions to config/rtems.h and make the targets more similar.
4926
4927 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4928
4929 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4930 POINTERS_EXTEND_UNSIGNED.
4931 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4932 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4933
4934 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4935 not specified.
4936
4937 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
4938
4939 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4940 depends on TARGET_SHMEDIA, not TARGET_SH5.
4941
4942 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
4943
4944 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4945 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4946
4947 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4948
4949 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4950 no r0 clobber.
4951
4952 2002-04-12 Andreas Schwab <schwab@suse.de>
4953
4954 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4955
4956 2002-04-12 Richard Henderson <rth@redhat.com>
4957
4958 PR bootstrap/4191
4959 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4960
4961 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4962 modes spanning multiple hard regs.
4963
4964 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4965
4966 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4967
4968 * pa.c (pa_output_function_prologue): Don't accumulate the total
4969 number of code bytes when using TARGET_64BIT, or gas, SOM and not
4970 the portable runtime.
4971 (output_deferred_plabels): Handle 64bit plabels.
4972 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4973 generating pic code using the GAS assembler for object formats that
4974 are not SOM (ie., ELF32 and ELF64).
4975 (output_millicode_call): Check attribute type if attribute length is 28.
4976 Likewise use $PIC_pcrel$0. Only call get_attr_length and
4977 dbr_sequence_length once.
4978 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4979 dbr_sequence_length once.
4980 * pa.h (TARGET_SOM): Define if not defined.
4981 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4982 with GAS and not SOM.
4983 (jump, call_internal_reg, call_value_internal_reg): Likewise.
4984 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
4985
4986 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4987
4988 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4989 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4990 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4991 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4992 elfos.h and dbxelf.h values are fine now.
4993 * config/i386/freebsd.h, config/alpha/freebsd.h
4994 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4995
4996 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4997
4998 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4999 or set Acpu or Amachine. Reformat.
5000 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5001 define.
5002 (LINK_SPEC): Do not need to undef.
5003 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
5004 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
5005 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5006 define.
5007 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
5008 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
5009 (LINK_SPEC): Do not need to undef.
5010 (DONT_USE_BUILTIN_SETJMP): Do not define.
5011 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
5012 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
5013 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
5014 Remove trailing spaces.
5015 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
5016 __ELF__, or set Acpu or Amachine. Reformat.
5017 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5018 define.
5019
5020 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5021
5022 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
5023 all other *-*-freebsd* targets.
5024
5025 2002-04-11 Richard Henderson <rth@redhat.com>
5026
5027 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
5028
5029 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5030
5031 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
5032 Include {cpu}/{cpu}.h thru tm_file.
5033 (alpha*-*-linux*ecoff): Remove target.
5034 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
5035 (LINK_SPEC): Remove, is not OS independent.
5036 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
5037 (LINK_SPEC): Do not need to #undef any longer.
5038 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
5039 any longer.
5040 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
5041 __ELF__.
5042 (LINK_SPEC): Moved here from alpha/elf.h.
5043 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
5044 SUB_CPP_PREDEFINES.
5045 * config/alpha/linux-ecoff.h: Remove.
5046 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
5047 (CPP_SPEC): Define _POSIX_SOURCE as needed.
5048 (CPP_SUBTARGET_SPEC): Do not define.
5049 (LINK_SPEC): Do not need to #undef any longer.
5050 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
5051 * config/alpha/vms.h: Likewise.
5052
5053 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5054
5055 * doc/extend.texi: Remove old claim that typedefs cannot have
5056 an alignment attribute.
5057
5058 2002-04-11 Jakub Jelinek <jakub@redhat.com>
5059
5060 PR optimization/6177
5061 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
5062 bitpos is 0 and bitsize CONCAT size.
5063
5064 2002-04-11 Jakub Jelinek <jakub@redhat.com>
5065
5066 PR c/6223
5067 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
5068
5069 2002-04-10 David O'Brien <obrien@FreeBSD.org>
5070
5071 * config/alpha/freebsd.h: Minor reformatting.
5072 (CPP_SPEC): Define ELF and add cpp_subtarget.
5073 (ASM_SPEC): No longer needed.
5074
5075 2002-04-11 Richard Henderson <rth@redhat.com>
5076
5077 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
5078 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
5079 (dimode mem/zero splitter): New.
5080
5081 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
5082
5083 * config/cris/cris.c (cris_override_options): Tweak error message
5084 for PIC not implemented.
5085
5086 * config/cris/cris.h: Tweak comments related to parameter-passing.
5087
5088 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
5089
5090 2002-04-10 Richard Henderson <rth@redhat.com>
5091
5092 * except.c (add_ehl_entry): Allow duplicates after landing pad
5093 creation.
5094
5095 2002-04-10 David Edelsohn <edelsohn@gnu.org>
5096
5097 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
5098
5099 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
5100
5101 * c-decl.c (c_init_decl_processing): Move generation of
5102 decls for g77_integer_type_node and friends from here ...
5103 * c-common.c (c_common_nodes_and_builtins): ... to here.
5104
5105 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
5106
5107 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
5108 is only used as frame pointer when frame_pointer_needed is true.
5109
5110 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
5111
5112 PR target/817
5113 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
5114 for the fact that the pool entry uses two words.
5115 (movdf_hard_insn): Similarly. Also, ADR instruction can span
5116 1k bytes.
5117 (movdf_soft_insn): Similarly.
5118 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
5119 for the fact that the pool entry uses three words.
5120
5121 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
5122
5123 * config/mips/mips.c (mips_va_arg): When using the struct version
5124 of the EABI va_list, allow arguments in the register save area to
5125 take up less room than a stack argument.
5126
5127 2002-04-10 Richard Henderson <rth@redhat.com>
5128
5129 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
5130 if EXPAND_INITIALIZER.
5131
5132 2002-04-09 Richard Henderson <rth@redhat.com>
5133
5134 * config/alpha/alpha.md (movdi_er_maybe_g): New.
5135 * config/alpha/alpha.c (alpha_expand_mov): Use it.
5136
5137 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5138
5139 PR optimization/6233
5140 * rtlanal.c (pure_call_p): New function.
5141 * rtl.h (pure_call_p): Declare.
5142 * loop.c (prescan_loop): Use it to set has_nonconst_call.
5143 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
5144
5145 2002-04-09 Eric Christopher <echristo@redhat.com>
5146
5147 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
5148 information to .comm directive.
5149
5150 2002-04-09 Richard Henderson <rth@redhat.com>
5151
5152 PR c/5078
5153 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
5154
5155 2002-04-09 Richard Henderson <rth@redhat.com>
5156
5157 * basic-block.h (flow_delete_block_noexpunge): Declare.
5158 (expunge_block_nocompact): Declare.
5159 * cfg.c (expunge_block_nocompact): Split out from ...
5160 (expunge_block): ... here.
5161 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
5162 (flow_delete_block_noexpunge): Split out from ...
5163 (flow_delete_block): ... here.
5164 * cfgcleanup.c (delete_unreachable_blocks): Compact while
5165 removing dead blocks.
5166 * except.c (exception_handler_labels): Remove.
5167 (exception_handler_label_map): New.
5168 (struct eh_region): Add aka member.
5169 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
5170 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
5171 (for_each_eh_label, for_each_eh_label_1): New.
5172 (init_eh): Register exception_handler_label_map.
5173 (free_eh_status): Use free_region.
5174 (find_exception_handler_labels): Use the map, not the list.
5175 (remove_exception_handler_label): Likewise.
5176 (maybe_remove_eh_handler): Likewise.
5177 (remove_eh_handler): Use the region aka bitmap.
5178 * except.h (exception_handler_labels): Remove.
5179 (for_each_eh_label): Declare.
5180 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
5181 * loop.c (invalidate_loops_containing_label): New.
5182 (find_and_verify_loops): Use it. Use for_each_eh_label.
5183 * sched-rgn.c (is_cfg_nonregular): Use
5184 current_function_has_exception_handlers.
5185
5186 2002-04-09 Richard Henderson <rth@redhat.com>
5187
5188 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
5189 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
5190 Do not return changed status.
5191 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
5192 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
5193 New functions that do return changed status.
5194 * sbitmap.h: Update decls.
5195 * gcse.c, lcm.c: Use _cg functions as needed.
5196
5197 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5198
5199 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
5200 (sh64-*-elf*, sh-*-rtemself*): Likewise.
5201 * config/sh/embed_bb.c: New file.
5202 * config/sh/embed-elf.h: New file.
5203 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
5204 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
5205 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5206 __PTRDIFF_TYPE__ .
5207 (SUBTARGET_CPP_PTR_SPEC): Don't define.
5208 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
5209 Add subtarget_asm_endian_spec.
5210 (ASM_SPEC): Use subtarget_asm_endian_spec.
5211 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
5212 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
5213 (WCHAR_UNSIGNED): Define.
5214 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
5215 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5216 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
5217 Fix value.
5218 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
5219 (sh_adjust_cost): Likewise.
5220 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5221 __PTRDIFF_TYPE__ .
5222 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
5223 (WCHAR_TYPE_SIZE): Likewise.
5224 (ASM_SPEC): Use subtarget_asm_endian_spec.
5225 (SH_ELF_WCHAR_TYPE): #undef/ #define.
5226 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
5227 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
5228 (MAX_WCHAR_TYPE_SIZE): Don't #define .
5229 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
5230 (USER_LABEL_PREFIX): Don't #undef /#define .
5231 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5232 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
5233 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
5234 (ASM_SPEC): Likewise.
5235 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
5236 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
5237 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
5238 (LIB2FUNCS_EXTRA): Define.
5239 * t-sh64 (LIB2FUNCS_EXTRA): Define.
5240 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
5241 (LIB1ASMFUNCS_CACHE): Define.
5242 (LIB2FUNCS_EXTRA): Redefine empty.
5243
5244 2002-04-08 Richard Henderson <rth@redhat.com>
5245
5246 * reorg.c (get_branch_condition): Use reversed_comparison_code.
5247
5248 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5249
5250 * config/m68hc11/larith.asm (__map_data_section): Fix condition
5251 and optimize for size.
5252 (__do_global_ctors): Fix pointer comparison.
5253 (__do_global_dtors): Likewise.
5254
5255 2002-04-09 David S. Miller <davem@redhat.com>
5256
5257 * config/sparc/sparc.c (sparc_extra_constraint_check): New
5258 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
5259 allow reloading pseudos.
5260 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
5261 * config/sparc/sparc-protos.h: Declare it.
5262
5263 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
5264 unsigned comparison warning.
5265 (output_restore_regs): Mark leaf_function as unused.
5266
5267 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5268
5269 * expr.c (is_aligning_offset): New function.
5270 (expand_expr, case COMPONENT_EXPR): Call it.
5271
5272 2002-04-08 David S. Miller <davem@redhat.com>
5273
5274 PR target/6082
5275 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
5276
5277 Make init_priority work on Sparc when using GNU ld.
5278 * config/sparc/linux.h, config/sparc/linux64.h,
5279 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
5280 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
5281 * config/sparc/sol2-gld.h: New file to do the same.
5282 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
5283 sparc/sol2-gld.h to tm_file.
5284
5285 PR optimization/4328
5286 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
5287 * doc/md.texi: Document it.
5288 * config/sparc/sparc.md (movdi_insn_sp64_novis,
5289 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
5290 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
5291 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
5292 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
5293
5294 2002-04-08 Andreas Jaeger <aj@suse.de>
5295
5296 * stmt.c (expand_asm_operands): Revert last patch from Richard
5297 Henderson.
5298
5299 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5300
5301 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
5302 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
5303
5304 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5305
5306 * doc/contrib.texi (Contributors): Add David O'Brien.
5307
5308 2002-04-08 Alan Modra <amodra@bigpond.net.au>
5309
5310 * configure.in (auto-build.h): Use target_alias and build_alias
5311 when running configure.
5312 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
5313 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
5314 * configure: Regenerate.
5315
5316 2002-04-07 David S. Miller <davem@redhat.com>
5317
5318 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
5319
5320 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5321
5322 PR 5933
5323 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
5324 generating 32-bit pic code.
5325
5326 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5327
5328 * cppinit.c (cpp_create_reader): Initialize
5329 discard_comments_in_macro_exp.
5330 (COMMAND_LINE_OPTIONS): Add "-CC" option.
5331 (cpp_handle_option): Handle "-CC" option.
5332 * cpplex.c (save_comment): If saving a C++ comment in
5333 a directive, convert it to a C comment.
5334 (_cpp_lex_direct): Pass second comment start character to
5335 save_comment to indicate comment type.
5336 * cpplib.c (_cpp_handle_directive): If processing
5337 a "#define" directive and discard_comments_in_macro_exp
5338 is false, re-enable saving of comments.
5339 (lex_macro_node): If discard_comments_in_macro_exp is false,
5340 discard any comments before the macro identifier.
5341 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
5342 member.
5343 * cppmacro.c (cpp_get_token): If expanding a macro while
5344 processing a directive, discard any comments we might encounter.
5345 (parse_params): If discard_comments_in_macro_exp is false,
5346 ignore comments in the macro parameter list.
5347 * gcc.c (cpp_unique_options): Add "-CC" option.
5348 (option_map): Map "--comments-in-macros" to "-CC".
5349 * doc/cppopts.texi: Document "-CC" option.
5350 * f/lang-specs.h: Add "-CC" option.
5351 * testsuite/gcc.dg/cpp/maccom1.c: New test.
5352 * testsuite/gcc.dg/cpp/maccom2.c: New test.
5353 * testsuite/gcc.dg/cpp/maccom3.c: New test.
5354 * testsuite/gcc.dg/cpp/maccom4.c: New test.
5355 * testsuite/gcc.dg/cpp/maccom5.c: New test.
5356 * testsuite/gcc.dg/cpp/maccom6.c: New test.
5357
5358 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5359
5360 PR middle-end/6180
5361 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
5362
5363 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5364
5365 PR c++/5571
5366 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5367
5368 PR opt/5120
5369 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
5370 RTX_UNCHANGING_P for the functions arguments when a tail call
5371 is made.
5372
5373 2002-04-06 Jason Merrill <jason@redhat.com>
5374
5375 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
5376 (parse_options_and_default_flags): Set them appropriately.
5377 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
5378
5379 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
5380
5381 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
5382 here.
5383
5384 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
5385 semicolon.
5386
5387 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
5388 types come in by-reference. Fix typo in comment.
5389
5390 2002-04-05 David S. Miller <davem@redhat.com>
5391
5392 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
5393 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5394 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
5395 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
5396
5397 2002-04-05 David S. Miller <davem@redhat.com>
5398
5399 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
5400 are not going to emit return instructions, emit at least a nop
5401 for the sake of sane backtraces.
5402
5403 2002-04-05 Richard Henderson <rth@redhat.com>
5404
5405 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
5406
5407 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
5408
5409 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
5410
5411 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
5412
5413 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
5414 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5415 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
5416
5417 2002-04-05 Andreas Schwab <schwab@suse.de>
5418
5419 * c-convert.c: Include c-common.h.
5420 * Makefile.in (c-convert.o): Updated.
5421
5422 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5423
5424 * mklibgcc.in: Use separate libgcc.map for each multilib.
5425 * Makefile.in (distclean): Don't remove libgcc.map here.
5426
5427 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5428
5429 * Makefile.in (s-mlib): Handle --disable-multilib by separate
5430 genmultilib invocation.
5431
5432 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
5433
5434 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
5435 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
5436 to num_gprs for symmetry.
5437 * config/mips/mips.c: Adjust accordingly.
5438
5439 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
5440
5441 * c-common.c (truthvalue_conversion): Rename, update.
5442 * c-common.h (c_common_truthvalue_conversion): New.
5443 * c-convert.c (convert): Update.
5444 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5445 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
5446 * c-typeck.c (build_binary_op, build_unary_op,
5447 build_conditional_expr): Update.
5448 * fold-const.c (constant_boolean_node, fold): Use langhook.
5449 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5450 * langhooks.h (struct lang_hooks): New hook.
5451 * stmt.c (expand_decl_cleanup): Use langhook.
5452 * tree.h (truthvalue_conversion): Remove.
5453 objc:
5454 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5455
5456 2002-04-05 Alan Modra <amodra@bigpond.net.au>
5457
5458 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5459 Add rules to make null object file.
5460
5461 2002-04-04 Jim Blandy <jimb@redhat.com>
5462
5463 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5464 macro formal parameter names.
5465
5466 2002-04-04 David S. Miller <davem@redhat.com>
5467
5468 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5469
5470 2002-04-04 Richard Henderson <rth@redhat.com>
5471
5472 PR middle-end/5099
5473 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5474 Support copies into and out of memory. Don't accept allows_reg
5475 and allows_mem as gospel.
5476
5477 2002-04-04 Richard Henderson <rth@redhat.com>
5478
5479 PR opt/6165
5480 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5481 (write_dependence_p): Likewise.
5482
5483 2002-04-04 Richard Henderson <rth@redhat.com>
5484
5485 * predict.c (estimate_bb_frequencies): Do frequency calculation
5486 with a volatile temporary.
5487
5488 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
5489
5490 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5491
5492 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5493
5494 PR c++/6119
5495 * final.c (final_start_function): Don't bump profile_label_no here...
5496 (final_end_function): ...but here.
5497
5498 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5499
5500 * config/sparc/sparc.md (pic): New attribute.
5501 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5502 into stack slots.
5503 (split after do_builtin_setjmp_setup): New.
5504
5505 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5506
5507 PR fortran/6106
5508 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5509 change.
5510
5511 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5512
5513 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5514 UNITS_PER_WORD for zero sized aggregates.
5515
5516 2002-04-03 David S. Miller <davem@redhat.com>
5517
5518 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5519 one-character spec for this, just use %(link_gcc_c_sequence).
5520
5521 2002-04-03 David S. Miller <davem@redhat.com>
5522
5523 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5524 handling.
5525
5526 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5527
5528 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5529 (DWARF_FRAME_RETURN_COLUMN): Move.
5530 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5531 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5532 * pa.c (except.h, predict.h): Include.
5533 (FRP): Delete.
5534 (store_reg_modify, set_reg_plus_d): Revise prototypes.
5535 (output_ascii): Add cast.
5536 (store_reg_modify): Revise to add frame notes.
5537 (set_reg_plus_d): Likewise.
5538 (compute_frame_size): Include space for eh data registers in frame if
5539 the current function calls eh_return.
5540 (hppa_expand_prologue): Ensure register %r2 is saved if the current
5541 function calls eh_return. Save eh data registers if the current
5542 function calls eh_return. Fix code to add frame notes. Emit
5543 blockage to prevent insns with frame notes being scheduled in the
5544 delay slot of calls.
5545 (hppa_expand_epilogue): Restore eh data registers and do final stack
5546 adjustment if the current function calls eh_return. Don't add frame
5547 notes.
5548 (output_call): Revise for change in length of call insn. Don't do
5549 return pointer adjustment for an unconditional jump in the delay slot
5550 of a call when using frame notes.
5551 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5552 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5553 (ARG_POINTER_CFA_OFFSET): Define.
5554 * pa.md (return_external_pic): New pattern.
5555 (prologue): Correct formatting. Use return_external_pic if current
5556 function calls eh_return.
5557 (call_internal_symref, call_value_internal_symref,
5558 sibcall_internal_symref, sibcall_value_internal_symref): Change default
5559 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5560 respectively.
5561 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5562
5563 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5564 list of targets to check using "nop" insn.
5565 * configure: Rebuilt.
5566
5567 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5568
5569 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5570
5571 2002-04-03 David S. Miller <davem@redhat.com>
5572
5573 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5574 library sequence passed to the linker.
5575 (LINK_COMMAND_SPEC): Use it.
5576 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5577 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5578 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5579
5580 2002-04-03 Jason Merrill <jason@redhat.com>
5581
5582 * except.c (struct eh_status): Remove protect_list.
5583 (begin_protect_partials, end_protect_partials): Remove.
5584 (add_partial_entry): Remove.
5585 * except.h: Remove prototypes.
5586
5587 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5588 expand_decl_cleanup_eh.
5589
5590 PR c++/5636
5591 * tree.h (CLEANUP_EH_ONLY): New macro.
5592 * stmt.c (expand_decl_cleanup_eh): New fn.
5593 (expand_cleanups): Check CLEANUP_EH_ONLY.
5594 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5595 Use expand_decl_cleanup_eh.
5596 (expand_stmt): Adjust.
5597 * c-common.h: Adjust prototype.
5598
5599 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
5600
5601 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5602 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5603 (cris_target_asm_function_epilogue): Ditto.
5604 (cris_initial_frame_pointer_offset): Ditto.
5605 (cris_simple_epilogue): Ditto.
5606 (cris_expand_builtin_va_arg): Variable-size types come in
5607 by-reference.
5608
5609 2002-04-03 David S. Miller <davem@redhat.com>
5610
5611 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5612 little-endian.
5613 (set_fast_math): Correct 'fsr' type.
5614
5615 2002-04-03 Richard Henderson <rth@redhat.com>
5616
5617 PR opt/3569
5618 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5619 * toplev.c (check_global_declarations): Use it.
5620 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5621 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5622 (LANG_HOOKS_DECLS): Add it.
5623 * langhooks.c (lhd_warn_unused_global_decl): New.
5624 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5625 * c-objc-common.c (c_warn_unused_global_decl): New.
5626 * c-tree.h (c_warn_unused_global_decl): Declare.
5627 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5628
5629 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
5630
5631 * langhooks-def.h (lhd_set_decl_assembler_name,
5632 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5633 (LANG_HOOKS_INITIALIZER): Update.
5634 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5635 * langhooks.h (struct lang_hooks): New hook.
5636 * tree.c (set_decl_assembler_name): Move to langhooks.c.
5637 (lang_set_decl_assembler_name): Remove.
5638 (init_obstacks): Don't set hook.
5639 (decl_assembler_name): New function.
5640 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5641 (decl_assembler_name): New.
5642 (lang_set_decl_assembler_name): Remove.
5643
5644 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5645
5646 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5647 works properly with .hidden symbols.
5648 * configure: Rebuilt.
5649 * config.in: Rebuilt.
5650 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5651 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5652 properly with .hidden symbols.
5653
5654 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5655
5656 PR middle-end/6102
5657 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5658 USE argument.
5659
5660 2002-04-03 Richard Henderson <rth@redhat.com>
5661
5662 PR opt/4120
5663 * sched-rgn.c (sets_likely_spilled): New.
5664 (sets_likely_spilled_1): New.
5665 (add_branch_dependences): Use it.
5666
5667 2002-04-02 Richard Henderson <rth@redhat.com>
5668
5669 PR opt/4311
5670 * loop.h (LOOP_FIRST_PASS): New.
5671 * loop.c (strength_reduce): Mind it when deciding to unroll.
5672 * toplev.c (rest_of_compilation): Set it.
5673
5674 2002-04-02 David S. Miller <davem@redhat.com>
5675
5676 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5677 mems_ok_for_ldd_peep when the order of the loads being examined
5678 is reversed.
5679 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5680 existing comment to increase comprehension of this situation.
5681
5682 2002-04-02 Zack Weinberg <zack@codesourcery.com>
5683
5684 * config/sh/sh.md: Don't use union real_extract.
5685
5686 2002-04-02 Richard Henderson <rth@redhat.com>
5687
5688 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5689
5690 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5691
5692 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5693 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5694 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5695 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5696 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5697 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5698 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5699 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5700 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5701 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5702 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5703 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5704 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5705 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5706 Include as many configury headers via tm_file as possible. This
5707 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5708 * config/openbsd-oldgas.h: New file.
5709 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5710 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5711 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5712 config/i386/i386-coff.h, config/i386/i386-interix.h,
5713 config/i386/iscdbx.h, config/i386/linux-aout.h,
5714 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5715 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5716 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5717 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5718 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5719 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5720 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5721 config/i386/vxi386.h: Do not directly include configury headers.
5722 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5723 Directly include configury headers that are no longer automatically
5724 included by the above headers.
5725 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5726 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5727 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5728 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5729 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5730 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5731 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5732 (TARGET_VERSION): Define.
5733 * config/i386/beos-elf.h, config/i386/freebsd.h,
5734 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5735 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5736 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5737 config/i386/sco5.h, config/i386/sysv4.h
5738 (TARGET_VERSION): Do not need to protect.
5739 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5740 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5741 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5742 config/i386/i386-interix.h, config/i386/linux-aout.h,
5743 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5744 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5745 (YES_UNDERSCORES): Do not define - not needed.
5746 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5747 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5748 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5749 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5750 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5751 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5752 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5753 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5754
5755 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
5756 Richard Henderson <rth@redhat.com>
5757
5758 PR c/5484
5759 * function.c (assign_temp): Accept either type or decl argument.
5760 Detect variables whose size is too large to fit into an integer.
5761 * stmt.c (expand_decl): Pass the decl, not the type.
5762
5763 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5764
5765 * protoize.c: Match include directory usage with cppdefault.c.
5766
5767 2002-04-03 Jeffrey A Law (law@redhat.com)
5768 Hans-Peter Nilsson <hp@bitrange.com>
5769
5770 * combine.c (simplify_comparison): Avoid narrowing a comparison
5771 with a paradoxical subreg when doing so would drop signficant bits.
5772
5773 2002-04-02 Steve Ellcey <sje@cup.hp.com>
5774
5775 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5776 if POINTERS_EXTEND_UNSIGNED is defined.
5777
5778 2002-04-02 Richard Henderson <rth@redhat.com>
5779
5780 PR opt/3967
5781 * local-alloc.c (contains_replace_regs): LO_SUM may contain
5782 replace regs.
5783
5784 2002-04-02 Richard Henderson <rth@redhat.com>
5785
5786 * doc/standards.texi: Document required freestanding libc entry points.
5787
5788 2002-04-02 Alan Modra <amodra@bigpond.net.au>
5789
5790 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5791 associated splitter. Remove MQ constraint.
5792 (ctrdi_internal4): Correct CCmode clobber.
5793
5794 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
5795
5796 * milli64.S ($$dyncall): New function.
5797 * t-linux (LIB1ASMFUNCS): Revise module list.
5798 (LIB1ASMSRC): Use pa/milli64.S.
5799
5800 2002-04-02 Richard Henderson <rth@redhat.com>
5801
5802 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5803 rename solaris_sys_varargs_h.
5804
5805 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5806
5807 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5808 the same mode as its component.
5809
5810 2002-04-02 Richard Henderson <rth@redhat.com>
5811
5812 PR opt/190
5813 * final.c (this_is_asm_operands): Export.
5814 * output.h (this_is_asm_operands): Declare.
5815 * config/i386/i386.c (print_operand): Error odd asm operands.
5816
5817 2002-04-02 Richard Henderson <rth@redhat.com>
5818
5819 PR opt/420
5820 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5821
5822 2002-04-01 Richard Henderson <rth@redhat.com>
5823
5824 PR target/1538
5825 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5826 * fixinc/fixincl.x: Rebuild.
5827
5828 2002-04-01 Richard Henderson <rth@redhat.com>
5829
5830 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5831 (atomic_alloc, atomic_free): New.
5832 (SIZE, MASK_FOR, PTR_IN): New.
5833 (emergency_reg_state, emergency_reg_state_free): New.
5834 (emergency_labeled_state, emergency_labeled_state_free): New.
5835 (reg_state_alloced, labeled_state_alloced): New.
5836 (alloc_reg_state, free_reg_state): New.
5837 (alloc_label_state, free_label_state, free_label_states): New.
5838 (push, pop, dup_state_stack, free_state_stack): Use them.
5839 (desc_label_state): Likewise.
5840 (uw_frame_state_for): Free label states and state stack.
5841 (uw_update_reg_address): Eliminate warnings.
5842
5843 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
5844
5845 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5846 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5847
5848 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5849
5850 * c-decl.c (grokdeclarator): Update.
5851 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5852 * c-tree.h (c_mark_addressable): New.
5853 * c-typeck.c (default_function_array_conversion, build_unary_op,
5854 build_array_ref, convert_for_assignment): Update.
5855 (mark_addressable): Rename.
5856 * calls.c (try_to_integrate, expand_call): Use langhook.
5857 * expr.c (expand_expr): Use langhook.
5858 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5859 * langhooks.h (struct lang_hooks): New hook.
5860 * stmt.c (expand_asm_operands): Use langhook.
5861 * tree.h (mark_addressable): Remove.
5862 objc:
5863 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5864
5865 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5866
5867 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5868 in previous change.
5869
5870 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5871
5872 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5873 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5874
5875 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5876
5877 * c-common.c (unsigned_conversion_warning, convert_and_check,
5878 unsigned_type, signed_type, shorten_compare,
5879 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5880 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5881 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5882 New.
5883 * c-decl.c (grokdeclarator): Update.
5884 * c-format.c (check_format_types): Update.
5885 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5886 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5887 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5888 * convert.c (convert_to_integer): Use new hooks.
5889 * expmed.c (make_tree): Use new hooks.
5890 * expr.c (store_expr): Use new hooks.
5891 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5892 all_ones_mask_p, unextend, fold): Use new hooks.
5893 * langhooks.h (struct lang_hooks_for_types): New hooks.
5894 * tree.h (signed_or_unsigned_type, signed_type,
5895 unsigned_type): Remove.
5896 objc:
5897 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5898 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5899
5900 2002-03-31 Richard Henderson <rth@redhat.com>
5901
5902 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5903 (desc_frgr_mem): Fix reference to f16-f31.
5904
5905 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5906
5907 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5908 RTVEC_ELT): Const-ify.
5909 * varray.h (VARRAY_CHECK): Const-ify.
5910 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5911 ggc_mark_rtvec, ggc_mark): Const-ify.
5912
5913 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5914
5915 * diagnostic.c: Include langhooks-def.h.
5916 * Makefile.in (diagnostic.o): Update.
5917
5918 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5919
5920 * c-common.c (c_unsafe_for_reeval): Rename.
5921 * c-common.h (c_unsafe_for_reeval): Rename.
5922 * c-decl.c (finish_incomplete_decl): Rename.
5923 (c_init_decl_processing): Don't set langhook.
5924 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5925 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5926 * c-objc-common.c (c_objc_common_init): Don't set langhook.
5927 * c-tree.h (finish_incomplete_decl): Rename.
5928 * langhooks-def.h (lhd_unsafe_for_reeval): New.
5929 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5930 (LANG_HOOKS_INITIALIZER): Update.
5931 * langhooks.c (lhd_unsafe_For_reeval): New.
5932 * langhooks.h (struct langhooks): New hooks.
5933 * toplev.c (incomplete_decl_finalize_hook): Remove.
5934 (wrapup_global_declarations): Update.
5935 * tree.c (lang_unsafe_for_reeval): Remove.
5936 (unsafe_for_reeval): Update.
5937 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5938 Remove.
5939 objc:
5940 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5941 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5942
5943 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5944
5945 * diagnostic.c (print_error_function): Remove.
5946 (default_print_error_function): Rename.
5947 (report_error_function): Update.
5948 * diagnostic.h (print_error_function): Remove.
5949 (default_print_error_function): Remove.
5950 * langhooks-def.h (struct diagnostic_context): Predeclare.
5951 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5952 (LANG_HOOKS_INITIALIZER): Update.
5953 * langhooks.h (struct diagnostic context): Predeclare.
5954 (struct lang_hooks): New hook.
5955
5956 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5957
5958 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5959 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5960 !flag_pic.
5961 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5962 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5963 of PIC_OFFSET_TABLE_REGNUM thruout.
5964 * config/rs6000/rs6000.md: Likewise.
5965 * config/rs6000/darwin.h: Likewise.
5966
5967 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5968
5969 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5970 unsigned HOST_WIDE_INT, not unsigned int.
5971
5972 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5973
5974 PR middle-end/6096, middle-end/6098, middle-end/6099
5975 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5976 CODE_LABELs.
5977 (fill_slots_from_thread): Likewise.
5978
5979 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5980
5981 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5982 floating fields in float regs.
5983 (function_arg_record_value_2): Likewise.
5984
5985 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5986
5987 * config/mmix/mmix.md (define_constants): Remove misleading
5988 FIXME. Add MMIX_fp_rO_OFFSET.
5989 ("nonlocal_goto_receiver"): Don't have stack-frame address of
5990 saved rO as part of the pattern. Remove FIXME.
5991 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
5992 here, at output-time.
5993
5994 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5995
5996 PR middle-end/6100
5997 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5998 REG_BR_PRED.
5999 (output_v9branch): Likewise.
6000
6001 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
6002
6003 * gcc.c: Revert previous patch for now.
6004 * config/i386/djgpp.h: Likewise.
6005
6006 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6007
6008 * config/mmix/crti.asm (_init): Register _fini with atexit.
6009 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
6010
6011 2002-03-31 Richard Henderson <rth@redhat.com>
6012
6013 PR target/3997
6014 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
6015 (ASM_OUTPUT_DEF_FROM_DECLS): New.
6016
6017 2002-03-31 Richard Henderson <rth@redhat.com>
6018
6019 * libgcc2.c (__bb_exit_func): Make static.
6020
6021 * config/alpha/alpha.md (trap): New.
6022
6023 2002-03-31 Richard Henderson <rth@redhat.com>
6024
6025 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
6026 promoted argument types; build trap.
6027 (expand_builtin_trap): New.
6028 (expand_builtin): Use it.
6029 * stmt.c (expand_nl_goto_receivers): Likewise.
6030 * expr.h (expand_builtin_trap): Declare.
6031 * libfuncs.h (LTI_abort, abort_libfunc): New.
6032 * optabs.c (init_optabs): Init abort_libfunc.
6033
6034 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
6035
6036 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
6037 (LINK_COMMAND_SPEC): ... from here.
6038 (init_gcc_specs): Duplicate it here too, omitting
6039 shared_name in the second copy.
6040 (init_spec): Test for duplicate
6041 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
6042
6043 2002-03-30 David S. Miller <davem@redhat.com>
6044
6045 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6046 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
6047
6048 2002-03-30 Roger Sayle <roger@eyesopen.com>
6049 Richard Henderson <rth@redhat.com>
6050
6051 * regmove.c (combine_stack_adjustments_for_block): Avoid
6052 emitting a stack adjustment of zero bytes. Let delete_insn
6053 update bb->head.
6054
6055 2002-03-30 Richard Henderson <rth@redhat.com>
6056
6057 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
6058 (sparc_emitting_epilogue): New.
6059 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
6060 * config/sparc/sparc-protos.h: Update.
6061 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
6062 (TARGET_SWITCHES): Update.
6063 * config/sparc/sparc.md (return): Remove.
6064 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
6065 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
6066 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
6067 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6068 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
6069 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
6070 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
6071 Remove MASK_EPILOGUE.
6072 * doc/invoke.texi: Update.
6073
6074 2002-03-30 Daniel Berlin <dan@dberlin.org>
6075
6076 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
6077 CPP will start the file for us.
6078
6079 2002-03-30 Richard Henderson <rth@redhat.com>
6080
6081 PR target/5446
6082 * config/ia64/ia64.c (group_barrier_needed_p): Special case
6083 prologue_allocate_stack.
6084 (ia64_single_set): Use insn codes for recognition of special
6085 cases, not rtl matching.
6086 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
6087
6088 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
6089
6090 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
6091
6092 2002-03-30 Richard Henderson <rth@redhat.com>
6093
6094 PR target/6032
6095 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
6096 or -fomit-frame-pointer with profiling.
6097 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6098 (FUNCTION_PROFILER): Do nothing.
6099 (PROFILE_HOOK): New.
6100 * config/sparc/sparc.c (sparc_override_options): Don't check
6101 code models for profiling.
6102 (sparc_function_profiler): Remove.
6103 (sparc_profile_hook): New.
6104 * config/sparc/sparc-protos.h: Update.
6105
6106 2002-03-30 Jakub Jelinek <jakub@redhat.com>
6107
6108 PR optimization/6086
6109 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
6110 of SUBREG of volatile MEM or because the MEM was mode dependent,
6111 return CLOBBER instead of unmodified SUBREG.
6112
6113 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
6114
6115 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
6116 when not optimizing.
6117
6118 * toplev.c (rest_of_compilation): Cann mark_constant_function
6119 only when optimizing.
6120
6121 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
6122 are NULL.
6123
6124 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
6125 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
6126 (try_optimize_cfg): clear all AUX fields.
6127
6128 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
6129 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
6130 (ix86_address_cost): Be prepared for SUBREGed registers.
6131 (legitimate_address_p): Accept SUBREGed registers.
6132
6133 2002-03-29 Richard Henderson <rth@redhat.com>
6134
6135 PR target/5672
6136 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
6137
6138 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6139
6140 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
6141 for aggregate and TFmode types.
6142
6143 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
6144
6145 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
6146
6147 2002-03-29 Richard Henderson <rth@redhat.com>
6148
6149 PR target/5886
6150 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
6151 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
6152
6153 2002-03-29 Richard Henderson <rth@redhat.com>
6154
6155 PR target/6041
6156 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
6157 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
6158 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
6159 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
6160 conditional.
6161 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
6162
6163 2002-03-29 Dale Johannesen <dalej@apple.com>
6164
6165 * loop.c (combine_movables): Do allow combination of pseudos.
6166
6167 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
6168
6169 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
6170 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
6171 No functional change except ...
6172 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
6173 * doc/install.texi (*-*-freebsd*): Document port configuration.
6174
6175 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
6176
6177 * Makefile.in (convert.o, calls.o, expmed.o): Update.
6178 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
6179 Use new hooks.
6180 * builtin-types.def (BT_PTRMODE): Update.
6181 * c-common.c (type_for_size): Rename c_common_type_for_size.
6182 (type_for_mode): Similarly.
6183 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
6184 Use new hook.
6185 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
6186 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
6187 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
6188 Redefine.
6189 * c-typeck.c (common_type, comptypes, default_conversion):
6190 Use new hooks.
6191 * calls.c: Include langhooks.h.
6192 (emit_library_call_value_1): Use new hooks. Avoid redundant
6193 calls.
6194 * convert.c: Include langhooks.h
6195 (convert_to_pointer, convert_to_integer): Use new hooks.
6196 * except.c (init_eh): Similarly.
6197 * expmed.c: Include langhooks.h.
6198 (expand_mult_add): Use new hooks.
6199 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
6200 try_casesi): Similarly.
6201 * fold-const.c (optimize_bit_field_compare, make_range,
6202 decode_field_reference, fold_truthop, fold): Similarly.
6203 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
6204 put_var_into_stack): Similarly.
6205 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
6206 LANG_HOOKS_TYPE_FOR_SIZE): New.
6207 (LANG_HOOKS_TYPES_INITIALIZER): Update.
6208 * langhooks.h (lang_hooks_for_types): New hooks.
6209 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
6210 * tree.c (get_unwidened, get_narrower): Similarly.
6211 * tree.h (type_for_mode, type_for_size): Remove.
6212 * varasm.c (force_const_mem): Use new hooks.
6213 * utils2.c (nonbinary_modular_operation): Update.
6214 objc:
6215 * objc-act.c (handle_impent): Update.
6216 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
6217 Redefine.
6218
6219 2002-03-29 Steve Ellcey <sje@cup.hp.com>
6220
6221 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
6222 * config/ia64/ia64.c (basereg_operand): New.
6223 * config/ia64/ia64-protos.h (basereg_operand): Declare.
6224 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
6225
6226 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
6227
6228 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
6229 unwind information when frame_pointer_needed.
6230 (mmix_assemble_integer): Tweak wording in comment.
6231
6232 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
6233
6234 * Makefile.in (except.o): Update.
6235 * except.c: Include langhooks.h.
6236 (init_eh): Use langhook.
6237 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
6238 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
6239 (LANG_HOOKS_INITIALIZER): Update.
6240 * langhooks.h (lang_hooks_for_types): New.
6241 (struct lang_hooks): Add it.
6242 * tree.c (make_lang_type_fn, make_lang_type): Remove.
6243 * tree.h (make_lang_type_fn, make_lang_type): Remove.
6244 config:
6245 * alpha/alpha.c: Include langhooks.h.
6246 (alpha_build_va_list): Use langhook.
6247 * d30v/d30v.c: Include langhooks.h.
6248 (d30v_build_va_list): Use langhook.
6249 * i386/i386.c: Include langhooks.h.
6250 (ix86_build_va_list): Use langhook.
6251 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
6252 * s390/s390.c: Include langhooks.h.
6253 (s390_build_va_list): Use langhook.
6254 * stormy16/stormy16.c: Include langhooks.h.
6255 (stormy16_build_va_list): Use langhook.
6256
6257 2002-03-29 Jakub Jelinek <jakub@redhat.com>
6258
6259 PR c++/5964
6260 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
6261 attributes.
6262 (length): Compute variable length for branches/calls/jumps here.
6263 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
6264 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
6265 define branch_type attribute.
6266 (divsi3_sp32): Maximum length is 6 not 7.
6267 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
6268 call_address_untyped_struct_value_sp32,
6269 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
6270 * config/sparc/sparc.c (empty_delay_slot): New function.
6271 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
6272 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
6273
6274 2002-03-29 Jakub Jelinek <jakub@redhat.com>
6275
6276 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
6277 nonzero_bits if not needed.
6278 (nonzero_bits) [XOR]: Likewise.
6279 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
6280 reg_last_set_mode and mode are both MODE_INT, but not equal.
6281 (record_value_for_reg): Compute reg_last_set_nonzero_bits
6282 in nonzero_bits_mode for MODE_INT modes.
6283
6284 2002-03-28 Richard Henderson <rth@redhat.com>
6285
6286 PR target/5715
6287 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
6288 to GAS. Correct drift between alternatives.
6289
6290 2002-03-28 Richard Henderson <rth@redhat.com>
6291
6292 PR target/6087
6293 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
6294
6295 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
6296
6297 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
6298 emulation to the linker.
6299
6300 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
6301
6302 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
6303 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
6304
6305 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
6306
6307 * combine.c (simplify_and_const_int): Make sure to apply mask
6308 when force_to_mode returns a constant integer. PR3311.
6309
6310 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
6311
6312 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
6313
6314 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6315
6316 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
6317 and Objective-C Dialect Options.
6318
6319 2002-03-28 Richard Henderson <rth@redhat.com>
6320
6321 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
6322 comparison should be done vs !=0 not >0 return code. Tidy cases.
6323
6324 2002-03-28 Richard Henderson <rth@redhat.com>
6325
6326 * c-decl.c (finish_function): New arg can_defer_p. Pass it
6327 on to c_expand_body.
6328 * c-tree.h (finish_function): Update decl.
6329 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
6330
6331 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
6332
6333 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
6334
6335 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
6336
6337 * rtlanal.c: Include flags.h
6338 (may_trap_p): Do not mark FP operations if trapping
6339 if !flag_trapping_math
6340 * Makefile.in (rtlanal.o): Add dependency on flag.h
6341 * ifcvt.c (noce_operand_ok): Avoid the lameness.
6342
6343 2002-03-27 Zack Weinberg <zack@codesourcery.com>
6344
6345 * mips.md: Use dconst1, not 1.0, as first argument of
6346 REAL_VALUE_LDEXP. Don't use union real_extract.
6347
6348 2002-03-28 Alan Modra <amodra@bigpond.net.au>
6349
6350 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
6351 rather than $target. Heed program_prefix and
6352 program_transform_name. Search for gas in cross-compiler case too.
6353 "test -x" rather than "test -f".
6354 (gcc_cv_ld): Likewise.
6355 (gcc_cv_nm): Heed program_prefix and program_transform_name.
6356 (gcc_cv_objdump): Likewise.
6357 * configure: Regenerate.
6358
6359 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6360
6361 * Makefile.in (attribs.o): Update.
6362 * attribs.c: Include langhooks.h.
6363 (decl_attributes): Use langhook.
6364 * c-decl.c (insert_default_attributes): Rename.
6365 * c-tree.h (c_insert_default_attributes): New.
6366 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
6367 (LANG_HOOKS_INITIALIZER): Update.
6368 * langhooks.h (struct lang_hooks): New hook.
6369 * tree.h (insert_default_attributes): Remove.
6370 objc:
6371 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
6372
6373 2002-03-27 Andreas Schwab <schwab@suse.de>
6374
6375 * config/i386/i386.c (classify_argument): Also check for
6376 QUAL_UNION_TYPE.
6377
6378 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6379
6380 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
6381 any more.
6382
6383 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
6384
6385 * i960.md (ret): Set PC.
6386 (nonlocal_goto): Fix expander.
6387 * builtins.c (epxand_builin_longjmp): Check that we've emitted
6388 some jump or call.
6389
6390 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
6391
6392 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
6393 of libcall regions.
6394
6395 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6396
6397 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
6398 assigning to BLOCK_FOR_INSN directly.
6399
6400 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
6401
6402 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
6403
6404 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6405
6406 * c-common.c (c_expand_expr): Fix prototype.
6407 * c-common.h (c_expand_expr): Always declare, update.
6408 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6409 * c-objc-common.c (c_objc_common_init): No global hook.
6410 * expr.c (expand_expr): Use langhook.
6411 * expr.h (enum expand_modifier): Conditionally declare.
6412 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
6413 (LANG_HOOKS_INITIALIZER): Update.
6414 * langhooks.c (lhd_expand_expr): New.
6415 * langhooks.h (struct lang_hooks): New hook.
6416 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
6417 (lang_independent_init): Don't default hook.
6418 objc:
6419 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6420
6421 2002-03-27 Richard Henderson <rth@redhat.com>
6422
6423 PR target/6054
6424 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
6425 TARGET_CONST_GP. Simplify conditions.
6426
6427 2002-03-27 Richard Henderson <rth@redhat.com>
6428
6429 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6430 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
6431 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6432
6433 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
6434
6435 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
6436 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
6437 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
6438 Remove unnecessary masks.
6439 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
6440 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
6441 -mwindows, -mdll switches and their negations.
6442
6443 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6444
6445 * gcc-common.c (lang_mark_false_label_stack): Remove.
6446 * ggc.h (lang_mark_false_label_stack): Similarly.
6447
6448 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
6449
6450 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6451
6452 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6453 or __rtems_ is defined.
6454
6455 2002-03-26 Richard Henderson <rth@redhat.com>
6456
6457 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6458 if a non-trivial load was emitted.
6459 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
6460 in high+extra+low case.
6461
6462 2002-03-26 Richard Henderson <rth@redhat.com>
6463
6464 * config.gcc (sparc*-solaris): Use float_format=sparc.
6465
6466 2002-03-26 Richard Henderson <rth@redhat.com>
6467
6468 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6469 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6470 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6471 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6472 (WINT_TYPE_SIZE): Fix at 32.
6473
6474 2002-03-26 Richard Henderson <rth@redhat.com>
6475
6476 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6477 until after eh landing pad generation.
6478 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6479 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6480
6481 2002-03-26 Richard Henderson <rth@redhat.com>
6482
6483 * expr.h (ADD_PARM_SIZE): One more convert for INC.
6484
6485 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
6486
6487 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
6488 and warning switches.
6489 (cc1_options): Likewise.
6490
6491 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
6492
6493 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6494 Restore more of the signal context. Set no_reg_stack_frame.
6495 * config/ia64/unwind-ia64.c (unw_state_record):
6496 Add no_reg_stack_frame, comments.
6497 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6498 (uw_update_context): Adjust bsp when unwinding from leaf,
6499 but not signal frame.
6500
6501 2002-03-26 David Edelsohn <edelsohn@gnu.org>
6502
6503 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6504
6505 2002-03-26 Bob Wilson <bob.wilson@acm.org>
6506
6507 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6508
6509 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
6510
6511 PR target/5621
6512 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6513 "Add a pool_range attribute", which was lost during the ARM/Thumb
6514 merge.
6515
6516 2002-03-26 Bob Wilson <bob.wilson@acm.org>
6517
6518 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6519 a register into the MAC16 accumulator.
6520
6521 2002-03-26 Andrew Cagney <ac131313@redhat.com>
6522
6523 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6524 (Warning Options): Document -Wswitch-enum.
6525 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
6526 -Wswitch.
6527 (warn_switch_enum): Define variables.
6528 * flags.h (warn_switch_enum): Declare variables.
6529 * stmt.c (expand_end_case_type): When warn_switch_enum /
6530 -Wswitch-enum, perform switch checks.
6531 Fix PR c/5044.
6532
6533 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
6534
6535 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6536 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6537 (reload_muladdsi_compare0_scratch): Delete.
6538
6539 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
6540
6541 * doc/install.texi (*-*-freebsd*): Update.
6542
6543 2002-03-26 Richard Henderson <rth@redhat.com>
6544
6545 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6546 (SUB_PARM_SIZE): Cast DEC to ssizetype.
6547
6548 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6549 types from the normal argument frame.
6550
6551 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6552 variable sized objects by reference.
6553 (sparc_va_arg): Receive them by reference too.
6554
6555 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
6556
6557 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6558 code to not restoring global registers.
6559
6560 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
6561
6562 * Makefile.in (ggc-common.o): Update.
6563 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6564 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6565 * c-tree.h (c_mark_tree): New.
6566 * ggc-common.c: Include langhooks.h.
6567 (gcc_mark_trees): Use new langhook.
6568 * ggc-callbacks.c: Delete file.
6569 * ggc.h (lang_mark_tree): Remove.
6570 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6571 (LANG_HOOKS_INITIALIZER): Update.
6572 * langhooks.h (struct lang_hooks): New hook.
6573 objc:
6574 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6575
6576 2002-03-25 Zack Weinberg <zack@codesourcery.com>
6577
6578 * doc/cpp.texi: Exclude entire Top node from printed manual.
6579 Move option index after directive index. Insert page breaks
6580 before GFDL and concept index. Index environment variables
6581 with command line options.
6582 * doc/cppenv.texi: Use @vtable for environment variable list.
6583 Add paragraph explaining semantics of empty elements in path
6584 variables. Exclude a cross-reference to Fishkill from the
6585 manpage. Remove an unnecessary cross-reference of the entry
6586 right above the referer. Don't use @anchor in text that goes
6587 into manpage.
6588 * doc/cppopts.texi: Cross-reference the environment variables
6589 section, not the specific environment variable, for consistency.
6590
6591 2002-03-25 Richard Henderson <rth@redhat.com>
6592
6593 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6594 anywhere in the block. Don't refer to insns that have been
6595 removed from the chain. Iterate backward through the new insns.
6596 Don't refer to edges that have been removed.
6597
6598 2002-03-26 Alan Modra <amodra@bigpond.net.au>
6599
6600 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6601 test for overflow of constant.
6602
6603 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
6604
6605 PR target/2623
6606 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6607 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6608 these patterns on arm_archv4.
6609
6610 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
6611
6612 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6613 int".
6614
6615 2002-03-25 Zack Weinberg <zack@codesourcery.com>
6616
6617 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
6618 float_handled, float_handler, float_signal, set_float_handler,
6619 and do_float_handler. Set handler for SIGFPE to crash_signal.
6620 * toplev.h: Don't prototype do_float_handler.
6621
6622 * c-lex.c: Fold parse_float into lex_number. Make warning
6623 about portability of hex float constants more informative, and
6624 don't issue it on top of a syntax error.
6625 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6626 their callers.
6627 * real.h: Define REAL_VALUE_ABS here...
6628 * simplify-rtx.c: ... not here. Fold check_fold_consts,
6629 simplify_unary_real, simplify_binary_real, and
6630 simplify_binary_is2orm1 into their callers.
6631 * tree.c: Fold build_real_from_int_cst_1 into caller.
6632
6633 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6634
6635 * tsystem.h: Include float.h here...
6636 * libgcc2.c: ... not here.
6637
6638 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
6639
6640 Fixes for: PR bootstrap/3591, target/5676
6641 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6642 defined. Do not disable exceptions or rtti.
6643 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6644 mcore.h. Disable exceptions and rtti, since they are not
6645 supported by EPOC.
6646
6647 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
6648
6649 * c-decl.c (maybe_build_cleanup): Remove.
6650 * expr.c (expand_expr): Use langhook.
6651 * langhooks-def.h (lhd_return_null_tree,
6652 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6653 (LANGHOOKS_INITIALIZER): Update.
6654 * langhooks.c (lhd_return_null_tree): New.
6655 * langhooks.h (struct lang_hooks): New hook.
6656 * tree-inline.c (initialize_inlined_parameters): Use langhook.
6657 * tree.h (maybe_build_cleanup): Remove.
6658
6659 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6660
6661 * regrename.c (build_def_use): Move recog_memoized
6662 before extract_insn.
6663
6664 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6665
6666 PR target/6043
6667 * expr.c (emit_group_store): Handle storing into CONCAT.
6668
6669 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6670
6671 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6672 corresponding MATCH_DUP.
6673
6674 2002-03-24 Richard Henderson <rth@redhat.com>
6675
6676 * unroll.c (unroll_loop): Zero label_map.
6677
6678 * gcse.c: Include except.h.
6679 * Makefile.in (gcse.o): Update.
6680
6681 2002-03-24 Richard Henderson <rth@redhat.com>
6682
6683 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6684 Do resolve_unique_section before shared data clause.
6685
6686 2002-03-24 Richard Henderson <rth@redhat.com>
6687
6688 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6689
6690 2002-03-24 Richard Henderson <rth@redhat.com>
6691
6692 * recog.c (peephole2_optimize): Split blocks when EH insns are
6693 generated in the middle of a block. Do global life update if
6694 zapped EH edges.
6695
6696 2002-03-24 Richard Henderson <rth@redhat.com>
6697
6698 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6699
6700 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6701
6702 preprocessor/3951
6703 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6704 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6705 (init_dependency_output): Don't make no_output decision here.
6706
6707 2002-03-24 Andrew Cagney <ac131313@redhat.com>
6708
6709 * stmt.c (check_for_full_enumeration_handling): Remove tests of
6710 warn_switch. Update description.
6711 (expand_end_case_type): Call check_for_full_enumeration_handling
6712 when warn_switch.
6713
6714 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6715
6716 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6717 (m68hc11_split_move): Call it to see if the source and destination
6718 operands use the same direction auto inc/dec mode, otherwise make the
6719 source an offsetable memory operand and generate an add.
6720
6721 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6722
6723 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6724 register for operand 2.
6725 ("*subsi3_zero_extendqi"): Likewise.
6726 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6727 bits so that it is compatible with a pop.
6728 ("*andhi3_gen"): Likewise.
6729 ("xorhi3"): Likewise.
6730
6731 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6732
6733 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6734 -pedantic here...
6735 (cpp_post_options): ... not here.
6736
6737 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6738 Aldy Hernandez <aldyh@redhat.com>
6739
6740 Removal of separate preprocessor cpp0.
6741
6742 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6743 cpp0, install-common): Update.
6744 * c-common.c (flag_preprocess_only): New.
6745 (c_common_init): Preprocess for -E.
6746 * c-common.h (flag_preprocess_only): New.
6747 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6748 * c-objc-common.c (c_init_decl_processing): Exit quickly
6749 for NULL return from c_common_init.
6750 * cpplib.h (cpp_preprocess_file): New.
6751 * cppmain.c (main, general_init, pfile, progname): Remove.
6752 (do_preprocessing): Rename cpp_preprocess_file, don't call
6753 cpp_finish. Don't close stdout here.
6754 (setup_callbacks): Update prototype.
6755 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6756 Update.
6757 * tradcpp.c (main): Ignore -quiet.
6758 objc:
6759 * lang-specs.h (default_compilers): Preprocess with cc1obj.
6760
6761 2002-03-24 Richard Henderson <rth@redhat.com>
6762
6763 PR optimization/5742
6764 * machmode.def: Add inner mode field to complex modes.
6765 * config/mips/mips.c (mips_function_value): Always define. Add
6766 new argument to handle libcalls.
6767 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6768 (FUNCTION_VALUE): Likewise.
6769 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6770 * config/mips/mips-protos.h: Update.
6771
6772 2002-03-23 Richard Henderson <rth@redhat.com>
6773
6774 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6775 * config/sparc/sparc-protos.h: Update.
6776 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6777
6778 2002-03-23 Richard Henderson <rth@redhat.com>
6779
6780 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6781 _start or _init begins the text segment.
6782
6783 2002-03-23 David Edelsohn <edelsohn@gnu.org>
6784
6785 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
6786 not HOST_WIDEST_INT.
6787 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6788
6789 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
6790
6791 PR java/5489
6792 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6793 operand argument to output_return_instruction.
6794 * arm.c (arm_print_operand, case 'd'): If the operand is
6795 const_true_rtx then just return.
6796 (arm_print_operand, case 'D'): If the operand is const_true_rtx
6797 then abort.
6798
6799 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6800
6801 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6802 (Warning Options): Document -Wswitch-default.
6803 * toplev.c (W_options): Add -Wswitch-default. Update comment on
6804 -Wswitch.
6805 (warn_switch_default): Define variable.
6806 (warn_switch): Update comment.
6807 * flags.h (warn_switch_default): Declare variable.
6808 (warn_switch): Update comment.
6809 * stmt.c (expand_end_case): Check for and, when
6810 warn_switch_no_default, warn of a missing default case.
6811
6812 2002-03-23 Alan Modra <amodra@bigpond.net.au>
6813
6814 * real.h (N): Special case 128 bit doubles.
6815
6816 * combine.c (simplify_comparison): When widening modes, ignore
6817 sign extension on CONST_INTs.
6818
6819 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6820
6821 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6822 passed to adjust_address. Fix comment formatting.
6823
6824
6825 2002-03-22 Zack Weinberg <zack@codesourcery.com>
6826
6827 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6828 Always make REAL_VALUE_TYPE a struct containing an array of
6829 HOST_WIDE_INT, not a double. Tidy up the code deciding how
6830 big it is. Don't declare or use union real_extract.
6831
6832 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6833 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6834 (print_operand), config/arm/arm.c (output_move_double),
6835 config/arm/arm.md (consttable_4, consttable_8),
6836 config/romp/romp.c (output_fpops), config/s390/s390.h
6837 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6838 (xtensa_output_literal): Don't use union real_extract.
6839
6840 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6841 (sfmode_constant_to_ulong), config/ns32k/merlin.h
6842 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6843 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6844 (PRINT_OPERAND): Don't use local version of union
6845 real_extract.
6846
6847 * config/convex/convex.c (check_float_value), config/vax/vax.c
6848 (vax_float_literal), config/m88k/m88k.md (divdf3),
6849 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6850 config/pdp11/pdp11.c (output_move_quad): Don't do host
6851 arithmetic on target floating point quantities.
6852
6853 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6854 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6855
6856 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6857 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6858
6859 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6860 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6861 INFINITY.
6862 * print-rtl.c (print_rtx): Disable code which needs
6863 floating-point emulator.
6864 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6865 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6866 depending on HOST_FLOAT_FORMAT to be defined properly.
6867
6868 * config/1750a/1750a.c (get_double, float_label): Delete.
6869 (print_operand): Delete huge commented-out chunk. Use
6870 REAL_VALUE_TO_DECIMAL.
6871 * config/1750a/1750a-protos.h: Delete prototypes of deleted
6872 functions.
6873 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6874 IEEE_FLOAT_FORMAT.
6875 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6876 Use REAL_VALUE_TO_DECIMAL as ELF version does.
6877 * config/m88k/m88k.c (real_power_of_2_operand,
6878 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6879 real_extract out of the union; run the input through
6880 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6881 from that into the union.
6882 * config/pdp11/pdp11.c (output_move_double): Rearrange
6883 parentheses to make automatic indenter happy.
6884
6885 * doc/tm.texi (Cross-compilation): Rename node to "Floating
6886 Point" and rewrite to describe current situation. Also adjust
6887 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6888 match code.
6889 * doc/rtl.texi: Adjust cross reference.
6890
6891 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6892
6893 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6894 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6895 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6896 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6897 prevent use of sp as a reload register.
6898 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6899 non_acc_reg_operand.
6900 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6901 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6902 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6903 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6904
6905 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6906
6907 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6908 * cpplex.c (unterminated): Delete.
6909 (parse_string): No string literal may extend over multiple
6910 lines. Suppress the error when preprocessing assembly.
6911 * cppmain.c (scan_translation_unit): Strings are single-line.
6912
6913 * doc/cpp.texi: Update to match.
6914
6915 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6916
6917 PR optimization/5854
6918 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6919 Shut up warnings.
6920 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6921 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6922 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6923 const0 if scratch register was not allocated.
6924 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6925 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6926 with GEN_INT (...).
6927 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6928 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6929 with GEN_INT (...) everywhere. Remove constraints in define_split
6930 patterns.
6931 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6932 require scratch register for setting 0 into regs/non-pushable memory.
6933
6934 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6935
6936 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6937 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6938
6939 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
6940
6941 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
6942 * cppinit.c (cpp_create_reader): On by default.
6943 (cpp_handle_option): Handle -W[no-]endif-labels.
6944 (cpp_post_options): Also enable if -pedantic.
6945 * cpplib.c (do_else): Use it.
6946 (do_endif): Likewise.
6947 * doc/cppopts.texi: Document new option.
6948 * doc/invoke.texi: Document new option.
6949
6950 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
6951
6952 * config/i386/i386.c, config/i386/i386.md: Change all occurences
6953 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6954
6955 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6956
6957 * flow.c (calculate_global_regs_live): Clear aux fields of
6958 ENTRY and EXIT.
6959
6960 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6961
6962 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6963 REG or MEM subregs, pass rtx * instead of rtx to it.
6964 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6965 rtx * instead of rtx to alter_subreg.
6966 * config/m32r/m32r.c (gen_split_move_double): Likewise.
6967 * config/pj/pj.c (pj_output_rval): Likewise.
6968
6969 2002-03-22 Richard Henderson <rth@redhat.com>
6970
6971 PR target/3177
6972 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6973 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6974 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6975 (ia64_expand_prologue): Look at int_regs, not words, for number
6976 of incomming int regs.
6977
6978 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
6979
6980 * expr.c (expand_expr): A RESULT_DECL is part of a call.
6981
6982 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
6983
6984 * toplev.c (flag_loop_optimize, flag_crossjumping):
6985 New static variables.
6986 (rest_of_compilation): Conditionalize crossjumping and
6987 loop optimizer.
6988 (parse_options_and_default_flags): Default loop_optimize and
6989 crossjumping.
6990 (lang_independent_options): Add -fcrossjumping and -floop-optimize
6991 * invoke.texi (crossjumping, loop-optimize): Document.
6992
6993 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6994
6995 * real.c (eiisneg): Move outside #ifdef NANS.
6996
6997 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
6998
6999 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
7000 frequencies match; avoid match on different loop depths.
7001 (try_crossjump_to_bb): Kill tests that no longer brings time
7002 savings.
7003 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
7004 updating code.
7005 (split_edge): Likewise.
7006
7007 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
7008 variable.
7009
7010 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
7011 * cfgrtl.c: Include insn-config.h
7012 (split_block) Dirtify block in presence of conditional execution
7013
7014 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7015
7016 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
7017 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
7018 (function_arg): Constify CUMULATIVE_ARGS.
7019 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
7020 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
7021 (UNITS_PER_DOUBLE): New macro.
7022 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
7023 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
7024 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
7025 fp_regs and stack_words.
7026 (EABI_FLOAT_VARARGS_P): New macro.
7027 * config/mips/mips.c (struct mips_arg_info): New.
7028 (mips_arg_info): New function.
7029 (function_arg_advance): Use it. Add adjustment instructions here
7030 rather than in function_arg.
7031 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
7032 for VOIDmode at the beginning of the function.
7033 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
7034 (function_arg_pass_by_reference): Likewise.
7035 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
7036 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
7037 (mips_va_start): Likewise. Use the new stack_words field of
7038 CUMULATIVE_ARGS to set up overflow area. Reformat.
7039 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
7040 doubles and other types, aligning the overflow pointer for non-doubles
7041 too. Remove some code duplication. Replace hard-coded constants.
7042
7043 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7044
7045 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
7046 (CLASS_UNITS): Undefine.
7047 (CLASS_MAX_NREGS): Use FP_INC.
7048 * config/mips/mips.c (compute_frame_size): Likewise.
7049 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
7050
7051 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7052
7053 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
7054 prototype, and handle lexing numbers and identifiers.
7055 (parse_identifier): Update to new form of parse_slow.
7056 (parse_number): Fast path only, use parse_slow otherwise.
7057 (_cpp_lex_direct): Update calls to parse_number.
7058
7059 2002-03-21 DJ Delorie <dj@redhat.com>
7060
7061 * bb-reorder.c (make_reorder_chain_1): Protect against
7062 when redundant edges are omitted.
7063 * predict.c (dump_prediction): Likewise.
7064
7065 2002-03-21 Richard Henderson <rth@redhat.com>
7066
7067 PR target/5996
7068 * fixinc/inclhack.def (solaris_stdio_tag): New.
7069 * fixinc/fixincl.x: Regenerate.
7070
7071 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
7072
7073 PR c/5597
7074 * c-typeck.c (process_init_element): Flag non-static
7075 initialization of a flexible array member as illegal.
7076
7077 2002-03-22 Alan Modra <amodra@bigpond.net.au>
7078
7079 * config/rs6000/t-linux64: New.
7080 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
7081 t-ppccomm. Use t-rs6000 and t-linux64.
7082 (powerpc64-*-gnu* <tmake_file>): Likewise.
7083 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
7084 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
7085 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
7086
7087 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
7088
7089 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
7090 flag_really_no_inline instead of optimize == 0.
7091
7092 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
7093
7094 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
7095
7096 * flags.h (flag_really_no_inline): New.
7097
7098 * c-common.c (c_common_post_options): Initialize
7099 flag_really_no_inline.
7100
7101 * toplev.c (flag_really_no_inline): New.
7102
7103 2002-03-21 Jakub Jelinek <jakub@redhat.com>
7104
7105 * config/avr/avr.md (length): Fix length computation for
7106 conditional branches.
7107
7108 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
7109
7110 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
7111 sdbout.o, profile.o): Update.
7112 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
7113 langhook.
7114 * c-common.h (gettags): Move here from tree.h.
7115 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
7116 insert_block, getdecls, kept_level_p, global_bindings_p): New.
7117 * dbxout.c (dbxout_init): Use getdecls langhook.
7118 * expr.c (expand_expr): Use insert_block langhook.
7119 * fold-const.c: Include langhooks.h.
7120 (fold_range_test, fold_binary_op_with_conditional_arg,
7121 fold): Use global_bindings_p langhook.
7122 * integrate.c (expand_inline_function): Use insert_block langhook.
7123 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
7124 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
7125 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
7126 LANG_HOOKS_GETDECLS): New.
7127 (LANG_HOOKS_INITIALIZER): Update.
7128 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
7129 langhook.
7130 * langhooks.h (struct lang_hooks_for_decls): New.
7131 (struct lang_hooks): Update.
7132 * profile.c: Include langhooks.h.
7133 (output_func_start_profiler): Use new langhooks.
7134 * sdbout.c: Include langhooks.h.
7135 (sdbout_init, sdbout_finish): Use getdecls langhook.
7136 * stmt.c: Include langhooks.h.
7137 (expand_fixup, fixup_gotos): Use new langhooks.
7138 * stor-layout.c: Include langhooks.h.
7139 (variable_size): Use global_bindings_p langhook.
7140 * toplev.c (compile_file): Use getdecls langhook.
7141 * tree-inline.c (remap_block): Use insert_block langhook.
7142 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
7143 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
7144
7145 2002-03-21 Richard Henderson <rth@redhat.com>
7146
7147 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
7148 constants in .data when -fpic.
7149
7150 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7151
7152 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
7153 where appropriate.
7154
7155 2002-03-21 Tom Tromey <tromey@redhat.com>
7156
7157 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
7158
7159 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7160
7161 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
7162
7163 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
7164
7165 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
7166 Richard Henderson <rth@redhat.com>
7167
7168 PR c/5354
7169 * c-common.c (c_expand_expr): Preserve result of a statement
7170 expression if needed.
7171
7172 2002-03-21 Jakub Jelinek <jakub@redhat.com>
7173
7174 PR bootstrap/4195
7175 * genrecog.c (maybe_both_true_mode): Remove.
7176 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
7177 * machmode.def (Pmode): Likewise.
7178
7179 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
7180
7181 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
7182 (nonlocal_mentioned_p_1): New function.
7183 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
7184 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
7185 (mark_constant_function): Recognize pure functions.
7186 * rtl.h (global_reg_mentioned_p): New prototype.
7187 * rtlanal.c (global_reg_mentioned_p,
7188 global_reg_mentioned_p_1): New function.
7189
7190 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7191
7192 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
7193 UNIX assert.h.
7194 * fixinc/fixincl.x: Regenerate.
7195
7196 2002-03-20 Jason Merrill <jason@redhat.com>
7197
7198 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
7199
7200 2002-03-20 Michael Meissner <meissner@redhat.com>
7201
7202 * doc/invoke.texi (Optimize Options): Document that -O2 sets
7203 -fstrict-aliasing.
7204
7205 2002-03-20 Bob Wilson <bob.wilson@acm.org>
7206
7207 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
7208 ".literal_position" directive before the constant pool.
7209
7210 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7211
7212 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
7213 Add Craig Rodrigues.
7214 Add Brad Lucier to testers.
7215
7216 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7217
7218 PR target/4792
7219 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
7220 to if_then_else.
7221 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
7222 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
7223 instead of insn_extract.
7224
7225 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7226
7227 PR bootstrap/4192
7228 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
7229
7230 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
7231 stmt if some case has been output.
7232
7233 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7234
7235 PR c/5972
7236 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
7237 movsfcc_1, movdfcc_1): Add %O2.
7238 * config/i386/i386.c (print_operand): Handle %ON.
7239 Print . before float condition codes in Sun as cmov syntax.
7240 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
7241 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
7242 no longer true.
7243
7244 2002-03-20 Philip Blundell <pb@nexus.co.uk>
7245
7246 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
7247 return instruction if PC was popped.
7248
7249 2002-03-20 Bob Wilson <bob.wilson@acm.org>
7250
7251 * config/xtensa/xtensa.md: Remove unused type attributes.
7252 (adddi_carry, subddi_carry): Change type attribute to "multi".
7253
7254 2002-03-19 Dale Johannesen <dalej@apple.com>
7255
7256 PR optimization/5999, middle-end/5731
7257 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
7258 multiplications by reciprocals.
7259
7260 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
7261
7262 * Makefile.in: Update.
7263 * c-common.c: Include langhooks.h.
7264 (inline_forbidden_p): Use new hook.
7265 * diagnostic.c: Include langhooks.h.
7266 (format_with_decl, announce_function,
7267 default_print_error_function): Use new hook.
7268 * dwarf2out.c (dwarf2_name): Use new hook.
7269 * function.c: Include langhooks.h.
7270 (init_function_start): Use new hook.
7271 * langhooks-def.h (lhd_decl_printable_name): New.
7272 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
7273 (LANGHOOKS_INITIALIZER): Update.
7274 * langhooks.c (lhd_decl_printable_name): New.
7275 * langhooks.h (struct lang_hooks): New hook.
7276 * toplev.c (decl_name, decl_printable_name): Remove.
7277 (open_dump_file): Use new hook.
7278 (process_options): Remove old hook.
7279 * tree.h (decl_printable_name): Remove.
7280 objc:
7281 * objc-act.c (objc_init): Remove old hook.
7282 (objc_printable_name): Export.
7283 * objc-act.h (objc_printable_name): New.
7284 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
7285
7286 2002-03-19 Jim Blandy <jimb@redhat.com>
7287
7288 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
7289 the start_source_file debug hook, not the current line number.
7290
7291 2002-03-19 Richard Henderson <rth@redhat.com>
7292
7293 * flow.c (EH_USES): Provide default.
7294 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
7295 * doc/tm.texi (EH_USES): New.
7296
7297 * config/ia64/ia64.c (ia64_eh_uses): New.
7298 * config/ia64/ia64-protos.h: Update.
7299 * config/ia64/ia64.h (EH_USES): New.
7300
7301 2002-03-19 Richard Henderson <rth@redhat.com>
7302
7303 * varasm.c (output_constant_def): Fix stupid typo.
7304
7305 2002-03-19 Richard Henderson <rth@redhat.com>
7306
7307 PR 5879
7308 * except.c (current_function_has_exception_handlers): New.
7309 * except.h: Declare it.
7310 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
7311 Combine tests that disable all sibcalls for the function.
7312
7313 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
7314
7315 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
7316 for INTEGER_CST.
7317
7318 2002-03-19 Richard Henderson <rth@redhat.com>
7319
7320 PR 5977, 5991
7321 * config/ia64/ia64.c: Revert 2002-03-01 patch.
7322 * config/ia64/ia64.h (INIT_EXPANDERS): New.
7323
7324 2002-03-19 Jim Blandy <jimb@redhat.com>
7325
7326 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
7327 name, even if the replacement list contains no tokens, as required
7328 by Dwarf.
7329
7330 2002-03-19 Jason Merrill <jason@redhat.com>
7331
7332 * varasm.c (globalize_decl): Get the name from the RTL, not
7333 DECL_ASSEMBLER_NAME.
7334
7335 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
7336
7337 2002-03-19 Bob Wilson <bob.wilson@acm.org>
7338
7339 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
7340 subdi_carry): Define.
7341
7342 2002-03-19 David Edelsohn <edelsohn@gnu.org>
7343
7344 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
7345 about -fpic/-fPIC if extra_warnings set.
7346
7347 2002-03-19 David Edelsohn <edelsohn@gnu.org>
7348
7349 * expr.c (expand_expr): Sign-extend CONST_INT generated from
7350 TREE_STRING_POINTER.
7351 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
7352
7353 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7354
7355 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
7356 in favor of SP if FRAME_POINTER_REQUIRED is false.
7357
7358 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
7359
7360 * emit-rtl.c (gen_int_mode): New function.
7361 * rtl.h: Prototype for it.
7362 * combine.c (make_extraction, simplify_comparison), expmed.c
7363 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
7364 (convert_modes, store_field), optabs.c (expand_fix),
7365 simplify-rtx.c (neg_const_int, simplify_unary_real),
7366
7367 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
7368 Use it instead of GEN_INT (trunc_int_for_mode (...)).
7369
7370 2002-03-19 Jakub Jelinek <jakub@redhat.com>
7371
7372 PR c/5656
7373 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
7374 convert_parm_for_inlining.
7375 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7376 Define.
7377 * langhooks-def.h: Likewise.
7378 * objc/objc-lang.c: Likewise.
7379 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
7380 function.
7381 * tree-inline.c (initialize_inlined_parameters):
7382 Call convert_parm_for_inlining lang hook if needed.
7383 * c-typeck.c (c_convert_parm_for_inlining): New function.
7384 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
7385
7386 2002-03-18 Mark Mitchell <mark@codesourcery.com>
7387
7388 * calls.c (precompute_arguments): Do not assume that temporaries
7389 can be destroyed after expanding the argument.
7390 (expand_call): Likewise.
7391
7392 2002-03-15 Eric Christopher <echristo@redhat.com>
7393
7394 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
7395 Fix register preference on last change.
7396 * config/mips/mips.c (mips_return_in_memory): New function.
7397 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
7398 * config/mips/mips-protos.h: Declare.
7399 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
7400 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
7401
7402 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
7403
7404 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
7405 a register too.
7406 (anddi3, iorsi3): Likewise.
7407
7408 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
7409 use %gprel for symbols that are going to be placed in linkonce
7410 sections.
7411
7412 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
7413 RETURN_ADDRESS_POINTER_REGNUM to $ra.
7414 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
7415 not needed. Disregard leaf_function_p().
7416 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
7417 mips16 frame pointer.
7418 * config/mips/mips.md (store ra): Only to small SP offsets.
7419 2001-08-22 Graham Stott <grahams@redhat.com>
7420 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
7421 return a REG rtx for the return address register.
7422
7423 2002-03-18 Bob Wilson <bob.wilson@acm.org>
7424
7425 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
7426 constant-pool addresses as "mode-dependent".
7427 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
7428
7429 2002-03-18 Jakub Jelinek <jakub@redhat.com>
7430
7431 PR target/5740
7432 * expr.c (emit_group_load): Use extract_bit_field if
7433 needed for CONCAT arguments.
7434
7435 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
7436
7437 PR target/4863
7438 * arm.md (tablejump): Make this a define_expand. For PIC add the
7439 offset to the base of the table.
7440 (thumb_tablejump): Matcher for Thumb tablejump insn.
7441 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
7442 as the difference of two labels.
7443 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7444 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
7445 tables in the code.
7446 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7447 * arm.c (get_jump_table_size): If the table is not in the text
7448 section, return zero.
7449
7450 2002-03-18 Bernd Schmidt <bernds@redhat.com>
7451
7452 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7453 of gen_rtx_SUBREG.
7454 (arm_reload_out_hi): Use gen_lowpart instead of
7455 gen_rtx_SUBREG to access QImode components.
7456 * config/arm/arm.md: Disable zero_extend split for QImode
7457 subregs in BIG_ENDIAN mode.
7458 (storehi_bigend): Match use of least significant byte.
7459 (storeinthi): Remove extraneous SUBREG.
7460 Add missing construction of operands[2].
7461 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7462 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7463 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7464
7465 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
7466
7467 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7468 any_operand.
7469
7470 2002-03-17 Richard Henderson <rth@redhat.com>
7471
7472 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7473 explicitly.
7474
7475 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7476
7477 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7478 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7479
7480 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7481
7482 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7483
7484 * predict.c (estimate_bb_frequencies): Delete unused variables.
7485
7486 2002-03-17 Richard Henderson <rth@redhat.com>
7487
7488 * config/ia64/ia64.c (ia64_attribute_table): Move before
7489 targetm definition. Make static.
7490
7491 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
7492
7493 * c-common.h (yyparse, c_common_parse_file): New.
7494 * c-lang.c: Include c-common.h.
7495 (LANG_HOOKS_PARSE_FILE): Redefine.
7496 * c-lex.c: Include c-common.h.
7497 (yyparse): Rename c_common_parse_file. Call yyparse.
7498 * c-parse.in (yyparse): Remove macro.
7499 * c-tree.h (yyparse_1): Remove.
7500 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7501 (LANG_HOOKS_INITIALIZER): Update.
7502 * langhooks.h (struct lang_hoooks): New hook parse_file.
7503 * toplev.c (compile_file): Use parse_file hook.
7504 * tree.h (yyparse): Remove.
7505 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
7506
7507 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7508
7509 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7510 float_truncate, not fix.
7511 ("*truncdfsf2_real"): Ditto.
7512 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7513
7514 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7515
7516 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
7517
7518 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7519 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
7520 where appropriate. Make the second reference to
7521 leaf_function_p a function call, as intended. Reindented.
7522
7523 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7524 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7525
7526 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7527 add register to non-constant into sp.
7528
7529 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7530 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7531 (mips16_gp_pseudo_rtx): Lose.
7532 (INIT_EXPANDERS): Deleted.
7533 * config/mips/mips.c (mips_init_machine_status): New.
7534 (mips_free_machine_status): New.
7535 (mips_mark_machine_status): New.
7536 (override_options): Set them.
7537 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7538 (struct machine_function): ... new. Replaced all references.
7539 (mips_add_gc_roots): Don't mark them.
7540 (embedded_pic_fnaddr_reg): New, extracted from...
7541 (embedded_pic_offset): ... here.
7542 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7543 (movsi): Likewise.
7544
7545 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7546
7547 * cppinit.c: Revert -MD removal.
7548
7549 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7550
7551 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7552 soft registers by default for 68HC12.
7553 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7554 when compiling with -fomit-frame-pointer.
7555 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7556 (expand_epilogue): Likewise.
7557 (m68hc11_gen_rotate): Use exg when rotating by 8.
7558
7559 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7560
7561 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7562 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7563 (splits): Remove unused add splits.
7564 ("*addhi3_68hc12"): Tune constraints.
7565 ("addhi_sp"): Try to use X instead of Y in all cases and if the
7566 constant fits in 8-bits and D is dead use abx/aby instructions.
7567 ("*addhi3"): Remove extern declaration of ix_reg.
7568 ("*subsi3"): Optimize and provide new split.
7569 ("subhi3"): Cleanup.
7570 ("*subhi3_sp"): Avoid saving X if we know it is dead.
7571 (arith splits): For 68hc12 save the address register on the stack
7572 and do the arithmetic operation with a pop.
7573
7574 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7575
7576 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7577 allocating QImode in address registers.
7578 ("*movqi_m68hc11"): Likewise.
7579
7580 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
7581
7582 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7583
7584 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7585
7586 * cppinit.c (print_help): Display -MD and -MMD.
7587 Don't display usage string. Update assertion syntax and
7588 typo.
7589 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7590 (cpp_handle_option): Update.
7591
7592 2002-03-15 Chris Demetriou <cgd@broadcom.com>
7593
7594 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7595 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7596 and define it so that regardless of target CPU size,
7597 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7598 of "int" rather than "long."
7599
7600 2002-03-15 Richard Henderson <rth@redhat.com>
7601
7602 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7603 size as a tree.
7604
7605 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7606
7607 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7608 ("tstqi" split): Avoid using memory for tstqi on address register.
7609 (splits): Remove constraints.
7610 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7611 ("cmpdf", "cmpsf"): Remove since not used.
7612 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7613 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7614
7615 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7616
7617 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7618 ("neghi2"): Tighten constraints.
7619 ("one_cmplsi2"): Optimize and simplify split.
7620 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7621
7622 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7623
7624 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7625 and split of AND operation to clear the upper bits.
7626 ("*logicalsi3_zextqi"): Likewise.
7627 ("*logicallhi3_zexthi_ashift8"): Likewise.
7628 ("*logicalsi3_silshr16"): Likewise.
7629 ("logicalsi3_silshl16"): Likewise.
7630 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7631
7632 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7633
7634 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7635 (m68hc11_indirect_p): New function.
7636 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7637 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7638 TARGET_M6812.
7639 (asm_print_register): Likewise.
7640 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7641 (m68hc11_indirect_p): Declare.
7642 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7643 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7644 (TARGET_SWITCHES): New option -mrelax.
7645 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7646 destination.
7647 ("iorsi3", "xorsi3"): Likewise.
7648 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7649 ("*andhi3_mem"): New to handle destination in memory with bclr
7650 and a scratch register.
7651 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7652 ("*andhi3_const"): New when operand2 is constant.
7653 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7654 ("*andhi3_gen"): Cleanup of the old "andhi3".
7655 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7656 ("xorqi3"): Update constraints.
7657
7658 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7659
7660 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7661 for reg_equiv_memory_loc when the operand is a register that does
7662 not get a hard register (stack location).
7663 (tst_operand): After reload, accept all memory operand.
7664 (symbolic_memory_operand): Fix detection of symbolic references.
7665 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7666 accept symbols and any constant.
7667
7668 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7669
7670 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7671 note on the insn that sets the soft frame register.
7672 (must_parenthesize): ix and iy are also reserved names.
7673 (print_operand_address): One more place where parenthesis are required
7674 to avoid confusion with register names.
7675 (m68hc11_gen_movhi): Allow push of stack pointer.
7676 (m68hc11_check_z_replacement): Fix handling of parallel with a
7677 clobber.
7678 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7679 the replacement register is.
7680 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7681 and D8_REGS classes.
7682 (MODES_TIEABLE_P): All modes are tieable except QImode.
7683
7684 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7685
7686 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7687 (___subdi3): Likewise.
7688 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7689 (__map_data_section): Optimize 68hc11 case.
7690
7691 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7692
7693 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7694 than a shift to avoid adding a register with itself.
7695 (m68hc11_memory_move_cost): Take into account NO_REGS.
7696 (m68hc11_register_move_cost): Update and use memory move cost
7697 for soft registers.
7698 (m68hc11_address_cost): Make cost of valid offset not 0 so that
7699 it gives more opportunities to cse to optimize.
7700 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7701 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7702
7703 2002-03-15 Mark Mitchell <mark@codesourcery.com>
7704
7705 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7706 * c-common.def (CLEANUP_STMT): New tree node.
7707 * c-common.h (CLEANUP_DECL): New macro.
7708 (CLEANUP_EXPR): Likewise.
7709 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7710 * expr.c (expand_expr): Tidy.
7711 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7712 * tree-inline.c (initialize_inlined_parameters): Clean up
7713 new local variables.
7714
7715 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7716
7717 PR bootstrap/4128
7718 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7719 before movrXX only, use reg_overlap_mentioned_p.
7720 Only special case NE if just one insn can be generated.
7721
7722 2002-03-15 Jason Merrill <jason@redhat.com>
7723
7724 * varasm.c (assemble_variable): Call resolve_unique_section before
7725 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
7726 of error_mark_node.
7727
7728 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
7729
7730 PR target/5170
7731 * arm.md (split pattern for thumb shiftable immediates): Add comment
7732 explaining non-obvious test.
7733
7734 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
7735
7736 PR target/5712
7737 * arm.md (movaddr, movaddr_insn): Delete.
7738
7739 2002-03-15 Jason Merrill <jason@redhat.com>
7740
7741 * toplev.c (wrapup_global_declarations): Clarify variable handling.
7742 -fkeep-static-consts doesn't apply to comdats.
7743
7744 2002-03-14 Richard Henderson <rth@redhat.com>
7745
7746 * c-decl.c: Include c-pragma.h.
7747 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7748 (finish_function): Tidy.
7749 * c-pragma.c: Include c-common.h.
7750 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7751 (handle_pragma_weak): Use them.
7752 (init_pragma): Register pending_weaks.
7753 * c-pragma.h (maybe_apply_pragma_weak): Declare.
7754 * print-tree.c (print_node): Print DECL_WEAK.
7755 * varasm.c (mark_weak_decls): Remove.
7756 (remove_from_pending_weak_list): Remove.
7757 (add_weak): Remove.
7758 (asm_emit_uninitialised): Call globalize_decl for weak commons.
7759 (weak_decls): Make a tree_list.
7760 (declare_weak): Cons weak_decls directly.
7761 (globalize_decl): Remove weak_decls elements directly.
7762 (weak_finish): Simplify weak_decls walk. Don't weaken unused
7763 symbols. Don't pretend to handle aliases.
7764 (init_varasm_once): Update weak_decls registry.
7765 * Makefile.in: Update dependencies.
7766
7767 2002-03-14 Richard Henderson <rth@redhat.com>
7768
7769 PR target/5312
7770 * config/ia64/ia64.c: Include tm_p.h last.
7771 (gen_nop_type): Remove duplicate definition.
7772 (cycle_end_fill_slots): Set sched_data for second L slot.
7773 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7774 (nop_cycles_until): Fix typos.
7775
7776 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7777
7778 PR optimization/5891
7779 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7780
7781 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7782
7783 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7784 descriptors correctly.
7785
7786 2002-03-14 Michael Meissner <meissner@redhat.com>
7787
7788 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7789 100, allowing MAX_UNROLLED_INSNS to be overridden.
7790
7791 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7792 --param.
7793
7794 * unroll.c (params.h): Include.
7795 (MAX_UNROLLED_INSNS): Delete, now in params.h.
7796
7797 * doc/invoke.texi (--param max-unroll-insns): Document.
7798
7799 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7800
7801 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7802
7803 * arm.md: Fix warnings about constraints in peepholes and splits.
7804
7805 2002-03-14 Zack Weinberg <zack@codesourcery.com>
7806
7807 * cpphash.h (struct lexer_state): Remove line_extension member.
7808 * cpplib.c (dequote_string, do_linemarker): New functions.
7809 (linemarker_dir): New data object.
7810 (DIRECTIVE_TABLE): No longer need to interpret #line in
7811 preprocessed source. Delete obsolete comment about return
7812 values of handlers.
7813 (end_directive, directive_diagnostics, _cpp_handle_directive):
7814 Don't muck with line_extension.
7815 (directive_diagnostics): No need to issue warnings for
7816 linemarkers here.
7817 (_cpp_handle_directive): Issue warnings for linemarkers here,
7818 when appropriate. Dispatch linemarkers to do_linemarker, not
7819 do_line.
7820 (do_line): Code to handle linemarkers split out to do_linemarker.
7821 Convert escape sequences in filename argument, both places.
7822
7823 * cppmacro.c (quote_string): Rename cpp_quote_string and
7824 export. All callers changed.
7825 * cpplib.h (cpp_quote_string): Prototype.
7826 * cppmain.c (print_line): Call cpp_quote_string on to_file
7827 before printing it.
7828
7829 * doc/cpp.texi: Document that escapes are now interpreted in
7830 #line and in linemarkers, and that non-printing characters are
7831 converted to octal escapes when linemarkers are generated.
7832
7833 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
7834
7835 * emit-rtl.c (try_split): Use delete_insns.
7836 * recog.c (split_all_insns): Fix terminating condition.
7837
7838 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7839 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7840
7841 PR target/5828
7842 * arm.c (arm_output_epilogue): Fix floating-point register save
7843 adjustment when using a frame pointer.
7844
7845 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
7846
7847 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7848 * config/mips/mips.c (compute_frame_size): Retrofit them here.
7849 (save_restore_insns, mips_expand_epilogue): And here.
7850 (build_mips16_call_stub): And here.
7851 (mips_function_value): Use the new macros to decide whether a single
7852 or complex float can be returned in floating-point registers. Return
7853 a parallel rtx in the complex case.
7854
7855 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
7856
7857 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7858 call after liveness analysis.
7859
7860 * recog.c (split_insn): Use delete_insn_and_edges.
7861
7862 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7863 instructions to have branch prediction notes.
7864 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7865
7866 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
7867
7868 * configure.in: Don't pass -Wno-long-long to a ADA compiler
7869 that doesn't support it.
7870 * configure: Regenerate.
7871
7872 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7873
7874 PR target/5626
7875 * config/sparc/sparc.md (normal_branch, inverted_branch,
7876 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7877 inverted_fp_branch): Adjust calls to output_cbranch.
7878 Set length attribute.
7879 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7880 output_v9branch. Set length attribute.
7881 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7882 predicates.
7883 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7884 (output_cbranch): Likewise. Handle far branches.
7885 (output_v9branch): Handle far branches.
7886 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7887 Adjust prototypes.
7888 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7889 noov_compare64_op predicates.
7890
7891 2002-03-13 Jason Merrill <jason@redhat.com>
7892
7893 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7894 into the function and constify it.
7895 * gthr-dce.h, gthr-solaris.h: Likewise.
7896
7897 2002-03-13 David Edelsohn <edelsohn@gnu.org>
7898
7899 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7900 * config/rs6000/rs6000.c (rs6000_va_arg): Use
7901 std_expand_builtin_va_arg if not ABI_V4.
7902
7903 2002-03-13 Jason Merrill <jason@redhat.com>
7904
7905 * varasm.c (globalize_decl): New fn.
7906 (assemble_start_function): Use it.
7907 (asm_emit_uninitialized): Use it.
7908 (assemble_alias): Use it.
7909 (assemble_variable): Use it.
7910
7911 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
7912
7913 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7914 2002-03-12 internal visibility change.
7915 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7916 visibility into SYMBOL_REF_FLAG.
7917
7918 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
7919
7920 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7921 VOIDmode operand. Add compile-time optimization for constant results.
7922
7923 2002-03-12 Jason Merrill <jason@redhat.com>
7924
7925 * c-typeck.c (convert_for_assignment): Don't allow conversions
7926 between pointers and references. Only allow lvalues to convert to
7927 reference.
7928
7929 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
7930
7931 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7932 before prologue, to avoid scheduling problems.
7933
7934 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7935
7936 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7937 (ELIMINABLE_REGS): Add sfp->sp.
7938 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7939
7940 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7941
7942 PR optimization/5892
7943 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7944
7945 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7946
7947 * loop.c (basic_induction_var): Don't call convert_modes if mode
7948 classes are different.
7949
7950 2002-03-12 Richard Henderson <rth@redhat.com>
7951
7952 PR optimization/5901
7953 * function.c (reposition_prologue_and_epilogue_notes): Position
7954 the markers after/before the last/first insn not deleted.
7955
7956 2002-03-12 Richard Henderson <rth@redhat.com>
7957
7958 PR optimization/5878
7959 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7960 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7961 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7962
7963 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7964 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7965 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7966
7967 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7968 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7969 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7970 also. Don't set it if not flag_pic.
7971 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7972 to be INVALID_REGNUM when not used.
7973
7974 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
7975
7976 * expmed.c (store_bit_field): Reset alias set for memory.
7977 (extract_bit_field): Same.
7978
7979 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7980
7981 * c-common.c (c_tree_code_type, c_tree_code_length,
7982 c_tree_code_name, add_c_tree_codes): Delete.
7983 * c-common.h (add_c_tree_codes): Delete.
7984 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7985 Define.
7986 * c-objc-common.c (c_objc_common_init): Don't call
7987 add_c_tree_codes, instead set lang_unsafe_for_reeval.
7988 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7989 objc_tree_code_name, add_objc_tree_codes): Delete.
7990 (objc_init): Don't call add_objc_tree_codes.
7991 * objc/objc-lang.c (tree_code_type, tree_code_length,
7992 tree_code_name): Define.
7993 * toplev.c (lang_independent_init): Don't set
7994 tree_code_length[IDENTIFIER_NODE].
7995 * tree.c (tree_code_type, tree_code_length, tree_code_name):
7996 Delete definitions, moved to language front-ends.
7997 * tree.def (IDENTIFIER_NODE): Hardwire the length.
7998 * tree.h (tree_code_type, tree_code_length, tree_code_name):
7999 Const-ify.
8000 (tree_code_length): Change type to unsigned char.
8001
8002 2002-03-12 Richard Henderson <rth@redhat.com>
8003
8004 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
8005 internal visibility change.
8006
8007 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8008
8009 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
8010 validize_mem() instead of change_address to avoid clobbering
8011 memory attributes.
8012
8013 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
8014
8015 * c-lex.h (position_after_whitespace): Remove.
8016
8017 2002-03-12 Jakub Jelinek <jakub@redhat.com>
8018
8019 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
8020 (lex_string): Use unsigned char pointers.
8021
8022 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
8023
8024 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
8025 is not a valid memory_operand.
8026
8027 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8028
8029 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
8030 * config/xtensa/lib1funcs.asm: Fix copyright to include
8031 special case for libgcc files.
8032 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
8033 (__divsi3): Likewise.
8034 (__umodsi3): Likewise.
8035 (__modsi3): Likewise.
8036 * config/xtensa/lib2funcs.S: Fix copyright to include
8037 special case for libgcc files.
8038
8039 2002-03-12 Tom Rix <trix@redhat.com>
8040
8041 * collect2.c (resolve_lib_name): Move outside of
8042 OBJECT_FORMAT_COFF ifdef.
8043 (ignore_library): Same.
8044
8045 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8046
8047 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
8048
8049 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8050
8051 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
8052 to function_section before writing out the constant pool.
8053
8054 2002-03-12 David Edelsohn <edelsohn@gnu.org>
8055
8056 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
8057 zero_constant.
8058 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
8059
8060 2002-03-12 Alan Modra <amodra@bigpond.net.au>
8061
8062 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
8063 (adddi3): Likewise.
8064 (movdf): Likewise.
8065 (movdi): Likewise.
8066 (cmpsi splitter): Likewise.
8067 (modsi3): Fail if <= 0.
8068 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
8069 redundant test when HOST_BITS_PER_WIDE_INT != 32.
8070 (reg_or_sub_cint64_operand): Likewise.
8071 (num_insns_constant_wide): Optimize sign extension.
8072 (rs6000_legitimize_address): Likewise.
8073
8074 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
8075
8076 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8077 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8078
8079 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
8080
8081 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
8082 address calculation.
8083
8084 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
8085
8086 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
8087 scratch register to DImode / TImode.
8088 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
8089 register used does not overlap the target.
8090
8091 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8092
8093 * Makefile.in (debug.o): Depend on debug.h.
8094 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
8095 * debug.c (do_nothing_debug_hooks): Likewise.
8096 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
8097 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
8098 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
8099 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
8100 * dwarfout.c (dwarf_debug_hooks): Likewise.
8101 * integrate.c (output_inline_function): Likewise.
8102 * objc/objc-act.c (synth_module_prologue): Likewise.
8103 * sdbout.c (sdb_debug_hooks): Likewise.
8104 * toplev.c (debug_hooks): Likewise.
8105 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8106
8107 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8108
8109 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
8110 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
8111 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
8112 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
8113 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
8114 * defaults.h (POINTER_SIZE): Define.
8115 * doc/tm.texi (POINTER_SIZE): Document default.
8116
8117 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8118
8119 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
8120
8121 2002-03-11 Richard Henderson <rth@redhat.com>
8122
8123 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
8124 if rebuild_label_notes_after_reload.
8125
8126 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
8127
8128 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
8129 emit pic register load if "internal" visibility.
8130 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
8131 (cris_expand_builtin_va_arg): Do all computations on trees.
8132
8133 2002-03-11 Richard Henderson <rth@redhat.com>
8134
8135 * rtlanal.c: Include recog.h.
8136 (keep_with_call_p): Fix thinko.
8137 * Makefile.in (rtlanal.o): Update dependencies.
8138
8139 2002-03-11 Chris Meyer <cmeyer@gatan.com>
8140
8141 * genflags.c (gen_insn): Use IS_VSPACE.
8142 * genoutput.c (output_insn_data): Likewise.
8143 (process_template): Likewise.
8144
8145 2002-03-11 Richard Henderson <rth@redhat.com>
8146
8147 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
8148
8149 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
8150
8151 * Makefile.in: Update.
8152 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
8153 Update documentation.
8154 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
8155 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
8156
8157 2002-03-11 Zack Weinberg <zack@codesourcery.com>
8158
8159 * Makefile.in: Give texi2pod its input file as a command line
8160 argument, not on stdin.
8161
8162 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
8163 Daniel Berlin <dan@dberlin.org>
8164
8165 C++ alias analysis improvement.
8166 * alias.c (record_component_aliases): Record aliases for base
8167 classes too.
8168
8169 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
8170
8171 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
8172
8173 2002-03-11 Douglas B Rupp <rupp@gnat.com>
8174
8175 * toplev.c (vms_fopen): Remove, not needed.
8176
8177 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
8178
8179 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
8180
8181 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
8182 for FP, already done later.
8183
8184 * toplev.c (debug_args): Add entry for VMS_DEBUG.
8185 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
8186
8187 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
8188
8189 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
8190 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
8191 LARGEST_EXPONENT_IS_NORMAL for the given mode.
8192 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
8193 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
8194 (ediv, emul, eldexp, esqrt): Likewise.
8195 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
8196 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
8197 (saturate): New function.
8198 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
8199 (make_nan): Use a saturation value instead of a NaN if
8200 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
8201 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
8202 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
8203 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
8204 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
8205 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
8206 !ROUND_TOWARDS_ZERO.
8207 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
8208 (ROUND_TOWARDS_ZERO): Document.
8209
8210 2002-03-11 Andreas Jaeger <aj@suse.de>
8211
8212 * cfg.c (dump_flow_info): Remove unused variable.
8213
8214 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
8215
8216 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
8217 computations on trees.
8218
8219 2002-03-10 Richard Henderson <rth@redhat.com>
8220
8221 PR 5693:
8222 * reload.c (copy_replacements_1): New.
8223 (copy_replacements): Use it to recurse through the rtx.
8224
8225 2002-03-10 Richard Henderson <rth@redhat.com>
8226
8227 * loop.c (strength_reduce): Compute number of iterations as
8228 unsigned HOST_WIDE_INT.
8229
8230 2002-03-10 Richard Henderson <rth@redhat.com>
8231
8232 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
8233 to move away from the end of the block.
8234
8235 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
8236
8237 PR preprocessor/5899
8238 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
8239
8240 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8241
8242 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
8243
8244 * attribs.c (decl_attributes): Fix signed/unsigned warning.
8245
8246 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
8247
8248 * config/mmix/mmix.c: Improve comments.
8249 (mmix_target_asm_function_prologue): Drop variable
8250 empty_stack_frame. Don't allocate unused slot above fp.
8251 (mmix_target_asm_function_epilogue): Mirror prologue changes.
8252 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
8253 brace in first column.
8254 (enum reg_class): Ditto.
8255 (FIRST_PARM_OFFSET): Now 0.
8256 (USER_LABEL_PREFIX): Remove #if 0:d definition.
8257
8258 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8259
8260 * combine.c (make_extraction): Fix error in last change.
8261
8262 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8263
8264 * c4x.c (c4x_fp_reglist): Const-ify.
8265 * cris.c (cris_print_operand): Likewise.
8266 * i386.c (ix86_va_arg): Likewise.
8267 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
8268 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
8269 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
8270 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
8271 * mcore.h (regno_reg_class): Likewise.
8272 * mips.c (gen_int_relational): Likewise.
8273 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
8274 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
8275 * pdp11.c (move_costs): Likewise.
8276 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
8277 * s390.c (s390_branch_condition_mnemonic, regclass_map):
8278 Likewise.
8279 * s390.h (regclass_map): Likewise.
8280 * sh.c (shift_amounts): Likewise.
8281 * sh.md (rotlsi3): Likewise.
8282
8283 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
8284
8285 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
8286 (ne0+5): Use new clobber to generate proper shift pattern.
8287 Patch by Michael Matz <matz@kde.org>.
8288
8289 2002-03-09 Andreas Schwab <schwab@suse.de>
8290
8291 * gcc.c (validate_all_switches): Also handle `%W{...}'.
8292
8293 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
8294
8295 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
8296
8297 2002-03-09 Jakub Jelinek <jakub@redhat.com>
8298
8299 PR middle-end/5877
8300 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
8301 even for non-representable constants.
8302
8303 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8304
8305 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
8306 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
8307 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
8308 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
8309 (pop_function_context): Compute MAY_SHARE parameter for
8310 fixup_var_refs.
8311 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
8312 (gen_mem_addressof): Call fixup_var_refs with new parm.
8313
8314 * combine.c (make_extraction): Don't make extension of CONST_INT.
8315
8316 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
8317
8318 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
8319 in o32 and o64 ABIs.
8320 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
8321 but getting fixed-size structs passed in registers regardless of
8322 padding in o32 and o64 ABIs.
8323
8324 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
8325 offset before loading address of argument passed by transparent
8326 reference.
8327
8328 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
8329
8330 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
8331
8332 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
8333
8334 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
8335 marker such that registers after it are saved.
8336
8337 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8338
8339 * sparc.c (arith_4096_operand): Fix error in last change.
8340
8341 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
8342
8343 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
8344 defaults for MEABI.
8345
8346 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
8347
8348 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
8349 vectors.
8350
8351 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
8352
8353 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
8354
8355 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
8356
8357 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
8358 removed; fix return value.
8359 * combine.c (combine_instructions): Dirtify blocks where we failed to
8360 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
8361 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
8362
8363 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8364
8365 * gcse.c (insert_insn_end_bb): Fix typo in last change.
8366
8367 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
8368
8369 * recog.c (peephole2_optimize): Re-distribute EH edges.
8370
8371 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
8372
8373 * expr.c (expand_expr): Use unsave lang hook.
8374 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
8375 (LANG_HOOKS_INITIALIZER): Update.
8376 * langhooks.h (struct lang_hooks): New hook unsave.
8377 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
8378 (unsave_expr_1): Remove unused lang_unsave_expr_now.
8379 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
8380 (unsave_expr_now): Remove.
8381 * tree.h (unsave_expr_now, lang_unsave,
8382 lang_unsave_expr_now): Remove.
8383 (lhd_unsave): New.
8384
8385 2002-03-08 Andreas Jaeger <aj@suse.de>
8386
8387 * flow.c (propagate_block_delete_insn): Remove unused variable.
8388
8389 2002-03-08 Kazu Hirata <kazu@hxi.com>
8390
8391 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
8392 insn length for memory load/store.
8393
8394 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
8395
8396 * doc/install.texi (--with-libiconv-prefix): Document.
8397
8398 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
8399
8400 * doc/sourcebuild.texi: Fix typo.
8401
8402 2002-03-08 Jakub Jelinek <jakub@redhat.com>
8403
8404 PR c/3711
8405 * builtins.c (std_expand_builtin_va_arg): Do all computations on
8406 trees.
8407
8408 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8409
8410 * rtl.c (copy_most_rtx): Move from here ...
8411 * emit-rtl.c (copy_most_rtx): ... to here.
8412
8413 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
8414
8415 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
8416 SUBTARGET_CPP_SIZE_SPEC.
8417 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
8418
8419 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
8420
8421 2002-03-07 Matt Hiller <hiller@redhat.com>
8422
8423 * gensupport.c (first_dir_md_include): Renamed from include;
8424 change all references.
8425 (last_dir_md_include): Renamed from last_include; change all
8426 references.
8427 (init_md_reader): Unconditionally initialize base_dir whether or
8428 not filename is a relative path.
8429
8430 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
8431
8432 * config/fp-bit.c (_unord_f2): Compile it in even if
8433 US_SOFTWARE_GOFAST is enabled.
8434
8435 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
8436 NULL_RTX. Set all HFmode operations as NULL_RTX.
8437 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
8438 NULL_RTX, try reversing the comparison and the operands.
8439
8440 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8441
8442 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
8443 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
8444 and MATCH_OP_DUP.
8445
8446 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
8447
8448 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8449
8450 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8451
8452 * basic-block.h (fixup_abnormal_edges): Declare.
8453 * reload1.c (fixup_abnormal_edges): New function.
8454 * reg-stack.c (convert_regs): Use it.
8455
8456 * gcse.c (insert_insn_end_bb): Handle trapping insns.
8457
8458 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8459
8460 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
8461
8462 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8463 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8464 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8465 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8466 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8467 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8468 unless x and y could be infinite.
8469 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8470 Check that the common type of both arguments is a real, even for
8471 targets without unordered comparisons. Allow an integer argument
8472 to be compared against a real.
8473 (expand_tree_builtin): Use expand_unordered_cmp.
8474 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8475 * cse.c (fold_rtx): Likewise. Fix indentation.
8476 * fold-const.c (fold_real_zero_addition_p): New.
8477 (fold): Use it, and the new HONOR_... macros.
8478 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8479 * jump.c (reversed_comparison_code_parts): After searching for
8480 the true comparison mode, use HONOR_NANS to decide whether it
8481 can be safely reversed.
8482 (reverse_condition_maybe_unordered): Remove IEEE check.
8483 * simplify-rtx.c (simplify_binary_operation): Use the new macros
8484 to decide which simplifications are valid. Allow the following
8485 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8486 and (a - -b) to (a + b).
8487 (simplify_relational_operation): Use HONOR_NANS.
8488 * doc/tm.texi: Document the MODE_HAS_... macros.
8489
8490 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8491
8492 * combine.c (simplify_comparison): If simplifying a logical shift
8493 right and compare with constant, force the comparison to unsigned.
8494
8495 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
8496
8497 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
8498
8499 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8500 -mabi=no-altivec
8501 (alt_reg_names): Remove % for vrsave.
8502
8503 2002-03-06 Richard Henderson <rth@redhat.com>
8504
8505 PR optimization/5844
8506 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
8507 if used indicates we've already emitted one copy of an operand.
8508 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8509 (gen_split): Supply a non-null used.
8510
8511 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8512
8513 * reload1.c (reload): Unshare all rtl after reload is done.
8514
8515 * simplify-rtx.c (simplify_plus_minus): Do not abort,
8516 but simply fail if the expression is too complex to simplify.
8517 (simplify_gen_binary): Handle simplify_plus_minus failures.
8518
8519 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
8520
8521 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8522 consistently call delete_trivially_dead_insns after CSE and GCSE;
8523 fix DFI_life dumping; do jump threading after liveness; do crossjumping
8524 after liveness2; update comment in last crossjumping.
8525 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8526
8527 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
8528
8529 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8530 after completing fast dead code elimination.
8531
8532 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8533 COMPARE operator.
8534
8535 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
8536
8537 * version.c: Fix misplaced leading blanks on first line.
8538
8539 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
8540
8541 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8542
8543 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
8544
8545 * cfgcleanup.c (mentions_nonequal_regs): New function.
8546 (thread_jump): Use it.
8547 * toplev.c (rest_of_compilation): Run jump threading after
8548 liveness.
8549
8550 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8551
8552 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8553 patch.
8554
8555 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
8556
8557 * predict.c (estimate_bb_frequencies): Do not reload the
8558 frequencies from notes.
8559
8560 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
8561
8562 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8563 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8564
8565 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8566 delete_noop_moves): Return indeger.
8567 * flow.c (ndead): New variable.
8568 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8569 BB argument; update callers.
8570 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8571 (life_analysis): Do not call purge_all_dead_edges.
8572 (update_life_info): Return number of deleted insns; print statistics.
8573 (update_life_info_in_dirty_blocks): likewise.
8574 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8575 return number of insns deleted.
8576
8577 * cse.c: Include timevar.h
8578 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8579 iterate until stabilizes; print statistics; return number of killed
8580 insns.
8581 * Makefile.in: (cse.o): Add timevar.h dependency
8582 * rtl.h (delete_trivially_dead_insns): New.
8583 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8584 * toplev.c (rest_of_compilation): Update callers.
8585
8586 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8587 (try_optimize_cfg): Do not update liveness.
8588 (cleanup-cfg): Loop until try_optimize_cfg and dead code
8589 removal stabilizes; use delete_trivially_dead_insns.
8590
8591 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8592
8593 2002-03-05 Zack Weinberg <zack@codesourcery.com>
8594
8595 * cppmain.c (setup_callbacks): Disable #pragma and #ident
8596 callbacks when processing assembly language.
8597
8598 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8599
8600 * pa.h (ASM_FILE_END): Define.
8601 * som.h (ASM_FILE_END): Delete.
8602
8603 * pa.c (function_arg): Don't pass floats in general registers in
8604 indirect calls if TARGET_ELF32.
8605
8606 2002-03-05 Richard Henderson <rth@redhat.com>
8607
8608 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8609
8610 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
8611
8612 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8613
8614 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8615
8616 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8617 -r command line. Don't hide any symbols if not building
8618 shared libgcc.
8619
8620 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
8621
8622 * cfg.c (dump_flow_info): Warn about profile mismatches.
8623 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8624 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8625
8626 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8627
8628 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8629 wide volatile memory by parts.
8630
8631 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8632
8633 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8634 is NULL.
8635
8636 2002-03-05 Richard Henderson <rth@redhat.com>
8637
8638 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8639
8640 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
8641
8642 * toplev.c (documented_lang_options): Document more
8643 language-specific options.
8644 * doc/invoke.texi (Warning Options): Correct documentation for
8645 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8646 * c-decl.c (c_decode_option): Use a table to handle warning options.
8647
8648 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
8649
8650 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8651 parameter to mmix_encode_section_info.
8652 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8653 relocatably. Always produce ELF, not mmo if linking relocatably.
8654 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8655 first is non-zero, don't add symbol prefix.
8656 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8657 prototype accordingly.
8658
8659 2002-03-04 Krister Walfridsson <cato@df.lth.se>
8660
8661 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8662
8663 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
8664
8665 * configure.in: Increase required makeinfo version to 4.1.
8666 * configure: Regenerate.
8667
8668 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
8669
8670 * .cvsignore: Remove *.info* and genrtl*; these files are generated
8671 elsewhere now.
8672
8673 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
8674
8675 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8676 * doc/invoke.texi: Fix @math uses.
8677
8678 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8679
8680 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8681 removal
8682
8683 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
8684
8685 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8686 (powerpc-*-eabisimaltivec*): Same.
8687
8688 * config/rs6000/t-ppcendian: New.
8689
8690 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8691
8692 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8693 nonimmediate_src_operand and nonimmediate_lsrc_operand to
8694 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8695
8696 2002-03-03 Richard Henderson <rth@redhat.com>
8697
8698 * toplev.c (rest_of_decl_compilation): Revert last two changes.
8699
8700 2002-03-03 Zack Weinberg <zack@codesourcery.com>
8701
8702 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8703 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8704 tree.c, config/m68k/m68k.c:
8705 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8706 REAL_ARITHMETIC blocks unconditional. Delete some further
8707 #ifdef blocks predicated on REAL_ARITHMETIC.
8708 * flags.h, toplev.c: Delete remaining references to
8709 flag_pretend_float.
8710
8711 * doc/invoke.texi: Remove documentation of -fpretend-float.
8712 * doc/tm.texi: Describe the various REAL_* macros as provided by
8713 real.h, not by the target configuration files.
8714
8715 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8716 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8717 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8718 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8719 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8720 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8721 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8722 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8723 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8724 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8725 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8726 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8727 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8728 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8729 config/xtensa/xtensa.h:
8730 Do not define, undefine, or mention in comments any of
8731 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8732 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8733 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8734 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8735 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8736 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8737 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8738 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8739 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8740
8741 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8742
8743 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8744 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8745 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8746 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8747 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8748 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8749 Delete.
8750 * defaults.h (BITS_PER_WORD): Define.
8751 * doc/tm.texi (BITS_PER_WORD): Document default value.
8752
8753 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8754 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8755 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8756
8757 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8758
8759 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8760 lieu of explicit sizeof/sizeof.
8761 * i386.c (override_options, ix86_init_mmx_sse_builtins,
8762 ix86_expand_builtin): Likewise.
8763 * mips.c (mips_add_gc_roots): Likewise.
8764 * mmix.c (mmix_output_condition): Likewise.
8765 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8766 altivec_init_builtins): Likewise.
8767 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8768 * cppexp.c (Nsuff, parse_number): Likewise.
8769 * cppinit.c (builtin_array_end): Likewise.
8770 * gcc.c (n_default_compilers, process_command): Likewise.
8771 * genpreds.c (output_predicate_decls): Likewise.
8772 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8773 * lcm.c (N_ENTITIES): Likewise.
8774 * stor-layout.c (set_sizetype): Likewise.
8775
8776 2002-03-03 Richard Henderson <rth@redhat.com>
8777
8778 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8779 for types or labels.
8780
8781 2002-03-03 Richard Henderson <rth@redhat.com>
8782
8783 * c-decl.c (start_decl): Initialized variables are not common.
8784
8785 2002-03-02 Per Bothner <per@bothner.com>
8786
8787 * gcc.c (option_map): Suport new --bootclasspath option.
8788 --CLASSPATH is now just an alias for --classpath.
8789
8790 2002-03-02 Richard Henderson <rth@redhat.com>
8791
8792 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8793 load if "internal" visibility.
8794 * doc/extend.texi: Document visibility meanings.
8795
8796 2002-03-02 Richard Henderson <rth@redhat.com>
8797
8798 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8799 to functions as well.
8800
8801 2002-03-02 Richard Henderson <rth@redhat.com>
8802
8803 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8804 (handle_visibility_attribute): Don't call assemble_visibility.
8805 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8806 without asmspec. Invoke assemble_alias when needed.
8807 * varasm.c (maybe_assemble_visibility): New.
8808 (assemble_start_function, assemble_variable, assemble_alias): Use it.
8809
8810 2002-03-02 Richard Henderson <rth@redhat.com>
8811
8812 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8813 invoke ENCODE_SECTION_INFO with first call flag.
8814
8815 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8816 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8817 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8818 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8819 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8820 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8821 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8822 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8823 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8824 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8825 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8826 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8827 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8828 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8829 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8830 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8831 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8832 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8833 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8834 config/sh/sh.h, config/sparc/sparc.h,
8835 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8836 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8837 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8838 FIRST argument. As needed, examine it and do nothing.
8839
8840 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8841 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8842 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8843
8844 * config/arm/t-pe (pe.o): Add dependencies.
8845
8846 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8847
8848 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8849 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8850 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8851 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8852 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8853 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8854 * defaults.h (BITS_PER_UNIT): Define.
8855 * doc/tm.texi (BITS_PER_UNIT): Document default value.
8856
8857 2002-03-02 Kazu Hirata <kazu@hxi.com>
8858
8859 * config/h8300/h8300-protos.h: Add a prototype for
8860 compute_a_shift_length.
8861 * config/h8300/h8300.c (h8300_asm_insn_count): New.
8862 (compute_a_shift_length): Likewise.
8863 (h8300_adjust_insn_length): Do not adjust insn length of shift
8864 insns.
8865 * config/h8300/h8300.md (anonymous shift patterns): Use
8866 compute_a_shift_length.
8867
8868 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8869
8870 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8871 trunc_int_for_mode.
8872
8873 * emit-rtl.c (offset_address): Call update_temp_slot_address.
8874
8875 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8876
8877 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8878 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8879 * flags.h (flag_zero_initialized_in_bss): Declare.
8880 * toplev.c (flag_zero_initialized_in_bss): New flag.
8881 (lang_independent_options): Add flag_zero_initialized_in_bss.
8882 * tree.c (initializer_zerop): New function.
8883 * tree.h (initializer_zerop): Declare.
8884 * varasm.c (assemble_variable): If we can emit bss, put zero
8885 initializers in the bss section.
8886
8887 2002-03-02 Alan Modra <amodra@bigpond.net.au>
8888
8889 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8890 like more than one symbol per .weak directive.
8891
8892 2002-03-01 Richard Henderson <rth@redhat.com>
8893
8894 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8895 adjust argument_pointer by pretend_args_size.
8896 (ia64_va_start): Adjust va_start address by -pretend_args_size.
8897
8898 2002-03-01 Kazu Hirata <kazu@hxi.com>
8899
8900 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8901
8902 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
8903
8904 * toplev.c (rest_of_compilation): Delete dead jumptables before
8905 loop.
8906 * flow.c (delete_dead_jumptables): Make global.
8907 * rtl.h (delete_dead_jumptables): Declare.
8908
8909 2002-03-01 David Edelsohn <edelsohn@gnu.org>
8910
8911 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8912 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8913 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8914
8915 2002-03-01 Kazu Hirata <kazu@hxi.com>
8916
8917 * config/h8300/h8300-protos.h: Fix formatting.
8918 * config/h8300/h8300.c: Likewise.
8919 * config/h8300/h8300.h: Likewise.
8920
8921 2002-03-01 Kazu Hirata <kazu@hxi.com>
8922
8923 * config/h8300/h8300.c (print_operand): Support 16-bit
8924 constant addresses.
8925 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8926
8927 2002-02-28 Richard Henderson <rth@redhat.com>
8928
8929 * expmed.c (store_bit_field): Prevent generation of CONCATs;
8930 pun complex values as integers; use gen_lowpart instead of
8931 gen_rtx_SUBREG.
8932 (extract_bit_field): Likewise.
8933
8934 2002-03-01 Alan Modra <amodra@bigpond.net.au>
8935 David Edelsohn <edelsohn@gnu.org>
8936
8937 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8938 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8939 (SUPPORTS_WEAK): Likewise.
8940 * output.h (add_weak): Add tree param.
8941 * varasm.c (add_weak): Likewise. Save decl.
8942 (struct weak_syms): Add decl field.
8943 (mark_weak_decls): New function.
8944 (init_varasm_once): ggc_add_root mark_weak_decls.
8945 (assemble_start_function): Use ASM_WEAKEN_DECL.
8946 (assemble_variable): Likewise.
8947 (assemble_alias): Likewise.
8948 (declare_weak): Pass decl to add_weak.
8949 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8950 (remove_from_pending_weak_list): Declare and define for
8951 ASM_WEAKEN_DECL.
8952 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8953 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8954 * defaults.h (SUPPORTS_WEAK): Likewise.
8955 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8956 .weak for code sym. Do emit .size for descriptor sym.
8957 (ASM_DECLARE_FUNCTION_SIZE): Define.
8958 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8959 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
8960 .lglobl unless TARGET_XCOFF. Formatting fixes.
8961 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8962 .weak for code sym.
8963 (HANDLE_PRAGMA_WEAK): Remove.
8964 (ASM_WEAKEN_LABEL): Remove.
8965 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8966
8967 2002-03-01 Jason Merrill <jason@redhat.com>
8968
8969 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8970 (TARGET_EXPR_CLEANUP): New macro.
8971
8972 2002-02-28 Steve Ellcey <sje@cup.hp.com>
8973
8974 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8975 to take ptr_extend into account as third type of extension.
8976 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8977 fields used by SUBREG_PROMOTED_UNSIGNED_P.
8978 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8979 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8980 * calls.c (precompute_arguments): Use new macro.
8981 (expand_call): Ditto.
8982 * combine.c (nonzero_bits): Ditto.
8983 (record_promoted_value): Ditto.
8984 * expr.c (store_expr): Ditto.
8985 (expand_expr): Ditto.
8986 * function.c (assign_parms): Ditto.
8987
8988 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
8989
8990 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8991 override -shared and -shared-libgcc.
8992
8993 2002-02-28 David O'Brien <obrien@FreeBSD.org>
8994
8995 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8996 of "ultrasparc".
8997 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
8998 to be broken.
8999
9000 2002-02-28 Richard Henderson <rth@redhat.com>
9001
9002 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
9003 4 cycle latency from MM producers.
9004 (ia64_internal_sched_reorder): Likewise with pipeline flush.
9005
9006 2002-02-28 Jakub Jelinek <jakub@redhat.com>
9007
9008 * mklibgcc.in: Don't use GNU make extension.
9009
9010 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9011
9012 * c-parse.in (STATIC): New terminal.
9013 (scspec): New non-terminal. Update productions accordingly.
9014 (program): Remove bogus ifc / end ifc.
9015 (array_declarator): Simplify production using STATIC.
9016
9017 2002-02-28 Jim Meyering <meyering@lucent.com>
9018
9019 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
9020 \a still means TARGET_BELL.
9021
9022 2002-02-28 Richard Henderson <rth@redhat.com>
9023
9024 * haifa-sched.c (sched_emit_insn): New.
9025 (schedule_block): Use last_scheduled_insn to track last insn.
9026 * sched-int.h (sched_emit_insn): Prototype.
9027 * config/ia64/ia64.c (last_issued): Remove.
9028 (ia64_variable_issue): Don't set it.
9029 (nop_cycles_until): Use sched_emit_insn.
9030
9031 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
9032
9033 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
9034 extended constants.
9035
9036 2002-02-28 Kazu Hirata <kazu@hxi.com>
9037
9038 * config/h8300/h8300.c: Fix formatting.
9039 * config/h8300/h8300.h: Likewise.
9040
9041 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
9042
9043 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
9044 which may overwrite the high byte of the frame pointer.
9045
9046 2002-02-28 Bo Thorsen <bo@suse.de>
9047
9048 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
9049 (STARTFILE_SPEC): Add 64 bit files.
9050 (ENDFILE_SPEC): Likewise.
9051
9052 2002-02-28 Jason Merrill <jason@redhat.com>
9053
9054 * c-decl.c (finish_function): Only warn about missing return
9055 statement with -Wreturn-type.
9056
9057 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
9058
9059 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
9060
9061 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
9062 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
9063
9064 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
9065
9066 * basic-block.h (BB_REACHABLE): Renumber.
9067 (BB_DIRTY, BB_NEW): New flags.
9068 (clear_bb_flags): Declare.
9069 (update_life_info_in_dirty_blocks): Declare.
9070 * cfg.c (clear_bb_flags): New function.
9071 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
9072 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
9073 reorder_insns, emit_insn_after): Mark block as dirty.
9074 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
9075 (update_life_info_in_dirty_blocks): New function.
9076 * recog.c (apply_change_group): Dirtify block.
9077
9078 * cse.c (cse_insn): Reorder emitting of jump insn to keep
9079 cfg consistent.
9080 * gcse.c (delete_null_pointer_checks): Likewise.
9081
9082 * toplev.c (dump_file_index): Move cse2 after bp,
9083 add DFI_null
9084 (dump_file_info): Similary.
9085 (rest_of_compilation): Avoid most of CFG rebuilds;
9086 do first if converision after null pointer checks, do cse2
9087 after branch prediction; avoid full liveness rebuild after
9088 initializing subregs.
9089 * invoke.texi (-d options): Document -du, renumber.
9090
9091 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
9092 (notice_new_block): Do not set BB_UPDATE_LIFE.
9093 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
9094 merge_blocks_move_successor_nojumps, merge_blocks,
9095 try_crossjump_to_edge): Likewise.
9096 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
9097 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
9098 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
9099 (merge_of_block): Do not use life_data_ok.
9100 (find_if_case_1): Do not use SET_UPDATE_LIFE.
9101 (if_convert): Use BB_DIRTY mechanizm to update life.
9102 * lcm.c (optimize_mode_switching): Update
9103 update_life_info_in_dirty_blocks
9104
9105 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9106
9107 * Makefile.in (integrate.o): Update.
9108 * c-decl.c (copy_lang_decl): Rename.
9109 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9110 * integrate.c: Include langhooks.h.
9111 (copy_decl_for_inlining): Update to use langhook.
9112 * langhooks-def.h (lhd_do_nothing_t,
9113 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
9114 (LANG_HOOKS_INITIALIZER): Update.
9115 * langhooks.c (lhd_do_nothing_t): New.
9116 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
9117 * tree.h (copy_lang_decl): Remove.
9118 objc:
9119 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9120
9121 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
9122
9123 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
9124 POST_DEC, and POST_MODIFY.
9125
9126 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9127
9128 * c-typeck.c (digest_init): Remove unused parameter; all
9129 callers changed.
9130
9131 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
9132
9133 * expmed.c (expand_shift): Correctly test for low part of a
9134 subreg.
9135
9136 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9137
9138 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
9139 insn UIDs with insn addresses.
9140
9141 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9142
9143 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
9144 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
9145 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
9146 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
9147 gcc.c, toplev.c: Delete code implementing -traditional mode.
9148
9149 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
9150 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
9151 Document removal of -traditional mode for compilation, and
9152 remove documentation only relevant to that mode.
9153
9154 * config/nextstep.h, config/ptx4.h, config/svr4.h,
9155 config/convex/convex.h, config/d30v/d30v.h,
9156 config/i386/dgux.h, config/i386/osf1elf.h,
9157 config/i386/osfelf.h, config/i386/osfrose.h,
9158 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
9159 config/m68k/hp310.h, config/m88k/dgux.h,
9160 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
9161 config/m88k/m88k.h, config/m88k/openbsd.h,
9162 config/mips/abi64.h, config/mips/osfrose.h,
9163 config/mips/svr4-5.h, config/mips/svr4-t.h,
9164 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9165 config/stormy16/stormy16.h: Remove all references to
9166 -traditional from target specs. Delete all mention of the
9167 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
9168 delete a couple of commented-out definitions of
9169 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
9170 to -traditional.
9171
9172 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
9173 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
9174
9175 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9176
9177 * mklibgcc.in: Don't use \n in a line subject to
9178 interpretation by echo.
9179
9180 2002-02-27 Graham Stott <grahams@redhat.com>
9181
9182 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
9183 Constify NAME.
9184
9185 * loop.c (prescan_loop): Handle PARALLEL.
9186
9187 * unroll.c (loop_iterations): Return 0 if the add_val for
9188 a BIV is REG.
9189
9190 * final.c (output_operand_lossage): Constify PFX_STR.
9191
9192 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
9193
9194 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
9195
9196 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
9197 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
9198
9199 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
9200
9201 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9202
9203 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
9204
9205 * cpplex.c (_cpp_lex_token): Handle directives in macro
9206 arguments.
9207 * cpplib.c (_cpp_handle_directive): Save and restore state
9208 if parsing macro args when entering a directive.
9209 * cppmacro.c (collect_args): No need to handle directives
9210 in macro arguments.
9211 (enter_macro_context, replace_args): Use the original macro
9212 definition in case it was redefined whilst collecting arguments.
9213 doc:
9214 * cpp.texi: Update.
9215
9216 2002-02-26 David Edelsohn <edelsohn@gnu.org>
9217
9218 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
9219 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
9220 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
9221 method on AIX.
9222 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
9223 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
9224 (load_toc_v4_PIC_2): Same.
9225
9226 2002-02-26 Alan Modra <amodra@bigpond.net.au>
9227
9228 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
9229
9230 2002-02-26 Richard Henderson <rth@redhat.com>
9231
9232 * config/alpha/alpha.md (ashldi_se): Re-enable.
9233
9234 2002-02-26 Richard Henderson <rth@redhat.com>
9235
9236 * config/alpha/alpha.c (alpha_encode_section_info): Examine
9237 MODULE_LOCAL_P; improve commentary.
9238
9239 2002-02-26 Zack Weinberg <zack@codesourcery.com>
9240
9241 * doc/cpp.texi: Clarify documentation of relationship between
9242 #line and #include.
9243
9244 2002-02-26 Kazu Hirata <kazu@hxi.com>
9245
9246 * config/h8300/h8300-protos.h: Update the prototype for
9247 compute_logical_op_length. Add the prototype for
9248 compute_logical_op_cc.
9249 * config/h8300/h8300.c (compute_logical_op_length): Figure out
9250 code from operands.
9251 (compute_logical_op_cc): New.
9252 * config/h8300/h8300.md: Combine all the logical op patterns
9253 in HImode and SImode. Use compute_logical_op_cc.
9254
9255 2002-02-26 Kelley Cook <kelleycook@comcast.net>
9256
9257 * config/i386/i386.c (print_operand): Don't append ATT-style
9258 length suffixs to x87 opcodes when in Intel mode.
9259
9260 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
9261
9262 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
9263 (init_emit_once): Update calls.
9264 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
9265 (init_syntax_once): Prototype.
9266
9267 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9268
9269 * pa-linux.h (LIB_SPEC): Update definition.
9270 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9271
9272 2002-02-26 Richard Henderson <rth@redhat.com>
9273
9274 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
9275 if we emitted a stop bit.
9276
9277 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9278
9279 * configure.in (libgcc_visibility): Substitute.
9280 * configure: Rebuilt.
9281 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
9282 defined symbols .hidden.
9283
9284 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9285
9286 * attribs.c (c_common_attribute_table): Add visibility.
9287 (handle_visibility_attribute): New function.
9288 * varasm.c (assemble_visibility): New function.
9289 * output.h (assemble_visibility): Add prototype.
9290 * tree.h (MODULE_LOCAL_P): Define.
9291 * crtstuff.c (__dso_handle): Use visibility attribute.
9292 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
9293 for MODULE_LOCAL_P symbols too.
9294 * config/ia64/ia64.c (ia64_encode_section_info): Handle
9295 MODULE_LOCAL_P symbols the same way as local symbols.
9296 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
9297 into .sdata/.sbss by the user.
9298 * doc/extend.texi (Function Attributes): Document visibility
9299 attribute.
9300
9301 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9302
9303 PR debug/5770
9304 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
9305 STRING_CST initializer spanning the whole variable without
9306 embedded zeros.
9307 If expand_expr returned MEM, don't use it.
9308
9309 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
9310
9311 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
9312 generate a die for the lexical block.
9313
9314 2002-02-26 Kazu Hirata <kazu@hxi.com>
9315
9316 * config/h8300/h8300-protos.h: Add a prototype for
9317 compute_logical_op_length.
9318 * config/h8300/h8300.c (compute_logical_op_length): New.
9319 * config/h8300/h8300.md (anonymous logical patterns): Use
9320 compute_logical_op_length for length.
9321
9322 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9323
9324 * dwarf2out.c (modified_type_die): Do not call type_main_variant
9325 for vectors.
9326 (gen_type_die): Same.
9327
9328 * attribs.c (handle_vector_size_attribute): Set debug information.
9329
9330 2002-02-26 Daniel Egger <degger@fhm.edu>
9331
9332 * config/rs6000/rs6000.md: Swap define_insn attributes to
9333 fix incorrect generation of merge high instructions instead
9334 of merge low.
9335
9336 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9337
9338 * c-typeck.c (really_start_incremental_init): Use
9339 bitsize_zero_node for vectors.
9340
9341 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9342
9343 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
9344 ("*set_vrsave_internal"): Same.
9345
9346 2002-02-25 Richard Henderson <rth@redhat.com>
9347
9348 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
9349 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
9350
9351 2002-02-25 Jakub Jelinek <jakub@redhat.com>
9352
9353 PR target/5755
9354 * config/i386/i386.c (ix86_return_pops_args): Only pop
9355 fake structure return argument if it was passed on the stack.
9356
9357 2002-02-25 Jason Merrill <jason@redhat.com>
9358
9359 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
9360 RESULT_DECL.
9361
9362 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
9363
9364 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
9365 link with shared_name only.
9366 * doc/invoke.texi (Link Options): Document new behavior.
9367
9368 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
9369
9370 * c-typeck.c (push_init_level): Handle vectors.
9371
9372 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
9373
9374 * config/sparc/sparc.c (const64_high_operand): Zero-extend
9375 operands of SPARC_SETHI_P.
9376 (input_operand): Likewise.
9377 (sparc_emit_set_const32): Likewise.
9378 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
9379 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9380 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
9381 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
9382 (movdi_insn_sp64_vis): Likewise.
9383 (movdi split, movdf split): Use SETHI32.
9384 * doc/md.texi: Document SPARC constraints L, M and N.
9385
9386 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
9387
9388 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
9389 ("*set_vrsave_internal"): use mfspr for Darwin.
9390
9391 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
9392 gen_get_vrsave_internal.
9393
9394 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9395
9396 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
9397
9398 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
9399
9400 * cpplex.c (cpp_interpret_charconst): Get signedness or
9401 otherwise of wide character constants correct.
9402 * cppexp.c (lex): Get signedness of wide charconsts correct.
9403
9404 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9405
9406 * optabs.c (widen_operand): Only call convert_modes for
9407 promoted SUBREG if signedness matches.
9408 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
9409
9410 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9411
9412 * cpplib.c (glue_header_name): Use local buffer to build up
9413 header name.
9414
9415 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9416
9417 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
9418
9419 2002-02-23 Kazu Hirata <kazu@hxi.com>
9420
9421 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
9422 H8/300[HS] separately.
9423 * config/h8300/h8300.md: Remove the early clobber constraint
9424 from bit field patterns.
9425
9426 2002-02-23 Kazu Hirata <kazu@hxi.com>
9427
9428 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
9429 register_operand.
9430 (mulhisi3): Likewise.
9431 (umulqisi3): Likewise.
9432 (umulhisi3): Likewise.
9433
9434 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9435
9436 * cppinit.c (output_deps): Correct test for stdout output.
9437 (init_dependency_output): Cure warning.
9438
9439 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9440
9441 * expr.c (store_expr): When converting expression to promoted
9442 equivalent type, allow using SUBREG_REG of TARGET as the target
9443 of the expansion of EXP.
9444 * loop.c (basic_induction_var, case SUBREG): Always look inside.
9445 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
9446 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
9447 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
9448 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9449
9450 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
9451
9452 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9453 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9454 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9455
9456 2002-02-23 Jakub Jelinek <jakub@redhat.com>
9457
9458 PR optimization/5747
9459 * loop.c (scan_loop): Update reg info if move_movables created new
9460 pseudos.
9461
9462 2002-02-23 David Edelsohn <edelsohn@gnu.org>
9463
9464 * gcc.c (init_gcc_spec): Revert last change.
9465
9466 2002-02-23 David Edelsohn <edelsohn@gnu.org>
9467
9468 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9469 gpc_reg_operand constraint.
9470
9471 2002-02-23 Alan Modra <amodra@bigpond.net.au>
9472
9473 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9474 Simplify comparison of `low'.
9475 (add_operand): Fix formatting.
9476 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
9477 (mask_operand): Disallow mask to wrap in 64-bit mode.
9478 (rs6000_stack_info): Remove redundant test setting push_p.
9479 (output_toc): Fix formatting.
9480 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9481 cc_reg_not_cr0_operand constraint.
9482 (booldi3, boolcdi3 splitters): Same.
9483
9484 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
9485
9486 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
9487
9488 2002-02-22 David Edelsohn <edelsohn@gnu.org>
9489
9490 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9491 gcc invoked with -shared-libgcc.
9492
9493 2002-02-22 Jakub Jelinek <jakub@redhat.com>
9494
9495 PR c++/5748
9496 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9497 decl if any of elements was TREE_USED.
9498
9499 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
9500
9501 * config/sparc/sol2.h: Don't include sys/mman.h.
9502 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9503 (arith_4096_operand): Don't throw high bits away.
9504 (const64_operand): Take sign extension of CONST_INTs into account.
9505 (const64_high_operand, sparc_emit_set_const32): Likewise.
9506 (GEN_HIGHINT64): Likewise.
9507 (sparc_emit_set_const64_quick1): Likewise.
9508 (const64_is_2insns): Likewise.
9509 (print_operand): Use trunc_int_for_mode for sign extension.
9510 * config/sparc/sparc.h (SMALL_INT32): Likewise.
9511 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9512 chars. Assume CONST_INT is already properly sign-extended.
9513 (movdi split): Sign-extend each SImode part.
9514 (andsi3 split): Don't mask high bits off, so that result
9515 remains properly sign-extend.
9516 (iorsi3 split): Likewise.
9517 (xorsi3 split): Likewise.
9518
9519 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
9520
9521 * fold-const.c (fold): Fix typo in comments.
9522
9523 2002-02-21 Diego Novillo <dnovillo@redhat.com>
9524
9525 * Makefile.in (langhooks.o): Update dependencies.
9526
9527 2002-02-21 Diego Novillo <dnovillo@redhat.com>
9528
9529 * langhooks.c: Include flags.h.
9530
9531 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
9532
9533 * testsuite/gcc.dg/attr-alwaysinline.c: New.
9534
9535 * c-common.c (c_common_post_options): Set inline trees by
9536 default.
9537
9538 * doc/extend.texi (Function Attributes): Document always_inline
9539 attribute.
9540 Update documentation about inlining when not optimizing.
9541
9542 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9543
9544 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9545 unless DECL_ALWAYS_INLINE.
9546
9547 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9548 unless DECL_ALWAYS_INLINE.
9549 (c_disregard_inline_limits): Disregard if always_inline set.
9550
9551 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9552 Disregard if always_inline set.
9553 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9554 unless DECL_ALWAYS_INLINE.
9555
9556 * attribs.c (handle_always_inline_attribute): New.
9557 (c_common_attribute_table): Add always_inline.
9558
9559 * config/rs6000/altivec.h: Add prototypes for builtins
9560 requiring the always_inline attribute.
9561
9562 2002-02-21 Eric Christopher <echristo@redhat.com>
9563
9564 * expmed.c (store_bit_field): Try to simplify the subreg
9565 before generating a new one when when the mode size of
9566 value is less than maxmode.
9567
9568 2002-02-21 Richard Henderson <rth@redhat.com>
9569
9570 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9571 than gen_rtx_PLUS to form the sum.
9572 * explow.c (force_reg): Rearrange to not allocate new pseudo
9573 when force_operand returns a register.
9574 * expr.c (expand_assignment): Allow offset_rtx expansion to
9575 return a sum. Do not force addresses into registers.
9576 (expand_expr): Likewise.
9577 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9578 to canonicalize arithmetic that didn't simpify.
9579 (simplify_plus_minus): New argument force; update
9580 all callers. Don't split CONST unless we can do something with it,
9581 and wouldn't lose the constness of the operands.
9582
9583 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9584 that we generated earlier.
9585
9586 2002-02-21 Tom Tromey <tromey@redhat.com>
9587
9588 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9589 (output_line_info): Use constant `1', with a long explanatory
9590 comment.
9591 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9592
9593 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
9594
9595 * jump.c (redirect_jump): If old label has no UID, don't try to
9596 delete it.
9597
9598 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
9599
9600 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9601 If input is constant, do shifts at compile time.
9602
9603 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
9604
9605 * doc/extend.texi: Fix some more overfull hboxes.
9606
9607 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9608
9609 PR optimization/4994
9610 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9611 register moves.
9612
9613 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9614
9615 PR c++/4574
9616 * expr.h (expand_and): Add mode argument.
9617 * expmed.c (expand_and): Add mode argument.
9618 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9619 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9620 * except.c (expand_builtin_extract_return_addr): Likewise.
9621 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9622 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9623 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9624 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9625 * config/c4x/c4x.md: Use GEN_INT (x) instead of
9626 gen_rtx (CONST_INT, VOIDmode, x).
9627
9628 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9629
9630 PR c/4697:
9631 * stmt.c (warn_if_unused_value): Move side effects test once more.
9632
9633 2002-02-20 Torbjorn Granlund <tege@swox.com>
9634
9635 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9636 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9637
9638 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
9639
9640 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9641 SUBREG or ZERO_EXTEND.
9642
9643 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
9644
9645 * sh.h (current_function_anonymous_args): Remove.
9646 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9647 of current_function_varargs and current_function_stdarg is set.
9648 * sh.c (sh_expand_prologue): Check current_function_varargs /
9649 current_function_stdarg / TARGET_SH5 instead of
9650 current_function_anonymous_args.
9651
9652 * sh64.h (TARGET_VERSION): Define.
9653
9654 2002-02-20 David Edelsohn <edelsohn@gnu.org>
9655
9656 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9657 VRSAVE_REGNO on TARGET_ALTIVEC.
9658
9659 2002-02-20 Alan Modra <amodra@bigpond.net.au>
9660
9661 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9662 bits of SImode const_int.
9663 (includes_rshift_p): Likewise.
9664 (print_operand): Call mask_operand and mask64_operand with correct
9665 mode.
9666 (rs6000_output_function_epilogue): Pad traceback table to word.
9667 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9668 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9669 mask64_operand with correct mode.
9670 (FUNCTION_ARG_REGNO_P): Correct parentheses.
9671
9672 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9673
9674 PR debug/4461
9675 * varasm.c (get_pool_constant_mark): New.
9676 * rtl.h (get_pool_constant_mark): Add prototype.
9677 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9678 be represented if it has not been output.
9679
9680 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
9681
9682 * combine.c (do_SUBST): Sanity check substitutions of
9683 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9684 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9685 CONST_INT into its operand.
9686 (known_cond): Likewise, for ZERO_EXTEND.
9687 * simplify-rtx.c (simplify_unary_operation): Fix condition to
9688 allow for simplification of wide modes. Reject CONST_INTs in
9689 ZERO_EXTEND when their actual mode is not given.
9690
9691 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
9692
9693 * c-decl.c (pushdecl): If no global declaration is found for an
9694 extern declaration in block scope, try a limbo one.
9695
9696 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9697
9698 PR c++/4401
9699 * c-common.c (pointer_int_sum): Moved from...
9700 * c-typeck.c (pointer_int_sum): ...here.
9701 * c-common.h (pointer_int_sum): Add prototype.
9702
9703 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9704
9705 PR c++/5713
9706 * c-decl.c (duplicate_decls): Return 0 if issued error about
9707 redeclaration.
9708
9709 2002-02-20 Roger Sayle <roger@eyesopen.com>
9710 Jakub Jelinek <jakub@redhat.com>
9711
9712 PR c/4389
9713 * tree.c (host_integerp): Ensure that the constant integer is
9714 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9715 when pos is zero or non-zero respectively. Clarify comment.
9716 * c-format.c (check_format_info_recurse): Fix host_integerp
9717 usage; the pos argument should be zero when assigning to a
9718 signed HOST_WIDE_INT.
9719
9720 2002-02-20 Richard Henderson <rth@redhat.com>
9721
9722 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9723 of the operand, rather than assuming TImode.
9724 (ix86_expand_binop_builtin): Cope with commutative patterns
9725 using nonimmediate_operand for both operands.
9726 (ix86_expand_timode_binop_builtin): Likewise.
9727 (ix86_expand_store_builtin): Validate operand 1.
9728 (ix86_expand_unop1_builtin): Likewise.
9729
9730 2002-02-20 Philip Blundell <philb@gnu.org>
9731
9732 PR 5705
9733 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9734
9735 2002-02-20 Richard Henderson <rth@redhat.com>
9736
9737 PR c/5615
9738 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9739
9740 2002-02-20 Tom Tromey <tromey@redhat.com>
9741
9742 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9743 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9744 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9745 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9746 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9747 unconditionally.
9748
9749 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9750
9751 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9752 for (const_int 0) in X not just INTVAL.
9753
9754 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
9755
9756 * doc/extend.texi: Avoid or reduce overfull hboxes.
9757
9758 2002-02-20 Diego Novillo <dnovillo@redhat.com>
9759
9760 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9761 operations if the field does not start at a mode boundary.
9762
9763 2001-02-20 Joel Sherrill <joel@OARcorp.com>
9764
9765 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9766 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9767 Also done for -Acpu and -Amachine.
9768
9769 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
9770
9771 * cppinit.c (init_dependency_output): Take deps output file
9772 from -o if none given with -MF. Suppress normal output.
9773 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9774 * doc/cpp.texi, doc/invoke.texi: Update.
9775
9776 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9777
9778 * toplev.c (output_quoted_string): Write unprintable
9779 characters with octal escapes.
9780
9781 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9782
9783 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9784 really_call_used[VRSAVE_REGNO] if not Altivec.
9785
9786 2002-02-19 Alan Modra <amodra@bigpond.net.au>
9787
9788 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9789 MODE_MASK.
9790 (constant_pool_expr_1): Fix formatting.
9791 (rs6000_legitimize_reload_address): Likewise.
9792
9793 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9794
9795 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9796 now that we have one.
9797
9798 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9799
9800 * tree.h (struct tree_common): Remove aux. Add unused_0 at
9801 end of first block of bitfields (which was only seven bits);
9802 rename dummy to unused_1; remove comment which is no longer true.
9803
9804 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9805
9806 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9807
9808 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9809
9810 PR 5399
9811 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9812 if generating PIC.
9813
9814 PR 5054
9815 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9816 arm_is_longcall_p rather than inspecting call-type cookie
9817 directly.
9818 (call_value_insn) [TARGET_THUMB]: Likewise.
9819
9820 2002-02-19 Graham Stott <grahams@redhat.com>
9821
9822 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9823
9824 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9825
9826 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9827 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9828 (FP_SAVE_INLINE): Delete.
9829
9830 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9831 * config/rs6000/eabi.asm: Remove ABI save restore routines.
9832 * config/rs6000/t-ppccomm: Build crtsavres.o.
9833 * config/rs6000/crtsavres.asm: New file.
9834
9835 2002-02-19 Philip Blundell <philb@gnu.org>
9836
9837 * config/arm/arm.c (use_return_insn): Don't reject interrupt
9838 functions.
9839 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9840 (output_return_instruction): Allow interrupt functions to return with
9841 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
9842 (arm_expand_prologue): Subtract 4 before stacking LR in an
9843 interrupt function.
9844
9845 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9846
9847 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9848 decl, not just FUNCTION_DECL.
9849 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9850 (arm_assemble_integer): Likewise.
9851 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9852 marked local.
9853
9854 2002-02-19 matthew green <mrg@eterna.com.au>
9855
9856 * config.gcc (sparc-*-netbsdelf*): Enable target.
9857 (sparc64-*-netbsd*): New target.
9858 * config/sparc/netbsd-elf.h: New file.
9859 * config/sparc/t-netbsd64: New file.
9860
9861 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9862
9863 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9864
9865 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
9866
9867 * doc/invoke.texi: explicitly list the style guidelines that
9868 -Weffc++ checks for.
9869
9870 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
9871
9872 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9873
9874 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
9875
9876 PR other/5718
9877 * gcc.c (cpp_unique_options): Treat -o as indicating object file
9878 only if not -E. If -E, pass -o through to the preprocessor.
9879
9880 2002-02-19 Kazu Hirata <kazu@hxi.com>
9881
9882 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9883 register number with an appropriate macro.
9884
9885 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9886
9887 * doc/rtl.texi (Constants): Close @code tag.
9888
9889 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
9890
9891 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9892 ("mmx_uavgv4hi3"): Same.
9893 ("pmulhrwv4hi3"): Same.
9894
9895 * tree-inline.c (walk_tree): Handle vectors.
9896
9897 * c-common.c (constant_expression_warning): Handle vectors.
9898 (overflow_warning): Same.
9899
9900 * sched-deps.c (sched_analyze_2): Handle vectors.
9901
9902 * rtlanal.c (rtx_unstable_p): Handle vectors.
9903 (rtx_varies_p): Same.
9904 (count_occurrences): Same.
9905 (regs_set_between_p): Same.
9906 (modified_between_p): Same.
9907 (modified_in_p): Same.
9908 (volatile_insn_p): Same.
9909 (volatile_refs_p): Same.
9910 (side_effects_p): Same.
9911 (may_trap_p): Same.
9912 (inequality_comparisons_p): Same.
9913 (replace_regs): Same.
9914 (computed_jump_p_1): Same.
9915
9916 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9917 argument.
9918 (inner_mode_array): New.
9919 (copy_rtx): Handle vectors.
9920 (copy_most_rtx): Same.
9921 (rtx_equal_p): Same.
9922 (get_mode_alignment): Adjust for vectors.
9923
9924 * resource.c (mark_referenced_resources): Handle vectors.
9925 (mark_set_resources): Same.
9926
9927 * reload1.c (eliminate_regs): Handle vectors.
9928 (elimination_effects): Same.
9929 (scan_paradoxical_subregs): Same.
9930
9931 * reload.c (subst_reg_equivs): Handle vectors.
9932
9933 * regrename.c (scan_rtx): Handle vectors.
9934
9935 * regclass.c (reg_scan_mark_refs): Handle vectors.
9936
9937 * recog.c (find_single_use_1): Handle vectors.
9938
9939 * local-alloc.c (equiv_init_varies_p): Handle vectors.
9940 (contains_replace_regs): Same.
9941 (memref_referenced_p): Same.
9942
9943 * integrate.c (copy_rtx_and_substitute): Handle vectors.
9944 (subst_constants): Same.
9945
9946 * genattrtab.c (attr_copy_rtx): Handle vectors.
9947 (encode_units_mask): Same.
9948 (clear_struct_flag): Same.
9949 (count_sub_rtxs): Same.
9950
9951 * gcse.c (want_to_gcse_p): Handle vectors.
9952 (oprs_unchanged_p): Same.
9953 (hash_expr_1): Same.
9954 (oprs_not_set_p): Same.
9955 (expr_killed_p): Same.
9956 (compute_transp): Same.
9957 (store_ops_ok): Same.
9958
9959 * function.c (purge_addressof_1): Do not allow paradoxical subregs
9960 of vectors.
9961 (fixup_var_refs_1): Same.
9962 (instantiate_virtual_regs_1): Same.
9963
9964 * fold-const.c (operand_equal_p): Handle vectors.
9965 (fold): Same.
9966 (rtl_expr_nonnegative_p): Same.
9967
9968 * flow.c (mark_used_regs): Handle vectors.
9969
9970 * df.c (df_uses_record): Handle vectors.
9971
9972 * cselib.c (cselib_subst_to_values): Handle vectors.
9973 (cselib_mem_conflict_p): Same.
9974 (hash_rtx): Same.
9975
9976 * cse.c (canon_reg): Handle vectors.
9977 (fold_rt): Same.
9978 (cse_process_notes): Same.
9979 (count_reg_usage): Same.
9980 (canon_hash): Same.
9981
9982 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9983
9984 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9985
9986 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9987 (gen_rtx): Handle CONST_VECTOR.
9988 (gen_const_vector_0): New.
9989 (copy_rtx_if_shared): CONST_VECTORs can be shared.
9990 (reset_used_flags): Same.
9991 (copy_insn_1): Same.
9992 (initializer_constant_valid_p): Handle VECTOR_CST.
9993
9994 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9995
9996 * doc/rtl.texi (Constants): Document const_vector.
9997 (CONST0_RTX): Update for vectors.
9998 (RTL sharing): Same.
9999
10000 * print-tree.c (print_node): Add case for VECTOR_CST.
10001
10002 * tree.h (TREE_VECTOR_CST_ELTS): New.
10003 (struct tree_vector): New.
10004 (union tree_node): Add vector node.
10005 (build_vector): Add prototype.
10006
10007 * tree.def (VECTOR_CST): New.
10008
10009 * tree.c (build_vector): New.
10010
10011 * expmed.c (make_tree): Handle CONST_VECTOR.
10012
10013 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
10014 (CONST_VECTOR_ELT): New.
10015 (CONST_VECTOR_NUNITS): New.
10016
10017 * machmode.h (GET_MODE_INNER): New.
10018 (DEF_MACHMODE): Accept 8th arg.
10019
10020 * machmode.def: Add 8th argument for vector inner mode.
10021 Add inner vector modes for vectors.
10022
10023 * rtl.def (VEC_CONST): Remove.
10024 (CONST_VECTOR): New.
10025
10026 * expr.c (clear_storage): Allow vectors.
10027 (is_zeros_p): Handle VECTOR_CST.
10028
10029 * varasm.c (output_constant_pool): Handle vectors.
10030 (rtx_const): Add veclo and vechi fields.
10031 (kind): Add RTX_VECTOR.
10032 (decode_rtx_const): Add case for vector.
10033
10034 * config/rs6000/rs6000-protos.h: Add zero_constant.
10035
10036 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
10037 constants. Force easy vector constants into memory.
10038 (easy_vector_constant): New.
10039 (emit_easy_vector_constant): New.
10040 (rs6000_legitimize_reload_address): Do not generate bad reloads on
10041 darwin.
10042
10043 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
10044 instruction does.
10045 ("altivec_lvxl"): Same.
10046 (altivec_lvebx): Same.
10047 (altivec_lvehx): Same.
10048 (altivec_lvewx): Same.
10049 ("*movv4si_const0"): New.
10050 ("*movv4sf_const0"): New.
10051 ("*movv8hi_const0"): New.
10052 ("*movv16qi_const0"): New.
10053
10054 2002-02-18 Kazu Hirata <kazu@hxi.com>
10055
10056 * config/h8300/h8300.c (notice_update_cc): Use
10057 cc_status.value2.
10058
10059 2002-02-18 Kazu Hirata <kazu@hxi.com>
10060
10061 * config/h8300/h8300.md (divmod patterns): Change the
10062 constraints for operands[1] to register_operand.
10063
10064 2002-02-18 Kazu Hirata <kazu@hxi.com>
10065
10066 * config/h8300/h8300-protos.h: Remove the prototype for
10067 p_operand.
10068 * config/h8300/h8300.c (p_operand): Remove.
10069 * config/h8300/h8300.md: Replace p_operand with
10070 const_int_operand.
10071
10072 2002-02-18 Philip Blundell <pb@nexus.co.uk>
10073
10074 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
10075 comment.
10076 (output_return_instruction): Allow use of LDR to unstack
10077 return addresss even for interrupt handlers or when
10078 interworking. If compiling for ARMv5, use interworking-safe
10079 return instructions by default. Remove duplicated code and
10080 lengthy "strcat" sequences.
10081
10082 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10083
10084 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
10085 (LINK_EH_SPEC): Define.
10086 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
10087
10088 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
10089
10090 * config/s390/s390.c (s390_emit_prologue): Do not set the
10091 frame_related flag for call-clobbered registers.
10092
10093 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
10094
10095 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
10096 (construct_container): Fix handling of SSE operands.
10097 (ix86_expand_builtin): Fix handling of 64bit pointers.
10098 (mmx_maskmovq_rex): New pattern.
10099
10100 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
10101
10102 * regrename.c (kill_set_value): Handle subregs properly.
10103
10104 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
10105
10106 * objc/objc-act.c (handle_impent): Remove leading '*'
10107 from objc_class_name.
10108
10109 2002-02-17 Richard Henderson <rth@redhat.com>
10110
10111 * config/alpha/alpha.c (some_small_symbolic_operand,
10112 some_small_symbolic_operand_1, split_small_symbolic_operand,
10113 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
10114 Handle small SYMBOL_REFs anywhere, not just inside memories.
10115 * config/alpha/alpha-protos.h: Update.
10116 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10117 * config/alpha/alpha.md (small symbolic operand splitter): Update.
10118
10119 2002-02-17 Roland McGrath <roland@frob.com>
10120
10121 * config.gcc (powerpc-*-gnu-gnualtivec*,
10122 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
10123 * config/rs6000/gnu.h: New file.
10124 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
10125 Grok "gnu" in rs6000_abi_name.
10126 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
10127 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
10128 Grok -mcall-gnu analogous to -mcall-linux et al.
10129 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10130 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
10131 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
10132
10133 2002-02-17 Jakub Jelinek <jakub@redhat.com>
10134
10135 PR c/3444:
10136 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
10137 shortening.
10138
10139 2002-02-17 Philipp Thomas <pthomas@suse.de>
10140
10141 * config/cris/cris.h: Undefine STARTFILE_SPEC and
10142 ENDFILE_SPEC before (re)defining them.
10143
10144 2002-02-17 Kazu Hirata <kazu@hxi.com>
10145
10146 * config/h8300/h8300.c: Fix formatting.
10147 * config/h8300/h8300.h: Likewise.
10148
10149 2002-02-17 Philipp Thomas <pthomas@suse.de>
10150
10151 * doc/tm.texi: Explain why empty strings should not be
10152 marked for translation.
10153
10154 2002-02-17 Philipp Thomas <pthomas@suse.de>
10155
10156 * final.c (output_operand_lossage): Changed to accept
10157 printf style arguments. Change calls where necessary.
10158 * output.h (output_operand_lossage): Change declaration
10159 accordingly. Update copyright.
10160 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
10161 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
10162 Update copyright date where necessary.
10163
10164 * config/i386/i386.c (print_operand): Likewise. Remove use of
10165 sprintf.
10166
10167 * config/cris/cris.c (cris_operand_lossage): Likewise.
10168 Rename parameter so that exgettext recognizes it as
10169 translatable message.
10170 (LOSE_AND_RETURN): Rename parameter to msgid.
10171
10172 2002-02-17 Kazu Hirata <kazu@hxi.com>
10173
10174 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
10175 hard coded register number with an appropriate macro.
10176 (HARD_REGNO_MODE_OK): Likewise.
10177 (ARG_POINTER_REGNUM): Likewise.
10178 (STATIC_CHAIN_REGNUM): Likewise.
10179 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
10180 * config/h8300/h8300.md (define_constants): Define more
10181 register numbers.
10182
10183 2002-02-17 Philipp Thomas <pthomas@suse.de>
10184
10185 * config/i386/i386.h: Don't mark empty strings for translation.
10186
10187 2002-02-16 H.J. Lu <hjl@gnu.org>
10188
10189 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
10190
10191 2002-02-16 Zack Weinberg <zack@codesourcery.com>
10192
10193 * cppinit.c (merge_include_chains): Check for brack being
10194 NULL before attempting to merge it with qtail.
10195
10196 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10197
10198 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
10199 DBX_DEBUG.
10200
10201 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
10202
10203 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
10204
10205 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
10206
10207 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
10208 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
10209 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
10210
10211 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10212
10213 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
10214 now only if !TARGET_FIX.
10215 (*movsi_nt_vms_fix): New pattern.
10216
10217 2002-02-16 Douglas B Rupp <rupp@gnat.com>
10218
10219 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
10220 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
10221 (alpha_sa_mask, alpha_sa_size): Reflect above change.
10222 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
10223 (alpha_start_function, alpha_expand_epilogue): Likewise.
10224 (unicosmk_gen_dsib): Likewise.
10225
10226 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10227
10228 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
10229
10230 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
10231
10232 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
10233 check_and_change_labels, s390_final_chunkify): Delete.
10234 (s390_split_branches, s390_chunkify_pool): New functions.
10235 (s390_function_prologue): Call them.
10236
10237 * config/s390/s390.h (S390_REL_MAX): Delete.
10238 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
10239
10240 * config/s390/s390.md (cjump, icjump, jump): Fix length
10241 attribute calculation.
10242
10243
10244 2002-02-15 David Edelsohn <edelsohn@gnu.org>
10245
10246 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
10247 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
10248
10249 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10250
10251 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
10252 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
10253 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
10254
10255 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
10256
10257 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
10258
10259 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
10260
10261 * reload.c (find_dummy_reload): Check that an output register
10262 is valid for its mode.
10263
10264 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
10265
10266 * combine.c (known_cond): After replacing the REG of a SUBREG, try
10267 to simplify it.
10268
10269 * function.c (assign_parms): Demote promoted argument passed by
10270 transparent reference.
10271
10272 2001-02-14 Joel Sherrill <joel@OARcorp.com>
10273
10274 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
10275 -Acpu() and -Amachine() to eliminate warnings.
10276
10277 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
10278
10279 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
10280
10281 2002-02-14 Kazu Hirata <kazu@hxi.com>
10282
10283 * config/h8300/h8300-protos.h: Update the prototype for
10284 const_costs.
10285 * config/h8300/h8300.c (const_costs): Treat SET as a little
10286 more expensive operation.
10287 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
10288 reference to const_costs.
10289
10290 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
10291
10292 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
10293
10294 2002-02-14 Jakub Jelinek <jakub@redhat.com>
10295
10296 PR c/5503:
10297 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
10298 use arguments from newtype.
10299
10300 2002-02-13 Eric Christopher <echristo@redhat.com>
10301
10302 * config/mips/mips.c (override_options): Add check for march/mipsX
10303 on the same command line. Fix error message in cpu processing.
10304 Remove architecture and ISA checks.
10305
10306 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
10307
10308 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
10309
10310 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
10311
10312 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
10313
10314 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
10315 alternatives.
10316 ("*movv8hi_internal1"): Same.
10317 ("*movv16qi_internal1"): Same.
10318 ("*movv4sf_internal1"): Same.
10319
10320 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
10321 not push_reload for altivec modes.
10322
10323 2002-02-13 Joel Sherrill <joel@OARcorp.com>
10324
10325 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
10326 all RTEMS targets including removal of #includes from config/*/rtems*.h
10327 file and adding them to tm_file setting. Added xm_defines=POSIX to
10328 many targets.
10329 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
10330 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
10331 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
10332 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
10333 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
10334 config/m68k/rtemself.h: Ditto.
10335 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
10336 config/mips/rtems64.h: Ditto.
10337 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
10338 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
10339 Ditto.
10340 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
10341 config/sparc/rtemself.h: Ditto.
10342 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
10343 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
10344 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
10345 more like arm-elf.
10346 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
10347 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
10348 target made more similar to i386-elf.
10349 * config/i386/t-rtems-i386: Added soft float support and multilibs.
10350 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
10351 be similar to config/m68k/t-m68kelf.
10352 * gthr-rtems.h: Encapsulate with extern "C" for C++.
10353
10354 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
10355
10356 * regmove.c (kill_value): Handle subregs.
10357
10358 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
10359
10360 * i386.md (mul patterns): Allow memory operand to be first;
10361 add expanders where needed; fix constraints.
10362 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
10363 Allow memory operand to be the first.
10364
10365 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
10366 operands.
10367
10368 2002-02-13 Jakub Jelinek <jakub@redhat.com>
10369
10370 PR c/5681:
10371 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
10372 GET_MODE (x).
10373
10374 2002-02-13 Jakub Jelinek <jakub@redhat.com>
10375
10376 PR optimization/5547:
10377 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
10378 all valid IA-32 address modes involving non-scaled %ebx and
10379 GOT/GOTOFF as displacement.
10380
10381 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
10382
10383 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
10384 after emitting ltorg insns.
10385
10386 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
10387 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
10388 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
10389 *abssf2): Fix "op_type" attribute.
10390
10391 2002-02-13 Douglas B Rupp <rupp@gnat.com>
10392
10393 * mkconfig.sh: Avoid using a subshell redirect.
10394 ($output.T): Change to $(output)T.
10395 (ENABLE_NLS): Remove unneeded undef.
10396
10397 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
10398 * config/alpha/x-vms (libsubdir): Define.
10399
10400 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
10401 register frame procedures. Optimize retrieving context.
10402
10403 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
10404 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
10405 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
10406
10407 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10408
10409 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
10410 Make same change as for find_base_value.
10411
10412 2002-02-13 Kazu Hirata <kazu@hxi.com>
10413
10414 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
10415 of QImode and SImode.
10416
10417 2002-02-13 Kazu Hirata <kazu@hxi.com>
10418
10419 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
10420 length computation of movsi.
10421 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
10422
10423 2002-02-13 Kazu Hirata <kazu@hxi.com>
10424
10425 * config/h8300/h8300.md (subqi3): Tighten the predicate for
10426 operands[2] to register_operand.
10427
10428 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
10429
10430 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
10431
10432 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
10433
10434 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
10435 for altivec_lvx* and altivec_stvx*.
10436 ("*movv4si_internal"): Add constraint for loading from GPRs.
10437 ("*movv8hi_internal1"): Same.
10438 ("*movv16qi_internal1"): Same.
10439 ("*movv4sf_internal1"): Same.
10440
10441 * config/rs6000/rs6000.c (altivec_register_operand): New.
10442
10443 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10444 altivec_register_operand.
10445
10446 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
10447
10448 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10449 handle SYMBOL_REF.
10450
10451 2002-02-13 Stan Shebs <shebs@apple.com>
10452
10453 * c-typeck.c (digest_init): Handle vectors.
10454 (really_start_incremental_init): Same.
10455 (pop_init_level): Same.
10456 (process_init_element): Same.
10457
10458 * varasm.c (output_constant): Same.
10459
10460 * expr.c (clear_storage): Same.
10461 (store_constructor): Same.
10462
10463 2002-02-12 Eric Christopher <echristo@redhat.com>
10464
10465 * explow.c (hard_function_value): Add comment explaining
10466 signed/unsigned comparison.
10467
10468 2002-02-12 Jakub Jelinek <jakub@redhat.com>
10469
10470 * jump.c (never_reached_warning): Add finish argument.
10471 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10472 real insn after end.
10473 * rtl.h (never_reached_warning): Adjust prototype.
10474 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10475 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10476 never_reached_warning.
10477
10478 2002-02-12 Graham Stott <grahams@redhat.com>
10479
10480 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10481
10482 2002-02-12 Kazu Hirata <kazu@hxi.com>
10483
10484 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10485 logical shifts on H8/300.
10486 (shift_alg_si): Improve several shifts on H8/300.
10487 (get_shift_alg): Likewise.
10488
10489 2002-02-12 Graham Stott <grahams@redhat.com>
10490
10491 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10492
10493 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10494
10495 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10496 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10497
10498 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
10499
10500 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10501 non-CONST_INT through default_assemble_integer.
10502 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10503 <case 8>: Abort for CONST_DOUBLE.
10504
10505 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10506
10507 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10508 is specified.
10509 * config/pa/pa-linux.h (LIB_SPEC): Delete.
10510 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10511
10512 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
10513
10514 * config/stormy16/stormy16.md (zero_extendqihi2): New.
10515
10516 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
10517
10518 * regrename.c (regrename_optimize): Don't accept a
10519 part-clobbered register if the replaced register is not part
10520 clobbered.
10521
10522 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10523 take padding into account when computing the argument value.
10524
10525 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10526
10527 * combine.c (try_combine): Apply substitutions in
10528 CALL_INSN_FUNCTION_USAGE too.
10529
10530 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
10531
10532 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10533 __builtin_altivec_abs*.
10534 (bdesc_abs): New.
10535
10536 * config/rs6000/rs6000.h (rs6000_builtins): Add
10537 ALTIVEC_BUILTIN_ABS*.
10538
10539 * config/rs6000/altivec.h: Use const char for builtins expecting
10540 literals.
10541 (vec_abs): New versions for C and C++.
10542 (vec_abss): Same.
10543
10544 2002-02-10 Kazu Hirata <kazu@hxi.com>
10545
10546 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10547 using Pmode.
10548
10549 2002-02-10 Kazu Hirata <kazu@hxi.com>
10550
10551 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10552 constant definition from h8300.md.
10553 (FRAME_POINTER_REGNUM): Likewise.
10554 * config/h8300/h8300.md (define_constants): Add FP_REG.
10555
10556 2002-02-10 Kazu Hirata <kazu@hxi.com>
10557
10558 * config/h8300/h8300.c (print_operand): Remove redundant code.
10559
10560 2002-02-10 Kazu Hirata <kazu@hxi.com>
10561
10562 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10563 * config/h8300/h8300.c (byte_reg): Make it static.
10564
10565 2002-02-10 Richard Henderson <rth@redhat.com>
10566
10567 PR c/5623
10568 * c-typeck.c (incomplete_type_error): Handle flexible array members.
10569
10570 2002-02-10 Richard Henderson <rth@redhat.com>
10571
10572 PR c++/5624
10573 * tree.c (append_random_chars): Don't abort if main_input_filename
10574 does not exist.
10575
10576 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
10577
10578 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10579
10580 2002-02-10 Kazu Hirata <kazu@hxi.com>
10581
10582 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10583 (pushhi1): Likewise.
10584
10585 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
10586
10587 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10588 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10589
10590 2002-02-09 David O'Brien <obrien@FreeBSD.org>
10591
10592 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10593 remove MASK_VIS.
10594 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
10595
10596 2002-02-09 Kazu Hirata <kazu@hxi.com>
10597
10598 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10599 a half of an SImode register on H8/300.
10600
10601 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
10602
10603 * i386.md (movdi_2): Add missing '!'.
10604
10605 2002-02-09 Kazu Hirata <kazu@hxi.com>
10606
10607 * config/h8300/h8300.h: Fix formatting. Remove commented-out
10608 definitions.
10609
10610 2002-02-09 Kazu Hirata <kazu@hxi.com>
10611
10612 * config/h8300/h8300.md (length): Correct the distance valid
10613 for the short branch.
10614
10615 2002-02-09 Kazu Hirata <kazu@hxi.com>
10616
10617 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10618
10619 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10620
10621 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10622 registers in SImode.
10623 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10624 part-clobbered.
10625
10626 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10627 patch.
10628
10629 Contribute sh64-elf.
10630 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10631 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10632 (sh_cannot_modify_jumps_p): New function.
10633 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10634 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10635 (sh_ms_bitfield_layout_p): New function.
10636 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
10637 Zack Weinberg <zack@codesourcery.com>
10638 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10639 expand_simple_binop instead of expand_binop.
10640 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
10641 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10642 use of .quad and .uaquad.
10643 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10644 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10645 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10646 * config/sh/sh.md (movdi_const, movdi_const_32bit,
10647 movdi_const_16bit): Make sure all CONSTs have modes.
10648 (sym2PIC): Ditto, but by adjusting all callers.
10649 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10650 if the prologue calls the SHmedia argument decoder or register
10651 saver.
10652 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10653 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10654 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10655 (sh_expand_epilogue): Don't emit USE of return target register.
10656 (prepare_move_operands): Legitimize DImode PIC addresses.
10657 (sh_media_register_for_return): Skip tr0, used to initialize the
10658 PIC register.
10659 (sh_expand_prologue): Remove explicit USE of return register.
10660 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
10661 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
10662 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10663 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10664 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10665 EXTRA_CONSTRAINT_T.
10666 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10667 (MOVI_SHORI_BASE_OPERAND_P): New.
10668 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10669 (EXTRA_CONSTRAINT_T): Define in terms of them.
10670 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10671 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10672 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10673 alternatives supporting TARGET_REGS.
10674 (UNSPEC_GOTPLT): New constant.
10675 (movdi split): Move incrementing of LABEL_NUSES...
10676 (movdi_const, movdi_const_32bit): Here. Use
10677 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10678 (movdi_const_16bit): New.
10679 (call, call_value) [flag_pic]: Use GOTPLT.
10680 (call_pop, call_value_pop): New expands.
10681 (call_pop_compact, call_pop_rettramp): New insns.
10682 (call_value_pop_compact, call_value_pop_rettramp): New insns.
10683 (sibcall) [flag_pic]: Use GOT.
10684 (builtint_setjmp_receiver): Remove bogus, unused expand.
10685 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10686 (*pt, *ptb, ptrel): New insns.
10687 (sym2GOT): Handle DImode GOT.
10688 (sym2GOTPLT, symGOTPLT2reg): New expands.
10689 (sym2PIC): New expand.
10690 (shcompact_return_tramp): Use GOTPLT to return trampoline.
10691 (shcompact_return_tramp_i): Use return register explicitly.
10692 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10693 disable flag_reorder_blocks.
10694 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10695 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10696 clobbers, for clarity.
10697 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10698 restoring of r0 in macl as MAYBE_DEAD.
10699 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
10700 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10701 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10702 alter_subreg all over.
10703 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10704 reload, instead of emitting instructions that would require
10705 reloading.
10706 (casesi_load_media): Add missing modes.
10707 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
10708 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10709 as used if the argument decoder is called.
10710 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10711 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10712 Pmode, then extend it to DImode if necessary.
10713 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10714 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10715 constants in FPU-enabled SHmedia, let them be loaded from memory.
10716 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10717 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10718 Adjust whitespace in assembly output templates.
10719 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10720 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10721 mode of if_then_else.
10722 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
10723 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10724 sh.h.
10725 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
10726 Joern Rennecke <amylaar@redhat.com>
10727 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10728 (SUBTARGET_CPP_PTR_SPEC): New.
10729 (SUBTARGET_CPP_SPEC): Remove.
10730 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10731 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10732 Fix typo in previous checkin.
10733 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
10734 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10735 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
10736 Alexandre Oliva <aoliva@redhat.com>
10737 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10738 what single FP register can hold for SHmedia target.
10739 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10740 Alexandre Oliva <aoliva@redhat.com>
10741 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10742 Do not split into SUBREG.
10743 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
10744 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10745 and added new functions as specified in SH5 ABI r9.
10746 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
10747 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10748 8-byte boundary.
10749 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
10750 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10751 gen_consttable_4 and gen_consttable_8. Emit multiple labels
10752 and consttable_window_ends.
10753 2001-06-03 Graham Stott <grahams@redhat,com>
10754 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10755 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
10756 * config/sh/sh.c (print_operand): Handle floating-point pair,
10757 vector and matrix registers.
10758 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10759 vector modes into account.
10760 * config/sh/sh.md (movv2sf): Split move between registers into
10761 movdf.
10762 (movv4sf, movv16sf): Introduce insns that get split only after
10763 reload.
10764 * config/sh/shmedia.h: Fix Copyright dates.
10765 * config/sh/ushmedia.h: Likewise. Move loop counter
10766 declarations into conditionals that uses them.
10767 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10768 loop boundary.
10769 * config/sh/sshmedia.h: Fix Copyright dates.
10770 (sh_media_PUTCFG): Fix constraints.
10771 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
10772 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10773 ptrmemfunc_vbit_in_delta for SH5.
10774 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
10775 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10776 * invoke.texi: Likewise.
10777 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10778 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10779 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10780 GCC_pop_shmedia_regs_nofpu): New global symbols.
10781 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10782 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10783 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10784 compact function with nonlocal labels.
10785 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10786 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10787 (initial_elimination_offset): Account for their stack space.
10788 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10789 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10790 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10791 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10792 least one of the operands to be a register.
10793 (movv2sf): Likewise. Renamed to movv2sf_i.
10794 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10795 prepare_move_operands() before emitting SHmedia insns.
10796 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
10797 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10798 Don't save nor initialize r12. Don't mis-align the stack.
10799 Pad the code with a nop.
10800 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
10801 stack.
10802 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
10803 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10804 [__SHMEDIA__]: Implement.
10805 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
10806 * config/sh/sh.md: Set latency of `pt' closer to reality.
10807 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10808 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10809 Set move, load and store type attributes.
10810 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10811 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10812 profiling.
10813 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10814 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10815 * config/sh/sh.c (sh_media_register_for_return): New function.
10816 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10817 branch-target register.
10818 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10819 * config/sh/sh.md (return_media_i): Use any call-clobbered
10820 branch-target register.
10821 (return_media): If r18 wasn't copied in the prologue, copy it
10822 here.
10823 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10824 Clear class FP0_REGS.
10825 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10826 from elf.h.
10827 2001-03-08 DJ Delorie <dj@redhat.com>
10828 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10829 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
10830 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10831 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
10832 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10833 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
10834 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10835 return value correctly for call_cookie.
10836 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
10837 * config/sh/crt1.asm (start): Modified so as to call
10838 ___setup_argv_and_call_main.
10839 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
10840 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10841 SHmedia mode.
10842 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
10843 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10844 (STRIP_NAME_ENCODING): Use it.
10845 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
10846 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
10847 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10848 prepare_scc_operands().
10849 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10850 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10851 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
10852 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10853 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
10854 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10855 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10856 used in shcompact_incoming_args.
10857 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10858 change.
10859 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10860 mode.
10861 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10862 Adjust accordingly.
10863 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10864 Simplify. Adjust. Add sanity check.
10865 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10866 FPU_SINGLE_BIT.
10867 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10868 TARGET_SHCOMPACT.
10869 (udivsi3, divsi3): Use them.
10870 (force_mode_for_call): New insn.
10871 (call, call_value, sibcall_value): Emit it before SHcompact
10872 calls.
10873 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
10874 * config/sh/sh.md (call, call_value, sibcall): Make sure the
10875 call cookie is non-NULL before taking its value.
10876 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
10877 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10878 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
10879 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10880 block.
10881 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10882 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10883 temporary for stack adjusts. Use MACL and MACH to pass
10884 arguments to shcompact_incoming_args.
10885 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
10886 clobber r1.
10887 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10888 (nested_trampoline): Load static chain address into r1.
10889 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10890 2001-01-07 Alexandre Oliva <aoliva@redhat.com
10891 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10892 fp_arith_reg_operand().
10893 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
10894 * config/sh/sh.md (casesi): Sign-extend the first two operands,
10895 and use signed compares for them.
10896 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10897 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
10898 ones properly aligned.
10899 (find_barrier): Account for extra alignment needed for 8-byte wide
10900 constants.
10901 (machine_dependent_reorg): Require a label for the second 4-byte
10902 constant after an 8-byte one.
10903 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10904 change.
10905 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10906 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10907 last_float when switching float modes.
10908 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10909 auto-increment for general-purpose registers.
10910 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10911 result.
10912 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10913 for stack adjust.
10914 * config/sh/sh.c (sh_builtin_saveregs): Support using all
10915 registers for varargs.
10916 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
10917 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10918 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10919 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10920 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10921 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
10922 call_cookie accordingly.
10923 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10924 (SHCOMPACT_BYREF): Likewise.
10925 (SHCOMPACT_FORCE_ON_STACK): New macro.
10926 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10927 (sh_builtin_saveregs): Likewise.
10928 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10929 shcompact_incoming_args): Use new shift values. Support
10930 sequences of consecutive and non-consecutive pushes/pops.
10931 * config/sh/sh.md (return): Don't explicitly use PR_REG.
10932 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
10933 * config/sh/sh.h (TEXT_SECTION): Define.
10934 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10935 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10936 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10937 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10938 return values on FPU-enabled SHmedia.
10939 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10940 FPU-enabled SHmedia.
10941 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10942 value is returned in a non-FP reg and is not returned by
10943 reference.
10944 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10945 jump_ind.
10946 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
10947 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10948 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10949 quad-aligned to be passed by callee-copy reference.
10950 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
10951 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10952 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10953 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
10954 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10955 copying low-numbered FP regs to r7 and r8.
10956 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10957 FP regs to general-purpose regs only if the copy was passed on the
10958 stack.
10959 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10960 copying FP reg to r9.
10961 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10962 copy FP regs to general-purpose regs only in outgoing calls.
10963 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10964 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
10965 HOST_WIDE_INT.
10966 * config/sh/sh.h (struct sh_args): Document all fields.
10967 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10968 passed partially on the stack should not consider making
10969 sibcalls.
10970 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10971 stack_regs only for incoming calls. When passing FP args,
10972 make sure there are FP regs available before modifying
10973 call_cookie.
10974 (SHCOMPACT_BYREF): Pass double args in general-purpose
10975 registers by reference.
10976 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
10977 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10978 attempt to generate sibcalls if the caller got any arguments
10979 by reference.
10980 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10981 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10982 to 8-byte boundaries.
10983 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10984 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10985 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10986 stored in the stack.
10987 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10988 for the offsets to have the ISA bit set.
10989 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
10990 invocation. Use beq instead of bgt to mark end of sequence of
10991 loads.
10992 (shcompact_incoming_args): Fix store of r2. Use beq instead of
10993 bgt to mark end of sequence of stores.
10994 * config/sh/sh.c (arith_operand): Don't check whether
10995 CONST_OK_FOR_J for now.
10996 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10997 instead of long for conversion.
10998 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
10999 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
11000 before passing it to fprintf.
11001 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
11002 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
11003 Call set_fpscr before reading/writing SR.
11004 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
11005 Call set_fpscr.
11006 * config/sh/lib1funcs.asm: Add `.align 2' directives before
11007 SHmedia code.
11008 (FMOVD_WORKS): Define on SH5 with FPU.
11009 (set_fpscr): Define on SH5. Remove separate _fpscr_values
11010 setting.
11011 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
11012 _fpscr_values.
11013 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
11014 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
11015 address.
11016 (ia_main_table): Ditto.
11017 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
11018 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11019 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
11020 the definitions from sh.h.
11021 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
11022 TARGET_SH5.
11023 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
11024 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
11025 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11026 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
11027 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
11028 Increment LABEL_NUSES.
11029
11030 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
11031 TARGET_SH5.
11032 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
11033 defined.
11034 * config/sh/elf.h (SIZE_TYPE): Likewise.
11035 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11036 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11037 shcompact_incoming_args): Load switch table addresses using
11038 datalabel.
11039 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11040 (NO_BUILTIN_SIZE_TYPE): Define.
11041 (SIZE_TYPE): Don't define.
11042 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11043 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
11044 definition of __SH5__=32 for -m5-compact-nofpu.
11045 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
11046 ADDR_DIFF_VEC.
11047 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
11048 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
11049 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
11050 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
11051 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
11052 (INSN_LENGTH_ALIGNMENT): Likewise.
11053 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11054 * config/sh/sh.md (call, call_value, sibcall): Simplify
11055 copying of non-branch-target register.
11056 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11057 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
11058 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
11059 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11060 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
11061 floating-point values as structs.
11062 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
11063 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
11064 general-purpose register.
11065 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
11066 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
11067 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
11068 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
11069 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
11070 (ENCODE_SECTION_INFO): Enclose variables and constants in
11071 DATALABEL unspecs.
11072 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
11073 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
11074 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
11075 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
11076 only for LABEL_REFs. For SYMBOL_REFs, prepend
11077 SH_DATALABEL_ENCODING to the symbol name.
11078 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
11079 convert_mode().
11080 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
11081 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
11082 UNSPEC_DATALABEL.
11083 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
11084 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
11085 (DATALABEL_REF_P): Don't require CONST.
11086 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
11087 REL label.
11088 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
11089 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
11090 right.
11091 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
11092 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
11093 Use shallow_copy_rtx and PUT_MODE to change the mode of
11094 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
11095 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
11096 on SHmedia using GENERAL_REGs.
11097 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11098 bltu_media_i): Fix reversion of conditions.
11099 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
11100 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
11101 * config/sh/sh.c (output_far_jump): Save r13 in macl.
11102 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
11103 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
11104 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
11105 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
11106 (GCC_nested_trampoline): Likewise.
11107 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
11108 * config/sh/sh.c (gen_datalabel_ref): Define.
11109 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
11110 (INITIALIZE_TRAMPOLINE): Likewise.
11111 (TRAMPOLINE_ADJUST_ADDRESS): Define.
11112 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
11113 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
11114 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
11115 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
11116 (ic_invalidate): Adjust for SH5.
11117 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
11118 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
11119 _nested_trampoline.
11120 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
11121 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
11122 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
11123 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
11124 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
11125 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
11126 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
11127 * config/sh/sh.c (target_reg_operand): Match only target-branch
11128 registers and pseudos that aren't virtual registers.
11129 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11130 Copy operands that don't match target_reg_operand to pseudos.
11131 (call_media, call_value_media, sibcall_media): Use
11132 target_reg_operand instead of target_operand.
11133 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
11134 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
11135 * config/sh/sh.c (target_reg_operand): Match hardware registers
11136 other than branch-target registers.
11137 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
11138 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
11139 (fpscr_values) [SH5 == 32]: Define.
11140 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
11141 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11142 Handle function addresses coming in SUBREGs.
11143 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
11144 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11145 shcompact_return_trampoline): Use datalabel where appropriate.
11146 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
11147 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
11148 general-purpose register to copy one branch-target register to
11149 another.
11150 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
11151 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
11152 SYMBOL_REFs with VOIDmode.
11153 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11154 bltu_media_i): New insns.
11155 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
11156 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
11157 (INIT_CUMULATIVE_ARGS): Likewise.
11158 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
11159 * machmode.def (V16SFmode): New mode.
11160 * c-common.c (type_for_mode): Support V2SF and V16SF.
11161 * tree.c (build_common_tree_nodes_2): Likewise.
11162 * tree.h (tree_index): Likewise.
11163 * calls.c (emit_call_1): Take args_so_far. Adjust all
11164 callers. Introduce CALL_POPS_ARGS.
11165 * tm.texi (CALL_POPS_ARGS): Document.
11166 * config/sh/crt1.asm: Implement in SHmedia mode.
11167 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
11168 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
11169 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
11170 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
11171 Implement divsi and udivsi in SHmedia mode. Introduce
11172 SHcompact trampolines.
11173 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
11174 only in SHmedia64.
11175 (regno_reg_class): Rewrite.
11176 (fp_reg_names): Remove.
11177 (sh_register_names, sh_additional_register_names): New.
11178 (print_operand): Added `u'. Support SUBREGs in addresses.
11179 Add parentheses around shifted CONSTs.
11180 (output_file_start): Output .mode and .abi directives.
11181 (shiftcosts, addsubcosts, multcosts): Adjust.
11182 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
11183 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
11184 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
11185 bytes, not registers. Take into account the need for the
11186 SHcompact incoming args trampoline. Adjust all callers.
11187 (sh_expand_prologue): Take stack_regs into account. Call
11188 incoming args trampoline. Keep stack aligned as per SH5 ABI.
11189 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
11190 stack aligned as per SH5 ABI.
11191 (sh_builtin_saveregs): Support SH5 ABI.
11192 (sh_build_va_list, sh_va_start): Likewise.
11193 (initial_elimination_offset): Take alignment into account.
11194 Compute location of PR according to the SH5 stack frame.
11195 (arith_reg_operand): Reject branch-target registers.
11196 (shmedia_6bit_operand): New.
11197 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
11198 (target_reg_operand): Match DImode only. Accept SUBREGs.
11199 (target_operand): New.
11200 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
11201 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
11202 SIBCALL_REGS for SHmedia.
11203 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
11204 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
11205 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
11206 (TARGET_SWITCHES): New SH5 flags.
11207 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
11208 VALID_REGISTER_P to disable unsupported registers.
11209 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
11210 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
11211 (FUNCTION_ARG_PADDING): Define.
11212 (FASTEST_ALIGNMENT): Adjust.
11213 (SH_REGISTER_NAMES_INITIALIZER): New.
11214 (sh_register_names): Declare.
11215 (DEBUG_REGISTER_NAMES): Define.
11216 (REGISTER_NAMES): Define based on sh_register_names.
11217 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
11218 (sh_additional_register_names): Declare.
11219 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
11220 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
11221 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
11222 (REGISTER_NATURAL_MODE): Define.
11223 (FIRST_PSEUDO_REGISTER): Adjust.
11224 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
11225 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
11226 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
11227 (VECTOR_MODE_SUPPORTED_P): Define.
11228 (REG_CLASS_CONTENTS): Adjust.
11229 (SMALL_REGISTER_CLASSES): Adjust.
11230 (REG_ALLOC_ORDER): Adjust.
11231 (INDEX_REG_CLASS): Adjust.
11232 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
11233 (CONST_OK_FOR_LETTER_P): Adjust.
11234 (PREFERRED_RELOAD_CLASS): Adjust.
11235 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
11236 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
11237 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
11238 (FIRST_FP_PARM_REG): Adjust.
11239 (CALL_POPS_ARGS): Define.
11240 (FUNCTION_ARG_REGNO_P): Adjust.
11241 (struct sh_args): New fields.
11242 (GET_SH_ARG_CLASS): Adjust.
11243 (INIT_CUMULATIVE_ARGS): Adjust.
11244 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
11245 (FUNCTION_ARG_ADVANCE): Adjust.
11246 (FUNCTION_ARG): Adjust.
11247 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
11248 (FUNCTION_ARG_CALLEE_COPIES): Define.
11249 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
11250 (STRICT_ARGUMENT_NAMING): Define.
11251 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
11252 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
11253 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
11254 (SETUP_INCOMING_VARARGS): Adjust.
11255 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
11256 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
11257 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
11258 (SUBREG_OK_FOR_INDEX_P): Adjust.
11259 (EXTRA_CONSTRAINT_S): Update.
11260 (EXTRA_CONSTRAINT_T): New.
11261 (EXTRA_CONSTRAINT): Adjust.
11262 (GO_IF_LEGITIMATE_INDEX): Adjust.
11263 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
11264 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
11265 (MOVE_MAX): Adjust.
11266 (MAX_MOVE_MAX): Define.
11267 (Pmode): Adjust.
11268 (CONST_COSTS): Adjust.
11269 (REGISTER_MOVE_COST): Adjust.
11270 (BRANCH_COST): Adjust.
11271 (TEXT_SECTION_ASM_OP): Adjust.
11272 (DBX_REGISTER_NUMBER): Adjust.
11273 (ASM_OUTPUT_DOUBLE_INT): New.
11274 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
11275 (PREDICATE_CODES): Adjust.
11276 (PROMOTE_MODE): Adjust.
11277 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
11278 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
11279 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
11280 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
11281 (DR0_REG, DR2_REG, DR4_REG): Renumber.
11282 (TR0_REG, TR1_REG, TR2_REG): New.
11283 (XD0_REG): Renumber.
11284 (UNSPEC_COMPACT_ARGS): New.
11285 (type): Added pt and ptabs.
11286 (length): Default to 4 on SHmedia. Default pt length to 12
11287 and 20 on SHmedia32 and SHmedia64, respectively.
11288 (pt): New function unit.
11289 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
11290 Add whitespace between operands of SHmedia instructions.
11291 (movdicc): Fix.
11292 (adddi3_media, addsi3_media): Adjust constraints.
11293 (subsi3) [SHmedia]: Force operand 1 into a register.
11294 (udivsi3_i1_media, udivsi3_i4_media): New.
11295 (udivsi3): Support SHmedia.
11296 (divsi3_i1_media, divsi3_i4_media): New.
11297 (divsi3): Support SHmedia.
11298 (anddi3, iordi3, xordi3): Adjust constraints.
11299 (zero_extendhidi2, zero_extendqidi2): New.
11300 (extendsidi2, extendhidi2, extendqidi2): New.
11301 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
11302 (pop_e, pop_fpul, pop_4): Likewise.
11303 (movsi_media): Support FP and BT registers.
11304 (movsi_media_nofpu): New. Adjust splits to DImode.
11305 (lduw, ldub): Renamed to zero_extend* above.
11306 (movqi_media): Fix typo.
11307 (movdi_media): Support FP and BT registers.
11308 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
11309 (movdi_const_32bit): New.
11310 (shori_media): Require immediate operand. Use `u' for output.
11311 (movdf_media, movsf_media): Simplified.
11312 (movdf_media_nofpu, movsf_media_nofpu): New.
11313 (movdf, movsf): Adjust
11314 (movv2sf, movv2sf, movv16sf): New.
11315 (beq_media, beq_media_i): Adjust constraints. Don't use
11316 scratch BT register.
11317 (bne_media, bne_media_i): Likewise.
11318 (bgt_media, bgt_media_i): Likewise.
11319 (bge_media, bge_media_i): Likewise.
11320 (bgtu_media, bgtu_media_i): Likewise.
11321 (bgeu_media, bgeu_media_i): Likewise.
11322 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
11323 bunordered): Emit jump insn. Force operands to registers when
11324 needed.
11325 (jump_media, jump): Simplify.
11326 (call_compact, call_compact_rettramp): New.
11327 (call_value_compact, call_value_compact_rettramp): New.
11328 (call_media, call_value_media): Simplify.
11329 (sibcall_compact, sibcall_media): New.
11330 (call, call_value): Adjust for SHmedia and SHcompact.
11331 (sibcall, sibcall_value, untyped_call): Likewise.
11332 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
11333 (indirect_jump): Adjust for SHmedia.
11334 (casesi_jump_media): New.
11335 (nop): Re-enable for SHmedia.
11336 (call_site): Restrict to SH1.
11337 (casesi): Adjust for SHmedia.
11338 (casesi_shift_media, casesi_load_media): New.
11339 (return): Explicitly use PR register. Call return trampoline
11340 on SHcompact.
11341 (return_i): Explicitly use PR register.
11342 (shcompact_return_tramp, shcompact_return_tramp_i): New.
11343 (return_media): Adjust.
11344 (shcompact_incoming_args): New.
11345 (epilogue): Adjust.
11346 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11347 (movstrsi): Disable on SH5.
11348 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
11349 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
11350 (subsf3, subsf3_media): Likewise.
11351 (mulsf3, mulsf3_media, mac_media): Likewise.
11352 (divsf3, divsf3_media): Likewise.
11353 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
11354 (floatsisf2, fux_truncsfsi2): Likewise.
11355 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
11356 constraints.
11357 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
11358 (cmpunsf_media, cmpsf): Likewise.
11359 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
11360 (abssf2, abssf2_media): Likewise.
11361 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
11362 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
11363 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
11364 (floatsidf2, fix_truncdfsi2): Likewise.
11365 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
11366 constraints.
11367 (cmpeqdf_media, cmpgtdf_media): Likewise.
11368 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
11369 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
11370 (absdf2, absdf2_media): Likewise.
11371 (extendsfdf2, extendsfdf2_media): Likewise.
11372 (truncsfdf2, truncsfdf2_media): Likewise.
11373 * config/sh/sh64.h: New file.
11374 * config/sh/t-sh64: New file.
11375 * config/sh/shmedia.h: New file.
11376 * config/sh/ushmedia.h: New file.
11377 * config/sh/sshmedia.h: New file.
11378 * configure.in: Added sh64-*-elf.
11379 * configure: Rebuilt.
11380 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
11381 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
11382 (reg_class_from_letter): Use `b' for TARGET_REGS.
11383 (print_operand): Support `%M', `%m', `AND' and
11384 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
11385 (andcosts): Adjust for SHmedia.
11386 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
11387 Likewise.
11388 (target_reg_operand): New function.
11389 * config/sh/sh-protos.h (target_reg_operand): Declare.
11390 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
11391 FP registers on SH5.
11392 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
11393 on SH4.
11394 (TARGET_REGISTER_P): New macro.
11395 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
11396 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
11397 (EXTRA_CONSTRAINT_S): New macro.
11398 (EXTRA_CONSTRAINT): Adjust.
11399 (FLOAT_TYPE_SIZE): Define to 32.
11400 (Pmode): DImode on SHmedia.
11401 (CONST_COSTS): Adjust for SHmedia literals.
11402 (PREDICATE_CODES): Added target_reg_operand.
11403 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
11404 * config/sh/sh.md: Remove all attrs from SHmedia insns.
11405 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
11406 (cmpdi): Accept SHmedia.
11407 (movdicc_false, movdicc_true): New insns.
11408 (movdicc): New expand.
11409 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
11410 no_new_pseudos.
11411 (addsi3_media): Match `S' constraint.
11412 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
11413 (negdi2): Expand for SHmedia.
11414 (one_cmpldi2): New expand.
11415 (zero_extendsidi2): Change from expand to insn.
11416 (extendsidi2): Add constraints.
11417 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
11418 LD/ST address. Fix SI immediate loading split.
11419 (movhi_media, movqi_media, lduw, ldub): New insns.
11420 (movhi, movqi): Accept SHmedia.
11421 (shori_media, movdi_media): Relax input constraints. Split
11422 symbolic constants.
11423 (movdf_media, movsf_media): New insn. New split to movdi.
11424 (movdf, movsf): Match on SHmedia.
11425 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
11426 bgeu_media): New insns and splits. New insns with `_i' suffix.
11427 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
11428 (bunordered): New expand.
11429 (jump_compact): Renamed from `jump'.
11430 (jump_media): New insn.
11431 (jump): New expand.
11432 (call_media, call_value_media): New insns.
11433 (call, call_value): Adjust.
11434 (indirect_jump_compact): Renamed from `indirect_jump'.
11435 (indirect_jump_media): New insn.
11436 (indirect_jump): New expand.
11437 (untyped_call, return): Accept SHmedia.
11438 (return_media): New insn.
11439 (prologue, epilogue, blockage): Accept SHmedia.
11440 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11441 (sunordered): New expand.
11442 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
11443 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
11444 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
11445 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
11446 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
11447 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
11448 abssf2_media): New insns.
11449 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11450 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11451 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11452 floatdidf2, floatsidf2_media, fix_truncdfdi2,
11453 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11454 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11455 absdf2_media): New insns.
11456 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11457 (extendsfdf2_media, truncdfsf2_media): New insns.
11458 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
11459 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11460 * config/sh/sh.h (CONST_OK_FOR_J): Document.
11461 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11462 * config/sh/sh.md (adddi3): New expand.
11463 (adddi3_media, adddi3z_media): New insns.
11464 (adddi3_compact): Renamed from adddi3.
11465 (addsi3_media): Use add.l r63 to add constant zero.
11466 (subdi3): New expand.
11467 (subdi3_media): New insn.
11468 (subdi3_compact): Renamed from subdi3.
11469 (mulsidi3): New expand.
11470 (mulsidi3_media): New insn.
11471 (mulsidi3_compact): Renamed from mulsidi3.
11472 (umulsidi3): New expand.
11473 (umulsidi3_media): New insn.
11474 (umulsidi3_compact): Renamed from umulsidi3.
11475 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11476 (ashlsi3, ashrsi3, lshrsi3): Use them.
11477 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11478 (ashldi3, ashrdi3, lshrdi3): Use them.
11479 (zero_extendsidi2): New expand.
11480 (extendsidi2): New insn.
11481 (movsi_media): New insn. Split to movdi to load constants.
11482 (movsi): Enable for shmedia.
11483 (movdi_media): New insn. Use shori_media to load wide constants.
11484 (short_media): New insn.
11485 (movdi): Enable for shmedia.
11486 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
11487 * config/sh/sh.h (CPP_SPEC): Added `m5'.
11488 (SUBTARGET_CPP_SPEC): Added `!m5'.
11489 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11490 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
11491 to all other SH variants.
11492 (TARGET_DEFAULT): Set to SH1_BIT.
11493 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11494 (BITS_PER_WORD): Raise to 64 on shmedia.
11495 (MAX_BITS_PER_WORD): Change to 64.
11496 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11497 (INT_TYPE_SIZE): Keep as 32.
11498 (UNITS_PER_WORD): Raise to 8 on shmedia.
11499 (MIN_UNITS_PER_WORD): Keep as 4.
11500 (POINTER_SIZE): Raise to 64 on shmedia.
11501 (CONST_OK_FOR_J): New macro.
11502 (CONST_OK_FOR_LETTER_P): Use it.
11503 (processor_type): Add PROCESSOR_SH5.
11504 * config/sh/sh.md: Conditionalize all expands, insns and
11505 splits to TARGET_SH1.
11506 (cpu): Added sh5.
11507 (addsi3_compact): Renamed from...
11508 (addsi3): Now an expand.
11509 (addsi3_media, subsi3_media): New insns.
11510 (subsi3): Don't negate constants with SHmedia.
11511
11512 * hooks.c: New file.
11513 * hooks.h: New file.
11514 * Makefile.in (HOOKS_H): New.
11515 (TARGET_DEF_H): Added $(HOOKS_H).
11516 (OBJS): Added hooks.o.
11517 (cfgcleanup.o, bb-reorder.o): Added target.h.
11518 (hooks.o): Added dependencies.
11519 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11520 (TARGET_INITIALIZER): this.
11521 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11522 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11523 * bb-reorder.c: Include target.h.
11524 (reorder_basic_blocks): Skip if cannot modify jumps.
11525 * cfgcleanup.c: Include target.h.
11526 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11527
11528 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11529
11530 * config/mips/mips.md (casesi_internal, casesi_internal_di):
11531 Protect jump delay slot instructions with .set noreorder and
11532 .set nomacro.
11533
11534 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11535
11536 * config/mips/mips.md (casesi_internal_di): Calculate
11537 the index into the target offset table correctly.
11538
11539 2002-02-08 Richard Henderson <rth@redhat.com>
11540
11541 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11542 * final.c (output_addr_const): Accept and discard SUBREG.
11543 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11544 mark them unknown instead.
11545 (simplify_subtraction): Handle RTX_UNKNOWN.
11546 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11547
11548 2002-02-08 David Edelsohn <edelsohn@gnu.org>
11549
11550 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11551
11552 2002-02-08 Richard Henderson <rth@redhat.com>
11553
11554 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11555
11556 2002-02-08 Andreas Jaeger <aj@suse.de>
11557
11558 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11559 * config/i386/t-linux64: New file.
11560
11561 2002-02-08 Jakub Jelinek <jakub@redhat.com>
11562
11563 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11564 * c-parse.in (compstmt): Clear last_expr_type.
11565
11566 2002-02-07 Richard Henderson <rth@redhat.com>
11567
11568 * loop.c (strength_reduce): Sink final_value when not
11569 eliminating a biv.
11570
11571 2002-02-07 David O'Brien <obrien@FreeBSD.org>
11572
11573 * config/sparc/freebsd.h: Fix mismatched spec {.
11574
11575 2002-02-07 Richard Henderson <rth@redhat.com>
11576
11577 * cfgrtl.c: Include recog.h and insn-config.h.
11578 (keep_with_call_p): Fix general_operand invocation.
11579 * Makefile.in (cfgrtl.o): Update dependencies.
11580
11581 2002-02-07 Kazu Hirata <kazu@hxi.com>
11582
11583 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11584 comment. Accept HImode only if TARGET_H8300.
11585
11586 2002-02-07 Eric Christopher <echristo@redhat.com>
11587
11588 * config/mips/crtn.asm: Cleanup #ifdefs.
11589
11590 2002-02-07 Eric Christopher <echristo@redhat.com>
11591
11592 * config/mips/crti.asm: Add changes for mips16. mips16 uses
11593 register 7 as RA instead of $31.
11594 * config/mips/crtn.asm: Ditto.
11595 * config/mips/mips.c (mips_move_2words): Add case for
11596 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11597 (compute_frame_size): Fix typo.
11598 (save_restore_insns): Ditto. Make documentation about using
11599 register $7 as return register more precise.
11600 (mips_expand_epilogue): Fix comment. Add code to work around not
11601 being able to add to the stack pointer directly.
11602 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11603 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11604 epilogue.
11605
11606 2002-02-07 Tom Rix <trix@redhat.com>
11607
11608 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11609 immediates in ldu and stdu DS opcode field.
11610 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11611 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11612 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11613
11614 2002-02-07 Jeff Sturm <jsturm@one-point.com>
11615
11616 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11617 offset for stack bias.
11618
11619 2002-02-07 H.J. Lu <hjl@gnu.org>
11620
11621 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11622
11623 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
11624
11625 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11626
11627 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
11628
11629 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11630 * i386.c (x86_order_regs_for_local_alloc): New global function.
11631 * i386.h (REG_ALLOC_ORDER): CLeanup.
11632 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11633
11634 2002-02-07 Richard Henderson <rth@redhat.com>
11635
11636 PR optimization/2463
11637 * alias.c (find_base_value): Recall base values for fixed hard regs.
11638 * loop.c (loop_regs_update): Don't use single_set on non-insns.
11639
11640 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
11641
11642 * config/mips/mips.md (define_delay) [mips16]: Adjust required
11643 length.
11644
11645 2002-02-06 Richard Henderson <rth@redhat.com>
11646
11647 PR c/5609
11648 * stmt.c (resolve_operand_name_1): Take more care with mixed
11649 named and unnamed operands.
11650
11651 2002-02-06 Janis Johnson <janis187@us.ibm.com>
11652 Jan Hubicka <jh@suse.cz>
11653
11654 * loop.c (remove_constant_addition): Avoid clobbering a shared
11655 CONST expression.
11656
11657 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11658
11659 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11660 * config/s390/t-linux64: New file.
11661 * config/s390/libgcc-glibc.ver: New file.
11662
11663 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11664
11665 * config/s390/linux64.h: Delete file.
11666 * config/s390/s390x.h: New file.
11667 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11668 as target header file.
11669 * config/s390/linux.h (TARGET_VERSION): Define depending on
11670 DEFAULT_TARGET_64BIT.
11671 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11672 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11673 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11674 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11675 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11676 (EXTRA_SPEC): New define.
11677 * config/s390/s390.h (TARGET_VERSION): Define depending on
11678 DEFAULT_TARGET_64BIT.
11679 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11680
11681 2002-02-06 Jason Merrill <jason@redhat.com>
11682
11683 * c-decl.c (finish_function): Warn about a non-void function with
11684 no return statement and no abnormal exit.
11685 (current_function_returns_abnormally): New variable.
11686 (start_function): Clear it.
11687 (struct c_language_function): Add returns_abnormally.
11688 (push_c_function_context): Save it.
11689 (pop_c_function_context): Restore it.
11690 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11691 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11692 an explicit return type.
11693 * c-tree.h: Declare current_function_returns_abnormally.
11694 (C_FUNCTION_IMPLICIT_INT): New macro.
11695 * c-typeck.c (build_function_call): Set it.
11696 (c_expand_return): Set current_function_returns_value even if the
11697 value is erroneous.
11698
11699 2002-02-06 Jakub Jelinek <jakub@redhat.com>
11700
11701 PR c/5420:
11702 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11703 unsafe for reevaluation.
11704
11705 2002-02-06 Jakub Jelinek <jakub@redhat.com>
11706
11707 PR c/5482:
11708 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11709 EXPR_STMT, but COMPOUND_STMT, recurse into it.
11710
11711 2002-02-06 Richard Henderson <rth@redhat.com>
11712
11713 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11714 be a general_operand. Dest for function value must be a pseudo.
11715
11716 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11717
11718 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11719 as SYMBOL_REFs from the constant pool.
11720
11721 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
11722
11723 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11724 passed by invisible reference.
11725
11726 2002-02-05 Richard Henderson <rth@redhat.com>
11727
11728 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11729
11730 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
11731
11732 Implement using "base addresses" in insn operands as default.
11733 * config/mmix/mmix.c (mmix_conditional_register_usage): if
11734 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11735 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11736 used to read the rtx value.
11737 (mmix_target_asm_function_epilogue): Fix spacing.
11738 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11739 (mmix_legitimate_address): Ditto.
11740 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11741 should be loaded with a GETA insn. Don't allocate needless extra
11742 char for nul termination and fix misleading comment.
11743 (mmix_print_operand_address): Handle constants if
11744 TARGET_BASE_ADDRESSES.
11745 (mmix_output_register_setting): Use base addressing if
11746 TARGET_BASE_ADDRESSES and the number of insns is 3.
11747 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11748 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11749 to use R as constraint, add LDA to match s.
11750 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11751 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11752 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11753 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11754 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11755 order with other fixed registers.
11756 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11757 other parameter/call-clobbered registers.
11758 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11759 -mbase-addresses, -mno-base-addresses.
11760 (MMIX Options): Ditto.
11761
11762 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
11763
11764 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11765
11766 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
11767
11768 * config/rs6000/altivec.h: Change elem to _S_elem.
11769
11770 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11771
11772 * config/netbsd.h (WCHAR_TYPE): Define.
11773 (WCHAR_TYPE_SIZE): Ditto.
11774 (WINT_TYPE): Ditto.
11775 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11776 (WCHAR_UNSIGNED): Ditto.
11777 (WCHAR_TYPE_SIZE): Ditto.
11778 (WINT_TYPE): Ditto.
11779 * config/arm/netbsd.h: Likewise.
11780 * config/i386/netbsd-elf.h: Likewise.
11781 * config/i386/netbsd.h: Likewise.
11782 * config/m68k/netbsd-elf.h: Likewise.
11783 * config/m68k/netbsd.h: Likewise.
11784 * config/ns32k/netbsd.h: Likewise.
11785 * config/sparc/netbsd.h: Likewise.
11786 * config/vax/netbsd.: Likewise.
11787
11788 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11789
11790 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11791 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
11792 (TARGET_INITIALIZER): this.
11793 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11794 (BITFIELD_NBYTES_LIMITED): Markup fix.
11795 * tree.h (default_ms_bitfield_layout_p): Declare.
11796 (record_layout_info): Added prev_field.
11797 * tree.c (default_ms_bitfield_layout_p): New fn.
11798 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11799 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11800 * stor-layout.c: Include target.h.
11801 (start_record_layout): Initialize prev_field.
11802 (place_field): Handle MS bit-field layout, and disregard
11803 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11804 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
11805 * Makefile.in (stor-layout.o): Adjust dependencies.
11806
11807 2002-02-05 Jason Merrill <jason@redhat.com>
11808
11809 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11810
11811 2002-02-05 Andreas Jaeger <aj@suse.de>
11812
11813 * crtstuff.c: Fix comments.
11814
11815 2002-02-05 Richard Henderson <rth@redhat.com>
11816
11817 PR fortran/3393
11818 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11819 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11820
11821 PR fortran/3392
11822 * config/mips/mips.c (function_arg): Handle TImode.
11823 (function_arg_advance): Likewise.
11824
11825 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11826
11827 * config/rs6000/altivec.h (vec_step_help): Rename to
11828 __vec_step_help.
11829
11830 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11831
11832 * config/rs6000/altivec.h: Fix typos.
11833
11834 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11835
11836 * config/arm/netbsd.h: Correct a comment.
11837
11838 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11839
11840 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11841 building void typed builtins.
11842
11843 * config/rs6000/altivec.h (vec_ld*): Fix typos.
11844 (vec_step): Implement for C++.
11845
11846 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11847
11848 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11849
11850 2002-02-04 Richard Henderson <rth@redhat.com>
11851
11852 * combine.c (nonzero_bits): Re-introduce special case for
11853 sp/fp/ap wrt REGNO_POINTER_ALIGN.
11854
11855 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11856
11857 * doc/extend.texi: Warn about unsupported usage of altivec
11858 builtins.
11859
11860 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11861 (altivec_predicate_*): New.
11862
11863 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11864 Add C++ version of vec_*() functions.
11865
11866 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11867 (bdesc_2arg): Remove altivec predicates.
11868 (altivec_expand_builtin): Handle predicates.
11869 (altivec_init_builtins): Handle predicates.
11870 (altivec_expand_predicate_builtin): New.
11871
11872 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11873
11874 * pa.c (DO_FRAME_NOTES): Move forward.
11875 (store_reg): Revise handling of frame notes.
11876 (load_reg): Likewise.
11877 (set_reg_plus_d): Likewise.
11878 (hppa_expand_prologue): Likewise.
11879 (hppa_expand_epilogue): Likewise.
11880
11881 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11882
11883 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11884
11885 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11886
11887 PR c/4475, c++/3780:
11888 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11889 * c-common.h (SWITCH_TYPE): Define.
11890 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11891 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11892 Rename spareness variable to sparseness.
11893 (expand_end_case_type): Renamed from expand_end_case, use orig_type
11894 if non-NULL instead of TREE_TYPE (orig_index).
11895 * tree.h (expand_end_case_type): Renamed from expand_end_case.
11896 (expand_end_case): Define using expand_end_case_type.
11897 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11898 to expand_end_case_type.
11899 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11900
11901 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11902
11903 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11904 (BIGGEST_ALIGNMENT): Change to 128.
11905
11906 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11907
11908 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11909
11910 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11911
11912 * pa.md (call_internal_reg_64bit): Remove unused variable.
11913
11914 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
11915
11916 * config/arm/arm.h (machine_function): Add uses_anonymous_args
11917 field.
11918 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11919 * config/arm/arm.c (current_function_anonymous_args): Delete,
11920 replace uses with cfun->machine->uses_anonymous_args.
11921 (arm_reorg): Do not reset uses_anonymous_args.
11922
11923 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11924 any geenral register.
11925
11926 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
11927
11928 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11929 the entry block.
11930
11931 2002-02-04 Richard Henderson <rth@redhat.com>
11932
11933 * combine.c (force_to_mode): Remove STACK_BIAS code.
11934 (nonzero_bits): Likewise. Replace sp/fp special case with
11935 REGNO_POINTER_ALIGN.
11936
11937 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11938 (HARD_FRAME_POINTER_REGNUM): New.
11939 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11940 (FIXED_REGS, CALL_USED_REGS): Update.
11941 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11942 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11943 (HARD_REGNO_NREGS): Update for SFP.
11944 (STACK_POINTER_OFFSET): Include bias here ...
11945 (FIRST_PARM_OFFSET): ... not here.
11946 (STACK_BIAS): Remove.
11947 (INIT_EXPANDERS): New.
11948 (STARTING_FRAME_OFFSET): Do not include bias.
11949 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11950 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11951 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11952 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11953 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11954 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11955 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11956 (MUST_SAVE_REGISTER): Likewise.
11957 (sparc_flat_function_prologue): Likewise.
11958 (sparc_flat_function_epilogue): Likewise.
11959 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11960 (sparc_init_modes): SFP is GENERAL_REGS.
11961 (sparc_builtin_saveregs): SFP does not have bias applied.
11962
11963 2002-02-04 Richard Henderson <rth@redhat.com>
11964
11965 * config/alpha/alpha.c (current_function_is_thunk): Don't check
11966 current_function_is_thunk.
11967 (alpha_sa_mask): Distinguish between current_function_is_thunk
11968 called from ASM_OUTPUT_MI_THUNK and not.
11969 (alpha_does_function_need_gp): Thunks always need gp.
11970 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11971 (alpha_output_mi_thunk_osf): New.
11972 * config/alpha/alpha-protos.h: Update.
11973 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11974
11975 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
11976
11977 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11978 function types, not when they're taken away.
11979
11980 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
11981
11982 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11983 CODE_LABEL and jump table when replacing a table jump with a
11984 simple jump.
11985
11986 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11987
11988 * config/s390/s390-protos.h (legitimize_la_operand,
11989 s390_secondary_input_reload_class, s390_plus_operand,
11990 s390_expand_plus_operand): Add prototypes.
11991
11992 config/s390/s390.c (s390_secondary_input_reload_class,
11993 s390_plus_operand, s390_expand_plus_operand): New functions.
11994
11995 (struct s390_address): New member 'pointer'.
11996 (s390_decompose_address): Compute it.
11997 (legitimate_la_operand_p): Use it.
11998 (legitimize_la_operand): New function.
11999 (movti, movdi, movdf splitters): Call it.
12000
12001 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
12002 (PREDICATE_CODES): Add s390_plus_operand.
12003
12004 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
12005 (la_ccclobber): Allow GENERAL_REGS as output operand.
12006
12007 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
12008 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
12009 (*la_64, *la_31, reload_indi, reload_insi): ... these.
12010
12011 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12012
12013 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
12014 register names for regular asm () construct.
12015
12016 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12017
12018 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
12019 registers.
12020
12021 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12022
12023 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
12024 pat for recog.
12025
12026 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
12027
12028 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
12029 constant pool to be identical by string address and index.
12030
12031 2002-02-04 Anthony Green <green@redhat.com>
12032
12033 * output.h (SECTION_OVERRIDE): Define.
12034 * varasm.c (named_section): Obey SECTION_OVERRIDE.
12035
12036 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
12037
12038 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
12039 by existing arm*-*-netbsd* (a.out) target.
12040 (ns32k-*-netbsdelf*): Likewise.
12041 (sparc-*-netbsdelf*): Likewise.
12042 (vax-*-netbsdelf*): Likewise.
12043
12044 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
12045
12046 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
12047 headers and libobjc headers.
12048
12049 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
12050
12051 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
12052 (_mingw.h): Remove duplicate include.
12053
12054 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
12055
12056 * config.gcc: Set cpu_type to m68k for 68010, as well.
12057 (m68010-*-netbsdelf*): New...
12058 (m68k*-*-netbsdelf*): ...targets.
12059 * config/m68k/netbsd-elf.h: New file.
12060
12061 2002-02-02 Kazu Hirata <kazu@hxi.com>
12062
12063 * config/h8300/h8300.c (hand_list): Move inside function_arg.
12064
12065 2002-02-02 Kazu Hirata <kazu@hxi.com>
12066
12067 * config/h8300/h8300.c (h8_push_ops): Move inside
12068 h8300_init_once.
12069 (h8_pop_ops): Likewise.
12070 (h8_move_ops): Likewise.
12071
12072 2002-02-02 Kazu Hirata <kazu@hxi.com>
12073
12074 * config/h8300/h8300.c (os_task): Make it static.
12075 (monitor): Likewise.
12076 (pragma_saveall): Likewise.
12077
12078 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
12079
12080 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
12081 constant is a valid sign-extension for Pmode.
12082
12083 2002-02-02 Kazu Hirata <kazu@hxi.com>
12084
12085 * config/h8300/h8300.c: Fix formatting.
12086
12087 2002-02-02 Kazu Hirata <kazu@hxi.com>
12088
12089 * config/h8300/h8300.md: Fix formatting.
12090
12091 2002-02-02 Kazu Hirata <kazu@hxi.com>
12092
12093 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
12094 predicates of operands[1]. Split the patterns for each
12095 processor variant.
12096
12097 2002-02-02 Kazu Hirata <kazu@hxi.com>
12098
12099 * config/h8300/h8300.md (xor patterns): Tighten the predicates
12100 of operands[1] to register_operand.
12101
12102 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
12103
12104 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
12105 * cpphash.c (_cpp_init_hashtable): Similarly.
12106 * cppinit.c (cpp_create_reader): Default the signed_char flag.
12107 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
12108 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
12109 (cpp_handle_option): Handle the new options.
12110 * cpplex.c (cpp_interpret_charconst): Use new flag.
12111 * cpplib.h (struct cpp_options): New member signed_char.
12112 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
12113 (cpp_options): Handle -fsigned-char and -funsigned-char.
12114 (static_specs): Remove signed_char_spec.
12115 (do_spec1): Don't handle %c.
12116 * system.h: Poison SIGNED_CHAR_SPEC.
12117 * tradcif.y (yylex): Use flag_signed_char.
12118 * tradcpp.h (flag_signed_char): New.
12119 * tradcpp.c (flag_signed_char): New.
12120 (main): Handle new command-line options.
12121 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
12122 config:
12123 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
12124 * avr/avr.h: Remove old comments.
12125 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
12126 (CC1_SPEC): Pass -fsigned-char if -mic*.
12127 (SIGNED_CHAR_SPEC): Remove.
12128 doc:
12129 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
12130
12131 2002-02-01 Eric Christopher <echristo@redhat.com>
12132
12133 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
12134 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
12135 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
12136 (ASM_OUTPUT_REG_POP): Ditto.
12137
12138 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
12139
12140 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
12141 patch.
12142
12143 2002-02-02 Jakub Jelinek <jakub@redhat.com>
12144
12145 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
12146
12147 2002-02-02 Jakub Jelinek <jakub@redhat.com>
12148
12149 PR c/5304:
12150 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
12151 unconditionally.
12152
12153 2002-02-01 Janis Johnson <janis187@us.ibm.com>
12154
12155 * cfganal.c: Include tm_p.h.
12156 (keep_with_call_p): Fix the test that determines if a register holds
12157 the return value of a call.
12158
12159 2002-02-01 DJ Delorie <dj@redhat.com>
12160
12161 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
12162 we are given conflicting registers, switch to the other one we
12163 had allocated for us.
12164 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
12165 as TImode so we know when the "other" register is available.
12166
12167 2002-02-01 David O'Brien <obrien@FreeBSD.org>
12168
12169 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
12170 sparc/sparc_bi.h.
12171
12172 2002-02-01 Janis Johnson <janis187@us.ibm.com>
12173
12174 * cfganal.c (keep_with_call_p): New function.
12175 (flow_call_edges_add): Prevent splitting a block between a call and
12176 a single-set instruction that should be kept in the same block.
12177
12178 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
12179
12180 * doc/install.texi (avr): Update outdated URL.
12181
12182 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
12183
12184 * config/stormy16/stormy16.md (pushqi): New.
12185 (popqi): New.
12186 (pushhi): New.
12187 (pophi): New.
12188 (movhi): Remove stack operands.
12189 (movqi): Likewise.
12190 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
12191 nonimmediate_nonstack_operand.
12192 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
12193 New.
12194 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
12195 New.
12196
12197 2002-01-31 Jason Merrill <jason@redhat.com>
12198
12199 * Makefile.in (c-parse.c): Handle .output file.
12200 * objc/Make-lang.in (objc-parse.c): Likewise.
12201
12202 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
12203
12204 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
12205 the -me[lb] option is given. Don't output the default flag
12206 twice.
12207
12208 2002-01-31 Zack Weinberg <zack@codesourcery.com>
12209
12210 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
12211 the primary source file; this has not been done yet.
12212 * c-decl.c (c_expand_body): Reset input_filename from
12213 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
12214
12215 2002-01-31 Kazu Hirata <kazu@hxi.com>
12216
12217 * rtlanal.c (subreg_regno_offset): Do not use
12218 SUBREG_REGNO_OFFSET.
12219 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
12220 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
12221
12222 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
12223
12224 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
12225 version rather than GNATS version in --version output.
12226
12227 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
12228
12229 * ifcvt.c (noce_process_if_block): Make a copy of the destination
12230 when copying back from a temporary.
12231
12232 2002-01-30 Richard Henderson <rth@redhat.com>
12233
12234 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
12235 and new_dest are the same.
12236
12237 2002-01-30 Richard Henderson <rth@redhat.com>
12238
12239 PR opt/5076
12240 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
12241 * rtl.c (note_insn_name): Update.
12242 * emit-rtl.c (remove_unnecessary_notes): Kill it.
12243 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
12244 to perform loop rotation.
12245 (expand_exit_loop_top_cond): New.
12246 * tree.h (expand_exit_loop_top_cond): Declare it.
12247 * c-semantics.c (genrtl_while_stmt): Use it.
12248 (genrtl_for_stmt): Likewise.
12249
12250 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
12251
12252 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
12253 arguments to 64-bit boundaries on 64-bit ABIs.
12254
12255 2002-01-30 Steve Ellcey <sje@cup.hp.com>
12256
12257 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
12258
12259 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
12260
12261 * c-decl.c (grokdeclarator): Handle type being a typedef for an
12262 invalid type.
12263
12264 2002-01-30 David O'Brien <obrien@FreeBSD.org>
12265
12266 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
12267 * config/sparc/sparc_bi.h: Remove file.
12268 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
12269
12270 2002-01-30 Richard Henderson <rth@redhat.com>
12271
12272 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
12273
12274 2002-01-30 Zack Weinberg <zack@codesourcery.com>
12275
12276 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
12277
12278 2002-01-30 Jason Merrill <jason@redhat.com>
12279
12280 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
12281 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
12282 (reg_save): Use DW_CFA_offset_extended_sf instead.
12283
12284 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
12285
12286 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12287
12288 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
12289 in cselib_lookup.
12290
12291 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
12292
12293 * rs6000.md ("*call_value_local32"): Remove constraints.
12294 ("*call_value_local64"): Same.
12295 ("*call_value_indirect_nonlocal_aix32"): Same.
12296 ("*call_value_nonlocal_aix32"): Same.
12297 ("*call_value_indirect_nonlocal_aix64"): Same.
12298 ("*call_value_nonlocal_aix64"): Same.
12299 ("*call_value_nonlocal_sysv"): Same.
12300
12301 2002-01-29 Richard Henderson <rth@redhat.com>
12302
12303 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
12304
12305 2002-01-29 Richard Henderson <rth@redhat.com>
12306
12307 * expr.c (force_operand): Ignore flag_pic for detecting pic
12308 address loads.
12309 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
12310 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
12311 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
12312 instead of open-coded loop.
12313 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
12314 be fixed when in use.
12315
12316 2002-01-29 Richard Henderson <rth@redhat.com>
12317
12318 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
12319 * sched-rgn.c (propagate_deps): Update them.
12320 * sched-deps.c (sched_analyze_insn): Update them. Flush the
12321 clobbers list when either gets too long.
12322
12323 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12324
12325 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
12326 and INDEX_REGS the same as GENERAL_REGS.
12327 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
12328
12329 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12330
12331 * tree.c (build_nonstandard_integer_type): Correct prototype.
12332
12333 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
12334
12335 * config/s390/s390.md (movstrsico, movstrdix_64,
12336 movstrsix_31): Remove, replace by ...
12337 (movstrdi_short, movstrsi_short, movstrdi_long,
12338 movstrsi_long): ... these. New.
12339 (movstrdi, movstrsi): Adapt.
12340
12341 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
12342 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
12343 Remove unnecessary CC clobber.
12344 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
12345 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
12346
12347 (divmoddi4): Don't partially initialize TImode register.
12348
12349 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
12350
12351 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
12352
12353 2002-01-29 Richard Henderson <rth@redhat.com>
12354
12355 * flow.c (print_rtl_and_abort): Remove.
12356 (print_rtl_and_abort_fcn): Remove.
12357 (verify_local_live_at_start): Use dump_bb instead.
12358 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
12359 (verify_wide_reg_1): Return 2 on mode test failure.
12360
12361 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12362
12363 PR c/3325, c/3326, c/2511, c/3347
12364 * c-decl.c (enum_decl_context): Remove BITFIELD.
12365 (grokdeclarator): Take bitfield width as an input.
12366 Ensure bitfields are given the correct type. Perform
12367 bitfield width validation with build_bitfield_integer_type
12368 rather than waiting for finish_struct.
12369 (grok_typename, grok_typename_in_parm_context, start_decl,
12370 push_parmdecl, grokfield, start_function): Update calls to
12371 grokdeclarator.
12372 (build_bitfield_integer_type): New function.
12373 (finish_struct): Move bitfield validation to grokdeclarator
12374 and build_bitfield_integer_type.
12375 * tree.c (build_nonstandard_integer_type): New function.
12376 * tree.h (build_nonstandard_integer_type): New prototype.
12377 objc:
12378 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
12379
12380 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12381
12382 PR other/1502:
12383 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
12384 don't ignore unrecognized -W* options.
12385 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
12386 * cpplib.h (cpp_handle_option): Adjust prototype.
12387 * c-decl.c (c_decode_options): Pass 0 as last argument to
12388 cpp_handle_option.
12389
12390 PR c/2896:
12391 * gcc.c (cpp_unique_options): Split from cpp_options.
12392 (cpp_options): Source cpp_unique_options.
12393 (default_compilers): Use cpp_unique_options instead of cpp_options
12394 when used together with cc1_options.
12395 (static_specs): Add cpp_unique_options.
12396 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
12397 when used together with cc1_options.
12398
12399 2002-01-29 Kazu Hirata <kazu@hxi.com>
12400
12401 * config/h8300/h8300-protos.h: Update the prototype of
12402 output_a_shift.
12403 * config/h8300/h8300.c (output_a_shift): Remove an unused
12404 argument 'insn'. Remove redundant code.
12405 * config/h8300/h8300.md: Adust to the new prototype of
12406 output_a_shift.
12407
12408 2002-01-29 Kazu Hirata <kazu@hxi.com>
12409
12410 * config/h8300/h8300-protos.h: Update the prototypes of
12411 emit_a_rotate and expand_a_rotate.
12412 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
12413 first argument to 'enum rtx_code'.
12414 (expand_a_rotate): Likewise.
12415
12416 2002-01-28 Kazu Hirata <kazu@hxi.com>
12417
12418 * config/h8300/h8300-protos.h: Update the prototype of
12419 output_simode_bld.
12420 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
12421 'log2'.
12422 * config/h8300/h8300.md: Adjust to the new prototype.
12423
12424 2002-01-28 Kazu Hirata <kazu@hxi.com>
12425
12426 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
12427 redundant code.
12428
12429 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12430
12431 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
12432 is a fixed register before returning pic_offset_table_rtx.
12433 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
12434 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
12435
12436 2002-01-28 Jason Merrill <jason@redhat.com>
12437
12438 * dwarf2.h: Sync with src version.
12439
12440 2002-01-28 Paul Koning <pkoning@equallogic.com>
12441
12442 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
12443 BT_FN_VOID_PTR_VAR.
12444 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
12445 * doc/extend.texi (__builtin_prefetch): Update documentation:
12446 first argument is now const void ptr.
12447
12448 2002-01-28 Kazu Hirata <kazu@hxi.com>
12449
12450 * config/h8300/h8300-protos.h: Remove an unused prototype.
12451
12452 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
12453
12454 * toplev.c (lang_independent_init): Round up identifier size.
12455
12456 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
12457
12458 * config.gcc: Revert previous change.
12459
12460 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
12461
12462 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12463
12464 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
12465
12466 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12467 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
12468 other non-elf netbsd config frags.
12469 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12470 collect2 will does that.
12471 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12472 shared-lib frobbing will work.
12473
12474 2002-01-28 Kazu Hirata <kazu@hxi.com>
12475
12476 * config/h8300/h8300.h: Fix formatting.
12477 * config/h8300/h8300.md: Likewise.
12478
12479 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
12480
12481 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12482 the old, removed AAA_standards fix.
12483 * fixinc/fixincl.x: Rebuilt.
12484
12485 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
12486
12487 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12488 atexit call in crtbegin, hooked in after call to frame_dummy;
12489 register EH before registering __fini__start.
12490
12491 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
12492
12493 * config/rs6000/altivec.h: Remove spurious semicolons.
12494
12495 2002-01-27 Kazu Hirata <kazu@hxi.com>
12496
12497 * config/h8300/h8300.md: Replace dead bit extraction patterns
12498 with ones that work.
12499
12500 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12501
12502 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12503 if not STRICT_ALIGNMENT.
12504 * rtl.h (MEM_ALIGN): Likewise.
12505
12506 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
12507
12508 * doc/invoke.texi (-fdump-translation-unit): Revert this
12509 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
12510
12511 2002-01-27 Kazu Hirata <kazu@hxi.com>
12512
12513 * config/h8300/h8300.md (define_constants): New.
12514 (anonymous patterns) Use defined constants appropriately.
12515
12516 2002-01-27 Kazu Hirata <kazu@hxi.com>
12517
12518 * config/h8300/h8300.c (function_arg): Remove redundant code.
12519
12520 2002-01-26 Richard Henderson <rth@redhat.com>
12521
12522 * sched-deps.c (reg_pending_uses_head): New.
12523 (reg_pending_barrier): Rename from reg_pending_sets_all.
12524 (find_insn_list): Don't mark inline.
12525 (find_insn_mem_list): Remove.
12526 (add_dependence_list, add_dependence_list_and_free): New.
12527 (flush_pending_lists): Replace only_write param with separate
12528 for_read and for_write parameters. Update all callers. Use
12529 add_dependence_list_and_free.
12530 (sched_analyze_1): Do not add reg dependencies here; just set
12531 the pending bits. Use add_dependence_list.
12532 (sched_analyze_2): Likewise.
12533 (sched_analyze_insn): Replace schedule_barrier_found with
12534 reg_pending_barrier. Add all dependencies for pending reg
12535 uses, sets, and clobbers.
12536 (sched_analyze): Don't add reg dependencies for calls, just
12537 set pending bits. Use regs_invalidated_by_call. Treat
12538 sched_before_next_call as a normal list, not a fake insn.
12539 (init_deps): No funny init for sched_before_next_call.
12540 (free_deps): Free pending mems lists. Don't zero reg_last.
12541 (init_deps_global): Init reg_pending_uses.
12542 (finish_deps_global): Free it.
12543 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
12544 (find_insn_mem_list): Remove.
12545 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12546 (propagate_deps): Use them. Zero temp mem lists.
12547
12548 2002-01-26 Richard Henderson <rth@redhat.com>
12549
12550 * Makefile.in (CRTSTUFF_CFLAGS): New.
12551 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12552 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12553 crtstuff.c instead of alpha assembly version.
12554 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12555 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
12556 not FORCE_{INIT,FINI}_SECTION_ALIGN.
12557 (__do_global_dtors_aux): Mark used.
12558 (frame_dummy, __do_global_ctors_aux): Mark used.
12559 (fini_dummy, init_dummy): Remove.
12560
12561 * config/alpha/crtbegin.asm: Remove file.
12562 * config/alpha/crtend.asm: Remove file.
12563 * config/alpha/t-crtbe: Remove file.
12564 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12565 (LINK_EH_SPEC): New.
12566
12567 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12568 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
12569 calling constructors.
12570 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12571
12572 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12573 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12574 CRT_END_INIT_DUMMY hack.
12575 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12576 FORCE_{INIT,FINI}_SECTION_ALIGN.
12577
12578 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12579 FORCE_{INIT,FINI}_SECTION_ALIGN.
12580
12581 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12582 invocation sequence.
12583 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12584
12585 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12586 (FORCE_CODE_SECTION_ALIGN): New.
12587
12588 2002-01-26 Richard Henderson <rth@redhat.com>
12589
12590 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12591
12592 2002-01-26 Richard Henderson <rth@redhat.com>
12593
12594 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12595 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12596
12597 2002-01-26 Kazu Hirata <kazu@hxi.com>
12598
12599 * config/h8300/h8300.md: Remove bit extraction patterns that
12600 cannot be triggered.
12601 Restrict each bit extraction pattern to a variant on which the
12602 pattern is tested.
12603
12604 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
12605
12606 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12607
12608 2002-01-26 Kazu Hirata <kazu@hxi.com>
12609
12610 * config/h8300/h8300.md: Remove bit test patterns that cannot
12611 be triggered.
12612 Restrict each bit test pattern to a variant on which the
12613 pattern is tested.
12614
12615 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12616
12617 * builtins.c (expand_builtin_strncat): Remove redundant check for
12618 INTEGER_CST.
12619
12620 2002-01-25 David O'Brien <obrien@FreeBSD.org>
12621
12622 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12623 default setting.
12624 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12625 existing setting.
12626
12627 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
12628
12629 * dbxout.c (dbxout_init): Use assemble_name rather than just
12630 stripping off the first character.
12631 (dbxout_source_file): Likewise.
12632
12633 2002-01-25 DJ Delorie <dj@redhat.com>
12634
12635 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12636 using rtx_equal_p, not by comparing pointers.
12637
12638 2002-01-25 Steve Ellcey <sje@cup.hp.com>
12639
12640 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12641 for PIC_OFFSET_TABLE_REGNUM.
12642 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12643
12644 2002-01-25 David O'Brien <obrien@FreeBSD.org>
12645
12646 * config.gcc (x86_64-*-freebsd*): New target.
12647 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12648 value.
12649 (i[34567]86-*-freebsd*): Don't include svr4.h.
12650 * config/i386/freebsd64.h: New file.
12651
12652 2002-01-25 Douglas B Rupp <rupp@gnat.com>
12653
12654 * config/alpha/x-vms (version): Make static.
12655
12656 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12657 in previous checkin.
12658
12659 * Makefile.in (install-headers-cp): New target.
12660 * config.gcc (alpha-dec-*vms*): Install headers with
12661 install-headers-cp
12662
12663 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
12664
12665 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12666 avoid it's copies.
12667
12668 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12669
12670 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12671 of compare_tree_int.
12672 (expand_builtin_strncat): Likewise.
12673 * c-decl.c (finish_struct): Use tree_low_cst.
12674 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12675 * tree.c (compare_tree_int): Likewise.
12676
12677 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
12678
12679 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12680 adjustments even if they are implemented by more than two insns.
12681
12682 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
12683
12684 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12685 * df.h (struct ref): Kill B.
12686 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12687
12688 * basic-block.h (PROP_EQUAL_NOTES): New flag.
12689 * flow.c (propagate_one_insn): Use it.
12690 (mark_used_regs): Handle NIL.
12691
12692 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
12693
12694 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12695 to help folding.
12696
12697 2002-01-25 David Edelsohn <edelsohn@gnu.org>
12698
12699 * rs6000.md (prefetch): Make address V4SI mode so that the address
12700 is restricted to legitimate form for instruction.
12701
12702 2002-01-25 Bob Wilson <bob.wilson@acm.org>
12703
12704 * doc/install.texi (xtensa-*-elf): New target.
12705 (xtensa-*-linux*): New target.
12706 * doc/contrib.texi: Add myself.
12707
12708 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
12709
12710 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12711 purpose register to hold an SImode (or smaller) value.
12712
12713 2002-01-25 Jakub Jelinek <jakub@redhat.com>
12714
12715 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12716 registry only.
12717 * crtstuff.c: Likewise.
12718
12719 2002-01-25 Kazu Hirata <kazu@hxi.com>
12720
12721 * config/h8300/h8300.md (negation patterns): Tighten
12722 predicates to register_operand.
12723
12724 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
12725
12726 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12727 mode, not Pmode.
12728
12729 * builtins.c (expand_builtin_prefetch): Same.
12730
12731 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12732
12733 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12734 modes.
12735
12736 2002-01-24 Kazu Hirata <kazu@hxi.com>
12737
12738 * config/h8300/h8300.c (print_operand): Remove support for
12739 operand character 'A'.
12740 * config/h8300/h8300.md (three anonymous patterns): Replace
12741 operand character 'A' with either 'T' or 'S'.
12742
12743 2002-01-24 Kazu Hirata <kazu@hxi.com>
12744
12745 * config/h8300/h8300.c (print_operand): Remove support for
12746 operand character 'U'.
12747
12748 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
12749
12750 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12751
12752 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
12753
12754 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12755 values to be assigned to the stack pointer.
12756
12757 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12758
12759 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12760 to const_double needs to be done right for big-endian systems.
12761
12762 2002-01-24 Jason Merrill <jason@redhat.com>
12763
12764 PR c++/2432
12765 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12766 to can_throw_internal.
12767
12768 2002-01-23 Richard Henderson <rth@redhat.com>
12769
12770 * fold-const.c (fold): Change UINT_MAX test to check vs precision
12771 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
12772
12773 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12774
12775 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12776 (symGOT2reg): Use them, then set as GOT value as unchanging.
12777 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
12778 as a temporary, if possible.
12779 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
12780 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12781
12782 2002-01-23 Kazu Hirata <kazu@hxi.com>
12783
12784 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12785 accept to accept 0x80 as operands[2].
12786
12787 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12788
12789 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12790
12791 2002-01-23 Richard Henderson <rth@redhat.com>
12792
12793 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12794
12795 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
12796
12797 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12798 (parmlist_or_identifiers_1): Verify that only a parmlist follows
12799 an attribute.
12800
12801 2002-01-23 Richard Henderson <rth@redhat.com>
12802
12803 * expr.c (move_by_pieces_1): Extend size before negation.
12804
12805 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12806 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12807 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12808 * config/m68k/t-m68kelf: Likewise.
12809
12810 2002-01-23 Bob Wilson <bob.wilson@acm.org>
12811
12812 * config/xtensa/elf.h: New file.
12813 * config/xtensa/lib1funcs.asm: New file.
12814 * config/xtensa/lib2funcs.S: New file.
12815 * config/xtensa/linux.h: New file.
12816 * config/xtensa/t-xtensa: New file.
12817 * config/xtensa/xtensa-config.h: New file.
12818 * config/xtensa/xtensa-protos.h: New file.
12819 * config/xtensa/xtensa.c: New file.
12820 * config/xtensa/xtensa.h: New file.
12821 * config/xtensa/xtensa.md: New file.
12822 * config.gcc (xtensa-*-elf*): New target.
12823 (xtensa-*-linux*): New target.
12824 * cse.c (canon_hash): Compare rtx pointers instead of register
12825 numbers. This is required for the Xtensa port.
12826 * integrate.c (copy_insn_list): Handle case where the static
12827 chain is in memory and the memory address has to be copied to
12828 a register.
12829 * doc/invoke.texi (Option Summary): Add Xtensa options.
12830 (Xtensa Options): New node.
12831 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12832
12833 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12834
12835 * diagnostic.c (internal_error): Do ICE suppression only
12836 when ENABLE_CHECKING is not defined.
12837
12838 * c-typeck.c (require_complete_type): Return error_mark_node
12839 if type is error_mark_node.
12840
12841 2002-01-23 Janis Johnson <janis187@us.ibm.com>
12842
12843 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12844 -Os and issue a warning.
12845
12846 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12847
12848 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12849 current (lack of) need for host configuration by hand.
12850
12851 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12852 references. Documentation of some target macros moved from
12853 hostconfig.texi to tm.texi.
12854
12855 2002-01-23 Will Cohen <wcohen@redhat.com>
12856
12857 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12858 defined.
12859
12860 2002-01-23 Kazu Hirata <kazu@hxi.com>
12861
12862 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12863 operand[3].
12864
12865 2002-01-23 Jason Merrill <jason@redhat.com>
12866
12867 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12868
12869 * function.c (assign_parms): Don't put args of inline functions
12870 into registers when not optimizing.
12871
12872 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
12873
12874 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12875 (prologue_use): New pattern.
12876 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12877 preference to gen_rtx_USE.
12878 (thumb_expand_prologue): Use gen_prologue_use in preference to
12879 gen_rtx_USE.
12880 (thumb_expand_epilogue): Use gen_prologue_use in preference to
12881 gen_rtx_USE.
12882
12883 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
12884
12885 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12886
12887 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
12888
12889 PR c/3504
12890 * doc/extend.texi: Correct documentation of __alignof__.
12891
12892 2002-01-22 Zack Weinberg <zack@codesourcery.com>
12893
12894 * params.h: Rename arguments of DEFPARAM so that it will be
12895 recognized as a translation keyword.
12896
12897 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12898
12899 * extend.texi: Document altivec functions.
12900 Fix N-bit adjectives in X86 builtin documentation.
12901
12902 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12903
12904 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12905 auto_inc_dec values.
12906
12907 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
12908
12909 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12910 after backslash.
12911 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12912
12913 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12914
12915 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12916
12917 2002-01-22 Richard Henderson <rth@redhat.com>
12918
12919 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12920 copy_insn not copy_rtx.
12921
12922 2002-01-23 Alan Modra <amodra@bigpond.net.au>
12923
12924 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12925 "nonzero" as that might add "1" bits. Ensure "constop" is
12926 properly sign extened.
12927 (force_to_mode): Tweak for sign extended constop.
12928
12929 2002-01-22 Richard Henderson <rth@redhat.com>
12930
12931 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12932 for_each_rtx instead of assuming we're already looking at the MEM.
12933 (split_small_symbolic_mem_operand): Likewise.
12934 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12935 * config/alpha/alpha.md (small symbolic memory splitters): Update.
12936
12937 2002-01-22 Richard Henderson <rth@redhat.com>
12938
12939 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12940 sequence number for the literal.
12941 (divmoddi_internal_er): Likewise.
12942
12943 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12944
12945 PR java/4972
12946 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12947 in LIBICONV variable.
12948 * configure: Regenerated.
12949
12950 2002-01-22 Krister Walfridsson <cato@df.lth.se>
12951
12952 * dependence.c (build_def_use): Remove array_idx.
12953
12954 * dwarfout.c (last_filename): Remove.
12955 (output_compile_unit_die): Remove last_filename.
12956
12957 2002-01-22 Roger Sayle <roger@eyesopen.com>
12958 Richard Henderson <rth@redhat.com>
12959
12960 PR opt/3640
12961 * fold-const.c (fold): Optimize unsigned comparisons against
12962 UINT_MAX (and similar unsigned constants).
12963
12964 2002-01-22 Janis Johnson <janis187@us.ibm.com>
12965
12966 * Makefile.in (loop.o): Depend on OPTABS_H.
12967 * loop.c (emit_prefetch_instructions): Check the prefetch operand
12968 against the predicate.
12969
12970 PR target/5379
12971 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12972 for the address operand.
12973
12974 2002-01-22 Richard Henderson <rth@redhat.com>
12975
12976 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12977
12978 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12979
12980 PR other/5450
12981 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12982 preprocessor flags.
12983
12984 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
12985
12986 * config.gcc (x86_64-*-netbsd*): New target.
12987 * config/i386/netbsd64.h: New file.
12988
12989 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12990
12991 * regrename.c (kill_value): Fix typo.
12992
12993 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12994
12995 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12996
12997 * config/rs6000/rs6000.h: Same.
12998
12999 * function.c (instantiate_virtual_regs): Remove
13000 STARTING_FRAME_PHASE.
13001 (assign_stack_local_1): Same.
13002 Calculate frame phase.
13003
13004 2002-01-22 Nick Clifton <nickc@redhat.com>
13005
13006 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
13007 variable declaration to outer scope in order to simplify
13008 future extensions.
13009 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
13010 arm_hard_regno_mode_ok.
13011 * config/arm/arm-protos.h: Add a prototype for
13012 arm_hard_regno_mode_ok.
13013 * config/arm/arm.c (soft_df_operand): Remove now redundant
13014 check for DImode values using IP_REGNUM.
13015 (nonimmediate_soft_df_operand): Remove now redundant check for
13016 DImode values using IP_REGNUM.
13017 (arm_hard_regno_mode_ok): New function. New check: make sure
13018 that DImode values are not stored in IP_REGNUM.
13019
13020 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
13021 note with a USE.
13022 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
13023
13024 2002-01-22 Jason Merrill <jason@redhat.com>
13025
13026 * c-semantics.c (genrtl_compound_stmt): Only check nesting
13027 consistency if this COMPOUND_STMT is scoped.
13028
13029 2002-01-22 Kazu Hirata <kazu@hxi.com>
13030
13031 * predict.c: Fix formatting.
13032 * print-tree.c: Likewise.
13033 * protoize.c: Likewise.
13034 * real.h: Likewise.
13035 * rtl.h: Likewise.
13036 * sbitmap.h: Likewise.
13037 * scan.c: Likewise.
13038 * sched-deps.c: Likewise.
13039 * sched-vis.c: Likewise.
13040 * sdbout.c: Likewise.
13041 * sibcall.c: Likewise.
13042 * ssa.c: Likewise.
13043 * ssa-ccp.c: Likewise.
13044 * ssa-dce.c: Likewise.
13045 * stmt.c: Likewise.
13046 * stor-layout.c: Likewise.
13047 * system.h: Likewise.
13048
13049 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13050
13051 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
13052 if fits in bounds of base type.
13053
13054 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
13055 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
13056 (add_bound_info, default): If can't find a context, make a
13057 SAVE_EXPR.
13058 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
13059
13060 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
13061
13062 * c-typeck.c (parser_build_binary_op): If result from
13063 build_binary_op is ERROR_MARK just return error_mark_node without
13064 further processing.
13065
13066 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
13067
13068 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
13069 Split a.out-specific bits into...
13070 * config/netbsd-aout.h: ...this.
13071 * config/netbsd-elf.h: New file.
13072 * config/alpha/netbsd-elf.h: Remove.
13073 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
13074 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
13075 (STARTFILE_SPEC): Remove redundant definition.
13076 (ENDFILE_SPEC): Likewise.
13077 (LINK_SPEC): Likewise.
13078 (CPP_SPEC): Likewise.
13079 (ASM_SPEC): Likewise.
13080 (LIB_SPEC): Likewise.
13081 (SWITCH_TAKES_ARG): Likewise.
13082 (TARGET_MEM_FUNCTIONS): Likewise.
13083 (CPP_PREDEFINES): Redefine.
13084 (ASM_FINAL_SPEC): Remove redefinition.
13085 (ASM_COMMENT_START): Redefine.
13086 (FUNCTION_PROFILER): Define.
13087 (TARGET_VERSION): Redefine.
13088 Comment and formatting cleanup.
13089 * config/i386/netbsd.h: Include <netbsd-aout.h>.
13090 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
13091 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
13092 big- or little-endian.
13093 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
13094 * config.gcc (*-*-netbsd*): Add definitions common to all
13095 NetBSD configs.
13096 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
13097 gnu_ld definitions. Add netbsd-elf.h to and remove
13098 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
13099 tmake_file, and don't lose previous tmake_file contents.
13100 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
13101 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
13102 gnu_ld definitions. Add netbsd-elf.h to tm_file.
13103 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
13104 (mipsel-*-netbsd*): Rename this to...
13105 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
13106 mips/little.h to tm_file for mips*el-*.
13107 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
13108 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
13109 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
13110
13111 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
13112
13113 * pa-protos.h (reg_before_reload_operand): New function prototype.
13114 * pa.c (reg_before_reload_operand): New function implementation.
13115 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
13116 contraints to "*m".
13117
13118 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13119
13120 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
13121
13122 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
13123
13124 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
13125 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
13126 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
13127 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
13128 (ENDFILE_SPEC): Undefine.
13129 (STARTFILE_SPEC): Redefine for PA.
13130
13131 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13132
13133 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
13134
13135 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
13136
13137 * config.gcc: Add entries to supported PowerPC --with-cpu
13138 types.
13139
13140 2002-01-21 Jakub Jelinek <jakub@redhat.com>
13141
13142 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
13143 true for 64-bit mode only SSE registers in 32-bit mode.
13144
13145 2002-01-21 Kazu Hirata <kazu@hxi.com>
13146
13147 * unwind-dw2.c: Fix formatting.
13148 * unwind-dw2-fde.c: Likewise.
13149 * unwind-dw2-fde.h: Likewise.
13150 * unwind-pe.h: Likewise.
13151 * varasm.c: Likewise.
13152 * varray.h: Likewise.
13153
13154 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
13155
13156 Remove workaround for register stack overwrite bug in mmix.
13157 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
13158 support for TARGET_REG_STACK_FILL_BUG.
13159 * config/mmix/mmix.h: Remove member has_call_without_parameters.
13160 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
13161 Delete.
13162 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
13163 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
13164 -mno-reg-stack-fill-bug-workaround.
13165 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
13166 machine member has_call_without_parameters.
13167 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
13168 -mreg-stack-fill-bug-workaround and
13169 -mno-reg-stack-fill-bug-workaround.
13170 (MMIX Options): Ditto.
13171
13172 2002-01-21 Kazu Hirata <kazu@hxi.com>
13173
13174 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
13175 as appropriate.
13176 Remove redundant code.
13177
13178 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
13179
13180 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
13181 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13182 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13183 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
13184 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
13185 out target macro definitions and non-target-specific comments
13186 mostly taken from old versions of the manual.
13187
13188 2002-01-20 Kazu Hirata <kazu@hxi.com>
13189
13190 * config/h8300/h8300.h: Fix comment formatting.
13191 * config/ia64/aix.h: Likewise.
13192 * config/ia64/ia64-protos.h: Likewise.
13193 * config/ia64/ia64.c: Likewise.
13194 * config/ia64/ia64.h: Likewise.
13195 * config/ia64/ia64intrin.h: Likewise.
13196 * config/ia64/linux.h: Likewise.
13197 * config/ia64/unwind-aix.c: Likewise.
13198 * config/ia64/unwind-ia64.c: Likewise.
13199
13200 2002-01-20 Kazu Hirata <kazu@hxi.com>
13201
13202 * config/h8300/h8300.c: Revise comments about shift code.
13203
13204 2002-01-20 Kazu Hirata <kazu@hxi.com>
13205
13206 * config/h8300/h8300.c (function_arg): Update a comment.
13207
13208 2002-01-20 Kazu Hirata <kazu@hxi.com>
13209
13210 * config/h8300/h8300.md: Update the comments at the beginning
13211 of the file.
13212
13213 2002-01-20 Kazu Hirata <kazu@hxi.com>
13214
13215 * config/i370/i370.c: Fix comment formatting.
13216 * config/i370/i370.h: Likewise.
13217 * config/i370/i370.md: Likewise.
13218 * config/i370/linux.h: Likewise.
13219
13220 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13221
13222 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
13223
13224 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
13225 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
13226 in incomplete case.
13227
13228 2002-01-20 Graham Stott <grahams@redhat.com>
13229
13230 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
13231
13232 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
13233
13234 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
13235
13236 2002-01-19 Tom Rix <trix@redhat.com>
13237
13238 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
13239
13240 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
13241
13242 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
13243
13244 * function.c (assign_stack_local_1): Adjust x_frame_offset with
13245 STARTING_FRAME_PHASE.
13246 (STARTING_FRAME_PHASE): New.
13247 (instantiate_virtual_regs): Check saneness of
13248 STARTING_FRAME_PHASE.
13249
13250 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
13251
13252 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
13253
13254 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
13255
13256 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
13257
13258 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
13259 be used for bootstrapping GCC 3.0.
13260
13261 2002-01-18 Kazu Hirata <kazu@hxi.com>
13262
13263 * config/h8300/h8300.md: Fix an insn length.
13264
13265 2002-01-18 Kazu Hirata <kazu@hxi.com>
13266
13267 * bitmap.h: Fix comment formatting.
13268 * combine.c: Likewise.
13269 * cppfiles.c: Likewise.
13270 * c-pragma.h: Likewise.
13271 * c-typeck.c: Likewise.
13272 * df.c: Likewise.
13273 * dwarf2out.c: Likewise.
13274 * function.c: Likewise.
13275 * gcc.c: Likewise.
13276 * genattrtab.c: Likewise.
13277 * gthr-win32.h: Likewise.
13278 * haifa-sched.c: Likewise.
13279 * predict.c: Likewise.
13280 * rtlanal.c: Likewise.
13281 * rtl.h: Likewise.
13282 * unwind-dw2-fde.h: Likewise.
13283 * unwind-pe.h: Likewise.
13284 * vmsdbgout.c: Likewise.
13285
13286 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13287
13288 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
13289 if type_required and passed decl.
13290
13291 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
13292
13293 * config.gcc (cpu_type): Include altivec.h in powerpc
13294 extra_headers.
13295 Same for darwin.
13296
13297 * config/rs6000/altivec.h: New.
13298
13299 2002-01-17 David Edelsohn <edelsohn@gnu.org>
13300
13301 * doc/install.texi (*-ibm-aix*): Update assembler and exception
13302 handling information.
13303 * doc/trouble.texi (Interoperation): Add libstdc++ information
13304 for AIX.
13305 (Misunderstandings): Add template instantiation and static template
13306 member information for AIX.
13307
13308 2002-01-17 Jason Merrill <jason@redhat.com>
13309
13310 * dbxout.c (dbxout_type): Support const and volatile.
13311
13312 * except.c (add_partial_entry): Remove backwards compatibility code.
13313 (end_protect_partials): Likewise.
13314
13315 2002-01-17 Jakub Jelinek <jakub@redhat.com>
13316
13317 * config/ia64/ia64.md (prologue_use): New.
13318 * config/ia64/ia64.c (ia64_expand_prologue): Use
13319 gen_prologue_use instead of gen_rtx_USE.
13320 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
13321 as CODE_FOR_pred_rel_mutex.
13322 (ia64_sched_reorder2): Likewise.
13323
13324 2002-01-16 Eric Christopher <echristo@redhat.com>
13325
13326 * config/mips/r3900.h: Reformat.
13327 (SUBTARGET_CPP_SIZE_SPEC): Remove.
13328 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
13329 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
13330 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
13331 * config/mips/t-elf: Remove mips3 multilib.
13332
13333 2002-01-16 H.J. Lu <hjl@gnu.org>
13334
13335 * config/mips/linux.h: Include "mips/abi64.h".
13336
13337 2002-01-16 H.J. Lu <hjl@gnu.org>
13338
13339 * config/mips/t-linux: New.
13340
13341 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
13342
13343 * config/mips/linux.h: Don't include "gofast.h".
13344 (INIT_SUBTARGET_OPTABS): Removed.
13345
13346 2002-01-16 Kazu Hirata <kazu@hxi.com>
13347
13348 * config/h8300/h8300-protos.h: Replace emit_a_shift with
13349 output_a_shift.
13350 * config/h8300/h8300.c: Likewise.
13351 * config/h8300/h8300.md: Likewise.
13352
13353 2002-01-16 Kazu Hirata <kazu@hxi.com>
13354
13355 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
13356 spaces after an opcode name.
13357 (pushqi1_h8300hs): Likewise.
13358 (pushhi1_h8300hs): Likewise.
13359
13360 2002-01-16 Kazu Hirata <kazu@hxi.com>
13361
13362 * doc/extend.texi: Replace "option" with "attribute"
13363 appropriately.
13364
13365 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13366
13367 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
13368 (and:DI () (const_int -8)).
13369 (split_small_symbolic_mem_operand): Split
13370 (mem (and:DI () (const_int -8)).
13371
13372 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13373
13374 PR target/5309:
13375 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
13376 same way as TYPE_IMUL.
13377 (ultrasparc_sched_reorder): Likewise.
13378 * config/sparc/sparc.md (type): Add comment to update
13379 ultrasparc_sched_reorder when making changes.
13380
13381 2002-01-16 Kazu Hirata <kazu@hxi.com>
13382
13383 * doc/invoke.texi: Change the dump file name of block
13384 reordering pass from 28.bbro to 29.bbro.
13385 Mention -dk option.
13386
13387 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
13388
13389 * i386.md (minsf splitter): Fix pasto.
13390
13391 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13392
13393 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
13394 to frame pointer initialisation instruction.
13395 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
13396 initialisation instruction.
13397 (soft_df_operand): Do not accept the IP register.
13398 (nonimmediate_soft_df_operand): Do not accept the IP register.
13399
13400 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13401
13402 PR target/5357:
13403 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
13404 MASK_V8 being both set.
13405
13406 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
13407
13408 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
13409 insn for GOT register; add REG_MAYBE_DEAD notes instead.
13410 config/s390/s390.md (call, call_value): Add GOT register to
13411 CALL_INSN_FUNCTION_USAGE where needed.
13412 (call_exp, call_value_exp): New.
13413
13414 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13415
13416 * config/arm/arm.c: General formatting tidy up.
13417
13418 2002-01-16 Graham Stott <grahams@redhat.com>
13419
13420 * calls.c (try_to_integrate): Use "(size_t)" intermediate
13421 cast and when casting an integer literal to "rtx" pointer.
13422 (expand_call): Likewise.
13423 * flow.c (try_pre_increment): Likewise.
13424 (find_use_as_address): Likewise.
13425 * integrate.c (expand_iline_function): Likewise.
13426 * regmove.c (try_auto_increment): Likewise.
13427
13428 2002-01-16 Graham Stott <grahams@redhat.com>
13429
13430 * sched-rgn.c (passed): Use sbitmap_free.
13431 (header): Likewise.
13432 (inner): Likewise.
13433 (in_queue): Likewise.
13434 (in_stack): Likewise.
13435
13436 2002-01-15 Eric Christopher <echristo@redhat.com>
13437
13438 * flow.c (propagate_one_insn): Change to use fatal_insn.
13439
13440 2002-01-15 Kazu Hirata <kazu@hxi.com>
13441
13442 * expmed.c (extract_fixed_bit_field): Remove unused code.
13443 * system.h: Poison SLOW_ZERO_EXTEND.
13444 * doc/tm.texi: Remove.
13445 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
13446 * config/arm/arm.h: Likewise.
13447 * config/avr/avr.h: Likewise.
13448 * config/clipper/clipper.h: Likewise.
13449 * config/convex/convex.h: Likewise.
13450 * config/d30v/d30v.h: Likewise.
13451 * config/dsp16xx/dsp16xx.h: Likewise.
13452 * config/elxsi/elxsi.h: Likewise.
13453 * config/fr30/fr30.h: Likewise.
13454 * config/h8300/h8300.h: Likewise.
13455 * config/i370/i370.h: Likewise.
13456 * config/i386/i386.h: Likewise.
13457 * config/m68k/m68k.h: Likewise.
13458 * config/mips/mips.h: Likewise.
13459 * config/ns32k/ns32k.h: Likewise.
13460 * config/pdp11/pdp11.h: Likewise.
13461 * config/pj/pj.h: Likewise.
13462 * config/s390/s390.h: Likewise.
13463 * config/sh/sh.h: Likewise.
13464 * config/stormy16/stormy16.h: Likewise.
13465 * config/v850/v850.h: Likewise.
13466 * config/vax/vax.h: Likewise.
13467 * config/we32k/we32k.h: Likewise.
13468
13469 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
13470
13471 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13472 (altivec_lvsl): Change constraint to b.
13473 (altivec_lvsr): Same.
13474 (altivec_lvebx): Same.
13475 (altivec_lvehx): Same.
13476 (altivec_lvewx): Same.
13477 (altivec_lvxl): Same.
13478 (altivec_lvx): Same.
13479 (altivec_stvx): Add parallel.
13480 (altivec_stvxl): Same.
13481 (altivec_stvehx): Same.
13482 (altivec_stvebx): Same.
13483 (altivec_stvebx): Same.
13484
13485 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
13486
13487 * config.gcc: Change altivec.h to altivec-defs.h.
13488
13489 * config/rs6000/altivec.h: Delete.
13490
13491 * config/rs6000/altivec-defs.h: Add.
13492
13493 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
13494
13495 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13496 and UMOD modes.
13497
13498 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13499 less than or equal to eight bytes.
13500
13501 * vax.md (andsi3): Remove constraints and change SET destination
13502 operand type to nonimmediate_operand.
13503 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
13504 when it is a CONST_INT.
13505
13506 2002-01-15 Jason Merrill <jason@redhat.com>
13507
13508 * c-common.def (FILE_STMT): New code.
13509 * c-common.c (statement_code_p): It's a statement.
13510 * c-common.h (stmt_tree_s): Add x_last_filename.
13511 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13512 (last_expr_filename): New macro.
13513 * c-semantics.c (begin_stmt_tree): Initialize it.
13514 (add_stmt): If the filename changed, also insert a
13515 FILE_STMT.
13516 (expand_stmt): Handle seeing one.
13517
13518 2002-01-15 Eric Christopher <echristo@redhat.com>
13519
13520 * flow.c (propagate_one_insn): Add error message and print out
13521 insn for debugging.
13522
13523 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13524
13525 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13526 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13527 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13528 TRAMPOLINE_ALIGNMENT.
13529 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
13530 to be in bits.
13531 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13532 PCC_BITFIELD_TYPE_MATTERS.
13533 * config/interix.h (STDC_VALUE): Remove. Use
13534 STDC_0_IN_SYSTEM_HEADERS.
13535 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13536 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13537 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13538
13539 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
13540
13541 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13542 not work on this platform currently.
13543
13544 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13545
13546 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13547 readonly_warning in _().
13548
13549 2002-01-15 Douglas B Rupp <rupp@gnat.com>
13550
13551 * gcc.c (delete_if_ordinary): Backout previous change.
13552
13553 2002-01-15 Kazu Hirata <kazu@hxi.com>
13554
13555 * config/h8300/h8300.c (print_operand): Remove support for
13556 unused operand characters.
13557
13558 * read-rtl.c: Fix formatting.
13559 * real.c: Likewise.
13560 * recog.c: Likewise.
13561 * regclass.c: Likewise.
13562 * regmove.c: Likewise.
13563 * reg-stack.c: Likewise.
13564 * reload1.c: Likewise.
13565 * rtlanal.c: Likewise.
13566
13567 2002-01-15 Kazu Hirata <kazu@hxi.com>
13568
13569 * config/i386/i386.c: Fix formatting.
13570
13571 2002-01-15 Jakub Jelinek <jakub@redhat.com>
13572
13573 * c-typeck.c (process_init_element): Don't save_expr
13574 COMPOUND_LITERAL_EXPR if just its initializer will be used.
13575
13576 2002-01-15 David Edelsohn <edelsohn@gnu.org>
13577
13578 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13579 emit optional traceback table if optimize_size or TARGET_ELF.
13580 * config/rs6000/rs6000.md (prefetch): New.
13581
13582 2002-01-15 Andreas Jaeger <aj@suse.de>
13583
13584 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13585
13586 2002-01-15 Kazu Hirata <kazu@hxi.com>
13587
13588 * mips-tfile.c: Fix formatting.
13589
13590 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
13591
13592 * unroll.c (final_reg_note_copy): Fix previous commit.
13593
13594 2002-01-14 Kazu Hirata <kazu@hxi.com>
13595
13596 * config/h8300/h8300-protos.h: Remove the prototype for
13597 eq_operator.
13598 * config/h8300/h8300.c (eq_operator): Remove.
13599
13600 2002-01-14 Richard Henderson <rth@redhat.com>
13601
13602 * config/i386/i386.md (prefetch): Tidy.
13603 (prefetch_3dnow): Fix locality operand.
13604
13605 2002-01-14 Richard Henderson <rth@redhat.com>
13606
13607 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13608 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13609
13610 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
13611
13612 * reload1.c (reload_combine): Pass reg_sum replacement through
13613 copy_rtx in loop performing multiple changes.
13614
13615 2002-01-14 Jakub Jelinek <jakub@redhat.com>
13616
13617 * except.c (remove_unreachable_regions): New.
13618 (free_eh_status): Clear exception_handler_labels.
13619 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13620 (find_exception_handler_labels): Don't add the same label more than
13621 once.
13622 (remove_exception_handler_label): Don't die if
13623 find_exception_handler_labels hasn't been called for the current
13624 function yet.
13625
13626 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
13627
13628 * toplev.c (rest_of_compilation): Rebuild jump labels after
13629 gcse.
13630
13631 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
13632
13633 * doc/extend.texi: Move documentation of X86 built-in functions
13634 here.
13635 * doc/invoke.texi: From here.
13636 * doc/sourcebuild.texi: Document location of documentation for
13637 machine built-in functions.
13638
13639 2002-01-13 Christopher Faylor <cgf@redhat.com>
13640
13641 * cppfiles.c (TEST_THRESHOLD): New macro.
13642 (SHOULD_MMAP): Ditto.
13643 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13644 be used.
13645
13646 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
13647
13648 * unroll.c (final_reg_note_copy): Properly handle
13649 REG_LABEL
13650 (unroll_loops): Fix LOOP_CONDITION heuristics.
13651
13652 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
13653
13654 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13655 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13656
13657 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
13658
13659 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13660 threaded loop.
13661
13662 2002-01-14 Tom Rix <trix@redhat.com>
13663
13664 * config/rs6000/rs6000.md: Fix typo with sradi.
13665
13666 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
13667
13668 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13669 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13670 (clrstrdi, clrstrsi): Adapt callers.
13671
13672 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13673
13674 (movti splitter): Never use register 0 as base register.
13675
13676 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
13677
13678 * combine.c (simplify_shift_const): Always generate new rtx
13679 for shift expression instead of reusing given expression.
13680
13681 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13682
13683 * config/alpha/alpha.c (alpha_expand_mov): Don't call
13684 alpha_legitimize_address unless mode is Pmode.
13685
13686 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
13687
13688 * doc/md.texi (Modifiers): Document the '*' constraint for the
13689 user.
13690
13691 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13692 * doc/extend.texi (Function Attributes): 'interrupt' is valid
13693 for xstormy16 too.
13694
13695 2002-01-13 Richard Henderson <rth@redhat.com>
13696
13697 * reload.c (find_reloads): Use a hard reg destination as reload reg
13698 for an input reload of the source.
13699
13700 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13701
13702 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13703 more generic.
13704
13705 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
13706
13707 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13708 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13709
13710 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13711
13712 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13713
13714 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13715
13716 2002-01-12 Tom Rix <trix@redhat.com>
13717
13718 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13719 TARGET_POWERPC64.
13720
13721 2002-01-12 Richard Henderson <rth@redhat.com>
13722
13723 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13724
13725 * doc/invoke.texi: Update Alpha options.
13726
13727 * doc/invoke.texi: Update i386 built-in function lists.
13728
13729 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
13730
13731 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13732 referencing outside.
13733
13734 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13735
13736 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13737 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13738 offsets, and change line folding.
13739 * optabs.c (expand_binop): Remove warnings.
13740 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13741
13742 2002-01-12 Graham Stott <grahams@redhat.com>
13743
13744 * attribs.c (handle_deprecated_attribute): constify WHAT.
13745 * diagnostic.c (warn_deprecated_use): Add braces, fixes
13746 dangling else warning and constify WHAT.
13747 * except.h (struct function, struct inline_remap): Move
13748 struct tag forward defs before all prototypes.
13749 (duplicate_eh_regions): Whitespace.
13750
13751 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
13752
13753 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13754 MODE_BASE_REG_CLASS.
13755 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13756
13757 2002-01-12 Richard Henderson <rth@redhat.com>
13758
13759 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13760 (ix86_expand_vector_move): New.
13761 (bdesc_2arg): Remove andps, andnps, orps, xorps.
13762 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
13763 Remove old prefetch builtins. Special case the logicals removed above.
13764 (ix86_expand_builtin): Likewise.
13765 (safe_vector_operand): Use V4SFmode, not TImode.
13766 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
13767 (ix86_expand_timode_binop_builtin): New.
13768 * config/i386/i386-protos.h: Update.
13769 * config/i386/i386.h (enum ix86_builtins): Update.
13770 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13771 Use ix86_expand_vector_move in vector move expanders.
13772 (movti_internal, movti_rex64): Add xorps alternative.
13773 (sse_clrv4sf): Rename and adjust from sse_clrti.
13774 (prefetch): Don't work so hard.
13775 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13776 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13777 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13778
13779 2002-01-11 Richard Henderson <rth@redhat.com>
13780
13781 * config/i386/mmintrin.h: New file.
13782 * config/i386/xmmintrin.h: New file.
13783 * config.gcc (i?86-*-*): Add extra_headers.
13784 * simplify-rtx.c (simplify_unary_operation): Handle saturating
13785 truncation codes.
13786 (simplify_binary_operation): Handle saturating arithmetic codes.
13787 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13788 not the lowpart subreg.
13789 (ix86_expand_builtin): Return a TImode dummy register instead of 0
13790 on error.
13791 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13792
13793 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13794
13795 * conflict.c (conflict_graph_compute): Free regsets when finished.
13796 * ssa.c (compute_coalesced_reg_partition): Likewise.
13797
13798 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13799
13800 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13801 every where we allocate a register.
13802
13803 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13804
13805 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13806 * lcm.c (compute_earliest, compute_farthest): Likewise.
13807
13808 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13809
13810 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13811
13812 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13813
13814 * doc/rtl.texi (Insns): Fix 2 typos.
13815
13816 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
13817
13818 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
13819 options. Use @table @gcctabopt for MMIX options. Add index
13820 entries for MMIX options. Start new paragraph with first
13821 heading of the machine-dependent options.
13822
13823 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
13824
13825 PR other/5299
13826 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13827 * combine.c (force_to_mode): Same.
13828 * reload1.c (clear_reload_reg_in_use): Same.
13829
13830 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
13831
13832 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13833 and 'subtargets'.
13834
13835 2002-01-11 Andreas Jaeger <aj@suse.de>,
13836 Brad Lucier <lucier@math.purdue.edu>
13837
13838 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13839 mcpu.
13840
13841 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
13842
13843 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13844 Protect with IN_LIBGCC.
13845 (LINK_EH_SPEC): Add required trailing space.
13846
13847 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
13848
13849 * c-tree.h: Move function declarations so that they are listed
13850 under the filename which contains them.
13851 (check_identifier, finish_decl_top_level,
13852 lookup_name_current_level_global, shadow_record_fields): Remove.
13853
13854 2002-01-11 Andreas Jaeger <aj@suse.de>
13855
13856 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13857 march.
13858
13859 2002-01-10 Richard Henderson <rth@redhat.com>
13860
13861 * config/alpha/alpha.c (print_operand): Add 'J'.
13862 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13863 new operand with the sequence number for the lituse. When splitting
13864 the insns, use gen_movdi_er_high_g and generate a sequence number.
13865 (gen_movdi_er_high_g): Print the sequence number if non-zero.
13866
13867 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
13868
13869 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13870 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13871 stvxl.
13872 (altivec_expand_builtin): Same.
13873 (altivec_expand_stv_builtin): New.
13874
13875 * config/rs6000/rs6000.h (rs6000_builtins): Same.
13876
13877 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13878 ("altivec_lvehx"): New.
13879 ("altivec_lvewx"): New.
13880 ("altivec_lvxl"): New.
13881 ("altivec_lvx"): New.
13882 ("altivec_stvx"): New.
13883 ("altivec_stvebx"): New.
13884 ("altivec_stvehx"): New.
13885 ("altivec_stvewx"): New.
13886 ("altivec_stvxl"): New.
13887
13888 2002-01-10 Richard Henderson <rth@redhat.com>
13889
13890 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13891 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
13892 care not to delete instructions twice.
13893
13894 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13895
13896 * toplev.c: Don't declare environ (it's not used anywhere).
13897 * configure.in: Don't check for declaration of environ.
13898 * config/i386/xm-mingw32.h: Don't #define environ.
13899 * config.in, configure: Regenerate.
13900
13901 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13902
13903 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13904 * configure: Regenerate.
13905
13906 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13907 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13908 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13909 alpha/xm-vms.h.
13910 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13911 LIMITS_H_TEST here, not in m68k/x-next.
13912 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13913 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13914
13915 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13916 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13917 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
13918
13919 * config/i386/x-djgpp: Renamed i386/t-djgpp.
13920 * config/m88k/x-dolph: Renamed m88k/t-dolph.
13921 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13922 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
13923 replacement of quadlib.asm with quadlib.c.
13924
13925 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13926 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13927 config/rs6000/xm-beos.h: Delete file.
13928
13929 * config.gcc: Update to match above changes.
13930
13931 2002-01-10 Kazu Hirata <kazu@hxi.com>
13932
13933 * config/h8300/h8300.h: Fix comment typos.
13934 * config/h8300/h8300.md: Likewise.
13935 * config/h8300/lib1funcs.asm: Likewise.
13936
13937 2002-01-10 Dale Johannesen <dalej@apple.com>
13938
13939 PR optimization/5269
13940 * unroll.c (precondition_loop_p): Make *increment be the correct
13941 sign when n_iterations known, to avoid confusing caller.
13942
13943 2002-01-10 Kazu Hirata <kazu@hxi.com>
13944
13945 * doc/extend.texi (deprecated): Fix a typo.
13946
13947 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
13948
13949 * basic-block.h (update_br_prob_note): Declare.
13950 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13951 (try_forward_edges): Care negative frequencies and update note.
13952 (outgoing_edges_match): Tweek conditional merging heuristics.
13953 (try_crossjump_to_edge): use update_br_prob_note.
13954 * cfglayout.c (fixup_reorder_chain): Likewise.
13955 * cfrtl.c (update_br_prob_note): New.
13956 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13957
13958 * i386.c (ix86_decompose_address): Return -1 if address contains
13959 shift.
13960 (legitimate_address_p): Require ix86_decompose_address to return 1.
13961
13962 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13963 (cprop_insn): Likewise.
13964
13965 2002-01-10 Kazu Hirata <kazu@hxi.com>
13966
13967 * toplev.c: Fix formatting.
13968 * tree.c: Likewise.
13969 * tree-dump.c: Likewise.
13970 * unroll.c: Likewise.
13971 * unwind-dw2.c: Likewise.
13972 * unwind-dw2-fde.c: Likewise.
13973 * unwind-dw2-fde-glibc.c: Likewise.
13974 * unwind-sjlj.c: Likewise.
13975
13976 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13977
13978 * doc/invoke.texi: Document PDP-11 options.
13979
13980 2002-01-10 Kazu Hirata <kazu@hxi.com>
13981
13982 * config/h8300/h8300.h: Fix formatting.
13983
13984 2002-01-10 Ira Ruben <ira@apple.com>
13985
13986 Add __attribute__ ((deprecated)).
13987 * extend.texi: Document __attribute__ ((deprecated)).
13988 * invoke.texi: Document -Wno-deprecated-declarations.
13989 * testsuite/g++.dg/other/deprecated.C: New C++ test.
13990 * testsuite/gcc.dg/deprecated.c: New C test.
13991 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13992 (c_common_attribute_table): Add "deprecated" entry.
13993 (handle_deprecated_attribute): New function.
13994 * c-decl.c (deprecated_states): New enum.
13995 deprecated_state: State of "deprecated" handling.
13996 (start_decl): Set deprecated_state based on attributes.
13997 (grokdeclarator): Test for deprecated uses, propagate attribute.
13998 * c-typeck.c (build_component_ref): Test for deprecated fields.
13999 (build_external_ref): Test for deprecated primaries.
14000 * diagnostic.c (warn_deprecated_use) New function to issue
14001 warnings about __attribute__ ((depricated)) references.
14002 * flags.h (warn_deprecated_decl): Extern declared for
14003 -W[no-]deprecated-declarations option.
14004 * print-tree.c (print_node): Show deprecated flag status.
14005 * toplev.c (warn_deprecated_decl): Defined.
14006 (W_options): Added "deprecated-declaration".
14007 * toplev.h (warn_deprecated_use): Extern declared.
14008 * tree.h (struct tree_common): Define deprecated_flag.
14009 (TREE_DEPRECATED): New macro to access flag.
14010 * cp/call.c (build_call): Test for deprecated calls.
14011 * cp/class.c (add_implicitly_declared_members): Set global
14012 flag to tell grokdeclarator to not issue deprecated warnings.
14013 * cp/cp-tree.h: Add extern for adding_implicit_members.
14014 * cp/decl.c (deprecated_states): New enum.
14015 (start_decl): Set deprecated_state based on attributes.
14016 (grokdeclarator): Test for deprecated uses, propagate attribute.
14017 * cp/lex.c (do_identifier): Test for deprecated primaries.
14018 * cp/typeck.c (build_component_ref): Test for deprecated fields.
14019
14020 2002-01-10 Ira Ruben <ira@apple.com>
14021
14022 Fix to assign attributes to inline member functions.
14023 * cp/decl.c (start_method): Handle attrlist.
14024
14025 2002-01-10 Kazu Hirata <kazu@hxi.com>
14026
14027 * combine.c (expand_field_assignment): Use subreg_lsb().
14028
14029 2002-01-10 David Edelsohn <edelsohn@gnu.org>
14030
14031 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
14032 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
14033 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
14034 Recurse for any operand of AND as long as constant is non-zero.
14035
14036 2002-01-10 Kazu Hirata <kazu@hxi.com>
14037
14038 * config/h8300/h8300.md: Remove constraints from expanders.
14039
14040 2002-01-10 Kazu Hirata <kazu@hxi.com>
14041
14042 * varasm.c: Fix formatting.
14043 * varray.c: Likewise.
14044 * vmsdbgout.c: Likewise.
14045 * xcoffout.c: Likewise.
14046
14047 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
14048
14049 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
14050 update edge probabilities to match.
14051
14052 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14053
14054 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
14055 dependencies.
14056 * doc/languages.texi, doc/sourcebuild.texi: New files.
14057 * doc/configfiles.texi: Make a subsubsection. Update.
14058 * doc/configterms.texi: Add @node. Remove warning that this isn't
14059 instructions for building GCC.
14060 * doc/makefile.texi: Make a subsection.
14061 * doc/gccint.texi: Update.
14062
14063 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
14064
14065 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
14066
14067 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
14068
14069 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
14070
14071 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
14072
14073 * optabs.c (expand_fix): Look for wider integer modes first.
14074
14075 * i386.md (mov?f): Avoid the fake const double trick for medium
14076 memory model.
14077 (min?f*/max?f*): Prohibit memory operands for i387 variant.
14078 (fop_df_4): Disable for SSE compilation.
14079
14080 2002-01-10 Graham Stott <grahams@redhat.com>
14081
14082 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
14083 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
14084
14085 2002-01-10 Richard Henderson <rth@redhat.com>
14086
14087 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
14088
14089 2002-01-10 Richard Henderson <rth@redhat.com>
14090
14091 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
14092 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
14093
14094 2002-01-10 Kazu Hirata <kazu@hxi.com>
14095
14096 * combine.c (can_combine_p): Fix a comment typo.
14097
14098 2002-01-09 Zack Weinberg <zack@codesourcery.com>
14099
14100 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
14101 empty list correctly. Change loop index $t to $f for
14102 consistency with rest of Makefile.
14103
14104 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
14105
14106 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
14107 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14108
14109 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
14110 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
14111 (altivec_init_builtins): Same.
14112 (altivec_expand_unop_builtin): Return NULL_RTX on error.
14113 (altivec_expand_binop_builtin): Same.
14114 (altivec_expand_ternop_builtin): Same.
14115 (bdesc_dst): New.
14116
14117 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
14118 ("altivec_vctuxs"): Fix typo.
14119 ("altivec_vnmsubfp"): Same.
14120 ("altivec_dssall"): New.
14121 ("altivec_mfvscr"): New.
14122 ("altivec_dss"): New.
14123 ("altivec_lvsl"): New.
14124 ("altivec_lvsr"): New.
14125 ("altivec_dstt"): New.
14126 ("altivec_dstst"): New.
14127 ("altivec_dststt"): New.
14128 ("altivec_dst"): New.
14129
14130 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
14131 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14132
14133 2002-01-09 Richard Henderson <rth@redhat.com>
14134
14135 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
14136
14137 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
14138
14139 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
14140 function.
14141 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
14142 prototype.
14143 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
14144
14145 2002-01-09 Kazu Hirata <kazu@hxi.com>
14146
14147 * read-rtl.c: Fix formatting.
14148 * real.c: Likewise.
14149 * regclass.c: Likewise.
14150 * regrename.c: Likewise.
14151 * reg-stack.c: Likewise.
14152 * reload1.c: Likewise.
14153 * reload.c: Likewise.
14154 * rtl.c: Likewise.
14155
14156 2002-01-09 Kazu Hirata <kazu@hxi.com>
14157
14158 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
14159 to extract items in the expr_list chain.
14160
14161 2002-01-09 Richard Henderson <rth@redhat.com>
14162
14163 * config/vax/vax.c (vax_rtx_cost): Never abort.
14164
14165 * config/vax/vax.h (REAL_ARITHMETIC): Define.
14166
14167 2002-01-09 Jan Hubicka <jh@suse.cz>
14168
14169 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
14170
14171 2002-01-09 Richard Henderson <rth@redhat.com>
14172
14173 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
14174 Unify code from various alternatives.
14175
14176 2002-01-09 Richard Henderson <rth@redhat.com>
14177
14178 * regrename.c (copy_value): Ignore the copy if the source register
14179 is present in the value chain with a narrower mode.
14180
14181 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14182
14183 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
14184 for the c4x target. Also improve layout.
14185
14186 2002-01-09 Richard Henderson <rth@redhat.com>
14187
14188 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
14189 * config/m32r/m32r.md (and ior xor splitters): Swap operands
14190 to match insn patterns.
14191
14192 2002-01-09 Richard Henderson <rth@redhat.com>
14193
14194 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
14195 (copyprop_hardreg_forward_1): Likewise.
14196
14197 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
14198
14199 * pa.md (decrement_and_branch_until_zero): Change predicate for
14200 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
14201
14202 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14203
14204 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
14205 gets undefined. For Darwin.
14206
14207 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14208
14209 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
14210
14211 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14212
14213 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
14214
14215 2002-01-08 Richard Henderson <rth@redhat.com>
14216
14217 * regrename.c (copy_value): Ignore overlapping copies.
14218
14219 2002-01-08 Richard Henderson <rth@redhat.com>
14220
14221 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
14222 as needed to avoid shared structure.
14223
14224 2002-01-08 Kazu Hirata <kazu@hxi.com>
14225
14226 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
14227 H8/300H and H8/S.
14228
14229 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14230
14231 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
14232 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
14233 documentation of obsolete macros.
14234 * system.h: Poison these macros.
14235 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
14236 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
14237 config/c4x/c4x.h, config/clipper/clipper.h,
14238 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
14239 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
14240 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
14241 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
14242 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14243 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
14244 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14245 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
14246 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
14247 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14248 config/sparc/sparc.h, config/stormy16/stormy16.h,
14249 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
14250 definitions and commented out definitions of obsolete macros.
14251 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
14252 of MAX_INT_TYPE_SIZE.
14253
14254 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
14255
14256 * config/s390/s390.c (s390_preferred_reload_class): Never
14257 return ADDR_REGS if it isn't a subset of the given class.
14258 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
14259 FP_REGS, but all superclasses as well.
14260
14261 * config/s390/s390.c (s390_function_profiler): Fix thinko.
14262
14263 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
14264 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
14265 must not be a const_int.
14266
14267 2002-01-08 Richard Henderson <rth@redhat.com>
14268
14269 * Makefile.in (toplev.o): Depend on options.h.
14270 (gcc.o): Depend on specs.h.
14271
14272 2002-01-08 Jakub Jelinek <jakub@redhat.com>
14273
14274 * expr.c (store_expr): Convert VOIDmode constants back to target's
14275 mode.
14276
14277 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14278
14279 * doc/invoke.texi: Markup gcc as @command. Refer to
14280 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
14281 of http://gcc.gnu.org/thanks.html.
14282
14283 2002-01-08 Dale Johannesen <dalej@apple.com>
14284
14285 * config/rs6000/rs6000.md: Add missing int register
14286 target case to movdf_low.
14287
14288 2002-01-08 Zack Weinberg <zack@codesourcery.com>
14289
14290 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
14291 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
14292 (cppinit.o): Depend on except.h.
14293 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
14294 s-specs): New rules.
14295
14296 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
14297 Don't create specs.h/options.h/gencheck.h here. Remove
14298 unnecessary variable settings from last argument of AC_OUTPUT.
14299 * config.in, configure: Regenerate.
14300 * intl.c: Hardcode package name as "gcc".
14301
14302 * cppinit.c: Include except.h.
14303 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
14304 appropriate.
14305 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
14306 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
14307 (!)USING_SJLJ_EXCEPTIONS.
14308 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
14309
14310 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14311
14312 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
14313 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
14314 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
14315 documentation of obsolete macros.
14316 * system.h: Poison these macros.
14317 * config/d30v/d30v.h, config/ns32k/encore.h,
14318 config/stormy16/stormy16.h: Remove definitions and commented out
14319 definitions of obsolete macros.
14320
14321 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
14322
14323 * objc/objc-act.c (handle_class_ref): Mark the declaration of
14324 %sobjc_class_ref_%s as used - to prevent unwanted compiler
14325 warnings.
14326
14327 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
14328
14329 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
14330 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
14331 to insn adjusting stack/frame pointer.
14332 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
14333 accept operands that cause the insn to be non-splittable.
14334
14335 2002-01-08 Graham Stott <grahams@redhat.com>
14336
14337 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
14338 (C_TYPE_FIELDS_VOLATILE): Likewise.
14339 (C_TYPE_BEING_DEFINED): Likewise.
14340 (C_IS_RESERVED_WORD): Likewise.
14341 (C_TYPE_VARIABLE_SIZE): Likewise.
14342 (C_DECL_VARIABLE_SIZE): Likewise.
14343 (C_MISSING_PROTOTYPE_WARNED): Likewise.
14344 (C_SET_EXP_ORIGINAL_CODE): Likewise.
14345 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
14346 parenthesis.
14347 (C_DECL_ANTICIPATED): Likewise.
14348 (c_build_type_variant): Add parenthesis.
14349
14350 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14351
14352 * gcc.c (option_map): Remove --version.
14353 (process_command): Handle -fversion following the GNU Coding
14354 Standards. Partially addresses PR other/704.
14355
14356 2002-01-08 Graham Stott <grahams@redhat.com>
14357
14358 * combine.c (combine_instructions): Fix typo.
14359
14360 2002-01-08 Graham Stott <grahams@redhat.com>
14361
14362 * debug.h: Use "tree" and "rtx" throughout.
14363
14364 * debug.c: Likewise.
14365
14366 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
14367
14368 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
14369 constant pool, use the pool's version of the symbol instead.
14370
14371 2002-01-07 Richard Henderson <rth@redhat.com>
14372
14373 * regrename.c (find_oldest_value_reg): Ignore the value chain if
14374 the original register was copied in a mode with a fewer number of
14375 hard registers than the desired mode.
14376 (copyprop_hardreg_forward_1): Likewise.
14377 (debug_value_data): Fix loop test.
14378 * toplev.c (parse_options_and_default_flags): Reenable
14379 -fcprop-registers at -O1.
14380
14381 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14382
14383 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
14384 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
14385
14386 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
14387 predicates.
14388
14389 * config/rs6000/rs6000.md: Add altivec predicate patterns.
14390
14391 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
14392
14393 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
14394 (pa_output_function_prologue): Output local label at the beginning of
14395 the prologue when profiling.
14396 (hppa_profile_hook): Use the local label rather than the function label.
14397 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
14398
14399 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14400
14401 * config/rs6000/rs6000.c (print_operand): Remove extra space.
14402 (altivec_expand_unop_builtin): Fix thinko.
14403 (altivec_expand_binop_builtin): Same.
14404 (altivec_expand_ternop_builtin): Same.
14405 (altivec_expand_builtin): Same.
14406
14407 2002-01-07 Richard Henderson <rth@redhat.com>
14408
14409 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
14410
14411 2002-01-07 Jason Merrill <jason@redhat.com>
14412
14413 * unwind-dw2.c (execute_cfa_program): Use < again.
14414
14415 2002-01-07 Jakub Jelinek <jakub@redhat.com>
14416
14417 * predict.c (combine_predictions_for_insn): Avoid division by zero.
14418
14419 2002-01-07 Jakub Jelinek <jakub@redhat.com>
14420
14421 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
14422 Don't allow -1 - x -> ~x simplifications in the first pass.
14423
14424 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14425
14426 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
14427 arguments.
14428 (altivec_expand_binop_builtin): Same.
14429 (altivec_expand_unop_builtin): Same.
14430 (print_operand): Fix typo.
14431 (bdesc_1arg): Add vupk* variants.
14432
14433 * rs6000.h (rs6000_builtins): Add vupk* enums.
14434
14435 * rs6000.md: Add altivec_vupk* variants.
14436
14437 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
14438
14439 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
14440 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
14441 and last update dates.
14442
14443 2002-01-07 Janis Johnson <janis187@us.ibm.com>
14444
14445 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
14446
14447 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
14448
14449 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14450 * config/avr/avr.h (CPP_SPEC): Likewise.
14451 (LINK_SPEC): Likewise.
14452 (CRT_BINUTILS_SPECS): Likewise.
14453 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14454 * doc/invoke.texi (AVR Options): Document them.
14455
14456 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
14457
14458 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14459 LABEL_NUSES.
14460
14461 2002-01-07 Graham Stott <grahams@redhat.com>
14462
14463 * config/i386/i386.h: Update copyright date.
14464 (HALF_PIC_PTR): Add parenthesis.
14465 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14466 (CONSTANT_ALIGNMENT): Add parenthesis.
14467 (DATA_ALIGNMENT): Likewise.
14468 (LOCAL_ALIGNMENT): Likewise.
14469 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14470 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14471 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14472 (HARD_REGNO_NREGS): Add paranethesis.
14473 (VALID_SSE_REG_MODE): Whitespace.
14474 (VALID_MMX_REG_MODE): Whitespace.
14475 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14476 (ix86_hard_regno_mode_ok): Add parenthesis.
14477 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14478 (RETURN_IN_MEMORY): Whitespace.
14479 (N_REG_CLASSES): Add parenthesis.
14480 (INTEGER_CLASS_P): Add parenthesis and wrap.
14481 (FLOAT_CLASS_P): Likewise.
14482 (SSE_CLASS_P): Likewise.
14483 (MMX_CLASS_P): Likewise.
14484 (MAYBE_INTEGER_CLASS_P): Likewise.
14485 (MAYBE_FLOAT_CLASS_P): Likewise.
14486 (MAYBE_SSE_CLASS_P): Likewise.
14487 (MAYBE_MMX_CLASS_P): Likewise.
14488 (Q_CLASS_P): Likewise.
14489 (GENERAL_REGNO_P): Uppercase macro parameter.
14490 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14491 (FP_REGNO_P): Likewise.
14492 (ANY_FP_REGNO_P): Uppercase macro parameter.
14493 (SSE_REGNO_P): Likewise.
14494 (SSE_REGNO): Likewise.
14495 (SSE_REG_P): Likewise.
14496 (SSE_FLOAT_MODE_P): Likewise.
14497 (MMX_REGNO_P): Likewise.
14498 (MMX_REG_P):Likewise.
14499 (STACK_REG_P): Likewise.
14500 (NON_STACK_REG_P): Likewise.
14501 (STACK_TOP_P): Likewise.
14502 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14503 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14504 (SECONDARY_MEMORY_NEEDED): Likewise.
14505 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14506 (MD_ASM_CLOBBERS): Whitespace and wrap.
14507 (MUST_PASS_IN_STACK): Whitespace and wrap.
14508 (RETURN_POPS_ARGS): Add parenthesis.
14509 (INIT_CUMULATIVE_ARGS): Likewise.
14510 (FUNCTION_ARG): Likewise.
14511 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14512 (SETUP_INCOMING_VARARGS): Likewise.
14513 (BUILD_VA_LIST_TYPE): Add parenthesis.
14514 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14515 parenthsis.
14516 (EXPAND_BUILTIN_VA_ARG): Likewise.
14517 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14518 (INITIALIZE_TRAMPOLINE): Add parenthesis.
14519 (INITIAL_ELIMINATION_OFFSET): Likewise.
14520 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14521 (REGNO_OK_FOR_BASE_P): Likewise.
14522 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14523 (REGNO_OK_FOR_DIREG_P): Likewise.
14524 (REG_OK_FOR_INDEX_P): Whitespace.
14525 (REG_OK_FOR_BASE_P): Whitespace.
14526 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14527 parenthesis.
14528 (FIND_BASE_TERM): Fix typo.
14529 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
14530 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14531 (SYMBOLIC_CONST; Whitespace.
14532 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
14533 (ENCODE_SECTION_INFO): Whitespace.
14534 (FINALIZE_PIC): Remove do { ... } while (0).
14535 (PROMOTE_MODE): Wrap in do { ... } while (0).
14536 (CONST_COSTS): Whitespace.
14537 (RTX_COSTS): Add paramethesis, whitespace and wrap.
14538 (REGISTER_MOVE_COST): Add parenthesis.
14539 (MEMORY_MOVE_COST): Likewise.
14540 (EXTRA_CC_MODES): Whitespace.
14541 (SELECT_CC_MODE): Add parenthesis and whitespace.
14542 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14543 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14544 (ASM_OUTPUT_LABEL): Add paramethesis.
14545 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14546 (ASM_OUTPUT_REG_POP): Likewise.
14547 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14548 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14549
14550 * config/i386/i386.c: Update copyright.
14551 (CHECK_STACK_LIMIT): Add parenthesis.
14552 (AT_BP): Uppercase macro parameter.
14553 (x86_64_int_parameter_registers): Constify.
14554 (x86_64_int_return_registers): Likewise.
14555 (ix86_compare_op0): Use rtx.
14556 (construct_container): Constify INTREG parameter.
14557 (function_arg): Use rtx.
14558
14559 * diagnostic.h: Update copyright date.
14560 (output_buffer_state): Add parenthesis.
14561 (output_buffer_format_args): Likewise.
14562
14563 * combine.c (combine_instructions): Replace XEXP (links, 0)
14564 with link.
14565
14566 2002-01-06 H.J. Lu <hjl@gnu.org>
14567
14568 * cfgcleanup.c (thread_jump): Fix 2 typos.
14569
14570 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
14571
14572 * config.gcc: Add support for --enable-altivec.
14573
14574 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14575
14576 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14577
14578 2002-01-06 Jakub Jelinek <jakub@redhat.com>
14579
14580 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14581 __objc_class_name_*.
14582
14583 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14584
14585 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14586
14587 2002-01-06 Richard Henderson <rth@redhat.com>
14588
14589 * reorg.c (emit_delay_sequence): Remove death notes, not merely
14590 nop them out. Increment label reference count for REG_LABEL.
14591 (fill_slots_from_thread): Frob label reference count around
14592 delete_related_insns.
14593
14594 2002-01-05 Richard Henderson <rth@redhat.com>
14595
14596 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14597 jump threading.
14598
14599 2002-01-05 Richard Henderson <rth@redhat.com>
14600
14601 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14602 * integrate.c (output_inline_function): Likewise.
14603 * toplev.c (rest_of_compilation): Do it here instead. Move call
14604 to remove_unnecessary_notes after emitting abstract instance.
14605 Force an emitted nested function to have its parent emited as well.
14606 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14607 for null.
14608 (rtl_for_decl_location): Do not look at reload data structures
14609 before reload has run.
14610
14611 2002-01-05 Kazu Hirata <kazu@hxi.com>
14612
14613 * cse.c: Fix formatting.
14614 * dwarf2asm.c: Likewise.
14615 * dwarf2out.c: Likewise.
14616 * explow.c: Likewise.
14617 * expmed.c: Likewise.
14618 * function.c: Likewise.
14619 * gcov.c: Likewise.
14620 * gencheck.c: Likewise.
14621 * genrecog.c: Likewise.
14622 * ggc-common.c: Likewise.
14623 * ggc-page.c: Likewise.
14624 * global.c: Likewise.
14625
14626 2002-01-05 Kazu Hirata <kazu@hxi.com>
14627
14628 * combine.c: Fix formatting.
14629
14630 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
14631
14632 PR middle-end/1557
14633 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14634
14635 2002-01-05 David Edelsohn <edelsohn@gnu.org>
14636
14637 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14638 as 1 for __powerpc64__ as well.
14639
14640 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14641
14642 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14643 return it.
14644
14645 2002-01-05 Daniel Berlin <dan@dberlin.org>
14646
14647 * lcm.c: Revert change, due to performance regression it causes on
14648 SPEC because it's slightly more conservative (sigh, I hate
14649 edge-based LCM).
14650
14651 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
14652
14653 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14654
14655 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
14656
14657 * doc/cppinternals.texi: Update.
14658
14659 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
14660
14661 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14662 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14663 negatives.
14664 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
14665 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14666 kludge for pre-october-14th mmix versions to handle new-found bug
14667 with PUSHJ/PUSHGO and the register stack.
14668 * config/mmix/mmix.h (struct machine_function): Rename member
14669 has_call_value_without_parameters to has_call_without_parameters.
14670 All referers changed.
14671 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14672 TARGET_MASK_BRANCH_PREDICT): New macros.
14673 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14674 -mno-reg-stack-fill-bug-workaround.
14675 * config/mmix/mmix.md ("call"): Set struct machine member
14676 has_call_without_parameters.
14677
14678 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
14679
14680 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14681
14682 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
14683
14684 * cfgcleanup.c: Include tm_p.h
14685 (mark_effect): Fix handling of hard register; fix handling of SET
14686
14687 2002-01-04 Kazu Hirata <kazu@hxi.com>
14688
14689 * config/h8300/h8300.md (anonymous patterns): Check that
14690 operands are registers before using REGNO on them.
14691
14692 2002-01-03 Roland McGrath <roland@frob.com>
14693
14694 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14695
14696 2002-01-04 Jakub Jelinek <jakub@redhat.com>
14697
14698 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14699 * c-common.h (genrtl_expr_stmt_value): Likewise.
14700 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14701 (expand_expr_stmt_value): Add maybe_last argument.
14702 Don't warn about statement with no effect if it is the last statement
14703 in expression statement.
14704 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14705 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14706 expand_expr_stmt_value.
14707 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14708 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14709 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14710 as maybe_last to expand_expr_stmt_value.
14711
14712 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
14713
14714 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14715 be passed in, do not build it.
14716 (c_begin_if_stmt): New function.
14717 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14718 * c-common.h (c_expand_start_cond): Update prototype.
14719 (c_begin_if_stmt): Prototype new function.
14720 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14721 * c-parse.in (if_prefix): Use c_begin_if_stmt,
14722 c_begin_while_stmt and c_finish_while_stmt_cond.
14723
14724 2002-01-04 William Cohen <wcohen@redhat.com>
14725
14726 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14727 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14728 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14729 * config/pa/som.h (ASM_FILE_START): Likewise.
14730
14731 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
14732
14733 * lcm.c: Include df.h.
14734 Add available_transfer_function prototype.
14735 (compute_available): Rework to use iterative dataflow framework.
14736 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14737 with bb_info in df.h
14738 (available_transfer_function): New function.
14739
14740 * Makefile.in (lcm.o): add df.h to dependencies.
14741
14742 2002-01-04 Richard Henderson <rth@redhat.com>
14743
14744 * config/alpha/alpha.c (some_operand): Accept HIGH.
14745 (input_operand): Likewise; accept simple references to globals.
14746 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14747 (alpha_const_double_ok_for_letter_p): Likewise.
14748 (alpha_extra_constraint): Likewise.
14749 (alpha_preferred_reload_class): Likewise. Do not force
14750 symbolic constants to memory.
14751 (alpha_legitimate_address_p): Accept simple references
14752 to small_symbolic_operand.
14753 (alpha_legitimize_address): New arg scratch. Be prepared to be
14754 called when no_new_pseudos. Emit simple symbolic references.
14755 Split integers into low, high, and rest.
14756 (alpha_expand_mov): Use alpha_legitimize_address.
14757 (some_small_symbolic_mem_operand): New.
14758 (split_small_symbolic_mem_operand): New.
14759 * config/alpha/alpha-protos.h: Update.
14760 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14761 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14762 (EXTRA_CONSTRAINT): Likewise.
14763 (PREFERRED_RELOAD_CLASS): Likewise.
14764 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14765 (PREDICATE_CODES): Update.
14766 * config/alpha/alpha.md: New post-reload splitters to convert
14767 simplfied symbolic operands to the form that references $29.
14768 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14769 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14770
14771 2002-01-03 Richard Henderson <rth@redhat.com>
14772
14773 * local-alloc.c (function_invariant_p): Update commentary.
14774
14775 2002-01-04 H.J. Lu <hjl@gnu.org>
14776
14777 * toplev.c (rest_of_compilation): Fix a typo when calling
14778 cleanup_cfg.
14779
14780 2002-01-03 Kazu Hirata <kazu@hxi.com>
14781
14782 * c-common.c: Fix formatting.
14783 * diagnostic.c: Likewise.
14784 * doloop.c: Likewise.
14785 * dwarf2out.c: Likewise.
14786
14787 2002-01-03 Kazu Hirata <kazu@hxi.com>
14788
14789 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14790 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14791
14792 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14793
14794 * cpperror.c: Update comments and copyright.
14795 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14796 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14797
14798 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14799
14800 * collect2.c (main): Use strcmp when testing for "-shared".
14801
14802 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14803
14804 * cppmacro.c: Don't include intl.h. Update comments.
14805 (new_number_token): Allocate enough buffer for 64-bit unsigned
14806 integers; update prototype.
14807 * cppmain.c: Update comments.
14808
14809 2002-01-03 William Cohen <wcohen@redhat.com>
14810
14811 * function.h (struct function): Add profile.
14812 (current_function_profile): New.
14813 doc/extend.texi: Update documentation.
14814 * final.c (final_start_function): Use current_function_profile
14815 instead of profile_flag.
14816 (profile_after_prologue): Likewise.
14817 * function.c (expand_function_start): Likewise.
14818 (expand_function_start): Likewise.
14819 * config/alpha/alpha.c (direct_call_operand):
14820 (alpha_does_function_need_gp): Likewise.
14821 (alpha_expand_prologue): Likewise.
14822 * config/arm/arm.c (arm_expand_prologue): Likewise.
14823 thumb_expand_prologue: Likewise.
14824 * config/d30v/d30v.c (d30v_stack_info): Likewise.
14825 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14826 (fr30_expand_prologue): Likewise.
14827 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14828 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14829 * config/i386/i386.h (FINALIZE_PIC): Likewise.
14830 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14831 * config/i960/i960.c (i960_output_function_prologue): Likewise.
14832 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14833 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14834 (m32r_expand_prologue): Likewise.
14835 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14836 (m88k_expand_prologue): Likewise.
14837 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14838 * config/mips/mips.c (compute_frame_size): Likewise.
14839 (mips_expand_prologue): Likewise.
14840 (mips_can_use_return_insn): Likewise.
14841 * config/pa/elf.h (ASM_FILE_START): Likewise.
14842 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14843 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14844 * config/pa/som.h (ASM_FILE_START): Likewise.
14845 * config/romp/romp.c (romp_using_r14): Likewise.
14846 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14847 (rs6000_stack_info): Likewise.
14848 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14849 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14850 * config/v850/v850.c (compute_register_save_size): Likewise.
14851
14852 2002-01-03 Jakub Jelinek <jakub@redhat.com>
14853
14854 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14855 gen_lowpart_common fails, use gen_lowpart_SUBREG.
14856
14857 2002-01-03 Turly O'Connor <turly@apple.com>
14858
14859 * darwin.c (machopic_output_possible_stub_label): Don't generate
14860 stub routines for pseudo-stubs which we've just defined.
14861
14862 2002-01-03 Kazu Hirata <kazu@hxi.com>
14863
14864 * builtins.c: Fix formatting.
14865 * c-typeck.c: Likewise.
14866 * combine.c: Likewise.
14867 * expr.c: Likewise.
14868 * loop.c: Likewise.
14869
14870 2002-01-03 Andreas Schwab <schwab@suse.de>
14871
14872 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14873 and return true if _cpp_push_next_buffer pushed a new include
14874 file.
14875 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14876 _cpp_pop_file_buffer did not push a new file.
14877 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14878
14879 2002-01-02 Eric Christopher <echristo@redhat.com>
14880
14881 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14882 FIND_REG_INC_NOTE call. Update copyright.
14883 * loop.c (canonicalize_condition): Ditto.
14884 * reorg.c (delete_scheduled_jump): Ditto.
14885
14886 2002-01-03 Kazu Hirata <kazu@hxi.com>
14887
14888 * gcse.c: Fix formatting.
14889
14890 2002-01-03 Graham Stott <grahams@redhat.com>
14891
14892 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14893 forward defs for struct tags rtx_def, union_tree, rtvec_def
14894 also output corresponding typedefs for rtx, tree, and rtvec.
14895
14896 * system.h: Move forward defs for struct tags rtx_def, union_tree,
14897 rtvec_def along with corresponding typedefs for rtx, tree, and
14898 rtvec to config.h, hconfig.h, tconfig.h.
14899
14900 2002-01-03 Graham Stott <grahams@redhat.com>
14901
14902 * tree.h: Update copyright date.
14903 (IS_EXPR_CODE_CLASS): Add parenthesis.
14904 (TREE_SET_CODE): Add whitespace.
14905 (TREE_CHECK): Add parenthesis.
14906 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14907 (CST_OR_CONSTRUCTOR_CHECK):
14908 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14909 (TREE_SYMBOL_REFERENCED): Whitespace.
14910 (INT_CST_LT): Likewise.
14911 (INT_CST_LT_UNSIGNED): Likewise.
14912 (tree_real_cst): Unwrap comment.
14913 (tree_string): Likewise.
14914 (tree_complex): Likewise.
14915 (IDENTIFIER_POINTER): correct cast.
14916 (SAVE_EXPR_CONTEXT): Whitespace.
14917 (EXPR_WFL_FILENAME_NODE): Likewise.
14918 (EXPR_WFL_FILENAME): Remove parenthesis.
14919 (DECL_ORIGIN): Add parenthesis.
14920 (DECL_FROM_INLINE): Use NULL_TREE.
14921 (build_int_2): Whitespace.
14922 (build_type_variant): Add parenthesis.
14923
14924 * gcc/jcf-parse.c: Update copyright date.
14925 (yyparse): Constify resource_filename.
14926
14927 2002-01-03 Graham Stott <grahams@redhat.com>
14928
14929 * rtl.h: Update copyright date.
14930 (RTL_CHECK1): Wrap long line.
14931 (RTL_CHECK2): Likewise.
14932 (RTL_CHECKC1): Wrap long line and whitespace.
14933 (RTL_CHECKC2): Likewise.
14934 (XWINT): Whitespace.
14935 (XINT): Likewise.
14936 (XSTR): Likewise.
14937 (XEXP): Likewise.
14938 (XVEC): Likewise.
14939 (XMODE): Likewise.
14940 (XBITMAP): Likewise.
14941 (XTREE): Likewise.
14942 (XBBDEF): Likewise.
14943 (XTMPL): Likewise.
14944 (X0WINT): Likewise.
14945 (X0INT):Likewise.
14946 (X0UINT): Likewise.
14947 (X0STR): Likewise.
14948 (X0EXP): Likewise.
14949 (X0VEC): Likewise.
14950 (X0MODE): Likewise.
14951 (X0BITMAP): Likewise.
14952 (X0TREE): Likewise.
14953 (X0BBDEF): Likewise.
14954 (X0ADVFLAGS): Likewise.
14955 (X0CSELIB): Likewise.
14956 (X0MEMATTR): Likewise.
14957 (XCWINT): Likewise.
14958 (XCINT): Likewise.
14959 (XCUINT): Likewise.
14960 (XCSTR): Likewise.
14961 (XCEXP): Likewise.
14962 (XCVEC): Likewise.
14963 (XCMODE): Likewise.
14964 (XCBITMAP): Likewise.
14965 (XCTREE): Likewise.
14966 (XCBBDEF): Likewise.
14967 (XCADVFLAGS): Likewise.
14968 (XCCSELIB): Likewise.
14969 (XC2EXP): Likewise.
14970 (INSN_UID): Likewise.
14971 (PREV_INSN): Likewise.
14972 (PATTERN): Likewise.
14973 (INSN_CODE): Likewise.
14974 (PUT_REG_NOTE_KIND): Likewise.
14975 (CODE_LABEL_NUMBER): Likewise.
14976 (NOTE_SOURCE_FILE): Likewise.
14977 (NOTE_BLOCK): Likewise.
14978 (NOTE_EH_HANDLER): Likewise.
14979 (NOTE_RANGE_INFO): Likewise.
14980 (NOTE_LIVE_INFO): Likewise.
14981 (NOTE_BASIC_BLOCK): Likewise.
14982 (NOTE_EXPECTED_VALUE): Likewise.
14983 (NOTE_LINE_NUMBER): Likewise.
14984 (LABEL_NAME): Likewise.
14985 (LABEL_NUSES): Likewise.
14986 (LABEL_ALTERNATE_NAME): Likewise.
14987 (ADDRESSOF_DECL): Likewise.
14988 (JUMP_LABEL): Likewise.
14989 (LABEL_NEXTREF): Likewise.
14990 (REGNO): Likewise.
14991 (ORIGINAL_REGNO: Likewise.
14992 (HARD_REGISTER_NUM_P): Add parenthesis.
14993 (SUBREG_REG): Whitespace.
14994 (SUBREG_BYTE): Likewise.
14995 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14996 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14997 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14998 (ASM_OPERANDS_INPUT_VEC): Likewise.
14999 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
15000 (ASM_OPERANDS_INPUT): Likewise.
15001 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
15002 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
15003 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
15004 (ASM_OPERANDS_INPUT_MODE): Likewise.
15005 (ASM_OPERANDS_SOURCE_FILE): Likewise.
15006 (ASM_OPERANDS_SOURCE_LINE): Likewise.
15007 (MEM_SET_IN_STRUCT_P): Minor reformat.
15008 (TRAP_CONDITION): Whitespace.
15009 (TRAP_CODE): Likewise.
15010 (COND_EXEC_TEST): Likewise.
15011 (COND_EXEC_CODE): Likewise.
15012 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
15013 (PHI_NODE_P): Add parenthesis.
15014 (plus_constant): Whitespace and add parenthesis.
15015
15016 2002-01-03 Kazu Hirata <kazu@hxi.com>
15017
15018 * config/avr/avr.c: Fix comment typos.
15019 * config/c4x/c4x.md: Likewise.
15020 * config/dsp16xx/dsp16xx.h: Likewise.
15021 * config/dsp16xx/dsp16xx.md: Likewise.
15022 * config/i386/i386.md: Likewise.
15023 * config/ia64/ia64.c: Likewise.
15024 * config/m32r/m32r.h: Likewise.
15025 * config/m68hc11/m68hc11.md: Likewise.
15026 * config/mmix/mmix.c: Likewise.
15027 * config/mn10200/mn10200.c: Likewise.
15028 * config/romp/romp.c: Likewise.
15029 * config/sh/sh.c: Likewise.
15030 * config/stormy16/stormy16.c: Likewise.
15031 * config/stormy16/stormy16.h: Likewise.
15032 * config/stormy16/stormy16.md: Likewise.
15033
15034 2002-01-03 Graham Stott <grahams@redhat.com>
15035
15036 * loop.h: Update copyright date.
15037 (LOOP_MOVABLES): Fix typo.
15038 (LOOP_REGS): Likewise.
15039 (LOOP_IVS): Likewise.
15040
15041 2002-01-03 Graham Stott <grahams@redhat.com>
15042
15043 * cppinit.c: Update copyright date.
15044 Don't include output.h
15045 * Makefile.in: Update copyright date.
15046 Update dependency.
15047
15048 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
15049
15050 PR c/5226
15051 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
15052 (-pthread) Add to RS/6000 options.
15053
15054 2002-01-02 Kazu Hirata <kazu@hxi.com>
15055
15056 * except.c: Fix comment typos.
15057 * loop.c: Likewise.
15058 * varasm.c: Likewise.
15059 * doc/tm.texi: Fix a typo.
15060
15061 2002-01-02 Jakub Jelinek <jakub@redhat.com>
15062
15063 * c-typeck.c (output_init_element): Allow initializing static storage
15064 duration objects with compound literals.
15065
15066 2002-01-02 Richard Henderson <rth@redhat.com>
15067
15068 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
15069 after abusing it.
15070
15071 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15072
15073 * gcc.c (default_compilers): Const-ify.
15074 * mips-tdump.c (stab_names): Likewise.
15075 * mips-tfile.c (map_coff_types, map_coff_storage,
15076 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
15077 pseudo_ops_t, pseudo_ops): Likewise.
15078 * protoize.c (default_include): Likewise
15079
15080 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
15081 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
15082 Add array size in declaration.
15083 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
15084 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
15085 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
15086 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
15087 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
15088 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
15089 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
15090 emtens, make_nan): Const-ify.
15091 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
15092 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
15093
15094 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
15095
15096 * config.gcc (ia64-*-*): Set extra_headers.
15097 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
15098 * config/alpha/t-osf: Remove.
15099 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
15100
15101 2002-01-02 David Edelsohn <edelsohn@gnu.org>
15102
15103 * config/rs6000/t-aix43: Revert previous change.
15104
15105 2002-01-02 Jason Merrill <jason@redhat.com>
15106
15107 * c-decl.c (c_expand_body): Call outlining_inline_function when
15108 emitting an inline function out of line.
15109
15110 2002-01-02 Richard Henderson <rth@redhat.com>
15111
15112 * dwarf2out.c (limbo_die_node): Add created_for member.
15113 (new_die): New argument created_for. Update all callers.
15114 (mark_limbo_die_list): New.
15115 (dwarf2out_init): Register limbo_die_list as a root.
15116 (dwarf2out_finish): Force insert limbo dies into their function
15117 context.
15118
15119 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
15120
15121 PR c++/5089
15122 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
15123
15124 2002-01-02 Kazu Hirata <kazu@hxi.com>
15125
15126 * config/h8300/fixunssfsi.c: Update copyright.
15127 Fix comment typos.
15128 Fix formatting.
15129 * config/h8300/h8300.c: Update copyright.
15130 Eliminate warnings.
15131
15132 2002-01-02 Kazu Hirata <kazu@hxi.com>
15133
15134 * config/romp/romp.c: Fix comment formatting.
15135 * config/romp/romp.h: Likewise.
15136 * config/romp/romp.md: Likewise.
15137 * config/s390/s390.c: Likewise.
15138 * config/stormy16/stormy16.c: Likewise.
15139 * config/stormy16/stormy16.h: Likewise.
15140
15141 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
15142
15143 * c-common.h (genrtl_expr_stmt_value): Declare.
15144 * c-semantics.c (genrtl_goto_stmt): Redirect to...
15145 (genrtl_goto_stmt_value): ... this new function. Pass new
15146 argument down to expand_expr_stmt_value, taking
15147 TREE_ADDRESSABLE into account.
15148 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
15149 STMT_EXPR as addressable, i.e., one whose result we want.
15150 * expr.c (expand_expr): Don't save expression statement value
15151 of labeled_blocks or loop_exprs.
15152 * stmt.c (expand_expr_stmt): Redirect to...
15153 (expand_expr_stmt_value): ... this new function. Use new
15154 argument to tell whether to save expression value.
15155 (expand_end_stmt_expr): Reset last_expr_type and
15156 last_expr_value if we don't have either.
15157 * tree-inline.c (declare_return_variable): Mark its use
15158 statement as addressable.
15159 * tree.h: Document new use of TREE_ADDRESSABLE.
15160 (expand_expr_stmt_value): Declare.
15161
15162 2002-01-01 Tom Rix <trix@redhat.com>
15163
15164 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
15165 rs6000_emit_allocate_stack.
15166
15167 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
15168
15169 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
15170 ${srcdir}/ginclude/ to every entry in extra_headers.
15171 * configure: Regenerate.
15172 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
15173 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
15174 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
15175 * ginclude/proto.h: Rename to config/convex/proto.h.
15176
15177 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15178
15179 * attribs.c (handle_vector_size_attribute): Use host_integerp
15180 and tree_int_cst; remove warnings.
15181 * caller-save.c (insert_restore): Add cast to get rid of warning.
15182 (insert_save): Likewise.
15183 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
15184 * regmove.c (find_matches): Add temporary var to kill a warning.
15185
15186 2002-01-01 Douglas B Rupp <rupp@gnat.com>
15187
15188 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
15189 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
15190 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
15191 (vms-dwarf2eh.o): Add Makefile rule.
15192 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
15193 * config/alpha/vms-dwarf2eh.asm: New file.
15194
15195 * gcc.c (delete_if_ordinary): Delete all versions.
15196
15197 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
15198
15199 * config/mmix/mmix.md: Update FIXME to not mention
15200 define_constants.
15201 (MMIX_rJ_REGNUM): New define_constants constant.
15202 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
15203 "*movdicc_real"): Adjust contraints formatting.
15204 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
15205 for branch prediction.
15206 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
15207 output template.
15208 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
15209 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
15210 number. Delete related FIXMEs.
15211 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
15212 from number to MMIX_rJ_REGNUM.
15213 (TARGET_MASK_BRANCH_PREDICT): New.
15214 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
15215 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
15216 value. Add -mbranch-predict and -mno-branch-predict.
15217 (TARGET_VERSION): Drop date.
15218 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
15219 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
15220 for finding out global symbols.
15221 (mmix_asm_output_labelref): Revert condition for global symbol.
15222 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
15223 (mmix_print_operand_punct_valid_p): A '+' is valid.
15224
15225 See ChangeLog.6 for earlier changes.