472465f59a5847e0dab41969cae9881c3e41f743
[gcc.git] / gcc / ChangeLog
1 2002-07-30 Bernd Schmidt <bernds@redhat.com>
2
3 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
4 Bail out early if false_expr is NULL and we'd crash due to this.
5 * genemit.c (gen_expand): Recognize return insns even if the return
6 appears in a parallel.
7
8 2002-07-30 David Edelsohn <edelsohn@gnu.org>
9 Zack Weinberg <zack@codesourcery.com>
10
11 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
12 CODE_FOR_nothing. Change switch to if.
13 (rs6000_expand_binop_builtin): Same.
14 (rs6000_expand_builtin): Expand builtin if target support enabled.
15 (rs6000_init_builtins): Init builtin if target support enabled.
16 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
17
18 2002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19
20 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
21
22 2002-07-30 Richard Sandiford <rsandifo@redhat.com>
23
24 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
25
26 Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
27
28 * sh.md (cond_delay_slot): New attribute.
29 (cbranch delay): Use it for anulled-true case.
30 (stuff_delay_slot): New pattern.
31 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
32 delay slot insn.
33 (gen_far_branch): Emit stuff_delay_slot pattern.
34
35 Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
36
37 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
38
39 2002-07-30 Kazu Hirata <kazu@cs.umass.edu>
40
41 * fold-const.c: Fix comment typos.
42 * gcse.c: Likewise.
43 * reload1.c: Likewise.
44
45 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
46
47 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
48 for TARGET_SPE.
49
50 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
51
52 * c-pretty-print.h (pp_c_statement): Declare.
53 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
54 (pp_c_statement): Define.
55
56 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
57
58 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
59 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
60 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
61 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
62 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
63 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
64
65 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
66 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
67
68 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
69
70 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
71 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
72 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
73 (pp_c_expression): Update.
74
75 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
76
77 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
78 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
79 * alpha/vms-ld.c (main): Likewise.
80 * dsp16xx.c (double_reg_to_memory): Likewise.
81 * mcore.c (mcore_expand_prolog): Likewise.
82 * cppfiles.c (read_name_map): Likewise.
83 * gensupport.c (process_rtx, identify_predicable_attribute,
84 alter_test_for_insn): Likewise.
85 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
86
87 2002-07-29 Roger Sayle <roger@eyesopen.com>
88
89 * builtins.c (expand_builtin): Change the default behavior to
90 only issue an error if the builtin function doesn't have a
91 fallback library call. Remove several cases handled by the
92 new default.
93
94 2002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
95
96 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
97 floating point format of the target is IEEE.
98 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
99 format of the target is DEC.
100
101 2002-07-29 Richard Henderson <rth@redhat.com>
102
103 * unroll.c (verify_addresses): Remove.
104 (find_splittable_givs): Never split DEST_ADDR givs.
105
106 2002-07-29 Geoffrey Keating <geoffk@redhat.com>
107
108 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
109 is exhaustive.
110 (Files): Improve documentation on generated source files.
111
112 * doc/extend.texi (Translation implementation): Document what
113 diagnostics look like.
114 (Identifiers implementation): Document that there's normally no
115 limit on identifier names.
116 (Integers implementation): Document two's complement.
117 (Hints implementation): Document that GCC honours 'inline', mostly.
118 (Preprocessing directives implementation): Document that GCC
119 requires the current time.
120
121 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
122
123 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
124 (pp_initializer): New macro.
125 (pp_c_initializer): Declare.
126 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
127 (pp_c_initializer): Define.
128 (pp_c_initializer_list): New function.
129 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
130 VECTOR_CST, CONSTRUCTOR.
131 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
132 IMAGPART_EXPR.
133 (pp_c_cast_expression): Handle FLOAT_EXPR.
134 (pp_c_assignment_expression): Handle INIT_EXPR.
135 (pp_c_expression): Update.
136
137 2002-07-30 Neil Booth <neil@daikokuya.co.uk>
138
139 * objc/objc-act.c (objc_init): Return immediately if filename
140 is NULL.
141
142 2002-07-29 Eric Christopher <echristo@redhat.com>
143
144 * config/mips/elf.h: Remove ecoff.h and gofast includes.
145 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
146 (SDB_DEBUGGING_INFO): Undefine.
147 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
148 (PUT_SDB_SIZE): Remove.
149 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
150 (STARTFILE_SPEC): Add isa3264 define.
151 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
152 * config/mips/ecoff.h: Remove. and here...
153 * config/mips/iris3.h: and here...
154 * config/mips/sni-svr4.h: and here...
155 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
156 Add assembler -mmdebug options for non-dwarf debugging.
157 * config/mips/r3900.h: Remove debug info defines.
158 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
159 * config/mips/isa3264.h: Ditto.
160 * config/mips/t-isa3264: Fix up for file removal and gofast configure
161 change.
162 * config/mips/t-elf: Ditto.
163 * config/mips/t-ecoff: Ditto.
164 * config/mips/t-r3900: Ditto.
165 * config/mips/t-iris5-6: Ditto.
166 * config/mips/t-isa3264: Ditto.
167 * config/mips/t-linux: Remove.
168 * config/mips/t-netbsd: Remove.
169 * config/mips/t-mips: New file.
170 * config/mips/t-gofast: Ditto.
171 * config/mips/netbsd.h: Remove unnecessary undefines.
172 * config/mips/linux.h: Remove #include of mips.h.
173 * config.gcc: Add mips.h include for elf targets. Remove tm_file
174 for ecoff. Add gofast configure option for mips.
175
176 2002-07-29 Chris Demetriou <cgd@broadcom.com>
177
178 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
179 linker scripts use STARTUP directives consistently.
180 * configure: Regenerate.
181 * config.in: Regenerate.
182 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
183 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
184 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
185 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
186 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
187 will be the same.
188
189 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
190
191 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
192
193 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
194
195 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
196
197 2002-07-29 Aldy Hernandez <aldy@quesejoda.com>
198
199 * config/rs6000/rs6000.md: Move altivec patterns from here...
200
201 * config/rs6000/altivec.md: ...to here.
202
203 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
204
205 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
206
207 2002-07-29 Richard Henderson <rth@redhat.com>
208
209 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
210 set_mem_attributes and add BITPOS argument. Subtract it from
211 OFFSET when same is adjusted.
212 (set_mem_attributes): New wrapper function.
213 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
214 remove offset adjustment hack.
215 * expr.h (set_mem_attributes_minus_bitpos): Declare.
216
217 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
218
219 * Makefile.in (C_OBJS): Include c-pretty-print.o
220 (c-pretty-print.o): Add depency rule.
221 * pretty-print.h: Add more macros.
222 * c-pretty-print.c: New file.
223 * c-pretty-print.h: Likewise.
224
225 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
226
227 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
228 constants to __ev64_s32__.
229 (__internal_ev_mwhgsmian): Same.
230 (__internal_ev_mwhgsmfan): Same.
231 (__internal_ev_mwhgssfan): Same.
232 (__internal_ev_mwhgumiaa): Same.
233 (__internal_ev_mwhgsmiaa): Same.
234 (__internal_ev_mwhgsmfaa): Same.
235 (__internal_ev_mwhgssfaa): Same.
236
237 2002-07-29 David Edelsohn <edelsohn@gnu.org>
238
239 * varasm.c (assemble_variable): Narrow test for uninitialized
240 without BSS target support.
241
242 2002-07-29 Nathan Sidwell <nathan@codesourcery.com>
243
244 * profile.c: Add file comment describing the overall algorithm and
245 structures.
246 (struct edge_info): Add comments.
247 (struct bb_info): Add comments.
248 * basic-block.h (EDGE_*): Add comments.
249 * doc/gcov.texi (Gcov Data Files): Document bit flags.
250
251 2002-07-29 Bob Wilson <bob.wilson@acm.org>
252
253 * config/xtensa/elf.h, config/xtensa/linux.h
254 (TARGET_OS_CPP_BUILTINS): Define.
255 (CPP_PREDEFINES): Remove.
256 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
257 (CPP_SPEC): Remove.
258
259 2002-07-29 Zack Weinberg <zack@codesourcery.com>
260
261 * gensupport.c: Include hashtab.h.
262 (insn_elision, condition_table, hash_c_test, cmp_c_test,
263 maybe_eval_c_test): New routines and data structures to
264 support insn elision.
265 (init_md_reader): Read and initialize the condition_table.
266 (read_md_rtx): Discard insn patterns whose C test is provably
267 always false.
268 * gensupport.h: Declare new functions and data structures.
269
270 * genconditions.c, dummy-conditions.c: New files.
271 * Makefile.in: Build genconditions; run it to construct
272 insn-conditions.c; build that and link it into most gen*
273 programs.
274 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
275 (GEN): Delete, unused.
276 (STAGESTUFF): Update.
277
278 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
279 CODE_FOR_nothing for all elided patterns.
280 (main): Tweaked to support this.
281 * genflags.c (gen_proto): Emit a static inline generator
282 function here for all elided patterns, which simply returns
283 NULL_RTX.
284 (gen_insn): Do not define HAVE_xxx for elided patterns.
285 (main): Tweaked to support this. No need to forward-declare
286 struct rtx_def.
287 * genrecog.c: Do not bother emitting the C test if it's known
288 to be true at compile time.
289
290 2002-07-29 Mike Stump <mrs@apple.com>
291
292 * config.gcc (target_gtfiles): Initialize, as otherwise cross
293 compilers hosted on powerpc-apple-darwin6.0 won't even build.
294
295 2002-07-29 Richard Earnshaw <rearnsha@arm.com>
296
297 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
298 remove clobber of LR.
299 (sibcall_insn, sibcall_value_insn): Update accordingly.
300 (sibcall_epilogue): Remove debugging comment from assembler stream.
301
302 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
303
304 * pretty-print.h: Define more macros.
305 * diagnostic.h (output_formatted_integer): Moved from...
306 * diagnostic.c: ... here.
307
308 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
309
310 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
311
312 2002-07-28 Zack Weinberg <zack@codesourcery.com>
313
314 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
315 arguments. Always use ".-symbol" as expression argument.
316 * doc/tm.texi: Update to match. Document requirement for
317 ".size symbol, .-symbol" to be acceptable to assembler.
318
319 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
320 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
321 config/i386/freebsd-aout.h, config/i386/sco5.h,
322 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
323 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
324
325 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
326
327 * Makefile.in (gengtype-lex.c): Fix error in last change.
328
329 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
330 backslash.
331
332 * Makefile.in (vmsdbgout.o): Depend on function.h.
333
334 * vmsdbgout.c: Include function.h.
335
336 2002-07-28 Alan Modra <amodra@bigpond.net.au>
337
338 * prefix.c (update_path): Don't strip single `.' path components
339 unless stripping a later `..' component. Exit loop as soon as
340 a valid path is found.
341
342 2002-07-27 Roger Sayle <roger@eyesopen.com>
343
344 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
345 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
346 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
347 floating point unordered comparisons (e.g. __builtin_isgreater)
348 as const, and leave the remaining GCC_BUILTINs unchanged.
349
350 * c-decl.c (builtin_function): No need to explicitly mark
351 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
352
353 2002-07-27 Roger Sayle <roger@eyesopen.com>
354
355 * Makefile.in: rtlanal.o now depends upon real.h.
356
357 * flags.h [flag_signaling_nans]: New flag.
358 [HONOR_SNANS]: New macro.
359
360 * toplev.c [flag_signaling_nans]: Initialize to false.
361 (f_options): Add processing for "-fsignaling-nans".
362 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
363 (process_options): flag_signaling_nans implies flag_trapping_math.
364
365 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
366 when -fsignaling-nans. First step to implementing WG14's N965.
367
368 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
369 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
370 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
371
372 * simplify-rtx.c (simplify_relational_operation): Conditionalize
373 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
374
375 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
376 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
377 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
378 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
379 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
380
381 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
382
383 2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
384
385 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
386 * gengtype-lex.l (YY_USE_PROTOS): Undef.
387 (YY_DECL): Define.
388
389 2002-07-27 Roger Sayle <roger@eyesopen.com>
390
391 * doc/invoke.texi: Document that both -fno-builtin-foo and
392 -fno-builtin are supported by the g++ front-end.
393
394 2002-07-27 Stan Shebs <shebs@apple.com>
395
396 * configure.in: Rename config_gtfiles to target_gtfiles.
397 * configure: Regenerate.
398 * doc/gty.texi: Update reference.
399 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
400 instead of appending to it.
401
402 2002-07-25 Aldy Hernandez <aldyh@redhat.com>
403
404 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
405 vectors are split into two registers.
406 (function_arg): Same.
407
408 Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
409
410 * pa.md (extv): Check predicates before emitting extv_32.
411
412 2002-07-27 Alan Modra <amodra@bigpond.net.au>
413
414 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
415 (rs6000_traceback): New var.
416 (rs6000_override_options): Set rs6000_traceback.
417 (rs6000_output_function_epilogue): Implement traceback options.
418 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
419 (rs6000_traceback_name): Declare.
420
421 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
422 label reference when NO_PROFILE_COUNTERS.
423
424 2002-07-26 Jason Merrill <jason@redhat.com>
425
426 * function.c (assign_parms): Handle frontend-directed pass by
427 invisible reference.
428
429 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
430
431 * doc/cppopts.texi: Update.
432
433 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
434
435 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
436 warnings on assertions.
437
438 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
439
440 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
441 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
442 RID_COMPL): Remove.
443 * c-parse.in (rid_to_yy): Similarly.
444
445 2002-07-26 Jason Merrill <jason@redhat.com>
446
447 * c-dump.c: Resurrect.
448 * tree-dump.c: Move C-specific stuff to c-dump.c.
449 * c-common.h: Declare c_dump_tree.
450 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
451 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
452 (c-dump.o): New rule.
453
454 2002-07-26 Alan Modra <amodra@bigpond.net.au>
455
456 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
457 PowerPC64. Replace "T" and "S" constraints with "n" when the
458 predicate will do. Formatting fixes.
459 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
460 as for extzvsi_internal1.
461
462 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
463
464 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
465 DERIV_END_LABEL_FMT): Remove.
466 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
467
468 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
469
470 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
471 Remove.
472
473 2002-07-25 Stan Shebs <shebs@apple.com>
474
475 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
476 local var dwarfp.
477 (output_compiler_stub): Remove unused locals.
478 (output_call): Always initialize line number.
479
480 Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
481
482 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
483 * sh.md (truncdiqi2, movqi_media): Likewise.
484
485 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
486
487 * gcse.c (obstack_chunk_alloc): Remove.
488 (gcse_alloc): Fix to count allocated bytes.
489 * collect2.c (SYMBOL__MAIN): Remove.
490
491 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
492
493 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
494 HAVE_TARGET_EXECUTABLE_SUFFIX.
495
496 Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
497
498 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
499 SIZE, EXPR and OFFSET.
500
501 2002-07-25 Richard Henderson <rth@redhat.com>
502
503 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
504 in ARRAY_REF of DECL_P case.
505
506 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
507
508 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
509 description. Document -mips32, -mips64, and the associated -march
510 values. Describe the "mipsN" arguments to -march. Say that the
511 -mipsN options are equivalent to -march. Reword the description
512 of default type sizes.
513 * toplev.h (target_flags_explicit): Declare.
514 * toplev.c (target_flags_explicit): New var.
515 (set_target_switch): Update target_flags_explicit.
516 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
517 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
518 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
519 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
520 * config/mips/mips.h (mips_cpu_info): New struct.
521 (mips_cpu_string, mips_explicit_type_size_string): Remove.
522 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
523 (MIPS_CPP_SET_PROCESSOR): New macro.
524 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
525 Define _MIPS_ARCH and _MIPS_TUNE.
526 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
527 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
528 MIPS_ISA_DEFAULT were already defined.
529 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
530 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
531 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
532 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
533 (ABI_GAS_ASM_SPEC): Remove.
534 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
535 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
536 Invoke %(asm_abi_default_spec) if no ABI was specified.
537 (CC1_SPEC): Remove ISA -> register-size rules.
538 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
539 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
540 (mips_cpu_string, mips_explicit_type_size_string): Remove.
541 (mips_cpu_info_table): New array.
542 (mips_set_architecture, mips_set_tune): New fns.
543 (override_options): Rework to make -mipsN equivalent to -march.
544 Detect more erroneous cases, including those removed from CC1_SPEC.
545 Don't change the ABI based on architecture, or vice versa.
546 Unify logic with GAS.
547 (mips_asm_file_start): Get architecture name from mips_arch_info.
548 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
549 (mips_parse_cpu): Take the name of the option as argument. Handle
550 'from-abi'. Raise an error if the option is wrong.
551 (mips_cpu_info_from_isa): New fn.
552
553 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
554
555 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
556 (tablejump_mips162): Likewise.
557
558 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
559
560 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
561 int_mode_for_mode.
562
563 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
564
565 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
566 complaining.
567 * c-common.h (c_sizeof): Adjust definition.
568 (c_alignof): Likewise.
569 * c-tree.h (c_sizeof_nowarn): Now macro.
570 * c-typeck.c (c_sizeof_nowarn): Remove definition.
571
572 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
573
574 * c-decl.c (c_decode_option): No need to handle switches
575 cpplib handles.
576
577 2002-07-24 Zack Weinberg <zack@codesourcery.com>
578
579 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
580 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
581 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
582 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
583
584 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
585 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
586 config/cris/aout.h, config/i386/freebsd-aout.h,
587 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
588 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
589 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
590 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
591 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
592 config/xtensa/elf.h, config/xtensa/linux.h:
593 Use the new macros.
594 Where possible, remove redundant definitions of SIZE_ASM_OP,
595 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
596
597 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
598
599 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
600 TARGET_ISEL, and TARGET_FPRS.
601
602 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
603 -mabi=spe, -mabi=no-spe, and -misel=.
604
605 * config/rs6000/rs6000-protos.h: Add output_isel.
606 Move vrsave_operation prototype here.
607
608 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
609 (smaxsi3): Same.
610 (uminsi3): Same.
611 (umaxsi3): Same.
612 (abssi2_nopower): Disallow when TARGET_ISEL.
613 (*ne0): Same.
614 (negsf2): Change to expand and rename old pattern to *negsf2.
615 (abssf2): Change to expand and rename old pattern to *abssf2.
616
617 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
618 fixunssfsi2.
619
620 Change patterns that check for TARGET_HARD_FLOAT or
621 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
622
623 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
624 rs6000_isel, rs6000_fprs, rs6000_isel_string.
625 (rs6000_override_options): Add 8540 case to
626 processor_target_table.
627 Set rs6000_isel for the 8540.
628 Call rs6000_parse_isel_option.
629 (enable_mask_for_builtins): New.
630 (rs6000_parse_isel_option): New.
631 (rs6000_parse_abi_options): Add spe and no-spe.
632 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
633 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
634 for TARGET_HARD_FLOAT.
635 Add case for SPE_VECTOR_MODE.
636 (rs6000_legitimize_reload_address): Handle SPE vector modes.
637 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
638 vector modes.
639 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
640 (rs6000_emit_move): Check for TARGET_FPRS.
641 Add cases for SPE vector modes.
642 (function_arg_boundary): Return 64 for SPE vector modes.
643 (function_arg_advance): Check for TARGET_FPRS and
644 Handle SPE vectors.
645 (function_arg): Same.
646 (setup_incoming_varargs): Check for TARGET_FPRS.
647 (rs6000_va_arg): Same.
648 (struct builtin_description): Un-constify mask field. Move up in
649 file.
650 (bdesc_2arg): Un-constify and add SPE builtins.
651 (bdesc_1arg): Same.
652 (bdesc_spe_predicates): New.
653 (bdesc_spe_evsel): New.
654 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
655 (rs6000_expand_binop_builtin): Same.
656 (bdesc_2arg_spe): New.
657 (spe_expand_builtin): New.
658 (spe_expand_predicate_builtin): New.
659 (spe_expand_evsel_builtin): New.
660 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
661 (rs6000_init_builtins): Initialize SPE builtins. Call
662 rs6000_common_init_builtins.
663 (altivec_init_builtins): Move all non-altivec builtin code to...
664 (rs6000_common_init_builtins): ...here. New function.
665 (branch_positive_comparison_operator): Allow NE code for SPE.
666 (ccr_bit): Return correct ccr bit for SPE fp.
667 (print_operand): Emit crnor in 'D' case for SPE.
668 New case 't'.
669 Add SPE code for 'y' case.
670 (rs6000_generate_compare): Generate rtl for SPE fp.
671 (output_cbranch): Handle SPE hard floats.
672 (rs6000_emit_cmove): Handle isel.
673 (rs6000_emit_int_cmove): New.
674 (output_isel): New.
675 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
676 64-bits for SPE.
677 (debug_stack_info): Add SPE info.
678 (gen_frame_mem_offset): New.
679 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
680 Change mode of frame pointer, when saving it, to Pmode.
681 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
682 Misc cleanups and use gen_frame_mem_offset when appropriate.
683
684 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
685 (TARGET_SPE_ABI): New.
686 (TARGET_SPE): New.
687 (TARGET_ISEL): New.
688 (TARGET_FPRS): New.
689 (FIXED_SCRATCH): New.
690 (RTX_COSTS): Add PROCESSOR_PPC8540.
691 (ASM_CPU_SPEC): Add case for 8540.
692 (TARGET_OPTIONS): Add isel= case.
693 (rs6000_spe_abi): New.
694 (rs6000_isel): New.
695 (rs6000_fprs): New.
696 (rs6000_isel_string): New.
697 (UNITS_PER_SPE_WORD): New.
698 (LOCAL_ALIGNMENT): Adjust for SPE.
699 (HARD_REGNO_MODE_OK): Same.
700 (DATA_ALIGNMENT): Same.
701 (MEMBER_TYPE_FORCES_BLK): New.
702 (FIRST_PSEUDO_REGISTER): Set to 113.
703 (FIXED_REGISTERS): Add SPE registers.
704 (reg_class): Same.
705 (REG_CLASS_NAMES): Same.
706 (REG_CLASS_CONTENTS): Same.
707 (REGNO_REG_CLASS): Same.
708 (REGISTER_NAMES): Same.
709 (DEBUG_REGISTER_NAMES): Same.
710 (ADDITIONAL_REGISTER_NAMES): Same.
711 (CALL_USED_REGISTERS): Same.
712 (CALL_REALLY_USED_REGISTERS): Same.
713 (SPE_ACC_REGNO): New.
714 (SPEFSCR_REGNO): New.
715 (SPE_SIMD_REGNO_P): New.
716 (HARD_REGNO_NREGS): Adjust for SPE.
717 (VECTOR_MODE_SUPPORTED_P): Same.
718 (REGNO_REG_CLASS): Same.
719 (FUNCTION_VALUE): Same.
720 (LIBCALL_VALUE): Same.
721 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
722 (SPE_VECTOR_MODE): New.
723 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
724 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
725 (rs6000_stack): Add spe_gp_size, spe_padding_size,
726 spe_gp_save_offset.
727 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
728 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
729 (SPE_CONST_OFFSET_OK): New.
730 (rs6000_builtins): Add SPE builtins.
731
732 * testsuite/gcc.dg/ppc-spe.c: New.
733
734 * config/rs6000/eabispe.h: New.
735
736 * config/rs6000/spe.h: New.
737
738 * config/rs600/spe.md: New.
739
740 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
741 __SIMD__ for TARGET_SPE.
742
743 * config.gcc: Add powerpc-*-eabispe* case.
744 Add spe.h to user headers for powerpc.
745
746 2002-07-24 Chris Demetriou <cgd@broadcom.com>
747
748 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
749 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
750 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
751
752 2002-07-24 Richard Henderson <rth@redhat.com>
753
754 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
755 form when not optimizing.
756
757 2002-07-24 David Mosberger <davidm@hpl.hp.com>
758
759 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
760 thread_pointer_rtx as unchanging.
761
762 2002-07-24 Michael Matz <matz@suse.de>
763
764 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
765 (free_reg): Use it.
766
767 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
768
769 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
770 pattern.
771 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
772 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
773
774 2002-07-24 Chris Demetriou <cgd@broadcom.com>
775
776 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
777 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
778 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
779
780 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
781
782 * toplev.c (rest_of_compilation): Dump loops before clobbering
783 the structure.
784
785 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
786
787 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
788
789 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
790
791 PR optimization/7291
792 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
793 problem on x86_64.
794
795 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
796
797 * pretty-print.h: Add macros from cp/error.c
798
799 2002-07-24 Alan Modra <amodra@bigpond.net.au>
800
801 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
802 (mask64_2_operand): Declare.
803 (build_mask64_2_operands): Declare.
804 (and64_2_operand): Declare.
805 (extract_MB): Declare.
806 (extract_ME): Declare.
807 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
808 CONST_DOUBLE code.
809 (mask_operand_wrap): New insn predicate.
810 (mask64_2_operand): Likewise.
811 (and64_2_operand): Likewise.
812 (build_mask64_2_operands): New function.
813 (extract_MB): New function.
814 (extract_ME): New function.
815 (print_operand <case m,M>): Use extract_MB and extract_ME.
816 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
817 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
818 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
819 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
820 * config/rs6000/rs6000.md (andsi3_internal3): New
821 (andsi3_internal3+1): Enable split for powerpc64.
822 (andsi3_internal3+2): New split.
823 (andsi3_internal4): Renamed old andsi3_internal3.
824 (andsi3_internal5): New.
825 (andsi3_internal5+1): Enable split for powerpc64.
826 (andsi3_internal5+2): New split.
827 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
828 (anddi3): Handle 't' constraint.
829 (anddi3+1): New split.
830 (anddi3_internal2): Handle 't' constraint.
831 (anddi3_internal2+1): New split.
832 (anddi3_internal3): Handle 't' constraint.
833 (anddi3_internal3+1): New split.
834
835 2002-07-24 Alan Modra <amodra@bigpond.net.au>
836
837 * config/rs6000/rs6000.md: Remove scratch reg on insns using
838 addze and similar (plus (comparison r1 r2) r3) insns. Add
839 missing scratch reg in one case. Formatting fixes.
840
841 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
842
843 * cppexp.c (parse_defined): Mark macro used.
844 * cpphash.h (struct cpp_macro): New member "used".
845 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
846 (struct cpp_reader): New member.
847 * cppinit.c (cpp_finish_options): Set first_unused_line.
848 (cpp_finish): Warn of unused macros if requested.
849 (OPT_TABLE): New switches.
850 (cpp_handle_option): Handle them.
851 * cpplib.c (do_undef): Warn if macro unused.
852 (do_ifdef, do_ifndef): Mark macro used.
853 * cpplib.h (struct cpp_options): New member.
854 * cppmacro.c (_cpp_warn_if_unused_macro): New.
855 (enter_macro_context): Mark macro used.
856 (_cpp_create_definition): Mark macro unused; warn if unused
857 when redefined.
858 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
859 Mark macros used.
860 * doc/cppopts.texi: Update.
861
862 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
863
864 * dwarf2out.c (SECTION_ASM_OP,
865 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
866 * system.h (SECTION_ASM_OP): Poison.
867 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
868 * config/alpha/alpha-interix.h, config/mips/linux.h
869 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
870 * config/mmix/mmix-protos.h, config/mmix/mmix.c
871 (mmix_asm_output_define_label_difference_symbol): Remove.
872 * config/mmix/mmix.h
873 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
874 * doc/tm.texi: Remove documentation.
875
876 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
877
878 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
879 (constrain_operands): Likewise.
880 * regclass.c (record_reg_classes): Likewise.
881 * reload.c (find_reloads): Likewise.
882 * doc/md.texi: Likewise.
883
884 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
885 * simplify-rtx.c (simplify_subreg): When converting to a non-int
886 mode, try to convert to an integer mode of matching size first.
887
888 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
889 from individual subregs, check that each subreg has been generated
890 sucessfully.
891
892 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
893
894 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
895 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
896 FOR_EACH_BB_IN_SBITMAP): Remove.
897 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
898 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
899 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
900 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
901 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
902 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
903
904 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
905
906 * pretty-print.h: New file.
907
908 2002-07-23 Paul Koning <pkoning@equallogic.com>
909
910 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
911 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
912 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
913 (TARGET_G_FLOAT): Default to 0 if not defined.
914 (ieeetoe): New, common routine to convert target format floats
915 to internal form.
916 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
917 vs. others.
918 (e113toe): Change to use ieeetoe.
919
920 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
921
922 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
923 IBM.
924 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
925 (e64toe): Remove special cases for DEC and IBM. Remove support for
926 ARM_EXTENDED_IEEE_FORMAT.
927 (e24toe): Remove special cases for DEC.
928 (significand_size): Simplify. Indent.
929 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
930 (etoieee, toieee): New.
931 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
932 etoieee and toieee for IEEE arithmetic.
933
934 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
935
936 * doc/extend.texi: Say ISO C90, not ISO C89.
937 * doc/invoke.texi: Likewise.
938 * doc/standards.texi: Likewise.
939
940 2002-07-23 Steve Ellcey <sje@cup.hp.com>
941
942 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
943 Fix permutation of conversion and plus/mult.
944 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
945 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
946 (expand_builtin_strncpy) Ditto.
947 (expand_builtin_memset) Ditto.
948
949 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
950
951 Fix PR/7363:
952 * c-common.c (c_sizeof_or_alignof_type): New function.
953 (c_alignof): Remove definition.
954 * c-common.h (c_sizeof, c_alignof): Define as macros.
955 (c_sizeof_or_alignof_type): Declare.
956 (my_friendly_assert): Moved from cp/cp-tree.h
957 * c-typeck.c (c_sizeof): Remove definition.
958
959 2002-07-23 Jan Hubicka <jh@suse.cz>
960
961 * gcse.c (try_replace_reg): Use num_changes_pending.
962 * recog.c (num_changes_pending): New function.
963 (validate_replace_src): Use validate_repalce_src_group.
964 (validate_replace_src_group): New.
965 * recog.h (validate_repalce_src_group): New.
966 (num_changes_pending): Likewise.
967
968 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
969
970 * calls.c (emit_library_call_value_1): If
971 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
972 libcall, const call nor pure call.
973
974 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
975
976 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
977
978 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
979
980 * vmsdbgout.c (SECTION_ASM_OP): Remove.
981
982 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
983
984 * config/i386/i386.c (AT_BP): Remove.
985
986 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
987
988 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
989 Default definition.
990 * gcse.c: Don't define obstack_chunk_free.
991 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
992 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
993 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
994 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
995 Don't define obstack macros.
996
997 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
998
999 PR target/6744
1000 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
1001 ASM_OPERANDS instructions.
1002
1003 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
1004
1005 PR target/7361
1006 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
1007 constant addresses only on 68HC12.
1008
1009 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
1010
1011 * cppfiles.c (stack_include_file): Correct test of whether
1012 a dependency should be output.
1013
1014 2002-07-22 David Edelsohn <edelsohn@gnu.org>
1015
1016 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
1017
1018 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
1019
1020 * arm.md (movqi): If optimizing and we can create pseudos, use
1021 a ZERO_EXTEND to load from memory, then copy the result into the
1022 target.
1023 (movhi): Likewise, but only for ARMv4.
1024
1025 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
1026
1027 * ssa-ccp.c (PHI_PARMS): Remove.
1028
1029 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
1030
1031 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
1032 on big-endian targets.
1033
1034 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1035
1036 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
1037 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
1038 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
1039 New formatting macros.
1040
1041 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
1042
1043 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
1044
1045 * rtlanal.c (subreg_regno_offset): Return correct offset for
1046 big endian paradoxical subregs.
1047
1048 * optabs.c (expand_vector_unop): Don't expand using sub_optab
1049 if we got the wrong mode.
1050
1051 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
1052 * genrecog.c (write_switch, write_cond): Use it.
1053 * genemit.c (gen_exp): Likewise.
1054
1055 2002-07-22 Jakub Jelinek <jakub@redhat.com>
1056
1057 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
1058
1059 2002-07-22 Jakub Jelinek <jakub@redhat.com>
1060
1061 * c-decl.c (build_compound_literal): Defer compound literal decls
1062 until until file end to emit them only if they are actually used.
1063
1064 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1065
1066 * ra-build.c (check_conflict_numbers): Hide unused function.
1067 (livethrough_conflicts_bb): Avoid automatic aggregate
1068 initialization.
1069 (parts_to_webs_1): Avoid `U' integer constant modifier.
1070 (conflicts_between_webs): Wrap a variable in the macro controlling
1071 its usage.
1072 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
1073 (dump_igraph, dump_graph_cost): Avoid string concatenation
1074 (dump_static_insn_cost): Avoid automatic aggregate
1075 initialization.
1076 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
1077 initialization.
1078 (dump_cost): Avoid string concatenation
1079
1080 2002-07-21 Richard Henderson <rth@redhat.com>
1081
1082 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
1083 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
1084
1085 2002-07-21 Richard Henderson <rth@redhat.com>
1086
1087 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
1088 that are not unrolled completely.
1089
1090 2002-07-21 Richard Henderson <rth@redhat.com>
1091
1092 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
1093 * loop.c (strength_reduce): Update.
1094 * toplev.c (rest_of_compilation): Do unrolling in the first
1095 loop pass, not the second.
1096
1097 2002-07-21 Richard Henderson <rth@redhat.com>
1098
1099 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
1100 when flag_argument_noalias == 2.
1101 * alias.c (nonoverlapping_memrefs_p): Handle that.
1102 * print-rtl.c (print_mem_expr): Likewise.
1103
1104 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
1105
1106 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
1107 instead of __negdi2 directly.
1108
1109 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
1110
1111 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
1112 * function.c (SYMBOL__MAIN): Remove definition.
1113 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
1114 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
1115 * profile.c (GCOV_INDEX_TO_BB): Remove.
1116 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
1117 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
1118
1119 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
1120
1121 * c-lex.c (GET_ENVIRONMENT): Remove.
1122 * collect2.c (GET_ENV_PATH_LIST): Remove.
1123 (prefix_from_env): Use GET_ENVIRONMENT.
1124 * cppinit.c (GET_ENV_PATH_LIST): Remove.
1125 (init_standard_includes): Use GET_ENVIRONMENT.
1126 * defaults.h (GET_ENVIRONMENT): Define here if not already.
1127 * gcc.c (GET_ENV_PATH_LIST): Remove.
1128 (make_relative_prefix, process_command): Update.
1129 * protoize.c (GET_ENV_PATH_LIST): Remove.
1130 (do_processing): Update.
1131
1132 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
1133
1134 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
1135 (grokdeclarator): Likewise.
1136 * c-format.c (C_STD_NAME): Likewise.
1137 * c-lex.c (interpret_integer): Likewise.
1138 * c-typeck.c (build_array_ref): Likewise.
1139 * cpplex.c (_cpp_lex_direct): Likewise.
1140 * toplev.c (documented_lang_options): Likewise.
1141
1142 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
1143
1144 * c-format.c (T99_I, T99_UI): Remove.
1145
1146 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
1147
1148 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
1149
1150 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1151
1152 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
1153 do_local_cprop.
1154
1155 2002-07-21 Andreas Jaeger <aj@suse.de>
1156
1157 * reload1.c (fixup_abnormal_edges): Remove unused variable.
1158
1159 2002-07-21 Bernd Schmidt <bernds@redhat.com>
1160
1161 Improvements for the ifcvt pass from Michael Meissner, with patches
1162 by Richard Sandiford <rsandifo@redhat.com>
1163 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
1164 * ifcvt.c (cond_exec_changed_p): New static variable.
1165 (last_active_insn): New function, renamed from last_active_insn_p
1166 and changed to return the last active insn in a basic block. All
1167 callers updated.
1168 (block_fallthru): New function.
1169 (cond_exec_process_insns): New argument CE_INFO. Pass it to
1170 IFCVT_MODIFY_INSN. All callers updated.
1171 Return false if START or END are NULL.
1172 Handle case where we're processing an insn that is already
1173 conditional.
1174
1175 (noce_process_if_block): CE_INFO argument rather than
1176 multiple args containing the involved basic blocks. All callers
1177 changed.
1178 (process_if_block, merge_if_block, find_if_block,
1179 cond_exec_process_if_block): Likewise.
1180
1181 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
1182 changed.
1183 Use new function last_active_insn to simplify some code.
1184 New code to handle multiple tests.
1185 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
1186 cond_exec_changed_p to TRUE.
1187
1188 (process_if_block): New code to handle multiple tests.
1189 (merge_if_block): Likewise.
1190 (find_if_header): New arg PASS. Changed to return the currently
1191 processed basic block or NULL instead of true/false. All callers
1192 changed.
1193 Call IFCVT_INIT_EXTRA_FIELDS.
1194 (block_jumps_and_fallthru_p): New function.
1195 (find_if_block): Discover opportunities to convert multiple tests.
1196 Add additional debugging output.
1197 Update the ce_info structure before returning.
1198
1199 (if_convert): Run multiple passes of if-conversion.
1200 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
1201 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
1202 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
1203 these macros.
1204
1205 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1206
1207 * gcse.c: Include cselib.h
1208 (constptop_register): Break out from ...
1209 (cprop_insn): ... here; kill basic_block argument.
1210 (do_local_cprop, local_cprop_pass): New functions.
1211 (one_cprop_pass): Call local_cprop_pass.
1212
1213 2002-07-20 Roger Sayle <roger@eyesopen.com>
1214
1215 * simplify-rtx.c (simplify_relational_operation): Optimize
1216 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
1217
1218 2002-07-20 Michae Matz <matz@suse.de>
1219
1220 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
1221
1222 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
1223
1224 * cppexp.c (struct op): Add token pointer.
1225 (check_promotion, CHECK_PROMOTION): New.
1226 (optab): Update.
1227 (_cpp_parse_expr): Update, use token pointer of struct op.
1228 (reduce): Warn about change of sign owing to promotion.
1229 * cppinit.c (cpp_handle_option): New warning if -Wall.
1230 * cpplib.h (struct cpp_options): New member.
1231
1232 2002-07-19 David Edelsohn <edelsohn@gnu.org>
1233
1234 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
1235 fpu list. Separate Power4 compare and delayed_compare. Correct
1236 Power4 fpcompare.
1237 (fix_truncdfsi2_internal): Restore FPR preference.
1238 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
1239 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
1240
1241 2002-07-19 Momchil Velikov <velco@fadata.bg>
1242
1243 * reload1.c (reload_as_needed): Duplicate oldpat.
1244
1245 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1246
1247 PR optimization/7130
1248 * loop.h (struct loop_info): Add "preconditioned".
1249 * unroll.c (unroll_loop): Set it.
1250 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
1251
1252 2002-07-19 Zack Weinberg <zack@codesourcery.com>
1253
1254 * rtl.def (CODE_LABEL): Remove slot 8.
1255 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
1256 (LABEL_ALTERNATE_NAME): Delete.
1257 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
1258 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
1259
1260 * final.c (output_alternate_entry_point): New.
1261 (final_scan_insn): Use it instead of
1262 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
1263 of a case label being an alternate entry point.
1264
1265 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
1266 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
1267 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
1268 (field deleted).
1269 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
1270
1271 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
1272 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
1273 * doc/tm.texi: Delete documentation of
1274 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
1275
1276 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1277
1278 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
1279 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
1280 (LINK_SPEC): Define.
1281 (STARTFILE_SPEC): Define.
1282 (ENDFILE_SPEC): Define.
1283
1284 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
1285 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
1286
1287 * config/mips/iris6-o32-gas.h: New file.
1288 * config.gcc (mips-sgi-irix6*o32): Use it.
1289
1290 * config/mips/t-iris5-gas: New file.
1291 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1292
1293 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
1294
1295 * cppexp.c (ALWAYS_EVAL): Remove.
1296 (optab, reduce): Always evaluate.
1297 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
1298 only if not skipping evaluation.
1299
1300 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1301
1302 * config/avr/avr.c (debug_hard_reg_set): Remove.
1303
1304 2002-07-19 Chris Demetriou <cgd@broadcom.com>
1305
1306 * gcc.c (cpp_options): Include "%1" (cc1_spec).
1307
1308 2002-07-19 Richard Henderson <rth@redhat.com>
1309
1310 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
1311
1312 2002-07-19 Alan Modra <amodra@bigpond.net.au>
1313
1314 * prefix.c (update_path): Don't zap single `.' path components
1315 unless followed by another `.' and fix typo last patch.
1316
1317 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
1318
1319 * cppexp.c (cpp_num_mul): Remove unused parameter.
1320 (UNARY, BINARY, OTHER, binary_handler): Remove.
1321 (ALWAYS_EVAL): New.
1322 (optab): Update.
1323 (reduce): Refactor to a large switch, don't use a function
1324 pointer.
1325
1326 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
1327
1328 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
1329
1330 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1331
1332 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
1333 (sh_expand_binop_v2sf): Likewise.
1334 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
1335 (int_gpr_dest, trunc_hi_operand): New functions.
1336 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
1337 trunc_hi_operand.
1338 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
1339 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
1340 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
1341 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
1342 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
1343 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
1344 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
1345 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
1346 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
1347 (movsf_ie+1): Likewise.
1348 (loaddi_trunc): Use int_gpr_dest predicate.
1349 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
1350 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
1351 (casesi_worker_0+[12], casesi_worker): Likewise.
1352 (shcompact_preserve_incoming_args): Likewise.
1353 (mov_nop): Use any_register_operand predicate.
1354 (mperm_w0): Use trunc_hi_operand predicate.
1355
1356 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
1357
1358 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
1359 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
1360 numbering.
1361
1362 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
1363
1364 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
1365
1366 2002-07-18 Richard Henderson <rth@redhat.com>
1367
1368 PR optimization/7147
1369 * ifcvt.c (noce_get_condition): Make certain that the condition
1370 is valid at JUMP.
1371
1372 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
1373
1374 * sh.c (barrier_align, push): Shut up compiler warnings.
1375 (initial_elimination_offset,sh_media_init_builtins): Likewise.
1376 (reg_no_subreg_operand): Delete.
1377
1378 2002-07-17 Bo Thorsen <bo@suse.de>
1379
1380 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
1381 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
1382 (STARTFILE_SPEC): Remove hardcoded library paths.
1383 (ENDFILE_SPEC): Likewise.
1384
1385 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
1386
1387 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
1388
1389 * gcse.c (try_replace_reg): Do not return false positives.
1390
1391 2002-07-18 Alan Modra <amodra@bigpond.net.au>
1392
1393 * prefix.c: (update_path): Strip ".." components when prior dir
1394 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
1395
1396 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
1397 (ASM_OUTPUT_REG_POP): Likewise.
1398
1399 2002-07-18 Alan Modra <amodra@bigpond.net.au>
1400
1401 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
1402 adjustments to first_reg for profiling case.
1403 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
1404 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
1405 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
1406 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
1407 (ASM_OUTPUT_REG_POP): Define.
1408 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
1409 (ASM_OUTPUT_REG_POP): Undef.
1410
1411 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
1412
1413 * cpplib.c (do_sccs): Handle #sccs on all systems.
1414 * system.h (SCCS_DIRECTIVE): Poison.
1415 * config/darwin.h, config/freebsd.h, config/netbsd.h,
1416 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
1417 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
1418 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
1419 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
1420 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
1421 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
1422 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
1423 Remove all references to SCCS_DIRECTIVE.
1424 * doc/cpp.texi, doc/tm.texi: Update.
1425
1426 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
1427
1428 * regrename.c (maybe_mode_change): New function.
1429 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
1430
1431 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
1432
1433 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
1434 suppress addition when either ct or cf are zero.
1435
1436 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
1437 Glen Nakamura <glen@imodulo.com>
1438
1439 PR optimization/6713
1440 * loop.c (loop_givs_rescan): Explicitly delete the insn that
1441 sets a non-replaceable giv after issuing the new one.
1442
1443 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
1444
1445 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
1446 eval_token): Clarify and correct use of "bool" variables.
1447 * cpplib.h (struct cpp_options): Similarly.
1448 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
1449 * cpptrad.c (recursive_macro): Similarly.
1450
1451 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
1452
1453 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
1454 SHmedia code.
1455
1456 * sh.md (cmpgtudi_media): Remove spurious @.
1457
1458 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
1459 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
1460
1461 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
1462 * sh-protos.h (sh_initialize_trampoline): Declare.
1463 * sh.c (sh_initialize_trampoline): New function.
1464 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
1465 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
1466 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
1467 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
1468 * sh.md (initialize_trampoline, double_shori): New patterns.
1469 (initialize_trampoline_compact): Likewise.
1470 (shmedia32_initialize_trampoline_big): Remove.
1471 (shmedia32_initialize_trampoline_little): Likewise.
1472
1473 * sh-protos.h (binary_float_operator): Remove declaration.
1474 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
1475 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
1476 (unary_float_operator, sh_expand_unop_v2sf): New functions.
1477 (sh_expand_binop_v2sf): Likewise.
1478 (zero_vec_operand): Delete.
1479 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
1480 all non-shared ones.
1481 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
1482 Enable nsb and byterev.
1483 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
1484 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
1485 in general regs.
1486 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
1487 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
1488 immediate operands.
1489 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
1490 Add DF_HI_REGS.
1491 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
1492 lowpart fp regs - only for big endian for now.
1493 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
1494 when FPU is in use.
1495 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
1496 (LOAD_EXTEND_OP): NIL for SImode.
1497 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
1498 general and fp registers is 4.
1499 PREDICATE_CODES: Amend binary_float_operator entry.
1500 Remove zero_vec_operand. Add unary_float_operator.
1501 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
1502 subreg SET_DEST.
1503 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
1504 (truncdiqi2): Do sign extension.
1505 (movsi_media, movdi_media): Allow to use r63 to an fp register.
1506 (movdf_media, movsf_media): Likewise.
1507 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
1508 Collapse to one define_insn_and_split. Allow immediate sources.
1509 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
1510 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
1511 (movv4sf): Allow immediate sources.
1512 (movsf_media_nofpu+1): Don't split moves to FP registers.
1513 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
1514 (movv8qi_i+3): Check against CONST0_RTX.
1515 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
1516 for input and output operands. Fix argument 3 to gen_mextr_rl.
1517 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
1518 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
1519 (mshf0_w, fipr, ftrv): Likewise.
1520 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
1521
1522 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1523
1524 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
1525 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
1526 * arm.c: Similarly.
1527
1528 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
1529
1530 * config/mips/mips-protos.h (mips_sign_extend): Declare.
1531 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
1532 (TARGET_SWITCHES): Remove debugh.
1533 (ISA_HAS_TRUNC_W): New macro.
1534 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
1535 (PREDICATE_CODES): Remove se_nonimmediate_operand.
1536 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
1537 any SImode move_operand.
1538 (se_nonimmediate_operand): Remove.
1539 (mips_sign_extend): New.
1540 (mips_move_2words): Use it for sign-extended source operands.
1541 (override_options): Allow integers to be put into single FPRs.
1542 (mips_secondary_reload_class): Handle integers in float registers.
1543 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
1544 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
1545 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
1546 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
1547 (fix_truncdfdi2): Provide only a single alternative, in which the
1548 integer is in a float register. Depend on TARGET_FLOAT64 rather
1549 than TARGET_64BIT.
1550 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
1551 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
1552 (movdi_internal2): Don't allow the source operand to be sign-extended.
1553 Add alternatives for float registers.
1554 (*movdi_internal2_extend): New. Version of movdi_internal2 that
1555 allows sign-extension.
1556 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
1557 (movsi_internal2): Rename to movsi_internal. Add alternatives for
1558 float registers. Remove TARGET_DEBUG_H_MODE test.
1559 (movhi_internal1): Rename to movhi_internal. Don't check
1560 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
1561 (movqi_internal1): Rename to movqi_internal and remove
1562 TARGET_DEBUG_H_MODE dependency.
1563 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
1564
1565 2002-07-16 Jim Wilson <wilson@redhat.com>
1566
1567 * toplev.c (lang_dependent_init): Create function context for
1568 init_expr_once.
1569
1570 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
1571
1572 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
1573 --gc-sections if -r.
1574 * config/cris/cris.h: Ditto.
1575
1576 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
1577
1578 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
1579 the comparison directly gives a mask suppress addition when cf is
1580 zero by complementing the mask.
1581
1582 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1583
1584 * Makefile.in: Delete references to enquire.
1585 * enquire.c: Move to contrib.
1586
1587 2002-07-16 Stan Shebs <shebs@apple.com>
1588
1589 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
1590 config/rs6000/darwin.h.
1591 (ASM_OUTPUT_SKIP): Ditto.
1592 (TEXT_SECTION_ASM_OP): Ditto.
1593 (DATA_SECTION_ASM_OP): Ditto.
1594 (ASM_APP_ON): Define.
1595 (ASM_APP_OFF): Define.
1596 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
1597 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
1598
1599 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
1600 (machopic_function_base_name): Declare result to be const.
1601 (machopic_non_lazy_ptr_name): Ditto.
1602 (machopic_stub_name): Ditto.
1603 * config/darwin-protos.h: Ditto for the prototypes.
1604
1605 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1606
1607 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
1608
1609 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1610
1611 * i386.md (prefetch): Fix for 64bit mode.
1612 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
1613
1614 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1615
1616 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
1617 * i386.c (x86_machine_dependent_reorg): New function.
1618 * i386-protos.h (x86_machine_dependent_reorg): Declare.
1619
1620 2002-07-16 Zack Weinberg <zack@codesourcery.com>
1621
1622 * builtins.c (std_expand_builtin_va_start): Remove unused
1623 first argument.
1624 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
1625 std_expand_builtin_va_start with just two arguments.
1626 * expr.h: Update prototypes.
1627
1628 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
1629 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
1630 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
1631 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
1632 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
1633 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
1634 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
1635 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
1636 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
1637 argument from all implementations of EXPAND_BUILTIN_VA_START
1638 and all uses of std_expand_builtin_va_start.
1639
1640 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
1641
1642 * regrename.c (copy_value): Don't record high part copies.
1643
1644 2002-07-16 Steve Ellcey <sje@cup.hp.com>
1645
1646 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
1647 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
1648 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
1649
1650 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1651
1652 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
1653
1654 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
1655 into addsi3 using register class "x" and "y".
1656
1657 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
1658 "earlyclobber" constraint modifier for some alternative.
1659
1660 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
1661 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
1662 unordered.
1663 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
1664
1665 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
1666 (TARGET_SWITCHES): Add -mieee-compare option.
1667 (OVERRIDE_OPTIONS): 32332 is a subset of
1668 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
1669 (TARGET_SWITCHES): Fix description of bitfield option.
1670 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
1671 -mieee-compare option. Remove 32332 flag.
1672
1673 2002-07-16 Steve Ellcey <sje@cup.hp.com>
1674
1675 * explow.c (convert_memory_address): Remove special handling
1676 when POINTERS_EXTEND_UNSIGNED < 0.
1677 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
1678 (movedi_symbolic): Fix typo.
1679 (load_fptr): Remove mode restriction so it works for SI and DI.
1680 (load_fptr_internal1): Ditto.
1681 (load_gprel): Ditto.
1682 (load_symptr_internal1): Ditto.
1683 (call_pic): Ditto.
1684 * config/ia64.c (call_operand): Modify mode check.
1685 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
1686 (ia64_expand_move): Ditto.
1687 (ia64_assemble_integer): Handle SImode function pointers.
1688 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
1689 (ia64_expand_op_and_fetch): Ditto.
1690 (ia64_expand_compare_and_swap): Ditto.
1691 (ia64_expand_lock_test_and_set): Ditto.
1692 (ia64_expand_lock_release): Ditto.
1693
1694 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1695
1696 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
1697
1698 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1699 Richard Earnshaw <rearnsha@arm.com>
1700
1701 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
1702 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
1703
1704 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
1705
1706 * arm.md (stack_tie): New insn. Use an idiom that the alias code
1707 understands to be a memory clobber.
1708 * arm.c (arm_expand_prologue): Use it.
1709
1710 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
1711
1712 * ra-rewrite.c: #include reload.h, insn-config.h
1713 * ra-build.c: #include reload.h
1714 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
1715 depend on reload.h, insn-config.h.
1716
1717 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1718
1719 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
1720 the same size as a word.
1721
1722 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
1723 BYTES_BIG_ENDIAN into account.
1724
1725 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1726
1727 * i386.md (prefetch): Fix for 64bit mode.
1728 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
1729
1730 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
1731
1732 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1733
1734 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
1735
1736 2002-07-15 Zack Weinberg <zack@codesourcery.com>
1737
1738 * ginclude/varargs.h: Replace with stub which issues #error.
1739 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
1740 __builtin_va_start.
1741
1742 * builtins.def (BUILT_IN_VARARGS_START): Delete.
1743 (BUILT_IN_VA_START): New.
1744 * builtins.c (expand_builtin_va_start): Eliminate first
1745 argument and code to implement pre-ISO varargs.
1746 (std_expand_builtin_va_start): Ignore first argument; it is
1747 always 1.
1748 (expand_builtin): Handle BUILT_IN_VA_START and
1749 BUILT_IN_STDARG_START identically. Delete
1750 BUILT_IN_VARARGS_START case.
1751
1752 * function.c (assign_parms): Delete hide_last_arg and all
1753 its uses.
1754 (mark_varargs): Delete function.
1755 * function.h (struct function): Delete 'varargs' bit.
1756 (current_function_varargs): Delete macro.
1757 * tree.h: Don't declare mark_varargs.
1758
1759 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
1760 (c_expand_body): Don't call mark_varargs.
1761 * c-objc-common.c: Handle BUILT_IN_VA_START and
1762 BUILT_IN_STDARG_START identically. Delete
1763 BUILT_IN_VARARGS_START case.
1764 * c-tree.h: Don't declare c_mark_varargs.
1765 * c-parse.in: Remove grammar rules for '&...' (which has been
1766 commented out since before 2.7.2) and for '...' in K+R
1767 argument declarations.
1768
1769 * builtins.c, function.c, integrate.c, sibcall.c,
1770 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
1771 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
1772 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
1773 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
1774 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
1775 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
1776 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
1777 config/stormy16/stormy16.c: Delete all references to
1778 current_function_varargs, and code predicated on that flag.
1779
1780 * config/alpha/alpha.c (alpha_va_start),
1781 config/arc/arc.c (arc_va_start),
1782 config/i386/i386.c (ix86_va_start),
1783 config/mips/mips.c (mips_va_start),
1784 config/mn10300/mn10300.c (mn10300_va_start),
1785 config/rs6000/rs6000.c (rs6000_va_start),
1786 config/s390/s390.c (s390_va_start),
1787 config/sh/sh.c (sh_va_start),
1788 Ignore first argument; it is always 1.
1789
1790 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
1791 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
1792 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
1793 Delete m68hc11_va_start.
1794 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
1795 No need to define EXPAND_BUILTIN_VA_START.
1796
1797 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
1798 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
1799
1800 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
1801
1802 PR optimization/7153
1803 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
1804 dies in more than one insn.
1805
1806 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
1807
1808 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
1809
1810 2002-07-15 Michael Matz <matz@suse.de>,
1811 Daniel Berlin <dberlin@dberlin.org>,
1812 Denis Chertykov <denisc@overta.ru>
1813
1814 Add a new register allocator.
1815
1816 * ra.c: New file.
1817 * ra.h: New file.
1818 * ra-build.c: New file.
1819 * ra-colorize.c: New file.
1820 * ra-debug.c: New file.
1821 * ra-rewrite.c: New file.
1822
1823 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
1824 (ra-rewrite.o): New .o files for libbackend.a.
1825 (GTFILES): Add basic-block.h.
1826
1827 * toplev.c (flag_new_regalloc): New.
1828 (f_options): New option "new-ra".
1829 (rest_of_compilation): Call initialize_uninitialized_subregs()
1830 only for the old allocator. If flag_new_regalloc is set, call
1831 new allocator, instead of local_alloc(), global_alloc() and
1832 friends.
1833
1834 * doc/invoke.texi: Document -fnew-ra.
1835 * basic-block.h (FOR_ALL_BB): New.
1836 * config/rs6000/rs6000.c (print_operand): Write small constants
1837 as @l+80.
1838
1839 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
1840 (df_reg_table_realloc): Make size at least as large as max_reg_num().
1841 (df_insn_table_realloc): Size argument now is absolute, not relative.
1842 Changed all callers.
1843
1844 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
1845 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
1846
1847 2002-06-20 Michael Matz <matz@suse.de>
1848
1849 * df.h (struct ref.id): Make unsigned.
1850 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
1851
1852 2002-06-13 Michael Matz <matz@suse.de>
1853
1854 * df.h (DF_REF_MODE_CHANGE): New flag.
1855 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
1856 involving subregs with invalid mode changes, when
1857 CLASS_CANNOT_CHANGE_MODE is defined.
1858
1859 2002-05-07 Michael Matz <matz@suse.de>
1860
1861 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
1862
1863 2002-05-03 Michael Matz <matz@suse.de>
1864
1865 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
1866
1867 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
1868
1869 * regclass.c (regclass): Work with all regs which have sets or
1870 refs.
1871 (reg_scan_mark_refs): Count regs inside (clobber ...).
1872
1873 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
1874
1875 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
1876 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
1877 add new refs.
1878 (df_bb_refs_update): Don't clear insns_modified here, ...
1879 (df_analyse): ... but here.
1880
1881 * sbitmap.c (dump_sbitmap_file): New.
1882 (debug_sbitmap): Use it.
1883
1884 * sbitmap.h (dump_sbitmap_file): Add prototype.
1885
1886 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
1887
1888 * df.c (df_insn_modify): Grow the UID table if necessary, rather
1889 than assume all emits go through df_insns_modify.
1890
1891 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
1892
1893 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
1894 increase REG_N_REFS (like flow does), so that regclass doesn't
1895 think a reg is useless, and thus, not calculate a class, when it
1896 really should have.
1897
1898 2001-01-28 Daniel Berlin <dberlin@redhat.com>
1899
1900 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
1901 dataflow analysis.
1902
1903 2002-07-15 Jakub Jelinek <jakub@redhat.com>
1904
1905 PR middle-end/7245
1906 * config/i386/i386.c (const_int_1_31_operand): New.
1907 * config/i386/i386.h (PREDICATE_CODES): Add it.
1908 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
1909 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
1910 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
1911
1912 2002-07-14 Alan Modra <amodra@bigpond.net.au>
1913
1914 PR target/7282
1915 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
1916 (floatunssidf2): Likewise.
1917 (floatsidf_ppc64): New insn_and_split.
1918 (floatunssidf_ppc64): Likewise.
1919
1920 2002-07-14 Andreas Jaeger <aj@suse.de>
1921
1922 * config.gcc (sh64): Remove unused
1923 target_requires_64bit_host_wide_int.
1924
1925 2002-07-12 Roger Sayle <roger@eyesopen.com>
1926
1927 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
1928 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
1929 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
1930 whether clear_by_pieces should be used to clear storage.
1931 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
1932
1933 * doc/tm.texi: Document these two new target macros.
1934
1935 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
1936
1937 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
1938 the scratch register.
1939 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
1940 of it, forbid reload to use it.
1941
1942 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
1943
1944 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
1945 usage on 64-bit hosts, return value was truncated to 32 bits.
1946
1947 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
1948
1949 * simplify-rtx.c (simplify_subreg): Handle floating point
1950 CONST_DOUBLEs. When an integer subreg of a smaller mode than
1951 the element mode is requested, compute a subreg with an
1952 integer mode of the same size as the element mode first.
1953
1954 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1955
1956 * combine.c (try_combine): When converting a paradoxical subreg
1957 to an extension, take LOAD_EXTEND_OP into account.
1958
1959 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1960
1961 * config.gcc (mips-sgi-irix6*o32): New configuration.
1962
1963 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
1964 configurations.
1965 * configure: Regenerate.
1966
1967 * config/mips/iris6-o32-as.h: New file.
1968 * config/mips/iris6-o32.h: New file.
1969
1970 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
1971 (NM_FLAGS): Define.
1972 (HAVE_AS_SHF_MERGE): Undefine.
1973
1974 * config/mips/t-iris5-as: New file.
1975 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1976
1977 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
1978 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
1979 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
1980 dp-bit.c, fp-bit.c): Move ...
1981 * config/mips/t-iris5-6: ... here.
1982 New file, shared by IRIX 5 and IRIX 6.
1983 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
1984 mips-sgi-irix5*): Use it.
1985
1986 * config/mips/iris6.h: Remove duplicate comment.
1987
1988 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1989 !TARGET_IRIX6]: Define.
1990 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
1991
1992 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
1993
1994 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1995
1996 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
1997 and delete code to force constant to register.
1998 * pa-protos.h (adddi3_operand): Add prototype.
1999 * pa.c (adddi3_operand): New function.
2000
2001 2002-07-11 Roger Sayle <roger@eyesopen.com>
2002
2003 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
2004 non-ANSI builtin functions.
2005
2006 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
2007
2008 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
2009 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
2010 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
2011 (gen_const_vector_0): Use it.
2012
2013 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2014
2015 * pa.md (adddi3): For 32-bit targets, force constants to a register
2016 if they don't fit in an 11-bit immediate. Change insn predicate to
2017 arith11_operand. Remove comment.
2018 * pa.c (cint_ok_for_move): Fix comment.
2019 (emit_move_sequence): Don't directly split DImode constants on 32-bit
2020 targets.
2021
2022 2002-07-11 Tim Josling <tej@melbpc.org.au>
2023
2024 Remove front end hard coding from gengtype.c.
2025
2026 * Makefile.in
2027 (STAGESTUFF): add gtyp-gen.h
2028 (GTFILES): Remove front end specific files.
2029 (GTFILES_FILES_LANGS): New, from configure..
2030 (GTFILES_FILES_FILES): Likewise.
2031 (GTFILES_LANG_DIR_NAMES): Likewise.
2032 (GTFILES_SRCDIR): Likewise.
2033 (gtyp-gen.h): Build from configure information.
2034 (s-gtype): Remove command line parameters from gengtype.
2035 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
2036 (mostlyclean): Delete files generated by and for gengtype.
2037
2038 * c-config-lang.in: New file.
2039
2040 * configure.in (all_gtfiles_files_langs): New. Accumulate files
2041 for each language.
2042 (all_gtfiles_files_files): New. Accumulate language for each file
2043 accumulated.
2044 (gtfiles): Pick up value for C.
2045 (srcdir): AC-SUBST this variable.
2046 (all_gtfiles_files_langs): AC-SUBST this variable.
2047 (all_gtfiles_files_files): AC-SUBST this variable.
2048
2049 * configure: Regenerate.
2050
2051 * gengtype-lex.l (parse_file): Make parameter const.
2052
2053 * gengtype.c (toplevel): include gtyp-gen.h.
2054 (BASE_FILE_<language> unnamed enum): Delete.
2055 (lang_names): Delete (replaced by gtyp-gen.h)
2056 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
2057 all references.
2058 (NUM_GT_FILES): New.
2059 (NUM_LANG_FILES): New.
2060 (srcdir_len): New.
2061 (NUM_BASE_FILES): Change calculation.
2062 (open_base_files): Change prototype to avoid warning.
2063 (startswith): Delete.
2064 (get_file_basename): Iterate through generated language list not
2065 hard coded list.
2066 (get_base_file_bitmap): Use generated list of files and languages.
2067 (close_output_files): Add prototype to rmove warning.
2068 (main): Iterate through list of generated files from gtyp-gen.h
2069 rather than command line paramaters. Ignore duplicated file
2070 names.
2071
2072 * gengtype.h (parse_file): Amend prototype for const parameter.
2073
2074 * doc/sourcebuild.texi: Document gtfiles variable.
2075
2076 * doc/gty.texi: Document changes to gtfiles variable for front
2077 ends.
2078
2079 * objc/config-lang.in (gtfiles): Add files needed for objc front
2080 end.
2081
2082 2002-07-10 Roger Sayle <roger@eyesopen.com>
2083
2084 PR c/2454
2085 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
2086 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
2087
2088 2002-07-10 Roger Sayle <roger@eyesopen.com>
2089 Zack Weinberg <zack@codesourcery.com>
2090
2091 * builtins.def: Make the argument types of abort and exit
2092 independent of the front-end.
2093
2094 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2095
2096 * config/rs6000/linux64.h (ASM_SPEC): Define.
2097
2098 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
2099
2100 * config/rs6000/rs6000.c (emit_frame_save): New.
2101 (rs6000_frame_related): Replace reg2 before reg.
2102 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
2103 and eh_return registers.
2104
2105 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
2106
2107 Revert all patches for optimization of Complex .op. Real.
2108 * complex_part_zero_p: Remove
2109 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
2110 with x.
2111 * expand_cmplxdiv_wide: Ditto.
2112 * expand_binop: Ditto.
2113
2114 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
2115
2116 * config/avr/avr.md: Fix two 0x80000000 constants to make them
2117 negative also on 64-bit hosts.
2118
2119 Default to -fno-reorder-blocks when optimizing for size.
2120 * config/avr/avr-protos.h (avr_optimization_options): Declare.
2121 * config/avr/avr.c (avr_optimization_options): New function.
2122 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
2123
2124 Optimize returning from simple functions.
2125 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
2126 * config/avr/avr.c (avr_simple_epilogue): New function.
2127 * config/avr/avr.md (return): New insn.
2128
2129 2002-07-10 Douglas B Rupp <rupp@gnat.com>
2130
2131 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
2132 HAS_INIT_SECTION to protection.
2133
2134 2002-07-10 Mark Mitchell <mark@codesourcery.com>
2135
2136 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
2137 deprecated.
2138
2139 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
2140
2141 * combine.c (gen_lowpart_for_combine): Handle vector modes.
2142 Supply non-VOID mode to simplify_gen_subreg.
2143
2144 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
2145
2146 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
2147
2148 2002-07-10 Jeffrey A Law <law@redhat.com>
2149
2150 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
2151 as appropriate.
2152
2153 * mn10200.c (expand_epilogue): Fix test to determine which scratch
2154 register to use.
2155
2156 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
2157
2158 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
2159 Get mode from dest.
2160 If simplify_gen_subreg fails, try next equivalent.
2161
2162 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
2163
2164 * diagnostic.h: #include location.h
2165 (location_t): Move definition to..
2166 * location.h: ... here. New file.
2167 * tree.h: #include location.h
2168 (DECL_SOURCE_LOCATION): New macro.
2169 (DECL_SOURCE_FILE): Use.
2170 (DECL_SOURCE_LINE): Likewise.
2171 (struct tree_decl): REplace filename and linenum with locus.
2172 * Makefile.in (TREE_H): add location.h
2173 (diagnostic.o): Depends on gt-location.h
2174 (gt-location.h): Depends on s-gtype
2175
2176 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2177
2178 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
2179 TARGET_OS_CPP_BUILTINS.
2180 * config/rs6000/aix31.h: Likewise.
2181 * config/rs6000/aix41.h: Likewise.
2182 * config/rs6000/aix43.h: Likewise.
2183 * config/rs6000/aix51.h: Likewise.
2184 * config/rs6000/beos.h: Likewise.
2185 * config/rs6000/darwin.h: Likewise.
2186 * config/rs6000/eabi.h: Likewise.
2187 * config/rs6000/eabisim.h: Likewise.
2188 * config/rs6000/linux.h: Likewise.
2189 * config/rs6000/linux64.h: Likewise.
2190 * config/rs6000/lynx.h: Likewise.
2191 * config/rs6000/mach.h: Likewise.
2192 * config/rs6000/rtems.h: Likewise.
2193 * config/rs6000/sysv4.h: Likewise.
2194 * config/rs6000/vxppc.h: Likewise.
2195
2196 2002-07-09 Devang Patel <dpatel@apple.com>
2197 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
2198 Do not allow ObjC objects as a parameter type for Objective-C methods.
2199 My previous patch restricted 'struct' also.
2200
2201 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
2202
2203 * cpperror.c (cpp_error): Default to directive_line within
2204 directives here.
2205 * cppexp.c (cpp_interpret_integer): Only use traditional
2206 number semantics in directives.
2207 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
2208 (do_include_common): Similarly.
2209 * cpptrad.c (scan_out_logical_line): Implement accurate
2210 quoting of <> in #include.
2211 * doc/cpp.texi: Update.
2212
2213 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
2214 J"orn Rennecke <joern.rennecke@superh.com>
2215
2216 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
2217 * sh.md (attribute issues): Replace with:
2218 (attribute pipe_model). All users changed.
2219 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
2220 All users changed.
2221 (function units sh5issue, sh5fds): New.
2222 (attribute is_mac_media): New.
2223 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
2224 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
2225 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
2226 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
2227 (call_media, call_value_media, sibcall_media): Likewise.
2228 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
2229 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
2230 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
2231 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
2232 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
2233 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
2234 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
2235 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
2236 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
2237 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
2238 (truncdfsf2_media): Likewise.
2239 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
2240 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
2241
2242 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
2243
2244 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
2245 * sh.c (general_extend_operand, inqhi_operand): New functions.
2246 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
2247 alternatives using 'N' modifier. Add type.
2248 (adddi3z_media): Likewise. Enable generator function generation.
2249 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
2250 exact predicates / constraints. Add type.
2251 (subsi3): Allow 0 for SHMEDIA.
2252 (udivsi3_i4_media): Use match_operand for input values
2253 rather than hard registers.
2254 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2255 unnecessarily through hard registers. Keep copies of pseudo
2256 registers outside of the libcall sequence.
2257 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
2258 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
2259 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
2260 (extendhidi2, extendqidi2): Likewise.
2261 (andsi3_compact): Name.
2262 (andcdi3): Enable generator function generation.
2263 (zero_extendhisi2, zero_extendqisi2): Rename to
2264 (zero_extendhisi2_compact, zero_extendqisi2_compact).
2265 (extendhisi2, extendqisi2): Rename to
2266 (extendhisi2_compact, extendqisi2_compact).
2267 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
2268 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
2269 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
2270 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
2271 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
2272 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
2273 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
2274 (shmedia32_initialize_trampoline_big): Likewise.
2275 (shmedia32_initialize_trampoline_little): Likewise.
2276 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
2277 (negdi2): Remove spurious T clobber.
2278 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
2279 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
2280 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
2281 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
2282 (ic_invalidate_line_media): Write back data cache before invalidating
2283 instruction cache. Add type.
2284 (movsf_media): Sign-extend when the destination is a general
2285 purpose register. Add type.
2286 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
2287 (casesi_worker_0+1): Only increment ref count for proper label.
2288 (casesi_worker_0+2): Likewise.
2289
2290 2002-07-09 Mark Mitchell <mark@codesourcery.com>
2291
2292 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
2293
2294 2002-07-09 Steve Ellcey <sje@cup.hp.com>
2295
2296 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
2297 from Pmode to ptr_mode.
2298 (get_exception_pointer): Ditto.
2299 (connect_post_landing_pads): Ditto.
2300 (dw2_build_landing_pads): Ditto.
2301
2302 2002-07-08 Steve Ellcey <sje@cup.hp.com>
2303 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
2304 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
2305 (handle_pragma_redefine_extname): Change to use new function.
2306
2307 2002-07-08 Roger Sayle <roger@eyesopen.com>
2308
2309 * combine.c (combine_simplify_rtx): Add an explicit cast
2310 to avoid signed/unsigned comparison warning.
2311 (simplify_if_then_else): Likewise.
2312 (extended_count): Likewise.
2313 (simplify_shift_const): Likewise.
2314 (simplify_comparison): Likewise.
2315
2316 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
2317
2318 * config/mips/mips.md: Add imadd type. Update scheduler description
2319 to use imadd as well as imul.
2320 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
2321 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
2322 (*mul_sub_si): Likewise for first alternative. Change second
2323 alternative from imul to multi.
2324
2325 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
2326
2327 * c-common.c (c_common_post_options): Update prototype;
2328 don't init backends if preprocessing only.
2329 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
2330 * langhooks.h (struct lang_hooks): Update post_options to
2331 return a boolean.
2332 * toplev.c (parse_options_and_default_flags, do_compile,
2333 lang_independent_init): Update prototypes. Allow the
2334 front end to specify that there is no need to initialize
2335 the back end.
2336 (general_init): Move call to hex_init here...
2337 (toplev_main): ...from here. Pass flag for back end init
2338 suppression.
2339
2340 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2341
2342 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
2343 (PREDICATE_CODES): Add entries for equality_comparison_operator,
2344 greater_comparison_operator and less_comparison_operator.
2345 * sh.c (print_operand): Add '\'' code. Make 'o' handle
2346 more operators.
2347 (equality_comparison_operator): New function.
2348 (greater_comparison_operator, less_comparison_operator): Likewise.
2349 * sh.md (beq_media_i): Disable generator function generation.
2350 Use match_operator to handle a whole class of comparisons. Add
2351 modifier in output template to provide branch prediction. Add type.
2352 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
2353 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
2354 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
2355 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
2356
2357 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
2358
2359 Emit MMIX function prologue and epilogue as rtl.
2360 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
2361 not unprototyped get_hard_reg_initial_val.
2362 ("call_value", "nonlocal_goto_receiver"): Ditto.
2363 ("return"): Make define_expand. Move real insn to...
2364 ("*expanded_return"): New pattern.
2365 ("prologue", "epilogue"): New define_expands.
2366 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
2367 (struct machine_function): New member in_prologue.
2368 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
2369 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
2370 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
2371 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
2372 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
2373 (LOCAL_REGNO): Define. Adjust comment.
2374 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
2375 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
2376 leaf_function_p.
2377 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
2378 the prologue.
2379 (mmix_target_asm_function_prologue): Make static. Just mark that
2380 the prologue is being emitted. Move guts to...
2381 (mmix_expand_prologue): New function. Adjust for emitting
2382 prologue as rtl. For sizes, use HOST_WIDE_INT only.
2383 (mmix_target_asm_function_epilogue): Make static. Simply emit a
2384 \n. Move guts to...
2385 (mmix_expand_epilogue): New function. Adjust for emitting
2386 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
2387 (mmix_target_asm_function_end_prologue): Mark that the prologue
2388 has ended.
2389 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
2390 (mmix_conditional_register_usage): Improve comments.
2391 (mmix_local_regno): New function.
2392 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
2393 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
2394 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
2395 (mmix_get_hard_reg_initial_val): Ditto.
2396
2397 2002-07-06 Andreas Jaeger <aj@suse.de>
2398
2399 * toplev.c (set_fast_math_flags): Don't use ISO C style function
2400 definitions.
2401 * gengtype.c (open_base_files): Likewise.
2402 (close_output_files): Likewise.
2403 * tracer.c (find_best_predecessor): Likewise.
2404 (find_best_successor): Likewise.
2405 (ignore_bb_p): Likewise.
2406
2407 2002-07-05 Roger Sayle <roger@eyesopen.com>
2408
2409 PR c++/7099
2410 * builtin-attrs.def: Define new attribute lists for use in
2411 builtins.def.
2412 * builtins.def [DEF_BUILTIN]: Modify to take an additional
2413 ATTRS argument, an enumerated value defined in builtin-attrs.def
2414 that represents the attribute list for the builtins. Modify
2415 all builtin functions to pass an appropriate attribute list.
2416 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
2417 their required noreturn attributes.
2418 * tree.h (enum_builtin_function): Ignore the additional parameter
2419 to DEF_BUILTIN.
2420 * builtins.c (built_in_names): Likewise.
2421 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
2422 argument with a tree representing the functions attribute list.
2423 Pass this "attrs" argument to builtin_function. No longer handle
2424 the noreturn_p processing manually.
2425 (built_in_attributes): Move the definitions from builtin-attrs.def
2426 before c_common_nodes_and_builtins.
2427 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
2428 DEF_BUILTIN, passing it to both builtin_function and the changed
2429 builtin_function_2.
2430
2431 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
2432 __builtin__exit and __builtin__Exit.
2433
2434 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2435
2436 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
2437 QI mode registers in soft registers.
2438 ("zero_extendqihi2"): Do not take into account soft registers
2439 for register allocation (use '*' constraint).
2440
2441 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2442
2443 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
2444 it is dead.
2445 ("*ashrsi3"): Likewise.
2446 ("*lshrsi3"): Likewise.
2447
2448 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
2449
2450 * genautomata.c (output_max_insn_queue_index_def): Take latencies
2451 into account.
2452
2453 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2454
2455 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
2456 address computation and memory moves.
2457
2458 2002-07-03 Mark Mitchell <mark@codesourcery.com>
2459
2460 PR c++/6706
2461 * dwarfout.c (output_reg_number): Fix warning message.
2462 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
2463 before using it.
2464
2465 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2466
2467 * gcc/gcc.c (asm_debug): Move initialization ...
2468 (init_spec): ... here.
2469
2470 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
2471
2472 * c-parse.in (extdef): Append ';'.
2473 (old_style_parm_decls): Append ';'.
2474
2475 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2476
2477 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
2478 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
2479 to gcc_cv_as_gstabs_flag.
2480 * configure: Rebuilt.
2481
2482 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
2483
2484 * ggc.h (ggc_add_root): Document as obsolete.
2485
2486 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
2487
2488 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
2489 (mshflo_w): Likewise.
2490
2491 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
2492
2493 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
2494 vector mode subregs of constants to finding integer mode
2495 subregs of constants.
2496 * cse.c (cse_insn): Use simplify_gen_subreg.
2497 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
2498 From a vector mode expression of different size than the
2499 target mode.
2500
2501 2002-07-03 Eric Christopher <echristo@redhat.com>
2502
2503 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
2504 * config/mips/mips.h: Remove deprecated -m<processor> options
2505 and cc1_cpu_spec associated.
2506 (CONSTANT_ADDRESS_P): Fix last patch.
2507 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
2508 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
2509 sunge_sf): Remove.
2510
2511 2002-07-03 Stan Shebs <shebs@apple.com>
2512
2513 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
2514 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
2515 (CPP_SPEC): Remove insertion of APPLE_CC definition.
2516
2517 2002-07-03 Roger Sayle <roger@eyesopen.com>
2518
2519 * combine.c (struct_undo): Change types of recorded substitutions
2520 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
2521 (do_SUBST_INT): Change types of the substitution from unsigned int
2522 to int, to avoid compilation warning from SUBST_INT's only caller.
2523
2524 (make_extraction): Add cast to avoid compilation warning.
2525 (force_to_mode): Remove cast to avoid compilation warning.
2526
2527 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
2528 Jeff Law <law@redhat.com>
2529
2530 * i386.md (length_immediate attribute): Fix typo.
2531 (length_address attribute): Likewise.
2532 (modrm attribute): Set it to 0 for immediate call instructions.
2533 (jcc_1 pattern): Set modrm attribute to 0.
2534 (jcc_2 pattern ): Likewise.
2535 (jump pattern): Likewise.
2536 (doloop_end_internal pattern): Explicitly set length.
2537 (leave pattern): Fix typo.
2538 (leave_rex64 pattern): Likewise.
2539
2540 2002-07-03 David Edelsohn <edelsohn@gnu.org>
2541
2542 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
2543 in FPR as preference.
2544 (fctiwz): Same.
2545 (floatdidf2, fix_truncdfdi2): Same.
2546 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
2547 (floatditf2): Same.
2548 (floatsitf2, fix_trunctfsi2): SImode in GPR.
2549 (ctrdi): Remove FPR alternative and splitter.
2550
2551 2002-07-03 Will Cohen <wcohen@redhat.com>
2552
2553 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
2554
2555 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
2556
2557 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
2558 than UNITS_PER_WORD, unless this is little endian and the first unit
2559 in this word. Let extract_bit_field decide how to load an element.
2560 Force arguments to matching mode.
2561 (expand_vector_unop): Likewise.
2562
2563 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
2564 consist of word_mode elements.
2565 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
2566 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
2567 (build_unary_op): Allow vector types for BIT_NOT_EPR.
2568 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
2569 CONST_VECTOR.
2570 * optabs.c (expand_vector_binop): Try to perform operation in
2571 smaller vector modes with same inner size. Add handling of AND, IOR
2572 and XOR. Reject expansion to inner-mode sized scalars when using
2573 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
2574 (expand_vector_unop): Try to perform operation in smaller vector
2575 modes with same inner size. Add handling of one's complement.
2576 When there is no vector negate operation, try a vector subtract
2577 operation. Use simplify_gen_subreg on constants.
2578 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
2579 constants into smaller vectors with same inner mode, and to
2580 integer CONST_DOUBLEs.
2581
2582 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2583
2584 * c-parse.in (parsing_iso_function_signature): New variable.
2585 (extdef_1): New, copied from...
2586 (extdef): ... here. Reset parsing_iso_function_signature.
2587 (old_style_parm_decls): Reset parsing_iso_function_signature.
2588 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
2589 Warn about ISO C style function definitions.
2590 (nested_function, notype_nested_function): Reset
2591 parsing_iso_function_signature.
2592 (parmlist_2): Set parsing_iso_function_signature.
2593
2594 * doc/invoke.texi (-Wtraditional): Document new behavior.
2595
2596 2002-07-02 Chris Demetriou <cgd@broadcom.com>
2597
2598 * config.gcc (mips*el-*-*): Use tm_defines to set
2599 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
2600 * config/mips/little.h: Remove.
2601
2602 2002-07-02 Devang Patel <dpatel@apple.com>
2603
2604 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
2605 object as parameter. Prevent something like 'NSObject' to be
2606 used as the type for a method argument.
2607
2608 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
2609
2610 * cpptrad.c: Update comment.
2611
2612 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
2613
2614 * doc/cpp.texi: Update for traditional preprocessing changes.
2615 * goc/cppopts.texi: Similarly.
2616
2617 2002-07-02 Ziemowit Laski <zlaski@apple.com>
2618
2619 * c-parse.in (designator): Enable designated initializers if ObjC.
2620 (objcmessageexpr): Remove references to objc_receiver_context.
2621 * objc/objc-act.h (objc_receiver_context): Remove decl.
2622 * objc/objc-act.c (objc_receiver_context): Remove.
2623 (lookup_objc_ivar): Test objc_method_context instead of
2624 objc_receiver_context.
2625
2626 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
2627
2628 * sh.c (print_operand, case 'N'): Allow zero vector.
2629 (arith_reg_or_0_operand): Likewise.
2630 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
2631 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
2632 IOR, XOR, PLUS and SET and take their respective constant
2633 ranges into account.
2634 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
2635 * sh.md (subdi3, subdi3_media): Allow zero operand.
2636 (movv8qi_i+3): Only vector that is not split is the zero vector.
2637 Fix operand 3 to simplify_subreg.
2638 (movv2si_i): Split alternative 1.
2639 (mshfhi_l_di_rev+1): New splitter.
2640
2641 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
2642
2643 PR preprocessor/7029
2644 * cppinit.c (cpp_handle_option): Suppress warnings with an
2645 implicit "-w" for "-M" and "-MM".
2646 * doc/cppopts.texi: Update.
2647
2648 2002-07-01 Roger Sayle <roger@eyesopen.com>
2649
2650 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
2651 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
2652 builtin_function.
2653
2654 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2655
2656 * README.Portability: Fix typos.
2657
2658 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
2659
2660 PR target/7177
2661 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
2662 of indirections for register inside sign-extended mem part.
2663
2664 2002-07-01 Roger Sayle <roger@eyesopen.com>
2665
2666 * tree.h: Modify builtin_function interface to take an extra
2667 argument ATTRS, which is a tree representing an attribute list.
2668
2669 * c-decl.c (builtin_function): Accept additional parameter.
2670 * objc/objc-act.c (builtin_function): Likewise.
2671 * f/com.c (builtin_function): Likewise.
2672 * java/decl.c (builtin_function): Likewise.
2673 * ada/utils.c (builtin_function): Likewise.
2674 * cp/decl.c (builtin_function): Likewise.
2675 (builtin_function_1): Likewise.
2676
2677 * c-common.c (c_common_nodes_and_builtins): Pass an additional
2678 NULL_TREE argument to builtin_function. (builtin_function_2):
2679 Likewise.
2680 * cp/call.c (build_java_interface_fn_ref): Likewise.
2681 * objc/objc-act.c (synth_module_prologue): Likewise.
2682 * java/decl.c (java_init_decl_processing): Likewise.
2683 * f/com.c (ffe_com_init_0): Likewise.
2684
2685 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
2686 NULL_TREE argument to builtin_function.
2687 * config/arm/arm.c (def_builtin): Likewise.
2688 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
2689 * config/i386/i386.c (def_builtin): Likewise.
2690 * config/ia64/ia64.c (def_builtin): Likewise.
2691 * config/rs6000/rs6000.c (def_builtin): Likewise.
2692
2693 2002-07-01 Zack Weinberg <zack@codesourcery.com>
2694
2695 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
2696 * config/mips/t-isa3264: Likewise.
2697 * config/mmix/t-mmix: Likewise.
2698
2699 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2700
2701 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
2702
2703 2002-07-01 Roger Sayle <roger@eyesopen.com>
2704
2705 PR opt/4046
2706 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
2707 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
2708 B are truth values.
2709
2710 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
2711
2712 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
2713
2714 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
2715
2716 * README.Portability (Function prototypes): Give an example of
2717 declaring and defining a function with no arguments.
2718
2719 * README.Portability (Function prototypes): Document new
2720 variable-argument function macros.
2721
2722 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
2723
2724 * sh.c (langhooks.h): Include.
2725 (sh_init_builtins, sh_media_init_builtins): New functions.
2726 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
2727 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
2728 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
2729 (builtin_description): New struct tag.
2730 (signature_args, bdesc): New arrays.
2731 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
2732 (print_operand): Add 'N' modifier.
2733 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
2734 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
2735 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
2736 (CONST_COSTS): Add special case for SHmedia AND.
2737 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
2738 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
2739 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
2740 target_operand can also be const or unspec.
2741 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
2742 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
2743 (attribute type): Add new types.
2744 (anddi3): Add splitter.
2745 (movdi_const_16bit+1): Add code to handle vector constants and
2746 bitmasks efficiently.
2747 (shori_media): Have generator function made.
2748 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
2749 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
2750 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
2751 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
2752 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
2753 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
2754 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
2755 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
2756 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
2757 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
2758 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
2759 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
2760 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
2761 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
2762 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
2763 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
2764 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
2765 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
2766 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
2767 (ftrv): Likewise.
2768
2769 (fpu_switch+1, fpu_switch+2): Remove constraint.
2770
2771 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
2772
2773 * tree.c (build_function_type_list): Update function comment.
2774 Rename first argument to return_type.
2775
2776 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
2777
2778 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
2779 tradcif.y and related files.
2780
2781 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
2782
2783 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
2784
2785 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2786
2787 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
2788
2789 2002-06-30 Devang Patel <dpatel@apple.com>
2790
2791 * objc/objc-act.c (finish_file): Avoid finish_objc() if
2792 -fsyntax-only.
2793
2794 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
2795 Frank Ch. Eigler <fche@redhat.com>
2796 Matthew Green <mrg@redhat.com>
2797 Richard Henderson <rtl@redhat.com>
2798 Dave Hudson <dave.hudson@ubicom.com>
2799 Jeff Johnston <jjohnstn@redhat.com>
2800 Alan Lehotsky <apl@alum.mit.edu>
2801 Bernd Schmidt <bernds@redhat.com>
2802 Graham Stott <grahams@redhat.com>
2803
2804 * doc/extend.texi: Add ip2k port to description of attribute
2805 naked.
2806 * doc/install.texi (Specific): Add ip2k description.
2807 * doc/install-old.texi (Configurations): Add ip2k to possible
2808 cpu types.
2809 * doc/md.texi: Document ip2k constraints.
2810 * config/ip2k/crt0.S: New file.
2811 * config/ip2k/ip2k-protos.h: New file.
2812 * config/ip2k/ip2k.c: New file.
2813 * config/ip2k/ip2k.h: New file.
2814 * config/ip2k/ip2k.md: New file.
2815 * config/ip2k/libgcc.S: New file.
2816 * config/ip2k/t-ip2k: New file.
2817
2818 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
2819
2820 * config/mmix/mmix.md ("return"): New pattern.
2821 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
2822 (TARGET_USE_RETURN_INSN): New macros.
2823 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
2824 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
2825 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
2826 (MMIX_POP_ARGUMENT): New macro.
2827 (mmix_target_asm_function_prologue): When no epilogue is executed,
2828 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
2829 (mmix_print_operand) <case '.'>: New case.
2830 (mmix_print_operand_punct_valid_p): Match '.'.
2831 (mmix_use_simple_return): New function.
2832 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
2833 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
2834 -msingle-exit, -mno-single-exit.
2835 (MMIX Options): Ditto.
2836
2837 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
2838
2839 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
2840
2841 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2842
2843 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
2844
2845 2002-06-30 Alan Modra <amodra@bigpond.net.au>
2846
2847 * unroll.c (loop_iterations): Handle EQ loops.
2848
2849 2002-06-29 David Edelsohn <edelsohn@gnu.org>
2850
2851 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
2852 constraint in define_expand, not splitter.
2853 Formatting.
2854
2855 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
2856
2857 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
2858 build_function_type_list instead of build_function_type.
2859
2860 * config/ia64/ia64.c (ia64_init_builtins): Same.
2861
2862 * config/alpha/alpha.c (alpha_init_builtins): Same.
2863
2864 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
2865
2866 * config/arm/arm.c (arm_init_builtins): Same.
2867
2868 * tree.h: Add build_function_type_list prototype.
2869
2870 * tree.c (build_function_type_list): New.
2871
2872 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2873
2874 * collect2.c (scan_prog_file): Fix typo in message.
2875
2876 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
2877
2878 * fold-cont.c: Remove unused CHARMASK.
2879
2880 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
2881
2882 PR preprocessor/7150
2883 * cppmain.c (scan_translation_unit_trad): Simplify.
2884 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
2885
2886 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
2887
2888 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
2889 Don't use CPP_PREDEFINES.
2890 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
2891 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
2892 * config/i386/djgpp.h, config/i386/i386-coff.h,
2893 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2894 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2895 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
2896 config/i386/uwin.h: Similarly.
2897
2898 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2899
2900 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
2901 flag_inline_trees to enable inlining.
2902
2903 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
2904
2905 * configure.in (gcc_gxx_include_dir): Change to match versioned
2906 C++ headers if --enable-version-specific-runtime-libs is used.
2907 * configure: Regenerate.
2908
2909 2002-06-28 Jan Hubicka <jh@suse.cz>
2910
2911 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
2912
2913 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
2914
2915 * combine.c (combine_simplify_rtx): Pass the mode of the
2916 shift count, not the shift operation when trying to simplify
2917 a shift on a SHIFT_COUNT_TRUNCATED target.
2918
2919 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2920
2921 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
2922 avoid the auto increment addressing modes.
2923 ("*subsi3"): Likewise.
2924 (split for add/sub on address): For 68HC12 push the value on
2925 the stack and do the operation with a pop.
2926
2927 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2928
2929 * cpplib.c (_cpp_handle_directive): Move #define-specific
2930 code to the #define handler...
2931 (do_define): ...here.
2932 (lex_macro_node): No longer a need to check for comments here.
2933
2934 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2935
2936 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
2937 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2938 Declare.
2939 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
2940 do not reorder basic blocks at the end when optimizing for size.
2941
2942 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2943
2944 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
2945 (m68hc11_make_autoinc_notes): New function.
2946 (m68hc11_split_move): Be very cautious when spliting a move with
2947 auto increment/decrement modes because this may result in incompatible
2948 directions; add REG_INC notes to the resulting insn for CSE reg.
2949
2950 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
2951
2952 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
2953 can be a valid address.
2954
2955 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
2956
2957 * config/rs6000/rs6000.c: Remove unusued variables from last
2958 patch.
2959
2960 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2961
2962 Revert:
2963 * config/rs6000/rs6000.c (rs6000_override_options): Move
2964 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2965
2966 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2967
2968 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
2969 lvx/stv/dst builtins...
2970 (altivec_expand_ld_builtin): ...to here.
2971 (altivec_expand_st_builtin): ...here.
2972 (altivec_expand_dst_builtin): ...and here (respectively).
2973
2974 2002-06-28 Bob Wilson <bob.wilson@acm.org>
2975
2976 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
2977
2978 2001-06-08 Bernd Schmidt <bernds@redhat.com>
2979
2980 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
2981 subregs.
2982 * recog.c (general_operand, register_operand): Disallow them.
2983
2984 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2985
2986 PR preprocessor/7138
2987 * cpplib.c (_cpp_handle_directive): Do traditional
2988 preparation after setting state.angled_headers.
2989 * cpptrad.c (scan_out_logical_line): Fix potential
2990 quote bug.
2991
2992 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2993
2994 * config/rs6000/rs6000.c (rs6000_override_options): Move
2995 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2996
2997 2002-06-27 Bob Wilson <bob.wilson@acm.org>
2998
2999 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
3000 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
3001 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
3002
3003 2002-06-27 Roger Sayle <roger@eyesopen.com>
3004
3005 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
3006 * config/stormy16/stormy16.h: Likewise.
3007
3008 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
3009 with #define.
3010
3011 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3012
3013 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
3014 Hitachi entry. Make punctuation more consistent.
3015
3016 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
3017
3018 * doc/install.texi: Change ` bit' to `-bit'.
3019 * doc/md.texi: Change `-bits' to `-bit'.
3020 * doc/tm.texi: Change `-bits' to ` bits'.
3021
3022 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
3023
3024 * gcse.c (hoist_code): Rewrite to only get list of dominated
3025 blocks once per BB. Also fix reversed test (by removing need for
3026 the test at all).
3027
3028 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
3029
3030 * cpphash.h (_cpp_set_trad_context): Remove.
3031 * cpplib.c (prepare_directive_trad): Do nothing for #define.
3032 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
3033 * cpptrad.c: Update comments.
3034 (_cpp_read_logical_line_trad): Let scan_logical_line handle
3035 updating the current context.
3036 (scan_logical_line): Update the current context.
3037 (_cpp_create_trad_definition): Similarly.
3038 (_cpp_set_trad_context): Remove.
3039
3040 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
3041
3042 PR preprocessor/7070
3043 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
3044
3045 2002-06-26 Bob Wilson <bob.wilson@acm.org>
3046
3047 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
3048 config/xtensa/xtensa.c (xtensa_return_addr): New function.
3049 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
3050 config/xtensa/xtensa.md (fix_return_addr): New pattern.
3051
3052 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3053
3054 * mips.c (coprocessor_operand, coprocessor2_operand,
3055 symbolic_operand): Move prototypes from here...
3056 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
3057 symbolic_operand): ...to here.
3058
3059 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3060
3061 * config/sh/crt1.asm: remove _stack label definition
3062 and sentinel value.
3063
3064 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3065
3066 * varasm.c: Include real.h before output.h.
3067
3068 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
3069
3070 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
3071 check for TARGET_ALTIVEC.
3072
3073 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
3074
3075 * config.gcc (vax-*-vms*): Make obselete.
3076
3077 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3078
3079 * gcc.c (warn_std): Delete.
3080
3081 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
3082
3083 * doc/extend.texi: Fix formatting of last checkin.
3084
3085 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3086
3087 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
3088 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
3089
3090 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
3091
3092 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3093 discrepancies from motorola's documentation.
3094
3095 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
3096
3097 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
3098 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
3099
3100 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
3101 produce a 32 bit result before normalization, then normalize with a
3102 left shift. Compute approximative error of 2nd reciprocal
3103 approximation in 2's complement. Fix mask generation from upper
3104 longword of second divide stage result.
3105 For large divisor, fix shift count used to truncate first stage
3106 divide result; make decision if to adjust upwards based on comparison
3107 of higher parts of normalized values.
3108 (udivdi): Likewise. Undo normalization of result for large divisor
3109 case.
3110
3111 2002-06-25 David S. Miller <davem@redhat.com>
3112
3113 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
3114
3115 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
3116
3117 * cpplib.c (do_include_common): Revert to correct line number
3118 if -traditional.
3119 * cpptrad.c (scan_out_logical_line): Treat null directive as
3120 white space. Invlidate MI optimization for non-whitespace
3121 text outside a directive.
3122
3123 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3124
3125 * Makefile.in (SHELL): Set to @SHELL@.
3126 * fixinc/Makefile.in (SHELL): Likewise.
3127
3128 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
3129 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
3130 initialization.
3131
3132 2002-06-24 Jeff Law <law@redhat.com>
3133
3134 * flow.c (propagate_one_insn): When removing an insn
3135 with a REG_LIBCALL note but not the entire libcall sequence,
3136 delete the associated REG_RETVAL note.
3137
3138 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
3139
3140 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
3141 (udivsi3): Likewise. Rewrite SH1 implementation.
3142 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
3143 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
3144 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
3145 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
3146 (_moddi3): Likewise.
3147
3148 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
3149
3150 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
3151 arguments into account for stack_regs.
3152
3153 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
3154
3155 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
3156 in examples.
3157
3158 2002-06-24 Art Haas <ahaas@neosoft.com>
3159
3160 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
3161 * doc/tm.texi (Frame Layout): Likewise.
3162
3163 2002-06-20 Steve Ellcey <sje@cup.hp.com>
3164
3165 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
3166 Set float_format to i128.
3167
3168 2002-06-24 David S. Miller <davem@redhat.com>
3169
3170 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
3171 32-bit ABI libfuncs to NULL.
3172
3173 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
3174 strings instead of quoted strings for code blocks.
3175
3176 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
3177 optabs if op1 is const0_rtx.
3178
3179 * Makefile.in (GTFILES): Add basic-block.h
3180 * basic-block.h (label_value_list, tail_recursion_label_list):
3181 Mark with GTY.
3182
3183 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
3184
3185 * cpptrad.c (scan_out_logical_line): Check recursing only when
3186 we know we have a macro invocation in the function-like case.
3187 Only call _cpp_handle_directive if we know we have a good
3188 directive, or we want to reject a bad directive.
3189
3190 2002-06-24 Alan Modra <amodra@bigpond.net.au>
3191
3192 * doloop.c (doloop_valid_p): Correct comment.
3193 (doloop_modify_runtime <abs_inc != 1>): Simplify.
3194 (doloop_modify_runtime <do-while>): Don't emit code when NE.
3195
3196 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
3197
3198 * config.gcc: Add support for ip2k.
3199
3200 2002-06-23 Jan Hubicka <jh@suse.cz>
3201 Jeff Law <law@redhat.com>
3202
3203 * function.h (struct emit_status): Clarify potential contents
3204 of regno_reg_rtx array.
3205 * integrate.c (copy_rtx_and_substitute): Update comments. Make
3206 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
3207
3208 * reg-stack.c (convert_regs_exit): Push the registers to stack in
3209 proper order.
3210
3211 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3212
3213 PR middle-end/6963
3214 * function.c (assign_stack_temp_for_type): Do not return
3215 the same MEM rtx for multiple uses of a stack slot.
3216
3217 2002-06-22 David S. Miller <davem@redhat.com>
3218
3219 PR target/6841 target/6770 target/6719
3220 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
3221 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
3222 GENERAL_OR_EXTRA_FP_REGS.
3223
3224 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
3225
3226 * cpptrad.c (struct fun_macro): Add line number.
3227 (scan_out_logical_line): Set it, and use it to report unterminated
3228 macro invocations.
3229
3230 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3231
3232 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
3233 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
3234 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
3235 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
3236 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
3237 REGEXP_ONEOF, check_name): Const-ify.
3238
3239 2002-06-21 Matt Thomas <matt@3am-software.com>
3240
3241 * config/vax/vax.c (vax_output_function_prologue): Use
3242 REGISTER_PREFIX. Fix some indentation.
3243 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
3244 (VAX_ISTREAM_SYNC): Define.
3245 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
3246 i-stream sync to the end.
3247 (REGISTER_PREFIX): Define as "".
3248 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
3249
3250 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
3251
3252 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
3253 configurations.
3254
3255 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3256
3257 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
3258 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
3259
3260 2002-06-21 Matt Thomas <matt@3am-software.com>
3261
3262 * config/vax/netbsd.h: Adjust a comment.
3263 (TARGET_DEFAULT): Redefine as 0.
3264
3265 2002-06-21 Richard Henderson <rth@redhat.com>
3266
3267 * bb-reorder.c (make_reorder_chain_1): Search harder for the
3268 vax casesi fallthru edge.
3269 * cfglayout.c (cleanup_unconditional_jumps): Use
3270 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
3271 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
3272 block after ADDR_VEC.
3273
3274 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3275
3276 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
3277
3278 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
3279
3280 * cpperror.c (cpp_error): For traditional CPP, default to
3281 diagnostics on pfile->line.
3282 * cpplib.c (prepare_directive_trad): Set line number for
3283 diagnostics for #define too.
3284 * cpptrad.c (skip_whitespace): Skip comments properly.
3285 (_cpp_expansions_different_trad): Initialize quote2.
3286
3287 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
3288
3289 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
3290 * config/mmix/mmix.h: Ditto.
3291 * config/mmix/mmix-protos.h: Ditto.
3292 * config/mmix/mmix.c: Ditto. Fix typo in comment.
3293 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
3294 comment. Comment extra CC modes.
3295
3296 2002-06-20 Jan Hubicka <jh@suse.cz>
3297
3298 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
3299 (scope_to_insns_finalize): Do not call set_block_levels; handle
3300 sequences.
3301 (choose_inner_scope): New.
3302 * rtl.h (choose_inner_scope): Declare.
3303
3304 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
3305
3306 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
3307 HOST_WIDE_INT.
3308 * pa.c (pa_asm_output_mi_thunk): Likewise.
3309 (n_deferred_plabels): Change type to size_t.
3310 (output_deferred_plabels, output_call): Use size_t instead of int.
3311
3312 2002-06-20 Richard Henderson <rth@redhat.com>
3313
3314 PR target/4041
3315 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
3316 pattern and adjust constraints for coldfire.
3317
3318 2002-06-20 Richard Henderson <rth@redhat.com>
3319
3320 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
3321
3322 2002-06-20 Chris Demetriou <cgd@broadcom.com>
3323
3324 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
3325
3326 2002-06-20 Chris Demetriou <cgd@broadcom.com>
3327
3328 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
3329
3330 2002-06-20 Stan Shebs <shebs@apple.com>
3331
3332 * dominance.c: Include errors.h instead of error.h.
3333
3334 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
3335
3336 * cppexp.c (cpp_interpret_integer): Don't force traditional
3337 numbers to be unsigned.
3338 * cpplib.c (prepare_directive_trad): Set line number for
3339 diagnostics.
3340 * cpptrad.c (scan_out_logical_line): Continue scanning out
3341 at start of buffer.
3342 * gcc.c (trad_capable_cpp): Use cc1 always.
3343
3344 2002-06-20 Jeffrey Law <law@redhat.com>
3345
3346 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
3347 elimination in leaf functions by default yet.
3348
3349 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
3350
3351 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
3352
3353 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3354
3355 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
3356 multilibs.
3357 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
3358 Fixes PR other/6836.
3359
3360 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
3361 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3362
3363 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
3364
3365 * basic-block.h: Do not include et-forest.h
3366 (dominance_info): Declare as struct dominance-info.
3367 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
3368 deleting block.
3369 * dominance.c (struct dominance_info): Define.
3370 (BB_NODE, SET_BB_NODE): New macros.
3371 (bb_hash_func, bb_eq_func): Kill.
3372 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
3373 nearest_common_dominator, dominated_by_p, recount_dominator,
3374 add_to_dominance_info, delete_from_dominance_info): update for new
3375 representation.
3376 (get_dominated_by, redirect_immediate_dominators): Rewrite using
3377 enumerate_sons.
3378 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
3379 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
3380 structure.
3381
3382 * et-forest.h: Update copyright; revamp all function to operate on
3383 nodes
3384 (et_forest_value): Kill.
3385 (et_forest_enumerate_sons, et_forest_node_value): New.
3386 * et-forest.c: Update copyright.
3387 * et-forest.h: Update copyright; revamp all function to operate on
3388 nodes
3389 (et_forest_value): Kill.
3390 (et_forest_enumerate_sons, et_forest_node_value): New.
3391
3392 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
3393
3394 * basic-block.h: Inlude et-forest.h
3395 (basic_block_def): Kill dominator.
3396 (dominance_info): New type.
3397 (loops): Use dominace_info.
3398 (dominace handling functions): Take dominace_info as argument
3399 instead of bitmaps.
3400 (create_preheader): Likewise.
3401 * cfg.c (entry_exit_blocks): Kill dominator.
3402 (dump_flow_info): Do not dump dominators.
3403 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
3404 dominators.
3405 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
3406 (flow_loops_pre_header_scan, make_forwarder_block,
3407 canonicale_loop_headers, flow_loops_find): Likewise.
3408 * dominance.c: Include error.h
3409 (idoms_to_doms): Kill.
3410 (bb_hash_func, bb_eq_func): New static functions.
3411 (debug_dominace_info): New global function.
3412 (calculate_dominance_info): Use new et forest structure.
3413 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
3414 get_dominated_by, redirect_immediate_dominators,
3415 nearest_common_dominator, dominated_by_p, verify_dominators,
3416 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
3417 delete_from_dominance_info): New global functions.
3418 * gcse.c (domnators): CHange to dominance_info.
3419 (alloc_hoist_mem): Do not alloc dominators
3420 (free_code_hoist_mem): Use free_dominance_info.
3421 (compute_code_hoist_data): Use dominance_info.
3422 (hoist_code): Likewise.
3423 * ifcvt.c (post_dominators): Likewise.
3424 (find_if_case_2, if_convert): Likewise.
3425 * predict.c (process_note_predictions, process_note_prediction,
3426 estimate-probability): Likewise.
3427 * sched-rgn.c (find_rgns, init_regions): Likewise.
3428 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
3429 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
3430 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
3431 find_evaluations, convert_to_ssa): Likewise.
3432 * ssa.h (compute_dominance_frontiers): Likewise.
3433
3434 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3435
3436 * Makefile.in (et-forest.c): Add.
3437 * et-forest.c: New file.
3438 * at-forest.h: New file.
3439
3440 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3441
3442 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
3443 array size calculation.
3444 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
3445 Likewise.
3446
3447 * diagnostic.c (diagnostic_kind_text): Const-ify.
3448 * gengtype.c (lang_names): Likewise.
3449
3450 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
3451
3452 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
3453
3454 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3455
3456 * config/sol2.h: New file.
3457 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
3458 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
3459 (sparc-*-chorusos*): Likewise.
3460 (sparc-*-elf*): Likewise.
3461 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
3462 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
3463 (sparc-hal-solaris2*): Likewise.
3464 (sparc-*-solaris2*): Likewise.
3465 (sparclite-*-elf*): Likewise.
3466 (sparc86x-*-elf*): Likewise.
3467 (sparc64-*-elf*): Likewise.
3468
3469 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
3470 config/sol2.h.
3471 (ASM_SPEC): Override config/sol2.h version for now.
3472 Removed obsolete GAS_REJECTS_MINUS_S variant.
3473 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
3474 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
3475 (TARGET_OS_CPP_BUILTINS): Likewise.
3476 Assert system=unix.
3477 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
3478 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
3479 config/sol2.h.
3480 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
3481 (ASM_CPU_SPEC): Define.
3482 (SUBTARGET_EXTRA_SPECS): Define.
3483
3484 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
3485 in config/sparc/sol2.h.
3486 (ASM_SPEC): Moved to config/sol2.h.
3487 (CPP_CPU_SPEC): Simplified.
3488 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
3489 consistency.
3490 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
3491 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
3492 STARTFILE_ARCH64_SPEC.
3493 (STARTFILE_SPEC): Moved to config/sol2.h
3494 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
3495 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
3496 (LINK_ARCH64_SPEC): Simplified.
3497 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
3498 (LINK_SPEC): Moved to config/sol2.h
3499
3500 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
3501 config/sol2.h.
3502 Use BITS_PER_WORD for size.
3503 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
3504 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
3505 (CPP_PREDEFINES): Removed OS-specific part handled by
3506 TARGET_OS_CPP_BUILTINS.
3507 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
3508 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
3509 (ASM_SPEC): Moved to config/sol2.h.
3510 (PREFERRED_DEBUGGING_TYPE): Likewise.
3511 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
3512 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
3513 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
3514 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
3515
3516 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
3517 * config/i386/sol2gas.h: Removed.
3518
3519 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3520
3521 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
3522
3523 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
3524
3525 * gcc.c-torture/execute/simd-1.c: New.
3526
3527 * gcc.dg/simd-1.c: New.
3528
3529 * doc/extend.texi (Vector Extensions): Document that we can
3530 specify simd types not specifically supported by the hardware.
3531 Document that simd types can be used as function arguments.
3532 Document that signness does make a difference in SIMD types.
3533 Misc cleanups and revisions to the vector extensions section.
3534
3535 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
3536 constants.
3537
3538 * expr.c (vector_mode_valid_p): New.
3539
3540 * expr.h: Add vector_mode_valid_p.
3541
3542 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
3543
3544 * c-common.c (type_for_mode): Always build vector nodes regardless
3545 of VECTOR_MODE_SUPPORTED_P.
3546 (handle_mode_attribute): Error if we can't emulate a nonexisting
3547 vector mode.
3548 (handle_vector_size_attribute): Same.
3549
3550 * optabs.c (expand_binop): Open-code vector operations.
3551 (expand_unop): Open-code vector unops.
3552 (expand_vector_binop): New.
3553 (expand_vector_unop): New.
3554
3555 * c-typeck.c (build_binary_op): Allow vectors in binops.
3556 Allow vectors in conditional operatiors.
3557 (build_unary_op): Allow vectors in unary minus.
3558
3559 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
3560 TARGET_ALTIVEC.
3561
3562 2002-05-20 Richard Henderson <rth@redhat.com>
3563
3564 * c-common.c (c_common_get_alias_set): Correctly handle characters.
3565 Rearrange order of expressions; don't handle vectors here.
3566 * alias.c (get_alias_set): Let vectors match their components.
3567
3568 2002-06-19 Chris Demetriou <cgd@broadcom.com>
3569
3570 * config/mips/mips.c (mips_emit_prefetch): Use hints which
3571 match desired locality.
3572
3573 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3574
3575 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
3576 (h8300_insert_attributes): New.
3577
3578 2002-06-19 Akim Demaille <akim@epita.fr>
3579
3580 * c-parse.in (initelt: identifier ':' initval): Add an empty
3581 action to fix a type clash.
3582 (aliasdecl, classdef): Add the missing closing `;'.
3583 Whitespace changes.
3584 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
3585 $$ = $1 type clashes.
3586
3587 2002-06-19 Eric Christopher <echristo@redhat.com>
3588
3589 * config/mips/mips.c (symbol_operand): New function.
3590 (mips_emit_prefetch): Ditto.
3591 * config/mips/mips-protos.h: Define.
3592 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
3593 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
3594 (LEGITIMIZE_ADDRESS): Ditto.
3595 * config/mips/mips.md (prefetch, prefetch_si_address,
3596 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
3597
3598 2002-06-19 Eric Christopher <echristo@redhat.com>
3599
3600 * config/fp-bit.h: Add unordered defines for gofast.
3601
3602 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
3603
3604 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
3605 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
3606 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
3607 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
3608 checking and without it.
3609 (decl_name, decl_mode_check_failed, regexp_name,
3610 regexp_mode_check_failed): New functions.
3611 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3612 gen_presence_set, gen_absence_set, gen_automaton,
3613 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3614 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
3615 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
3616 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
3617 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
3618 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
3619 (decl_hash, decl_eq_p): Use the macros.
3620 (find_decl): Ditto. Set up mode of work_decl.
3621 (process_excls, process_presence_absence, process_decls,
3622 check_automaton_usage, process_regexp, process_regexp_decls,
3623 check_usage, loop_in_regexp, check_loops_in_regexps,
3624 process_regexp_cycles, add_advance_cycle_insn_decl,
3625 initiate_states, initiate_excl_sets,
3626 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
3627 transform_2): Use the macros.
3628 (transform_3): Ditto. Check mode before making transformations of
3629 ALLOF.
3630 (regexp_transform_func, transform_insn_regexps,
3631 process_unit_to_form_the_same_automaton_unit_lists,
3632 form_the_same_automaton_unit_lists_from_regexp,
3633 form_the_same_automaton_unit_lists,
3634 process_seq_for_forming_states, process_alts_for_forming_states,
3635 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
3636 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
3637 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
3638 units_to_automata_heuristic_distr, create_ainsns,
3639 units_to_automata_distr, create_automata): Use the macros.
3640 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
3641 (longest_path_length, min_issue_delay_pass_states,
3642 output_dead_lock_vect, output_tables, output_insn_code_cases,
3643 output_internal_insn_latency_func, output_print_reservation_func,
3644 output_description, output_automaton_units, generate): Use the
3645 macros.
3646 (make_insn_alts_attr): Ditto. Check case when there are not
3647 alternatives in the reservation.
3648 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
3649 make_bypass_attr, form_important_insn_automata_lists,
3650 expand_automata): Use the macros.
3651
3652 2002-06-20 Tim Josling <tej@melbpc.org.au>
3653
3654 * Makefile.in: Clean up code to check for misspecified languages
3655 in enable-languages.
3656
3657 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
3658
3659 * cpptrad.c (_cpp_replacement_text_len): initialize len.
3660
3661 2002-06-19 Jason Merrill <jason@redhat.com>
3662
3663 * Makefile.in (unstrap, restrap): New targets.
3664 (bootstrap): Mention restrap.
3665
3666 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
3667
3668 * except.c (ehl_free): Remove.
3669
3670 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
3671 builtin_define and builtin_define_std.
3672
3673 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3674
3675 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
3676 (sCOND): Restrict operand class so that gcc knows how to reload them.
3677 (bitfield_set): Merge two unnamed insn's using alternatives.
3678 (call_value): Remove constraint on unused uperand.
3679 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
3680 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
3681
3682 * longlong.h (count_trailing_zeros): Escape newline and beautify.
3683
3684 2002-06-19 Mark Mitchell <mark@codesourcery.com>
3685
3686 * Makefile.in (QMTEST_DIR): Simplify definition.
3687
3688 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
3689
3690 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
3691 #define.
3692
3693 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
3694
3695 * cpphash.h (struct cpp_reader): Make date and time strings.
3696 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
3697 _cpp_replacement_text_len): New.
3698 * cppinit.c (cpp_create_reader): Update.
3699 (init_builtins): Register appropriate builtins for -traditional-cpp.
3700 * cppmacro.c (new_number_token): Remove.
3701 (_cpp_builtin_macro_text): New.
3702 (builtin_macro): Use it.
3703 (cpp_macro_definition): Update to handle traditional macros.
3704 * cppmain.c (cb_line_change): Don't do column positioning for
3705 traditional output.
3706 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
3707 state ls_fun_close.
3708 (skip_whitespace): Fix.
3709 (maybe_start_funlike): Don't set state.parsing_args.
3710 (scan_out_logical_line): Remove duplicate error. Use lex_state
3711 rather than state.parsing_args.
3712 (push_replacement_text): Handle builtins.
3713 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
3714
3715 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
3716 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3717
3718 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
3719 attribute __always_inline__.
3720
3721 2002-06-18 Bob Wilson <bob.wilson@acm.org>
3722
3723 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
3724 when generating the call to _mcount.
3725 (NO_PROFILE_COUNTERS): Define.
3726
3727 2002-06-18 Richard Henderson <rth@redhat.com>
3728
3729 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
3730 2002-06-02 change.
3731
3732 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
3733
3734 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
3735 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
3736 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
3737 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
3738
3739 * sh-protos.h (sh_pr_interrupt): Declare.
3740 * sh.c (sh_pr_interrupt): New function.
3741 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
3742 (sh_hard_regno_rename_ok): Likewise.
3743 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
3744
3745 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
3746
3747 * rtl.def (DEFINE_AUTOMATON): Add description of new options
3748 `time' and `v'. Fix incorrect description of option `w'.
3749
3750 * doc/md.texi: Ditto.
3751
3752 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
3753 (gen_automata_option): Process the new options.
3754 (transform_2, transform_3): Initialize some variables.
3755 (initiate_automaton_gen): Use the new macros.
3756
3757 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
3758
3759 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
3760 (mips_set_return_address, mips_restore_gp): Declare.
3761 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
3762 (current_frame_info): Remove.
3763 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
3764 * config/mips/mips.c: Remove uses of current_frame_info.
3765 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
3766 (struct machine_function): Add 'frame' and 'insns_len'.
3767 (current_frame_info, zero_frame_info): Remove.
3768 (mips_restore_gp, mips_set_return_address): New.
3769 (mips_initial_elimination_offset): New.
3770 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
3771 (eh_return define_split): Use mips_set_return_address.
3772
3773 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
3774
3775 * cpplib.c (dtable): Update.
3776 (end_directive): Decrement expansion prevention count.
3777 Clear state.in_expression.
3778 (prepare_directive_trad): Set state.in_expression.
3779 Increment expansion prevention count.
3780 * cpptrad.c (enum ls): New.
3781 (_cpp_overlay_buffer): Set overlaid_buffer.
3782 (_cpp_remove_overlay): Use overlaid_buffer.
3783 (_cpp_read_logcial_line_trad): Update buffer when it might
3784 have changed.
3785 (scan_out_logical_line): Handle state transitions for assertions
3786 and defined() in #if, and for funlike invocations including the
3787 directive case. Handle '<' and '>' as a quote mechanism in
3788 #include. Warn about unterminated macro invocations.
3789 * cpphash.h (struct lexer_state): New member in_expression.
3790 (struct cpp_reader): New member overlaid buffer.
3791
3792 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
3793
3794 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
3795 __always_inline__.
3796
3797 2002-06-18 Alan Modra <amodra@bigpond.net.au>
3798
3799 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
3800
3801 * doloop.c (doloop_optimize): Extract pattern from insn.
3802
3803 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
3804
3805 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
3806
3807 2002-06-17 Jeff Law <law@redhat.com>
3808
3809 * libgcc2.c: Do not include symcat.h or machmode.h.
3810
3811 2002-06-17 Richard Henderson <rth@redhat.com>
3812
3813 PR target/6922
3814 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
3815
3816 2002-06-17 Tom Tromey <tromey@redhat.com>
3817
3818 * dwarfout.c: Include function.h.
3819
3820 2002-06-17 Andreas Schwab <schwab@suse.de>
3821
3822 * print-rtl.c (print_rtx): Print space before vector, not after.
3823 (debug_rtx): Clear sawclose before printing.
3824 (debug_rtx_list): Print newline after each list element.
3825 (debug_rtx_range): Likewise.
3826
3827 2002-06-17 Richard Henderson <rth@redhat.com>
3828
3829 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
3830 (current_function_funcdef_no): Similarly.
3831 * function.c (funcdef_no): Similarly.
3832 (prepare_function_start): Set current_function_funcdef_no.
3833 (expand_function_start): Don't set current_function_profile_label_no.
3834 * dwarf2out.h (current_funcdef_number): Remove.
3835 * dwarf2out.c (current_funcdef_number): Remove. Replace with
3836 current_function_funcdef_no throughout.
3837 * dwarfout.c, vmsdbgout.c: Similarly.
3838 * except.c (sjlj_funcdef_number): Remove.
3839 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
3840 (output_function_exception_table): Likewise.
3841 * final.c (profile_function): Use current_function_funcdef_no
3842 instead of current_function_profile_label_no.
3843
3844 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
3845
3846 * sched-ebb.c (init_ready_list): Check INSN_P first.
3847
3848 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
3849
3850 * sh.md (divsi3): Update way how to find insns in a sequence.
3851
3852 * reload1.c (merge_assigned_reloads): Don't change reloads
3853 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
3854 to RELOAD_OTHER when there are conflicting input reloads.
3855
3856 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
3857
3858 * function.c (epilogue_done): Correctly build a sequence of insns for
3859 a sibcall epilogue.
3860
3861 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
3862
3863 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
3864 #define.
3865
3866 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
3867
3868 2002-06-16 Richard Henderson <rth@redhat.com>
3869
3870 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
3871 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
3872
3873 2002-06-16 Richard Henderson <rth@redhat.com>
3874
3875 PR opt/6722
3876 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
3877
3878 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
3879
3880 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
3881 * config/i386/i386-aout.h, config/i386/i386elf.h,
3882 config/i386/sysv4.h: Remove CPP_PREDEFINES.
3883 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
3884 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
3885 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
3886 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3887 CPP_PREDEFINES and part of CPP_SPEC.
3888 * config/i386/sysv4-cpp.h: New.
3889
3890 2002-06-16 Richard Henderson <rth@redhat.com>
3891
3892 PR c/7030
3893 * dwarf2out.c (modified_type_die): Don't assign the qualified die
3894 to the unqualified type.
3895
3896 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
3897
3898 * i386-protos.h (x86_field_alignment): Declare.
3899 * i386.c (x86_field_alignment): Define.
3900 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
3901 (BIGGEST_FIELD_ALIGNMENT): Kill.
3902
3903 2002-06-16 Richard Henderson <rth@redhat.com>
3904
3905 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
3906
3907 2002-06-16 Richard Henderson <rth@redhat.com>
3908
3909 * c-common.c (flag_ms_extensions): Move from c++ front end.
3910 * c-common.h (flag_ms_extensions): Declare.
3911 * c-decl.c (c_decode_option): Add -fms-extensions.
3912 (grokfield): Don't accept anonymous structures in ISO C mode;
3913 accept only unnamed anonymous structures in GNU C mode; accept
3914 Plan 9 extensions in MS mode.
3915 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
3916 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
3917 (extension): Clear flag_iso.
3918 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
3919
3920 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
3921
3922 PR target/7042
3923 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
3924 early if current_function_epilogue_delay_list is non-empty.
3925 * config/cris/cris.md ("return"): Add sanity check asserting that
3926 current_function_epilogue_delay_list is empty.
3927
3928 2002-06-16 Jeff Law <law@redhat.com>
3929
3930 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
3931 sharing of hard registers.
3932
3933 * toplev.c (rest_of_compilation): Remove redundant conditional.
3934
3935 * toplev.c (rest_of_compilation): Perform a simpler, less costly
3936 cleanup of the CFG when not optimizing.
3937
3938 2002-06-16 Alan Modra <amodra@bigpond.net.au>
3939
3940 * gcc.c (main): Correct startfile_prefix_spec check.
3941
3942 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3943
3944 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
3945 include both darwin.o and rs6000-c.o.
3946
3947 2002-06-15 Roger Sayle <roger@eyesopen.com>
3948
3949 * expr.c (compare_from_rtx): Call simplify_relational_operation
3950 on all comparisons, not just those between integer constants,
3951 with the correct (possibly unsigned) comparison code.
3952 (do_compare_rtx_and_jump): Likewise.
3953
3954 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3955
3956 * Makefile.in (tm_defines): New configuration variable.
3957 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
3958 Pass tm_defines in TM_DEFINES.
3959 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
3960 * config.gcc (tm_defines): New configuration variable.
3961 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
3962 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
3963 * configure.in: Substitute tm_defines.
3964 * configure: Rebuilt.
3965 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
3966 * doc/install.texi: Update.
3967 * pa/pa-700.h: Delete file.
3968 * pa/pa-7100.h: Delete file.
3969
3970 2002-06-15 Roger Sayle <roger@eyesopen.com>
3971
3972 * fold-const.c (comparison_to_compcode): New function to convert
3973 an comparison TREE CODE into a bit-based representation.
3974 (compcode_to_comparison): New function to convert from this bit
3975 based representation back to a comparison TREE CODE.
3976 (fold_truthop): Simplify (x<y) && (x==y) and related composite
3977 comparisons.
3978
3979 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
3980
3981 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
3982
3983 * stor-layout.c (compute_record_mode): Remove check for
3984 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
3985 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
3986 MEMBER_TYPE_FORCES_BLK.
3987
3988 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
3989
3990 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
3991
3992 2002-06-14 Jeff Sturm <jsturm@one-point.com>
3993
3994 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
3995
3996 2002-06-14 Steve Ellcey <sje@cup.hp.com>
3997
3998 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
3999 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
4000 * configure, config.in: Regenerate.
4001
4002 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
4003
4004 * loop.c (check_final_value): Use v->always_executed
4005 instead of v->always_computable.
4006 * unroll.c (final_giv_value): Don't calculate the final
4007 value as a function of the biv if the giv is not computed
4008 for every loop iteration.
4009
4010 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
4011
4012 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
4013
4014 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
4015
4016 PR c/6677
4017 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
4018 the truncation down when the target type is signed.
4019 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
4020 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
4021 the conversion if the target type is a smaller type.
4022
4023 2002-06-14 Richard Henderson <rth@redhat.com>
4024
4025 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
4026 earlier. Re-factor comparisons vs extrema.
4027
4028 2002-06-14 Richard Henderson <rth@redhat.com>
4029
4030 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
4031
4032 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4033
4034 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
4035 * sched-deps.c (add_dependence): Likewise.
4036 (group_leader): Likewise.
4037 * sched-rgn.c (init_ready_list): Likewise.
4038 * doc/rtl.texi: Adjust accordingly.
4039
4040 2002-06-13 Jeffrey Law <law@redhat.com>
4041
4042 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
4043 null pointer checks were eliminated. Update prototype.
4044 (delete_null_pointer_checks): Similarly.
4045 * rtl.h (delete_null_pointer_checks): Update prototype.
4046 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
4047 delete_null_pointer_checks deletes one or more null
4048 pointer checks. Do not run cleanup_cfg before gcse, the
4049 CFG is accurate and optimized at that point..
4050
4051 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
4052 of hard registers.
4053
4054 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4055
4056 * Makefile.in (libgcc.mk): Depend on specs.
4057
4058 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
4059
4060 * sh.md (mulsi3): Update way how to find insns in a sequence.
4061
4062 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4063
4064 * sh.h: Define HARD_REGNO_RENAME_OK
4065 * sh.c: sh_hard_regno_rename_ok: New. If current function has
4066 interrupt_handler attribute, only registers saved on stack are OK.
4067 * sh-protos.h: Declare sh_hard_regno_rename_ok.
4068
4069 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
4070
4071 * config/sh/sh.md (jump): Emit jump insn.
4072 (call_pcrel): Get pattern of the result of gen_call_site.
4073 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
4074
4075 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
4076
4077 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
4078 * cpptrad.c: Update comments.
4079 (skip_whitespace, copy_comment): Take a new parameter.
4080 (skip_escaped_newlines): Don't duplicate escaped newline test.
4081 (copy_comment): Different location for CUR, decide here how
4082 to copy / replace the comment.
4083 (skip_whitespace): Copy whitespace.
4084 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
4085 (scan_out_logical_line): Let copy comment handle keeping or
4086 replacing comments.
4087 (scan_parameters, _cpp_create_trad_definition): Update.
4088
4089 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
4090
4091 * reload.c (get_secondary_mem,find_reloads_address,
4092 find_reloads_address_1): Pass reference to MEM to find_reloads_address
4093 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
4094
4095 2002-06-13 Jessica Han <jessica@cup.hp.com>
4096
4097 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
4098 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
4099 * doc/tm.texi: Document them.
4100 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
4101 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
4102 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
4103 (ASM_OUTPUT_FDESC): Likewise.
4104
4105 2002-06-13 Eric Christopher <echristo@redhat.com>
4106
4107 * diagnostic.c (output_format): Fix thinko.
4108
4109 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
4110
4111 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
4112 (DWARF2_UNWIND_INFO): Define to 0.
4113
4114 * config/sh/sh.c (calc_live_regs): Don't use initial_value
4115 optimization for PR_MEDIA_REG.
4116
4117 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
4118
4119 * cpphash.h (_cpp_lex_identifier_trad): Remove.
4120 * cpplib.c (end_directive): Don't skip, always remove overlay
4121 apart from #define.
4122 (prepare_directive_trad): Handle NULL pfile->directive.
4123 (_cpp_handle_directive): Always call prepare_directive_trad
4124 if traditional.
4125 * cppmain.c (check_multiline_token): Rename account_for_newlines,
4126 generalize inputs.
4127 (scan_translation_unit_trad): Use it.
4128 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
4129 output, get escaped newline in comment close correct.
4130 (check_output_buffer, skip_whitespace): Update.
4131 (_cpp_lex_identifier_trad): Remove.
4132 (scan_out_logical_line): Handle -C and comments in directives
4133 properly.
4134
4135 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4136
4137 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
4138 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
4139 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
4140 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
4141 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
4142 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
4143 (SELECT_SH5_COMPACT_NOFPU): Likewise.
4144 (TARGET_SWITCHES): Use them.
4145 (TARGET_CPU_DEFAULT): Define if not already defined.
4146 (TARGET_DEFAULT): Use it.
4147 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
4148 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
4149 * config/sh/t-monolib: New file.
4150
4151 2002-06-13 Roger Sayle <roger@eyesopen.com>
4152
4153 * toplev.c (rest_of_compilation): Simplify (and correct) the
4154 logic of the first delete-null-pointer-checks pass.
4155
4156 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
4157
4158 * i386.c (ix86_expand_movstr): Fix pasto.
4159
4160 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
4161
4162 * reload.c (find_valid_class): Fix thinko in my previous patch.
4163
4164 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
4165
4166 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
4167 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
4168 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
4169 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
4170
4171 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
4172
4173 * tree-inline.c (expand_call_inline): Don' mess with _DECL
4174 fields.
4175
4176 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
4177
4178 * diagnostic.c (output_format): Recognize "%H" as a format
4179 specifier for a location_t.
4180 (text_specifies_location): New function.
4181 (diagnostic_set_info): Use it.
4182
4183 2002-06-13 Jeffrey Law <law@redhat.com>
4184
4185 * emit-rtl.c (static_regno_reg_rtx): Define.
4186 (init_emit_once): Initialize static_regno_reg_rtx.
4187 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
4188 of building new hard reg objects once per function.
4189 (gen_rtx_REG): Try to share hard regs.
4190 * regclass.c (init_fake_stack_mems): New function broken out from
4191 init_regs.
4192 * rtl.h (init_fake_stack_mems): Declare.
4193 * toplev.c (lang_independent_init): Call init_regs before
4194 init_emit_once. Call init_fake_stack_mems after init_emit_once.
4195
4196 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
4197
4198 * alias.c (argument_registers): Remove.
4199 (init_alias_once): Initialize static_reg_base_value here. Remove
4200 initialization of argument_registers.
4201 (init_alias_once_per_function): Remove.
4202 (init_alias_analysis): Copy all the entries from static_reg_base_value
4203 into new_reg_base_value all at once.
4204 * rtl.h (init_alias_once_per_function): Remove declaration.
4205 * function.c (prepare_function_start): Do not call
4206 init_alias_once_per_function.
4207
4208 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
4209 starting a sequence and emitting an INSN.
4210
4211 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
4212
4213 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
4214
4215 2002-06-13 David S. Miller <davem@redhat.com>
4216
4217 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
4218
4219 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
4220
4221 * cpplib.c (end_directive): Handle line skipping. Only remove
4222 the rest of the line if the directive was valid.
4223 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
4224 expanding a traditional macro.
4225 * cpptrad.c (recursive_macro): New.
4226 (read_logical_line_trad): Handle skipping.
4227 (scan_out_logical_line): Continue after a successful directive.
4228 Don't expand macros whilst skipping, or if recursing.
4229 (_cpp_create_trad_definition): scan_out_logical_line now sets
4230 the output current position.
4231
4232 2002-06-12 Eric Christopher <echristo@redhat.com>
4233
4234 From Chris Demetriou <cgd@broadcom.com>
4235 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
4236 comment.
4237 (ISA_HAS_MADD_MSUB): Ditto.
4238 (ISA_HAS_NMADD_NMSUB): Ditto.
4239
4240 2002-06-12 Eric Christopher <echristo@redhat.com>
4241
4242 * config.gcc: Consolidate little endian handling and
4243 little/big endian targets.
4244 * config/mips/elfl.h: Remove file.
4245 * config/mips/elfl64.h: Ditto.
4246 * config/mips/ecoffl.h: Ditto.
4247 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
4248
4249 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
4250
4251 * gengtype.h (xvasprintf): New prototype.
4252 (xasprintf): New prototype.
4253 (struct outf): New.
4254 (get_output_file): Return an outf_p.
4255 (header_file): Is now an outf_p.
4256 (base_files): Now are outf_p.
4257 (oprintf): New.
4258 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
4259 rather than stdio operations. Use xasprintf in a few places,
4260 when appropriate.
4261 (xvasprintf): New.
4262 (xasprintf): New.
4263 (struct filemap): Delete.
4264 (files): Delete.
4265 (output_files): New.
4266 (oprintf): New.
4267 (create_file): Create an outf_p. Add parameter to indicate output
4268 file name, change all callers.
4269 (open_base_files): Create gtype-desc.c here.
4270 (get_output_file_with_visibility): Rewrite.
4271 (get_output_file_name): Just look at 'name' field in struct outf.
4272 (close_output_files): Rewrite.
4273
4274 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
4275
4276 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
4277 (MASK_G_FLOAT): Define.
4278 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
4279 (TARGET_SWITCHES): Likewise.
4280 (TARGET_DEFAULT): Likewise.
4281
4282 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
4283
4284 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
4285 * config/mips/mips.c (mips_output_filename): Don't print a
4286 ".file" directive if we are using DWARF-2.
4287 (mips_output_function_prologue): Do not emit source file
4288 name for TARGET_GAS.
4289
4290 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
4291
4292 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
4293 decide whether emit the short opcode.
4294 * i386.h (x86_shift1): Declare.
4295 (TARGET_SHIFT1): New macro.
4296 * i386.c (x86_shift1): New global variable.
4297
4298 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
4299 unconditionally; make loop to rebuild CFG; kill unnecesary
4300 find_basic_block calls; kill compute_bb_for_insn call.
4301 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
4302 * haifa-sched.c (sched_init): Likewise.
4303 * ssa-ccp.c (ssa_const_prop): Likewise.
4304 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4305
4306 2002-06-11 David S. Miller <davem@redhat.com>
4307
4308 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
4309 active_insn_p.
4310
4311 2002-06-11 Richard Henderson <rth@redhat.com>
4312
4313 * c-common.c (builtin_define_type_max): New.
4314 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
4315 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
4316
4317 From Joseph S. Myers:
4318 * glimits.h: Rewrite to expect the double underscore definitions
4319 from the compiler.
4320
4321 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
4322 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
4323 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
4324 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4325 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
4326 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
4327 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
4328 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
4329
4330 2002-06-11 Richard Henderson <rth@redhat.com>
4331
4332 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
4333 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
4334 (code_for_builtns): Update.
4335 (alpha_init_builtins): Add __builtin_thread_pointer and
4336 __builtin_set_thread_pointer.
4337 (alpha_expand_builtin): Handle void builtins.
4338 * doc/extend.texi (Alpha Built-in Functions): Update.
4339
4340 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
4341
4342 PR target/6997
4343 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
4344
4345 2002-06-11 Zack Weinberg <zack@codesourcery.com>
4346
4347 * config.gcc: Make the name of the extra-modes file adjustable
4348 by target stanzas.
4349 (s390x, strongarm, xscale stanzas): Use this facility.
4350 * configure.in: Update to match.
4351 * configure: Regenerate.
4352
4353 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
4354
4355 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
4356 max/mins as unsigned GE compares.
4357
4358 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
4359
4360 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
4361 * config/vax/bsd.h: New file.
4362 * config/vax/netbsd.h: Add missing notice.
4363 (CPP_PREDEFINES): Remove.
4364 (TARGET_OS_CPP_BUILTINS): Define.
4365 (CPP_SPEC): Use NETBSD_CPP_SPEC.
4366 * config/vax/openbsd.h: Update copyright years.
4367 (CPP_PREDEFINES): Remove.
4368 (TARGET_OS_CPP_BUILTINS): Define.
4369 * config/vax/ultrix.h: Likewise.
4370 * config/vax/vaxv.h: Likewise.
4371 * config/vax/vms.h: Likewise.
4372 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
4373 (CPP_PREDEFINES, CPP_SPEC): Remove.
4374
4375 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
4376
4377 * i386.md (addqi_1_slp, subqi_1_slp
4378 (andqi_ext0, testqi_ext0): Remove unnecesary check.
4379 (addhi*, addqi*): Simplify "dec" condition.
4380 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
4381 (and, or, xor to QImode splitters): New.
4382 (iorqi_ext*): New.
4383 (xorqi_ext_0): New.
4384 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
4385 (andqi_ext_1_rex64): New.
4386 (ashrqi*_slp): New.
4387 (ashlqi*_slp): New.
4388 (lshlqi*_slp): New.
4389 (rotrqi3*_slp): New.
4390 (rotlqi3*_slp): New.
4391
4392 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
4393
4394 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
4395 softfloat.h.
4396 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
4397 (CPP_ENDIAN_LITTLE_SPEC): Delete.
4398 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
4399 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
4400 __LONG_DOUBLE_128__ setting, _CALL_* setting.
4401 (CPP_DEFAULT_SPEC): Delete.
4402 (CPP_FLOAT_DEFAULT_SPEC): Delete.
4403 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
4404 (CPP_SYSV_DEFAULT_SPEC): Delete.
4405 (CPP_ENDIAN_BIG_SPEC): Delete.
4406 (CPP_ENDIAN_LITTLE_SPEC): Delete.
4407 (CPP_ENDIAN_SPEC): Delete.
4408 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
4409 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
4410 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
4411 cpp_longdouble_default.
4412 * config/rs6000/softfloat.h: Delete.
4413 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
4414 (EXTRA_SPECS): Delete cpp_cpu.
4415 (TARGET_CPU_CPP_BUILTINS): New.
4416 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
4417 prototype.
4418 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
4419 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
4420 (CPP_DEFAULT_SPEC): Delete.
4421 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
4422 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
4423 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
4424 (CPP_DEFAULT_SPEC): Delete.
4425 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
4426 (CPLUSPLUS_CPP_SPEC): Likewise.
4427 (CPP_CPU_SPEC): Delete.
4428 (CPP_DEFAULT_SPEC): Delete.
4429 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
4430 (CPLUSPLUS_CPP_SPEC): Likewise.
4431 (CPP_CPU_SPEC): Delete.
4432 (CPP_DEFAULT_SPEC): Delete.
4433 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
4434 (CPP_DEFAULT_SPEC): Delete.
4435 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
4436 (CPP_DEFAULT_SPEC): Delete.
4437
4438 * doc/gty.texi: Small updates.
4439
4440 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
4441
4442 * objc/objc-act.c (warn_with_ivar): Adjust calls to
4443 diagnostic_count_error.
4444 (warn_with_method): Likewise.
4445
4446 * diagnostic.h (warnings_are_errors_message): New field of
4447 diagnostic_context.
4448 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
4449 match semantics.
4450 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
4451 (diagnostic_count_diagnostic): Make aware of other kinds of
4452 diagnostics.
4453 (diagnostic_initialize): Initialize warnings_are_errors_message field.
4454
4455 2002-06-11 Tom Tromey <tromey@redhat.com>
4456
4457 For PR java/6520:
4458 * fold-const.c (fold_convert): Don't modify existing tree's type.
4459
4460 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
4461
4462 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
4463
4464 2002-06-11 Richard Henderson <rth@redhat.com>
4465
4466 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
4467
4468 2002-06-11 Richard Henderson <rth@redhat.com>
4469
4470 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
4471 DWARF2_UNWIND_INFO is false.
4472
4473 2002-06-11 Bob Wilson <bob.wilson@acm.org>
4474
4475 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
4476
4477 * config/s390/s390.c (emit_prologue): gen_store_multiple
4478 returns an insn now, not a pattern.
4479
4480 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4481
4482 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
4483 $(TEXI2DVI) -o.
4484
4485 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4486
4487 * i386.c (x86_promote_QImode): Set for Athlon
4488 (x86_fast_prefix): New global variable.
4489 (x86_arch_always_fancy_math_387): Fix formating.
4490 * i386.h (x86_fast_prefix): Declare
4491 (TARGET_FAST_PREFIX): define.
4492 * i386.md (and to strict_low_part, HI to SI
4493 promoting splitter): Use new macro.
4494
4495 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
4496
4497 2002-06-11 Zack Weinberg <zack@codesourcery.com>
4498
4499 * Makefile.in (distclean): Delete junk left in testsuite
4500 directory, too.
4501
4502 2002-06-11 Jeffrey Law <law@redhat.com>
4503
4504 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
4505 last insn created by the splitter.
4506
4507 * caller-save.c (init_caller_save): Move creation of SAVEINSN
4508 and RESTINSN into into the scope of the sequence.
4509
4510 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
4511 RETURN insns.
4512
4513 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
4514
4515 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
4516 not the pattern. So extract the pattern from the insn.
4517
4518 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
4519
4520 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4521
4522 * config/s390/s390.md (movsi): Only use floating point
4523 register alternatives when operands are already fprs.
4524 (movdi_31, movdi_64): Likewise.
4525
4526 2002-06-11 David S. Miller <davem@redhat.com>
4527
4528 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
4529 Only run RTX equality checks on INSN_P rtl.
4530
4531 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4532
4533 * config/s390/s390.md (reload_base, ltorg): Remove.
4534 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
4535 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
4536 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
4537 s390_asm_output_pool_prologue): Likewise.
4538 * s390.h (s390_pool_start_insn): Likewise.
4539
4540 * s390.c (s390_output_symbolic_const): Remove support for
4541 old-style pool chunks.
4542 (s390_function_epilogue): Likewise.
4543 (s390_output_constant_pool): Likewise. Also, fix incorrect
4544 alignment for 64-bit literal pools.
4545 (print_operand_address): Remove 'y' and 'Y' format flags.
4546 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
4547 old-style pool chunks.
4548 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
4549 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
4550 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
4551
4552 * s390.c (consttable_operand): New function.
4553 * s390-protos.h (consttable_operand): Declare it.
4554 * s390.h (PREDICATE_CODES): Add consttable_operand.
4555 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
4556 consttable_sf, consttable_df, pool_start_31, pool_end_31,
4557 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
4558 * s390.c (struct constant, struct constant_pool): New data types.
4559 (constant_modes, gen_consttable): New variables.
4560 (s390_start_pool, s390_end_pool, s390_add_pool,
4561 s390_dump_pool, s390_free_pool): New functions.
4562 (s390_chunkify_pool): Completely reimplement literal pool
4563 overflow handling.
4564
4565 * s390.c (s390_pool_overflow): New variable.
4566 * s390.h (s390_pool_overflow): Declare it.
4567 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
4568 jumps in literal pool overflow situations.
4569
4570 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
4571 (s390_frame_info): Account for possible use of RETURN_REGNUM
4572 by new literal pool overflow code.
4573 (s390_emit_prologue): Likewise.
4574
4575 2002-06-05 David S. Miller <davem@redhat.com>
4576
4577 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
4578 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
4579 emit_insns_before_scope, emit_insns_after,
4580 emit_insns_after_scope): Delete declaration.
4581 * ada/misc.c (insert_code_for): Use emit_insn* instead of
4582 emit_insns_foo.
4583 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
4584 (alpha_set_memflags): Fix comment.
4585 (set_frame_related_p): Use get_insns instead of gen_sequence.
4586 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
4587 emitting no insns.
4588 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
4589 gen_sequence.
4590 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
4591 * config/fr30/fr30.c (fr30_move_double): Likewise.
4592 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
4593 Likewise.
4594 * config/ia64/ia64.c (spill_restore_mem): Likewise.
4595 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
4596 no insns.
4597 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
4598 instead of gen_sequence.
4599 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
4600 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
4601 * config/sh/sh.c (sh_need_epilogue): Likewise.
4602 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
4603 attributes.
4604 (setjmp pattern and split): Use them to avoid splitter which emits
4605 no RTL.
4606 * genattrtab.c (main): Emit include of function.h
4607 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
4608 get_insns instead of gen_sequence.
4609 * config/cris/cris.c (cris_split_movdx): Likewise.
4610 * emit-rtl.c (emit_insns*): Kill.
4611 (try_split): Expect insn list instead of SEQUENCE.
4612 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
4613 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
4614 Make them abort if a SEQUENCE is given and RTL checking is
4615 enabled.
4616 (emit_*_scope): Don't forget to set scope on final insn.
4617 (gen_sequence): Move from here...
4618 * ssa.c (gen_sequence): To here as private function.
4619 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
4620 comments.
4621 (expand_builtin_return, expand_builtin_mathfn): Likewise.
4622 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
4623 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
4624 (expand_builtin_expect_jump): Use get_insns and fix comments.
4625 * calls.c (try_to_integrate): Use emit_insn_foo.
4626 (expand_call, emit_library_call_value_1): Likewise.
4627 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
4628 (emit_move_insn_1): Use get_insns instead of gen_sequence.
4629 (expand_expr): Use emit_insn_foo.
4630 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
4631 * except.c (build_post_landing_pads): Likewise.
4632 * flow.c (attempt_auto_inc): Likewise.
4633 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
4634 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
4635 * function.c (fixup_var_refs_insn): Use get_insns instead of
4636 gen_sequence.
4637 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
4638 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
4639 (fixup_stack_1, purge_addressof_1, expand_main_function,
4640 get_arg_pointer_save_area): Likewise.
4641 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
4642 expand_function_end): Use emit_insn_foo.
4643 (record_insns, keep_stack_depressed): Work with insn list instead
4644 of SEQUENCE, fix comments.
4645 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
4646 noce_try_store_flag_constants, noce_try_store_flag_inc,
4647 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
4648 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
4649 (noce_process_if_block): Use get_insns instead of gen_sequence.
4650 * optabs.c (add_equal_note): Work with insn list, fix comments.
4651 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
4652 (expand_unop, expand_complex_abs, expand_unop_insn,
4653 expand_no_conflict_block): Likewise.
4654 (gen_move_insn): Use get_insns instead of gen_sequence.
4655 (gen_cond_trap): Likewise.
4656 * integrate.c (copy_rtx_and_substitute): Likewise.
4657 (emit_initial_value_sets): Use emit_insn_foo.
4658 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
4659 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
4660 now that RTL generators give insn lists.
4661 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
4662 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
4663 instead of gen_sequence.
4664 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
4665 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
4666 instead of gen_sequence.
4667 * loop.c (move_movables, emit_prefetch_instructions,
4668 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
4669 Likewise.
4670 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
4671 (product_cheap_p): Likewise, and add commentary about RTL wastage
4672 here.
4673 * lcm.c (optimize_mode_switching): Use get_insns instead of
4674 gen_sequence.
4675 * profile.c (gen_edge_profiler): Likewise.
4676 * regmove.c (copy_src_to_dest): Likewise.
4677 * reg-stack.c (compensate_edge): Likewise and fix comment.
4678 * gcse.c (process_insert_insn): Likewise.
4679 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
4680 * jump.c (delete_prior_computation): Update comment.
4681 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
4682 of gen_sequence, update comments to match.
4683 * recog.c (peephole2_optimize): Work with insn lists instead of
4684 SEQUENCE rtl.
4685 * sched-vis.c (print_pattern): Abort on SEQUENCE.
4686 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
4687 Use get_insns instead of gen_sequence.
4688 (copy_loop_body): Likewise and don't emit dummy NOTE.
4689 * genrecog.c: Don't mention SEQUENCE rtl in comments.
4690 * combine.c (try_combine): Expect insn lists from split generator.
4691 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
4692 hand.
4693
4694 2002-06-11 Roger Sayle <roger@eyesopen.com>
4695 Andreas Jaeger <aj@suse.de>
4696
4697 * cfgbuild.c: Update copyright years.
4698
4699 2002-06-11 Andreas Schwab <schwab@suse.de>
4700
4701 * config/m68k/m68k.h (PREDICATE_CODES): Define.
4702
4703 2002-06-11 Eric Christopher <echristo@redhat.com>
4704
4705 * doc/tm.texi (Run-time Target): Add comment about flag_iso
4706 and strict ANSI.
4707 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
4708 * config/mips/ecoffl.h: Ditto.
4709 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
4710 (CPP_PREDEFINES): Ditto.
4711 * config/mips/elfl64.h: Ditto.
4712 * config/mips/elfl.h: Ditto.
4713 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
4714 out until irix header consolidation.
4715 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
4716 with SUBTARGET_OS_CPP_BUILTINS.
4717 * config/mips/iris6.h: Ditto.
4718 (CPLUSPLUS_CPP_SPEC): Remove.
4719 * config/mips/linux.h: Ditto.
4720 * config/mips/netbsd.h: Ditto.
4721 * config/mips/openbsd.h: Ditto.
4722 * config/mips/rtems.h: Ditto.
4723 * config/mips/rtems64.h: Ditto.
4724 * config/mips/sni-svr4.h: Ditto.
4725 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
4726 ISA_MIPS32, ISA_MIPS64): New defines.
4727 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
4728 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
4729 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4730 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
4731 (TARGET_CPU_CPP_BUILTINS): Define.
4732 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
4733 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
4734 (movdicc): Remove check for ISA_MIPS32.
4735 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
4736 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
4737 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
4738 sunge_sf, sunle_df, sunle_sf): New patterns.
4739
4740 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
4741
4742 * Makefile.in: Update cppmain.o.
4743 * cpphash.h (struct cpp_reader): Move some members to a
4744 nested structure.
4745 (trad_line): Rename saved_line.
4746 (_cpp_read_logical_line_trad): Update.
4747 (_cpp_remove_overlay): New.
4748 * cppinit.c (cpp_create_reader): No need to set saved_line.
4749 (cpp_destroy): Update.
4750 (cpp_read_main_file): Only overlay if compiling.
4751 * cpplex.c (continue_after_nul): Return false if in directive.
4752 * cpplib.c (EXPAND): New.
4753 (directive_table, SEEN_EOL): Update.
4754 (end_directive): Remove overlay if traditional; don't skip
4755 line in traditional #define.
4756 (prepare_directive_trad): New.
4757 (_cpp_handle_directive, run_directive): Update for traditional
4758 directives.
4759 (lex_macro_node): Simplify, don't use lex_identifier_trad.
4760 * cpplib.h (struct options): Add preprocess_only.
4761 * cppmain.c: Don't include intl.h.
4762 (cpp_preprocess_file): Set options->preprocess_only.
4763 (scan_translation_unit_trad): Fix, and print line numbers.
4764 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
4765 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
4766 save_replacement_text, _cpp_create_trad_definition): Update for
4767 variable renaming.
4768 (_cpp_overlay_buffer): Save line number.
4769 (_cpp_remove_overlay): Rename from restore_buff, restore line.
4770 (_cpp_read_logical_line_trad): Don't handle overlays here.
4771 (scan_out_logical_line): Process directives.
4772
4773 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
4774
4775 * gthr-win32.h: Wrap functions in extern "C".
4776 (__gthread_key_t): Typedef as unsigned long,
4777 not win32 DWORD.
4778 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
4779 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
4780 (__gthr_win32_once, __gthr_win32_key_create,
4781 __gthr_win32_key_delete, __gthr_win32_getspecific,
4782 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
4783 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
4784 __gthr_win32_mutex_unlock): Declare.
4785 (__gthread_once,__gthread_key_create,
4786 __gthread_key_delete, __gthread_getspecific,
4787 __gthread_setspecific, __gthread_mutex_init_function,
4788 __gthread_mutex_lock,__gthread_mutex_trylock,
4789 __gthread_mutex_unlock): Call corresponding
4790 __gthr_win32_* extern implementations if #defined
4791 __GTHREAD_HIDE_WIN32API.
4792 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
4793 $(srcdir)/config/i386/gthr-win32.c
4794 * config/i386/gthr-win32.c: New implementation file.
4795 (__gthr_win32_once, __gthr_win32_key_create,
4796 __gthr_win32_key_delete, __gthr_win32_getspecific,
4797 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
4798 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
4799 __gthr_win32_mutex_unlock): New functions, based on
4800 static inlines in gthr-win32.h.
4801
4802 2002-06-10 Bob Wilson <bob.wilson@acm.org>
4803
4804 * config/xtensa/xtensa.c (override_options): Don't warn about
4805 using -fpic or -fPIC when PIC is enabled by default.
4806
4807 2002-06-10 Roger Sayle <roger@eyesopen.com>
4808
4809 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
4810
4811 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4812
4813 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
4814 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
4815 exists, substitute its pathname as @extra_modes_file@, define
4816 EXTRA_MODES_FILE to be an appropriate string to #include it
4817 with, and define EXTRA_CC_MODES to 1.
4818
4819 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
4820 it's defined. Get rid of redundancy in calling sequence for
4821 CC; don't use it to define CCmode, to avoid a warning.
4822 * libgcc2.c: Include symcat.h for the sake of machmode.def.
4823
4824 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
4825 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
4826 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
4827 New files.
4828 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
4829 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
4830
4831 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
4832 defining extra CC modes.
4833
4834 2002-06-10 Roger Sayle <roger@eyesopen.com>
4835 Andreas Jaeger <aj@suse.de>
4836
4837 * cfgrtl.c (create_basic_block_structure): Remove index argument
4838 and use last_basic_block++ instead. (create_basic_block): Update.
4839 * cfgbuild.c (find_basic_blocks_1): Likewise.
4840
4841 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
4842 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
4843 * sched-ebb.c (schedule_ebbs): Likewise.
4844 * sched-rgn.c (schedule_insns): Likewise.
4845 * ssa-ccp.c (ssa_const_prop): Likewise.
4846 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
4847 * toplev.c (rest_of_compilation): Likewise.
4848 * config/ia64/ia64.c (ia64_reorg): Likewise.
4849
4850 2002-06-10 Roger Sayle <roger@eyesopen.com>
4851
4852 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
4853 of matching registers.
4854
4855 2002-06-10 Roger Sayle <roger@eyesopen.com>
4856
4857 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
4858 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
4859
4860 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
4861
4862 * config/mmix/mmix.h: Improve comments.
4863 (CPP_SPEC, CPP_PREDEFINES): Don't define.
4864 (TARGET_CPU_CPP_BUILTINS): Define.
4865 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
4866 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
4867 unused predicate.
4868 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
4869 compiler warning.
4870 (mmix_constant_address_p): Remove another
4871 redundant test before case.
4872 (mmix_canonicalize_comparison): Remove unused function.
4873 (mmix_print_operand_address): Don't test and adjust for operand in
4874 non-canonical format.
4875 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
4876 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
4877
4878 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4879
4880 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
4881 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
4882 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
4883 (gen_compare): Use CCmode unconditionally.
4884
4885 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4886
4887 PR optimization/6759
4888 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
4889 the REQ_EQUAL note.
4890
4891 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4892
4893 PR c/6660
4894 * c-decl.c (grokfield): Allow user defined types if they declare
4895 structs or unions for unnamed fields.
4896
4897 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4898
4899 PR c/6809
4900 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
4901
4902 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4903
4904 PR optimization/6842
4905 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
4906 operand subreg cannot be simplified.
4907
4908 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4909
4910 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
4911 (compare_constant): Likewise.
4912 (output_addressed_constants): Likewise.
4913
4914 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4915
4916 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
4917 merge bb with itself.
4918
4919 2002-06-10 Richard Henderson <rth@redhat.com>
4920
4921 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
4922 (builtin_zapnot): Likewise.
4923
4924 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
4925 reservation.
4926
4927 2002-06-10 Eric Christopher <echristo@redhat.com>
4928
4929 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
4930 prototype and function.
4931 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
4932 (call_insn_operand): Remove half pic references.
4933 (legitimate_address_p): Ditto.
4934 * config/i386/i386.h: Remove half pic defines.
4935
4936 2002-06-10 Eric Christopher <echristo@redhat.com>
4937
4938 * doc/extend.texi (Return Address): Add note explaining the side-
4939 effects of inlining on __builtin_return_address.
4940
4941 2002-06-10 Tom Tromey <tromey@redhat.com>
4942
4943 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
4944 (c-common.o): Depend on langhooks.h.
4945
4946 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4947
4948 * cpphash.h (_cpp_read_logical_line_trad,
4949 _cpp_expansions_different_trad): Update prototypes.
4950 * cpplex.c (continue_after_nul): New.
4951 * cppmain.c: Include cpphash.h.
4952 (scan_translation_unit_trad): New.
4953 (cpp_preprocess_file): Call it.
4954 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
4955 overlay.
4956 (_cpp_expansions_different_trad): Update prototype.
4957
4958 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
4959
4960 Fix cfi generation for SH[1-4]:
4961
4962 * sh.c (frame_insn): New function.
4963 (output_stack_adjust): Add parameter emit_fn. All callers changed.
4964 (push): Now returns rtx. Use frame_insn.
4965 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
4966 of a DF register.
4967 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
4968
4969 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4970
4971 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
4972 and gtype-desc.c.
4973 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
4974 (distclean): ... not here. But do delete all testsuite/*.log,
4975 testsuite/*.sum files here. Delete mkheaders. Delete
4976 po/*.gmo and the testsuite directory in a split tree build.
4977
4978 2002-06-10 Jeffrey Law <law@redhat.com>
4979
4980 * alias.c (static_reg_base_value): New to hold RTL for
4981 items allocated once per function for the aliasing code.
4982 (init_alias_once_per_function): Initialize static_reg_base_value.
4983 (init_alias_analysis): Avoid throw-away allocations of RTL by
4984 using pre-computed values in static_reg_base_value.
4985 * function.c (prepare_function_start): Call
4986 init_alias_once_per_function appropriately.
4987 * rtl.h (init_alias_once_per_function): Declare.
4988 * caller-save (init_caller_save): Restructure slightly to
4989 avoid lots of silly RTL generation.
4990 * expr.c (init_expr_once): Likewise.
4991 * reload1.c (reload_cse_regs_1): Allocate throw-away register
4992 RTL object here. Pass it into children.
4993 (reload_cse_simplify_operands): Use passed-in register RTL
4994 object.
4995 (reload_cse_simplify): Pass through throw-away register
4996 RTL object.
4997
4998 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
4999
5000 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
5001
5002 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
5003
5004 * gcc.c (process_command): Avoid assignment to read-only location.
5005 Fix sizeof calculation.
5006
5007 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
5008
5009 * cpphash.h (struct cpp_macro): Put comments on their own lines.
5010 (_cpp_expansions_different_trad): New.
5011 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
5012 * cpptrad.c (canonicalize_text): New.
5013 (scan_out_logical_line): Handle no arguments correctly.
5014 (save_replacement_text): Commit memory when finished.
5015 (_cpp_expansions_different_trad): New.
5016
5017 2002-06-10 Tim Josling <tej@melbpc.org.au>
5018
5019 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
5020 TREELANG and COBOL.
5021 (lang_names): Add treelang and cobol.
5022 (get_file_basename): Add code to support treelang and cobol as
5023 4th and 5th users of c-common.c.
5024
5025 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
5026
5027 * Makefile.in (install-driver): Install driver as
5028 $(target_alias)-gcc-$(version).
5029 * gcc.c (spec_version): Make const.
5030 (process_command): Handle -V and -b by using exec.
5031 * doc/invoke.texi (Target Options): Restore -V option,
5032 update docs for -b option.
5033
5034 2002-06-10 Tim Josling <tej@melbpc.org.au>
5035
5036 * configure.in (remaining_languages_check):
5037 Added check that all languages specified were found.
5038 Exit if not found. Previous behaviour was silent failure.
5039 * configure: Regenerated.
5040
5041 2002-06-10 Tim Josling <tej@melbpc.org.au>
5042
5043 First steps to making treelang documentation compliant, based on
5044 instructions in sourcebuild.texi. Also add to gcc.c list of
5045 default languages.
5046
5047 * doc/contrib.texi: Add self as contributor of treelang.
5048
5049 * doc/frontends.texi: Add mention of treelang.
5050
5051 * doc/invoke.texi (Overall Options): Add mention of treelang.
5052
5053 * doc/standards.texi: Add mention of treelang.
5054
5055 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
5056
5057 * config/cris/cris.c: Include ggc.h
5058
5059 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
5060
5061 * cpphash.h (_cpp_push_text_context): Update.
5062 (_cpp_arguments_ok): New.
5063 * cppmacro.c (_cpp_arguments_ok): New, split out from...
5064 (collect_args): ...here.
5065 (_cpp_push_text_context): Change inputs.
5066 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
5067 replace_args_and_push): New.
5068 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
5069 Don't use IS macros directly.
5070 (scan_out_logical_line): Handle function-like macro argument
5071 collection.
5072 (push_replacement_text): Update.
5073 (replacement_length): Remove.
5074 (_cpp_create_trad_definition): Don't skip whitespace before
5075 checking for '('.
5076
5077 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
5078
5079 * config/avr/avr.c (avr_mcu_types): Update for new devices.
5080 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
5081 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
5082 * config/avr/avr.md ("type" and "length" attributes): New type
5083 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
5084 output a single "call" or "rcall" insn depending on device size.
5085 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
5086
5087 2002-06-09 David Edelsohn <edelsohn@gnu.org>
5088
5089 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
5090 synonym for 630. Add power4. Remove embedded processors. Use -m604
5091 assembler option.
5092 (CPP_CPU_SPEC): Add power3 and power4.
5093 (PROCESSOR_DEFAULT): Change to 604e.
5094 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
5095 (CPP_CPU_SPEC): Similar additions.
5096 (enum process_type): Add POWER4.
5097 (RTX_COSTS): Add POWER4.
5098 (CPP_CPU_SPEC): Similar additions.
5099 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
5100 (PROCESSOR_DEFAULT64): Define.
5101 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
5102 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
5103 branch adjustment.
5104 (rs6000_issue_rate): Add Power4.
5105 * config/rs6000/rs6000.md (cpu attr): Add power4.
5106 (iu compare): Remove 604, 604e, 620, 630.
5107 Add basic Power4 scheduling information.
5108 (mfcr/mtcrf): Change type attribute to cr_logical.
5109
5110 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5111
5112 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
5113 ATTRIBUTE_PRINTF_2.
5114 * gengtype-lex.l: Fix format specifier warning.
5115
5116 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
5117 not isspace.
5118 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
5119 lieu of isspace/IDchar.
5120 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
5121 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
5122 ISSPACE.
5123
5124 2002-06-08 Zack Weinberg <zack@codesourcery.com>
5125
5126 * Makefile.in (LIBCPP_OBJS): Take out version.o.
5127 * cpphash.h (cpp_reader): Take out print_version member.
5128 * cppinit.c: (cpp_handle_option): Don't do anything with
5129 -version. Just set help_only for --version, --target-help.
5130 Just set verbose option for -v.
5131 (cpp_post_options): Don't print a version string.
5132
5133 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
5134
5135 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
5136 (avr_section_type_flags): New, handle .noinit* sections.
5137
5138 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5139
5140 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
5141 and include netbsd_entry_point.
5142 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
5143 (NETBSD_ENTRY_POINT): Define.
5144
5145 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5146
5147 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5148 if not already defined.
5149 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
5150
5151 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
5152
5153 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
5154 in a noreturn function.
5155 (avr_output_function_prologue, avr_output_function_epilogue):
5156 Correct function size calculation. Do not crash on empty function.
5157 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
5158
5159 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5160
5161 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
5162 netbsd_link_spec and netbsd_entry_point.
5163 (LINK_SPEC): Use %(netbsd_link_spec).
5164 (NETBSD_ENTRY_POINT): Define.
5165
5166 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5167
5168 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
5169 linker emulation.
5170 (LINK_ARCH64_SPEC): Likewise.
5171 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
5172 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
5173
5174 2002-06-08 Marc Espie <espie@openbsd.org>
5175
5176 * lists.c (free_list): Fix typo in comment.
5177
5178 2002-06-08 Andreas Jaeger <aj@suse.de>
5179
5180 * lcm.c (optimize_mode_switching): Add unused attribute for
5181 variable.
5182
5183 * sched-deps.c (sched_analyze): Remove unused variable.
5184
5185 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
5186
5187 * diagnostic.def: Don't capitalize diagnostict descriptors.
5188
5189 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5190
5191 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
5192 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
5193 (NETBSD_ENTRY_POINT): Define.
5194
5195 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5196
5197 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
5198 NETBSD_LINK_SPEC_ELF.
5199 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
5200 (NETBSD_ENTRY_POINT): Define.
5201 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
5202 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
5203 netbsd_entry_point.
5204 (NETBSD_ENTRY_POINT): Define.
5205
5206 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5207
5208 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
5209 netbsd_link_spec and netbsd_entry_point.
5210 (LINK_SPEC): Use %(netbsd_link_spec).
5211 (NETBSD_ENTRY_POINT): Define.
5212
5213 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5214
5215 * config/netbsd-elf.h (LINK_SPEC): Rename to...
5216 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
5217 to specify program entry point.
5218
5219 2002-06-07 Jeff Law <law@redhat.com
5220
5221 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
5222 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
5223 than creating a new register.
5224 (distribute_notes): Likewise.
5225 * df.c (df_reg_use_gen): Likewise.
5226 (df_reg_clobber_gen): Likewise.
5227 (df_ref_record): Likewise.
5228 * expr.c (use_regs): Likewise.
5229 * flow.c (propagate_one_insn): Likewise.
5230 (mark_set_1): Likewise.
5231 (mark_used_reg): Likewise.
5232 * reload.c (emit_reload_insns): Likewise.
5233
5234 2002-06-07 Roger Sayle <roger@eyesopen.com>
5235
5236 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
5237 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
5238 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
5239 comparison code comp can be reversed.
5240
5241 2002-06-07 Roger Sayle <roger@eyesopen.com>
5242
5243 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
5244 constants last in comparisons. Optimize (x+1.0)>0.0 into the
5245 equivalent x > -1.0 when -ffast-math.
5246
5247 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
5248
5249 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
5250 * config/mips/t-netbsd: New file.
5251
5252 2002-06-07 Zack Weinberg <zack@codesourcery.com>
5253
5254 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
5255 options their own entries.
5256 (parse_option): Clarify comment.
5257 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
5258 special case. Replace if/strcmp chain for -W options with
5259 use of new OPT_* entries for them.
5260 (cpp_handle_options): Update to match.
5261 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
5262 * c-decl.c: Update call to cpp_handle_option.
5263
5264 2002-06-07 Akim Demaille <akim@epita.fr>
5265
5266 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
5267 Whitespace changes.
5268
5269 2002-06-07 Jeffrey Law <law@redhat.com>
5270
5271 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
5272 on empty lists.
5273
5274 2002-06-07 H.J. Lu (hjl@gnu.org)
5275
5276 * configure.in: Add --enable-__cxa_atexit.
5277 * configure: Regenerated.
5278 * config.in: Likewise.
5279
5280 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
5281 not defined.
5282
5283 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
5284
5285 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
5286
5287 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
5288
5289 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
5290
5291 2002-06-07 Jason Merrill <jason@redhat.com>
5292
5293 * cppexp.c (num_equality_op): Use a temporary variable to work
5294 around gcc 3.0.4 bug.
5295
5296 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
5297
5298 * diagnostic.c (diagnostic_build_prefix): Tidy.
5299
5300 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
5301
5302 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
5303 scan_parameters, save_replacement_text, replacement_length): New.
5304 (scan_out_logical_line): Take a macro and save parameters if
5305 non-NULL.
5306 (_cpp_logical_line_trad): Update.
5307 (_cpp_create_trad_definition): Update to handle function-like
5308 macros.
5309 * cpplex.c (new_buff): Update.
5310 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
5311 * cpphash.h: ...here.
5312 (CPP_ALIGN2, _cpp_save_parameter): New.
5313 * cppmacro.c (save_parameter): Rename, export.
5314 (parse_params): Update.
5315
5316 2002-06-07 Andreas Jaeger <aj@suse.de>
5317
5318 * config/mmix/mmix.c: Remove extra broken prototype for
5319 mmix_init_machine_status.
5320
5321 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
5322
5323 * gengtype.c: Add comments before all the routines.
5324
5325 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
5326
5327 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
5328 from and add t-sh64 to ${tmake_file}.
5329 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
5330 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
5331 * config/sh/t-netbsd-sh5-32: Remove.
5332 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
5333 MULTILIB_ENDIAN.
5334 (MULTILIB_DIRNAMES): Define.
5335
5336 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
5337
5338 * i386.md (and promoting splitters): Disable QI to SImode promoting
5339 when doing so changes immediate to be 32bit.
5340
5341 * rtl.h (emit_*_scope): Declare.
5342 * emit-rtl.c (emit_*_scope): New global functions.
5343 (try_split): Copy scope.
5344 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
5345 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
5346 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
5347 noce_process_if_block, find_cond_trap): Copy scopes.
5348 * recog.c (peephole2_optimize): likewise.
5349
5350 2002-06-06 Jeffrey Law <law@redhat.com>
5351
5352 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
5353
5354 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
5355
5356 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
5357
5358 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5359
5360 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
5361 ($(docdir)/gccinstall.info): New target.
5362 (info): Depend on it.
5363 (gccinstall.dvi): New target.
5364 (dvi): Depend on it.
5365 * doc/.cvsignore: Ignore new info files.
5366 * doc/install.texi (@setfilename): Reflect new info filename.
5367
5368 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
5369
5370 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
5371 on an UNSPEC.
5372
5373 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
5374
5375 PR objc/6834
5376 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
5377 c_common_get_alias_set.
5378 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
5379
5380 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5381
5382 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
5383 functions.
5384 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
5385 * avr/avr.c (avr_output_function_epilogue): Use above to determine
5386 function size.
5387 * pa/pa.c (pa_output_function_prologue): Likewise.
5388
5389 2002-06-05 David S. Miller <davem@redhat.com>
5390
5391 * integrate.c (subst_constants): Handle 'B' RTL format.
5392
5393 2002-06-05 Eric Christopher <echristo@redhat.com>
5394
5395 * varasm.c (make_decl_rtl): Fix comment for removed
5396 halfpic.c.
5397
5398 2002-06-05 Eric Christopher <echristo@redhat.com>
5399
5400 * Makefile.in: Remove missed halfpic bits.
5401
5402 2002-06-05 Eric Christopher <echristo@redhat.com>
5403
5404 * toplev.c: Remove half-pic.
5405 * config/mips/mips.c: Ditto.
5406 * config/mips/mips.h: Ditto. Remove unused defines.
5407 * config/mips/openbsd.h: Update comment to reflect above.
5408 * config/mips/mips.md: Remove half-pic constraints.
5409 * halfpic.h: Delete.
5410 * halfpic.c: Ditto.
5411
5412 2002-06-05 Jeffrey Law <law@redhat.com>
5413
5414 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
5415 rejects (mem (lo_sum (reg) (unspec))), but will allow
5416 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
5417
5418 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
5419
5420 * cpphash.h (_cpp_create_definition): Update prototype.
5421 (_cpp_push_text_context, _cpp_create_trad_definition): New.
5422 ( cpp_lex_identifier_trad): New.
5423 (_cpp_set_trad_context): New.
5424 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
5425 * cpplib.c (SEEN_EOL): Update.
5426 (lex_macro_node): Update for -traditional.
5427 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
5428 * cppmacro.c (_cpp_create_definition): Split into
5429 create_iso_definition() and _cpp_create_trad_definition().
5430 (warn_of_redefinition): Update prototype; handle traditional
5431 macros.
5432 (_cpp_push_text_context): New.
5433 * cpptrad.c (skip_whitespace, push_replacement_text): New.
5434 (lex_identifier): Call ht_lookup with correct start.
5435 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
5436 _cpp_set_trad_context): New.
5437 (scan_out_logical_line): Update to handle changing contexts.
5438
5439 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
5440
5441 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
5442 (shl*-*-elf*): Add.
5443 * config/sh/t-be (MULTILIB_ENDIAN): Set.
5444 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
5445 * t-sh (MULTILIB_ENDIAN): Set.
5446 (MULTILIB_OPTIONS): Use it.
5447 * t-sh64 (MULTILIB_OPTIONS): Likewise.
5448 (MULTILIB_DIRNAMES): Likewise.
5449
5450 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
5451
5452 * toplev.h (report_error_function): Remove.
5453
5454 * diagnostic.h (location_t): New datatype.
5455 (text_info): Likewise.
5456 (diagnostic_info): Likewise.
5457 (output_prefix): New macro.
5458 (diagnostic_last_function_changed): Likewise.
5459 (diagnostic_set_last_function): Likewise.
5460 (diagnostic_last_module_changed): Likewise.
5461 (diagnostic_set_last_module): Likewise.
5462 (report_diagnostic): Now macro.
5463 (diagnostic_set_info): Declare.
5464
5465 * diagnostic.c (report_problematic_module): Rename to
5466 diagnostic_repor_current_module.
5467 (set_diagnostic_context): Remove.
5468 (count_error): Rename to diagnostic_error_count.
5469 (error_function_changed): Remove.
5470 (record_last_error_function): Likewise.
5471 (error_module_changed): Likewise.
5472 (record_last_error_module): Likewise.
5473 (context_as_prefix): Rename to diagnostic_build_prefix.
5474 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
5475 (diagnostic_set_info): New function.
5476
5477 * objc/objc-act.c: #include diagnostic.h
5478 (error_with_ivar): Adjust call to count_error.
5479 (warn_with_method): Likewise.
5480 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
5481
5482 2002-06-05 Bob Wilson <bob.wilson@acm.org>
5483
5484 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
5485 lang_hooks.types.make_type instead of make_node; set up
5486 __va_list_tag type decl.
5487 (xtensa_builtin_saveregs): Remove broken use of
5488 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
5489 for saved registers; add varargs alias set.
5490
5491 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
5492
5493 config:
5494 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
5495 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5496 CPP_PREDEFINES and part of CPP_SPEC.
5497 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
5498 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
5499
5500 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
5501
5502 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
5503
5504 2002-06-05 Alan Modra <amodra@bigpond.net.au>
5505
5506 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
5507
5508 2002-06-04 Zack Weinberg <zack@codesourcery.com>
5509
5510 * gengtype-yacc.y: Make sure all rules end with a semicolon.
5511
5512 2002-06-04 Bob Wilson <bob.wilson@acm.org>
5513
5514 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
5515 typo in function prototype and include "ggc.h" header.
5516
5517 2002-06-04 Richard Henderson <rth@redhat.com>
5518
5519 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
5520 (print_operand) ['U']: Likewise.
5521 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
5522 (alpha_expand_unaligned_store_words): Likewise.
5523 (alpha_expand_builtin_vector_binop): Fix typo.
5524 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
5525 umulh, and cix insns.
5526 (one_arg_builtins): Add cix builtins.
5527 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
5528 (alpha_expand_builtin): Fix typo in arity.
5529 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
5530 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
5531 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
5532 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
5533 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
5534 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
5535 builtin_ctlz, builtin_ctpop): New.
5536 * doc/extend.texi (Alpha Built-in Functions): Update.
5537
5538 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
5539
5540 * gengtype.c (write_gc_root): Don't unnecessarily prevent
5541 global variable-length arrays being roots.
5542
5543 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
5544 * configure.in (config_gtfiles): New variable.
5545 (all_gtfiles): Initialise from config_gtfiles.
5546 * configure: Regenerate.
5547
5548 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
5549
5550 config/i386:
5551 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
5552 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
5553 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
5554 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
5555 win32.h (CPP_SPEC): Remove cpp_cpu.
5556 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
5557 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
5558
5559 2002-06-04 Janis Johnson <janis187@us.ibm.com>
5560
5561 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
5562
5563 2002-06-04 Jeff Law <law@redhat.com.
5564 David Edelsohn <edelsohn@gnu.org>
5565 Michael Matz <matz@kde.org>
5566
5567 * sched-int.h (struct deps): New field libcall_block_tail_insn.
5568 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
5569 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
5570 is set, then mark the current insn as being part of a libcall
5571 scheduling group.
5572 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
5573
5574 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
5575 insns against the issue rate.
5576
5577 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
5578
5579 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
5580 * final.c (final_scan_insn): Likewise.
5581 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
5582 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
5583 * haifa-sched.c (unlink_other_notes): Likeewise.
5584 (reemit_notes): Likewise.
5585 * print-rtl.c (print_rtx): Likewise.
5586 * sched-deps (sched-analyze): Likewise.
5587 * rtl.c (note_insn_name): Likewise.
5588 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
5589 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
5590 (RANGE_*): Kill.
5591
5592 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5593
5594 * varasm.c (mark_constants): Handle RTX format 'B'.
5595
5596 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
5597
5598 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
5599 (struct cpp_context): Add traditional fields.
5600 * cppmacro.c (paste_all_tokens, push_ptoken_context,
5601 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
5602 * cpptrad.c (skip_comment, lex_identifier,
5603 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
5604
5605 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
5606
5607 * gbl-ctors.h: Fix formatting.
5608 * gcc.c: Likewise.
5609 * gccspec.c: Likewise.
5610 * gcov.c: Likewise.
5611 * gcov-io.h: Likewise.
5612 * gcse.c: Likewise.
5613 * ggc-common.c: Likewise.
5614 * ggc.h: Likewise.
5615 * ggc-page.c: Likewise.
5616 * ggc-simple.c: Likewise.
5617 * global.c: Likewise.
5618 * graph.h: Likewise.
5619 * gthr-dce.h: Likewise.
5620 * gthr.h: Likewise.
5621 * gthr-posix.h: Likewise.
5622 * gthr-rtems.h: Likewise.
5623 * gthr-solaris.h: Likewise.
5624 * gthr-win32.h: Likewise.
5625
5626 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
5627
5628 Merge from pch-branch:
5629
5630 * gengtype.h (UNION_OR_STRUCT_P): New macro.
5631 * gengtype.c (write_gc_structure_fields): Use it.
5632 (write_gc_root): Use it here too.
5633
5634 * gengtype.c (write_gc_structure_fields): Assume that lengths
5635 of typenames fit into an 'int'; don't pass a size_t to "%d" in
5636 printf.
5637 (write_gc_marker_routine_for_structure): Likewise.
5638 (write_gc_types): Likewise.
5639 (write_gc_root): Likewise.
5640
5641 * varray.h (VARRAY_CLEAR): New.
5642 (varray_clear): Prototype.
5643 * varray.c (varray_clear): New.
5644 * cselib.c (reg_values_old): New.
5645 (used_regs_old): New.
5646 (cselib_init): Use cached varrays if available to avoid
5647 generating large amounts of garbage.
5648 (cselib_finish): Don't throw away old varrays.
5649
5650 * final.c (insn_addresses_): Move out of ifdef.
5651
5652 * varray.c (uses_ggc): Make more varray kinds GCable.
5653 * varray.h (union varray_data_tag): Let gengtype see
5654 fields 'generic' and 'te'.
5655 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
5656 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
5657 (reg_to_stack): Don't call VARRAY_FREE.
5658 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
5659 (insn_addresses_): Use gengtype to mark.
5660 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
5661 pointers; handle generic pointers in unused union fields.
5662 (get_output_file_with_visibility): Include cselib.h,
5663 insn-addr.h in gtype-desc.c.
5664 * function.c (prologue): Use gengtype to mark.
5665 (epilogue): Likewise.
5666 (sibcall_epilogue): Likewise.
5667 * dependence.c: Include gt-dependence.h, ggc.h.
5668 (struct def_use): Use gengtype to mark.
5669 (struct loop): Likewise.
5670 (struct induction): Likewise.
5671 (struct dependence): Likewise.
5672 (def_use_chain): Likewise.
5673 (dep_chain): Likewise.
5674 (loop_chain): Likewise.
5675 (induction_chain): Likewise.
5676 (init_dependence_analysis): Don't free anything, just clear pointers.
5677 (build_def_use): Use GGC to allocate def_use.
5678 (add_loop): Use GGC to allocate loop.
5679 (find_induction_variable): Use GGC to allocate induction.
5680 (check_node_dependence): Use GGC to allocate induction, dependence.
5681 (dump_node_dependence): Don't free varrays.
5682 (end_dependence_analysis): Likewise.
5683 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
5684 (struct elt_loc_list): Likewise.
5685 (struct elt_list): Likewise.
5686 * cselib.c: Don't include obstack.h.
5687 (hash_table): Use gengtype to mark.
5688 (reg_values): Use gengtype to mark.
5689 (used_regs): Use gengtype to mark.
5690 (cselib_obstack): Delete.
5691 (cselib_startobj): Delete.
5692 (empty_vals): Mark as deletable.
5693 (empty_elt_lists): Mark as deletable.
5694 (empty_elt_loc_lists): Mark as deletable.
5695 (new_elt_list): Use GGC to allocate struct elt_list.
5696 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
5697 (clear_table): Don't delete obstack; don't unnecessarily clear
5698 deletable variables.
5699 (new_cselib_val): Use GGC to allocate struct cselib_val.
5700 (cselib_init): Don't set up obstacks. Use GGC to allocate
5701 hash table.
5702 (cselib_finish): Just clear variables, don't free anything.
5703 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
5704 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
5705 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
5706 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
5707 (gt-reg-stack.h): New rule.
5708 (gt-dependence.h): New rule.
5709 (gtype-desc.o): Add cselib.h, insn-addr.h.
5710
5711 * varray.c: Use only necessary headers.
5712 (element_size): New.
5713 (uses_ggc): New.
5714 (varray_init): Take type, not size. Use GGC if appropriate.
5715 (varray_grow): Update for change to struct varray_head_tag.
5716 Use GGC if appropriate.
5717 * varray.h (struct const_equiv_data): Use gengtype.
5718 (enum varray_data_enum): New.
5719 (union varray_data_tag): Use gengtype.
5720 (struct varray_head_tag): Use gengtype. Replace size field with
5721 enum varray_data_enum.
5722 (varray_init): Update prototype.
5723 (VARRAY_SCHED_INIT): Delete.
5724 (VARRAY_*_INIT): Update for change to varray_init.
5725 (VARRAY_SCHED): Delete.
5726 (VARRAY_PUSH_SCHED): Delete.
5727 (VARRAY_TOP_SCHED): Delete.
5728 * tree.h: Update for change to length specifier.
5729 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
5730 (clone_body): Likewise.
5731 * ssa.h (ssa_definition): Use gengtype to mark.
5732 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
5733 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
5734 * rtl.h (struct rtvec_def): Update for change to length specifier.
5735 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
5736 (struct initial_value_struct): Update for change to length specifier.
5737 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
5738 (ggc_add_tree_varray_root): Delete prototype.
5739 (ggc_mark_rtx_varray): Delete prototype.
5740 (ggc_mark_tree_varray): Delete prototype.
5741 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
5742 (ggc_add_tree_varray_root): Delete.
5743 (ggc_mark_rtx_varray): Delete.
5744 (ggc_mark_tree_varray): Delete.
5745 (ggc_mark_rtx_varray_ptr): Delete.
5746 (ggc_mark_tree_varray_ptr): Delete.
5747 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
5748 (create_varray): Delete prototype.
5749 * gengtype.c (varrays): Delete.
5750 (create_varray): Delete.
5751 (adjust_field_type): Detect array of string pointers.
5752 (process_gc_options): Remove code to handle varray_type option.
5753 (set_gc_used_type): Remove TYPE_VARRAY case.
5754 (output_escaped_param): New.
5755 (write_gc_structure_fields): Use output_escaped_param on all
5756 parameters. Handle 'skip' with 'use_param' option. Handle
5757 arrays of strings. Remove TYPE_VARRAY handling.
5758 (write_gc_roots): Use boolean to detect 'length' option.
5759 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
5760 (struct_fields): Call adjust_field_type on array fields.
5761 (type): Remove VARRAY_TYPE case.
5762 (type_option): Likewise.
5763 * gengtype-lex.l: Don't consider varray_type a keyword.
5764 * function.h: Update for change to length specifier.
5765 (free_eh_status): Delete prototype.
5766 * function.c (free_after_compilation): Don't call free_eh_status.
5767 (reorder_blocks): Don't use VARRAY_FREE.
5768 * except.c (struct eh_status): Update for change to length specifier.
5769 remove varray_type specifier.
5770 (free_eh_status): Delete.
5771 * dwarf2out.c: Include gt-dwarf2out.h.
5772 (used_rtx_varray): Use gengtype to mark, move
5773 outside ifdefs.
5774 (incomplete_types): Likewise.
5775 (decl_scope_table): Likewise.
5776 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
5777 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
5778 * c-tree.h (struct lang_type): Update for change to length specifier.
5779 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
5780 * c-objc-common.c: Include gt-c-objc-common.h.
5781 (deferred_fns): Mark for gengtype.
5782 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
5783 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
5784 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
5785 (gtype-desc.o): Update dependencies.
5786 (dwarf2out.o): Add gt-dwarf2out.h.
5787 (varray.o): Update dependencies.
5788 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
5789 (gt-c-objc-common.h): New rule.
5790 (gt-dwarf2out.h): New rule.
5791 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
5792
5793 * doc/gty.texi (GTY Options): Correct spelling.
5794 (GGC Roots): Likewise.
5795 * Makefile.in (TEXI_CPP_FILES): New.
5796 (TEXI_GCC_FILES): New.
5797 (TEXI_GCCINT_FILES): New.
5798 (TEXI_CPPINT_FILES): New.
5799 ($(docdir)/cpp.info): Use new macros.
5800 ($(docdir)/gcc.info): Likewise.
5801 ($(docdir)/gccint.info): Likewise.
5802 ($(docdir)/cppinternals.info): Likewise.
5803 (cpp.dvi): Likewise.
5804 (gcc.dvi): Likewise.
5805 (gccint.dvi): Likewise.
5806 (cppinternals.dvi): Likewise.
5807
5808 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
5809 * doc/gccint.texi (Top): Include gty.texi.
5810 * doc/gty.texi: New file.
5811
5812 * bitmap.c: Include ggc.h, gt-bitmap.h.
5813 (bitmap_ggc_free): New.
5814 (bitmap_elem_to_freelist): New.
5815 (bitmap_element_free): Use bitmap_elem_to_freelist.
5816 (bitmap_element_allocate): Allow use of GGC.
5817 (bitmap_clear): Use bitmap_elem_to_freelist.
5818 (bitmap_copy): Update for change to bitmap_element_allocate.
5819 (bitmap_set_bit): Likewise.
5820 (bitmap_operation): Update for changes elsewhere.
5821 (bitmap_initialize): Allow to create bitmaps that will use GGC.
5822 * bitmap.h (struct bitmap_element_def): Use gengtype.
5823 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
5824 (bitmap_initialize): Add extra parameter.
5825 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
5826 (BITMAP_ALLOCA): Delete.
5827 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
5828 (BITMAP_GGC_ALLOC): New.
5829 * Makefile.in (gtype-desc.o): Add bitmap.h.
5830 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
5831 (GTFILES): Add bitmap.c.
5832 (gt-bitmap.h): New rule.
5833 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
5834 * basic-block.h: Update for changes to bitmap_initialize.
5835 * except.c (exception_handler_label_map): Move into...
5836 (struct eh_status): Here.
5837 (struct eh_region): Make 'aka' GCable.
5838 (free_eh_status): Don't need to specially handle
5839 exception_handler_label_map.
5840 (add_ehl_entry): Update for changes to exception_handler_label_map.
5841 (find_exception_handler_labels): Likewise.
5842 (remove_exception_handler_label): Likewise.
5843 (maybe_remove_eh_handler): Likewise.
5844 (for_each_eh_label): Likewise.
5845 (remove_eh_handler): Allocate 'aka' using GGC.
5846 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
5847 to list of includes.
5848
5849 * gengtype.c (write_gc_marker_routine_for_structure): Name
5850 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
5851 (write_gc_types): Arrange for the tests with NULL to be inlined.
5852 (write_gc_roots): Update uses of procedure pointers.
5853 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
5854
5855 * Makefile.in (explow.o): Add dependency on gt-explow.h.
5856 (sdbout.o): Add dependency on gt-sdbout.h.
5857
5858 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
5859 (mem_attrs_htab): Likewise.
5860 (init_emit_once): Don't call ggc_add_deletable_htab.
5861 * fold-const.c (size_htab): Use gengtype to clear unused entries.
5862 (size_int_type_wide): Don't call ggc_add_deletable_htab.
5863 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
5864 parameters, use them, change callers.
5865 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
5866 (write_gc_roots): Handle 'if_marked' option.
5867 (main): Don't need to call set_gc_used_type any more.
5868 * ggc.h (ggc_htab_marked_p): Delete.
5869 (ggc_htab_mark): Delete.
5870 (struct ggc_cache_tab): New.
5871 (gt_ggc_cache_rtab): New declaration.
5872 * ggc-common.c (struct d_htab_root): Delete.
5873 (d_htab_roots): Delete.
5874 (ggc_add_deletable_htab): Delete.
5875 (ggc_htab_delete): Handle new htab-deleting mechanism.
5876 (ggc_mark_roots): Use new htab-deleting mechanism.
5877 * tree.c (type_hash_table): Use gengtype to clear unused entries.
5878 Make static.
5879 (init_obstacks): Don't call ggc_add_deletable_htab.
5880
5881 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
5882 (struct hashed_entry): Likewise.
5883 (nst_method_hash_list): Likewise.
5884 (cls_method_hash_list): Likewise.
5885 (HASH_ALLOC_LIST_SIZE): Delete.
5886 (ATTR_ALLOC_LIST_SIZE): Delete.
5887 * objc/objc-act.c (hash_init): Use ggc to allocate
5888 nst_method_hash_list, cls_method_hash_list.
5889 (hash_enter): Use ggc to allocate; allocate one entry at a time.
5890 (hash_add_attr): Likewise.
5891 (ggc_mark_hash_table): Delete.
5892 (objc_act_parse_init): Delete.
5893 (objc_init): Delete reference to objc_act_parse_init.
5894 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
5895 obstack.h. Replace references to 'struct hash_table' with htab_t.
5896 (struct symbol_hash_entry): Replace hash header with key field.
5897 (struct file_hash_entry): Replace hash header with key field.
5898 (struct demangled_hash_entry): Replace hash header with key field.
5899 (hash_string_eq): New.
5900 (hash_string_hash): New.
5901 (symbol_hash_newfunc): Delete.
5902 (symbol_hash_lookup): Modify to use htab_t.
5903 (file_hash_newfunc): Delete.
5904 (file_hash_lookup): Modify to use htab_t.
5905 (demangled_hash_newfunc): Delete.
5906 (demangled_hash_lookup): Modify to use htab_t.
5907 (tlink_init): Modify to use htab_t.
5908 * hash.h: Delete.
5909 * hash.c: Delete.
5910 * ggc.h: Delete forward structure declarations.
5911 Delete prototypes for deleted functions.
5912 * ggc-common.c: Don't include hash.h.
5913 (ggc_add_tree_hash_table_root): Delete.
5914 (ggc_mark_tree_hash_table_entry): Delete.
5915 (ggc_mark_tree_hash_table): Delete.
5916 (ggc_mark_tree_hash_table_ptr): Delete.
5917 * gengtype.c (write_gc_structure_fields): Allow param_is option.
5918 (write_gc_marker_routine_for_structure): Use visibility of
5919 the parameter if there is one.
5920 * function.c: Replace hash.h with hashtab.h. Replace references
5921 to 'struct hash_table *' with htab_t.
5922 (struct insns_for_mem_entry): Include a plain key.
5923 (fixup_var_refs_insns_with_hash): Update to use htab_t.
5924 (insns_for_mem_newfunc): Delete.
5925 (insns_for_mem_hash): Update to use htab_t.
5926 (insns_for_mem_comp): Likewise.
5927 (insns_for_mem_walk): Likewise.
5928 * c-lang.c: Include ggc.h.
5929 * Makefile.in (OBJS): Remove hash.o.
5930 (c-lang.o): Add GGC_H.
5931 (COLLECT2_OBJS): Remove hash.o.
5932 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
5933 (ggc-common.o): Remove hash.h.
5934 (function.o): Remove hash.h, add HASHTAB_H.
5935 (genautomata.o): Remove hash.h, add HASHTAB_H.
5936
5937 * varasm.c (mark_const_str_htab_1): Delete.
5938 (mark_const_str_htab): Delete.
5939 (const_str_htab_del): Delete.
5940 (const_str_htab): Use gengtype to mark.
5941 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
5942 allocate them.
5943 * tree.c (mark_tree_hashtable_entry): Delete.
5944 (mark_tree_hashtable): Delete.
5945 * tree.h (mark_tree_hashtable): Delete prototype.
5946 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
5947 (ggc_mark): Likewise.
5948 (ggc_calloc): New.
5949 (htab_create_ggc): New.
5950 * ggc-common.c (ggc_calloc): New.
5951 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
5952 (struct type): Add param_struct structure.
5953 * gengtype.c (param_structs): New.
5954 (adjust_field_type): Handle param_is option.
5955 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
5956 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
5957 (write_gc_structure_fields): Add new PARAM parameter. Update
5958 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
5959 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
5960 Use it to generate function name. Update callers.
5961 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
5962 Process them.
5963 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
5964 option.
5965 (main): Define PTR as pointer-to-scalar. Don't specially
5966 mark deferred_string or ehl_map_entry.
5967 * gengtype-yacc.y (PARAM_IS): Add new token.
5968 (externstatic): Use adjust_field_type.
5969 (type_option): Add PARAM_IS.
5970 * gengtype-lex.l: Add rule for typedef of function pointers.
5971 Add rule for PARAM_IS.
5972 (IWORD): Add size_t.
5973 * except.c (exception_handler_label_map): Use gengtype to mark.
5974 (type_to_runtime_map): Likewise.
5975 (mark_ehl_map_entry): Delete.
5976 (mark_ehl_map): Delete.
5977 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
5978 (t2r_mark_1): Delete.
5979 (t2r_mark): Delete.
5980 * Makefile.in (gtype-desc.o): Correct dependencies.
5981 (GTFILES): Add hashtab.h.
5982 (genautomata.o): Actually uses hashtab.h.
5983
5984 * Makefile.in (stringpool.o): Add $(GGC_H).
5985 (dwarf2asm.o): Likewise.
5986 (GTFILES): Add hashtable.h.
5987 * c-common.h (struct c_common_identifier): Use gengtype.
5988 * c-decl.h (c_mark_tree): Delete.
5989 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5990 * c-tree.h (struct lang_identifier): Use gengtype.
5991 (union lang_tree_node): New.
5992 (c_mark_tree): Delete prototype.
5993 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
5994 dwarf2_debug_hooks.
5995 * gengtype-lex.l (IWORD): Allow 'bool'.
5996 (ptr_alias): Match.
5997 * gengtype-yacc.y (ALIAS): New token.
5998 (type_option): New rule.
5999 (option): Use type_option.
6000 * gengtype.c (process_gc_options): New.
6001 (set_gc_used_type): Use it.
6002 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
6003 Add new variable 't' to hold the type of the field being processed.
6004 Add more error checking. Use UNION_P when looking at 'desc' option.
6005 Handle language-specific structures containing other
6006 language-specific structures.
6007 (write_gc_types): Handle 'ptr_alias' option.
6008 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
6009 * ggc-common.c (ggc_pending_trees): Delete.
6010 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
6011 (ggc_mark_trees): Delete.
6012 (gt_ggc_m_tree_node): Delete.
6013 * ggc.h (ggc_pending_trees): Delete.
6014 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
6015 * hashtable.h (ht_identifier): Use gengtype.
6016 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
6017 * langhooks.h (struct lang_hooks): Delete mark_tree.
6018 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
6019 anyway.
6020 * system.h: Poison LANG_HOOKS_MARK_TREE.
6021 * tree.c (tree_node_structure): New.
6022 * tree.h (struct tree_common): Use gengtype.
6023 (struct tree_int_cst): Likewise.
6024 (struct tree_real_cst): Likewise.
6025 (struct tree_string): Likewise.
6026 (struct tree_complex): Likewise.
6027 (struct tree_vector): Likewise.
6028 (struct tree_identifier): Likewise.
6029 (struct tree_list): Likewise.
6030 (struct tree_vec): Likewise.
6031 (struct tree_exp): Likewise.
6032 (struct tree_block): Likewise.
6033 (struct tree_type): Likewise.
6034 (struct tree_decl): Likewise.
6035 (enum tree_structure_enum): New.
6036 (union tree_node): Use gengtype, with an alias.
6037 (tree_node_structure): Prototype.
6038 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
6039
6040 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
6041 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
6042 to LANG_HOOKS_FUNCTION_FINAL.
6043 * Makefile.in (GTFILES): Add bitmap.h.
6044 * except.c (struct eh_region): Mark field 'aka' to be skipped.
6045
6046 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
6047 (alpha_init_machine_status): Give proper type.
6048 * Makefile.in (c-lang.o): Depend on gtype-c.h.
6049 (optabs.o): Depend on gt-optabs.h.
6050 (GTFILES): Add optabs.o.
6051 (gt-optabs.h): Add rule.
6052 * optabs.c: Include gt-optabs.h.
6053
6054 * gengtype.c (set_gc_used_type): Correct some errors in last change.
6055 (write_gc_structure_fields): If a field which should be NULL is
6056 not, abort.
6057 * c-pragma.c: Move struct align_stack and variable alignment_stack
6058 out from the ifdef.
6059
6060 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
6061 * config/xtensa/xtensa.c: Include gt-cris.h.
6062 (struct machine_function): Use gengtype to mark.
6063 * config/mmix/mmix.h (struct machine_function): Use gengtype
6064 to mark.
6065 * config/cris/t-cris: Add dependencies for gt-cris.h.
6066 * config/cris/cris.c: Include gt-cris.h.
6067 (struct machine_function): Use gengtype to mark.
6068 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
6069 to mark.
6070 * doc/tm.texi (Per-Function Data): Delete references to
6071 mark_machine_status.
6072 * config/ia64/ia64.c (ia64_override_options): Don't set
6073 mark_machine_status.
6074 * config/i386/i386.c (override_options): Likewise.
6075 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
6076 * config/arm/arm.c (arm_init_expanders): Likewise.
6077 * config/alpha/alpha.c (override_options): Likewise.
6078 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
6079 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
6080 (write_gc_structure_fields): Don't handle 'really' option.
6081 Handle 'maybe_null' option.
6082 (write_gc_types): Handle 'maybe_null' option.
6083 * function.h (struct function): Don't use "really".
6084 (mark_machine_status): Delete declaration.
6085 (mark_lang_status): Delete declaration.
6086 (gt_ggc_mr_machine_function): Delete prototype.
6087 (gt_ggc_mr_language_function): Delete prototype.
6088 * function.c (mark_machine_status): Delete.
6089 (mark_lang_status): Delete.
6090 (gt_ggc_mr_machine_function): Delete.
6091 (gt_ggc_mr_language_function): Delete.
6092 * c-tree.h (mark_c_function_context): Delete prototype.
6093 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
6094 * c-decl.c (struct language_function): Rename from struct
6095 c_language_function. Update uses. Use gengtype to mark.
6096 (mark_c_function_context): Delete.
6097 * c-common.h (struct c_language_function): Rename from struct
6098 language_function.
6099 (mark_stmt_tree): Delete prototype.
6100 (c_mark_lang_decl): Delete prototype.
6101 (mark_c_language_function): Delete prototype.
6102 * c-common.c (mark_stmt_tree): Delete.
6103 (c_mark_lang_decl): Delete.
6104 (mark_c_language_function): Delete.
6105
6106 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
6107 (lang_bitmap): New typedef. Use where appropriate.
6108 (struct type): Add gc_used field, lang_struct field.
6109 (UNION_P): New macro.
6110 (new_structure): New prototype.
6111 (find_structure): Remove 'pos' parameter. Change all callers.
6112 * gengtype-lex.l: Update for changes to find_structure.
6113 * gengtype-yacc.y (typedef_struct): Use new_structure.
6114 (yacc_ids): Suppress warning.
6115 (type): Use new_structure.
6116 * gengtype.c (string_type): Update for changes to struct type.
6117 (find_structure): Just find a structure, don't worry about
6118 creating one.
6119 (new_structure): New.
6120 (note_yacc_type): Use new_structure.
6121 (set_gc_used_type): New.
6122 (set_gc_used): New.
6123 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
6124 (write_gc_types): Handle TYPE_LANG_STRUCT.
6125 (write_gc_marker_routine_for_structure): New.
6126 (main): Call set_gc_used. Add some calls to set_gc_used_type
6127 for places where GCC doesn't use gengtype properly yet.
6128 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
6129 (gt_ggc_m_tree_node): Likewise.
6130
6131 * varasm.c (copy_constant): Call expand_constant if we hit
6132 something we can't recognise.
6133
6134 * ggc-common.c (ggc_mark_rtvec_children): Delete.
6135 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
6136 (lang_mark_false_label_stack): Delete.
6137 * rtl.h (struct rtvec_def): Use gengtype to mark.
6138 * ggc.h (ggc_mark_rtvec): Delete.
6139 (gt_ggc_m_rtvec_def): Delete.
6140 (ggc_mark_nonnull_tree): Delete.
6141 (ggc_mark_rtvec_children): Delete prototype.
6142 (lang_mark_false_label_stack): Delete declaration.
6143
6144 * gengtype.h (note_yacc_type): Add prototype.
6145 * gengtype.c (note_yacc_type): New function.
6146 * gengtype-lex.l: Add lexer support for yacc files.
6147 * gengtype-yacc.y (start): Extract union from yacc files.
6148 (yacc_union): New rule.
6149 (yacc_typematch): New rule.
6150 (yacc_ids): New rule.
6151 (enum_items): Tweak for efficiency.
6152 (optionseq): Likewise.
6153
6154 * c-common.h (struct language_function): Use gengtype.
6155 (struct c_lang_decl): Likewise.
6156 * c-tree.h (struct lang_decl): Likewise.
6157 (struct lang_type): Likewise.
6158 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
6159 tree language substructures.
6160
6161 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
6162 ggc_mark_tree.
6163 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
6164
6165 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
6166
6167 * stmt.c (struct nesting): Add discriminator. Use gengtype to
6168 mark. Remove 'data.block.cleanup_ptr' field.
6169 (struct stmt_status): Use usual technique to mark struct nesting.
6170 (gt_ggc_mr_nesting_cond): Delete.
6171 (gt_ggc_mr_nesting_loop): Delete.
6172 (gt_ggc_mr_nesting_block): Delete.
6173 (gt_ggc_mr_nesting_case_stmt): Delete.
6174 (expand_start_cond): Set discriminator.
6175 (expand_start_loop): Likewise.
6176 (expand_start_null_loop): Likewise.
6177 (expand_start_bindings_and_block): Set discriminator. Don't set
6178 deleted fields.
6179 (expand_decl_cleanup): Replace 'cleanup_ptr' with
6180 &thisblock->data.block.cleanups.
6181 (expand_start_case): Set discriminator.
6182 (expand_start_case_dummy): Set discriminator.
6183
6184 * ggc-callbacks.c: Remove.
6185
6186 * gengtype.h (struct type): Add 'u.s.bitmap' field.
6187 (find_structure): Add 'pos' parameter.
6188 * gengtype-lex.l: Update callers to find_structure.
6189 * gengtype-yacc.y: Likewise.
6190 * gengtype.c (find_structure): Allow for structures to be defined
6191 in multiple language backends.
6192 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
6193 (counter): Rename to gc_counter.
6194 (write_gc_structure_fields): Fail when writing out fields for
6195 an incomplete structure. Ignore arrays of scalars. Handle
6196 'tree_vec' special.
6197 (write_gc_types): Reset counter for each procedure written.
6198
6199 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
6200 (free_case_nodes): Delete.
6201 (expand_end_case_type): Delete call to free_case_nodes.
6202
6203 * Makefile.in (cselib.o): Include gt-<filename>.h.
6204 (gcse.o): Likewise.
6205 (profile.o): Likewise.
6206 (alias.o): Likewise.
6207 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
6208 alphabetize backend files.
6209 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
6210 * alias.c: Use gengtype for roots.
6211 * c-common.h (struct stmt_tree_s): Use gengtype.
6212 * c-decl.c: Use gengtype for roots.
6213 * cselib.c: Use gengtype for roots.
6214 * expr.c: Use gengtype for roots.
6215 * fold-const.c: Use gengtype for roots.
6216 * gcse.c: Use gengtype for roots.
6217 * gengtype-lex.l: Handle typedefs of function types.
6218 Allow for empty array bounds.
6219 Allow processing to stop on initialisers.
6220 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
6221 (semiequal): New rule.
6222 * gengtype.c (create_file): Tidy output files.
6223 (get_output_file_with_visibility): Fix paren warning. Fix bug
6224 involving multiple input files mapping to one output file.
6225 (write_gc_structure_fields): Skip arrays of scalars.
6226 (write_gc_types): Tidy output files.
6227 (write_gc_root): New function.
6228 (write_gc_roots): Fix bugs, add support for roots that are
6229 structures.
6230 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
6231 (ggc_mark_tree_ptr): Delete.
6232 (ggc_add_rtx_root): Delete.
6233 (ggc_add_tree_root): Delete.
6234 (ggc_del_root): Delete.
6235 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
6236 allocate struct initial_value_struct.
6237 * profile.c: Use gengtype for roots.
6238 * sdbout.c: Use gengtype for roots.
6239 * varasm.c (mark_weak_decls): Delete unused prototype.
6240 (mark_const_hash_entry): Delete unused function.
6241 * config/darwin-protos.h: Use gengtype for roots.
6242 (machopic_add_gc_roots): Delete.
6243 * config/arm/arm.c: Use gengtype for roots.
6244 * config/arm/arm.h: Use gengtype for roots.
6245 * config/c4x/c4x-protos.h: Use gengtype for roots.
6246 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
6247 * config/d30v/d30v-protos.h: Use gengtype for roots.
6248 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
6249 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
6250 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
6251 * config/ia64/ia64-protos.h: Use gengtype for roots.
6252 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
6253 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
6254 * config/m68hc11/m68hc11.c (z_reg): Make global.
6255 (z_reg_qi): Make global.
6256 (m68hc11_add_gc_roots): Delete.
6257 * config/mcore/mcore-protos.h: Use gengtype for roots.
6258 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
6259 * config/mips/mips.c (mips_add_gc_roots): Delete.
6260 * config/mips/mips.h: Use gengtype for roots.
6261 * config/mmix/mmix.c (override_options): Use gengtype for roots.
6262 * config/mmix/mmix.h: Use gengtype for roots.
6263 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
6264 * config/mn10200/mn10200.h: Use gengtype for roots.
6265 * config/pa/pa.c: Use gengtype for roots, marking.
6266 (struct deferred_plabel): Use GGC, gengtype.
6267 (pa_add_gc_roots): Delete.
6268 (mark_deferred_plabels): Delete.
6269 * config/pj/pj-protos.h: Use gengtype for roots.
6270 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
6271 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
6272 machopic_add_gc_roots.
6273 * config/rs6000/rs6000.h: Use gengtype for roots.
6274 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
6275 (gt-darwin.h): Add rule.
6276 * config/sh/sh.c: Use gengtype for roots.
6277 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
6278 (gt-sh.h): Add rule.
6279 * config/sparc/sparc.c: Use gengtype for roots.
6280 (sparc_add_gc_roots): Delete.
6281 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
6282 (mark_ultrasparc_pipeline_state): Delete.
6283 * config/sparc/sparc.h: Use gengtype for roots.
6284
6285 * Makefile.in (c-parse.o): Update dependencies.
6286 (c-common.o): Likewise.
6287 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
6288 Add dependencies for the files they generate.
6289 * c-common.c: Replace ggc_add_* uses with GTY annotations.
6290 * c-common.h: Likewise.
6291 * c-decl.c: Likewise.
6292 (gt_ggc_mp_binding_level): Delete.
6293 * c-lang.c: Include gtype-c.h.
6294 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
6295 gt-c-parse.h.
6296 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
6297 (gt_ggc_mp_align_stack): Delete.
6298 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
6299 * function.c: Replace ggc_add_* uses with GTY annotations.
6300 (gt_ggc_mp_function): Delete.
6301 * function.h: Replace ggc_add_* uses with GTY annotations.
6302 * gengtype.c (lang_names): New.
6303 (NUM_BASE_FILES): New.
6304 (open_base_files): Create language base files.
6305 (startswith): New.
6306 (get_file_basename): New.
6307 (get_base_file_bitmap): New.
6308 (get_output_file_with_visibility): Rename from get_output_file.
6309 Add more mappings for various C/Objc filenames.
6310 (finish_root_table): New.
6311 (write_gc_roots): Handle dependencies and scoping properly.
6312 * gengtype.h: Add prototypes for new functions.
6313 * ggc-common.c (struct deletable_root): Delete.
6314 (deletables): Delete.
6315 (ggc_add_deletable_root): Delete.
6316 (ggc_mark_roots): No need to deal with deleted functionality.
6317 * ggc.h (ggc_add_deletable_root): Delete prototype.
6318 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
6319 (gtype-objc.h): Add rule to create.
6320 * objc/config-lang.in (gtfiles): New.
6321 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
6322 ggc_add_* with GTY markers. Include gtype-objc.h.
6323 (ggc_mark_imp_list): Delete.
6324 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
6325 * objc/objc-lang.c: Random Whitespace Change.
6326
6327 * except.h (exception_handler_labels): Delete.
6328 (get_exception_handler_labels): New.
6329 * except.c (exception_handler_labels): Delete.
6330 (struct eh_status): Add exception_handler_labels field.
6331 (doing_eh): Don't add exception_handler_labels as root.
6332 (free_eh_status): Don't need to free exception_handler_labels.
6333 (get_exception_handler_labels): New.
6334 (find_exception_handler_labels): Update for move of
6335 exception_handler_labels.
6336 (remove_exception_handler_label): Likewise.
6337 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
6338 * jump.c (rebuild_jump_labels): Likewise.
6339 * loop.c (find_and_verify_loops): Likewise.
6340 * sched-rgn.c (is_cfg_nonregular): Likewise.
6341
6342 * gengtype.c (write_gc_structure_fields): Handle variable-length
6343 TYPE_ARRAYs.
6344
6345 * varasm.c (struct weak_syms): Use GGC, gengtype.
6346 (mark_weak_decls): Delete.
6347 (weak_decls): Likewise.
6348 (add_weak): Likewise.
6349 (remove_from_pending_weak_list): Likewise.
6350 (init_varasm_once): Likewise.
6351
6352 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
6353 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
6354 stor-layout.c, regclass.c, and lists.c.
6355 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
6356 gt-regclass.h and gt-lists.h on s-gtype.
6357 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
6358 * except.c: Use gengtype for roots.
6359 * explow.c: Use gengtype for roots. Include gt-explow.h.
6360 * expr.h (init_stor_layout_once): Delete prototype.
6361 * function.c: Use gengtype for roots.
6362 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
6363 * gengtype-yacc.y (start): Can also be an externstatic.
6364 (externstatic): New production.
6365 (struct_fields): Correct array bounds inversion for 2-d arrays.
6366 * gengtype.c (variables): New variable.
6367 (note_variable): New function.
6368 (get_output_file): Include libfuncs.h into gtype-desc.c.
6369 (get_output_file_name): New function.
6370 (write_gc_structure_fields): Suppress warnings.
6371 (write_gc_types): Make static.
6372 (put_mangled_filename): New function.
6373 (write_gc_roots): New function.
6374 (main): Call write_gc_roots.
6375 * gengtype.h (note_variable): Prototype.
6376 (get_output_file_name): Prototype.
6377 (write_gc_types): Delete prototype.
6378 * ggc.h: Clean up unnecessary structure predefinitions.
6379 (struct ggc_root_tab): Define.
6380 (gt_ggc_m_rtx_def): Make function, not macro.
6381 (gt_ggc_m_tree_node): Likewise.
6382 * libfuncs.h: Use gengtype for roots.
6383 * lists.c: Use gengtype for roots. Include gt-lists.h.
6384 (init_EXPR_INSN_LIST_cache): Delete.
6385 * optabs.c: Use gengtype for roots.
6386 (gt_ggc_mp_optab): Delete.
6387 * optabs.h: Use gengtype for roots.
6388 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
6389 * rtl.h: Use gengtype for roots.
6390 (init_EXPR_INSN_LIST_cache): Delete prototype.
6391 * stor-layout.c: Use gengtype for roots.
6392 Include gt-stor-layout.h.
6393 (init_stor_layout_once): Delete.
6394 * toplev.c: Use gengtype for roots. Delete calls to deleted
6395 routines.
6396 * tree.c: Use gengtype for roots.
6397 * tree.h: Use gengtype for roots.
6398 * varasm.c: Use gengtype for roots.
6399
6400 * Makefile.in (GTFILES): Add @all_gtfiles@.
6401 * configure: Regenerate.
6402 * configure.in: Construct all_gtfiles from the gtfiles definitions
6403 in config-lang.in.
6404 * gengtype-yacc.y (type): Warn about duplicate structure names.
6405 * gengtype.c (get_output_file): Handle .c files in language
6406 subdirectories.
6407
6408 * Makefile.in (GTFILES): Run gengtype on all the config files
6409 and on the target .c file.
6410 * except.c (mark_eh_region): Delete.
6411 (init_eh_for_function): Use GGC on struct eh_status.
6412 (mark_eh_status): Delete.
6413 (free_eh_status): Use GGC.
6414 (expand_eh_region_start): Use GGC to
6415 (collect_eh_region_array): Allocate last_region_number using GGC.
6416 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
6417 (remove_eh_handler): Let GGC free struct eh_region.
6418 (add_call_site): Use GGC to reallocate call_site_record array.
6419 * function.c (init_machine_status): Update calling sequence.
6420 (mark_machine_status): Likewise.
6421 (mark_lang_status): Likewise.
6422 (prepare_function_start): Update init_machine_status call.
6423 (mark_function_status): Delete.
6424 (maybe_mark_struct_function): Delete.
6425 (ggc_mark_struct_function): Delete.
6426 (gt_ggc_mp_function): New.
6427 (gt_ggc_mr_machine_function): New.
6428 (gt_ggc_mr_language_function): New.
6429 (init_function_once): Use canonical names.
6430 * function.h (struct function): Use gengtype.
6431 (init_machine_status): Return the structure.
6432 (mark_machine_status): Take a 'void *'.
6433 (mark_lang_status): Likewise.
6434 * ggc-common.c (ggc_mark_trees): Use canonical name for
6435 ggc_mark_struct_function.
6436 * tree.h (ggc_mark_struct_function): Delete prototype.
6437 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
6438 (alpha_init_machine_status): Likewise.
6439 (override_options): Use canonical name for alpha_mark_machine_status.
6440 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
6441 * config/arm/arm.h (struct machine_function): Use gengtype.
6442 * config/arm/arm.c (arm_mark_machine_status): Delete.
6443 (arm_init_machine_status): Update calling sequence.
6444 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
6445 * config/cris/cris.c (cris_init_machine_status): Update
6446 calling sequence.
6447 * config/d30v/d30v.h (struct machine_function): Use gengtype.
6448 * config/d30v/d30v.c (d30v_init_machine_status): Update
6449 calling sequence.
6450 (d30v_mark_machine_status): Delete.
6451 * config/i386/i386.c: Include gt-i386.h.
6452 (struct machine_function): Use gengtype.
6453 (ix86_init_machine_status): Update calling sequence.
6454 (ix86_mark_machine_status): Delete.
6455 (override_options): Use canonical namke for ix86_mark_machine_status.
6456 * config/ia64/ia64.h (struct machine_function): Use gengtype.
6457 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
6458 sequence.
6459 (ia64_mark_machine_status): Delete.
6460 (ia64_override_options): Use canonical name for
6461 ia64_mark_machine_status.
6462 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
6463 sequence.
6464 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
6465 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6466 * gengtype.c (get_output_file): Fix warning.
6467 (main): Add prototype to suppress warning.
6468 * tree.c: Remove tree_hash_mark prototype.
6469
6470 * tree.h (init_stmt): Delete prototype.
6471 * toplev.c (lang_independent_init): Don't call init_stmt.
6472 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
6473 (stmt_obstack): Delete.
6474 (POPSTACK): No need to free 'struct nesting'.
6475 (gt_ggc_mr_nesting_cond): Use canonical names.
6476 (gt_ggc_mr_nesting_loop): Use canonical names.
6477 (gt_ggc_mr_nesting_block): Use canonical names.
6478 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
6479 (mark_stmt_status): Delete.
6480 (init_stmt): Delete.
6481 (clear_last_expr): Clear both last_expr_type and last_expr_value.
6482 Use it everywhere that last_expr_type was cleared.
6483 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
6484 (zap_lists): Delete.
6485 * ggc.h (ggc_add_deletable_root): Prototype.
6486 (mark_stmt_status): Remove prototype.
6487 * ggc-common.c (ggc_add_deletable_root): New.
6488 (ggc_mark_roots): Handle deletable roots.
6489 * function.c (ggc_mark_struct_function): Use canonical name
6490 for mark_stmt_status.
6491 * emit-rtl.c (free_sequence_stack): New.
6492 (start_sequence): Use a freelist for sequences.
6493 (end_sequence): Likewise.
6494 (init_emit_once): Add free_sequence_stack as a deleteable root.
6495 * c-pragma.c Include gt-c-pragma.h.
6496 (struct align_stack): Use gengtype.
6497 (push_alignment): Use GGC for struct align_stack.
6498 (mark_align_stack): Delete.
6499 (gt_ggc_mp_align_stack): New.
6500 (init_pragma): Use canonical name for mark_align_stack.
6501 * c-decl.c: Include gt-c-decl.h.
6502 (struct binding_level): Use gengtype.
6503 (make_binding_level): Use GGC; handle the freelist here.
6504 (pop_binding_level): New.
6505 (pushlevel): Move code into make_binding_level.
6506 (push_label_level): Likewise.
6507 (poplevel): Move code into pop_binding_level.
6508 (pop_label_level): Likewise.
6509 (mark_binding_level): Delete.
6510 (gt_ggc_mp_binding_level): New.
6511 (c_init_decl_processing): Use canonical name for mark_binding_level.
6512 Add free_binding_level as deletable root.
6513 (mark_c_function_context): Use canonical name for mark_binding_level.
6514 * Makefile.in (c-decl.o): Add gt-c-decl.h.
6515 (c-pragma.o): Add gt-c-pragma.h.
6516 (GTFILES): Add c-decl.c and c-pragma.c.
6517 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
6518
6519 * tree.c (struct type_hash): Use gengtype.
6520 (init_obstacks): Use canonical name for type_hash_mark.
6521 (type_hash_mark): Delete.
6522 Include gt-tree.h.
6523 * rtl.h (struct mem_attrs): Use gengtype.
6524 * optabs.h (struct optab): Use gengtype.
6525 * optabs.c (expand_binop): Squish signed/unsigned warning.
6526 (mark_optab): Make local, use canonical name, use autogenerated
6527 marker procedure.
6528 (init_optabs): Use canonical name for mark_optab.
6529 (new_optab): Use GGC to allocate optabs.
6530 * ggc.h: Delete mark_optab prototype.
6531 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
6532 mem_attrs marker procedure.
6533 * gengtype.c (get_output_file): Include headers in gtype-desc.c
6534 explicitly rather than deducing them from file names.
6535 (write_gc_structure_fields): Handle arrays of structures.
6536 (main): Return non-zero exit code if errors occur during output.
6537 * emit-rtl.c (mem_attrs_mark): Delete.
6538 (init_emit_once): Use canonical name for mem_attrs marker procedure.
6539 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
6540 (tree.o): Depend on gt-tree.h.
6541 (GTFILES): Add rtl.h, optabs.h, tree.c.
6542 (gt-tree.h): Add it to s-gtype rule.
6543
6544 * .cvsignore: Ignore gengtype flex/bison generated files.
6545 * Makefile.in (GGC_H): Add gtype-desc.h.
6546 (OBJS): Add gtype-desc.o.
6547 (GEN): Add gengtype.
6548 (STAGESTUFF): Add gengtype.
6549 (varasm.o): Add gt-varasm.h.
6550 (stmt.o): Add gt-stmt.h.
6551 (except.o): Add gt-except.h.
6552 (integrate.o): Add gt-integrate.h.
6553 (GTFILES): New.
6554 Add new rules for new files.
6555 * configure: Regenerate.
6556 * configure.in: Correct defaults.h paths.
6557 * emit-rtl.c (mark_sequence_stack): Delete.
6558 (mark_emit_status): Delete.
6559 (start_sequence): Allocate sequence structures using GGC.
6560 (end_sequence): Allocate sequence structures using GGC.
6561 * except.c: Use gengtype for various structures. Include
6562 gt-except.h.
6563 * expr.c (mark_expr_status): Delete.
6564 * function.c: Use gengtype for various structures. Include
6565 gt-function.h.
6566 (mark_function_status): Use standard gt_ggc names for marker functions.
6567 (ggc_mark_struct_function): Likewise.
6568 * function.h: Use gengtype for various structures.
6569 * gengtype-lex.l: New file.
6570 * gengtype-yacc.y: New file.
6571 * gengtype.c: New file.
6572 * gengtype.h: New file.
6573 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
6574 the standard names. Remove some now-unnecessary prototypes.
6575 * integrate.c: Use gengtype for various structures. Include
6576 gt-integrate.h.
6577 (mark_hard_reg_initial_vals): Delete.
6578 * integrate.h (mark_hard_reg_initial_vals): Delete.
6579 * stmt.c: Use gengtype for various structures. Include
6580 gt-stmt.h.
6581 (mark_case_node): Delete.
6582 (mark_goto_fixup): Delete.
6583 (mark_stmt_status): Use standard gt_ggc names for marker functions.
6584 * system.h: Define GTY to empty. In flex/bison files,
6585 don't poison malloc or realloc, instead just define them to
6586 xmalloc and xrealloc.
6587 * varasm.c: Use gengtype for various structures. Include
6588 gt-varasm.h. Use standard gt_ggc names for marker functions.
6589 (mark_pool_constant): Delete.
6590 (mark_varasm_status): Delete.
6591 (decode_rtx_const): #if 0 out non-typesafe hack.
6592
6593 * function.h (free_lang_status): Mark as obsolete.
6594 * function.c (free_lang_status): Mark as obsolete.
6595 * c-decl.c (push_c_function_context): Use GC to allocate and free
6596 struct language_function.
6597 (pop_c_function_context): Likewise.
6598 * c-common.c (mark_c_language_function): Mark struct
6599 language_function.
6600
6601 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
6602 Document that the machine_function structures must be allocated
6603 using GC. Update mark_machine_status documentation.
6604 * function.h: Don't declare free_machine_status.
6605 * function.c (free_machine_status): Don't define.
6606 (free_after_compilation): Don't call free_machine_status.
6607 (ggc_mark_struct_function): Mark f->machine. Call
6608 mark_machine_status only on non-NULL pointers.
6609 * system.h: Poison free_machine_status.
6610 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
6611 struct machine_function.
6612 (xtensa_free_machine_status): Delete.
6613 (override_options): Don't set free_machine_status.
6614 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
6615 free_machine_status.
6616 (rs6000_init_machine_status): Use GC on struct machine_function.
6617 (rs6000_free_machine_status): Delete.
6618 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
6619 machine_function.
6620 (ia64_mark_machine_status): Likewise.
6621 (ia64_free_machine_status): Delete.
6622 (ia64_override_options): Don't set free_machine_status.
6623 * config/i386/i386.c (override_options): Don't set
6624 free_machine_status.
6625 (ix86_init_machine_status): Use GC on struct machine_function.
6626 (ix86_mark_machine_status): Likewise.
6627 (ix86_free_machine_status): Delete.
6628 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
6629 machine_function.
6630 (d30v_mark_machine_status): Likewise.
6631 (d30v_free_machine_status): Delete.
6632 (d30v_init_expanders): Don't set free_machine_status.
6633 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
6634 machine_function.
6635 (arm_init_machine_status): Likewise.
6636 (arm_free_machine_status): Delete.
6637 (arm_init_expanders): Don't set free_machine_status.
6638 * config/alpha/alpha.c (override_options): Don't set
6639 free_machine_status.
6640 (alpha_init_machine_status): Use GC on struct machine_function.
6641 (alpha_mark_machine_status): Likewise.
6642 (alpha_free_machine_status): Delete.
6643
6644 * varasm.c (compare_constant): Fix typo.
6645
6646 * varasm.c: Don't include obstack.h.
6647 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
6648 (struct rtx_const): Give substructures names, improve formatting.
6649 (struct constant_descriptor): Delete.
6650 (struct constant_descriptor_tree): New, based on constant_descriptor.
6651 (const_hash_table): Is a hash table of trees.
6652 (mark_const_hash_entry): Is used for hashes of trees. Mark
6653 constant_descriptor_tree structure.
6654 (mark_const_str_htab_1): Mark deferred_string structure.
6655 (compare_constant): Rewrite to compare trees.
6656 (compare_constant_1): Delete.
6657 (record_constant): Delete.
6658 (record_constant_1): Delete.
6659 (output_constant_def): Use struct constant_descriptor_tree.
6660 Don't duplicate trees twice.
6661 (struct constant_descriptor_rtx): New.
6662 (struct pool_constant): Used for rtx constants.
6663 (init_varasm_status): Update for change to struct varasm_status.
6664 (mark_varasm_status): Likewise.
6665 (free_varasm_status): Delete.
6666 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
6667 (record_constant_rtx): Likewise.
6668 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
6669 (force_const_mem): Likewise.
6670 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
6671 * function.c (free_after_compilation): Don't use free_varasm_status.
6672 * function.h: Don't prototype free_varasm_status.
6673
6674 * ggc-common.c (ggc_realloc): Handle X being NULL.
6675
6676 * ggc-common.c (ggc_realloc): New function.
6677 * ggc.h: Prototype it.
6678 * emit-rtl.c (free_emit_status): Delete.
6679 (init_emit): Allocate emit subarrays using GC.
6680 (gen_reg_rtx): Reallocate subarrays using GC.
6681 (init_emit): Use GC to allocate 'struct emit_status' and its
6682 subarrays.
6683 (mark_emit_status): Mark structure and its subarrays.
6684 * stmt.c (free_stmt_status): Delete.
6685 * expr.c (free_expr_status): Delete.
6686 * function.h: Remove prototypes for deleted functions.
6687 * function.c (free_after_compilation): Don't use deleted functions.
6688 Don't call free() on x_parm_reg_stack_loc.
6689 (free_after_parsing): Don't use free_stmt_status.
6690 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
6691 (mark_function_status): Mark x_parm_reg_stack_loc.
6692
6693 * varasm.c (init_varasm_status): Use GC to allocate
6694 'struct varasm_status' and its fields x_const_rtx_hash_table
6695 and x_const_rtx_sym_hash_table.
6696 (mark_varasm_status): Mark them.
6697 (free_varasm_status): Use GC to free them.
6698 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
6699 (mark_expr_status): Mark the structure itself.
6700 (free_expr_status): Use GC to free the structure.
6701 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
6702 (mark_stmt_status): Mark the 'struct stmt_status' itself.
6703 (init_stmt_for_function): Allocate the structure for GC.
6704
6705 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
6706 (equate_type_number_to_die): Likewise.
6707 * tree.h (TYPE_SYMTAB_DIE): New macro.
6708 (struct die_struct): Predeclare.
6709 (struct tree_type): Add field symtab.die. Add a tag
6710 to the union type of field symtab.
6711
6712 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
6713 'struct rtvec_def *', not 'struct rtvec_def'.
6714
6715 * function.h (original_arg_vector): Make a real rtvec.
6716 * function.c (ggc_mark_struct_function): Adjust.
6717 * integrate.c (expand_inline_function): Adjust.
6718
6719 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
6720
6721 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
6722 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
6723 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
6724 (TARGET_VERSION_CPU): Define according to the
6725 default target.
6726 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
6727 TARGET_VERSION_CPU.
6728 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
6729 if TARGET_SHMEDIA64.
6730 (LINK_DEFAULT_CPU_EMUL): Define according to the
6731 default target.
6732 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
6733 (SUBTARGET_LINK_SPEC): Define.
6734 (LINK_SPEC): Use SH_LINK_SPEC.
6735 (ASM_SPEC): Remove.
6736 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
6737 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
6738 and TARGET_SHMEDIA64 which abort, for now.
6739 * config/sh/t-netbsd-sh5: New file.
6740 * config/sh/t-netbsd-sh5-32: New file.
6741 * config/sh/t-netbsd-sh5-64: New file.
6742
6743 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6744 Richard Henderson <rth@redhat.com>
6745
6746 * config/alpha/alpha.c (reg_or_const_int_operand): New.
6747 (some_operand, input_operand): Accept CONST_VECTOR.
6748 (alpha_extra_constraint): Add 'W'.
6749 (alpha_expand_zap_mask): New.
6750 (alpha_expand_builtin_vector_binop): New.
6751 (enum alpha_builtin): New.
6752 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
6753 (alpha_init_builtins, alpha_expand_builtin): New.
6754 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
6755 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
6756 (PREDICATE_CODES): Update.
6757 * config/alpha/alpha-protos.h: Update.
6758 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
6759 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
6760 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
6761 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
6762 (movv2si, movv2si_fix, movv2si_nofix): New.
6763 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
6764 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
6765 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
6766 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
6767 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
6768 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
6769 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
6770 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
6771 builtin_unpkbw, unpkbw): New.
6772 * doc/extend.texi (Alpha Built-in Functions): New.
6773
6774 2002-06-03 Richard Henderson <rth@redhat.com>
6775
6776 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
6777 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
6778
6779 2002-06-03 Richard Henderson <rth@redhat.com>
6780
6781 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
6782
6783 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
6784 (const0_operand): New.
6785 (reg_or_fp0_operand, fp0_operand): Remove.
6786 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6787 * config/alpha/alpha-protos.h: Update.
6788 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
6789 and fp0_operand with reg_or_0_operand and const0_operand.
6790
6791 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6792
6793 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
6794
6795 2002-06-03 Roger Sayle <roger@eyesopen.com>
6796
6797 * gcse.c (cprop_jump): Use single_set to get the pattern
6798 from the setcc argument.
6799
6800 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
6801
6802 * diagnostic.h (diagnostic_count): Move from output_buffer to
6803 diagnostic_context.
6804 (diagnostic_kind_count): Adjust definition.
6805
6806 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
6807
6808 * except.c (except.c): Do not rebuild CFG.
6809 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
6810 optimization.
6811
6812 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6813
6814 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
6815 * toplev.c: Include cfglahout.h
6816 * Makefile.in (toplev.c): Add dependnecy.
6817
6818 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
6819
6820 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
6821 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
6822 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
6823
6824 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6825
6826 * config/ns32k/netbsd.h: Update copyright years.
6827 (TARGET_OS_CPP_BUILTINS): Define.
6828 (CPP_PREDEFINES): Remove.
6829 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
6830 (TARGET_CPU_CPP_BUILTINS): Define.
6831
6832 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
6833
6834 * emit-rtl.c: Fix formatting.
6835 * errors.h: Likewise.
6836 * except.c: Likewise.
6837 * explow.c: Likewise.
6838 * expmed.c: Likewise.
6839 * expr.c: Likewise.
6840 * expr.h: Likewise.
6841
6842 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
6843
6844 * config/h8300/elf.h: Fix formatting.
6845 * config/h8300/rtems.h: Likewise.
6846
6847 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6848
6849 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
6850
6851 2002-06-02 Tom Tromey <tromey@redhat.com>
6852
6853 * fixinc/fixincl.x: Rebuilt.
6854 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
6855
6856 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6857
6858 config/i370:
6859 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
6860 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
6861 * mvs.h: Similarly.
6862 * oe.h: Similarly.
6863
6864 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
6865
6866 * final.c (final): Allow notes to not have computed addresses;
6867 kill no longer needed STACK_REGS ifdef.
6868
6869 2002-06-02 Richard Henderson <rth@redhat.com>
6870
6871 * gcse.c (bypass_conditional_jumps): Fix typo last change.
6872
6873 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6874
6875 * loop.c (emit_prefetch_instructions): Properly place the address
6876 computation.
6877
6878 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
6879
6880 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
6881 (set_block_for_insn): Turn into macro.
6882 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
6883 * cfglayout.c (insn_scopes): Kill.
6884 (scope_to_insns_initialize): Do not use insn_scopes.
6885 (scope_to_insns_finalize): Likewise.
6886 (duplicate_insn_chain): Likewise.
6887 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
6888 * cfgrtl.c (basic_block_for_insn): Kill.
6889 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
6890 (create_basic_block_structure): Use reorder_insns.
6891 (compute_bb_for_insn): Do not use basic_block_for_insn.
6892 (merge_blocks_nomove): Likewise.
6893 (update_bb_for_insn): Likewise.
6894 (verify_flow_info): Likewise.
6895 (set_block_for_insn): Kill.
6896 * combine.c (try_combine): Update gen_rtx_INSN call.
6897 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
6898 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
6899 scopes and BBs.
6900 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
6901 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
6902 Clear BB.
6903 (emit_insns_after): Simplify.
6904 (emit_copy_of_insn_after): Copy scope.
6905 * final.c (final_start_function): Lower scopes.
6906 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
6907 * integrate.c (copy_insn_list): Cope scopes.
6908 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
6909 * loop.c (loop_optimize): Do not care block notes.
6910 * print-rtl.c (print_rtx): Print BB.
6911 * recog.c (apply_change_group): Simplify.
6912 * rtl.c (copy_rtx): Handle 'B'.
6913 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
6914 * rtl.h (Field accessors): Update indexes.
6915 * sched-ebb.c (schedule_ebbs): Do not lower notes.
6916 * sched-rgn.c (schedule_insns): Likewise.
6917 * toplev.c (rest_of_compilation): Lower notes.
6918 * unroll.c (unroll_loop): Do not care scoping notes.
6919 (copy_loop_body): Copy scopes.
6920
6921 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6922
6923 config/h8300:
6924 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
6925 SUBTARGET_SPEC.
6926 * rtems.h: Similarly.
6927 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
6928 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
6929 (TARGET_CPU_CPP_BUILTINS): Use.
6930
6931 2002-06-02 Richard Henderson <rth@redhat.com>
6932
6933 * alias.c: Include target.h.
6934 (mark_constant_function): Use targetm.binds_local_p instead
6935 of checking TREE_PUBLIC ourselves.
6936 * Makefile.in (alias.o): Add TARGET_H.
6937
6938 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6939
6940 * c-lex.c: Update copyright and file description.
6941
6942 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6943
6944 * config/fr30/fr30.h: Update to new CPP macros.
6945
6946 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6947
6948 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
6949
6950 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6951 Zack Weinberg <zack@codesourcery.com>
6952
6953 * c-common.c (c_common_init): Override cpplib's default
6954 warn_long_long setting.
6955 * c-lex.c (lex_number): Replace with interpret_integer,
6956 interpret_float, narrowest_unsigned_type and
6957 narrowest_signed_type, taking advantage of the new
6958 cpplib functionality.
6959 * cpperror.c (_cpp_begin_message): If a warning is turned
6960 into an error, avoid printing "warning:".
6961 * cppexp.c (cpp_num_sign_extend): New.
6962 * cppinit.c: Update comment.
6963 * cpplib.h (cpp_num_sign_extend): New.
6964 * tree.h: Update comment.
6965
6966 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6967
6968 * diagnostic.h (struct diagnostic_context): Add new member
6969 internal_error.
6970 (internal_error_function): Remove declaration.
6971 * diagnostic.c (internal_error_function): Remove definition..
6972 (internal_error): Adjust use.
6973
6974 2002-06-02 Richard Henderson <rth@redhat.com>
6975
6976 * rtl.h (CC0_P): New.
6977 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
6978 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
6979 (bypass_block): Save old dest block for dump text.
6980 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
6981 Allow only true SET insns, not single_set.
6982
6983 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6984
6985 * diagnostic.c (diagnostic_finish): Rename to output_flush.
6986 (clear_disgnostic_info): Rename to output_clear_data. Use false
6987 instead of 0 for boolean value.
6988 Adjust function call throughout.
6989
6990 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6991
6992 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
6993 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
6994
6995 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6996
6997 * d30v.h (CPP_PREDEFINES): Replace with
6998 (TARGET_CPU_CPP_BUILTINS): New.
6999
7000 2002-06-02 Roger Sayle <roger@eyesopen.com>
7001
7002 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
7003
7004 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
7005
7006 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
7007
7008 2002-06-02 Richard Henderson <rth@redhat.com>
7009
7010 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
7011
7012 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
7013
7014 Support for C++ constructors/destructors.
7015 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
7016 instead of looping if main() returns.
7017 (asm_file_start): Output global symbols that cause .data and .bss
7018 initialization code to be linked in, unconditionally for now.
7019 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
7020 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
7021 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7022 (LIBSTDCXX): New.
7023 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
7024 (__tablejump__): New.
7025 (__do_copy_data, __do_clear_bss): New.
7026 (__do_global_ctors, __do_global_dtors): New.
7027 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
7028 _ctors, _dtors.
7029
7030 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
7031
7032 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
7033 (CPP_SPEC, CPP_PREDEFINES): Kill.
7034 * c4x/rtems.h (CPP_PREDEFINES): Kill.
7035 (TARGET_OS_CPP_BUILTINS): New.
7036
7037 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
7038
7039 * Makefile.in (tracer.o): New.
7040 * params.def (TRACER_*): New options.
7041 * rtl.h (tracer): Declare.
7042 * timevar.def (TV_TRACER): New.
7043 * toplev.c (dump_file_index): Add DFI_tracer.
7044 (dump_file_info): Add tracer.
7045 (flag_tracer): New.
7046 (lang_indepdenent_options): Add tracer.
7047 (rest_of_compilation): Call tracer.
7048 * tracer.c: New file.
7049 * invoke.texi (-ftracer): Document.
7050 (--param tracer-*): Document.
7051
7052 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
7053
7054 * tree-inline.c (expand_call_inline): Make the statement
7055 expression we generate have a COMPOUND_STMT.
7056
7057 2002-06-01 Roger Sayle <roger@eyesopen.com>
7058
7059 * gcse.c (cprop_cc0_jump): Function deleted.
7060 (cprop_jump): Take an additional argument which is the possibly
7061 NULL cc setting insn immediately before the conditional jump.
7062 When a MODE_CC set is present, substitute it into the JUMP_INSN
7063 before attempting the constant propagation.
7064 (cprop_insn): Recognize cc setters followed by conditional jumps
7065 as a special case. Use cprop_jump instead of cprop_cc0_jump.
7066 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
7067 (find_bypass_set): New function based upon find_avail_set used by
7068 cprop, but finds constant expressions available at the end of
7069 basic blocks.
7070 (bypass_block): New function. Given a basic block that begins
7071 with a conditional jump and multiple incoming edges, perform
7072 the jump bypass optimization.
7073 (bypass_conditional_jumps): New function. Call bypass_block with
7074 each suitable basic block in the CFG using a simple single pass.
7075
7076 2002-06-01 Roger Sayle <roger@eyesopen.com>
7077
7078 * tree.c (real_minus_onep): New function to test for -1.0.
7079 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
7080
7081 2002-06-01 Roger Sayle <roger@eyesopen.com>
7082
7083 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
7084 and "!p && !q" into "(p|q) == 0" under suitable conditions.
7085
7086 2002-06-01 Andreas Jaeger <aj@suse.de>
7087
7088 * cppexp.c (cpp_classify_number): Cast precission to int for
7089 correct printf format.
7090
7091 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
7092
7093 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
7094 expected, but don't really exist: atmega83, atmega85, attiny10.
7095 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
7096 emulations for all devices.
7097 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
7098 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
7099
7100 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
7101
7102 * config/h8300/h8300-protos.h: Add a prototype for
7103 h8300_shift_needs_scratch_p.
7104 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
7105 * config/h8300/h8300.h (OK_FOR_R): New.
7106 (OK_FOR_S): Likewise.
7107 (OK_FOR_T): Likewise.
7108 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
7109 * config/h8300/h8300.md (anonymous shift patterns): Use
7110 constraints R, S, and T.
7111
7112 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7113
7114 * basic-block.h (struct basic_block_def): New field loop_father.
7115 (BB_VISITED): New flag.
7116 (struct loop): New field pred, removed field shared.
7117 (struct loops): New field parray.
7118 (LOOP_EXITS_DOMS): Removed.
7119 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
7120 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
7121 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
7122 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
7123 verify_loop_structure): Declare.
7124 * cfg.c (entry_exit_blocks): Initialize loop_father field.
7125 * cfganal.c (dfs_enumerate_from): New function.
7126 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
7127 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7128 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
7129 flow_loop_dump, flow_loops_dump, flow_loops_free,
7130 flow_loop_tree_node_add, flow_loop_level_compute,
7131 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
7132 flow_loop_outside_edge_p): Modified for new infrastructure.
7133 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
7134 redirect_edge_with_latch_update, flow_loop_free): New static functions.
7135 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
7136 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
7137 find_common_loop, verify_loop_structure, loop_latch_edge,
7138 loop_preheader_edge): New functions.
7139 (flow_loops_cfg_dump): Do not show dominators, as this information
7140 does not remain up to date long.
7141 (flow_loops_find): Store results in new format.
7142 * predict.c (propagate_freq, estimate_probability,
7143 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
7144 infrastructure.
7145
7146 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
7147
7148 * except.c (nothrow_function_p): Walk epilogue delay list
7149 checking the insn, not the chain for potential throws.
7150
7151 2002-05-31 Zack Weinberg <zack@codesourcery.com>
7152
7153 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
7154 (install): Refer to install-cpp directly.
7155 (uninstall-cpp): Folded into uninstall rule.
7156 * configure.in: Delete all code relating to --disable-cpp.
7157 * configure: Regenerate.
7158 * config/t-install-cpp: Delete.
7159
7160 2002-05-31 Richard Henderson <rth@redhat.com>
7161
7162 * configure.in (HAVE_AS_TLS): Add alpha tests.
7163 * configure: Rebuild.
7164 * config/alpha/alpha.c (TARGET_AS_TLS): New.
7165 (alpha_tls_size, alpha_tls_size_string): New.
7166 (overide_options): Set it. Always install machine_status hooks.
7167 (input_operand): Accept got tls predicates.
7168 (local_symbol_p): Merge into ...
7169 (local_symbolic_operand): ... here. Reject tls symbols.
7170 (global_symbolic_operand): Likewise.
7171 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
7172 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
7173 (tp16_symbolic_operand, tp32_symbolic_operand): New.
7174 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
7175 (alpha_encode_section_info): Handle TLS symbols.
7176 (alpha_strip_name_encoding): Likewise.
7177 (alpha_legitimate_address_p): Likewise.
7178 (alpha_legitimize_address): Likewise.
7179 (alpha_expand_mov): Early exit to avoid nop moves.
7180 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
7181 (alpha_init_machine_status, alpha_mark_machine_status,
7182 alpha_free_machine_status): Always define.
7183 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
7184 (print_operand, print_operand_address): Add TLS relocs.
7185 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
7186 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
7187 (TARGET_SWITCHES): Add -mtls-kernel.
7188 (alpha_tls_size, alpha_tls_size_string): New.
7189 (TARGET_OPTIONS): Add -mtls-size=.
7190 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
7191 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
7192 (ASM_OUTPUT_LABELREF): Skip %.
7193 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
7194 (PREDICATE_CODES): Update.
7195 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
7196 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
7197 UNSPEC_TP, UNSPECV_SET_TP): New.
7198 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
7199 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
7200 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
7201 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
7202 (call_value_osf_2_er): Accept anything as op4.
7203 * config/alpha/alpha-protos.h: Update.
7204 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
7205
7206 2002-05-31 Zack Weinberg <zack@codesourcery.com>
7207
7208 * cppinit.c (append_include_chain): Always pay attention to
7209 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
7210 marker on argument.
7211
7212 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
7213
7214 * target.h: Fix formatting.
7215 * timevar.h: Likewise.
7216 * tlink.c: Likewise.
7217 * toplev.c: Likewise.
7218 * toplev.h: Likewise.
7219 * tree.c: Likewise.
7220 * tree-dump.h: Likewise.
7221 * tree.h: Likewise.
7222 * tree-inline.h: Likewise.
7223 * unroll.c: Likewise.
7224 * unwind-dw2.c: Likewise.
7225 * unwind-dw2-fde.c: Likewise.
7226 * unwind-dw2-fde-glibc.c: Likewise.
7227 * unwind-dw2-fde.h: Likewise.
7228 * unwind.h: Likewise.
7229 * unwind-sjlj.c: Likewise.
7230 * varasm.c: Likewise.
7231 * varray.h: Likewise.
7232 * vmsdbg.h: Likewise.
7233 * vmsdbgout.c: Likewise.
7234 * xcoffout.h: Likewise.
7235
7236 2002-05-31 Igor Shevlyakov <igor@microunity.com>
7237
7238 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
7239 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
7240
7241 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
7242
7243 * gcc.c (cpp_unique_options): Remove "-d" options.
7244 (cpp_debug_options): New spec string.
7245 (default_compilers): Use it.
7246 * objc/lang-specs.h: Likewise.
7247
7248 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
7249
7250 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
7251 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
7252 * gcc/mklibgcc.in: Likewise.
7253 * gcc/config/arc/t-arc: Likewise.
7254 * gcc/configure.in: Likewise.
7255 * gcc/configure: Regenerate.
7256
7257 2002-05-31 Stan Shebs <shebs@apple.com>
7258 Turly O'Connor <turly@apple.com>
7259
7260 * c-decl.c (struct binding_level): Change int field n_incomplete
7261 to tree list incomplete_list.
7262 (clear_binding_level): Init field with NULL.
7263 (pushdecl): Add incomplete type to list.
7264 (mark_binding_level): Mark the incomplete list.
7265 (finish_struct): Scan the incomplete list for types instead
7266 of all decls in the current binding level.
7267
7268 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
7269
7270 * pa.c (output_millicode_call): Add missing '%' characters.
7271 (output_call): Likewise.
7272
7273 2002-05-31 David Edelsohn <edelsohn@gnu.org>
7274
7275 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
7276 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
7277
7278 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
7279
7280 * varasm.c (mark_constant_pool): Walk epilogue delay list
7281 checking the insn, not the chain for potential constants.
7282
7283 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
7284
7285 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
7286
7287 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
7288
7289 * i386.c (classify_argument): Properly handle base types.
7290
7291 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
7292 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
7293 registers.
7294
7295 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7296
7297 * gcse.c (gcse_emit_move_after): New.
7298 (pre_delete, hoist_store): Use it.
7299
7300 * reload1.c (emit_input_reload_insns): Use constrain_operands
7301 instead of constraint_accepts_reg_p to verify optimization.
7302 (constraint_accepts_reg_p): Kill
7303
7304 * reload1.c (reload_cse_delete_noop_set): Kill.
7305 (reload_cse_simplify): use delte_insn_and_edges.
7306
7307 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7308
7309 * cfgloop.c (flow_loops_find): Initialize first and last fields
7310 correctly.
7311
7312 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
7313
7314 * c-common.c (builtin_define_std): Correct logic.
7315
7316 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
7317
7318 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
7319 (output_call): Likewise.
7320
7321 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
7322
7323 * pa.c: Move output.h include after tree.h include.
7324 (pa_asm_output_mi_thunk): Constify identifier lab.
7325
7326 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7327
7328 * config/ns32k/ns32k.h: Define named constants for the
7329 bits in target_flags and use them.
7330 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
7331
7332 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7333
7334 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
7335 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
7336 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
7337 default scheduling model.
7338 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
7339 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
7340 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
7341 * doc/install.texi (hppa*-*-*): Document default scheduling.
7342
7343 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7344
7345 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
7346
7347 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7348
7349 * config.gcc (ns32k-*-netbsd*): Set tm_file to
7350 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
7351 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
7352 netbsd.h, or netbsd-aout.h.
7353
7354 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7355
7356 * longlong.h (count_trailing_zeros): Add missing \, and clean up
7357 whitespace in __ns32000__ case.
7358
7359 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
7360
7361 * expr.c (expand_expr): Output partially zeroed out vectors with
7362 output_constant_def.
7363
7364 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7365
7366 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
7367 (sh-*-netbsdelf*)
7368 (shl*-*-netbsdelf*): New targets.
7369 * config/sh/netbsd-elf.h: New file.
7370 * config/sh/t-netbsd: New file.
7371
7372 2002-05-30 Richard Henderson <rth@redhat.com>
7373 Eric Botcazou <ebotcazou@multimania.com>
7374
7375 PR optimization/6822
7376 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
7377 to unsigned int for op1 comparisons. Use gen_int_mode.
7378
7379 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
7380
7381 * expmed.c (const_mult_add_overflow_p): New.
7382 * expr.h: Declare it.
7383 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
7384 Don't eliminate the biv if the giv has a constant multiplier and
7385 the rhs argument of the comparison does satisfy the predicate.
7386 Use expand_mult_add to compute the replacement constant.
7387
7388 2002-05-30 Osku Salerma <osku@iki.fi>
7389
7390 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
7391 (c_common_get_alias_set): Handle it.
7392 * doc/extend.texi: Document it.
7393
7394 2002-05-30 Richard Henderson <rth@redhat.com>
7395
7396 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
7397 * toplev.c (process_options): Don't check it.
7398 * doc/tm.texi: Don't document it.
7399 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
7400 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
7401 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
7402 frame pointer optimization if current_function_profile.
7403
7404 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
7405
7406 * langhooks.c: Fix formatting.
7407 * langhooks.h: Likewise.
7408 * lcm.c: Likewise.
7409 * libgcc2.c: Likewise.
7410 * lists.c: Likewise.
7411 * local-alloc.c: Likewise.
7412 * loop.c: Likewise.
7413 * loop.h: Likewise.
7414
7415 2002-05-30 Marc Espie <espie@openbsd.org>
7416
7417 * config.gcc (sparc64-*-openbsd*): New.
7418 * config/sparc/openbsd1-64.h: New.
7419 * config/sparc/openbsd64.h: New.
7420
7421 2002-05-30 Jeff Law <law@redhat.com>
7422
7423 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
7424 a dead insn with a REG_RETVAL note when the entire libcall is not
7425 dead and remove the associated REG_LIBCALL note at the same time.
7426
7427 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
7428
7429 * lcm.c (output.h): #include.
7430 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
7431 as an ordinary block.
7432 (optimize_mode_switching): Don't pretend that the exit block is
7433 an ordinary block, or handle sucessors of entry block specially.
7434 Instead, split edges from entry block and to exit block, and
7435 put a computing definition on the thus gained post-entry-block,
7436 and a need on the pre-exit-block.
7437
7438 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
7439
7440 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
7441 * rtl.texi: Document 'B'
7442
7443 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7444
7445 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
7446 at run-time.
7447 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
7448
7449 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
7450
7451 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
7452 const0_rtx instead of NULL_RTX when in error.
7453 (altivec_expand_abs_builtin): Same.
7454 (rs6000_expand_binop_builtin): Same.
7455 (altivec_expand_predicate_builtin): Same.
7456 (altivec_expand_stv_builtin): Same.
7457 (rs6000_expand_ternop_builtin): Same.
7458 (altivec_expand_builtin): Same.
7459
7460 2002-05-29 David S. Miller <davem@redhat.com>
7461
7462 * rtl.h (clear_emit_caches): Delete.
7463 * integrate.c (output_inline_function): Don't call it.
7464 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
7465 (clear_emit_caches): Delete definition.
7466 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
7467
7468 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
7469
7470 * config/mmix/mmix.c: Include real.h.
7471 (mmix_constant_address_p): Remove redundant test before switch.
7472
7473 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7474
7475 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
7476 only if not already defined.
7477
7478 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
7479
7480 * config/h8300/h8300-protos.h: Remove prototypes for
7481 ok_for_bclr and small_power_of_two.
7482 * config/h8300/h8300.c (small_power_of_two): Remove.
7483 (ok_for_blcr): Likewise.
7484 (fix_bit_operand): Make WHAT deal with an integer instead of a
7485 constraint character.
7486 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
7487 (CONST_OK_FOR_P): Likewise.
7488 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
7489 CONST_OK_FOR_P any more.
7490 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
7491 of fix_bit_operand.
7492 (iorqi3): Likewise.
7493 (xorqi3): Likewise.
7494
7495 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7496
7497 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7498 (CPP_PREDEFINES): Make sure this is undefined.
7499 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
7500 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
7501 or -U__MIPSEB__ before defining one or the other. Instead,
7502 use %(subtarget_endian_default) if neither -EB nor -EL are
7503 specified.
7504 (SUBTARGET_EXTRA_SPECS): Define.
7505 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
7506 %(netbsd_cpp_spec).
7507
7508 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
7509
7510 * doc/md.texi (Patterns): Note pattern condition pitfall
7511 for unnamed insn.
7512
7513 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
7514
7515 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
7516 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
7517 ternary operations from here...
7518 (rs6000_expand_builtin): ...to here.
7519 New argument expandedp.
7520 Change all instances of altivec_expand_binop_builtin to
7521 rs6000_expand_binop_builtin.
7522 (altivec_expand_unop_builtin): Rename to
7523 rs6000_expand_unop_builtin.
7524 (altivec_expand_binop_builtin): Rename to
7525 rs6000_expand_binop_builtin.
7526 (altivec_expand_ternop_builtin): Rename to
7527 rs6000_expand_ternop_builtin.
7528
7529 2002-05-29 Richard Henderson <rth@redhat.com>
7530
7531 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
7532 (TARGET_BI_ARCH): Likewise.
7533 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
7534 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
7535 (TARGET_64BIT_DEFAULT): Default to 0.
7536 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
7537
7538 2002-05-29 Richard Henderson <rth@redhat.com>
7539
7540 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
7541 (get_pc_thunk_name): New.
7542 (output_set_got): Use it.
7543 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
7544 into linkonce sections.
7545
7546 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7547
7548 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7549 (CPP_PREDEFINES): Make sure this is undefined.
7550 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
7551 (CPP_SUBTARGET_SPEC): Don't provide different versions for
7552 default-32 and default-64. Just always use %(netbsd_cpp_spec).
7553 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
7554 cpp_subtarget_spec64. Add netbsd_cpp_spec.
7555 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7556 (CPP_PREDEFINES): Make sure this is undefined.
7557 (SUBTARGET_EXTRA_SPECS): Define.
7558 (CPP_SPEC): Use %(netbsd_cpp_spec).
7559
7560 2002-05-29 Jeff Law <law@redhat.com>
7561
7562 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
7563
7564 * flow.c (propagate_one_insn): Do not remove a dead insn if it
7565 contains a REG_RETVAL note.
7566
7567 * haifa-sched (sched_analyze): Remove another useless clearing
7568 of SCHED_GROUP_P I missed yesterday.
7569
7570 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
7571 * pa.c (pa_asm_output_mi_thunk): New function.
7572 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
7573
7574 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7575 Marek Michalkiewicz <marekm@amelek.gda.pl>
7576
7577 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
7578 (avr_asm_only_p): Make non-static.
7579 (enum avr_arch): Remove.
7580 (avr_arch_types): New.
7581 (avr_mcu_types): Update.
7582 (avr_override_options): Use avr_arch_types table instead of switch.
7583 * avr.h (CPP_PREDEFINES): Die.
7584 (avr_base_arch_macro, avr_extra_arch_macro): New.
7585 (TARGET_CPU_CPP_BUILTINS): New.
7586 (CPP_SPEC, EXTRA_SPECS): Simplify.
7587 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
7588 CPP_AVR5_SPEC): Die.
7589
7590 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7591
7592 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
7593 NETBSD_OS_CPP_BUILTINS_AOUT.
7594 (SUBTARGET_EXTRA_SPECS): Define.
7595 (CPP_SPEC): Use %(netbsd_cpp_spec).
7596
7597 2002-05-29 Richard Henderson <rth@redhat.com>
7598
7599 * config/i386/i386.c (ix86_output_function_epilogue): New.
7600 (TARGET_ASM_FUNCTION_EPILOGUE): New.
7601 (pic_label_name): Remove.
7602 (pic_labels_used): New.
7603 (ix86_asm_file_end): Emit one pc load stub for each register used.
7604 (output_set_got): Generate deep pc load to any register.
7605 (ix86_select_alt_pic_regnum): New.
7606 (ix86_save_reg): Don't save pic register if we can find a valid
7607 call-clobbered replacement.
7608 (ix86_expand_prologue): If we found a valid replacement, renumber
7609 pic_offset_table_rtx.
7610 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
7611 pic_offset_table_rtx after reload.
7612 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
7613 * config/i386/i386.md (set_got): Make insn, not expander.
7614 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
7615
7616 2002-05-29 Richard Henderson <rth@redhat.com>
7617
7618 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
7619 alignment for alloca.
7620
7621 2002-05-29 Richard Henderson <rth@redhat.com>
7622
7623 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
7624 (print_operand_address): Only add rip for symbolic addresses
7625 for which we do not have another relocation type.
7626
7627 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7628
7629 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7630 (EXTRA_SPECS): Add netbsd_cpp_spec.
7631 (CPP_SPEC): Use %(netbsd_cpp_spec).
7632 (CPP_PREDEFINES): Remove.
7633 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7634 (EXTRA_SPECS): Define.
7635 (CPP_SPEC): Use %(netbsd_cpp_spec).
7636 (CPP_PREDEFINES): Remove.
7637
7638 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7639
7640 PR preprocessor/6844
7641 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
7642 NUL.
7643
7644 2002-05-29 Eric Christopher <echristo@redhat.com>
7645
7646 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
7647 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
7648
7649 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
7650
7651 * config/fr30/fr30.md: Remove previous restriction on splits.
7652 Enforce conformance through gen_lowpart and cont_int_operand.
7653 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
7654 as the assembler does not support ".bss".
7655
7656 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7657
7658 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7659 (CPP_PREDEFINES): Remove.
7660 (SUBTARGET_EXTRA_SPECS): Define.
7661 (CPP_SPEC): Use %(netbsd_cpp_spec).
7662 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7663 (CPP_PREDEFINES): Remove.
7664 (SUBTARGET_EXTRA_SPECS): Define.
7665 (CPP_SPEC): Use %(netbsd_cpp_spec).
7666 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
7667 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
7668 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
7669 Add netbsd_cpp_spec.
7670 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
7671
7672 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7673 Zack Weinberg <zack@codesourcery.com>
7674
7675 * cppexp.c (cpp_num): Move to cpplib.h.
7676 (CPP_ERROR): Remove.
7677 (interpret_float_suffix, interpret_int_suffix): New.
7678 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
7679 (cpp_classify_number, cpp_interpret_integer): New.
7680 (interpret_number): Remove.
7681 (eval_token): Update to use new routines.
7682 * cpphash.h (cpp_num_part): Move to cpplib.h.
7683 * cppinit.c (cpp_post_options): Set warn_long_long.
7684 * cpplib.h (struct cpp_options): Add warn_long_long.
7685 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
7686 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
7687 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
7688 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
7689 cpp_interpret_integer): New.
7690
7691 2002-05-29 Joel Sherrill <joel@OARcorp.com>
7692
7693 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
7694
7695 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7696
7697 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
7698 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
7699 (CPP_SUBTARGET_SPEC): Define.
7700 (SUBTARGET_EXTRA_SPECS): Define.
7701 (CPP_SPEC): Remove.
7702
7703 2002-05-29 Chris Lattner <sabre@nondot.org>
7704
7705 * ssa.c (rename_insn_1): Rename uses of undefined registers to
7706 prevent confusion if/when the register is defined.
7707
7708 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
7709
7710 PR target/6838
7711 * config/cris/cris.md: Fix typos and thinkos in comments.
7712 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
7713 second alternative.
7714 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
7715 ("*mov_sideqi_mem"): Similar, but for operand 3.
7716 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
7717 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
7718 Remove spurious mode specifier on operand 2.
7719
7720 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
7721
7722 * config/h8300/h8300-protos.h: Remove the prototype for
7723 o_operand.
7724 Add prototypes for single_one_operand and single_zero_operand.
7725 * config/h8300/h8300.c (o_operand): Remove.
7726 (single_one_operand): New.
7727 (single_zero_operand): Likewise.
7728 (print_operand): For 'V' operand, and the operand with 0xff.
7729 For 'V' and 'W' operands, do not and the bit position with 7.
7730 * config/h8300/h8300.md (various anonymous patterns): Replace
7731 use of exact_log2 with single_one_operand/single_zero_operand.
7732
7733 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
7734
7735 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
7736
7737 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
7738
7739 * config/s390/s390.c (legitimate_pic_operand_p): Do not
7740 accept symbolic LARL operands.
7741 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
7742 epilogue insns.
7743
7744 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
7745
7746 * config/s390/s390.md (cmpstr_64/31): Mark whole
7747 input registers as used.
7748
7749 2002-05-28 Richard Henderson <rth@redhat.com>
7750
7751 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
7752 not current_function_uses_pic_offset_table and
7753 current_function_uses_const_pool; examine current_function_profile.
7754 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
7755 input to blockage if needed.
7756 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
7757 (legitimize_pic_address): Likewise. Set regs_ever_live for
7758 pic_offset_table_rtx when invoked during reload.
7759 * config/i386/i386.h (FINALIZE_PIC): Remove.
7760 * config/i386/i386.md (tablejump): Reformat. Do not set
7761 current_function_uses_pic_offset_table.
7762 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
7763 (blockage): Accept anything as operand 0.
7764
7765 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7766
7767 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
7768 common CPP built-ins for all NetBSD a.out targets.
7769 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
7770 common CPP built-ins for all NetBSD ELF targets.
7771 * config/netbsd.h: Add missing notice.
7772 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
7773 for all NetBSD targets.
7774 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
7775 for all NetBSD targets using an LP64 code model.
7776 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
7777 NetBSD targets.
7778
7779 2002-05-28 Richard Henderson <rth@redhat.com>
7780
7781 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
7782 update if UPDATE_LIFE_LOCAL.
7783
7784 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7785
7786 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
7787
7788 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7789 Jason R. Thorpe <thorpej@wasabisystems.com>
7790
7791 config/sh reorganization to factor out endianness and coff:
7792
7793 * config/sh/little.h: New file.
7794 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
7795 defined, define to 0 to select big-endian.
7796 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
7797 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7798 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7799 * config/sh/t-be: New file.
7800 * config/sh/t-le: New file.
7801
7802 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
7803 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
7804 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
7805 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
7806 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
7807 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7808 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
7809 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
7810 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
7811 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
7812 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
7813 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
7814 (LINK_SPEC): Define to SH_LINK_SPEC.
7815 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
7816 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
7817 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
7818 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
7819 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
7820 * config/sh/coff.h: New file.
7821 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
7822 (TARGET_OBJFMT_CPP_BUILTINS): Define.
7823 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
7824 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
7825 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
7826 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
7827 (PTRDIFF_TYPE): Likewise.
7828 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
7829 (CPP_PREDEFINES): Don't define.
7830 (TARGET_OBJFMT_CPP_BUILTINS): Define.
7831 (LINK_SPEC): Define to SH_LINK_SPEC.
7832 (LINK_EMUL_PREFIX): Redefine.
7833 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
7834 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
7835 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
7836 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
7837 (TARGET_OS_CPP_BUILTINS): Define.
7838 (TARGET_DEFAULT): Redefine.
7839 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
7840 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
7841 (LINK_SPEC): Don't redefine.
7842 (LINK_DEFAULT_CPU_EMUL): Redefine.
7843 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7844 * sh.c (sh_asm_named_section): Don't declare / define.
7845 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
7846 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
7847 (sh64-*-elf* tm_file): Likewise.
7848 (sh-*-rtemself* tm_file): Likewise.
7849 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
7850 (sh-*-linux* tmake_file): Add sh/t-le.
7851 (sh-*-rtems* tm_file): Add sh/coff.h
7852 (sh-*-* tm_file): Likewise.
7853
7854 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7855
7856 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
7857 CONSTANT_POOL_ADDRESS_P.
7858
7859 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
7860
7861 2002-05-28 David Edelsohn <edelsohn@gnu.org>
7862 Jeff Law <law@redhat.com>
7863
7864 * optabs.c (expand_binop): Fix nwords sign warnings.
7865 generate pseudo for add_optab.
7866
7867 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
7868 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
7869
7870 2002-05-28 Marc Espie <espie@openbsd.org>
7871
7872 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
7873 inherited from gas.h.
7874 (ASM_QUAD): Undef. OpenBSD does not support it.
7875
7876 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
7877
7878 * doc/install.texi (binaries): Change mingw binaries
7879 link to www.mingw.org.
7880
7881 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7882
7883 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
7884
7885 2002-05-28 Richard Henderson <rth@redhat.com>
7886
7887 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
7888 bottom alignment for leaf functions.
7889
7890 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7891
7892 * config/pa/milli32.S, config/pa/lib1funcs.asm,
7893 config/sparc/sol2-g1.asm: Delete unused files.
7894
7895 2002-05-28 Richard Henderson <rth@redhat.com>
7896
7897 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
7898
7899 * flow.c (calculate_global_regs_live): Rename call_used to
7900 invalidated_by_call. Initialize from regs_invalidated_by_call
7901 instead of call_used_regs.
7902
7903 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
7904 DECL_EXTERNAL.
7905
7906 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7907
7908 * tree.h: Don't include real.h.
7909 Forward-declare struct realvaluetype.
7910 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
7911 contain it.
7912 (TREE_REAL_CST_PTR): New accessor.
7913 (TREE_REAL_CST): Update.
7914 * real.h: Include machmode.h.
7915 (realvaluetype): Make it struct realvaluetype, not a typedef.
7916 (build_real): Prototype here.
7917
7918 * tree.c: Include real.h.
7919 (build_real): Allocate the REAL_VALUE_TYPE as a separate
7920 object in GC memory, set TREE_REAL_CST_PTR to point to it.
7921 (build_real_from_int_cst): Use build_real.
7922 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
7923 REAL_CST.
7924
7925 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
7926 fold-const.c, print-tree.c, real.c: Include real.h.
7927 * Makefile.in: Update dependency lists.
7928
7929 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7930
7931 * basic-block.h (last_basic_block): Declare.
7932 (expunge_block_nocompact): Declaration removed.
7933 (compact_blocks): Declare.
7934 * cfg.c (last_basic_block): New variable.
7935 (expunge_block_nocompact): Removed.
7936 (expunge_block): Do not compact basic blocks.
7937 (compact_blocks): New.
7938 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
7939 longer change.
7940 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
7941 last_basic_block.
7942 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
7943 real positions of blocks.
7944 (delete_unreachable_blocks): Simplified -- quadratic behavior now
7945 cannot occur.
7946 (cleanup_cfg): Compact blocks.
7947 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
7948 basic_block_info varray.
7949 (flow_delete_block): Comment update.
7950 (back_edge_of_syntactic_loop_p): Modify position check code.
7951 (verify_flow_info): Update checking.
7952 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
7953 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7954 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
7955 indices no longer change.
7956 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
7957 last_basic_block.
7958 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
7959 * profile.c (branch_prob): Compact blocks.
7960 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
7961 last_basic_block.
7962
7963 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
7964
7965 * config/h8300/h8300.md (two anonymous patterns): New.
7966
7967 2002-05-28 David S. Miller <davem@redhat.com>
7968
7969 * config/sparc/sparc.md (cpu): Tidy.
7970 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
7971 'trap'.
7972 (in_call_delay): Delete reference to 'return' type.
7973 (eligible_for_return_delay, in_return_delay, define_delay
7974 referencing those): Delete.
7975 (rest of file): Use new type attributes as appropriate.
7976 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
7977 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
7978 * config/sparc/ultra1_2.md (us1_single): New reservation.
7979 (us1_ialuX): Likewise.
7980 * config/sparc/ultra3.md (us3_single): Likewise.
7981 (us3_ialuX): Likewise.
7982 (us3_imul, us3_idiv): Tweak.
7983
7984 2002-05-28 Richard Henderson <rth@redhat.com>
7985
7986 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
7987 STRING_CST.
7988
7989 2002-05-28 Richard Henderson <rth@redhat.com>
7990
7991 * config.gcc: Obsolete mn10200.
7992
7993 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
7994
7995 * cppexp.c (interpret_number): Optimize for single-digit
7996 and less-than-half-precision cases.
7997 (num_trim, num_positive, num_div_op): Cast constants.
7998
7999 2002-05-27 Bo Thorsen <bo@suse.de>
8000
8001 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
8002 3.1 branch. The file was made by Jakub Jelinek.
8003 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
8004 support so multilib doesn't break. And don't define this at all
8005 when -Dinhibit_libc is used.
8006 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
8007 * config/i386/t-linux64: Implement full multilib support. Patch
8008 originally done by Andreas Jaeger and Jakub Jelinek.
8009
8010 2002-05-27 Roger Sayle <roger@eyesopen.com>
8011
8012 * c-common.c: Add support for __attribute__((nothrow)) to specify
8013 that a function cannot throw an exception (using TREE_NOTHROW).
8014 (handle_nothrow_attribute): New function to process this attribute.
8015
8016 * doc/extend.texi: Document the new nothrow function attribute.
8017
8018 2002-05-27 H.J. Lu (hjl@gnu.org)
8019
8020 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
8021 (num_positive): Likewise.
8022 (num_div_op): Likewise.
8023
8024 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
8025
8026 * c-common.c (c_common_init): Always use intmax_t.
8027
8028 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
8029
8030 * c-common.c (c_common_init): Use intmax_t for now.
8031
8032 2002-05-24 Andrew Haley <aph@redhat.com>
8033
8034 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
8035 if T is a boolean type.
8036
8037 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8038
8039 * basic-block.h (last_basic_block): Defined as synonym for
8040 n_basic_blocks.
8041 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
8042 flow_depth_first_order_compute, flow_preorder_transversal_compute,
8043 flow_dfs_compute_reverse_init): Replaced relevant occurences of
8044 n_basic_blocks with last_basic_block.
8045 * cfgbuild.c (make_edges): Likewise.
8046 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
8047 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
8048 * combine.c (combine_instructions): Likewise.
8049 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
8050 iterative_dataflow_bitmap): Likewise.
8051 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8052 calc_idoms, idoms_to_doms): Likewise.
8053 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
8054 Likewise.
8055 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
8056 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
8057 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
8058 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
8059 delete_null_pointer_checks, compute_code_hoist_vbeinout,
8060 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8061 compute_store_table, build_store_vectors): Likewise.
8062 * haifa-sched.c (sched_init): Likewise.
8063 * ifcvt.c (if_convert): Likewise.
8064 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
8065 pre_edge_lcm, compute_available, compute_nearerout,
8066 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
8067 Likewise.
8068 * predict.c (estimate_probability, process_note_prediction,
8069 note_prediction_to_br_prob): Likewise.
8070 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
8071 * recog.c (split_all_insns, peephole2_optimize): Likewise.
8072 * regrename.c (copyprop_hardreg_forward): Likewise.
8073 * resource.c (init_resource_info): Likewise.
8074 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
8075 init_regions, schedule_insns): Likewise.
8076 * ssa-ccp.c (ssa_const_prop): Likewise.
8077 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8078 * ssa.c (compute_dominance_frontiers,
8079 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
8080
8081 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
8082 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
8083 sizes consistently.
8084
8085 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8086
8087 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
8088 new.
8089 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
8090 hoist_insn_after, hoist_insn_to_edge): New.
8091
8092 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
8093
8094 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
8095 (PROP_FINAL): Include.
8096 * flow.c (life_analysis, update_life_info,
8097 init_propagate_block_info, mark_set_1, mark_used_rgs):
8098 Support SCAN_DEAD_STORE.
8099
8100 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
8101
8102 * c-common.c (c_common_init): Set CPP arithmetic precision.
8103 * cppexp.c (cpp_num_part): Move typedef ...
8104 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
8105 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
8106 (sanity_checks): Update.
8107
8108 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
8109
8110 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
8111 (mkheaders): New rule.
8112 (install-mkheaders): New rule.
8113 * configure.in (all_outputs): Add mkheaders.
8114 * configure: Regenerate.
8115 * mkheaders.in: New file.
8116
8117 2002-05-26 Jakub Jelinek <jakub@redhat.com>
8118
8119 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
8120
8121 2002-05-26 Andreas Jaeger <aj@suse.de>
8122
8123 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
8124
8125 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
8126
8127 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
8128 right_shift): Remove.
8129 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
8130 HIGH_PART): New.
8131 (struct op): Use cpp_num.
8132 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
8133 num_part_mul, num_unary_op, num_binary_op, num_negate,
8134 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
8135 num_div_op, num_lshift, num_rshift, append_digit): New.
8136 (interpret_number, parse_defined, eval_token, reduce): Update
8137 for two-integer arithmetic.
8138 (binary_handler): New typedef.
8139 (optab): Update.
8140 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
8141 (_cpp_parse_expr, reduce): Update to handle two-integers.
8142 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
8143
8144 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
8145
8146 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
8147 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
8148 branch insn into account, do not assume 1.
8149 (avr_out_sbxx_branch): New function. Optimize cases of skipping
8150 over single word insn. Handle upper half of I/O space too.
8151 * config/avr/avr.md (*sbrx_branch): Use it.
8152 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
8153 (*sbix_branch, *sbix_branch_bit7): Likewise.
8154 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
8155 Use RTL peepholes to optimize register operand sign tests.
8156
8157 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
8158
8159 * config/avr/avr.c (avr_asm_only_p): New variable.
8160 (avr_override_options): Set it here if AVR1.
8161 (asm_file_start): Test it here, report an error if set.
8162
8163 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
8164
8165 * alias.c: Fix formatting.
8166 * attribs.c: Likewise.
8167 * bb-reorder.c: Likewise.
8168 * bitmap.c: Likewise.
8169 * bitmap.h: Likewise.
8170 * builtins.c: Likewise.
8171
8172 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
8173
8174 * reload.c (find_valid_class): Accept new argument DEST,
8175 choose class accordingly.
8176 (push_reload): Update callers.
8177
8178 2002-05-26 Andreas Jaeger <aj@suse.de>
8179
8180 * combine.c (combine_instructions): Do not indent #if for
8181 traditional C.
8182
8183 2002-05-25 Richard Henderson <rth@redhat.com>
8184
8185 * c-pragma.c (apply_pragma_weak): Convert value identifier to
8186 string for decl_attributes.
8187 (handle_pragma_weak): Call assemble_alias if we're modifying
8188 an existing decl.
8189
8190 2002-05-25 Richard Henderson <rth@redhat.com>
8191
8192 PR target/6788
8193 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
8194 using rtl instead of fprintf.
8195 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
8196 * config/sparc/sparc-protos.h: Update.
8197
8198 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
8199
8200 * Makefile.in (C_COMMON_H): Fix.
8201 Update other targets.
8202 * c-common.c: Don't include c-lex.h.
8203 (builtin_define_with_value): Make static and prototype.
8204 (builtin_define_std): Move from c-lex.h.
8205 * c-common.h (init_c_lex): Move from c-lex.h.
8206 * c-decl.c: Don't include c-lex.h.
8207 (make_pointer_declarator): Move from c-parse.in.
8208 * c-lex.c: Don't include c-lex.h.
8209 * c-lex.h: Remove.
8210 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
8211 (make_pointer_declarator): Move to c-decl.c.
8212 * c-pragma.c: Don't include c-lex.h.
8213 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
8214 * c-tree.h (make_pointer_declarator): New.
8215 doc:
8216 * passes.texi, tm.texi: Update.
8217 objc:
8218 * Make-lang.in: Update and correct.
8219 * objc-act.c: Don't include c-lex.h or cpplib.h.
8220 treelang:
8221 * treetree.c: Don't include c-lex.h.
8222 config:
8223 * darwin-c.c: Don't include c-lex.h.
8224 * c4x/c4x-c.c: Don't include c-lex.h.
8225 * c4x/t-c4x: Update.
8226 * i370/i370-c.c: Don't include c-lex.h.
8227 * i370/t-i370: Update.
8228 * i960/i960-c.c: Don't include c-lex.h.
8229 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
8230 * i960/t-960bare: Update.
8231 * i960/t-vxworks: Update.
8232 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
8233 * rs6000/t-darwin: Update.
8234 * rs6000/t-rs6000-c-rule: Update.
8235 * v850/v850-c.c: Don't include c-lex.h.
8236 * v850/v850.c: Don't include c-lex.h or cpplib.h.
8237
8238
8239 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
8240
8241 * tree.def: Fix typos.
8242 * doc/install.texi: Likewise.
8243
8244 2002-05-25 Richard Henderson <rth@redhat.com>
8245
8246 * configure.in (HAVE_AS_TLS): Add ia64 test.
8247 * configure: Rebuild.
8248 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
8249 (override_options): Set it.
8250 (TARGET_HAVE_TLS): New.
8251 (sdata_symbolic_operand): Look for 's'.
8252 (tls_symbolic_operand): New.
8253 (ia64_expand_load_address): Abort for tls symbols.
8254 (gen_tls_get_addr): New.
8255 (gen_thread_pointer): New.
8256 (ia64_expand_move): Split out from movdi. Handle tls symbols.
8257 (rtx_needs_barrier): Add new unspecs.
8258 (ia64_encode_section_info): Handle tls symbols.
8259 (ia64_strip_name_encoding): Strip two encoding chars.
8260 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
8261 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
8262 (TARGET_OPTIONS): Add tls-size.
8263 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
8264 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
8265 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
8266 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
8267 (movsf, movdf): Likewise.
8268 (movdi_symbolic): Use match_scratch. Don't split if we won't
8269 have a scratch availiable.
8270 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
8271 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
8272 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
8273 * config/ia64/ia64-protos.h: Update.
8274 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
8275 sdata_symbolic_operand.
8276 (ASM_OUTPUT_LABELREF): Strip two characters.
8277
8278 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
8279
8280 * combine.c (simplify_set): Remove an unnecessary subreg.
8281
8282 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
8283
8284 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
8285
8286 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
8287
8288 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
8289
8290 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
8291
8292 2002-05-25 Roger Sayle <roger@eyesopen.com>
8293
8294 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
8295 (cond (compare x y) 0) into the equivalent (cond x y).
8296
8297 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
8298
8299 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
8300
8301 2002-05-24 Zack Weinberg <zack@codesourcery.com>
8302
8303 * config.gcc: Remove all stanzas for previously obsoleted
8304 systems. Where necessary, add explicit error stanzas to
8305 prevent removed systems from being misidentified as something
8306 else. Begin a fresh obsoletions list, with the systems that
8307 were reprieved last round.
8308 * doc/install.texi: Remove all mention of dead targets.
8309 * fixinc/mkfixinc.sh: Likewise.
8310
8311 * config/arm/arm.h: Bit 31 of target_flags is no longer
8312 reserved.
8313
8314 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
8315 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
8316 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
8317 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
8318 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
8319 config/alpha/osf12.h, config/alpha/osf2or3.h,
8320 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
8321 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
8322 config/clipper/clipper-protos.h, config/clipper/clipper.c,
8323 config/clipper/clipper.h, config/clipper/clipper.md,
8324 config/clipper/clix.h, config/convex/convex-protos.h,
8325 config/convex/convex.c, config/convex/convex.h,
8326 config/convex/convex.md, config/convex/fixinc.convex,
8327 config/convex/proto.h, config/elxsi/elxsi-protos.h,
8328 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
8329 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
8330 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
8331 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
8332 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
8333 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
8334 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
8335 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
8336 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
8337 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
8338 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
8339 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
8340 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
8341 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
8342 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
8343 config/m68k/altos3068.h, config/m68k/apollo68.h,
8344 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
8345 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
8346 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
8347 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
8348 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
8349 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
8350 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
8351 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
8352 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
8353 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
8354 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
8355 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
8356 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
8357 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
8358 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
8359 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
8360 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
8361 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
8362 config/mips/dec-osf1.h, config/mips/elflorion.h,
8363 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
8364 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
8365 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
8366 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
8367 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
8368 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
8369 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
8370 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
8371 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
8372 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
8373 config/ns32k/sequent.h, config/ns32k/tek6000.h,
8374 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
8375 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
8376 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
8377 config/sparc/rtems.h, config/we32k/we32k-protos.h,
8378 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
8379 Delete file.
8380
8381 2002-05-24 Richard Henderson <rth@redhat.com>
8382
8383 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
8384 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
8385 * config/i386/i386.c (tls_model_chars): Add leading space.
8386 (tls_symbolic_operand): Don't bias by 1.
8387 (legitimize_address): Don't unbias by 1.
8388
8389 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8390
8391 * lcm.c (optimize_mode_switching): Change bb used as indices
8392 to bb->index.
8393
8394 2002-05-24 Richard Henderson <rth@redhat.com>
8395
8396 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
8397 of update_life_info_in_dirty_blocks.
8398
8399 2002-05-24 Jakub Jelinek <jakub@redhat.com>
8400
8401 PR other/6782
8402 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
8403
8404 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
8405
8406 PR preprocessor/6780
8407 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
8408
8409 2002-05-24 Jim Blandy <jimb@redhat.com>
8410
8411 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
8412 entry with a type code of zero, marking the end of the compilation
8413 unit's macro info.
8414
8415 2002-05-24 Richard Henderson <rth@redhat.com>
8416
8417 * varasm.c (asm_output_bss): Always output one byte.
8418 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8419
8420 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8421
8422 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
8423 namespace.
8424
8425 2002-05-24 Andreas Jaeger <aj@suse.de>
8426
8427 * ggc-page.c (alloc_page): Cast variables of type size_t to
8428 unsigned long, adjust printf format string.
8429 (ggc_alloc): Likewise.
8430 (ggc_print_statistics): Likewise.
8431 (ggc_print_statistics): Correct printf format string for SCALE to
8432 use unsigned long.
8433
8434 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
8435
8436 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
8437
8438 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
8439 Zack Weinberg <zack@codesourcery.com>
8440
8441 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
8442 quoted strings.
8443 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8444 directive in assembly file.
8445 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
8446 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
8447 * config/pj/pj.h (ASM_FILE_START): Likewise.
8448 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
8449 * config/avr/avr.c (asm_file_end): Likewise.
8450 * toplev.c (output_quoted_string): Handle possibly signed plain
8451 char.
8452 * toplev.h (output_clean_symbol_name): Declare
8453 * toplev.c (output_clean_symbol_name): Define.
8454 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
8455 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
8456
8457 2002-05-24 Alan Modra <amodra@bigpond.net.au>
8458
8459 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
8460
8461 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
8462
8463 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
8464 of size of unsigned.
8465
8466 2002-05-23 Richard Henderson <rth@redhat.com>
8467
8468 * configure.in (HAVE_AS_TLS): New test.
8469 * config.in, configure: Rebuild.
8470 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
8471 (ix86_tls_dialect_string, ix86_tls_dialect): New.
8472 (override_options): Set it.
8473 (tls_model_chars, tls_symbolic_operand): New.
8474 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
8475 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
8476 (local_exec_symbolic_operand): New.
8477 (get_pic_label_name): Merge into output_set_got.
8478 (ix86_asm_file_end): Emit pic_label_name if defined.
8479 (legitimate_constant_p, constant_address_p): New.
8480 (legitimate_pic_operand_p): New.
8481 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
8482 (legitimate_address_p): Likewise.
8483 (ix86_encode_section_info): Rename from i386_; handle tls decls.
8484 (ix86_strip_name_encoding): New.
8485 (get_thread_pointer): New.
8486 (legitimize_address): Handle tls symbols.
8487 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
8488 Remove UNSPEC_PLT.
8489 (struct machine_function): Add some_ld_name.
8490 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
8491 (print_operand) [&]: Use it. Handle UNSPEC_TP.
8492 (output_addr_const_extra): New.
8493 (maybe_get_pool_constant): New.
8494 (ix86_split_to_parts): Use it.
8495 (ix86_expand_move): Handle tls symbols.
8496 (ix86_tls_get_addr): New.
8497 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
8498 (TARGET_OPTIONS): Add tls-dialect.
8499 (CONSTANT_ADDRESS_P): Use new out-of-line function.
8500 (LEGITIMATE_CONSTANT_P): Likewise.
8501 (LEGITIMATE_PIC_OPERAND_P): Likewise.
8502 (TARGET_STRIP_NAME_ENCODING): New.
8503 (ASM_OUTPUT_LABELREF): New.
8504 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
8505 (OUTPUT_ADDR_CONST_EXTRA): New.
8506 (PREDICATE_CODES): Update.
8507 (ix86_tls_dialect, ix86_tls_dialect_string): New.
8508 * config/i386/i386.md: Regroup and renumber unspec constants.
8509 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
8510 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
8511 (tls_global_dynamic, tls_local_dynamic_base): New.
8512 (tls_local_dynamic_once): New.
8513 * config/i386/i386-protos.h: Update.
8514
8515 2002-05-23 Richard Henderson <rth@redhat.com>
8516
8517 * genemit.c (gen_insn): Print file:lineno comment before function.
8518 (main): likewise.
8519 * gensupport.c (struct queue_elem): Add filename member.
8520 (queue_pattern): Initialize it; update all callers.
8521 (process_include): Don't free filename.
8522 (read_md_rtx): Set read_rtx_filename.
8523
8524 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
8525
8526 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
8527
8528 2002-05-23 Richard Henderson <rth@redhat.com>
8529
8530 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
8531
8532 2002-05-23 Richard Henderson <rth@redhat.com>
8533
8534 * doc/extend.texi (C++98 Thread-Local Edits): Update with
8535 commentary from Mark.
8536
8537 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8538
8539 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
8540 Use FOR_EACH_BB macros to iterate over basic block chain.
8541 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
8542 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
8543 Likewise.
8544 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
8545 find_unreachable_blocks, create_edge_list, verify_edge_list,
8546 remove_fake_edges, add_noreturn_fake_exit_edges,
8547 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
8548 Likewise.
8549 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
8550 find_sub_basic_blocks): Likewise.
8551 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
8552 Likewise.
8553 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
8554 Likewise.
8555 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
8556 Likewise.
8557 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
8558 commit_edge_insertions, commit_edge_insertions_watch_calls,
8559 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
8560 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
8561 * conflict.c (conflict_graph_compute): Likewise.
8562 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8563 df_modified_p, df_refs_unlink, df_dump): Likewise.
8564 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
8565 * final.c (compute_alignments): Likewise.
8566 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
8567 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
8568 count_or_remove_death_notes): Likewise.
8569 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
8570 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
8571 classic_gcse, compute_transp, cprop, compute_pre_data,
8572 compute_transpout, invalidate_nonnull_info,
8573 delete_null_pointer_checks_1, delete_null_pointer_checks,
8574 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
8575 compute_store_table, build_store_vectors, store_motion): Likewise.
8576 * global.c (global_conflicts, mark_elimination): Likewise.
8577 * graph.c (print_rtl_graph_with_bb): Likewise.
8578 * haifa-sched.c (sched_init): Likewise.
8579 * ifcvt.c (if_convert): Likewise.
8580 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
8581 compute_available, compute_nearerout, compute_rev_insert_delete,
8582 optimize_mode_switching): Likewise.
8583 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
8584 * predict.c (estimate_probability, note_prediction_to_br_prob,
8585 propagate_freq, counts_to_freqs, expensive_function_p,
8586 estimate_bb_frequencies): Likewise.
8587 * profile.c (instrument_edges, get_exec_counts,
8588 compute_branch_probabilities, compute_checksum, branch_prob,
8589 find_spanning_tree): Likewise.
8590 * recog.c (split_all_insns, peephole2_optimize): Likewise.
8591 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
8592 Likewise.
8593 * regclass.c (scan_one_insn, regclass): Likewise.
8594 * regmove.c (mark_flags_life_zones, regmove_optimize,
8595 record_stack_memrefs): Likewise.
8596 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
8597 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
8598 * resource.c (find_basic_block): Likewise.
8599 * sched-ebb.c (schedule_ebbs): Likewise.
8600 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
8601 find_single_block_region, find_rgns, schedule_insns)
8602 * sibcall.c (optimize_sibling_and_tail_recursive_call)
8603 * ssa-ccp.c (optimize_unexecutable_edges,
8604 ssa_ccp_df_delete_unreachable_insns): Likewise.
8605 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8606 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
8607 rename_block, convert_to_ssa, compute_conservative_reg_partition,
8608 compute_coalesced_reg_partition, rename_equivalent_regs,
8609 convert_from_ssa): Likewise.
8610 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
8611 process_for_unwind_directive): Likewise.
8612
8613 * df.c (FOR_ALL_BBS): Removed.
8614 * gcse.c (struct null_pointer_info): Type of current_block field
8615 changed.
8616 (struct reg_avail_info): Type of last_bb field changed.
8617 * config/ia64/ia64.c (block_num): Removed.
8618 (need_copy_state): Type changed.
8619 (last_block): New.
8620
8621 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8622
8623 * cppinit.c (mark_named_operators): Split out from init_builtins.
8624 (cpp_finish_options): Call it from here instead.
8625
8626 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
8627
8628 * builtin-attrs.def: Update copyright years.
8629 (ATTR_NONNULL): New attribute identifier.
8630 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
8631 attribute tree lists.
8632 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
8633 format operand.
8634 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
8635 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
8636 attribute lists. Chain the appropriate nonnull attribute.
8637 * c-format.c (check_format_arg): Remove null format string
8638 warning.
8639 * testsuite/gcc.dg/format/null-1.c: New test.
8640
8641 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8642
8643 * Makefile.in (ADAC): Define.
8644 (SYSLIBS): Define.
8645 (.SUFFIXES): Move before language makefile fragments.
8646 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
8647
8648 2002-05-23 Mark Mitchell <mark@codesourcery.com>
8649
8650 * varasm.c (make_decl_rtl): Don't allow weak variables to be
8651 placed in common.
8652
8653 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
8654
8655 * cfg.c (dump_flow_info): Print results of
8656 maybe_hot/probably_never_executed predicates.
8657 * toplev.c (open_dump_file): Print function frequency.
8658
8659 2002-05-23 David S. Miller <davem@redhat.com>
8660
8661 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
8662 regsets.
8663
8664 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
8665
8666 * c-common.c (warn_nonnull): Declare.
8667 (c_common_attribute_table): Add "nonnull" attribute.
8668 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
8669 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
8670 check_function_arguments_recurse): New functions.
8671 * c-common.h (warn_nonnull): Declare extern.
8672 (check_function_arguments, check_function_arguments_recurse): New
8673 prototypes.
8674 * c-decl.c (c_decode_option): Add -Wnonnull option.
8675 * c-format.c (set_Wformat): Set warn_nonnull if enabling
8676 format checking.
8677 (format_check_context): New structure.
8678 (check_format_info_recurse): Remove recursion and rename to...
8679 (check_format_arg): ...this. Update comment.
8680 (check_format_info): Use check_function_arguments_recurse.
8681 * c-typeck.c (build_function_call): Call check_function_arguments
8682 instead of check_function_format.
8683 * doc/extend.texi: Document "nonnull" attribute.
8684 * doc/invoke.texi: Docuemnt -Wnonnull option.
8685 * testsuite/gcc.dg/nonnull-1.c: New test.
8686 * testsuite/gcc.dg/nonnull-2.c: New test.
8687
8688 2002-05-23 David S. Miller <davem@redhat.com>
8689
8690 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
8691 * cfgcleanup.c (cleanup_cfg): If it is set do not
8692 attempt to delete trivially dead insns.
8693 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
8694 * toplev.c (rest_of_compilation): Document non-trivial aspect
8695 the RTL before optimize_save_area_alloca is run.
8696
8697 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8698
8699 * c-lex.c (indent_level): Remove.
8700 (cb_file_change, c_lex): Remove indent level handling.
8701 * c-lex.h (indent_level): Remove.
8702 * input.h (struct file_stack): Remove indent_level.
8703 * toplev.c (push_srcloc): Remove indent_level handling.
8704
8705 2002-05-23 Jakub Jelinek <jakub@redhat.com>
8706
8707 PR target/6753
8708 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
8709 of x in constraints for clarity.
8710 (sse_mov?fcc split): abort if op2 == op3.
8711 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
8712 sse_movsfcc_const0_4): Add earlyclobber.
8713 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
8714 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
8715 Use Y instead of x in constraints.
8716
8717 2002-05-23 Richard Henderson <rth@redhat.com>
8718
8719 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
8720 (C++98 Thread-Local Edits): New subsection.
8721
8722 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
8723 (ix86_arch): Set type to enum processor_type.
8724
8725 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
8726 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
8727
8728 2002-05-23 Jakub Jelinek <jakub@redhat.com>
8729
8730 * configure.in: Fix as version test for binutils 2.12.1 releases
8731 (without dates).
8732 * configure: Rebuilt.
8733
8734 2002-05-23 Richard Henderson <rth@redhat.com>
8735
8736 * config/i386/i386.c (get_pic_label_name): New.
8737 (load_pic_register): Remove.
8738 (output_set_got): New.
8739 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
8740 * config/i386/i386.md (UNSPEC_SET_GOT): New.
8741 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
8742 (prologue_set_got, prologue_get_pc): Remove.
8743 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
8744 (builtin_setjmp_receiver): Use gen_set_got.
8745 * config/i386/i386-protos.h: Update.
8746
8747 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8748
8749 * gcse.c (hash_expr): Do not use alias set for hashing.
8750
8751 2002-05-22 Kevin Buettner <kevinb@redhat.com>
8752
8753 * dbxout.c (dbxout_class_name_qualifiers): New function.
8754 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
8755
8756 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8757
8758 * cpperror.c (_cpp_begin_message): No special casing
8759 of CPP_FATAL_LIMIT.
8760 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
8761 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
8762 * cpplib.c (do_include_common): Use DL_ERROR.
8763 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
8764 (DL_ICE): Renumber.
8765 * fix-header.c (read_scan_file): Update.
8766
8767 2002-05-22 Richard Henderson <rth@redhat.com>
8768
8769 * config/i386/i386.c (ix86_expand_call): New function, extracted
8770 from md call patterns. Add pic_offset_table_rtx to
8771 CALL_INSN_FUNCTION_USAGE when needed.
8772 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
8773 (call_value_pop, call_value, untyped_call): Likewise.
8774 (call_exp, call_value_exp): Remove.
8775 * config/i386/i386-protos.h: Update.
8776
8777 2002-05-22 Richard Henderson <rth@redhat.com>
8778
8779 * varasm.c (default_section_type_flags): Check for VAR_DECL
8780 before using DECL_THREAD_LOCAL.
8781
8782 2002-05-22 David Edelsohn <edelsohn@gnu.org>
8783
8784 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
8785 (STARTFILE_SPEC): Delete PE crt0.o.
8786 * config/rs6000/aix51.h: Same.
8787 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
8788 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
8789 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
8790 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
8791 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
8792
8793 2002-05-22 Richard Henderson <rth@redhat.com>
8794
8795 * varasm.c (default_section_type_flags): Handle tls data and
8796 default sections.
8797 (default_unique_section): Handle tls sections.
8798
8799 2002-05-23 Alan Modra <amodra@bigpond.net.au>
8800
8801 * configure.in (CROSS): Define NATIVE_CROSS.
8802 * configure: Regenerate.
8803 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
8804 (startfile_prefix_spec): New var.
8805 (static_specs): Add startfile_prefix_spec.
8806 (do_spec_2): Split out from..
8807 (do_spec): ..here.
8808 (main): Process startfile_prefix_spec.
8809 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
8810 dynamic linker.
8811 (STARTFILE_PREFIX_SPEC): Define.
8812 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
8813 absolute paths.
8814
8815 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8816
8817 * cpperror.c: Fix formatting.
8818 * cppexp.c: Likewise.
8819 * cppfiles.c: Likewise.
8820 * cpphash.c: Likewise.
8821 * cpphash.h: Likewise.
8822 * cppinit.c: Likewise.
8823 * cpplex.c: Likewise.
8824 * cpplib.c: Likewise.
8825 * cppmacro.c: Likewise.
8826 * cppmain.c: Likewise.
8827 * cppspec.c: Likewise.
8828
8829 2002-05-22 Jakub Jelinek <jakub@redhat.com>
8830
8831 * combine.c (force_to_mode): Use gen_int_mode.
8832 Don't clear CONST_INT bits outside of mode.
8833
8834 2002-05-22 Richard Henderson <rth@redhat.com>
8835
8836 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
8837 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
8838
8839 2002-05-22 Jakub Jelinek <jakub@redhat.com>
8840
8841 PR c/6643
8842 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
8843 if DECL_SIZE_UNIT is INTEGER_CST.
8844
8845 2002-05-22 Richard Henderson <rth@redhat.com>
8846
8847 * flow.c (life_analysis): Delete broken reg_label check.
8848
8849 2002-05-22 Richard Henderson <rth@redhat.com>
8850
8851 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
8852 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
8853
8854 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
8855
8856 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
8857 (embed-bb.c): New rule.
8858 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
8859 * config/sh/embed_bb.c: Delete.
8860
8861 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
8862
8863 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
8864
8865 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8866
8867 * config/h8300/h8300.md (*andorqi3): New.
8868
8869 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
8870
8871 PR preprocessor/6517
8872 * Makefile.in: Update.
8873 * c-common.c (c_common_post_options): Add preprocessor
8874 errors to the error count.
8875 * c-lang.c (c_post_options): Kill.
8876 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8877 * hooks.h: Add header guards.
8878 * langhooks-def.h: Include hooks.h.
8879 (LANG_HOOKS_POST_OPTIONS): Update.
8880 * langhooks.h (struct lang_hooks): Update post_options.
8881 * toplev.c (parse_options_and_default_flags): Update.
8882 objc:
8883 * objc-lang.c (objc_post_options): Kill.
8884 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8885
8886 2002-05-21 Bruce Korb <bkorb@gnu.org>
8887
8888 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
8889 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
8890 * fixinc/fixincl.x: regen.
8891
8892 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
8893
8894 * cfgbuild.c: Fix formatting.
8895 * cfg.c: Likewise.
8896 * cfgcleanup.c: Likewise.
8897 * cfglayout.c: Likewise.
8898 * cfgloop.c: Likewise.
8899 * cfgrtl.c: Likewise.
8900
8901 2002-05-21 Richard Henderson <rth@redhat.com>
8902
8903 * c-common.h (enum rid): Add RID_THREAD.
8904 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
8905 (grokdeclarator): Grok __thread.
8906 * c-parse.in (reswords): Add __thread.
8907 (rid_to_yy): Add RID_THREAD.
8908
8909 * tree.h (DECL_THREAD_LOCAL): New.
8910 (struct tree_decl): Add thread_local_flag.
8911 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
8912 * tree.c (staticp): TLS variables are not static.
8913
8914 * target-def.h (TARGET_HAVE_TLS): New.
8915 * target.h (have_tls): New.
8916 * output.h (SECTION_TLS): New.
8917 * varasm.c (assemble_variable): TLS variables can't be common for now.
8918 (default_section_type_flags): Handle .tdata and .tbss.
8919 (default_elf_asm_named_section): Handle SECTION_TLS.
8920 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
8921
8922 * flags.h (flag_tls_default): Declare.
8923 * toplev.c (flag_tls_default): Define.
8924 (display_help): Display help for it.
8925 (decode_f_option): Set it.
8926
8927 * doc/extend.texi (Thread-Local): New node describing language-level
8928 thread-local storage.
8929 * doc/invoke.texi (-ftls-model): Document.
8930
8931 * fixinc/inclhack.def (thread_keyword): New.
8932 * fixinc/fixincl.x: Rebuild.
8933
8934 2002-05-21 Jeffrey A Law <law@redhat.com>
8935
8936 * optabs.c (expand_binop): For double-word integer multiplies,
8937 do not compute intermediate results into something that is
8938 not a register (such as a SUBREG or MEM).
8939
8940 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
8941 (ix86_sched_reorder): Make sure to initialize scheduling
8942 data even when there's only one insn in the ready queue.
8943
8944 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8945
8946 * genautomata.c (reserv_sets_hash_value): Fix a typo.
8947
8948 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8949
8950 * genautomata.c (reserv_sets_hash_value): Define hash_value as
8951 set_el_t. Transform the hash value into unsigned.
8952 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
8953 (transform_3): Add code to process `(A,B)+(D,E)'.
8954
8955 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
8956
8957 * reload1.c (do_output_reload): Run delete_output_reload
8958 only if optimizing.
8959
8960 2002-05-21 Roger Sayle <roger@eyesopen.com>
8961
8962 PR middle-end/6600
8963 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
8964 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
8965 (can_store_by_pieces): ... and here to limit the largest mode used.
8966 Add a comment to document this function.
8967
8968 2002-05-21 Richard Henderson <rth@redhat.com>
8969
8970 * flow.c (life_analysis): Fix test for deleted label.
8971
8972 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
8973
8974 * doc/tm.texi: Fix typo.
8975
8976 2002-05-21 Zack Weinberg <zack@codesourcery.com>
8977
8978 * c-common.c (c_common_init): Set options->unsigned_char from
8979 flag_signed_char.
8980 (cb_register_builtins): Define __STRICT_ANSI__ and
8981 __CHAR_UNSIGNED__ here...
8982 * cppinit.c (init_builtins): Not here.
8983 (cpp_create_reader): unsigned_char option defaults to 0, not
8984 !DEFAULT_SIGNED_CHAR.
8985 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
8986 and -funsigned-char.
8987
8988 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
8989 * cpphash.c (_cpp_init_hashtable): Don't set it.
8990 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
8991 directly. Clarify comment.
8992
8993 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8994
8995 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
8996 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
8997 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
8998 BASIC_BLOCK (n_basic_blocks - 1).
8999 * cfganal.c (can_fallthru, flow_call_edges_add,
9000 flow_preorder_transversal_compute): Too.
9001 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
9002 find_sub_basic_blocks): Too.
9003 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
9004 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
9005 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
9006 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
9007 * combine.c (this_basic_block): Type changed to basic_block.
9008 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
9009 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
9010 get_last_value, distribute_notes, distribute_links): Too.
9011 * final.c (compute_alignments): Too.
9012 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
9013 * function.c (thread_prologue_and_epilogue_insns): Too.
9014 * gcse.c (compute_code_hoist_vbeinout): Too.
9015 * global.c (build_insn_chain): Too.
9016 * ifcvt.c (find_if_block, find_cond_trap): Too.
9017 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
9018 * regmove.c (regmove_optimize): Too.
9019 * resource.c (find_basic_block): Too.
9020 * sched-ebb.c (schedule_ebbs): Too.
9021 * ssa-dce.c (find_control_dependence, find_pdom): Too.
9022
9023 2002-05-21 Andreas Jaeger <aj@suse.de>
9024
9025 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
9026
9027 2002-05-21 Richard Henderson <rth@redhat.com>
9028
9029 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
9030 unspec names, not numbers.
9031
9032 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
9033
9034 * doc/sourcebuild.texi: Mention snapshot-README and
9035 snapshot-index.html as needing updating for new front ends.
9036
9037 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9038
9039 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
9040 disabling checking, and avoid multiple evaluation of RTX.
9041
9042 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
9043
9044 * bitmap.c (bitmap_find_bit): Return early if we have the correct
9045 element cached.
9046
9047 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
9048
9049 * profile.c (gen_edge_profiler): Set alias set before the memory is
9050 used.
9051
9052 2002-05-20 David S. Miller <davem@redhat.com>
9053
9054 * cselib.c (max_value_regs): New.
9055 (cselib_lookup, cselib_invalidate_regno): Initialize it when
9056 adding new entries to the REG_VALUES table and we are dealing with
9057 a hard register.
9058 (clear_table): Initialize it.
9059 (cselib_invalidate_regno): Use it to determine which hard
9060 registers to scan when mode is not VOIDmode.
9061
9062 2002-05-20 Duraid Madina <duraid@fl.net.au>
9063
9064 * tradcpp.c (fixup_newlines): Use old-style function header.
9065
9066 2002-05-20 Krister Walfridsson <cato@df.lth.se>
9067
9068 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
9069
9070 2002-05-20 H.J. Lu (hjl@gnu.org)
9071
9072 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
9073
9074 * config/mips/mips.h (DFMODE_NAN): Defined.
9075 (SFMODE_NAN): Likewise.
9076
9077 2002-05-20 Dale Johannesen <dalej@apple.com>
9078
9079 * combine.c (cant_combine_insn_p): Back out my
9080 previous patch.
9081
9082 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9083
9084 * params.c: Fix formatting.
9085 * params.h: Likewise.
9086 * predict.c: Likewise.
9087 * prefix.c: Likewise.
9088 * print-rtl.c: Likewise.
9089 * print-tree.c: Likewise.
9090 * profile.c: Likewise.
9091
9092 2002-05-20 H.J. Lu (hjl@gnu.org)
9093
9094 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
9095
9096 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
9097
9098 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
9099 switches straight on to the assembler, do not abbreviate them.
9100 * config/arm/elf.h (ASM_SPEC): As above.
9101 * config/arm/semi.h (ASM_SPEC): As above.
9102 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
9103 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
9104 -mcpu=xscale on to the assembler by default.
9105 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
9106
9107 2002-05-20 Richard Henderson <rth@redhat.com>
9108
9109 * cse.c (canon_hash): Reorder do_not_record test. Always
9110 allow pic_offset_table_rtx.
9111
9112 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
9113
9114 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
9115 (expand_binop): Ditto (3 times).
9116
9117 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
9118
9119 * Makefile.in (distclean): Remove QMTest stuff.
9120 (QMTEST_PATH): New variable.
9121 (QMTESTFLAGS): Likewise.
9122 (QMTESTRUNFLAGS): Likewise.
9123 (QMTEST): Likewise.
9124 (QMTEST_GPP_TESTS): Likewise.
9125 (QMTEST_DIR): Likewise.
9126 (QMTEST_DIR/context): New target.
9127 (qmtest-g++): Likeise.
9128 (qmtest-gui): Likewise.
9129 (QMTEST_DIR/gpp-expected.qmr): Likewise.
9130
9131 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
9132
9133 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
9134 an altivec register if TARGET_ALTIVEC.
9135
9136 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
9137 to ALTIVEC_VECTOR_MODE.
9138 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
9139 (rs6000_va_arg): Vectors may go in registers if they are not
9140 altivec vectors.
9141
9142 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
9143
9144 * protoize.c: Fix formatting.
9145
9146 2002-05-19 Richard Henderson <rth@redhat.com>
9147
9148 * gensupport.c (init_include_reader): Merge into ...
9149 (process_include): ... here. Simplify composite path creation.
9150 Plug memory leaks. Fix file/line number tracking. Do not
9151 process_define_cond_exec. Return void.
9152 (process_rtx): Don't check process_include return value.
9153
9154 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9155
9156 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
9157 fields.
9158 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9159 traversing basic block chain.
9160 (create_basic_block_structure, create_basic_block): Declaration changed.
9161 (link_block, unlink_block): Declare.
9162 * cfg.c (entry_exit_blocks): Initialize new fields.
9163 (link_block, unlink_block): New.
9164 (expunge_block_nocompact): Unlink basic block.
9165 (dump_flow_info): Print prev_bb/next_bb fields.
9166 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
9167 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
9168 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
9169 * cfgrtl.c (create_basic_block_structure, create_basic_block,
9170 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
9171 (verify_flow_info): Check that list agrees with numbering.
9172
9173 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
9174
9175 * c-common.c (preprocessing_asm): New macro.
9176 * c-lex.h (builtin_define, builtin_assert): Use pfile.
9177 doc:
9178 * tm.texi: Update.
9179 config/alpha:
9180 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
9181 (CPP_SPEC): Simplify.
9182 (TARGET_CPU_CPP_BUILTINS): Update.
9183 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
9184 (CPP_SPEC): Simplify.
9185 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
9186 (TARGET_OS_CPP_BUILTINS): Update.
9187 * osf.h (CPP_XFLOAT_SPEC): Kill.
9188 (TARGET_OS_CPP_BUILTINS): Update.
9189 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
9190 * osf5.h (CPP_XFLOAT_SPEC): Kill.
9191 * vms.h (CPP_SUBTARGET_SPEC): Kill.
9192 (TARGET_OS_CPP_BUILTINS): Update.
9193
9194 2002-05-19 Richard Henderson <rth@redhat.com>
9195
9196 * varasm.c (default_binds_local_p): Fix typo.
9197
9198 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
9199
9200 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
9201 CONST_INT operand to the correct mode after adding 1 to it.
9202
9203 2002-05-19 Mark Mitchell <mark@codesourcery.com>
9204
9205 * config.gcc (powerpc-wrs-windiss*): New target.
9206
9207 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9208
9209 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
9210 (ashrdi3): Use it.
9211
9212 2002-05-18 Mark Mitchell <mark@codesourcery.com>
9213
9214 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
9215 alphasort.
9216 * config.in: Regenerated.
9217 * configure: Regenerated.
9218
9219 2002-05-19 Richard Henderson <rth@redhat.com>
9220
9221 * target-def.h (TARGET_BINDS_LOCAL_P): New.
9222 * target.h (struct gcc_target): Move boolean fields to the end.
9223 Add binds_local_p.
9224 * varasm.c (default_binds_local_p): New.
9225 * output.h: Declare it.
9226
9227 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
9228 * config/cris/cris.c (cris_encode_section_info): Likewise.
9229 * config/i386/i386.c (i386_encode_section_info): Likewise.
9230 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
9231 * config/sh/sh.c (sh_encode_section_info): Likewise.
9232
9233 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
9234 (TARGET_BINDS_LOCAL_P): New.
9235
9236 2002-05-19 Richard Henderson <rth@redhat.com>
9237
9238 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
9239 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
9240 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
9241
9242 * toplev.c (display_help): Kill -a -ax help.
9243
9244 * config/1750a/1750a.h, config/alpha/alpha.h,
9245 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
9246 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
9247 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
9248 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
9249
9250 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
9251 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
9252
9253 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
9254 (ix86_output_function_block_profiler): Kill.
9255 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
9256 (m68hc11_function_block_profiler): Kill.
9257 * config/m68hc11/m68hc11-protos.h: Update.
9258 * config/m88k/m88k.c (output_block_profiler): Kill.
9259 (output_function_block_profiler): Kill.
9260 * config/m88k/m88k-protos.h: Update.
9261
9262 2002-05-19 Richard Henderson <rth@redhat.com>
9263
9264 * system.h (STRIP_NAME_ENCODING): Poison it.
9265 * output.h (STRIP_NAME_ENCODING): Remove.
9266 (default_strip_name_encoding): Declare.
9267 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
9268 * target.h (strip_name_encoding): New.
9269 * varasm.c (default_strip_name_encoding): New.
9270
9271 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
9272 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
9273 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
9274 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
9275 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
9276 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
9277 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
9278 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
9279 config/v850/v850.h: Use the hook, not the macro.
9280
9281 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
9282 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
9283 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
9284 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
9285 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
9286 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
9287 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
9288 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
9289 config/v850/v850.c, config/v850/v850.h:
9290 Move STRIP_NAME_ENCODING to out-of-line function and add
9291 TARGET_STRIP_NAME_ENCODING.
9292
9293 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
9294 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
9295 with TARGET_STRIP_NAME_ENCODING referencing existing function;
9296 make function static.
9297
9298 * xcoffout.c: Include target.h
9299 * Makefile.in (xcoffout.o): Update.
9300
9301 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
9302 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
9303 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
9304 reloc argument unused.
9305 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
9306
9307 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
9308 STRIP_NAME_ENCODING docs.
9309
9310 2002-05-19 Andreas Jaeger <aj@suse.de>
9311
9312 * gengenrtl.c: Add prototype for excluded_rtx.
9313
9314 * real.h: Add prototype for exact_real_truncate.
9315
9316 2002-05-18 Richard Henderson <rth@redhat.com>
9317
9318 * system.h (ENCODE_SECTION_INFO): Poison it.
9319 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
9320 * target.h (encode_section_info): New.
9321 * varasm.c (make_decl_rtl, output_constant_def): Use it.
9322 * hooks.c (hook_tree_int_void): New.
9323 * hooks.h: Declare it.
9324
9325 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
9326 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
9327 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
9328 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
9329 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
9330 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
9331 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
9332 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
9333 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
9334 config/mcore/mcore-protos.h, config/mcore/mcore.c,
9335 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
9336 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
9337 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
9338 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
9339 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
9340 referencing existing function. Make function static.
9341
9342 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
9343 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
9344 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
9345 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
9346 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
9347 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
9348 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
9349 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
9350 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
9351 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
9352 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
9353 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
9354 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
9355 Move ENCODE_SECTION_INFO to out-of-line function and add
9356 TARGET_ENCODE_SECTION_INFO.
9357
9358 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
9359 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9360
9361 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
9362 from SUBTARGET_*
9363 (switch_to_section): Replace in_rdata case with in_readonly_data.
9364
9365 * config/h8300/h8300.c (h8300_encode_label): Make static.
9366 * config/h8300/h8300-protos.h: Update.
9367
9368 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
9369 from rs6000_encode_section_info; make static.
9370 (rs6000_xcoff_encode_section_info): New.
9371
9372 * config/v850/v850.c (v850_encode_data_area): Make static.
9373 * config/v850/v850-protos.h: Update.
9374
9375 * config/vax/vax.c: Include flags.h.
9376 (vms_select_section): Fix typo.
9377
9378 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
9379 ENCODE_SECTION_INFO docs.
9380
9381 2002-05-18 Richard Henderson <rth@redhat.com>
9382
9383 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
9384 REGISTER_TARGET_PRAGMAS.
9385 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
9386
9387 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
9388
9389 2002-05-18 Richard Henderson <rth@redhat.com>
9390
9391 * system.h (SELECT_RTX_SECTION): Poison.
9392 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
9393 * target.h (select_rtx_section): New.
9394 * varasm.c (output_constant_pool): Use it.
9395 (default_select_rtx_section, default_elf_select_rtx_section): New.
9396 * output.h: Declare them.
9397
9398 * config/darwin.h (SELECT_RTX_SECTION): Move ...
9399 * config/darwin.c (machopic_select_rtx_section): ... here.
9400 * config/darwin-protos.h: Update.
9401
9402 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
9403 * config/nextstep.c (machopic_select_rtx_section): ... here.
9404 (nextstep_select_section): Rename variable to avoid macro clash.
9405 * config/nextstep-protos.h: Update.
9406
9407 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
9408 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
9409 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
9410 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
9411 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
9412 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
9413 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
9414 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
9415 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
9416 (SELECT_RTX_SECTION): Remove.
9417
9418 * config/darwin.h, config/elfos.h, config/nextstep.h,
9419 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
9420 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
9421 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
9422 config/sparc/lynx.h, config/xtensa/xtensa.c
9423 (TARGET_ASM_SELECT_RTX_SECTION): New.
9424
9425 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
9426 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
9427 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
9428 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
9429 (ia64_aix_select_rtx_section): New.
9430 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
9431 redefining.
9432 * config/mips/mips.c (mips_select_rtx_section): Make static.
9433 Support ELF SHF_MERGE features.
9434 * config/mips/mips-protos.h: Update.
9435 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
9436 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
9437 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
9438 make static, fall back to default_elf_select_rtx_section.
9439 * config/rs6000/rs6000-protos.h: Update.
9440 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
9441 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
9442 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
9443 * config/romp/romp.c (romp_select_rtx_section): New.
9444 * config/s390/s390.c (s390_select_rtx_section): New.
9445 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
9446 declarations before target macro definition.
9447 (xtensa_emit_call): Use static buffer.
9448 (xtensa_select_rtx_section): New.
9449 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
9450 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
9451 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
9452
9453 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
9454 SELECT_RTX_SECTION docs.
9455
9456 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
9457
9458 * i386.md (movsi/movdi): Fix template.
9459 (sse2 patterns): Set attributes consistently.
9460
9461 * i386.md (pushqi2, ashrqi_*): Fix constraint.
9462
9463 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
9464
9465 * optabs.c (complex_part_zero_p): New.
9466 * (expand_cmplxdiv_straight): Use it.
9467 * (expand_cmplxdiv_wide): Ditto.
9468 * (expand_binop): Ditto.
9469
9470 2002-05-18 Richard Henderson <rth@redhat.com>
9471
9472 * final.c (HAVE_READONLY_DATA_SECTION): New.
9473 (shorten_branches): Use it instead of ifdefs.
9474 * varasm.c (enum in_section): Add in_readonly_data.
9475 (text_section, data_section): Tidy.
9476 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
9477
9478 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
9479 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
9480 (READONLY_DATA_SECTION): Don't undef.
9481
9482 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
9483 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
9484 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
9485
9486 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
9487 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
9488 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
9489 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
9490
9491 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
9492 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
9493 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
9494 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
9495 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
9496 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
9497 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
9498 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
9499 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
9500
9501 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
9502 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
9503 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
9504 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
9505 config/pa/pa64-hpux.h, config/sparc/litecoff.h
9506 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9507
9508 * config/elfos.h, config/netware.h, config/svr3.h,
9509 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
9510 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
9511 config/h8300/h8300.h, config/i386/i386-interix.h,
9512 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
9513 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
9514
9515 * config/elfos.h, config/netware.h, config/svr3.h,
9516 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
9517 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
9518 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
9519 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
9520
9521 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
9522 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
9523 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
9524 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
9525 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
9526 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
9527 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
9528 config/rs6000/sysv4.h, config/v850/v850.h
9529 (EXTRA_SECTIONS): Remove in_const/in_rdata.
9530 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
9531
9532 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
9533 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
9534 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
9535 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
9536 * config/alpha/alpha.c (alpha_start_function): Likewise.
9537 (alpha_write_linkage): Likewise.
9538 * config/m32r/m32r.c (m32r_select_section): Likewise.
9539 * config/m88k/m88k.c (m88k_select_section): Likewise.
9540 * config/mips/mips.c (mips_select_rtx_section): Likewise.
9541 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
9542 (rs6000_elf_select_section): Likewise.
9543 * config/v850/v850.c (v850_select_section): Likewise.
9544
9545 * config/1750a/1750a.h, config/i860/sysv3.h
9546 (READONLY_DATA_SECTION_ASM_OP): New.
9547 READONLY_DATA_SECTION_ASM_OP.
9548 * config/i386/interix.c, config/i386/winnt.c
9549 (i386_pe_unique_section): Always use .rdata prefix.
9550 * config/pa/som.h (readonly_data): Always switch to read-only section.
9551 (READONLY_DATA_SECTION): Predicate on flag_pic.
9552 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
9553 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
9554 (READONLY_DATA_SECTION): Update.
9555
9556 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
9557
9558 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
9559 is used without -Wformat.
9560 * c-common.h (warn_format_zero_length): Declare extern.
9561 * c-decl.c (warn_options): Add "format-zero-length".
9562 * c-format.c (warn_format_zero_length): Declare.
9563 (set_Wformat): Set warn_format_zero_length for -Wformat.
9564 (check_format_info): Only warn about zero-length formats if
9565 warn_format_zero_length is true. Include the format type
9566 name in the warning message.
9567 * doc/invoke.texi: Document -Wformat-zero-length.
9568 * testsuite/gcc.dg/format/zero-length-1.c: New test.
9569
9570 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
9571
9572 * timevar.c: Fix formatting.
9573 * tlink.c: Likewise.
9574 * toplev.c: Likewise.
9575 * tree-dump.c: Likewise.
9576 * tree-inline.c: Likewise.
9577
9578 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
9579
9580 * cppinit.c (cpp_post_options): If preprocessed, turn off
9581 traditional. If traditional, turn off column numbers.
9582 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
9583 * cpptrad.c (handle_newline): Update line_base.
9584 (skip_comment): Handle -Wcomment.
9585
9586 2002-05-17 Zack Weinberg <zack@codesourcery.com>
9587
9588 * cppinit.c (struct builtin): Remove unused fields.
9589 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
9590 (operator_array): New - was second half of builtin_array.
9591 (init_builtins): Simplify loop over builtin_array/operator_array.
9592
9593 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
9594
9595 * defaults.h (UNIQUE_SECTION): Remove.
9596 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
9597
9598 2002-05-17 Richard Henderson <rth@redhat.com>
9599
9600 * expr.c (init_expr_once): Don't use start/end_sequence.
9601 Use rtx_alloc instead of emit_insn.
9602 * toplev.c (lang_dependent_init): Run init_expr_once here ...
9603 (lang_independent_init): ... not here.
9604
9605 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9606
9607 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
9608
9609 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
9610
9611 * config/avr/avr.c (avr_regs_to_save): New function. Also check
9612 for fixed registers, possibly used for global register variables.
9613 (initial_elimination_offset, avr_output_function_prologue,
9614 avr_output_function_epilogue): Move common code to avr_regs_to_save.
9615
9616 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
9617
9618 * Makefile.in: Update for cpptrad.c.
9619 * cpphash.h (struct cpp_buffer): New members for buffer
9620 overlays.
9621 (struct cpp_reader): New members for traditional output.
9622 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
9623 * cppinit.c (cpp_create_reader): Set trad_line.
9624 (cpp_destroy): Free trad_out_base if used.
9625 (cpp_read_main_file): Overlay an empty buffer if traditional.
9626 (cpp_finish_options): Don't do builtins.
9627 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
9628 (cpp_handle_option): Handle it.
9629 * cpplex.c (continue_after_nul): New.
9630 (_cpp_lex_direct): Use handle_nul.
9631 * cpplib.h (struct cpp_options): New traditional option.
9632 * cpptrad.c: New file.
9633
9634 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
9635
9636 * c-common.c (c_common_init_options): Use C89 for Objective-C,
9637 and set the options flag.
9638 * cppinit.c (lang_flags): Remove objc.
9639 (lang_defaults): Remove OBJC and OBJCXX.
9640 (set_lang): Update.
9641 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
9642 (cpp_handle_option): Remove -+ and -lang-objc++.
9643 For ObjC, just set a flag.
9644 (print_help): Update.
9645 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
9646
9647 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9648
9649 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
9650 bootstrap with -mips3.
9651
9652 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
9653
9654 * final.c: Fix formatting.
9655 * fix-header.c: Likewise.
9656 * flow.c: Likewise.
9657 * fold-const.c: Likewise.
9658 * function.c: Likewise.
9659
9660 2002-05-17 David S. Miller <davem@redhat.com>
9661
9662 PR c/6689, PR optimization/6615
9663 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
9664 and make it a pointer to rtx. Update comments.
9665 (update_equiv_regs): When scanning for equivalences, record
9666 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
9667 it while making the equiv replacements.
9668
9669 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9670
9671 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
9672
9673 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
9674
9675 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
9676 when encoding visibility into SYMBOL_REF_FLAG.
9677
9678 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
9679
9680 * expr.c (force_operand): Fix reversed move.
9681
9682 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
9683
9684 * doc/install.texi (Testing): Mention two common DejaGnu warnings
9685 that can be ignored.
9686
9687 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9688
9689 * doc/install.texi (Final install): Recommend to install into a
9690 "clean" target directory.
9691
9692 2002-05-17 Richard Henderson <rth@redhat.com>
9693
9694 * config/ia64/ia64.md: Use braced strings instead of quoted strings
9695 for code blocks. Tidy whitespace.
9696
9697 2002-05-17 Richard Henderson <rth@redhat.com>
9698
9699 * hooks.c (hook_tree_bool_false): New.
9700 * hooks.h: Declare it.
9701 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
9702 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
9703 * target.h (select_section, unique_section): New.
9704 (in_small_data_p): New.
9705 * varasm.c (resolve_unique_section): Use hooks instead of macros.
9706 (variable_section, output_constant_def_contents): Likewise.
9707 (default_select_section, default_unique_section): New.
9708 (categorize_decl_for_section, default_elf_select_section): New.
9709 * output.h: Declare them.
9710
9711 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
9712 (TARGET_ASM_SELECT_SECTION): New.
9713 (SELECT_SECTION): Move ...
9714 * config/darwin.c (machopic_select_section): ... here.
9715 * config/darwin-protos.h: Update.
9716
9717 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
9718 (SELECT_SECTION): Move ...
9719 * config/nextstep.c (nextstep_select_section): ... here.
9720 * config/nextstep-protos.h: Update.
9721
9722 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
9723 (TARGET_ASM_SELECT_SECTION): New.
9724 * config/svr3.h (SELECT_SECTION): Remove.
9725
9726 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
9727 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
9728 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
9729 (alpha_encode_section_info): Use it.
9730 * config/alpha/alpha-protos.h: Update.
9731 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
9732 (SELECT_SECTION, UNIQUE_SECTION): Remove.
9733 (TARGET_ASM_SELECT_SECTION): New.
9734 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
9735
9736 * config/arm/pe.h (UNIQUE_SECTION): Remove.
9737 (TARGET_ASM_UNIQUE_SECTION): New.
9738
9739 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
9740 (avr_unique_section): Rename from unique_section; make static.
9741 * config/avr/avr-protos.h: Update.
9742 * config/avr/avr.h (UNIQUE_SECTION): Remove.
9743
9744 * config/c4x/c4x.h (SELECT_SECTION): Remove.
9745
9746 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
9747 (TARGET_ASM_UNIQUE_SECTION): New.
9748 * config/i386/i386-interix.h: Likewise.
9749 * config/i386/win32.h: Likewise.
9750 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
9751 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
9752 * config/i386/sco5.h (SELECT_SECTION): Remove.
9753 (TARGET_ASM_SELECT_SECTION): New.
9754 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
9755
9756 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
9757 instead of SELECT_SECTION.
9758 * config/m68k/dpx2.h: Likewise.
9759 * config/rs6000/lynx.h: Likewise.
9760
9761 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9762 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
9763 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
9764 (ia64_in_small_data_p): New.
9765 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
9766 (ia64_aix_select_section, ia64_aix_unique_section): New.
9767 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
9768 (SELECT_SECTION, UNIQUE_SECTION): Remove.
9769
9770 * config/m32r/m32r.h (SELECT_SECTION): Remove.
9771 (TARGET_ASM_SELECT_SECTION): New.
9772 * config/m32r/m32r.c (m32r_select_section): Take align argument.
9773 * config/m32r/m32r-protos.h: Update.
9774
9775 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
9776 (SELECT_SECTION): Move ...
9777 * config/m88k/m88k.c (m88k_select_section): ... here.
9778
9779 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
9780 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
9781 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
9782 (mcore_unique_section): Make static.
9783 * config/mcore/mcore-protos.h: Update.
9784
9785 * config/mips/elf.h (UNIQUE_SECTION): Remove.
9786 (TARGET_ASM_UNIQUE_SECTION): New.
9787 * config/mips/elf64.h: Likewise.
9788 * config/mips/iris6gld.h: Likewise.
9789 * config/mips/linux.h: Likewise.
9790 * config/mips/mips-protos.h: Update.
9791 * config/mips/mips.c (mips_select_section): Add align argument.
9792 * config/mips/mips.h (SELECT_SECTION): Remove.
9793 (TARGET_ASM_SELECT_SECTION): New.
9794
9795 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9796 * config/mmix/mmix.c (mmix_select_section): Remove.
9797 (mmix_unique_section): Remove.
9798 * config/mmix/mmix-protos.h: Update.
9799
9800 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
9801 (SELECT_SECTION): Move ...
9802 * config/pa/pa.c (pa_select_section): ... here.
9803 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
9804
9805 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
9806 from rs6000_select_section and make static.
9807 (rs6000_elf_unique_section): Similarly.
9808 (rs6000_xcoff_select_section): From xcoff.h.
9809 (rs6000_xcoff_unique_section): Likewise.
9810 * config/rs6000/rs6000-protos.h: Update.
9811 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9812 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
9813 * config/rs6000/xcoff.h: Likewise.
9814
9815 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
9816 (SELECT_SECTION): Move ...
9817 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
9818
9819 * config/v850/v850.h (SELECT_SECTION): Move ...
9820 * config/v850/v850.c (v850_select_section): ... here.
9821 (TARGET_ASM_SELECT_SECTION): New.
9822
9823 * config/vax/vms.h (SELECT_SECTION): Move ...
9824 * config/vax/vax.c (vms_select_section): ... here.
9825 (TARGET_ASM_SELECT_SECTION): New.
9826
9827 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
9828 for the target hooks.
9829
9830 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
9831
9832 * config/arm/arm.c (emit_multi_reg_push): Do not set
9833 RTX_FRAME_RELATED_P on the SEQUENCE.
9834
9835 2002-05-16 Richard Henderson <rth@redhat.com>
9836
9837 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
9838 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
9839
9840 2002-05-16 Richard Henderson <rth@redhat.com>
9841
9842 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
9843
9844 * config/ia64/ia64.c (saveable_obstack): Do not declare.
9845
9846 2002-05-16 Richard Henderson <rth@redhat.com>
9847
9848 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
9849 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
9850 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
9851 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
9852 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
9853 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
9854 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
9855 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
9856 Revert "Basic block renumbering removal", and two followup patches.
9857
9858 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9859
9860 * lcm.c (optimize_mode_switching): Revert previous change.
9861
9862 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9863
9864 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
9865 with only extant block numbers.
9866
9867 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9868
9869 * lcm.c (optimize_mode_switching): Fix typo.
9870
9871 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9872
9873 * flow.c (calculate_global_regs_live): Queue blocks in program order.
9874
9875 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9876
9877 * doc/install.texi (Configuration): Document PWDCMD.
9878
9879 2002-05-16 Dale Johannesen <dalej@apple.com>
9880
9881 * combine.c (cant_combine_insn_p): Reenable combinations
9882 involving hard regs unless CLASS_LIKELY_SPILLED_P.
9883
9884 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9885
9886 * c-common.c (cb_register_builtins): Handle more built-ins
9887 here rather than in gcc.c specs.
9888 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
9889 (cpp_options): Pass -O flags even when only preprocessing.
9890 * toplev.c (set_fast_math_flags): New prototype.
9891 (fast_math_flags_set_p): New.
9892 (set_no_fast_math_flags): Remove.
9893 (decode_f_option): Update.
9894 * toplev.h (set_fast_math_flags): Update.
9895 (fast_math_flags_set_p): New.
9896 (set_no_fast_math_flags): Remove.
9897 config:
9898 * c4x/c4x.c (c4x_override_options): Update.
9899
9900 2002-05-16 Zack Weinberg <zack@codesourcery.com>
9901
9902 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
9903 Default-define here.
9904 (builtin_define_with_value): Can now wrap the expansion in
9905 quotation marks if such is wanted.
9906 (cb_register_builtins): Update calls to builtin_define_with_value.
9907 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
9908 here.
9909 (c_common_init): Set options->stdc_0_in_system_headers.
9910 * c-lex.h: Update prototype of builtin_define_with_value.
9911 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
9912 and REGISTER_PREFIX.
9913
9914 * cppinit.c (VERS, ULP, C, X): Kill.
9915 (builtin_array): Remove entries for __VERSION__,
9916 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
9917 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
9918 a constant.
9919 (init_builtins): Kill off a bunch of now-dead code.
9920 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
9921 -fno-leading-underscore.
9922 (cpp_handle_option): Remove code to set user_label_prefix.
9923 (cpp_post_options): Likewise.
9924
9925 * cpplib.h (struct cpp_options): Remove user_label_prefix.
9926 (stdc_0_in_system_headers): New.
9927 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
9928 stdc_0_in_system_headers) too to decide the value of __STDC__.
9929
9930 * tradcpp.c (user_label_prefix): Kill.
9931 (main): Remove code handling -f(no-)leading-underscore.
9932 (initialize_builtins): Don't define __REGISTER_PREFIX__
9933 or __USER_LABEL_PREFIX__.
9934 (install_value): Wrap compound statement in dummy loop so the
9935 macro works properly in an if statement.
9936
9937
9938 2002-05-16 Janis Johnson <janis187@us.ibm.com>
9939
9940 * loop.h (struct loop_info): Add member has_prefetch.
9941 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
9942 (prescan_loop): Initialize has_prefetch.
9943 (struct prefetch_info): Change prefetch_in_loop and
9944 prefetch_before_loop from bit fields to ints.
9945 (emit_prefetch_instructions): Several small fixes.
9946 (check_dbra_loop): Don't reverse loop that uses prefetch.
9947
9948 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9949
9950 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
9951 * configure.in: Likewise.
9952 * fixinc/check.tpl: Likewise.
9953 * fixinc/fixinc.dgux: Likewise.
9954 * fixinc/fixinc.svr4: Likewise.
9955 * fixinc/fixinc.winnt: Likewise.
9956 * fixinc/fixincl.sh: Likewise.
9957 * fixproto: Likewise.
9958 * configure: Regenerate.
9959
9960 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9961
9962 Basic block renumbering removal:
9963 * basic_block.h (struct basic_block_def): Renamed index to sindex,
9964 added prev_bb and next_bb fields.
9965 (n_basic_blocks): Renamed to num_basic_blocks.
9966 (last_basic_block): New, index of last basic block.
9967 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9968 traversing basic block chain.
9969 (BLOCK_NUM): index -> sindex.
9970 (create_basic_block_structure, create_basic_block): Declaration changed.
9971 (debug_num2bb): Declare.
9972 (expunge_block_nocompact): Declaration removed.
9973 (link_block, unlink_block, compact_blocks): Declare.
9974 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
9975 * cfg.c (entry_exit_blocks): Initialize new fields.
9976 (clear_edges, alloc_block, expunge_block, cached_make_edge,
9977 redirect_edge_pred, dump_flow_info, dump_edge_info,
9978 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
9979 free_aux_for_edges): Modified.
9980 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
9981 (expunge_block_nocompact): Removed.
9982 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
9983 find_unreachable_blocks, create_edge_list, print_edge_list,
9984 verify_edge_list, flow_edge_list_print, remove_fake_successors,
9985 remove_fake_edges, flow_reverse_top_sort_order_compute,
9986 flow_depth_first_order_compute, flow_preorder_transversal_compute,
9987 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
9988 flow_dfs_compute_reverse_execute): Modified.
9989 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
9990 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
9991 Modified.
9992 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9993 merge_blocks_move_predecessor_nojumps,
9994 merge_blocks_move_successor_nojumps, merge_blocks,
9995 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
9996 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
9997 * cfglayout.c (skip_insns_after_block, label_for_bb,
9998 record_effective_endpoints, scope_to_insns_finalize,
9999 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
10000 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
10001 cfg_layout_duplicate_bb): Modified.
10002 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
10003 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
10004 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
10005 flow_loops_find, flow_loop_outside_edge_p): Modified.
10006 * cfgrtl.c (create_basic_block_structure, create_basic_block,
10007 flow_delete_block, compute_bb_for_insn, split_block,
10008 try_redirect_by_replacing_jump, redirect_edge_and_branch,
10009 force_nonfallthru_and_redirect, tidy_fallthru_edge,
10010 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
10011 commit_edge_insertions, commit_edge_insertions_watch_calls,
10012 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
10013 purge_all_dead_edges): Modified.
10014 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
10015 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
10016 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
10017 Modified.
10018 * conflict.c (conflict_graph_compute): Modified.
10019 * df.c (FOR_ALL_BBS): Removed.
10020 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
10021 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
10022 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
10023 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
10024 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
10025 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
10026 * final.c (compute_alignments, final_scan_insn): Modified.
10027 * flow.c (verify_local_live_at_start, update_life_info,
10028 update_life_info_in_dirty_blocks, free_basic_block_vars,
10029 delete_noop_moves, calculate_global_regs_live,
10030 initialize_uninitialized_subregs, allocate_bb_life_data,
10031 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
10032 mark_used_reg, count_or_remove_death_notes): Modified.
10033 * function.c (thread_prologue_and_epilogue_insns): Modified.
10034 * gcse.c (struct null_pointer_info): Change typo of current_block
10035 to basic_block.
10036 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
10037 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
10038 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
10039 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
10040 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
10041 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
10042 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
10043 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
10044 pre_delete, one_pre_gcse_pass, compute_transpout,
10045 invalidate_nonnull_info, delete_null_pointer_checks_1,
10046 free_code_hoist_mem, compute_code_hoist_vbeinout,
10047 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
10048 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
10049 compute_store_table, build_store_vectors, insert_insn_start_bb,
10050 insert_store, replace_store_insn, free_store_memory, store_motion):
10051 Modified.
10052 * global.c (global_alloc, global_conflicts, mark_elimination,
10053 build_insn_chain): Modified.
10054 * graph.c (print_rtl_graph_with_bb): Modified.
10055 * haifa-sched.c (sched_init): Modified.
10056 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
10057 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
10058 if_convert): Modified.
10059 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
10060 compute_insert_delete, pre_edge_lcm, compute_available,
10061 compute_farthest, compute_nearerout, compute_rev_insert_delete,
10062 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
10063 Modified.
10064 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
10065 * loop.c (loop_dump_aux): Modified.
10066 * predict.c (combine_predictions_for_insn, estimate_probability,
10067 last_basic_block_p, process_note_prediction, process_note_predictions,
10068 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
10069 expensive_function_p, estimate_bb_frequencies,
10070 compute_function_frequency): Modified.
10071 * print-rtl.c (print_rtx): Modified.
10072 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
10073 get_exec_counts, compute_branch_probabilities, compute_checksum,
10074 branch_prob, find_spanning_tree): Modified.
10075 * recog.c (split_all_insns, peephole2_optimize): Modified.
10076 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
10077 convert_regs_1, convert_regs_2, convert_regs): Modified.
10078 * regclass.c (scan_one_insn, regclass): Modified.
10079 * regmove.c (mark_flags_life_zones, regmove_optimize,
10080 combine_stack_adjustments): Modified.
10081 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
10082 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
10083 * reorg.c (dbr_schedule): Modified.
10084 * resource.c (find_basic_block, init_resource_info): Modified.
10085 * sbitmap.c (sbitmap_intersection_of_succs,
10086 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
10087 sbitmap_union_of_preds): Modified.
10088 * sched-deps.c (init_dependency_caches): Modified.
10089 * sched-ebb.c (schedule_ebbs): Modified.
10090 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
10091 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
10092 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
10093 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
10094 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
10095 ssa_const_prop): Modified.
10096 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
10097 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
10098 * ssa.c (remove_phi_alternative, find_evaluations,
10099 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
10100 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
10101 make_regs_equivalent_over_bad_edges,
10102 make_equivalent_phi_alternatives_equival,
10103 compute_conservative_reg_partition,
10104 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
10105 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
10106 Modified.
10107
10108 2002-05-16 Mark Mitchell <mark@codesourcery.com>
10109
10110 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
10111
10112 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
10113
10114 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
10115 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
10116 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
10117 calling CONSTANT_POOL_ADDRESS_P.
10118 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
10119 to decide whether to define __arm__ or __thumb.
10120 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
10121 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
10122
10123 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
10124
10125 * config/arc/arc.h (CPP_PREDEFINES): Remove.
10126 (CPP_SPEC): Update.
10127 (TARGET_CPU_CPP_BUILTINS): New.
10128
10129 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
10130
10131 * cpphash.h (cpp_macro): Move here, and make expansion a union.
10132 * cppmacro.c (cpp_macro): Remove.
10133 (enter_macro_context, replace_args, warn_of_redefinition,
10134 _cpp_create_definition, cpp_macro_definition): Update.
10135
10136 2002-05-16 Jason Merrill <jason@redhat.com>
10137
10138 * config/mips/mips.c (mips_output_external): Don't do sdata
10139 optimization for a variable with DECL_COMDAT set.
10140
10141 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
10142
10143 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
10144 Cleanups for accepting modifiers on pointers.
10145 Fix predicate typos.
10146 Allow long pointers as well as int pointers.
10147
10148 2002-05-15 Richard Henderson <rth@redhat.com>
10149
10150 * varasm.c (merge_weak): Remove special case for extern and common.
10151
10152 2002-05-15 Matt Hiller <hiller@redhat.com>
10153
10154 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
10155 XFAILing.
10156 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
10157 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
10158 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
10159 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
10160 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
10161 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
10162
10163 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
10164
10165 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
10166
10167 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
10168
10169 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
10170 ("altivec_mfvscr"): Read from VSCR.
10171
10172 Add vscr sets for the following insns: altivec_vctuxs,
10173 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
10174 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
10175 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
10176 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
10177 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
10178 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
10179 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
10180 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
10181 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
10182 altivec_vsum2sws, altivec_vsumsws.
10183
10184 * config/rs6000/rs6000.h: Add VSCR fixed register.
10185 (CALL_REALLY_USED_REGISTERS): Add vscr.
10186 (CALL_USED_REGISTERS): Same.
10187 (FIXED_REGISTERS): Same.
10188 (REG_ALLOC_ORDER): Same.
10189 (reg_class): Add VSCR_REGS.
10190 (REG_CLASS_NAMES): Same.
10191 (REG_CLASS_CONTENTS): Same.
10192 (VSCR_REGNO): New.
10193 (REGISTER_NAMES): Add vscr.
10194 (DEBUG_REGISTER_NAMES): Same.
10195 (ADDITIONAL_REGISTER_NAMES): Same.
10196 (FIRST_PSEUDO_REGISTER): Increment.
10197 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
10198
10199 2002-05-15 Jakub Jelinek <jakub@redhat.com>
10200
10201 * fold-const.c (fold): Fix a typo.
10202
10203 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
10204
10205 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
10206 comparison against the highest or lowest integer value before
10207 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
10208 transformation and that of an unsigned comparison against 0
10209 right after.
10210
10211 2002-05-15 Richard Henderson <rth@redhat.com>
10212
10213 * varasm.c (merge_weak): Error for any weakening after definition.
10214 Adjust weakening after use warning to catch more cases.
10215 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
10216 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
10217
10218 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
10219
10220 * invoke.texi (-malign-double): Re-add lost warning.
10221
10222 * i386-protos.h (x86_output_mi_thunk): Declare.
10223 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
10224 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
10225
10226 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
10227 when flag_asynchronous_unwind_tables is set.
10228
10229 * flags.h (flag_reorder_functions): Declare.
10230 * function.c (prepare_function_start): Initialize frequnecy.
10231 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
10232 * Makefile.in (predict.o): Add dependency on target.h and params.h
10233 * defaults.h (HOT_TEXT_SECTION_NAME,
10234 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
10235 * predict.c (choose_function_section): New function.
10236 (estimate_bb_frequencies): Use it.
10237 * toplev.c (flag_reorder_functions): New global variable.
10238 (lang_independent_options): New.
10239 (parse_options_and_default_flags): Set.
10240 * varasm.c (assemble_start_function): Bypass functdion alignment
10241 for never executed functions.
10242 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
10243 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
10244 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
10245 Document.
10246
10247 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
10248
10249 * predict.c: Inlude profile.h
10250 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
10251 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
10252 Use the information about maximal counter in the program.
10253
10254 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
10255
10256 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
10257 probably_never_executed_bb_p): New functions.
10258 * cfgcleanup.c (outgoing_edges_match): Use them.
10259 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
10260 (maybe_hot_bb_p, probably_cold_bb_p,
10261 probably_never_executed_bb_p): New functions.
10262
10263 * function.h (function): Add new field function_frequency.
10264 * predict.c (compute_function_frequency): New function.
10265 (estimate_probability): Call it.
10266
10267 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10268
10269 PR optimization/5172, optimization/5200
10270 * gcse.c (gcse_main): Disable store_motion.
10271
10272 2002-05-14 Zack Weinberg <zack@codesourcery.com>
10273
10274 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
10275 (c_common_nodes_and_builtins): Use it.
10276 (builtin_define_with_value): New function.
10277 (cb_register_builtins): Define __SIZE_TYPE__,
10278 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
10279 using builtin_define_with_value. Use consistent notation when
10280 defining __GXX_WEAK__.
10281 (WCHAR_TYPE_SIZE): Don't redefine.
10282 (combine_strings): Don't use WCHAR_TYPE_SIZE.
10283
10284 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
10285 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
10286 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
10287 * tradcpp.c (initialize_builtins): Likewise.
10288 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
10289
10290 * c-lex.h (builtin_define_with_value): Prototype.
10291 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
10292 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
10293 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
10294
10295 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
10296 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
10297 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
10298 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
10299 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
10300 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
10301 config/sparc/sol2-bi.h, config/sparc/sparc.h:
10302 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
10303 to __SIZE_TYPE__ etc from all spec strings. When this makes
10304 extra specs empty, delete them.
10305
10306 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
10307
10308 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
10309 for PA8000 or generating dwarf2 call frame information.
10310 (output_call): Remove DO_FRAME_NOTES check from return pointer
10311 optimization.
10312 (following_call): Return 0 when scheduling for PA8000 or generating
10313 dwarf2 call frame information. Revise comment.
10314
10315 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10316
10317 config/alpha:
10318 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
10319 and __IEEE_FP_INEXACT as appropriate.
10320 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
10321 (CPP_SPEC): Remove ieee defines.
10322 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
10323
10324 2002-05-14 Richard Henderson <rth@redhat.com>
10325
10326 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
10327 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
10328
10329 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10330
10331 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
10332 (CPP_SPEC): Update.
10333 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
10334 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
10335 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
10336 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
10337 (EXTRA_SPECS): Update.
10338 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
10339 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
10340 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
10341 define TARGET_OS_CPP_BUILTINS if necessary.
10342
10343 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10344
10345 * gcc.c (cpp_options): Must pass -m* and -f* options
10346 to the front end even when only preprocessing.
10347 (cc1_options): Remove redundant -lang-c.
10348 * tradcpp.c (main): Ignore -m options.
10349 objc:
10350 * lang-specs.h: Similarly.
10351
10352 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
10353
10354 * genautomata.c (transform_3): Add code for transformation
10355 `(A,B,...)+C -> A+C,B,...'.
10356
10357 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
10358
10359 * final.c (end_final): Do not output profile_arcs constructor, when
10360 no functions are instrumented.
10361
10362 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
10363
10364 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
10365
10366 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10367
10368 * doc/install.texi: Remove special markup originally required for
10369 HTML generation with texi2html.
10370
10371 2002-05-14 Andreas Schwab <schwab@suse.de>
10372
10373 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
10374 SELECT_SECTION.
10375 (UNIQUE_SECTION): Define to get small data correctly.
10376
10377 * varasm.c (resolve_unique_section): Add third parameter
10378 flag_function_or_data_sections and use it instead of
10379 flag_function_sections.
10380 (assemble_start_function): Pass flag_function_sections.
10381 (asm_emit_uninitialised): Pass flag_data_sections.
10382 (assemble_variable): Likewise.
10383
10384 2002-05-14 Richard Henderson <rth@redhat.com>
10385
10386 * config/i386/i386.md: Use define_constants for unspec numbers.
10387 * config/i386/i386.c: Likewise.
10388
10389 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10390
10391 * doc/contrib.texi: Update my entry.
10392
10393 2002-05-13 Mark Mitchell <mark@codesourcery.com>
10394
10395 * fixinc/inclhack.def (winidss_valist): Limit applicability.
10396 * fixinc/fixincl.x: Regenerated.
10397 * fixinc/tests/base/math.h: Update.
10398 * fixinc/tests/base/testing.h: Likewise.
10399
10400 2002-05-13 Zack Weinberg <zack@codesourcery.com>
10401
10402 * genattr.c (gen_attr): Don't emit a comma after the last
10403 enumerator.
10404
10405 2002-05-13 Richard Henderson <rth@redhat.com>
10406
10407 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
10408 by non-local gotos.
10409 * recog.c (peephole2_optimize): Likewise.
10410
10411 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
10412
10413 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
10414 input to O_BINARY.
10415
10416 2002-05-13 Jeffrey A Law (law@redhat.com)
10417
10418 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
10419 Update prototype and callers.
10420 (propagate_one_insn): Stack pointer adjustments kill MEMs on
10421 the mem_set_list which reference the stack pointer, as do
10422 calls to constant functions as they may clobber outgoing
10423 argument space.
10424
10425 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
10426
10427 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10428 (ia32_multipass_dfa_lookahead): New function.
10429
10430 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10431
10432 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
10433 (translate_options): Remove 'V'.
10434 (process_command): Similarly.
10435 doc:
10436 * invoke.texi: Remove documentation of 'V'.
10437
10438 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
10439
10440 * config/s390/linux.h: Revert 2002-04-22 changes.
10441
10442 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
10443
10444 * config/fr30/fr30.md: Only allow splits of immediate loads
10445 if the destination is a register.
10446
10447 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10448
10449 * Makefile.in (c-common.o, cppinit.o): Update.
10450 * c-common.c: Include except.h.
10451 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
10452 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
10453 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
10454 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
10455 CPP_PREDEFINES): Handle here.
10456 config:
10457 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
10458 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
10459 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
10460 TARGET_OS_CPP_BUILTINS.
10461 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
10462 (CPP_SPEC, EXTRA_SPECS): Update.
10463 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
10464 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
10465 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
10466 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
10467 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
10468 doc:
10469 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
10470 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
10471
10472 2002-05-12 Zack Weinberg <zack@codesourcery.com>
10473
10474 * emit-rtl.c (global_rtl): Update comment.
10475 (const_double_htab, const_double_htab_hash,
10476 const_double_htab_hash, lookup_const_double): New.
10477 (const_int_htab_hash, const_int_htab_eq): Remove const
10478 qualifiers, which cause tons of warnings with RTL checking on.
10479 (gen_rtx_CONST_DOUBLE): Deleted.
10480 (const_double_from_real_value): New function - bears some
10481 resemblance to the former immed_real_const_1.
10482 (immed_double_const): Moved here from varasm.c and
10483 simplified.
10484 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
10485 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
10486 (gen_rtx): Use immed_double_const.
10487 (init_emit_once): Initialize the const_double_htab. Use
10488 REAL_VALUE_FROM_INT where possible. Can now use
10489 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
10490 * varasm.c (struct varasm_status): Remove x_const_double_chain.
10491 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
10492 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
10493 (init_varasm_status, mark_varasm_status): Don't touch
10494 x_const_double_chain.
10495
10496 * output.h: Delete prototype for clear_const_double_mem.
10497 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
10498 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
10499 const_double_from_real_value, not immed_real_const_1, and use
10500 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
10501 CONST_DOUBLE_ATOF.
10502 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
10503 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
10504 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
10505 (gen_rtx_REG): Second arg is unsigned.
10506
10507 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
10508 (excluded_rtx): New, return true for CONST_DOUBLE.
10509 (genmacro): Write nothing for excluded codes.
10510 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
10511 * expr.c (expand_expr): Likewise.
10512 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
10513 CONST_DOUBLE_CHAIN.
10514 * toplev.c (rest_of_compilation): Don't call
10515 clear_const_double_mem.
10516
10517 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
10518 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
10519 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
10520 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
10521 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
10522 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
10523 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
10524 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
10525
10526 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10527
10528 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
10529
10530 2002-05-12 Tom Tromey <tromey@redhat.com>
10531
10532 * tree.h (copy_node): Don't mention TREE_PERMANENT.
10533
10534 2002-05-12 Zack Weinberg <zack@codesourcery.com>
10535
10536 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
10537 (scan_comma_elt): New function. Accepts whitespace in comma lists.
10538 * gensupport.h: Prototype new routines.
10539 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
10540 use of printf.
10541 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
10542 (next_comma_elt): Use scan_comma_elt.
10543
10544 * config/i386/i386.md: Use new attribute notation to break up
10545 long lines in define_attr forms.
10546
10547 2002-05-12 Richard Henderson <rth@redhat.com>
10548
10549 * expr.c (compress_float_constant): New.
10550 (emit_move_insn): Use it.
10551 (float_extend_from_mem): New.
10552 (init_expr_once): Initialize it.
10553 * real.c (exact_real_truncate): New.
10554
10555 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
10556 dropped into memory; penalize for size.
10557 (RTX_COSTS): FLOAT_EXTEND is free.
10558 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
10559 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
10560
10561 2002-05-12 Richard Henderson <rth@redhat.com>
10562
10563 * profile.h (profile_info): Add missing extern to declaration.
10564 * profile.c (profile_info): Define it.
10565
10566 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10567
10568 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
10569 used for DImode and TImode.
10570
10571 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
10572
10573 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
10574 fake a newline.
10575
10576 2002-05-11 Zack Weinberg <zack@codesourcery.com>
10577
10578 * config/rs6000/rs6000.c (rs6000_default_long_calls,
10579 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
10580 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
10581 (rs6000_override_options): Handle -m(no-)longcall.
10582 (init_cumulative_args, output_mi_thunk): Check for both
10583 longcall and shortcall attributes on the function.
10584 (rs6000_attribute_table): Add "shortcall".
10585 (rs6000_handle_longcall_attribute): Update comment.
10586 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
10587 altivec_expand_ternop_builtin): Add default clauses to switches
10588 to silence warnings.
10589
10590 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
10591 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
10592 (TARGET_OPTIONS): Add longcall and no-longcall.
10593
10594 * config/rs6000/rs6000.md (call_nonlocal_sysv,
10595 call_value_nonlocal_sysv): Split by alternatives. One pair
10596 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
10597 the call cookie. The other pair accepts only LR/CTR and has
10598 no restriction.
10599
10600 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
10601 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
10602 tmake_file.
10603 * config/rs6000/rs6000-c.c: New file.
10604 * config/rs6000/t-rs6000-c-rule: New file.
10605 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
10606 Prototype rs6000_pragma_longcall.
10607
10608 * doc/extend.texi: Document shortcall attribute.
10609 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
10610
10611 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10612
10613 * reorg.c (dbr_schedule): Remove unnecessary test.
10614
10615 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
10616
10617 * i386.md (testsi to testqi spliters): New.
10618
10619 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
10620
10621 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
10622
10623 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
10624
10625 * basic-block.h: New flag EDGE_CAN_FALLTHRU
10626 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
10627 that can be made fallthru.
10628
10629 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
10630
10631 * cfglayout.c (cleanup_unconditional_jumps): New static function.
10632 (cfg_layout_initialize): Use it.
10633
10634 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
10635
10636 * config/avr/avr.c (avr_mcu_types): Update supported devices.
10637 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10638 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10639
10640 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
10641
10642 * dbxout.c: Fix formatting.
10643 * dependence.c: Likewise.
10644 * df.c: Likewise.
10645 * diagnostic.c: Likewise.
10646 * doloop.c: Likewise.
10647 * dominance.c: Likewise.
10648 * doschk.c: Likewise.
10649 * dwarf2asm.c: Likewise.
10650 * dwarf2out.c: Likewise.
10651 * dwarfout.c: Likewise.
10652
10653 2002-05-10 Richard Henderson <rth@redhat.com>
10654
10655 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
10656 Convert integers constants as needed. Replace "nwords" field with
10657 "sizeof_bb".
10658 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
10659 * function.h: Fix typo in comment.
10660 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
10661
10662 2002-05-10 Roger Sayle <roger@eyesopen.com>
10663
10664 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
10665 into the equivalent (signed char)c > 0.
10666
10667 2002-05-10 Janis Johnson <janis187@us.ibm.com>
10668
10669 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
10670 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
10671 (struct prefetch_info): Fix spelling of member bytes_accessed.
10672 (emit_prefetch_instructions): Make dump messages more regular;
10673 restructure code to add more dump messages; use new macros for
10674 heuristics. (There are no code generation changes in any of this).
10675
10676 2002-05-10 David S. Miller <davem@redhat.com>
10677
10678 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
10679 (struct rtx_def): Update unchanging flag comment.
10680 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
10681 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
10682 to be handled to INSN too.
10683 (dbr_schedule): Likewise.
10684 * resource.c (next_insn_no_annul): Likewise.
10685
10686 * cse.c (rtx_cost): Remove multiplication by power of 2 special
10687 casing.
10688
10689 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10690
10691 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
10692 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
10693 (possibly) work around broken /bin/sh.
10694
10695 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10696
10697 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
10698 . as N64/N32 libgcc_s.so subdirs.
10699
10700 2002-05-10 David S. Miller <davem@redhat.com>
10701
10702 * config/sparc/sparc.md: Use define_constants for unspec numbers.
10703
10704 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
10705 more accurately.
10706 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
10707 comment.
10708 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
10709 * doc/rtl.texi: Document these macros more accurately.
10710 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
10711 JUMP_INSNs and CALL_INSNs.
10712 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
10713 or INSN_FROM_TARGET_P if the code is appropriate.
10714
10715 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
10716
10717 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
10718 before using SYMBOL_REF_FLAG (addr).
10719
10720 * config/avr/avr-protos.h (avr_io_address_p): Declare.
10721 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
10722 Make non-static. Update all callers.
10723 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
10724 New insns to clear/set/test a single bit in I/O address space.
10725
10726 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10727
10728 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
10729
10730 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10731
10732 * Makefile.in: Update.
10733 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
10734 builtin_define_std): New.
10735 (c_common_init): Register CPP builtins callback.
10736 * c-common.h (flag_iso, flag_undef): New.
10737 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
10738 * c-lex.c: Don't include target.h.
10739 (cb_register_builtins): Move to c-common.c.
10740 (init_c_lex): Don't register hook here.
10741 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
10742 (cpp_define, cpp_assert): Remove.
10743 * gcc.c (cc1_options): Pass -undef to front end.
10744 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
10745 (TARGET_INITIALIZER): Update.
10746 * target.h (struct cpp_reader): Don't predeclare.
10747 (struct gcc_target): Remove cpp builtin hook.
10748 * tree.c (default_register_cpp_builtins): Remove.
10749 doc:
10750 * tm.texi: Update.
10751
10752 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10753
10754 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
10755
10756 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10757
10758 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
10759 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
10760
10761 2002-05-09 Jakub Jelinek <jakub@redhat.com>
10762
10763 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
10764 * config/sparc/libgcc-sparc-glibc.ver: New file.
10765 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
10766 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
10767
10768 2002-05-09 Jakub Jelinek <jakub@redhat.com>
10769
10770 PR target/6429
10771 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
10772 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
10773 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
10774 base multilibs.
10775 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
10776 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
10777 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
10778 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
10779
10780 2002-05-09 Richard Henderson <rth@redhat.com>
10781
10782 * config/ia64/ia64.md: Use define_constants for unspec numbers.
10783 * config/ia64/ia64.c: Likewise.
10784
10785 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
10786
10787 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
10788 (save_restore_insns): Likewise.
10789 (mips_expand_prologue, mips_expand_epilogue): Update callers.
10790 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
10791
10792 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
10793
10794 * athlon.md, k6.md, pentium.md, ppro.md): New files.
10795 * i386.md: Move scheduling information into new files.
10796
10797 * i386.md (type attribute): Add "rotate" for rotate insns.
10798 (rotate insns): Set type to "rotate".
10799 (various attributes and function units): Treat rotate like shift.
10800 (pent_pair attribute): Only rotates by one bit position are
10801 pairable.
10802 (sbb insns): Explicitly set pent_pair attribute on a couple
10803 that were missing it.
10804
10805 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
10806
10807 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
10808 make sure that buffer starts on odd word address.
10809 (sh_va_arg): Skip odd fp registers when reading a double precision
10810 value.
10811
10812 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10813
10814 * tree.h (preserve_data, object_permanent_p, type_precision):
10815 Remove.
10816
10817 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10818
10819 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
10820 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
10821 doc:
10822 * cpp.texi: Update for removal of obsolete features.
10823
10824 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
10825 Jeffrey A Law (law@redhat.com)
10826
10827 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
10828 the DFA interface for Pentium processors.
10829 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
10830 (attr_pent_pair, ix86_pent_find_pair): Remove.
10831 (ix86_sched_reorder_pentium): Remove.
10832 (ix86_sched_reorder): Remove reordering for Pentium.
10833 * i386.md (Pentium scheduling): Rewrite using DFA description.
10834
10835 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
10836
10837 * cfganal.c (can_fallthru): Fix fast path.
10838 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
10839 with edges to the next block.
10840
10841 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
10842 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
10843
10844 * final.c (end_final): Use C trees to output data structures for profiling.
10845
10846 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
10847 (profile.o): New dependency profile.h
10848 (final.o): New dependency profile.h
10849 * profile.h: New file. New global structure profile_info.
10850 * final.h (count_edges_instrumented_now): Declare.
10851 (current_function_cfg_checksum): Declare.
10852 (function_list): New structure.
10853 (functions_head, functions_tail): New static variables.
10854 (end_final): Emits more data, removed some -ax stuff.
10855 (final): Stores function names and chcksums.
10856 * gcov-io.h (__write_gcov_string): New function.
10857 (__read_gcov_string): New function.
10858 * gcov.c (read_profile): New function.
10859 (create_program_flow_graph): Uses read_profile instead of reading
10860 da_file.
10861 (read_files): Removed da_file checking, it's done by read_profile now.
10862 * libgcc2.c (bb_function_info): New structure.
10863 (bb): New field in structure, removed some -ax stuff.
10864 (__bb_exit_func): Changed structure of da_file.
10865 * profile.c (count_edges_instrumented_now): New global variable.
10866 (current_function_cfg_checksum): New global variable.
10867 (max_counter_in_program): New global variable.
10868 (get_exec_counts): New function.
10869 (compute_checksum): New function.
10870 (instrument_edges): Sets count_edges_instrumented_now.
10871 (compute_branch_probabilities): Uses get_exec_counts instead of
10872 reading da_file.
10873 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
10874 (init_branch_prob): Removed da_file checking, done in get_exec_counts
10875 now.
10876 (end_branch_prob): Removed da_file checking, done in get_exec_counts
10877 now.
10878 * gcov.texi: Updated information about gcov file format.
10879
10880 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
10881
10882 * sbitmap.c: Fix formatting.
10883 * scan.c: Likewise.
10884 * scan-decls.c: Likewise.
10885 * sched-deps.c: Likewise.
10886 * sched-ebb.c: Likewise.
10887 * sched-rgn.c: Likewise.
10888 * sched-vis.c: Likewise.
10889 * sdbout.c: Likewise.
10890 * sibcall.c: Likewise.
10891 * simplify-rtx.c: Likewise.
10892 * ssa.c: Likewise.
10893 * ssa-ccp.c: Likewise.
10894 * ssa-dce.c: Likewise.
10895 * stmt.c: Likewise.
10896 * stor-layout.c: Likewise.
10897 * stringpool.c: Likewise.
10898
10899 2002-05-09 David S. Miller <davem@redhat.com>
10900
10901 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
10902
10903 2002-05-07 David S. Miller <davem@redhat.com>
10904
10905 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
10906 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
10907 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
10908 library implementation clobbers the output before the inputs
10909 are fully consumed, use stack temporary for the output.
10910
10911 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
10912
10913 * config/netbsd.h (CPP_SPEC): Remove.
10914 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
10915 * config/i386/netbsd.h (CPP_SPEC): Define.
10916 * config/ns32k/netbsd.h (CPP_SPEC): Define.
10917 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
10918 * config/sparc/netbsd.h (CPP_SPEC): Define.
10919 * config/vax/netbsd.h (CPP_SPEC): Define.
10920
10921 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
10922
10923 * read-rtl.c: Fix formatting.
10924 * real.c: Likewise.
10925 * recog.c: Likewise.
10926 * regclass.c: Likewise.
10927 * regmove.c: Likewise.
10928 * reg-stack.c: Likewise.
10929 * reload1.c: Likewise.
10930 * reload.c: Likewise.
10931 * resource.c: Likewise.
10932 * rtlanal.c: Likewise.
10933 * rtl.c: Likewise.
10934 * rtl-error.c: Likewise.
10935
10936 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10937
10938 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
10939 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
10940
10941 2002-05-08 Bernd Schmidt <bernds@redhat.com>
10942
10943 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
10944 use __SSE2__ macro instead.
10945 * config/i386/xmmintrin.h: Likewise.
10946
10947 2002-05-08 Janis Johnson <janis187@us.ibm.com>
10948
10949 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
10950 and use it in all invocations of these macros. Clean up comments.
10951 * rtl.c (rtl_check_failed_flag): Add an argument for the name
10952 of the flag access macro whose check failed.
10953 * doc/rtl.texi (Flags): Document additional flag uses.
10954
10955 2002-05-08 Robert Spier <rspier@pobox.com>
10956 Neil Booth <neil@daikokuya.demon.co.uk>
10957
10958 PR preprocessor/6521
10959 * cppfiles.c (handle_missing_header): Don't do anything
10960 different for <> includes.
10961 doc:
10962 * cppopts.texi: Update documentation for -MG.
10963
10964 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
10965
10966 * cpplex.c (cpp_interpret_charconst): Truncate as well as
10967 sign-extend.
10968 doc:
10969 * cpp.texi: Clarify multichar charconst valuation.
10970
10971 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10972
10973 * doc/invoke.texi: Document -mwindiss option.
10974
10975 2002-05-08 Jason Merrill <jason@redhat.com>
10976
10977 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
10978
10979 * dwarf2out.c (gen_type_die): Abort on broken recursion.
10980
10981 PR c++/6381
10982 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
10983 REAL_CST.
10984
10985 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
10986
10987 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
10988 little-endian multilibs to override arm/thumb multilibs.
10989 Do not build hardware floating point multilibs, nor apcs-26
10990 multilibs for the Thumb.
10991
10992 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10993
10994 PR c/6569.
10995 * varasm.c (mark_weak): New function.
10996 (merge_weak): Use it. Do not call declare_weak.
10997 (declare_weak): Use merge_weak.
10998
10999 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
11000
11001 * cse.c (dead_libcall_p): Update counts.
11002 (delete_trivially_dead_insns): Update call of dead_libcall_p.
11003
11004 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
11005
11006 * cfglayout.c (function_tail_eff_head): Rename to ...
11007 (function_footer): ... this one.
11008 (unlink_insn_chain): New functions.
11009 (label_for_bb): Only call block_label and emit debug message.
11010 (record_effective_endpoints): Actually unlink the headers and footers.
11011 (fixup_reorder_cahin): Re-insert the unlinked sequences.
11012 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
11013 * cfglayout.h (struct reorder_block_def): New fields footer/header;
11014 remove eff_head/eff_end.
11015 * rtl.h (set_first_insn): Declare.
11016 * emit-rtl.c (set_first_insn): New function.
11017
11018 * cfglayout.c (fixup_reorder_chain): Dump duplicated
11019 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
11020 cfg_layout_duplicate_bb): New global function.
11021 (duplicate_insn_chain): New static function.
11022 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
11023 cfg_layout_duplicate_bb): Declare.
11024 (struct reorder_block_def): Add "original" field.
11025 * emit-rtl.c (emit_copy_of_insn_after): New function.
11026 * rtl.h (emit_copy_of_insn_after): Declare.
11027
11028 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
11029 (fixup_reorder_chain): properly handle edges to exit block.
11030
11031 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11032 Jan Hubicka <jh@suse.cz>
11033
11034 * basic-block.h (note_prediction_to_br_prob): declare.
11035 * c-semantics.c: Inlucde predit.h
11036 (expand_stmt): predict GOTO_STMT as not taken.
11037 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
11038 (cleanup_cfg): Do not free tail_recursion_list.
11039 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
11040 (flow_delete_block): Kill predictions past end of basic block.
11041 * output.h (delete_unreachable_blocks): Declare.
11042 * predict.c (predicted_by_p, process_note_predictions,
11043 process_note_prediction, last_block_p): New function.
11044 (estimate_probability): Bypass loop on PRED_CONTINUE;
11045 do not handle noreturn heuristics; kill PRED_RETURN; add
11046 PRED_EARLY_RETURN.
11047 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
11048 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
11049 * predict.h (IS_TAKEN): New constant.
11050 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
11051 * rtl.c (NOTE_INSN_PREDICTION): New.
11052 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
11053 New macro.
11054 (insn_note): add NOTE_INSN_PREDICTION.
11055 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
11056 CFG; free tail_recursion_label_list.
11057 * stmt.c: Include predict.h;
11058 (return_prediction): New.
11059 (expand_value_return): Use it.
11060 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
11061
11062 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
11063
11064 * config/mips/mips.md: Name the unspecs with define_constant.
11065 (*HILO_delay): Rename to 'hilo_delay' (no star).
11066 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
11067 (reload_outdi, reload_outsi): Likewise.
11068
11069 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
11070
11071 * toplev.c: Fix formatting.
11072
11073 2002-05-07 Janis Johnson <janis187@us.ibm.com>
11074
11075 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
11076 * configure.in (ac_rtlflag_checking): New.
11077 * doc/install.texi (--enable-checking): Document RTL flag checking.
11078
11079 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
11080
11081 * c-common.c (c_common_init): Set options->unsigned_wchar.
11082 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
11083 group target dependencies.
11084 (init_builtins, cpp_handle_option): Update.
11085 * cpplex.c (cpp_interpret_charconst): Update.
11086 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
11087 signed_char to unsigned_char, group target dependencies.
11088 * defaults.h (WCHAR_UNSIGNED): Remove.
11089 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
11090 config:
11091 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
11092 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
11093 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
11094 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
11095 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
11096 doc:
11097 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
11098
11099 2002-05-07 Mark Mitchell <mark@codesourcery.com>
11100
11101 * fixinc/inclhack.def (windiss_math1): New fix.
11102 (windiss_math2): Likewise.
11103 (windiss_valist): Likewise.
11104 * fixinc/fixincl.x: Regenerated.
11105
11106 2002-05-07 Andreas Jaeger <aj@suse.de>
11107
11108 * genautomata.c (output_internal_min_issue_delay_func): Add
11109 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
11110 (output_internal_trans_func): Likewise.
11111
11112 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
11113
11114 * pa.c (hppa_profile_hook): Use force_reg to get the address
11115 of the profile hook into an appropriate pseudo register.
11116
11117 2002-05-07 Mark Mitchell <mark@codesourcery.com>
11118
11119 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
11120 (LINK_START_SPEC): Handle it.
11121 (LINK_OS_SPEC): Likewise.
11122 (CPP_SPEC): Likewise.
11123 (STARTFILE_SPEC): Likewise.
11124 (LIB_SPEC): Likewise.
11125 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
11126 all platforms.
11127 (CRTSAVRES_DEFAULT_SPEC): New macro.
11128 (LIB_WINDISS_SPEC): New macro.
11129 (CPP_OS_WINDISS_SPEC): Likewise.
11130 (STARTFILE_WINDISS_SPEC): Likewise.
11131 (ENDFILE_WINDISS_SPEC): Likewise.
11132 (LINK_START_WINDISS_SPEC): Likewise.
11133 (LINK_OS_WINDISS_SPEC): Likewise.
11134 * config/rs6000/windiss.h: New file.
11135
11136 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
11137
11138 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
11139
11140 2002-05-06 David S. Miller <davem@redhat.com>
11141
11142 * config/sparc/sparc.md (shift insns): Do not mask off
11143 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
11144 take care of it.
11145
11146 2002-05-06 Richard Henderson <rth@redhat.com>
11147
11148 PR c++/6212
11149 * expr.c (highest_pow2_factor_for_type): New.
11150 (expand_assignment): Use it.
11151
11152 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
11153
11154 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
11155 unspec_volatile.
11156 ("altivec_mfvscr"): Same.
11157
11158 2002-05-06 Janis Johnson <janis187@us.ibm.com>
11159
11160 * rtl.h (struct rtx_def): Update comments.
11161 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
11162 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
11163 RTL_FLAG_CHECK macros with list of expected RTL codes.
11164 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
11165 (rtl_check_failed_flag): New.
11166 * reload1.c (reload): Use REG macro before changing rtx to MEM.
11167 (reload_cse_noop_set_p): Check rtx code before using access macro.
11168 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
11169 before using access macro.
11170
11171 2002-05-06 Janis Johnson <janis187@us.ibm.com>
11172
11173 * doc/rtl.texi (Flags): Update to reflect current usage.
11174
11175 2002-05-06 Roger Sayle <roger@eyesopen.com>
11176
11177 PR opt/3995
11178 * fold-const.c (sign_bit_p): New function.
11179 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
11180 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
11181 Reapply fold when converting (A & C) == C into (A & C) != 0.
11182 (fold_binary_op_with_conditional_arg): Fix typo in comment.
11183
11184 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
11185
11186 * c-common.c (warn_multichar): New.
11187 (c_common_init): Set CPP's warn_multichar.
11188 * c-common.h (warn_multichar): New.
11189 * c-decl.c (warn_multichar): Remove.
11190 * c-lex.c (lex_charconst): Update.
11191 * c-tree.h (warn_multichar): Remove.
11192 * cppexp.c (eval_token): Sign-extend charconst value.
11193 * cppinit.c (cpp_create_reader): Set warn_multichar.
11194 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
11195 each character. Update prototype. Sign-extend the result.
11196 * cpplib.h: Fix conditions.
11197 (struct cpp_options): Add new warning flag.
11198 (cpp_interpret_charconst): Update prototype.
11199 doc:
11200 * cpp.texi: Update documentation.
11201
11202 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
11203
11204 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
11205 Fix typo in usage of allof instead of unit.
11206
11207 2002-05-06 Richard Henderson <rth@redhat.com>
11208
11209 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
11210 and any jump or call for IN.
11211
11212 2002-05-06 Bernd Schmidt <bernds@redhat.com>
11213
11214 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
11215 -msse2.
11216 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
11217
11218 2002-05-06 Roger Sayle <roger@eyesopen.com>
11219
11220 * fold-const.c (lshift-double): Cast the high word to an unsigned
11221 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
11222 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
11223 avoid compiler warning. (fold): Remove redundant code from
11224 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
11225
11226 2002-05-06 Jeff Law <law@redhat.com>
11227
11228 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
11229 * pa.c (pa_adjust_cost): Remove all true dependency cost
11230 adjustments. Also remove support for non-DFA scheduling.
11231 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
11232 to adjust true dependency costs. Update various comments.
11233 (7100lc, 7200, 7300 scheduling): Simplify by combining the
11234 FP ALU & MPY units into a single unit.
11235
11236 2002-05-06 Catherine Moore <clm@redhat.com>
11237
11238 * config/v850/v850.c (compute_register_save_size): Make sure
11239 to count all of the registers that will be saved.
11240
11241 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
11242
11243 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
11244
11245 2002-05-06 David S. Miller <davem@redhat.com>
11246
11247 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
11248 allow result to overlap input operands in memory.
11249
11250 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
11251
11252 doc:
11253 * cpp.texi: Update multichar charconst docs.
11254
11255 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
11256
11257 * cpplex.c (cpp_interpret_charconst): Sign-extend each
11258 character. Don't ignore excess characters. Treat
11259 multicharacter character constants as signed.
11260 (cpp_parse_escape): Clarify diagnostic.
11261
11262 2002-05-05 Jakub Jelinek <jakub@redhat.com>
11263
11264 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
11265 use add instead of shift.
11266 (ashldi3_sp64): Likewise.
11267 (ashlsi3_const1, ashldi3_const1): Remove.
11268 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
11269 * config/sparc/sparc.c (const1_operand): New.
11270
11271 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
11272
11273 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
11274
11275 2002-05-05 Jakub Jelinek <jakub@redhat.com>
11276
11277 PR target/6561
11278 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
11279
11280 2002-05-05 Richard Henderson <rth@redhat.com>
11281
11282 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
11283 memory latency adjustments.
11284 (alpha_variable_issue): Remove.
11285 (alpha_use_dfa_pipeline_interface): New.
11286 (alpha_multipass_dfa_lookahead): New.
11287 * config/alpha/alpha.md: Remove define_function_unit scheduling;
11288 include new dfa scheduling.
11289 (attr type): Add none.
11290 (blockage): Use it.
11291 * config/alpha/ev4.md: New.
11292 * config/alpha/ev5.md: New.
11293 * config/alpha/ev6.md: New.
11294
11295 2002-05-05 David S. Miller <davem@redhat.com>
11296
11297 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
11298
11299 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
11300
11301 * cse.c: Fix formatting.
11302 * emit-rtl.c: Likewise.
11303
11304 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
11305
11306 * genautomata.c (initiate_states): Add additional guard to
11307 initialize `units_array'.
11308
11309 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
11310
11311 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
11312 process_unit_to_form_the_same_automaton_unit_lists,
11313 form_the_same_automaton_unit_lists
11314 check_unit_distributions_to_automata): New prototypes and
11315 functions.
11316 (check_automata): Rename it into `check_automata_insn_issues'.
11317 (unit_decl): New fields `the_same_automaton_unit' and
11318 `the_same_automaton_message_reported_p'.
11319 (unit_decl_t): New typedef.
11320 (the_same_automaton_lists): New gloval variable.
11321 (unit_regexp, unit_set_el, units_array, units_cmp,
11322 output_get_cpu_unit_code_func): Use the typedef.
11323 (evaluate_max_reserv_cycles): Increment
11324 `description->max_insn_reserv_cycles'.
11325 (initiate_states): Don't increment `max_cycles_num'.
11326 (transform_insn_regexps): Move code around transformation of
11327 regexps from `generate'.
11328 (generate): Remove call of `transform_insn_regexps'.
11329 (expand_automata): Call `transform_insn_regexps' and
11330 `check_unit_distributions_to_automata'. Check errors before
11331 `generate'.
11332
11333 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
11334 automaton `ultrasparc3_1'.
11335
11336 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
11337
11338 * c-common.c (c_common_init): Set up CPP arithmetic.
11339 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
11340 something reasonable for the host.
11341 (sanity_checks): Add checks.
11342 (cpp_read_main_file): Call sanity_checks() from here...
11343 (cpp_post_options): ... not here.
11344 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
11345 * cpplib.h (struct cpp_options): New member int_precision.
11346
11347 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11348
11349 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
11350
11351 2002-05-04 David S. Miller <davem@redhat.com>
11352
11353 * config/sparc/linux.h, config/sparc/linux64.h
11354 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
11355
11356 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
11357 more RTX codes.
11358 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
11359
11360 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
11361 of SETs.
11362
11363 2002-05-05 Tim Josling <tej@melbpc.org.au>
11364
11365 * treelang; New directory for new sample language treelang.
11366
11367 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11368
11369 * Makefile.in (c-lex.o): Update.
11370 * c-lex.c: Include target.h.
11371 (cb_register_builtins): New.
11372 (init_c_lex): Set builtins callback.
11373 * c-lex.h (cpp_define, cpp_assert): New prototypes.
11374 * cppinit.c (init_builtins): Use callback, including for
11375 GXX_WEAK.
11376 * cpplib.h (struct cpp_callbacks): New member.
11377 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
11378 (TARGET_INITIALIZER): Update.
11379 * target.h (struct gcc_target): New hook.
11380 * tree.c (default_register_cpp_builtins): New.
11381 * tree.h (default_register_cpp_builtins): New.
11382 doc:
11383 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
11384
11385 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11386
11387 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
11388 (cpp_post_options): Move sanity checks to...
11389 (sanity_checks): New.
11390 * cpplex.c (maybe_read_ucs): Fix prototype.
11391 (parse_string, cpp_parse_escape): Cast for %c format specifier.
11392 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
11393 if necessary.
11394
11395 2002-05-04 Bernd Schmidt <bernds@redhat.com>
11396
11397 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
11398 builtins. Use V2DI patterns instead of TI for logical operations.
11399 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
11400 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
11401 (ix86_expand_builtins): Change the pattern used for movntdq.
11402 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
11403 sse2_nandv2di3): New patterns.
11404 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
11405 on operands.
11406 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
11407 (cvtdq2pd): Correct mode on operand 1.
11408 (sse2_umulsidi3): Describe without unspec.
11409 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
11410 machine modes.
11411 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
11412 (ashlv2di3): Likewise, from sse2_ashlv2di3.
11413 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
11414 ashlv4si3, ashlv2di3): Use SImode for shift count.
11415 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
11416 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
11417 New patterns.
11418 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
11419 New typedefs.
11420 (__m128i, __m128d): New macros.
11421 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
11422 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
11423 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
11424 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
11425 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
11426 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
11427 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
11428 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
11429 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
11430 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
11431 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
11432 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
11433 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
11434 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
11435 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
11436 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
11437 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
11438 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
11439 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
11440 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
11441 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
11442 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
11443 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
11444 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
11445 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
11446 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
11447 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
11448 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
11449 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
11450 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
11451 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
11452 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
11453 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
11454 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
11455 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
11456 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
11457 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
11458 functions.
11459 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
11460 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
11461
11462 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
11463
11464 * dwarf2out.c: Fix formatting.
11465 * varasm.c: Likewise.
11466
11467 2002-05-04 David Edelsohn <edelsohn@gnu.org>
11468
11469 PR c/6543
11470 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
11471 clobber and use result as temporary value.
11472
11473 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
11474
11475 * expr.c (force_operand): Use expand_simple_* to handle more
11476 cases.
11477
11478 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11479
11480 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
11481 and sign-extension.
11482 (lex_charconst): Update for change in prototype of
11483 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
11484 appropriately.
11485 * cpphash.h (BITS_PER_CPPCHAR_T): New.
11486 * cppinit.c (cpp_create_reader): Initialize them for no
11487 change in semantics.
11488 (cpp_post_options): Add sanity checks.
11489 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
11490 and truncation issues. Calculate in type cppchar_t.
11491 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
11492 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
11493 run-time dependent precision correctly. Return whether the
11494 result is signed or not.
11495 * cpplib.c (dequote_string): Use cppchar_t; update.
11496 * cpplib.h (cppchar_signed_t): New.
11497 struct cpp_options): New precision members.
11498 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
11499 * cppexp.c (eval_token): Update.
11500
11501 2002-05-03 David S. Miller <davem@redhat.com>
11502
11503 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
11504 * config/sparc/sparc.c (sparc_rtx_costs): New function
11505 implementing RTX_COSTS and CONST_COSTS.
11506 * config/sparc/sparc.h (CONST_COSTS): Delete.
11507 (RTX_COSTS_CASES): Define.
11508 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
11509 the work.
11510
11511 * config/sparc/sparc.md (DFA schedulers): Split out...
11512 * config/sparc/cypress.md, config/sparc/hypersparc.md,
11513 config/sparc/sparclet.md, config/sparc/supersparc.md,
11514 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
11515
11516 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
11517 checks on it, always defined for Sparc.
11518
11519 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
11520 Tweak, and add more detailed comments.
11521
11522 2002-05-03 Zack Weinberg <zack@codesourcery.com>
11523
11524 * Re-apply patch accidentally reverted with
11525 DFA scheduler merge: remove all rules and variables to slurp
11526 source files out of libiberty and rebuild them with HOST_CC.
11527 ($(HOST_PREFIX_1)varray.o): New rule.
11528 (genattrtab rule): Word wrap.
11529
11530 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11531
11532 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
11533 (CPP_SUBTARGET_SPEC): Define.
11534 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
11535 cpp_subtarget specs.
11536 (CPP_SPEC): Redefine to include %(cpp_subtarget).
11537
11538 2002-05-03 David S. Miller <davem@redhat.com>
11539
11540 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
11541 * target.h (struct gcc_target): Delete cycle_display member.
11542
11543 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
11544 (rtx_needs_barrier): Delete reference to cycle_display unspec.
11545 (ia64_sched_reorder2): Mention need for cycle display handling
11546 once such notes exist.
11547
11548 2002-05-03 Richard Henderson <rth@redhat.com>
11549
11550 * real.c (etoasc): Strip most trailing zeros for clarity.
11551 * sched-vis.c: Include real.h.
11552 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
11553 * Makefile.in (sched-vis.o): Add real.h.
11554
11555 2002-05-03 David S. Miller <davem@redhat.com>
11556
11557 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
11558 no longer needed.
11559
11560 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
11561
11562 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
11563 when we get an out of range literal.
11564 (altivec_expand_ternop_builtin): Same.
11565 (altivec_expand_unop_builtin): Same.
11566 (altivec_expand_builtin): Same, for dss.
11567 (altivec_expand_builtin): Use trees instead of rtl when
11568 determining literal argument validity.
11569
11570 2002-05-03 David S. Miller <davem@redhat.com>
11571
11572 Delete cycle display scheduling hook.
11573 * config/ia64/ia64.c (ia64_cycle_display,
11574 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
11575 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
11576 and use emit_insn_before instead of ia64_emit_insn_before.
11577 * config/ia64/ia64.md (unspec usage): Delete cycle display.
11578 (cycle_display): Delete insn pattern.
11579 * config/sparc/sparc.md (unspec usage): Delete cycle display.
11580 (cycle_display): Delete insn pattern.
11581 * config/sparc/sparc.c (sparc_cycle_display,
11582 TARGET_SCHED_CYCLE_DISPLAY): Delete.
11583 * doc/md.texi (cycle_display): Don't mention.
11584 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
11585
11586 2002-05-03 Richard Henderson <rth@redhat.com>
11587
11588 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
11589 * recog.h: Declare them.
11590
11591 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
11592 * config/sparc/sparc.md: Use store_data_bypass_p instead.
11593 * config/sparc/sparc-protos.h: Update.
11594
11595 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11596
11597 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
11598 -D__arch64__. Add -D_LP64.
11599 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
11600 from sparc.h.
11601 (CPP_ARCH64_SPEC): Likewise.
11602 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
11603 (NO_BUILTIN_SIZE_TYPE): Undef.
11604
11605 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
11606
11607 * genautomata.c (min_issue_delay_pass_states): Change return type
11608 in the prototype.
11609 (min_issue_delay_pass_states): Change the algorithm.
11610 (min_issue_delay): Set up min_insn_issue_delay for the state.
11611 (output_min_issue_delay_table): Interchange the nested loops and
11612 and initiate min_insn_issue_delay for states.
11613
11614 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
11615
11616 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
11617 jump is simplejump.
11618
11619 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
11620
11621 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
11622 sequence.
11623
11624 2002-05-03 Richard Henderson <rth@redhat.com>
11625
11626 PR opt/6534
11627 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
11628 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
11629 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
11630 code before JUMP, not EARLIEST.
11631
11632 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
11633
11634 * c-format.c (check_format_info_main): Don't check for presence of
11635 parameter for * width until after operand number has been read,
11636 and only check for it if format parameters are available.
11637 Fixes PR c/6547.
11638
11639 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11640
11641 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
11642 (LINK_SPEC): Undef before defining.
11643
11644 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11645
11646 PR preprocessor/6489
11647 * tradcpp.c (fixup_newlines): New.
11648 (main, finclude): Use it.
11649
11650 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
11651
11652 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
11653 * config/mips/mips.c (mips_unique_section): Strip encoding from
11654 decl name.
11655
11656 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11657
11658 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
11659 mode.
11660
11661 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11662
11663 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
11664 (Specific): Removed buildstats references.
11665 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
11666 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
11667 Accomodate Solaris versions beyond 8.
11668 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
11669 (Specific, *-*-solaris2.8): Removed, obsolete.
11670
11671 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11672
11673 PR target/6542
11674 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
11675 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
11676 fill leaf_reg_remap with identity.
11677 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
11678
11679 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
11680
11681 * config/h8300/crti.asm: Remove trailing spaces.
11682 * config/h8300/h8300.c: Likewise.
11683 * config/h8300/lib1funcs.asm: Likewise.
11684
11685 2002-05-02 Jason Merrill <jason@redhat.com>
11686
11687 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
11688 * c-decl.c (c_init_decl_processing): Use it.
11689 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
11690 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
11691 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
11692
11693 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
11694
11695 * regrename.c: Fix formatting.
11696 * tree.c: Likewise.
11697
11698 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
11699
11700 * i386.md (attribute memory): Handle compares properly.
11701
11702 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
11703
11704 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
11705 to none.
11706
11707 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
11708
11709 * function.c: Fix formatting.
11710
11711 2002-05-02 Jan Hubicka <jh@suse.cz>
11712
11713 * haifa-sched.c (schedule_insn): Print table of instructions and
11714 reservations.
11715 (sched_block): Do not print ready list at verbosity level 1.
11716 * sched-vis.c (print_insn): Make global.
11717 * sched-ebb.c (ebb_print_insn): Rename from...
11718 (print_insn): ... this one.
11719 * sched-int.h (print_insn): Declare
11720
11721 2002-05-02 Richard Henderson <rth@redhat.com>
11722
11723 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
11724 emitted by cycle_display.
11725
11726 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
11727
11728 * doc/install.texi (*-*-freebsd*): Update to latest status.
11729
11730 2002-05-02 Jakub Jelinek <jakub@redhat.com>
11731
11732 PR target/6540
11733 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
11734 * config/float-sparc.h: Assume 128-bit long double if
11735 __LONG_DOUBLE_128__ is defined.
11736
11737 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
11738
11739 * genattrtab.c (write_function_unit_info): Add a dummy element
11740 when num_units == 0.
11741
11742 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11743
11744 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
11745 TYPE_MODE (double_type_node) instead of DFmode.
11746
11747 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
11748
11749 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
11750 jumps post reload.
11751 * toplev.c (rest_of_compilation): Revert Richard's patch.
11752
11753 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11754
11755 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
11756
11757 2002-05-02 Catherine Moore <clm@redhat.com>
11758
11759 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
11760
11761 2002-05-02 Kazu Hirata <kazu@hxi.com>
11762
11763 * combine.c: Fix comment typos.
11764 * expr.c: Likewise.
11765 * genautomata.c: Likewise.
11766 * stmt.c: Likewise.
11767 * tree.h: Likewise.
11768
11769 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
11770
11771 * doc/install.texi: State GNAT version requirements.
11772
11773 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
11774
11775 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
11776 of the frame pointer or arg pointer register which strict register
11777 checking is not enabled.
11778
11779 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
11780
11781 * gcc.dg/altivec-8.c: New.
11782
11783 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
11784 PRE_INC and PRE_DEC for altivec modes.
11785
11786 2002-05-01 Bruce Korb <bkorb@gnu.org>
11787
11788 * fixinc/check.tpl(set-writable): make sure the function exists first
11789 * fixinc/inclhack.def(alpha_assert): fix test_text
11790 * fixinc/tests/base/assert.h: add in missing result
11791
11792 2002-05-01 Jeff Law <law@redhat.com>
11793
11794 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
11795 'T' constraint.
11796
11797 2002-05-01 Joel Brobecker <brobecker@gnat.com>
11798
11799 * dbxout.c (dbxout_type): Emit size information for range types,
11800 as well, but only when using GDB extensions.
11801
11802 2002-05-01 Richard Henderson <rth@redhat.com>
11803
11804 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
11805 target-independent gnu binutils date test.
11806
11807 2002-05-01 Richard Henderson <rth@redhat.com>
11808
11809 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
11810 info before expunging the block.
11811
11812 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11813
11814 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
11815 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
11816 -M -or -MM is in effect.
11817
11818 2002-05-01 Zack Weinberg <zack@codesourcery.com>
11819
11820 * config.gcc: Correct test of --enable-obsolete. Obsolete all
11821 A29k configurations.
11822 * doc/install.texi: Update to match.
11823
11824 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11825
11826 PR bootstrap/6514
11827 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
11828 for duplicates. Always loop over whole list.
11829
11830 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11831
11832 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
11833
11834 2002-05-01 Joel Sherrill <joel@OARcorp.com>
11835
11836 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
11837 support routines.
11838
11839 2002-05-01 Joel Sherrill <joel@OARcorp.com>
11840
11841 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
11842
11843 2002-05-01 David Edelsohn <edelsohn@gnu.org>
11844
11845 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
11846 (nabs_nopower): Same.
11847 (floatdisf2): New pattern.
11848 (absdi2): Convert to define_insn_and_split.
11849 (nabsdi2): Same.
11850 (trunctfsf2): Same.
11851 (floatditf2): Same.
11852 (floatsitf2): Same.
11853 (fix_trunctfdi2): Same.
11854 (fix_trunctfsi2): Same.
11855
11856 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
11857
11858 * doc/install.texi: Update Texinfo version requirement
11859 documentation.
11860
11861 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11862
11863 PR target/6512, PR target/5628
11864 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
11865 when memory is not aligned.
11866 (movdf_insn_v9only_vis): Likewise.
11867 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
11868 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
11869 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
11870
11871 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
11872
11873 * gcc.dg/altivec-7.c: New.
11874
11875 * config/rs6000/altivec.h: Cleanup.
11876
11877 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
11878
11879 * doc/invoke.texi (Option Summary): Add -mvrsave=.
11880 (RS/6000 and PowerPC Options): Document -mvrsave=.
11881
11882 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
11883 (rs6000_altivec_vrsave_string): Same.
11884 (rs6000_override_options): Call rs6000_parse_vrsave_option.
11885 (rs6000_parse_vrsave_option): New.
11886 (rs6000_stack_info): Only generate vrsave instructions when
11887 TARGET_ALTIVEC_VRSAVE.
11888
11889 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
11890 (rs6000_altivec_vrsave_string): Define extern.
11891 (rs6000_altivec_vrsave): Same.
11892 (TARGET_ALTIVEC_VRSAVE): New.
11893
11894 2002-04-30 Richard Henderson <rth@redhat.com>
11895
11896 PR opt/6516
11897 * toplev.c (rest_of_compilation): Don't run cross-jump before
11898 bb-reorder.
11899
11900 2002-04-30 Tom Rix <trix@redhat.com>
11901
11902 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
11903 check which_alternative.
11904
11905 2002-04-30 Kazu Hirata <kazu@hxi.com>
11906
11907 * cpplex.c: Fix comment formatting.
11908 * function.c: Likewise.
11909 * integrate.c: Likewise.
11910 * regrename.c: Likewise.
11911 * sibcall.c: Likewise.
11912 * simplify-rtx.c: Likewise.
11913 * tree-inline.c: Likewise.
11914
11915 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11916
11917 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
11918 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
11919 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
11920 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
11921 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
11922 * pa/x-ada: New file. Define ADA_CFLAGS.
11923
11924 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
11925
11926 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
11927 from MMIX_LAST_REGISTER_FILE_REGNUM.
11928 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
11929 (struct machine_function): New member highest_saved_stack_register
11930 previously static variable in mmix.c.
11931 (MACHINE_DEPENDENT_REORG): Define.
11932 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
11933 (MMIX_OUTPUT_REGNO): New.
11934 (mmix_target_asm_function_prologue): Move calculation of last used
11935 saved-stack-register into...
11936 (mmix_machine_dependent_reorg): New function. Update to also handle
11937 !TARGET_ABI_GNU.
11938 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
11939 register names, simplify somewhat by new variable regno.
11940 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
11941 register.
11942 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
11943 emitting register names.
11944 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
11945 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
11946 Remove fixed FIXME.
11947 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
11948 Declare.
11949
11950 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
11951
11952 2002-04-30 Richard Henderson <rth@redhat.com>
11953
11954 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
11955 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
11956 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
11957 emit_tfmode_cvt): New.
11958 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
11959 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
11960 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
11961 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
11962 * config/sparc/sparc-protos.h: Update.
11963
11964 2002-04-30 Janis Johnson <janis187@us.ibm.com>
11965
11966 * install.texi (Final install): Add to the list of info to include
11967 in a report of a successful bootstrap, and add link to 3.1 list.
11968
11969 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
11970
11971 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
11972 (mode): Add vector modes
11973 (i387): Kill attribute.
11974 (unit): New attribute.
11975 (length_immediate): Grok new types.
11976 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
11977 (modrm): Use "unit".
11978 (memory): Handle MMX/SSE properly.
11979 (scheduling descriptions): Kill uses of fop1.
11980 (sse, mmx, fp patterns): Set type and mode properly.
11981
11982 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
11983
11984 * pa.c (override_options): Default to PA8000 scheduling.
11985 * doc/invoke.texi (HP-PA options): Mention newly added 7300
11986 scheduling parameter.
11987
11988 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
11989 handling of double precision multiplies.
11990
11991 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
11992 fpdiv and fpsqrt instructions.
11993 (7200 & 7300 scheduling): Fix typo in handling of
11994 store-load and store-store penalties.
11995
11996 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11997
11998 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
11999 mips. Add two missing commas.
12000
12001 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
12002
12003 * doc/contrib.texi (Contributors): Update Paolo Carlini's
12004 and Benjamin Kosnik's entries.
12005
12006 2002-04-29 David S. Miller <davem@redhat.com>
12007
12008 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
12009 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
12010 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
12011 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
12012
12013 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12014
12015 * combine.c (find_split_point): Use gen_int_mode.
12016
12017 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
12018
12019 Merging code from dfa-branch:
12020
12021 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
12022
12023 * genautomata.c (output_reserv_sets): Fix typo.
12024
12025 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
12026
12027 * genautomata.c (output_reserv_sets): Remove
12028 next_cycle_output_flag.
12029
12030 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
12031
12032 * sched-rgn.c (init_ready_list): Make the DFA code handle
12033 USE/CLOBBER insns in the same way as the traditional
12034 scheduler.
12035 (new_ready): Similarly..
12036
12037 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
12038
12039 * haifa-sched.c (schedule_block): Change the DFA state only after
12040 issuing insn.
12041
12042 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
12043
12044 * pa.c (hppa_use_dfa_pipeline_interface): New function.
12045 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
12046 (override_options): Add PA7300 scheduling support.
12047 (pa_adjust_cost): Update various comments. Properly
12048 handle anti and output dependencies when using the
12049 DFA scheduler.
12050 (pa_issue_rate): Add PA7300 scheduling support.
12051 (pa_can_combine_p): Call extract_insn before calling
12052 constrain_operands (taken from mainline tree).
12053 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
12054 * pa.md (cpu attr): Add 7300. Rewrite pipeline
12055 descriptions using DFA descriptions. Add PA7300
12056 scheduling support.
12057
12058 2002-03-30 David S. Miller <davem@redhat.com>
12059
12060 Add UltraSPARC-III DFA scheduling support.
12061 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
12062 Update FP conditional move on register insn patterns to use it, as
12063 appropriate.
12064 (define_attr cpu): Add ultrasparc3.
12065 (define_attr us3load_type): New, update integer load patterns to
12066 set it, as appropriate.
12067 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
12068 (rest): Add UltraSPARC3 scheduling description.
12069 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
12070 (PROCESSOR_ULTRASPARC3): New.
12071 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
12072 ({ASM,CPP}_CPU_SPEC): Likewise.
12073 (REGISTER_MOVE_COST): Likewise.
12074 (RTX_COSTS): Likewise.
12075 * config/sparc/sparc.c (sparc_override_options,
12076 sparc_initialize_trampoline, sparc64_initialize_trampoline,
12077 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
12078 sparc_issue_rate): Likewise.
12079 * config/sparc/sol2.h: Likewise.
12080 * config/sparc/sol2-sld-64.h: Likewise.
12081 * config/sparc/linux64.h: Likewise.
12082
12083 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
12084
12085 * doc/md.texi: Add comments about usage the latency time for the
12086 different dependencies and about case when two or more conditions
12087 in different define_insn_reservations returns TRUE for an insn.
12088
12089 * doc/md.texi: Add reference for automaton based pipeline
12090 description.
12091
12092 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
12093
12094 * doc/passes.texi: Add missed information about genattrtab.
12095
12096 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
12097
12098 * genautomata.c (output_automata_list_transition_code): Check
12099 automata_list on NULL.
12100
12101 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
12102
12103 * genautomata.c (output_insn_code_cases,
12104 output_automata_list_min_issue_delay_code,
12105 output_automata_list_transition_code,
12106 output_automata_list_state_alts_code): Comment the functions.
12107
12108 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
12109
12110 * genautomata.c (automata_list_el_t): New typedef.
12111 (get_free_automata_list_el,free_automata_list_el,
12112 free_automata_list, automata_list_hash, automata_list_eq_p,
12113 initiate_automata_lists, automata_list_start, automata_list_add,
12114 automata_list_finish, finish_automata_lists,
12115 output_insn_code_cases, output_automata_list_min_issue_delay_code,
12116 output_automata_list_transition_code,
12117 output_automata_list_state_alts_code, add_automaton_state,
12118 form_important_insn_automata_lists): New functions and prototypes.
12119 (insn_reserv_decl): Add members important_automata_list and
12120 processed_p.
12121 (ainsn): Add members important_p.
12122 (automata_list_el): New structure.
12123 (first_free_automata_list_el, current_automata_list,
12124 automata_list_table): New global variables.
12125 (create_ainsns): Initiate member important_p.
12126 (output_internal_min_issue_delay_func): Generate the switch and
12127 call output_insn_code_cases.
12128 (output_internal_trans_func, output_internal_state_alts_func):
12129 Ditto.
12130 (generate): Call initiate_automata_lists.
12131 (automaton_states): New global variable.
12132 (expand_automata): Call form_important_insn_automata_lists.
12133 (write_automata): Call finish_automata_lists.
12134
12135 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
12136
12137 * genautomata.c (add_excls, add_presence_absence): Check that
12138 cpu units in the sets belong the same automaton.
12139
12140 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
12141 about that cpu units in the sets belong the same automaton.
12142
12143 * doc/md.texi: Ditto.
12144
12145 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
12146 Nitin Gupta <niting@noida.hcltech.com>
12147
12148 * config/sh/sh.c (sh_use_dfa_interface): New function.
12149
12150 (sh_issue_rate): New Function.
12151 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
12152 TARGET_SCHED_ISSUE_RATE: define.
12153
12154 * config/sh/sh.md: Add DFA based pipeline description for SH4.
12155
12156 (define_attr insn_class): New attribute used for DFA
12157 scheduling.
12158 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
12159 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
12160 cmpeqdi_t): Likewise.
12161
12162 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
12163 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
12164 ex_group.
12165 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
12166
12167 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
12168
12169 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
12170 break.
12171
12172 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
12173
12174 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
12175 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
12176 necessary.
12177 (output_dfa_start_func): Initiate new variable insn_codes_length,
12178 (write_automata): Output definition of the new variable.
12179
12180 2001-10-02 David S. Miller <davem@redhat.com>
12181
12182 * haifa-sched.c (advance_one_cycle): New function.
12183 (schedule_block): Use it.
12184 (queue_to_ready): Use it, and also make sure to advance the DFA
12185 state on all stall cycles, not just those where insn_queue links
12186 are found.
12187
12188 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
12189
12190 * haifa-sched.c (max_issue): Remove last_p argument. Only return
12191 non-zero if the highest-priority instruction could be scheduled.
12192 (choose_ready): Remove last argument from max_issue call.
12193
12194 2001-09-28 David S. Miller <davem@redhat.com>
12195
12196 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
12197 ultrasparc and 3 for other multi-issue sparcs.
12198
12199 2001-09-27 David S. Miller <davem@redhat.com>
12200
12201 * config/sparc/sparc.md (cycle_display): New pattern.
12202 * config/sparc/sparc.c (sparc_cycle_display): New.
12203 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
12204
12205 2001-09-25 David S. Miller <davem@redhat.com>
12206
12207 Convert all of Sparc scheduling to DFA
12208 * config/sparc/sparc.md: Kill all define_function_unit
12209 directives and replace with DFA equivalent.
12210 * config/sparc/sparc.c (ultrasparc_adjust_cost,
12211 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
12212 ultra_fpmode_conflict_exists, ultra_find_type,
12213 ultra_build_types_avail, ultra_flush_pipeline,
12214 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
12215 ultrasparc_variable_issue, ultrasparc_sched_init,
12216 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
12217 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
12218 ultra_cur_hist, ultra_cycles_elapsed): Kill.
12219 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
12220 ultrasparc_store_bypass_p): New.
12221 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
12222 Declare.
12223
12224 2001-09-24 David S. Miller <davem@redhat.com>
12225
12226 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
12227 ready->vec[foo] not ready[foo].
12228
12229 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
12230
12231 * doc/md.texi: Correct examples for define_insn_reservations
12232 `mult' and `div'.
12233
12234 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
12235
12236 * genautomata.c (create_automata): Print message about creation of
12237 each automaton.
12238 (generate): Remove printing meease about creation of
12239 automata.
12240
12241 2001-09-05 David S. Miller <davem@redhat.com>
12242
12243 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
12244 * config/sparc/linux64.h: Likewise.
12245
12246 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
12247
12248 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
12249 schedule_block, sched_init, sched_finish): Add missed calls of
12250 use_dfa_pipeline_interface.
12251
12252 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
12253 Ditto.
12254
12255 * sched-vis.c (get_visual_tbl_length): Ditto.
12256
12257 2001-08-27 Richard Henderson <rth@redhat.com>
12258
12259 * genattr.c (main): Emit state_t even when not doing scheduling.
12260
12261 2001-08-27 Richard Henderson <rth@redhat.com>
12262
12263 * genautomata.c (expand_automata): Always create a description.
12264
12265 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
12266
12267 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
12268 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
12269 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
12270 RTL constructions.
12271
12272 * genattr.c (main): New variable num_insn_reservations. Increase
12273 it if there is DEFINE_INSN_RESERVATION. Output automaton based
12274 pipeline hazard recognizer interface.
12275
12276 * genattrtab.h: New file.
12277
12278 * genattrtab.c: Include genattrtab.h.
12279 (attr_printf, check_attr_test, make_internal_attr,
12280 make_numeric_value): Move protypes into genattrtab.h. Define them
12281 as external.
12282 (num_dfa_decls): New global variable.
12283 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
12284 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
12285 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
12286 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
12287
12288 * genautomata.c: New file.
12289
12290 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
12291
12292 * sched-int.h: (curr_state): Add the external definition for
12293 automaton pipeline interface.
12294 (haifa_insn_data): Add comments for members blockage and units.
12295
12296 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12297 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12298 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12299 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12300 TARGET_SCHED_DFA_POST_CYCLE_INSN,
12301 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12302 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
12303 macros.
12304 (TARGET_SCHED): Use the new macros.
12305
12306 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
12307 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
12308 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
12309 dfa_bubble): New members in gcc_target.sched.
12310
12311 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
12312 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
12313 (insn_queue): Redefine it as pointer to array.
12314 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
12315 INSN_QUEUE_SIZE.
12316 (max_insn_queue_index_macro_value): New variable.
12317 (curr_state, dfa_state_size, ready_try): New varaibles for
12318 automaton interface.
12319 (ready_element, ready_remove, max_issue): New function prototypes
12320 for automaton interface.
12321 (choose_ready): New function prototype.
12322 (insn_unit, blockage_range): Add comments.
12323 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
12324 FUNCTION_UNITS_SIZE == 0.
12325 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
12326 actual_hazard, potential_hazard): Add comments.
12327 (insn_cost): Use cost -1 as undefined value. Remove
12328 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
12329 pipeline interface.
12330 (ready_element, ready_remove): New functions for automaton
12331 interface.
12332 (schedule_insn): Add new code for automaton pipeline interface.
12333 (queue_to_ready): Add new code for automaton pipeline interface.
12334 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
12335 (debug_ready_list): Print newline when the queue is empty.
12336 (max_issue): New function for automaton pipeline interface.
12337 (choose_ready): New function.
12338 (schedule_block): Add new code for automaton pipeline interface.
12339 Print ready list before scheduling each insn.
12340 (sched_init): Add new code for automaton pipeline interface.
12341 Initiate insn cost by -1.
12342 (sched_finish): Free the current automaton state and finalize
12343 automaton pipeline interface.
12344
12345 * sched-rgn.c: Include target.h.
12346 (init_ready_list, new_ready, debug_dependencies): Add new code for
12347 automaton pipeline interface.
12348
12349 * sched-vis.c: Include target.h.
12350 (get_visual_tbl_length): Add code for automaton interface.
12351 (target_units, print_block_visualization): Add comments.
12352
12353 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
12354 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
12355 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
12356 (getruntime.o, genautomata.o): New entries.
12357 (genattrtab.o): Add new dependency file genattrtab.h.
12358 (genattrtab): Add new dependencies. Link it with `libm.a'.
12359 (getruntime.o, hashtab.o): New entries for canadian cross.
12360
12361 * doc/md.texi: Description of automaton based model.
12362
12363 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
12364 Add comments.
12365 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12366 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12367 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12368 TARGET_SCHED_DFA_POST_CYCLE_INSN,
12369 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12370 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12371 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
12372 hook descriptions.
12373 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
12374 MAX_DFA_ISSUE_RATE): New macro descriptions.
12375
12376 * doc/contrib.texi: Add dfa based scheduler contribution.
12377
12378 * doc/gcc.texi: Add more information about genattrtab.
12379
12380 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12381
12382 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
12383 adjust_address_nv call.
12384
12385 2002-04-29 Janis Johnson <janis187@us.ibm.com>
12386
12387 * doc/install.texi (Testing): Provide additional information, and
12388 a stronger encouragement, for running the testsuites.
12389
12390 2002-04-29 DJ Delorie <dj@redhat.com>
12391
12392 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
12393 given in upper case.
12394
12395 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12396
12397 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
12398 Solaris 2 <widec.h> if missing.
12399 * fixinc/fixincl.x: Regenerate.
12400 * fixinc/tests/base/widec.h: New file.
12401
12402 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
12403
12404 * toplev.c (f_options): Add "profile" switch so that
12405 -fno-profile can be used to disable -p.
12406
12407 2002-04-29 Bernd Schmidt <bernds@redhat.com>
12408
12409 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
12410 UV2DImode.
12411 * tree.c (build_common_tree_nodes_2): Likewise.
12412 * tree.h (enum tree_index): Likewise.
12413 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
12414
12415 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
12416 entries.
12417 (init_mmx_sse_builtins): Initialize SSE2 builtins.
12418 (ix86_expand_builtin): Add support for SSE2 builtins.
12419 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
12420 (VALID_SSE_REG_MODE): Use it.
12421 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
12422 (enum ix86_builtins): Add SSE2 builtins.
12423 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
12424 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
12425 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
12426 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
12427 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
12428 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
12429 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
12430 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
12431 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
12432 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
12433 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
12434 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
12435 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
12436 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
12437 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
12438 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
12439 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
12440 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
12441 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
12442 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
12443 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
12444 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
12445 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
12446 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
12447 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
12448 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
12449 lfence_insn): New patterns.
12450 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
12451 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
12452
12453 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
12454
12455 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
12456
12457 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12458
12459 * doc/contrib.texi (Contributors): Add Paolo Carlini and
12460 Janis Johnson.
12461 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
12462 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
12463 and CPU instead of cpu.
12464
12465 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
12466
12467 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
12468 variables.
12469 (lang_independent_options): Add -fif-conversion, -fif-conversion2
12470 (rest_of_compilation): Do if conversion only when asked for.
12471 (parse_options_and_default_flags): Set new variables to 1 for -O1
12472 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
12473
12474 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
12475
12476 * i386.c (dbx64_register_map): Fix typo.
12477
12478 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
12479
12480 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
12481 real_one_half, real_bb_freq_max): New static variables.
12482 (debug_profile_bbauxs): Kill.
12483 (process_note_predictions): Kill unused variable.
12484 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
12485 volatile double.
12486 (propagate_freq): Use REAL_ARITHMETICS.
12487 (estimate_bb_frequencies): Likevise; init new static variables.
12488 * Makefile.in (predict.o): Add dependency on real.h
12489
12490 2002-04-28 David S. Miller <davem@redhat.com>
12491
12492 PR target/6500
12493 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
12494 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
12495 several {reads,writes} instead.
12496 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
12497 Define.
12498
12499 2002-04-27 David S. Miller <davem@redhat.com>
12500
12501 PR target/6494
12502 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
12503 of the stack bias.
12504
12505 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
12506 including signal.h and sys/ucontext.h, not needed.
12507
12508 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
12509
12510 * varasm.c (output_constant_def): Correct test for not calling
12511 ENCODE_SECTION_INFO for INTEGER_CST.
12512
12513 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
12514
12515 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
12516 keep most cases as function eval_token.
12517 (eval_token): New function.
12518 (_cpp_parse_expr): Read token here for improved diagnostics.
12519 Don't use op_as_text. Detect bad ':' here.
12520 (reduce): Don't detect bad ':' here.
12521 (op_as_text): Remove.
12522 * cpphash.h (_cpp_test_assertion): Change prototype.
12523 * cpplib.c (_cpp_test_assertion): Change prototype.
12524
12525 2002-04-28 Richard Henderson <rth@redhat.com>
12526
12527 PR c/5154
12528 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
12529 (ggc_mark_rtx_children): New.
12530
12531 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12532
12533 PR target/6496
12534 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
12535 after call peepholes for UltraSPARC.
12536 (call + jump 64-bit peepholes): Remove.
12537
12538 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12539
12540 PR c/6497
12541 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
12542 result as temporary value.
12543
12544 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12545
12546 PR c++/6396
12547 * toplev.c (rest_of_compilation): Only run regrename and copy
12548 propagation if optimizing.
12549
12550 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12551
12552 PR optimization/6475
12553 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
12554 register of REGNO_DECL (i).
12555 * Makefile.in (reload1.o): Add $(TREE_H).
12556
12557 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
12558
12559 * cppexp.c (lex): Update to use state.skip_eval.
12560 (struct op): Remove prio and flags members.
12561 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
12562 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
12563 (LEFT_ASSOC): New macro.
12564 (optab): New table of operator priorities and flags.
12565 (SHIFT): Update.
12566 (_cpp_parse_expr): Clean up logic. Return bool. Use a
12567 malloc-ed parser stack.
12568 (reduce): New; reduce the operator stack.
12569 (_cpp_expand_op_stack): Expand the operator stack as necessary.
12570 * cpphash.h (struct op): Predeclare.
12571 (struct cpp_reader): New members op_stack, op_limit.
12572 (struct lexer_state): New member skip_eval.
12573 (_cpp_parse_expr): Update.
12574 (_cpp_expand_op_stack): New.
12575 * cpplib.c (do_if): Update.
12576 * cppinit.c (cpp_create_reader): Create op stack.
12577 (cpp_destroy): And destroy it.
12578 * cpplib.h (CPP_LAST_CPP_OP): Correct.
12579 (TTYPE_TABLE): Correct.
12580
12581 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12582
12583 PR c/6343
12584 * c-decl.c (duplicate_decls): Call merge_weak.
12585 * c-pragma.c (apply_pragma_weak): Warn about misuse.
12586 * output.h (merge_weak): Prototype merge_weak.
12587 * varasm.c (merge_weak): New function.
12588 (declare_weak): Make sure we don't give an error on VAR_DECLs.
12589 Mark RTL with SYMBOL_REF_WEAK.
12590
12591 2002-04-27 Kurt Garloff <garloff@suse.de>
12592
12593 * tree-inline.c (inlinable_function_p): Improve heuristics
12594 by using a smoother function to cut down allowable inlinable size.
12595 * param.def: Add parameters max-inline-insns-single,
12596 max-inline-slope, min-inline-insns that determine the exact
12597 shape of the above function.
12598 * param.h: Likewise.
12599
12600 2002-04-26 Richard Henderson <rth@redhat.com>
12601
12602 * c-parse.in (malloced_yyss, malloced_yyvs): New.
12603 (yyoverflow): Re-add. Set them.
12604 (free_parser_stacks): New.
12605 * c-common.h: Declare it.
12606 * c-lex.c (c_common_parse_file): Call it.
12607
12608 2002-04-26 Richard Henderson <rth@redhat.com>
12609
12610 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
12611 for fallthru search.
12612
12613 2002-04-26 Eric Christopher <echristo@redhat.com>
12614
12615 PR optimization/3700
12616 * config/mips/mips.c (mips_issue_rate): Define. New function.
12617 (TARGET_SCHED_ISSUE_RATE): Use.
12618
12619 2002-04-25 David S. Miller <davem@redhat.com>
12620
12621 PR target/6422
12622 * reorg.c (optimize_skip): Do not allow exception causing
12623 instructions to be considered for delay slots.
12624 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
12625 (relax_delay_slots): Do not try to consider exception causing
12626 instructions as redundant.
12627
12628 2002-04-26 Richard Henderson <rth@redhat.com>
12629
12630 PR c/5225
12631 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
12632
12633 2002-04-26 Mark Mitchell <mark@codesourcery.com>
12634
12635 PR bootstrap/6445
12636 * config/i386/i386.md (untyped_call): Return the value in a float
12637 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
12638 TARGET_80387.
12639
12640 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
12641
12642 * tree.c (tree_int_cst_lt): Compare constants whose types differ
12643 in unsigned-ness correctly.
12644
12645 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
12646
12647 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
12648 portable runtime model.
12649
12650 2002-04-26 Richard Henderson <rth@redhat.com>
12651
12652 * c-parse.in (yyoverflow): Revert.
12653
12654 2002-04-26 David Edelsohn <edelsohn@gnu.org>
12655 Richard Henderson <rth@redhat.com>
12656
12657 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
12658 result as temporary value.
12659
12660 2002-04-26 Richard Henderson <rth@redhat.com>
12661
12662 PR c/3581
12663 * c-common.c (fix_string_type): Split out of ...
12664 (combine_strings): ... here. Take a varray, not a tree list.
12665 (c_expand_builtin_printf): Use fix_string_type.
12666 * c-common.h: Update decls.
12667 * c-parse.in (string): Remove. Update all uses to use STRING
12668 instead, and not call combine_strings.
12669 (yylexstring): New.
12670 (_yylex): Use it.
12671 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
12672 (build_asm_stmt): Likewise.
12673 * objc/objc-act.c (my_build_string): Use fix_string_type.
12674 (build_objc_string_object): Build varray for combine_strings.
12675
12676 2002-04-26 Bo Thorsen <bo@suse.co.uk>
12677
12678 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
12679 x86-64.
12680
12681 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
12682
12683 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
12684 (HAVE_NO_R_OPERAND): Remove.
12685 (HAVE_VALUE): Remove.
12686 (op_to_prio): Update.
12687 (UNARY): Don't alter flags.
12688 (_cpp_parse_expr): want_value used to indicate whether
12689 a number or unary operator is expected next. Distinguish
12690 unary and binary +/-.
12691 (op_as_text): Update for unary operators.
12692
12693 2002-04-25 Richard Henderson <rth@redhat.com>
12694
12695 PR c/2161
12696 * c-parse.in (yyoverflow): New.
12697
12698 2002-04-25 Richard Henderson <rth@redhat.com>
12699
12700 PR c/2098
12701 * c-common.c (shorten_compare): Simplfy conditions leading to
12702 the generation of a warning.
12703
12704 2002-04-25 Richard Henderson <rth@redhat.com>
12705
12706 PR c/2035
12707 * expmed.c (extract_bit_field): Fall through to generic code rather
12708 than aborting on subreg special case.
12709
12710 2002-04-25 David S. Miller <davem@redhat.com>
12711
12712 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
12713 for DECL being NULL.
12714
12715 2002-04-25 Steve Christiansen <smc@us.ibm.com>
12716
12717 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
12718
12719 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
12720
12721 * c-decl.c (grokdeclarator): Remove outdated ??? note
12722 on invalid declaration of flexible array members.
12723
12724 2002-04-25 Richard Henderson <rth@redhat.com>
12725
12726 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
12727
12728 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
12729
12730 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
12731 needed by the compiler, even if they are used as global regs.
12732
12733 2002-04-25 Matt Hiller <hiller@redhat.com>
12734
12735 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
12736 functions.
12737 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
12738 of the corresponding functions.
12739 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
12740 New prototypes.
12741
12742 2002-04-25 Matt Hiller <hiller@redhat.com>
12743
12744 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
12745
12746 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
12747 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
12748 registers, adjust comment accordingly.
12749 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
12750 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
12751 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
12752 for coprocessor registers.
12753 (ADDITIONAL_REGISTER_NAMES): Include
12754 ALL_COP_ADDITIONAL_REGISTER_NAMES.
12755
12756 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
12757 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
12758 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
12759 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
12760 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
12761
12762 (mips_char_to_class): Adjust comment to include coprocessor
12763 constraint letters.
12764
12765 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
12766 New functions.
12767 (mips_reg_names, mips_regno_to_class): Include coprocessor
12768 information.
12769 (mips_sw_reg_names): Ditto, make non-static.
12770 (mips_move_1word): Handle moves to and from coprocessor registers.
12771 (mips_move_2words): Handle moves to and from coprocessor
12772 registers.
12773 (mips_class_max_nregs, mips_register_move_cost): Handle
12774 coprocessor register classes.
12775 (override_options): Initialize mips_char_to_class and
12776 mips_hard_regno_mode_ok properly for coprocessor registers.
12777
12778 * config/mips/mips.md (movdi_internal, movdi_internal2,
12779 movsi_internal1, movsi_internal2): Add constraint-sets for
12780 coprocessor registers.
12781 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
12782 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
12783 isn't mips.
12784 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
12785 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
12786 isn't mips.
12787 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
12788 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
12789 isn't mips.
12790 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
12791 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
12792 isn't mips.
12793
12794 * doc/tm.texi: Document feature.
12795
12796 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
12797
12798 * integrate.c (function_attribute_inlinable_p): Simplify.
12799 Check the table pointer is not NULL.
12800
12801 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
12802
12803 * doc/c-tree.texi: Fix typo in introduction.
12804
12805 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
12806
12807 * c-common.h (c_common_parse_file): Update.
12808 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
12809 * c-lex.c (YYDEBUG): Get from c-lex.h.
12810 (c_common_parse_file): Update.
12811 * c-lex.h (YYDEBUG, yydebug): New.
12812 * c-parse.in (YYDEBUG): Get from c-lex.h.
12813 (c_set_yydebug): Remove.
12814 * c-tree.h (c_set_yydebug): Remove.
12815 * langhooks-def.h (lhd_do_nothing_i): New.
12816 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
12817 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
12818 * langhooks.c (lhd_do_nothing_i): New.
12819 (lhd_set_yydebug): Remove.
12820 * langhooks.h (struct lang_hooks): Update.
12821 * toplev.c (set_yydebug): New.
12822 (compile_file): Update call to parse_file hook.
12823 (decode_d_option): Update.
12824 objc:
12825 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
12826
12827 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
12828
12829 * loop.c (load_mems): Don't change the interface of called functions.
12830
12831 * calls.c (expand_call): Take current_function_pretend_args_size
12832 into account when setting argblock for sibcalls.
12833
12834 2002-04-24 Matt Hiller <hiller@redhat.com>
12835
12836 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
12837 * c-lex.c: Ditto.
12838
12839 * cpplex.c (skip_line_comment): Process comment one multibyte
12840 character at a time rather than one char at a time, if
12841 appropriate.
12842 (parse_string): Process string one multibyte character at a time
12843 rather than one char at a time, if appropriate.
12844 * c-lex.c (lex_string): Lex and copy multibyte strings
12845 appropriately.
12846 * cpplib.h (cppchar_t): Change to unsigned.
12847
12848 2002-04-24 Richard Henderson <rth@redhat.com>
12849
12850 PR c/3467
12851 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
12852 for c99.
12853
12854 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
12855
12856 * sh.c (sh_va_arg): If argument was passed by reference,
12857 dereference the pointer.
12858
12859 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12860
12861 * sh.md (divsi3_i4_media): Use match_operand for input values
12862 rather than hard registers.
12863 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
12864 unnecessarily through hard registers. Keep copies of pseudo
12865 registers outside of the libcall sequence.
12866
12867 * sh.md (casesi_shift_media): Add modes.
12868
12869 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
12870 values in memory.
12871
12872 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
12873
12874 * attribs.c (c_common_attribute_table): Move table and handlers
12875 to c-common.c.
12876 (format_attribute_table, lang_attribute_table,
12877 lang_attribute_common): Remove.
12878 (init_attributes): Replace NULL pointers with pointers to the
12879 empty table.
12880 (handle_packed_attribute, handle_nocommon_attribute,
12881 handle_common_attribute, handle_noreturn_attribute,
12882 handle_noinline_attribute, handle_always_inline_attribute,
12883 handle_used_attribute, handle_unused_attribute,
12884 handle_const_attribute, handle_transparent_union_attribute,
12885 handle_constructor_attribute, handle_destructor_attribute,
12886 handle_mode_attribute, handle_section_attribute,
12887 handle_aligned_attribute, handle_weak_attribute,
12888 handle_alias_attribute, handle_visibility_attribute,
12889 handle_no_instrument_function_attribute, handle_malloc_attribute,
12890 handle_no_limit_stack_attribute, handle_pure_attribute,
12891 handle_deprecated_attribute, handle_vector_size_attribute,
12892 vector_size_helper): Move to c-common.c.
12893 * c-common.c (c_common_attribute_table,
12894 handle_packed_attribute, handle_nocommon_attribute,
12895 handle_common_attribute, handle_noreturn_attribute,
12896 handle_noinline_attribute, handle_always_inline_attribute,
12897 handle_used_attribute, handle_unused_attribute,
12898 handle_const_attribute, handle_transparent_union_attribute,
12899 handle_constructor_attribute, handle_destructor_attribute,
12900 handle_mode_attribute, handle_section_attribute,
12901 handle_aligned_attribute, handle_weak_attribute,
12902 handle_alias_attribute, handle_visibility_attribute,
12903 handle_no_instrument_function_attribute, handle_malloc_attribute,
12904 handle_no_limit_stack_attribute, handle_pure_attribute,
12905 handle_deprecated_attribute, handle_vector_size_attribute,
12906 vector_size_helper): Move from attribs.c.
12907 * c-common.h (c_common_attribute_table,
12908 c_common_format_attribute_table): New.
12909 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12910 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12911 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
12912 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
12913 (LANG_HOOKS_INITIALIZER): Update.
12914 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
12915 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
12916 * target.h: Update comment.
12917 * tree.c (default_target_attribute_table): Remove.
12918 * tree.h (default_target_attribute_table, format_attribute_table,
12919 lang_attribute_table, lang_attribute_common): Remove.
12920 objc:
12921 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12922 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12923
12924 2002-04-24 Jason Merrill <jason@redhat.com>
12925
12926 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
12927 * dwarf2out.c (dwarf_attr_name): Support it.
12928 (gen_array_type_die): Emit it.
12929 (lookup_type_die): No special handling for VECTOR_TYPE.
12930 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
12931
12932 2002-04-24 Richard Henderson <rth@redhat.com>
12933
12934 * config/mips/mips.md (movdi_usd): Renumber.
12935
12936 2002-04-24 David S. Miller <davem@redhat.com>
12937
12938 PR target/6420
12939 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
12940 32-bit Sparc and current_function_returns_struct is true.
12941
12942 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12943
12944 * loop.c (canonicalize_condition): Use gen_int_mode.
12945
12946 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
12947
12948 * config/rs6000/altivec.h: Cleanup file. Add non individual
12949 variants.
12950 (vec_vaddubm): New.
12951 (vec_vadduhm): New.
12952 (vec_vadduwm): New.
12953 (vec_vaddfp): New.
12954 (vec_vaddcuw): New.
12955 (vec_vaddubs): New.
12956 (vec_vaddsbs): New.
12957 (vec_vadduhs): New.
12958 (vec_vadduws): New.
12959 (vec_vaddsws): New.
12960 (vec_vand): New.
12961 (vec_vandc): New.
12962 (vec_vavgub): New.
12963 (vec_vavgsb): New.
12964 (vec_vavguh): New.
12965 (vec_vavgsh): New.
12966 (vec_vavguw): New.
12967 (vec_vavgsw): New.
12968 (vec_vrfip): New.
12969 (vec_vcmpbfp): New.
12970 (vec_vcmpequb): New.
12971 (vec_vcmpequh): New.
12972 (vec_vcmpequw): New.
12973 (vec_vcmpeqfp): New.
12974 (vec_vcmpgefp): New.
12975 (vec_vcmpgtub): New.
12976 (vec_vcmpgtsb): New.
12977 (vec_vcmpgtuh): New.
12978 (vec_vcmpgtsh): New.
12979 (vec_vcmpgtuw): New.
12980 (vec_vcmpgtsw): New.
12981 (vec_vcmpgtfp): New.
12982 (vec_vcmpgefp): New.
12983 (vec_vcfux): New.
12984 (vec_vcfsx): New.
12985 (vec_vctsxs): New.
12986 (vec_vctuxs): New.
12987 (vec_vexptefp): New.
12988 (vec_vrfim): New.
12989 (vec_lvx): New.
12990 (vec_lvebx): New.
12991 (vec_lvehx): New.
12992 (vec_lde): Add vector float variant.
12993 (vec_lvewx): New.
12994 (vec_lvxl): New.
12995 (vec_vlogefp): New.
12996 (vec_vmaddfp): New.
12997 (vec_vmhaddshs): New.
12998 (vec_vmaxub): New.
12999 (vec_vmaxsb): New.
13000 (vec_vmaxuh): New.
13001 (vec_vmaxsh): New.
13002 (vec_vmaxuw): New.
13003 (vec_vmaxsw): New.
13004 (vec_vmaxsw): New.
13005 (vec_vmaxfp): New.
13006 (vec_vmrghb): New.
13007 (vec_vmrghh): New.
13008 (vec_vmrghw): New.
13009 (vec_vmrglb): New.
13010 (vec_vmrglh): New.
13011 (vec_vmrglw): New.
13012 (vec_vminub): New.
13013 (vec_vminsb): New.
13014 (vec_vminuh): New.
13015 (vec_vminsh): New.
13016 (vec_vminuw): New.
13017 (vec_vminsw): New.
13018 (vec_vminfp): New.
13019 (vec_vmladduhm): New.
13020 (vec_vmhraddshs): New.
13021 (vec_msumubm): New.
13022 (vec_vmsummbm): New.
13023 (vec_vmsumuhm): New.
13024 (vec_vmsumshm): New.
13025 (vec_vmsumuhs): New.
13026 (vec_vmsumshs): New.
13027 (vec_vmuleub): New.
13028 (vec_vmulesb): New.
13029 (vec_vmuleuh): New.
13030 (vec_vmulesh): New.
13031 (vec_vmuloub): New.
13032 (vec_mulosb): New.
13033 (vec_vmulouh): New.
13034 (vec_vmulosh): New.
13035 (vec_vnmsubfp): New.
13036 (vec_vnor): New.
13037 (vec_vor): New.
13038 (vec_vpkuhum): New.
13039 (vec_vpkuwum): New.
13040 (vec_vpkpx): New.
13041 (vec_vpkuhus): New.
13042 (vec_vpkshss): New.
13043 (vec_vpkuwus): New.
13044 (vec_vpkswss): New.
13045 (vec_vpkshus): New.
13046 (vec_vpkswus): New.
13047 (vec_vperm): New.
13048 (vec_vrefp): New.
13049 (vec_vrlb): New.
13050 (vec_vrlh): New.
13051 (vec_vrlw): New.
13052 (vec_vrfin): New.
13053 (vec_vrsqrtefp): New.
13054 (vec_vsel): New.
13055 (vec_vslb): New.
13056 (vec_vslh): New.
13057 (vec_vslw): New.
13058 (vec_vsldoi): New.
13059 (vec_vsl): New.
13060 (vec_vslo): New.
13061 (vec_vspltb): New.
13062 (vec_vsplth): New.
13063 (vec_vspltw): New.
13064 (vec_vspltisb): New.
13065 (vec_vspltish): New.
13066 (vec_vspltisw): New.
13067 (vec_vsrb): New.
13068 (vec_vsrh): New.
13069 (vec_vsrw): New.
13070 (vec_vsrab): New.
13071 (vec_vsrah): New.
13072 (vec_vsraw): New.
13073 (vec_vsr): New.
13074 (vec_vsro): New.
13075 (vec_stvx): New.
13076 (vec_stvebx): New.
13077 (vec_stvehx): New.
13078 (vec_stvewx): New.
13079 (vec_stvxl): New.
13080 (vec_vsububm): New.
13081 (vec_vsubuhm): New.
13082 (vec_vsubuwm): New.
13083 (vec_vsubfp): New.
13084 (vec_vsubcuw): New.
13085 (vec_vsububs): New.
13086 (vec_vsubsbs): New.
13087 (vec_vsubuhs): New.
13088 (vec_vsubshs): New.
13089 (vec_vsubuws): New.
13090 (vec_vsubsws): New.
13091 (vec_vsum4ubs): New.
13092 (vec_vsum4sbs): New.
13093 (vec_vsum4shs): New.
13094 (vec_vsum2sws): New.
13095 (vec_vsumsws): New.
13096 (vec_vrfiz): New.
13097 (vec_vupkhsb): New.
13098 (vec_vupkhpx): New.
13099 (vec_vupkhsh): New.
13100 (vec_vupklsb): New.
13101 (vec_vupklpx): New.
13102 (vec_vupklsh): New.
13103 (vec_vxor): New.
13104
13105 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
13106
13107 PR c/5430
13108 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
13109 added literals from substracted literals.
13110 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
13111 (fold) [associate]: Preserve MINUS_EXPR if needed.
13112
13113 2002-04-23 Zack Weinberg <zack@codesourcery.com>
13114
13115 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
13116 are obsoleted.
13117
13118 2002-04-23 Tom Tromey <tromey@redhat.com>
13119
13120 * gcc.c: Added --resource. For PR java/6314.
13121
13122 2002-04-23 David O'Brien <obrien@FreeBSD.org>
13123
13124 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
13125 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
13126 these libraries.
13127
13128 2002-04-23 David O'Brien <obrien@FreeBSD.org>
13129
13130 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
13131
13132 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
13133
13134 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
13135 workaround.
13136 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
13137 (ix86_expand_clrstr): Fix typo.
13138 * loop.c (gen_load_of_final_value): New.
13139 (loop_givs_rescan, strength_reduce, check_dbra_loop):
13140 Use it.
13141
13142 2002-04-23 Roger Sayle <roger@eyesopen.com>
13143
13144 * builtins.c (builtin_memset_gen_str): New function.
13145 (expand_builtin_memset): Optimize the case of constant length, but
13146 unknown value.
13147
13148 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
13149
13150 * config/rs6000/altivec.h (vec_step): Remove extraneous
13151 parentheses.
13152 (vec_ctu): Cast return.
13153
13154 2002-04-23 Alan Modra <amodra@bigpond.net.au>
13155
13156 PR target/6413
13157 * function.h: (struct function): Add profile_label_no field.
13158 (current_function_profile_label_no): Define.
13159 * function.c: (profile_label_no): New static var.
13160 (expand_function_start): Increment it, and copy to
13161 current_function_profile_label_no.
13162 * output.h (profile_label_no): Delete.
13163 * final.c (profile_label_no): Delete.
13164 (profile_function): Use current_function_profile_label_no.
13165 (final_end_function): Don't increment profile_label_no here.
13166 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
13167 profile_label_no with current_function_profile_label_no.
13168 * config/pa/pa.c (current_function_number): Delete.
13169 (pa_output_function_prologue): Don't output profile label here.
13170 (hppa_profile_hook): Use label_no param rather than
13171 current_function_number.
13172 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
13173 * config/pa/pa.h: .. here.
13174 (FUNCTION_PROFILER): Output profile label here.
13175
13176 2002-04-22 Eric Christopher <echristo@redhat.com>
13177
13178 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
13179 patch of 2002-04-09 due to binutils issues.
13180 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
13181
13182 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
13183
13184 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
13185 constraint to 'o' for m=r and r=m alternatives.
13186 ("*movv8hi_internal1"): Same.
13187 ("*movv16qi_internal1"): Same.
13188 ("*movv4sf_internal1"): Same.
13189
13190 2002-04-22 Janis Johnson <janis187@us.ibm.com>
13191
13192 * rtl.h (RTX_FLAG): New macro.
13193 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
13194 * final.c (alter_subreg): Use macro to access rtx flag.
13195 * integrate.c (copy_rtx_and_substitute): Use new access macro.
13196 * print-rtl.c (print_rtx): Use new access macro.
13197
13198 * cse.c (insert): Check rtx code before accessing flag.
13199
13200 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
13201 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
13202 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
13203 convert_const_symbol_ref, make_canonical, make_alternative_compare,
13204 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
13205 simplify_test_exp, optimize_attrs, simplify_by_exploding,
13206 find_and_mark_used_attributes, unmark_used_attributes,
13207 add_values_to_cover, simplify_with_current_value,
13208 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
13209 copy_rtx_unchanging, main): Use new access macros.
13210
13211 2002-04-22 Tom Rix <trix@redhat.com>
13212
13213 * expmed.c (init_expmed): Generate shifted constant once.
13214
13215 2002-04-22 Zack Weinberg <zack@codesourcery.com>
13216
13217 * c-lex.c (lex_charconst): Call convert to get constant in
13218 proper type; don't just smash the type field.
13219 Fixes PR c/6300.
13220
13221 * config.gcc: Add list of obsolete configurations. Disallow
13222 building these without --enable-obsolete.
13223 * doc/install.texi: Document --enable-obsolete and obsoletion
13224 policy. Mention obsoletion of individual targets in
13225 appropriate places.
13226
13227 2002-04-22 Richard Henderson <rth@redhat.com>
13228
13229 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
13230
13231 2002-04-22 Mark Mitchell <mark@codesourcery.com>
13232
13233 PR f/6138.
13234 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
13235 (walk_fixup_memory_subreg): Likewise.
13236 (fixup_var_refs_insn): Adjust accordingly.
13237 (fixup_var_refs_1): Likewise.
13238
13239 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
13240
13241 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
13242 LIBPATH_ARCH64_SPEC): Define.
13243 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
13244 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
13245 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
13246 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
13247
13248 2002-04-22 Joel Sherrill <joel@OARcorp.com>
13249
13250 * gthr-rtems.h: Correct prototypes to remove warnings.
13251
13252 2002-04-22 Richard Henderson <rth@redhat.com>
13253
13254 PR c/6344
13255 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
13256
13257 * gcse.c (free_insn_expr_list_list): New.
13258 (clear_modify_mem_tables): Use it. Fix bit set usage.
13259 (canon_list_insert): Use EXPR_LISTs for expressions.
13260 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
13261
13262 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
13263
13264 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
13265 file change and include code to _cpp_pop_buffer.
13266 * cpphash.h (struct pending_option): Predeclare.
13267 (struct cpp_reader): New member next_include_file.
13268 (_cpp_pop_file_buffer): Update.
13269 (_cpp_push_next_buffer): Update, rename.
13270 * cppinit.c (cpp_destroy): Free include chain and pending here.
13271 (cpp_finish_options): Simplify.
13272 (_cpp_push_next_buffer): Rename and clean up.
13273 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
13274 Clarify.
13275 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
13276
13277 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
13278
13279 * config/rs6000/altivec.h (vec_xor): Add variant for both args
13280 being vector signed int.
13281 (vec_andc): Same.
13282 (vec_xor): Add variant for both args being vector signed char.
13283 Remove redundant variant.
13284 (vec_andc): Same.
13285
13286 2002-04-21 David S. Miller <davem@redhat.com>
13287
13288 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
13289 compare mode in output RTL.
13290
13291 2002-04-22 David Edelsohn <edelsohn@gnu.org>
13292
13293 * config/rs6000/rs6000.c (rs6000_override_options): Correct
13294 style and formatting of previous patch.
13295
13296 2002-04-22 Alan Modra <amodra@bigpond.net.au>
13297
13298 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
13299 flag_pic for ABI_AIX.
13300
13301 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
13302
13303 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
13304 * cppfiles.c (read_include_file): Similarly.
13305 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
13306 uxstrdup ustrchr, ufputs): Similarly.
13307 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
13308 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
13309 cpp_ideq, parse_identifier, parse_number): Similarly.
13310 * cpplib.c (struct directive, dequote_string, D, run_directive,
13311 cpp_push_buffer): Similarly.
13312 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
13313 _cpp_create_definition, check_trad_stringification,
13314 cpp_macro_definition): Similarly.
13315
13316 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
13317
13318 * cppmacro.c (funlike_invocation_p): Don't step back
13319 over CPP_EOF.
13320
13321 2002-04-21 David Edelsohn <edelsohn@gnu.org>
13322
13323 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
13324 labelno.
13325
13326 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
13327
13328 * doc/invoke.texi: Remove Chill references.
13329 * doc/gcc.texi: Update last modified date.
13330
13331 2002-04-20 Kazu Hirata <kazu@hxi.com>
13332
13333 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
13334 push and pop. Replace add.l with add.w.
13335
13336 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
13337
13338 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
13339 multiply instructions for H8/300H case.
13340
13341 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
13342
13343 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
13344 Bum three instructions from each routine.
13345
13346 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
13347
13348 * Makefile.in: Update.
13349 * decl.c (push_c_function_context, pop_c_function_context,
13350 mark_c_function_context): Rename for consistency.
13351 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
13352 * c-tree.h (push_c_function_context, pop_c_function_context,
13353 mark_c_function_context): Rename for consistency.
13354 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13355 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
13356 * function.c (init_lang_status, save_lang_status,
13357 restore_lang_status, mark_lang_status, free_lang_status):
13358 Move to langhooks.h.
13359 (push_function_context_to, pop_function_context_from,
13360 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
13361 Update.
13362 * function.h (init_lang_status, save_lang_status,
13363 restore_lang_status, mark_lang_status, free_lang_status):
13364 Move to langhooks.h.
13365 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
13366 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
13367 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
13368 LANG_HOOKS_FUNCTION_INITIALIZER): New.
13369 (LANG_HOOKS_INITIALIZER): Update.
13370 (lhd_do_nothing_f): New.
13371 * langhooks.h (struct lang_hooks_for_functions): New.
13372 (struct lang_hooks): New hooks.
13373 * langhooks.c (lhd_do_nothing_f): New.
13374 objc:
13375 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13376 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
13377
13378 2002-04-19 David S. Miller <davem@redhat.com>
13379
13380 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
13381 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
13382
13383 2002-04-19 Jakub Jelinek <jakub@redhat.com>
13384
13385 PR optimization/3756
13386 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
13387 x = ((int) y < 0) ? cst1 : cst2.
13388
13389 2002-04-19 Jakub Jelinek <jakub@redhat.com>
13390
13391 PR c/6358
13392 * function.c: Reapply patch for c/6358.
13393 (expand_function_end): Copy decl_rtl's mode, not
13394 current_function_return_rtx mode.
13395
13396 2002-04-19 Joel Sherrill <joel@OARcorp.com>
13397
13398 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
13399 targets.
13400
13401 2002-04-19 Tom Tromey <tromey@redhat.com>
13402
13403 * doc/install.texi (Specific): Update status of Solaris 2.8.
13404 For PR libgcj/6158.
13405
13406 2002-04-19 Andreas Schwab <schwab@suse.de>
13407
13408 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
13409 (PUT_REAL): Restore old definition.
13410
13411 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
13412 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13413
13414 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
13415 binutils 2.11.2 and higher generate smaller binaries than Sun's
13416 native tools.
13417
13418 2002-04-19 Mark Mitchell <mark@codesourcery.com>
13419
13420 PR c++/6352
13421 * toplev.c (rest_of_compilation): Do not defer functions for which
13422 TREE_SYMBOL_REFERENCED has already been set.
13423
13424 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
13425
13426 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
13427 alternative.
13428
13429 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
13430
13431 * builtins.c: Include langhooks.h.
13432 (lang_type_promotes_to): Remove.
13433 (expand_builtin_va_arg): Use new hook.
13434 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
13435 (simple_type_promotes_to): Move to c-typeck.c.
13436 * c-common.h (simple_type_promotes_to): Remove.
13437 * c-decl.c (duplicate_decls, grokdeclarator): Update.
13438 * c-format.c: Include langhooks.h.
13439 (check_format_types): Update.
13440 * c-tree.h (c_type_promotes_to): New.
13441 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
13442 (type_lists_compatible_p): Update.
13443 * langhooks-def.h (lhd_type_promotes_to): New.
13444 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
13445 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
13446 * langhooks.c (lhd_type_promotes_to): New.
13447 * langhooks.h (struct lang_hooks_for_types): New hook.
13448 * tree.h (lang_type_promotes_to): Remove.
13449 objc:
13450 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
13451
13452 2002-04-18 Richard Henderson <rth@redhat.com>
13453
13454 * function.c: Revert patch for c/6358.
13455
13456 2002-04-18 Richard Henderson <rth@redhat.com>
13457
13458 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
13459 blocks. Handle multiple references to the TRAP block. Handle
13460 non-adjacent THEN and OTHER blocks.
13461
13462 2002-04-18 Richard Henderson <rth@redhat.com>
13463
13464 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
13465 crash with no type for by-mode libcalls.
13466
13467 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
13468
13469 2002-04-18 Bob Wilson <bob.wilson@acm.org>
13470
13471 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
13472 __xtensa_nonlocal_goto): Use a syscall instructions to flush
13473 the register windows.
13474
13475 2002-04-18 Zack Weinberg <zack@codesourcery.com>
13476
13477 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
13478 appropriate. Document need for extended precision even when
13479 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
13480 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
13481 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
13482 instead of relying on later syntax error when REAL_WIDTH > 5.
13483 * real.c: Define NE based only on whether or not we have a
13484 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
13485 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
13486 define GET_REAL and PUT_REAL as simple memcpy operations; no
13487 need to byteswap or round.
13488 Use #error instead of #ifdef-ing out the entire file, for
13489 prompt error detection.
13490
13491 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
13492
13493 2002-04-18 David S. Miller <davem@redhat.com>
13494
13495 * config/sparc/sparc.h (BRANCH_COST): Define.
13496
13497 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
13498 does it.
13499
13500 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
13501
13502 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
13503 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
13504 propagate_block calls after relaxation loop using new variable
13505 stabilized_prop_flags.
13506
13507 2002-04-18 Richard Henderson <rth@redhat.com>
13508
13509 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
13510 (ia64_va_arg): Expect variable sized types by reference.
13511 * config/ia64/ia64-protos.h: Update.
13512 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
13513 ia64_function_arg_pass_by_reference.
13514
13515 2002-04-18 Richard Henderson <rth@redhat.com>
13516
13517 * ifcvt.c: Include except.h.
13518 (block_has_only_trap): Break out from find_cond_trap.
13519 (find_cond_trap): Use it. Always delete the trap block.
13520 (merge_if_block): Allow then block null. Be less simplistic about
13521 what insns can end a block.
13522 * Makefile.in (ifcvt.o): Depend on except.h.
13523
13524 * config/ia64/ia64.md (trap, conditional_trap): New.
13525
13526 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13527
13528 PR c/6358
13529 * function.c (assign_parms): Assign hard current_function_return_rtx
13530 register here...
13531 (expand_function_end): ...not here.
13532
13533 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
13534
13535 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
13536 * c-tree.h (c_incomplete_type_error): New.
13537 * c-typeck.c (require_complete_type, build_component_ref): Update.
13538 (incomplete_type_error): Rename.
13539 * langhooks-def.h (lhd_incomplete_type_error): New.
13540 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
13541 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
13542 * langhooks.c (lhd_incomplete_type_error): New.
13543 * langhooks.h (struct lang_hooks_for_types): New hook.
13544 * tree.c (size_in_bytes): Use new hook.
13545 * tree.h (incomplete_type_error): Remove.
13546 objc:
13547 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
13548
13549 2002-04-18 Zack Weinberg <zack@codesourcery.com>
13550
13551 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
13552 TARGET_FLOAT_FORMAT blocks.
13553
13554 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13555
13556 * doc/install.texi (Downloading the source): Do not mention Chill
13557 any longer, but mention Ada.
13558 (Configuration): Do not mention Chill any longer.
13559
13560 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
13561
13562 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
13563
13564 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
13565
13566 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
13567 in last patch.
13568
13569 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13570
13571 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
13572 instead of unsigned_type.
13573
13574 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
13575
13576 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
13577 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
13578 later.
13579
13580 2002-04-18 Bernd Schmidt <bernds@redhat.com>
13581
13582 * attribs.c (vector_type_node_list): New static variable.
13583 (handle_vector_size_attribute): Use it to avoid generating a
13584 new type node each time we are called.
13585
13586 * combine.c (subst): Avoid trying to make a vector mode subreg of
13587 an integer constant.
13588 (gen_lowpart_for_combine): Likewise.
13589
13590 2002-04-18 Roger Sayle <roger@eyesopen.com>
13591 Jakub Jelinek <jakub@redhat.com>
13592
13593 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
13594 for integer constant c (if x has unsigned type or sign bit is not
13595 set in c). This folds the zero/sign extension into the bit-wise and
13596 operation.
13597
13598 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13599
13600 PR middle-end/6205
13601 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
13602 otherwise xorps.
13603
13604 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
13605
13606 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
13607
13608 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
13609
13610 * gcc.c (read_specs): Detect and fail if an attempt is made to
13611 rename a spec string to an already existing string.
13612
13613 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
13614
13615 * config/s390/s390.c (legitimize_pic_address): Do not generate
13616 illegal address constant without CONST.
13617
13618 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13619
13620 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
13621 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13622
13623 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
13624
13625 PR optimization/6305
13626 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
13627 to make sure previous reloads are taken into account. Generate
13628 better code if one operand is an in-range immediate constant.
13629
13630 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
13631
13632 * doc/install.texi (Building): libgcj requires GNU make.
13633
13634 2002-04-17 Jakub Jelinek <jakub@redhat.com>
13635
13636 PR bootstrap/6315
13637 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
13638 even if hard quad and register is not floating.
13639 (movtf reg<-mem split): Disallow splitting if hard quad and
13640 register is floating.
13641 (movtf mem<-reg split): Likewise.
13642 * config/sparc/sparc.c (fp_register_operand): New predicate.
13643 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
13644
13645 2002-04-17 Zack Weinberg <zack@codesourcery.com>
13646
13647 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
13648 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
13649 (unprotoize.o): Ditto. Build from protoize.c. Define
13650 UNPROTOIZE on command line.
13651 * protoize.c: Include cppdefault.h. Delete include_defaults.
13652 (in_system_include_dir): Use cpp_include_defaults (defined in
13653 cppdefault.o).
13654 * unprotoize.c: Delete file.
13655
13656 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
13657
13658 * config/rs6000/altivec.h (vec_ld): Add array variants.
13659 (vec_lde): Same.
13660 (vec_ldl): Same.
13661
13662 2002-04-17 Alan Matsuoka <alanm@redhat.com>
13663 Aldy Hernandez <aldyh@redhat.com>
13664
13665 * config/rs6000/altivec.h: Define __ALTIVEC__.
13666 (bool): New.
13667 (__pixel): New.
13668 (pixel): New.
13669 (vec_cfux): New.
13670 (vec_vmaddfp): New.
13671 (vec_vsldoi): New.
13672 Add parentheses to all macro arguments.
13673
13674 2002-04-16 Richard Henderson <rth@redhat.com>
13675
13676 PR c++/6320
13677 * except.c (remove_eh_handler): Insert inner regions at beginning
13678 of sibling chain. Refactor expressions.
13679
13680 2002-04-16 Richard Henderson <rth@redhat.com>
13681
13682 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
13683 * config/sparc/sol2-gas-bi.h: New file.
13684 * config.gcc (sparc*-solaris): Add it as needed.
13685 * configure.in (AS_SPARC64_FLAG): Remove check.
13686 * config.in, configure: Regenerate.
13687
13688 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
13689
13690 2002-04-16 Richard Henderson <rth@redhat.com>
13691
13692 * config/mips/mips.c (override_options): Don't override N32 for
13693 a 64-bit ISA.
13694
13695 PR 6202
13696 * config/mips/mips.md (can_delay): Split out of existing define_delays.
13697 (HILO_delay): Set can_delay false.
13698
13699 2002-04-16 Dale Johannesen <dalej@apple.com>
13700
13701 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
13702 instruction addresses.
13703 (rs6000_output_function_epilogue): Likewise.
13704
13705 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
13706
13707 * c-parse.in (poplevel, compstmt_start,
13708 compstmt_primary_start): Add ending ';', in accordance
13709 with POSIX.
13710
13711 2002-04-16 Richard Henderson <rth@redhat.com>
13712
13713 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
13714 Adjust tm_file order to get TARGET_DEFAULT set properly.
13715 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
13716 * doc/install.texi (sparc-solaris): Update.
13717
13718 2002-04-16 Dale Johannesen <dalej@apple.com>
13719
13720 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
13721 comparison operands do not match each other or if modes of
13722 conditions do not match result.
13723
13724 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
13725
13726 PR target/6305
13727 * config/s390/s390.md (mulsidi3): Set both subregs of the
13728 multiword register.
13729
13730 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
13731
13732 * config/rs6000/altivec.h (vec_addc): Type check.
13733
13734 2002-04-16 Jakub Jelinek <jakub@redhat.com>
13735
13736 PR middle-end/6279
13737 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
13738
13739 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
13740
13741 2002-04-15 Richard Henderson <rth@redhat.com>
13742
13743 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
13744 call_really_used_regs too.
13745
13746 2002-04-15 Richard Henderson <rth@redhat.com>
13747
13748 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
13749
13750 2002-04-15 David S. Miller <davem@redhat.com>
13751
13752 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
13753 as being CLOBBERed.
13754
13755 2002-04-16 Jakub Jelinek <jakub@redhat.com>
13756
13757 PR c/6290
13758 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
13759 CONST_VECTOR is { 0, ... 0 }.
13760
13761 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
13762
13763 * doc/install.texi (Installing GCC: Configuration): Clarify
13764 the only supported ways to configure gcc.
13765
13766 2002-04-15 Roland McGrath <roland@frob.com>
13767
13768 * config.gcc (alpha*-*-gnu*): New target configuration.
13769 * config/alpha/gnu.h: New file for it.
13770 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
13771
13772 2002-04-16 Mark Mitchell <mark@codesourcery.com>
13773
13774 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
13775 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
13776 * tree.h (expand_start_stmt_expr): Update prototype.
13777 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
13778 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
13779 on the STMT_EXPR created for the inline function.
13780
13781 2002-04-15 Richard Henderson <rth@redhat.com>
13782
13783 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
13784 config/i386/linux-aout.h, config/i386/linux-oldld.h,
13785 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
13786 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
13787 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
13788 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
13789 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
13790 Define __gnu_linux__, not gnu_linux.
13791 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
13792
13793 2002-04-15 Mark Mitchell <mark@codesourcery.com>
13794
13795 Remove Chill front end.
13796 * gcc.c (default_compilers): Remove Chill entries.
13797 * ch: Remove directory.
13798 * doc/frontends.texi: Remove information about Chill.
13799 * doc/sourcebuild.texi: Likewise.
13800 * doc/standards.texi: Likewise.
13801
13802 2002-04-15 Douglas B Rupp <rupp@gnat.com>
13803
13804 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
13805 (LONGLONG_STANDALONE): Define.
13806
13807 2002-04-15 David S. Miller <davem@redhat.com>
13808
13809 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
13810 Call emit_library_call with LCT_NORMAL.
13811 (sparc_initialize_trampoline): Use LCT_foo instead of
13812 magic constant in emit_library_call invocations.
13813 (sparc64_initialize_trampoline): Likewise.
13814 (sparc_profile_hook): Likewise.
13815 * config/sparc/sparc.md: Likewise.
13816
13817 * config/sparc/sparc.c (sparc_extra_constraint_check):
13818 Fix type of argument 'c'.
13819 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
13820 Likewise.
13821
13822 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
13823
13824 * diagnostic.h (output_buffer_state): Redefine.
13825 (output_format_decoder): New macro.
13826 (output_prefixing_rule): Likewise.
13827 (output_line_cutoff): Likewise.
13828 (diagnostic_format_decoder): Adjust.
13829 (diagnostic_prefixing_rule): Likewise.
13830 (diagnostic_line_cutoff): Likewise.
13831 (diagnostic_state): Likewise.
13832 (diagnostic_kind_count): Likewise.
13833 (diagnostic_buffer): Now a macro.
13834
13835 * diagnostic.c (diagnostic_buffer): Remove definition.
13836 (output_is_line_wrapping): Adjust.
13837 (set_real_maximum_length): Likewise.
13838 (output_set_maximum_length): Likewise.
13839 (init_output_buffer): Likewise.
13840 (lhd_print_error_function): Likewise.
13841 (output_do_verbatim): Likewise.
13842
13843 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
13844
13845 * cpperror.c (print_location): Don't print include chain
13846 if line == 0.
13847 (cpp_begin_message): Update to use DL_ macros.
13848 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13849 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13850 cpp_notice, cpp_notice_from_errno): Remove.
13851 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13852 level.
13853 (cpp_errno): New.
13854 * cppexp.c (CPP_ICE): Remove.
13855 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
13856 lex, integer_overflow, _cpp_parse_expr): Update.
13857 * cppfiles.c (read_include_file, find_include_file,
13858 handle_missing_header, _cpp_read_file, remap_filename): Update.
13859 * cpphash.h (enum error_type): Remove.
13860 (_cpp_begin_message): Update.
13861 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
13862 cpp_handle_option, cpp_post_options): Update.
13863 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
13864 skip_whitespace, parse_identifier, parse_slow, parse_string,
13865 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
13866 cpp_interpret_charconst): Update.
13867 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
13868 lex_macro_node, do_undef, glue_header_name, parse_include,
13869 do_include_common, read_flag, do_line, do_linemarker, do_ident,
13870 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
13871 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
13872 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
13873 _cpp_pop_buffer, do_diagnostic): Update.
13874 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
13875 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
13876 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13877 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13878 cpp_notice, cpp_notice_from_errno): Remove.
13879 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13880 level.
13881 (cpp_errno): New.
13882 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
13883 collect_args, enter_macro_context, save_parameter, parse_params,
13884 _cpp_create_definition, check_trad_stringification,
13885 cpp_macro_definition): Update.
13886 * cppmain.c (cpp_preprocess_file): Update.
13887 * fix-header.c (read_scan_file): Update.
13888
13889 2002-04-14 Andreas Schwab <schwab@suse.de>
13890
13891 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
13892
13893 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13894
13895 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
13896
13897 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13898
13899 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
13900 not gnu_hurd.
13901
13902 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
13903
13904 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
13905
13906 2002-04-13 Joel Sherrill <joel@OARcorp.com>
13907
13908 * config/sparc/t-elf: Enable v8 multilibs. Impacts
13909 sparc-elf and sparc-rtems targets.
13910
13911 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13912
13913 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
13914 defined, and __gnu_hurd__ wherever __GNU__ is defined.
13915 * arm/linux-elf.h: Likewise.
13916 * cris/aout.h: Likewise.
13917 * cris/linux.h: Likewise.
13918 * i370/linux.h: Likewise.
13919 * i386/gnu.h: Likewise.
13920 * i386/linux-aout.h: Likewise.
13921 * i386/linux-oldld.h: Likewise.
13922 * i386/linux.h: Likewise.
13923 * i386/linux64.h: Likewise.
13924 * ia64/linux.h: Likewise.
13925 * m68k/linux-aout.h: Likewise.
13926 * m68k/linux.h: Likewise.
13927 * mips/linux.h: Likewise.
13928 * pa/pa-linux.h: Likewise.
13929 * pj/linux.h: Likewise.
13930 * rs6000/sysv4.h: Likewise.
13931 * s390/linux.h: Likewise.
13932 * sh/linux.h: Likewise.
13933 * sparc/linux-aout.h: Likewise.
13934 * sparc/linux.h: Likewise.
13935 * sparc/linux64.h: Likewise.
13936 * xtensa/linux.h: Likewise.
13937
13938 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
13939
13940 * stmt.c (check_unique_operand_names): Expect operand names to
13941 be strings rather than identifiers. Use simple_cst_equal to
13942 compare them.
13943 (resolve_operand_name_1): Make same identifier to string change here.
13944 * c-parse.in (asm_operand): Convert a named operand into a string.
13945 * cp/parse.y (asm_operand): Likewise.
13946
13947 2002-04-13 Andreas Schwab <schwab@suse.de>
13948
13949 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
13950
13951 2002-04-12 Mark Mitchell <mark@codesourcery.com>
13952
13953 Revert these changes:
13954
13955 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13956
13957 PR c++/5571
13958 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13959
13960 2002-04-12 Richard Henderson <rth@redhat.com>
13961
13962 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
13963 (sparc*-*-solaris): Clean up header files.
13964 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
13965 and plan on generating 64-bit code.
13966 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
13967 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
13968 * config/sparc/sol2-sld-64.h: Rename ...
13969 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
13970 for AS_SPARC64_FLAG not defined.
13971 * config/sparc/sol2-gld-bi.h: New.
13972 * config/sparc/sol2-sld.h: Remove.
13973 * config/sparc/sol26-sld.h: New.
13974 * config/sparc/sol2.h: Tidy comments.
13975 * doc/install.texi: Document sparc-solaris configury changes.
13976
13977 2002-04-12 Richard Henderson <rth@redhat.com>
13978
13979 * recog.c (offsettable_address_p): Match the logic in adjust_address.
13980
13981 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
13982 in 64-bit mode only. Use only for 32-bit or MEDLOW.
13983
13984 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13985
13986 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
13987
13988 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
13989
13990 * pa.c (pa_can_combine_p): Call extract_insn before calling
13991 constrain_operands.
13992
13993 2002-04-12 Douglas B Rupp <rupp@gnat.com>
13994
13995 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
13996 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
13997 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13998 (CPP_PREDEFINES): Handle __declspec.
13999 * config/i386/t-interix (USER_H): Remove.
14000
14001 2002-04-12 DJ Delorie <dj@redhat.com>
14002
14003 * integrate.c (compare_blocks): Make comparisons safe for when
14004 sizeof(int) < sizeof(char *).
14005 (find_block): Likewise.
14006
14007 2002-04-12 Jan Hubicka <jh@suse.cz>
14008 David Edelsohn <edelsohn@gnu.org>
14009
14010 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
14011 registers.
14012 (symbol_ref_operand): New.
14013 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
14014 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
14015
14016 2002-04-12 Andreas Schwab <schwab@suse.de>
14017
14018 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
14019 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
14020 overrides the definition in config/svr4.h.
14021
14022 2002-04-12 Eric Norum <eric.norum@usask.ca>
14023
14024 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
14025 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
14026 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
14027 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
14028 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
14029 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
14030 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
14031 definitions to config/rtems.h and make the targets more similar.
14032
14033 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14034
14035 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
14036 POINTERS_EXTEND_UNSIGNED.
14037 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
14038 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
14039
14040 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
14041 not specified.
14042
14043 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
14044
14045 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
14046 depends on TARGET_SHMEDIA, not TARGET_SH5.
14047
14048 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
14049
14050 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
14051 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
14052
14053 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
14054
14055 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
14056 no r0 clobber.
14057
14058 2002-04-12 Andreas Schwab <schwab@suse.de>
14059
14060 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
14061
14062 2002-04-12 Richard Henderson <rth@redhat.com>
14063
14064 PR bootstrap/4191
14065 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
14066
14067 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
14068 modes spanning multiple hard regs.
14069
14070 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
14071
14072 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14073
14074 * pa.c (pa_output_function_prologue): Don't accumulate the total
14075 number of code bytes when using TARGET_64BIT, or gas, SOM and not
14076 the portable runtime.
14077 (output_deferred_plabels): Handle 64bit plabels.
14078 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
14079 generating pic code using the GAS assembler for object formats that
14080 are not SOM (ie., ELF32 and ELF64).
14081 (output_millicode_call): Check attribute type if attribute length is 28.
14082 Likewise use $PIC_pcrel$0. Only call get_attr_length and
14083 dbr_sequence_length once.
14084 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
14085 dbr_sequence_length once.
14086 * pa.h (TARGET_SOM): Define if not defined.
14087 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
14088 with GAS and not SOM.
14089 (jump, call_internal_reg, call_value_internal_reg): Likewise.
14090 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
14091
14092 2002-04-11 David O'Brien <obrien@FreeBSD.org>
14093
14094 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
14095 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
14096 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
14097 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
14098 elfos.h and dbxelf.h values are fine now.
14099 * config/i386/freebsd.h, config/alpha/freebsd.h
14100 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
14101
14102 2002-04-11 David O'Brien <obrien@FreeBSD.org>
14103
14104 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
14105 or set Acpu or Amachine. Reformat.
14106 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14107 define.
14108 (LINK_SPEC): Do not need to undef.
14109 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
14110 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
14111 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14112 define.
14113 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
14114 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
14115 (LINK_SPEC): Do not need to undef.
14116 (DONT_USE_BUILTIN_SETJMP): Do not define.
14117 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
14118 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
14119 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
14120 Remove trailing spaces.
14121 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
14122 __ELF__, or set Acpu or Amachine. Reformat.
14123 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14124 define.
14125
14126 2002-04-11 David O'Brien <obrien@FreeBSD.org>
14127
14128 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
14129 all other *-*-freebsd* targets.
14130
14131 2002-04-11 Richard Henderson <rth@redhat.com>
14132
14133 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
14134
14135 2002-04-11 David O'Brien <obrien@FreeBSD.org>
14136
14137 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
14138 Include {cpu}/{cpu}.h thru tm_file.
14139 (alpha*-*-linux*ecoff): Remove target.
14140 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
14141 (LINK_SPEC): Remove, is not OS independent.
14142 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
14143 (LINK_SPEC): Do not need to #undef any longer.
14144 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
14145 any longer.
14146 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
14147 __ELF__.
14148 (LINK_SPEC): Moved here from alpha/elf.h.
14149 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
14150 SUB_CPP_PREDEFINES.
14151 * config/alpha/linux-ecoff.h: Remove.
14152 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
14153 (CPP_SPEC): Define _POSIX_SOURCE as needed.
14154 (CPP_SUBTARGET_SPEC): Do not define.
14155 (LINK_SPEC): Do not need to #undef any longer.
14156 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
14157 * config/alpha/vms.h: Likewise.
14158
14159 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
14160
14161 * doc/extend.texi: Remove old claim that typedefs cannot have
14162 an alignment attribute.
14163
14164 2002-04-11 Jakub Jelinek <jakub@redhat.com>
14165
14166 PR optimization/6177
14167 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
14168 bitpos is 0 and bitsize CONCAT size.
14169
14170 2002-04-11 Jakub Jelinek <jakub@redhat.com>
14171
14172 PR c/6223
14173 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
14174
14175 2002-04-10 David O'Brien <obrien@FreeBSD.org>
14176
14177 * config/alpha/freebsd.h: Minor reformatting.
14178 (CPP_SPEC): Define ELF and add cpp_subtarget.
14179 (ASM_SPEC): No longer needed.
14180
14181 2002-04-11 Richard Henderson <rth@redhat.com>
14182
14183 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
14184 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
14185 (dimode mem/zero splitter): New.
14186
14187 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
14188
14189 * config/cris/cris.c (cris_override_options): Tweak error message
14190 for PIC not implemented.
14191
14192 * config/cris/cris.h: Tweak comments related to parameter-passing.
14193
14194 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
14195
14196 2002-04-10 Richard Henderson <rth@redhat.com>
14197
14198 * except.c (add_ehl_entry): Allow duplicates after landing pad
14199 creation.
14200
14201 2002-04-10 David Edelsohn <edelsohn@gnu.org>
14202
14203 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
14204
14205 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
14206
14207 * c-decl.c (c_init_decl_processing): Move generation of
14208 decls for g77_integer_type_node and friends from here ...
14209 * c-common.c (c_common_nodes_and_builtins): ... to here.
14210
14211 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
14212
14213 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
14214 is only used as frame pointer when frame_pointer_needed is true.
14215
14216 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
14217
14218 PR target/817
14219 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
14220 for the fact that the pool entry uses two words.
14221 (movdf_hard_insn): Similarly. Also, ADR instruction can span
14222 1k bytes.
14223 (movdf_soft_insn): Similarly.
14224 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
14225 for the fact that the pool entry uses three words.
14226
14227 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
14228
14229 * config/mips/mips.c (mips_va_arg): When using the struct version
14230 of the EABI va_list, allow arguments in the register save area to
14231 take up less room than a stack argument.
14232
14233 2002-04-10 Richard Henderson <rth@redhat.com>
14234
14235 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
14236 if EXPAND_INITIALIZER.
14237
14238 2002-04-09 Richard Henderson <rth@redhat.com>
14239
14240 * config/alpha/alpha.md (movdi_er_maybe_g): New.
14241 * config/alpha/alpha.c (alpha_expand_mov): Use it.
14242
14243 2002-04-10 Alan Modra <amodra@bigpond.net.au>
14244
14245 PR optimization/6233
14246 * rtlanal.c (pure_call_p): New function.
14247 * rtl.h (pure_call_p): Declare.
14248 * loop.c (prescan_loop): Use it to set has_nonconst_call.
14249 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
14250
14251 2002-04-09 Eric Christopher <echristo@redhat.com>
14252
14253 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
14254 information to .comm directive.
14255
14256 2002-04-09 Richard Henderson <rth@redhat.com>
14257
14258 PR c/5078
14259 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
14260
14261 2002-04-09 Richard Henderson <rth@redhat.com>
14262
14263 * basic-block.h (flow_delete_block_noexpunge): Declare.
14264 (expunge_block_nocompact): Declare.
14265 * cfg.c (expunge_block_nocompact): Split out from ...
14266 (expunge_block): ... here.
14267 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
14268 (flow_delete_block_noexpunge): Split out from ...
14269 (flow_delete_block): ... here.
14270 * cfgcleanup.c (delete_unreachable_blocks): Compact while
14271 removing dead blocks.
14272 * except.c (exception_handler_labels): Remove.
14273 (exception_handler_label_map): New.
14274 (struct eh_region): Add aka member.
14275 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
14276 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
14277 (for_each_eh_label, for_each_eh_label_1): New.
14278 (init_eh): Register exception_handler_label_map.
14279 (free_eh_status): Use free_region.
14280 (find_exception_handler_labels): Use the map, not the list.
14281 (remove_exception_handler_label): Likewise.
14282 (maybe_remove_eh_handler): Likewise.
14283 (remove_eh_handler): Use the region aka bitmap.
14284 * except.h (exception_handler_labels): Remove.
14285 (for_each_eh_label): Declare.
14286 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
14287 * loop.c (invalidate_loops_containing_label): New.
14288 (find_and_verify_loops): Use it. Use for_each_eh_label.
14289 * sched-rgn.c (is_cfg_nonregular): Use
14290 current_function_has_exception_handlers.
14291
14292 2002-04-09 Richard Henderson <rth@redhat.com>
14293
14294 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
14295 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
14296 Do not return changed status.
14297 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
14298 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
14299 New functions that do return changed status.
14300 * sbitmap.h: Update decls.
14301 * gcse.c, lcm.c: Use _cg functions as needed.
14302
14303 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
14304
14305 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
14306 (sh64-*-elf*, sh-*-rtemself*): Likewise.
14307 * config/sh/embed_bb.c: New file.
14308 * config/sh/embed-elf.h: New file.
14309 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
14310 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
14311 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
14312 __PTRDIFF_TYPE__ .
14313 (SUBTARGET_CPP_PTR_SPEC): Don't define.
14314 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
14315 Add subtarget_asm_endian_spec.
14316 (ASM_SPEC): Use subtarget_asm_endian_spec.
14317 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
14318 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
14319 (WCHAR_UNSIGNED): Define.
14320 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
14321 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
14322 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
14323 Fix value.
14324 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
14325 (sh_adjust_cost): Likewise.
14326 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
14327 __PTRDIFF_TYPE__ .
14328 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
14329 (WCHAR_TYPE_SIZE): Likewise.
14330 (ASM_SPEC): Use subtarget_asm_endian_spec.
14331 (SH_ELF_WCHAR_TYPE): #undef/ #define.
14332 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
14333 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
14334 (MAX_WCHAR_TYPE_SIZE): Don't #define .
14335 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
14336 (USER_LABEL_PREFIX): Don't #undef /#define .
14337 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
14338 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
14339 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
14340 (ASM_SPEC): Likewise.
14341 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
14342 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
14343 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
14344 (LIB2FUNCS_EXTRA): Define.
14345 * t-sh64 (LIB2FUNCS_EXTRA): Define.
14346 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
14347 (LIB1ASMFUNCS_CACHE): Define.
14348 (LIB2FUNCS_EXTRA): Redefine empty.
14349
14350 2002-04-08 Richard Henderson <rth@redhat.com>
14351
14352 * reorg.c (get_branch_condition): Use reversed_comparison_code.
14353
14354 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14355
14356 * config/m68hc11/larith.asm (__map_data_section): Fix condition
14357 and optimize for size.
14358 (__do_global_ctors): Fix pointer comparison.
14359 (__do_global_dtors): Likewise.
14360
14361 2002-04-09 David S. Miller <davem@redhat.com>
14362
14363 * config/sparc/sparc.c (sparc_extra_constraint_check): New
14364 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
14365 allow reloading pseudos.
14366 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
14367 * config/sparc/sparc-protos.h: Declare it.
14368
14369 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
14370 unsigned comparison warning.
14371 (output_restore_regs): Mark leaf_function as unused.
14372
14373 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14374
14375 * expr.c (is_aligning_offset): New function.
14376 (expand_expr, case COMPONENT_EXPR): Call it.
14377
14378 2002-04-08 David S. Miller <davem@redhat.com>
14379
14380 PR target/6082
14381 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
14382
14383 Make init_priority work on Sparc when using GNU ld.
14384 * config/sparc/linux.h, config/sparc/linux64.h,
14385 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
14386 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
14387 * config/sparc/sol2-gld.h: New file to do the same.
14388 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
14389 sparc/sol2-gld.h to tm_file.
14390
14391 PR optimization/4328
14392 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
14393 * doc/md.texi: Document it.
14394 * config/sparc/sparc.md (movdi_insn_sp64_novis,
14395 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
14396 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
14397 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
14398 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
14399
14400 2002-04-08 Andreas Jaeger <aj@suse.de>
14401
14402 * stmt.c (expand_asm_operands): Revert last patch from Richard
14403 Henderson.
14404
14405 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14406
14407 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
14408 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
14409
14410 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14411
14412 * doc/contrib.texi (Contributors): Add David O'Brien.
14413
14414 2002-04-08 Alan Modra <amodra@bigpond.net.au>
14415
14416 * configure.in (auto-build.h): Use target_alias and build_alias
14417 when running configure.
14418 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
14419 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
14420 * configure: Regenerate.
14421
14422 2002-04-07 David S. Miller <davem@redhat.com>
14423
14424 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
14425
14426 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
14427
14428 PR 5933
14429 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
14430 generating 32-bit pic code.
14431
14432 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
14433
14434 * cppinit.c (cpp_create_reader): Initialize
14435 discard_comments_in_macro_exp.
14436 (COMMAND_LINE_OPTIONS): Add "-CC" option.
14437 (cpp_handle_option): Handle "-CC" option.
14438 * cpplex.c (save_comment): If saving a C++ comment in
14439 a directive, convert it to a C comment.
14440 (_cpp_lex_direct): Pass second comment start character to
14441 save_comment to indicate comment type.
14442 * cpplib.c (_cpp_handle_directive): If processing
14443 a "#define" directive and discard_comments_in_macro_exp
14444 is false, re-enable saving of comments.
14445 (lex_macro_node): If discard_comments_in_macro_exp is false,
14446 discard any comments before the macro identifier.
14447 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
14448 member.
14449 * cppmacro.c (cpp_get_token): If expanding a macro while
14450 processing a directive, discard any comments we might encounter.
14451 (parse_params): If discard_comments_in_macro_exp is false,
14452 ignore comments in the macro parameter list.
14453 * gcc.c (cpp_unique_options): Add "-CC" option.
14454 (option_map): Map "--comments-in-macros" to "-CC".
14455 * doc/cppopts.texi: Document "-CC" option.
14456 * f/lang-specs.h: Add "-CC" option.
14457 * testsuite/gcc.dg/cpp/maccom1.c: New test.
14458 * testsuite/gcc.dg/cpp/maccom2.c: New test.
14459 * testsuite/gcc.dg/cpp/maccom3.c: New test.
14460 * testsuite/gcc.dg/cpp/maccom4.c: New test.
14461 * testsuite/gcc.dg/cpp/maccom5.c: New test.
14462 * testsuite/gcc.dg/cpp/maccom6.c: New test.
14463
14464 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
14465
14466 PR middle-end/6180
14467 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
14468
14469 2002-04-06 Mark Mitchell <mark@codesourcery.com>
14470
14471 PR c++/5571
14472 * stor-layout.c (layout_decl): Reset the RTL for the decl.
14473
14474 PR opt/5120
14475 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
14476 RTX_UNCHANGING_P for the functions arguments when a tail call
14477 is made.
14478
14479 2002-04-06 Jason Merrill <jason@redhat.com>
14480
14481 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
14482 (parse_options_and_default_flags): Set them appropriately.
14483 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
14484
14485 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
14486
14487 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
14488 here.
14489
14490 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
14491 semicolon.
14492
14493 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
14494 types come in by-reference. Fix typo in comment.
14495
14496 2002-04-05 David S. Miller <davem@redhat.com>
14497
14498 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
14499 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
14500 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
14501 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
14502
14503 2002-04-05 David S. Miller <davem@redhat.com>
14504
14505 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
14506 are not going to emit return instructions, emit at least a nop
14507 for the sake of sane backtraces.
14508
14509 2002-04-05 Richard Henderson <rth@redhat.com>
14510
14511 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
14512
14513 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
14514
14515 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
14516
14517 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
14518
14519 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
14520 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
14521 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
14522
14523 2002-04-05 Andreas Schwab <schwab@suse.de>
14524
14525 * c-convert.c: Include c-common.h.
14526 * Makefile.in (c-convert.o): Updated.
14527
14528 2002-04-05 Jakub Jelinek <jakub@redhat.com>
14529
14530 * mklibgcc.in: Use separate libgcc.map for each multilib.
14531 * Makefile.in (distclean): Don't remove libgcc.map here.
14532
14533 2002-04-05 Jakub Jelinek <jakub@redhat.com>
14534
14535 * Makefile.in (s-mlib): Handle --disable-multilib by separate
14536 genmultilib invocation.
14537
14538 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
14539
14540 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
14541 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
14542 to num_gprs for symmetry.
14543 * config/mips/mips.c: Adjust accordingly.
14544
14545 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
14546
14547 * c-common.c (truthvalue_conversion): Rename, update.
14548 * c-common.h (c_common_truthvalue_conversion): New.
14549 * c-convert.c (convert): Update.
14550 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14551 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
14552 * c-typeck.c (build_binary_op, build_unary_op,
14553 build_conditional_expr): Update.
14554 * fold-const.c (constant_boolean_node, fold): Use langhook.
14555 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
14556 * langhooks.h (struct lang_hooks): New hook.
14557 * stmt.c (expand_decl_cleanup): Use langhook.
14558 * tree.h (truthvalue_conversion): Remove.
14559 objc:
14560 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14561
14562 2002-04-05 Alan Modra <amodra@bigpond.net.au>
14563
14564 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
14565 Add rules to make null object file.
14566
14567 2002-04-04 Jim Blandy <jimb@redhat.com>
14568
14569 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
14570 macro formal parameter names.
14571
14572 2002-04-04 David S. Miller <davem@redhat.com>
14573
14574 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
14575
14576 2002-04-04 Richard Henderson <rth@redhat.com>
14577
14578 PR middle-end/5099
14579 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
14580 Support copies into and out of memory. Don't accept allows_reg
14581 and allows_mem as gospel.
14582
14583 2002-04-04 Richard Henderson <rth@redhat.com>
14584
14585 PR opt/6165
14586 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
14587 (write_dependence_p): Likewise.
14588
14589 2002-04-04 Richard Henderson <rth@redhat.com>
14590
14591 * predict.c (estimate_bb_frequencies): Do frequency calculation
14592 with a volatile temporary.
14593
14594 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
14595
14596 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
14597
14598 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14599
14600 PR c++/6119
14601 * final.c (final_start_function): Don't bump profile_label_no here...
14602 (final_end_function): ...but here.
14603
14604 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14605
14606 * config/sparc/sparc.md (pic): New attribute.
14607 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
14608 into stack slots.
14609 (split after do_builtin_setjmp_setup): New.
14610
14611 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14612
14613 PR fortran/6106
14614 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
14615 change.
14616
14617 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14618
14619 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
14620 UNITS_PER_WORD for zero sized aggregates.
14621
14622 2002-04-03 David S. Miller <davem@redhat.com>
14623
14624 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
14625 one-character spec for this, just use %(link_gcc_c_sequence).
14626
14627 2002-04-03 David S. Miller <davem@redhat.com>
14628
14629 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
14630 handling.
14631
14632 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14633
14634 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
14635 (DWARF_FRAME_RETURN_COLUMN): Move.
14636 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14637 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
14638 * pa.c (except.h, predict.h): Include.
14639 (FRP): Delete.
14640 (store_reg_modify, set_reg_plus_d): Revise prototypes.
14641 (output_ascii): Add cast.
14642 (store_reg_modify): Revise to add frame notes.
14643 (set_reg_plus_d): Likewise.
14644 (compute_frame_size): Include space for eh data registers in frame if
14645 the current function calls eh_return.
14646 (hppa_expand_prologue): Ensure register %r2 is saved if the current
14647 function calls eh_return. Save eh data registers if the current
14648 function calls eh_return. Fix code to add frame notes. Emit
14649 blockage to prevent insns with frame notes being scheduled in the
14650 delay slot of calls.
14651 (hppa_expand_epilogue): Restore eh data registers and do final stack
14652 adjustment if the current function calls eh_return. Don't add frame
14653 notes.
14654 (output_call): Revise for change in length of call insn. Don't do
14655 return pointer adjustment for an unconditional jump in the delay slot
14656 of a call when using frame notes.
14657 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
14658 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
14659 (ARG_POINTER_CFA_OFFSET): Define.
14660 * pa.md (return_external_pic): New pattern.
14661 (prologue): Correct formatting. Use return_external_pic if current
14662 function calls eh_return.
14663 (call_internal_symref, call_value_internal_symref,
14664 sibcall_internal_symref, sibcall_value_internal_symref): Change default
14665 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
14666 respectively.
14667 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
14668
14669 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
14670 list of targets to check using "nop" insn.
14671 * configure: Rebuilt.
14672
14673 2002-04-04 Alan Modra <amodra@bigpond.net.au>
14674
14675 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
14676
14677 2002-04-03 David S. Miller <davem@redhat.com>
14678
14679 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
14680 library sequence passed to the linker.
14681 (LINK_COMMAND_SPEC): Use it.
14682 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
14683 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
14684 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14685
14686 2002-04-03 Jason Merrill <jason@redhat.com>
14687
14688 * except.c (struct eh_status): Remove protect_list.
14689 (begin_protect_partials, end_protect_partials): Remove.
14690 (add_partial_entry): Remove.
14691 * except.h: Remove prototypes.
14692
14693 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
14694 expand_decl_cleanup_eh.
14695
14696 PR c++/5636
14697 * tree.h (CLEANUP_EH_ONLY): New macro.
14698 * stmt.c (expand_decl_cleanup_eh): New fn.
14699 (expand_cleanups): Check CLEANUP_EH_ONLY.
14700 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
14701 Use expand_decl_cleanup_eh.
14702 (expand_stmt): Adjust.
14703 * c-common.h: Adjust prototype.
14704
14705 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
14706
14707 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
14708 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
14709 (cris_target_asm_function_epilogue): Ditto.
14710 (cris_initial_frame_pointer_offset): Ditto.
14711 (cris_simple_epilogue): Ditto.
14712 (cris_expand_builtin_va_arg): Variable-size types come in
14713 by-reference.
14714
14715 2002-04-03 David S. Miller <davem@redhat.com>
14716
14717 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
14718 little-endian.
14719 (set_fast_math): Correct 'fsr' type.
14720
14721 2002-04-03 Richard Henderson <rth@redhat.com>
14722
14723 PR opt/3569
14724 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
14725 * toplev.c (check_global_declarations): Use it.
14726 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
14727 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14728 (LANG_HOOKS_DECLS): Add it.
14729 * langhooks.c (lhd_warn_unused_global_decl): New.
14730 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14731 * c-objc-common.c (c_warn_unused_global_decl): New.
14732 * c-tree.h (c_warn_unused_global_decl): Declare.
14733 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14734
14735 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
14736
14737 * langhooks-def.h (lhd_set_decl_assembler_name,
14738 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
14739 (LANG_HOOKS_INITIALIZER): Update.
14740 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
14741 * langhooks.h (struct lang_hooks): New hook.
14742 * tree.c (set_decl_assembler_name): Move to langhooks.c.
14743 (lang_set_decl_assembler_name): Remove.
14744 (init_obstacks): Don't set hook.
14745 (decl_assembler_name): New function.
14746 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
14747 (decl_assembler_name): New.
14748 (lang_set_decl_assembler_name): Remove.
14749
14750 2002-04-03 Jakub Jelinek <jakub@redhat.com>
14751
14752 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
14753 works properly with .hidden symbols.
14754 * configure: Rebuilt.
14755 * config.in: Rebuilt.
14756 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
14757 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
14758 properly with .hidden symbols.
14759
14760 2002-04-03 Jakub Jelinek <jakub@redhat.com>
14761
14762 PR middle-end/6102
14763 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
14764 USE argument.
14765
14766 2002-04-03 Richard Henderson <rth@redhat.com>
14767
14768 PR opt/4120
14769 * sched-rgn.c (sets_likely_spilled): New.
14770 (sets_likely_spilled_1): New.
14771 (add_branch_dependences): Use it.
14772
14773 2002-04-02 Richard Henderson <rth@redhat.com>
14774
14775 PR opt/4311
14776 * loop.h (LOOP_FIRST_PASS): New.
14777 * loop.c (strength_reduce): Mind it when deciding to unroll.
14778 * toplev.c (rest_of_compilation): Set it.
14779
14780 2002-04-02 David S. Miller <davem@redhat.com>
14781
14782 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
14783 mems_ok_for_ldd_peep when the order of the loads being examined
14784 is reversed.
14785 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
14786 existing comment to increase comprehension of this situation.
14787
14788 2002-04-02 Zack Weinberg <zack@codesourcery.com>
14789
14790 * config/sh/sh.md: Don't use union real_extract.
14791
14792 2002-04-02 Richard Henderson <rth@redhat.com>
14793
14794 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
14795
14796 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14797
14798 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
14799 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
14800 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
14801 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
14802 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
14803 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
14804 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
14805 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
14806 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
14807 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
14808 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
14809 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
14810 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
14811 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
14812 Include as many configury headers via tm_file as possible. This
14813 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
14814 * config/openbsd-oldgas.h: New file.
14815 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
14816 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
14817 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
14818 config/i386/i386-coff.h, config/i386/i386-interix.h,
14819 config/i386/iscdbx.h, config/i386/linux-aout.h,
14820 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
14821 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
14822 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
14823 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
14824 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
14825 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
14826 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
14827 config/i386/vxi386.h: Do not directly include configury headers.
14828 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
14829 Directly include configury headers that are no longer automatically
14830 included by the above headers.
14831 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
14832 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
14833 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
14834 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
14835 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
14836 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
14837 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
14838 (TARGET_VERSION): Define.
14839 * config/i386/beos-elf.h, config/i386/freebsd.h,
14840 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
14841 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
14842 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
14843 config/i386/sco5.h, config/i386/sysv4.h
14844 (TARGET_VERSION): Do not need to protect.
14845 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
14846 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
14847 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
14848 config/i386/i386-interix.h, config/i386/linux-aout.h,
14849 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
14850 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
14851 (YES_UNDERSCORES): Do not define - not needed.
14852 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
14853 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
14854 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
14855 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
14856 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
14857 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
14858 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
14859 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
14860
14861 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
14862 Richard Henderson <rth@redhat.com>
14863
14864 PR c/5484
14865 * function.c (assign_temp): Accept either type or decl argument.
14866 Detect variables whose size is too large to fit into an integer.
14867 * stmt.c (expand_decl): Pass the decl, not the type.
14868
14869 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14870
14871 * protoize.c: Match include directory usage with cppdefault.c.
14872
14873 2002-04-03 Jeffrey A Law (law@redhat.com)
14874 Hans-Peter Nilsson <hp@bitrange.com>
14875
14876 * combine.c (simplify_comparison): Avoid narrowing a comparison
14877 with a paradoxical subreg when doing so would drop signficant bits.
14878
14879 2002-04-02 Steve Ellcey <sje@cup.hp.com>
14880
14881 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
14882 if POINTERS_EXTEND_UNSIGNED is defined.
14883
14884 2002-04-02 Richard Henderson <rth@redhat.com>
14885
14886 PR opt/3967
14887 * local-alloc.c (contains_replace_regs): LO_SUM may contain
14888 replace regs.
14889
14890 2002-04-02 Richard Henderson <rth@redhat.com>
14891
14892 * doc/standards.texi: Document required freestanding libc entry points.
14893
14894 2002-04-02 Alan Modra <amodra@bigpond.net.au>
14895
14896 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
14897 associated splitter. Remove MQ constraint.
14898 (ctrdi_internal4): Correct CCmode clobber.
14899
14900 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
14901
14902 * milli64.S ($$dyncall): New function.
14903 * t-linux (LIB1ASMFUNCS): Revise module list.
14904 (LIB1ASMSRC): Use pa/milli64.S.
14905
14906 2002-04-02 Richard Henderson <rth@redhat.com>
14907
14908 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
14909 rename solaris_sys_varargs_h.
14910
14911 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14912
14913 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
14914 the same mode as its component.
14915
14916 2002-04-02 Richard Henderson <rth@redhat.com>
14917
14918 PR opt/190
14919 * final.c (this_is_asm_operands): Export.
14920 * output.h (this_is_asm_operands): Declare.
14921 * config/i386/i386.c (print_operand): Error odd asm operands.
14922
14923 2002-04-02 Richard Henderson <rth@redhat.com>
14924
14925 PR opt/420
14926 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
14927
14928 2002-04-01 Richard Henderson <rth@redhat.com>
14929
14930 PR target/1538
14931 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
14932 * fixinc/fixincl.x: Rebuild.
14933
14934 2002-04-01 Richard Henderson <rth@redhat.com>
14935
14936 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
14937 (atomic_alloc, atomic_free): New.
14938 (SIZE, MASK_FOR, PTR_IN): New.
14939 (emergency_reg_state, emergency_reg_state_free): New.
14940 (emergency_labeled_state, emergency_labeled_state_free): New.
14941 (reg_state_alloced, labeled_state_alloced): New.
14942 (alloc_reg_state, free_reg_state): New.
14943 (alloc_label_state, free_label_state, free_label_states): New.
14944 (push, pop, dup_state_stack, free_state_stack): Use them.
14945 (desc_label_state): Likewise.
14946 (uw_frame_state_for): Free label states and state stack.
14947 (uw_update_reg_address): Eliminate warnings.
14948
14949 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
14950
14951 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
14952 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
14953
14954 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14955
14956 * c-decl.c (grokdeclarator): Update.
14957 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14958 * c-tree.h (c_mark_addressable): New.
14959 * c-typeck.c (default_function_array_conversion, build_unary_op,
14960 build_array_ref, convert_for_assignment): Update.
14961 (mark_addressable): Rename.
14962 * calls.c (try_to_integrate, expand_call): Use langhook.
14963 * expr.c (expand_expr): Use langhook.
14964 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
14965 * langhooks.h (struct lang_hooks): New hook.
14966 * stmt.c (expand_asm_operands): Use langhook.
14967 * tree.h (mark_addressable): Remove.
14968 objc:
14969 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14970
14971 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14972
14973 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
14974 in previous change.
14975
14976 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14977
14978 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
14979 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
14980
14981 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14982
14983 * c-common.c (unsigned_conversion_warning, convert_and_check,
14984 unsigned_type, signed_type, shorten_compare,
14985 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
14986 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
14987 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
14988 New.
14989 * c-decl.c (grokdeclarator): Update.
14990 * c-format.c (check_format_types): Update.
14991 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14992 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14993 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
14994 * convert.c (convert_to_integer): Use new hooks.
14995 * expmed.c (make_tree): Use new hooks.
14996 * expr.c (store_expr): Use new hooks.
14997 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
14998 all_ones_mask_p, unextend, fold): Use new hooks.
14999 * langhooks.h (struct lang_hooks_for_types): New hooks.
15000 * tree.h (signed_or_unsigned_type, signed_type,
15001 unsigned_type): Remove.
15002 objc:
15003 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
15004 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
15005
15006 2002-03-31 Richard Henderson <rth@redhat.com>
15007
15008 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
15009 (desc_frgr_mem): Fix reference to f16-f31.
15010
15011 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15012
15013 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
15014 RTVEC_ELT): Const-ify.
15015 * varray.h (VARRAY_CHECK): Const-ify.
15016 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
15017 ggc_mark_rtvec, ggc_mark): Const-ify.
15018
15019 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
15020
15021 * diagnostic.c: Include langhooks-def.h.
15022 * Makefile.in (diagnostic.o): Update.
15023
15024 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
15025
15026 * c-common.c (c_unsafe_for_reeval): Rename.
15027 * c-common.h (c_unsafe_for_reeval): Rename.
15028 * c-decl.c (finish_incomplete_decl): Rename.
15029 (c_init_decl_processing): Don't set langhook.
15030 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
15031 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
15032 * c-objc-common.c (c_objc_common_init): Don't set langhook.
15033 * c-tree.h (finish_incomplete_decl): Rename.
15034 * langhooks-def.h (lhd_unsafe_for_reeval): New.
15035 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
15036 (LANG_HOOKS_INITIALIZER): Update.
15037 * langhooks.c (lhd_unsafe_For_reeval): New.
15038 * langhooks.h (struct langhooks): New hooks.
15039 * toplev.c (incomplete_decl_finalize_hook): Remove.
15040 (wrapup_global_declarations): Update.
15041 * tree.c (lang_unsafe_for_reeval): Remove.
15042 (unsafe_for_reeval): Update.
15043 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
15044 Remove.
15045 objc:
15046 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
15047 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
15048
15049 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
15050
15051 * diagnostic.c (print_error_function): Remove.
15052 (default_print_error_function): Rename.
15053 (report_error_function): Update.
15054 * diagnostic.h (print_error_function): Remove.
15055 (default_print_error_function): Remove.
15056 * langhooks-def.h (struct diagnostic_context): Predeclare.
15057 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
15058 (LANG_HOOKS_INITIALIZER): Update.
15059 * langhooks.h (struct diagnostic context): Predeclare.
15060 (struct lang_hooks): New hook.
15061
15062 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15063
15064 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
15065 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
15066 !flag_pic.
15067 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
15068 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
15069 of PIC_OFFSET_TABLE_REGNUM thruout.
15070 * config/rs6000/rs6000.md: Likewise.
15071 * config/rs6000/darwin.h: Likewise.
15072
15073 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15074
15075 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
15076 unsigned HOST_WIDE_INT, not unsigned int.
15077
15078 2002-03-31 Jakub Jelinek <jakub@redhat.com>
15079
15080 PR middle-end/6096, middle-end/6098, middle-end/6099
15081 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
15082 CODE_LABELs.
15083 (fill_slots_from_thread): Likewise.
15084
15085 2002-03-31 Jakub Jelinek <jakub@redhat.com>
15086
15087 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
15088 floating fields in float regs.
15089 (function_arg_record_value_2): Likewise.
15090
15091 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
15092
15093 * config/mmix/mmix.md (define_constants): Remove misleading
15094 FIXME. Add MMIX_fp_rO_OFFSET.
15095 ("nonlocal_goto_receiver"): Don't have stack-frame address of
15096 saved rO as part of the pattern. Remove FIXME.
15097 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
15098 here, at output-time.
15099
15100 2002-03-31 Jakub Jelinek <jakub@redhat.com>
15101
15102 PR middle-end/6100
15103 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
15104 REG_BR_PRED.
15105 (output_v9branch): Likewise.
15106
15107 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
15108
15109 * gcc.c: Revert previous patch for now.
15110 * config/i386/djgpp.h: Likewise.
15111
15112 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
15113
15114 * config/mmix/crti.asm (_init): Register _fini with atexit.
15115 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
15116
15117 2002-03-31 Richard Henderson <rth@redhat.com>
15118
15119 PR target/3997
15120 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
15121 (ASM_OUTPUT_DEF_FROM_DECLS): New.
15122
15123 2002-03-31 Richard Henderson <rth@redhat.com>
15124
15125 * libgcc2.c (__bb_exit_func): Make static.
15126
15127 * config/alpha/alpha.md (trap): New.
15128
15129 2002-03-31 Richard Henderson <rth@redhat.com>
15130
15131 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
15132 promoted argument types; build trap.
15133 (expand_builtin_trap): New.
15134 (expand_builtin): Use it.
15135 * stmt.c (expand_nl_goto_receivers): Likewise.
15136 * expr.h (expand_builtin_trap): Declare.
15137 * libfuncs.h (LTI_abort, abort_libfunc): New.
15138 * optabs.c (init_optabs): Init abort_libfunc.
15139
15140 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
15141
15142 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
15143 (LINK_COMMAND_SPEC): ... from here.
15144 (init_gcc_specs): Duplicate it here too, omitting
15145 shared_name in the second copy.
15146 (init_spec): Test for duplicate
15147 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
15148
15149 2002-03-30 David S. Miller <davem@redhat.com>
15150
15151 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15152 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
15153
15154 2002-03-30 Roger Sayle <roger@eyesopen.com>
15155 Richard Henderson <rth@redhat.com>
15156
15157 * regmove.c (combine_stack_adjustments_for_block): Avoid
15158 emitting a stack adjustment of zero bytes. Let delete_insn
15159 update bb->head.
15160
15161 2002-03-30 Richard Henderson <rth@redhat.com>
15162
15163 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
15164 (sparc_emitting_epilogue): New.
15165 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
15166 * config/sparc/sparc-protos.h: Update.
15167 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
15168 (TARGET_SWITCHES): Update.
15169 * config/sparc/sparc.md (return): Remove.
15170 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
15171 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
15172 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
15173 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15174 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
15175 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
15176 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
15177 Remove MASK_EPILOGUE.
15178 * doc/invoke.texi: Update.
15179
15180 2002-03-30 Daniel Berlin <dan@dberlin.org>
15181
15182 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
15183 CPP will start the file for us.
15184
15185 2002-03-30 Richard Henderson <rth@redhat.com>
15186
15187 PR target/5446
15188 * config/ia64/ia64.c (group_barrier_needed_p): Special case
15189 prologue_allocate_stack.
15190 (ia64_single_set): Use insn codes for recognition of special
15191 cases, not rtl matching.
15192 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
15193
15194 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
15195
15196 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
15197
15198 2002-03-30 Richard Henderson <rth@redhat.com>
15199
15200 PR target/6032
15201 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
15202 or -fomit-frame-pointer with profiling.
15203 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
15204 (FUNCTION_PROFILER): Do nothing.
15205 (PROFILE_HOOK): New.
15206 * config/sparc/sparc.c (sparc_override_options): Don't check
15207 code models for profiling.
15208 (sparc_function_profiler): Remove.
15209 (sparc_profile_hook): New.
15210 * config/sparc/sparc-protos.h: Update.
15211
15212 2002-03-30 Jakub Jelinek <jakub@redhat.com>
15213
15214 PR optimization/6086
15215 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
15216 of SUBREG of volatile MEM or because the MEM was mode dependent,
15217 return CLOBBER instead of unmodified SUBREG.
15218
15219 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
15220
15221 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
15222 when not optimizing.
15223
15224 * toplev.c (rest_of_compilation): Cann mark_constant_function
15225 only when optimizing.
15226
15227 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
15228 are NULL.
15229
15230 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
15231 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
15232 (try_optimize_cfg): clear all AUX fields.
15233
15234 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
15235 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
15236 (ix86_address_cost): Be prepared for SUBREGed registers.
15237 (legitimate_address_p): Accept SUBREGed registers.
15238
15239 2002-03-29 Richard Henderson <rth@redhat.com>
15240
15241 PR target/5672
15242 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
15243
15244 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15245
15246 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
15247 for aggregate and TFmode types.
15248
15249 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
15250
15251 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
15252
15253 2002-03-29 Richard Henderson <rth@redhat.com>
15254
15255 PR target/5886
15256 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
15257 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
15258
15259 2002-03-29 Richard Henderson <rth@redhat.com>
15260
15261 PR target/6041
15262 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
15263 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
15264 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
15265 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
15266 conditional.
15267 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
15268
15269 2002-03-29 Dale Johannesen <dalej@apple.com>
15270
15271 * loop.c (combine_movables): Do allow combination of pseudos.
15272
15273 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
15274
15275 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
15276 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
15277 No functional change except ...
15278 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
15279 * doc/install.texi (*-*-freebsd*): Document port configuration.
15280
15281 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
15282
15283 * Makefile.in (convert.o, calls.o, expmed.o): Update.
15284 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
15285 Use new hooks.
15286 * builtin-types.def (BT_PTRMODE): Update.
15287 * c-common.c (type_for_size): Rename c_common_type_for_size.
15288 (type_for_mode): Similarly.
15289 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
15290 Use new hook.
15291 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
15292 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
15293 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
15294 Redefine.
15295 * c-typeck.c (common_type, comptypes, default_conversion):
15296 Use new hooks.
15297 * calls.c: Include langhooks.h.
15298 (emit_library_call_value_1): Use new hooks. Avoid redundant
15299 calls.
15300 * convert.c: Include langhooks.h
15301 (convert_to_pointer, convert_to_integer): Use new hooks.
15302 * except.c (init_eh): Similarly.
15303 * expmed.c: Include langhooks.h.
15304 (expand_mult_add): Use new hooks.
15305 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
15306 try_casesi): Similarly.
15307 * fold-const.c (optimize_bit_field_compare, make_range,
15308 decode_field_reference, fold_truthop, fold): Similarly.
15309 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
15310 put_var_into_stack): Similarly.
15311 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
15312 LANG_HOOKS_TYPE_FOR_SIZE): New.
15313 (LANG_HOOKS_TYPES_INITIALIZER): Update.
15314 * langhooks.h (lang_hooks_for_types): New hooks.
15315 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
15316 * tree.c (get_unwidened, get_narrower): Similarly.
15317 * tree.h (type_for_mode, type_for_size): Remove.
15318 * varasm.c (force_const_mem): Use new hooks.
15319 * utils2.c (nonbinary_modular_operation): Update.
15320 objc:
15321 * objc-act.c (handle_impent): Update.
15322 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
15323 Redefine.
15324
15325 2002-03-29 Steve Ellcey <sje@cup.hp.com>
15326
15327 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
15328 * config/ia64/ia64.c (basereg_operand): New.
15329 * config/ia64/ia64-protos.h (basereg_operand): Declare.
15330 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
15331
15332 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
15333
15334 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
15335 unwind information when frame_pointer_needed.
15336 (mmix_assemble_integer): Tweak wording in comment.
15337
15338 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
15339
15340 * Makefile.in (except.o): Update.
15341 * except.c: Include langhooks.h.
15342 (init_eh): Use langhook.
15343 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
15344 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
15345 (LANG_HOOKS_INITIALIZER): Update.
15346 * langhooks.h (lang_hooks_for_types): New.
15347 (struct lang_hooks): Add it.
15348 * tree.c (make_lang_type_fn, make_lang_type): Remove.
15349 * tree.h (make_lang_type_fn, make_lang_type): Remove.
15350 config:
15351 * alpha/alpha.c: Include langhooks.h.
15352 (alpha_build_va_list): Use langhook.
15353 * d30v/d30v.c: Include langhooks.h.
15354 (d30v_build_va_list): Use langhook.
15355 * i386/i386.c: Include langhooks.h.
15356 (ix86_build_va_list): Use langhook.
15357 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
15358 * s390/s390.c: Include langhooks.h.
15359 (s390_build_va_list): Use langhook.
15360 * stormy16/stormy16.c: Include langhooks.h.
15361 (stormy16_build_va_list): Use langhook.
15362
15363 2002-03-29 Jakub Jelinek <jakub@redhat.com>
15364
15365 PR c++/5964
15366 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
15367 attributes.
15368 (length): Compute variable length for branches/calls/jumps here.
15369 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
15370 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
15371 define branch_type attribute.
15372 (divsi3_sp32): Maximum length is 6 not 7.
15373 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
15374 call_address_untyped_struct_value_sp32,
15375 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
15376 * config/sparc/sparc.c (empty_delay_slot): New function.
15377 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
15378 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
15379
15380 2002-03-29 Jakub Jelinek <jakub@redhat.com>
15381
15382 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
15383 nonzero_bits if not needed.
15384 (nonzero_bits) [XOR]: Likewise.
15385 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
15386 reg_last_set_mode and mode are both MODE_INT, but not equal.
15387 (record_value_for_reg): Compute reg_last_set_nonzero_bits
15388 in nonzero_bits_mode for MODE_INT modes.
15389
15390 2002-03-28 Richard Henderson <rth@redhat.com>
15391
15392 PR target/5715
15393 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
15394 to GAS. Correct drift between alternatives.
15395
15396 2002-03-28 Richard Henderson <rth@redhat.com>
15397
15398 PR target/6087
15399 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
15400
15401 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
15402
15403 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
15404 emulation to the linker.
15405
15406 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
15407
15408 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
15409 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
15410
15411 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
15412
15413 * combine.c (simplify_and_const_int): Make sure to apply mask
15414 when force_to_mode returns a constant integer. PR3311.
15415
15416 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
15417
15418 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
15419
15420 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15421
15422 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
15423 and Objective-C Dialect Options.
15424
15425 2002-03-28 Richard Henderson <rth@redhat.com>
15426
15427 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
15428 comparison should be done vs !=0 not >0 return code. Tidy cases.
15429
15430 2002-03-28 Richard Henderson <rth@redhat.com>
15431
15432 * c-decl.c (finish_function): New arg can_defer_p. Pass it
15433 on to c_expand_body.
15434 * c-tree.h (finish_function): Update decl.
15435 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
15436
15437 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
15438
15439 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
15440
15441 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
15442
15443 * rtlanal.c: Include flags.h
15444 (may_trap_p): Do not mark FP operations if trapping
15445 if !flag_trapping_math
15446 * Makefile.in (rtlanal.o): Add dependency on flag.h
15447 * ifcvt.c (noce_operand_ok): Avoid the lameness.
15448
15449 2002-03-27 Zack Weinberg <zack@codesourcery.com>
15450
15451 * mips.md: Use dconst1, not 1.0, as first argument of
15452 REAL_VALUE_LDEXP. Don't use union real_extract.
15453
15454 2002-03-28 Alan Modra <amodra@bigpond.net.au>
15455
15456 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
15457 rather than $target. Heed program_prefix and
15458 program_transform_name. Search for gas in cross-compiler case too.
15459 "test -x" rather than "test -f".
15460 (gcc_cv_ld): Likewise.
15461 (gcc_cv_nm): Heed program_prefix and program_transform_name.
15462 (gcc_cv_objdump): Likewise.
15463 * configure: Regenerate.
15464
15465 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15466
15467 * Makefile.in (attribs.o): Update.
15468 * attribs.c: Include langhooks.h.
15469 (decl_attributes): Use langhook.
15470 * c-decl.c (insert_default_attributes): Rename.
15471 * c-tree.h (c_insert_default_attributes): New.
15472 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
15473 (LANG_HOOKS_INITIALIZER): Update.
15474 * langhooks.h (struct lang_hooks): New hook.
15475 * tree.h (insert_default_attributes): Remove.
15476 objc:
15477 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
15478
15479 2002-03-27 Andreas Schwab <schwab@suse.de>
15480
15481 * config/i386/i386.c (classify_argument): Also check for
15482 QUAL_UNION_TYPE.
15483
15484 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15485
15486 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
15487 any more.
15488
15489 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
15490
15491 * i960.md (ret): Set PC.
15492 (nonlocal_goto): Fix expander.
15493 * builtins.c (epxand_builin_longjmp): Check that we've emitted
15494 some jump or call.
15495
15496 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
15497
15498 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
15499 of libcall regions.
15500
15501 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15502
15503 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
15504 assigning to BLOCK_FOR_INSN directly.
15505
15506 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
15507
15508 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
15509
15510 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15511
15512 * c-common.c (c_expand_expr): Fix prototype.
15513 * c-common.h (c_expand_expr): Always declare, update.
15514 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
15515 * c-objc-common.c (c_objc_common_init): No global hook.
15516 * expr.c (expand_expr): Use langhook.
15517 * expr.h (enum expand_modifier): Conditionally declare.
15518 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
15519 (LANG_HOOKS_INITIALIZER): Update.
15520 * langhooks.c (lhd_expand_expr): New.
15521 * langhooks.h (struct lang_hooks): New hook.
15522 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
15523 (lang_independent_init): Don't default hook.
15524 objc:
15525 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
15526
15527 2002-03-27 Richard Henderson <rth@redhat.com>
15528
15529 PR target/6054
15530 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
15531 TARGET_CONST_GP. Simplify conditions.
15532
15533 2002-03-27 Richard Henderson <rth@redhat.com>
15534
15535 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
15536 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
15537 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
15538
15539 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
15540
15541 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
15542 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
15543 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
15544 Remove unnecessary masks.
15545 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
15546 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
15547 -mwindows, -mdll switches and their negations.
15548
15549 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15550
15551 * gcc-common.c (lang_mark_false_label_stack): Remove.
15552 * ggc.h (lang_mark_false_label_stack): Similarly.
15553
15554 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
15555
15556 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
15557
15558 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
15559 or __rtems_ is defined.
15560
15561 2002-03-26 Richard Henderson <rth@redhat.com>
15562
15563 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
15564 if a non-trivial load was emitted.
15565 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
15566 in high+extra+low case.
15567
15568 2002-03-26 Richard Henderson <rth@redhat.com>
15569
15570 * config.gcc (sparc*-solaris): Use float_format=sparc.
15571
15572 2002-03-26 Richard Henderson <rth@redhat.com>
15573
15574 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15575 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
15576 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
15577 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
15578 (WINT_TYPE_SIZE): Fix at 32.
15579
15580 2002-03-26 Richard Henderson <rth@redhat.com>
15581
15582 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
15583 until after eh landing pad generation.
15584 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
15585 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
15586
15587 2002-03-26 Richard Henderson <rth@redhat.com>
15588
15589 * expr.h (ADD_PARM_SIZE): One more convert for INC.
15590
15591 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
15592
15593 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
15594 and warning switches.
15595 (cc1_options): Likewise.
15596
15597 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
15598
15599 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
15600 Restore more of the signal context. Set no_reg_stack_frame.
15601 * config/ia64/unwind-ia64.c (unw_state_record):
15602 Add no_reg_stack_frame, comments.
15603 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
15604 (uw_update_context): Adjust bsp when unwinding from leaf,
15605 but not signal frame.
15606
15607 2002-03-26 David Edelsohn <edelsohn@gnu.org>
15608
15609 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
15610
15611 2002-03-26 Bob Wilson <bob.wilson@acm.org>
15612
15613 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
15614
15615 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
15616
15617 PR target/5621
15618 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
15619 "Add a pool_range attribute", which was lost during the ARM/Thumb
15620 merge.
15621
15622 2002-03-26 Bob Wilson <bob.wilson@acm.org>
15623
15624 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
15625 a register into the MAC16 accumulator.
15626
15627 2002-03-26 Andrew Cagney <ac131313@redhat.com>
15628
15629 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
15630 (Warning Options): Document -Wswitch-enum.
15631 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
15632 -Wswitch.
15633 (warn_switch_enum): Define variables.
15634 * flags.h (warn_switch_enum): Declare variables.
15635 * stmt.c (expand_end_case_type): When warn_switch_enum /
15636 -Wswitch-enum, perform switch checks.
15637 Fix PR c/5044.
15638
15639 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
15640
15641 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
15642 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
15643 (reload_muladdsi_compare0_scratch): Delete.
15644
15645 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
15646
15647 * doc/install.texi (*-*-freebsd*): Update.
15648
15649 2002-03-26 Richard Henderson <rth@redhat.com>
15650
15651 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
15652 (SUB_PARM_SIZE): Cast DEC to ssizetype.
15653
15654 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
15655 types from the normal argument frame.
15656
15657 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
15658 variable sized objects by reference.
15659 (sparc_va_arg): Receive them by reference too.
15660
15661 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
15662
15663 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
15664 code to not restoring global registers.
15665
15666 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
15667
15668 * Makefile.in (ggc-common.o): Update.
15669 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
15670 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
15671 * c-tree.h (c_mark_tree): New.
15672 * ggc-common.c: Include langhooks.h.
15673 (gcc_mark_trees): Use new langhook.
15674 * ggc-callbacks.c: Delete file.
15675 * ggc.h (lang_mark_tree): Remove.
15676 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
15677 (LANG_HOOKS_INITIALIZER): Update.
15678 * langhooks.h (struct lang_hooks): New hook.
15679 objc:
15680 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
15681
15682 2002-03-25 Zack Weinberg <zack@codesourcery.com>
15683
15684 * doc/cpp.texi: Exclude entire Top node from printed manual.
15685 Move option index after directive index. Insert page breaks
15686 before GFDL and concept index. Index environment variables
15687 with command line options.
15688 * doc/cppenv.texi: Use @vtable for environment variable list.
15689 Add paragraph explaining semantics of empty elements in path
15690 variables. Exclude a cross-reference to Fishkill from the
15691 manpage. Remove an unnecessary cross-reference of the entry
15692 right above the referer. Don't use @anchor in text that goes
15693 into manpage.
15694 * doc/cppopts.texi: Cross-reference the environment variables
15695 section, not the specific environment variable, for consistency.
15696
15697 2002-03-25 Richard Henderson <rth@redhat.com>
15698
15699 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
15700 anywhere in the block. Don't refer to insns that have been
15701 removed from the chain. Iterate backward through the new insns.
15702 Don't refer to edges that have been removed.
15703
15704 2002-03-26 Alan Modra <amodra@bigpond.net.au>
15705
15706 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
15707 test for overflow of constant.
15708
15709 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
15710
15711 PR target/2623
15712 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
15713 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
15714 these patterns on arm_archv4.
15715
15716 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
15717
15718 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
15719 int".
15720
15721 2002-03-25 Zack Weinberg <zack@codesourcery.com>
15722
15723 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
15724 float_handled, float_handler, float_signal, set_float_handler,
15725 and do_float_handler. Set handler for SIGFPE to crash_signal.
15726 * toplev.h: Don't prototype do_float_handler.
15727
15728 * c-lex.c: Fold parse_float into lex_number. Make warning
15729 about portability of hex float constants more informative, and
15730 don't issue it on top of a syntax error.
15731 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
15732 their callers.
15733 * real.h: Define REAL_VALUE_ABS here...
15734 * simplify-rtx.c: ... not here. Fold check_fold_consts,
15735 simplify_unary_real, simplify_binary_real, and
15736 simplify_binary_is2orm1 into their callers.
15737 * tree.c: Fold build_real_from_int_cst_1 into caller.
15738
15739 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
15740
15741 * tsystem.h: Include float.h here...
15742 * libgcc2.c: ... not here.
15743
15744 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
15745
15746 Fixes for: PR bootstrap/3591, target/5676
15747 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
15748 defined. Do not disable exceptions or rtti.
15749 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
15750 mcore.h. Disable exceptions and rtti, since they are not
15751 supported by EPOC.
15752
15753 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
15754
15755 * c-decl.c (maybe_build_cleanup): Remove.
15756 * expr.c (expand_expr): Use langhook.
15757 * langhooks-def.h (lhd_return_null_tree,
15758 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
15759 (LANGHOOKS_INITIALIZER): Update.
15760 * langhooks.c (lhd_return_null_tree): New.
15761 * langhooks.h (struct lang_hooks): New hook.
15762 * tree-inline.c (initialize_inlined_parameters): Use langhook.
15763 * tree.h (maybe_build_cleanup): Remove.
15764
15765 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15766
15767 * regrename.c (build_def_use): Move recog_memoized
15768 before extract_insn.
15769
15770 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15771
15772 PR target/6043
15773 * expr.c (emit_group_store): Handle storing into CONCAT.
15774
15775 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15776
15777 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
15778 corresponding MATCH_DUP.
15779
15780 2002-03-24 Richard Henderson <rth@redhat.com>
15781
15782 * unroll.c (unroll_loop): Zero label_map.
15783
15784 * gcse.c: Include except.h.
15785 * Makefile.in (gcse.o): Update.
15786
15787 2002-03-24 Richard Henderson <rth@redhat.com>
15788
15789 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
15790 Do resolve_unique_section before shared data clause.
15791
15792 2002-03-24 Richard Henderson <rth@redhat.com>
15793
15794 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
15795
15796 2002-03-24 Richard Henderson <rth@redhat.com>
15797
15798 * recog.c (peephole2_optimize): Split blocks when EH insns are
15799 generated in the middle of a block. Do global life update if
15800 zapped EH edges.
15801
15802 2002-03-24 Richard Henderson <rth@redhat.com>
15803
15804 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
15805
15806 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15807
15808 preprocessor/3951
15809 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
15810 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
15811 (init_dependency_output): Don't make no_output decision here.
15812
15813 2002-03-24 Andrew Cagney <ac131313@redhat.com>
15814
15815 * stmt.c (check_for_full_enumeration_handling): Remove tests of
15816 warn_switch. Update description.
15817 (expand_end_case_type): Call check_for_full_enumeration_handling
15818 when warn_switch.
15819
15820 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15821
15822 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
15823 (m68hc11_split_move): Call it to see if the source and destination
15824 operands use the same direction auto inc/dec mode, otherwise make the
15825 source an offsetable memory operand and generate an add.
15826
15827 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15828
15829 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
15830 register for operand 2.
15831 ("*subsi3_zero_extendqi"): Likewise.
15832 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
15833 bits so that it is compatible with a pop.
15834 ("*andhi3_gen"): Likewise.
15835 ("xorhi3"): Likewise.
15836
15837 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15838
15839 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
15840 -pedantic here...
15841 (cpp_post_options): ... not here.
15842
15843 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15844 Aldy Hernandez <aldyh@redhat.com>
15845
15846 Removal of separate preprocessor cpp0.
15847
15848 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
15849 cpp0, install-common): Update.
15850 * c-common.c (flag_preprocess_only): New.
15851 (c_common_init): Preprocess for -E.
15852 * c-common.h (flag_preprocess_only): New.
15853 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
15854 * c-objc-common.c (c_init_decl_processing): Exit quickly
15855 for NULL return from c_common_init.
15856 * cpplib.h (cpp_preprocess_file): New.
15857 * cppmain.c (main, general_init, pfile, progname): Remove.
15858 (do_preprocessing): Rename cpp_preprocess_file, don't call
15859 cpp_finish. Don't close stdout here.
15860 (setup_callbacks): Update prototype.
15861 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
15862 Update.
15863 * tradcpp.c (main): Ignore -quiet.
15864 objc:
15865 * lang-specs.h (default_compilers): Preprocess with cc1obj.
15866
15867 2002-03-24 Richard Henderson <rth@redhat.com>
15868
15869 PR optimization/5742
15870 * machmode.def: Add inner mode field to complex modes.
15871 * config/mips/mips.c (mips_function_value): Always define. Add
15872 new argument to handle libcalls.
15873 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
15874 (FUNCTION_VALUE): Likewise.
15875 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
15876 * config/mips/mips-protos.h: Update.
15877
15878 2002-03-23 Richard Henderson <rth@redhat.com>
15879
15880 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
15881 * config/sparc/sparc-protos.h: Update.
15882 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
15883
15884 2002-03-23 Richard Henderson <rth@redhat.com>
15885
15886 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
15887 _start or _init begins the text segment.
15888
15889 2002-03-23 David Edelsohn <edelsohn@gnu.org>
15890
15891 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
15892 not HOST_WIDEST_INT.
15893 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
15894
15895 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
15896
15897 PR java/5489
15898 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
15899 operand argument to output_return_instruction.
15900 * arm.c (arm_print_operand, case 'd'): If the operand is
15901 const_true_rtx then just return.
15902 (arm_print_operand, case 'D'): If the operand is const_true_rtx
15903 then abort.
15904
15905 2002-03-23 Andrew Cagney <ac131313@redhat.com>
15906
15907 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
15908 (Warning Options): Document -Wswitch-default.
15909 * toplev.c (W_options): Add -Wswitch-default. Update comment on
15910 -Wswitch.
15911 (warn_switch_default): Define variable.
15912 (warn_switch): Update comment.
15913 * flags.h (warn_switch_default): Declare variable.
15914 (warn_switch): Update comment.
15915 * stmt.c (expand_end_case): Check for and, when
15916 warn_switch_no_default, warn of a missing default case.
15917
15918 2002-03-23 Alan Modra <amodra@bigpond.net.au>
15919
15920 * real.h (N): Special case 128 bit doubles.
15921
15922 * combine.c (simplify_comparison): When widening modes, ignore
15923 sign extension on CONST_INTs.
15924
15925 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15926
15927 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
15928 passed to adjust_address. Fix comment formatting.
15929
15930
15931 2002-03-22 Zack Weinberg <zack@codesourcery.com>
15932
15933 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
15934 Always make REAL_VALUE_TYPE a struct containing an array of
15935 HOST_WIDE_INT, not a double. Tidy up the code deciding how
15936 big it is. Don't declare or use union real_extract.
15937
15938 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
15939 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
15940 (print_operand), config/arm/arm.c (output_move_double),
15941 config/arm/arm.md (consttable_4, consttable_8),
15942 config/romp/romp.c (output_fpops), config/s390/s390.h
15943 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
15944 (xtensa_output_literal): Don't use union real_extract.
15945
15946 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
15947 (sfmode_constant_to_ulong), config/ns32k/merlin.h
15948 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
15949 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
15950 (PRINT_OPERAND): Don't use local version of union
15951 real_extract.
15952
15953 * config/convex/convex.c (check_float_value), config/vax/vax.c
15954 (vax_float_literal), config/m88k/m88k.md (divdf3),
15955 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
15956 config/pdp11/pdp11.c (output_move_quad): Don't do host
15957 arithmetic on target floating point quantities.
15958
15959 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
15960 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
15961
15962 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
15963 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
15964
15965 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
15966 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
15967 INFINITY.
15968 * print-rtl.c (print_rtx): Disable code which needs
15969 floating-point emulator.
15970 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
15971 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
15972 depending on HOST_FLOAT_FORMAT to be defined properly.
15973
15974 * config/1750a/1750a.c (get_double, float_label): Delete.
15975 (print_operand): Delete huge commented-out chunk. Use
15976 REAL_VALUE_TO_DECIMAL.
15977 * config/1750a/1750a-protos.h: Delete prototypes of deleted
15978 functions.
15979 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
15980 IEEE_FLOAT_FORMAT.
15981 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
15982 Use REAL_VALUE_TO_DECIMAL as ELF version does.
15983 * config/m88k/m88k.c (real_power_of_2_operand,
15984 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
15985 real_extract out of the union; run the input through
15986 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
15987 from that into the union.
15988 * config/pdp11/pdp11.c (output_move_double): Rearrange
15989 parentheses to make automatic indenter happy.
15990
15991 * doc/tm.texi (Cross-compilation): Rename node to "Floating
15992 Point" and rewrite to describe current situation. Also adjust
15993 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
15994 match code.
15995 * doc/rtl.texi: Adjust cross reference.
15996
15997 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15998
15999 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
16000 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
16001 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
16002 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
16003 prevent use of sp as a reload register.
16004 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
16005 non_acc_reg_operand.
16006 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
16007 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
16008 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
16009 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
16010
16011 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
16012
16013 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
16014 * cpplex.c (unterminated): Delete.
16015 (parse_string): No string literal may extend over multiple
16016 lines. Suppress the error when preprocessing assembly.
16017 * cppmain.c (scan_translation_unit): Strings are single-line.
16018
16019 * doc/cpp.texi: Update to match.
16020
16021 2002-03-22 Jakub Jelinek <jakub@redhat.com>
16022
16023 PR optimization/5854
16024 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
16025 Shut up warnings.
16026 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
16027 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
16028 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
16029 const0 if scratch register was not allocated.
16030 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
16031 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
16032 with GEN_INT (...).
16033 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
16034 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
16035 with GEN_INT (...) everywhere. Remove constraints in define_split
16036 patterns.
16037 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
16038 require scratch register for setting 0 into regs/non-pushable memory.
16039
16040 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
16041
16042 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
16043 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
16044
16045 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
16046
16047 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
16048 * cppinit.c (cpp_create_reader): On by default.
16049 (cpp_handle_option): Handle -W[no-]endif-labels.
16050 (cpp_post_options): Also enable if -pedantic.
16051 * cpplib.c (do_else): Use it.
16052 (do_endif): Likewise.
16053 * doc/cppopts.texi: Document new option.
16054 * doc/invoke.texi: Document new option.
16055
16056 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
16057
16058 * config/i386/i386.c, config/i386/i386.md: Change all occurences
16059 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
16060
16061 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
16062
16063 * flow.c (calculate_global_regs_live): Clear aux fields of
16064 ENTRY and EXIT.
16065
16066 2002-03-22 Jakub Jelinek <jakub@redhat.com>
16067
16068 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
16069 REG or MEM subregs, pass rtx * instead of rtx to it.
16070 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
16071 rtx * instead of rtx to alter_subreg.
16072 * config/m32r/m32r.c (gen_split_move_double): Likewise.
16073 * config/pj/pj.c (pj_output_rval): Likewise.
16074
16075 2002-03-22 Richard Henderson <rth@redhat.com>
16076
16077 PR target/3177
16078 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
16079 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
16080 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
16081 (ia64_expand_prologue): Look at int_regs, not words, for number
16082 of incomming int regs.
16083
16084 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
16085
16086 * expr.c (expand_expr): A RESULT_DECL is part of a call.
16087
16088 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
16089
16090 * toplev.c (flag_loop_optimize, flag_crossjumping):
16091 New static variables.
16092 (rest_of_compilation): Conditionalize crossjumping and
16093 loop optimizer.
16094 (parse_options_and_default_flags): Default loop_optimize and
16095 crossjumping.
16096 (lang_independent_options): Add -fcrossjumping and -floop-optimize
16097 * invoke.texi (crossjumping, loop-optimize): Document.
16098
16099 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
16100
16101 * real.c (eiisneg): Move outside #ifdef NANS.
16102
16103 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
16104
16105 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
16106 frequencies match; avoid match on different loop depths.
16107 (try_crossjump_to_bb): Kill tests that no longer brings time
16108 savings.
16109 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
16110 updating code.
16111 (split_edge): Likewise.
16112
16113 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
16114 variable.
16115
16116 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
16117 * cfgrtl.c: Include insn-config.h
16118 (split_block) Dirtify block in presence of conditional execution
16119
16120 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
16121
16122 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
16123 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
16124 (function_arg): Constify CUMULATIVE_ARGS.
16125 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
16126 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
16127 (UNITS_PER_DOUBLE): New macro.
16128 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
16129 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
16130 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
16131 fp_regs and stack_words.
16132 (EABI_FLOAT_VARARGS_P): New macro.
16133 * config/mips/mips.c (struct mips_arg_info): New.
16134 (mips_arg_info): New function.
16135 (function_arg_advance): Use it. Add adjustment instructions here
16136 rather than in function_arg.
16137 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
16138 for VOIDmode at the beginning of the function.
16139 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
16140 (function_arg_pass_by_reference): Likewise.
16141 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
16142 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
16143 (mips_va_start): Likewise. Use the new stack_words field of
16144 CUMULATIVE_ARGS to set up overflow area. Reformat.
16145 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
16146 doubles and other types, aligning the overflow pointer for non-doubles
16147 too. Remove some code duplication. Replace hard-coded constants.
16148
16149 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
16150
16151 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
16152 (CLASS_UNITS): Undefine.
16153 (CLASS_MAX_NREGS): Use FP_INC.
16154 * config/mips/mips.c (compute_frame_size): Likewise.
16155 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
16156
16157 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
16158
16159 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
16160 prototype, and handle lexing numbers and identifiers.
16161 (parse_identifier): Update to new form of parse_slow.
16162 (parse_number): Fast path only, use parse_slow otherwise.
16163 (_cpp_lex_direct): Update calls to parse_number.
16164
16165 2002-03-21 DJ Delorie <dj@redhat.com>
16166
16167 * bb-reorder.c (make_reorder_chain_1): Protect against
16168 when redundant edges are omitted.
16169 * predict.c (dump_prediction): Likewise.
16170
16171 2002-03-21 Richard Henderson <rth@redhat.com>
16172
16173 PR target/5996
16174 * fixinc/inclhack.def (solaris_stdio_tag): New.
16175 * fixinc/fixincl.x: Regenerate.
16176
16177 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
16178
16179 PR c/5597
16180 * c-typeck.c (process_init_element): Flag non-static
16181 initialization of a flexible array member as illegal.
16182
16183 2002-03-22 Alan Modra <amodra@bigpond.net.au>
16184
16185 * config/rs6000/t-linux64: New.
16186 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
16187 t-ppccomm. Use t-rs6000 and t-linux64.
16188 (powerpc64-*-gnu* <tmake_file>): Likewise.
16189 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
16190 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
16191 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
16192
16193 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
16194
16195 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
16196 flag_really_no_inline instead of optimize == 0.
16197
16198 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
16199
16200 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
16201
16202 * flags.h (flag_really_no_inline): New.
16203
16204 * c-common.c (c_common_post_options): Initialize
16205 flag_really_no_inline.
16206
16207 * toplev.c (flag_really_no_inline): New.
16208
16209 2002-03-21 Jakub Jelinek <jakub@redhat.com>
16210
16211 * config/avr/avr.md (length): Fix length computation for
16212 conditional branches.
16213
16214 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
16215
16216 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
16217 sdbout.o, profile.o): Update.
16218 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
16219 langhook.
16220 * c-common.h (gettags): Move here from tree.h.
16221 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
16222 insert_block, getdecls, kept_level_p, global_bindings_p): New.
16223 * dbxout.c (dbxout_init): Use getdecls langhook.
16224 * expr.c (expand_expr): Use insert_block langhook.
16225 * fold-const.c: Include langhooks.h.
16226 (fold_range_test, fold_binary_op_with_conditional_arg,
16227 fold): Use global_bindings_p langhook.
16228 * integrate.c (expand_inline_function): Use insert_block langhook.
16229 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
16230 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
16231 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
16232 LANG_HOOKS_GETDECLS): New.
16233 (LANG_HOOKS_INITIALIZER): Update.
16234 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
16235 langhook.
16236 * langhooks.h (struct lang_hooks_for_decls): New.
16237 (struct lang_hooks): Update.
16238 * profile.c: Include langhooks.h.
16239 (output_func_start_profiler): Use new langhooks.
16240 * sdbout.c: Include langhooks.h.
16241 (sdbout_init, sdbout_finish): Use getdecls langhook.
16242 * stmt.c: Include langhooks.h.
16243 (expand_fixup, fixup_gotos): Use new langhooks.
16244 * stor-layout.c: Include langhooks.h.
16245 (variable_size): Use global_bindings_p langhook.
16246 * toplev.c (compile_file): Use getdecls langhook.
16247 * tree-inline.c (remap_block): Use insert_block langhook.
16248 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
16249 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
16250
16251 2002-03-21 Richard Henderson <rth@redhat.com>
16252
16253 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
16254 constants in .data when -fpic.
16255
16256 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16257
16258 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
16259 where appropriate.
16260
16261 2002-03-21 Tom Tromey <tromey@redhat.com>
16262
16263 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
16264
16265 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16266
16267 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
16268
16269 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
16270
16271 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
16272 Richard Henderson <rth@redhat.com>
16273
16274 PR c/5354
16275 * c-common.c (c_expand_expr): Preserve result of a statement
16276 expression if needed.
16277
16278 2002-03-21 Jakub Jelinek <jakub@redhat.com>
16279
16280 PR bootstrap/4195
16281 * genrecog.c (maybe_both_true_mode): Remove.
16282 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
16283 * machmode.def (Pmode): Likewise.
16284
16285 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
16286
16287 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
16288 (nonlocal_mentioned_p_1): New function.
16289 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
16290 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
16291 (mark_constant_function): Recognize pure functions.
16292 * rtl.h (global_reg_mentioned_p): New prototype.
16293 * rtlanal.c (global_reg_mentioned_p,
16294 global_reg_mentioned_p_1): New function.
16295
16296 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16297
16298 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
16299 UNIX assert.h.
16300 * fixinc/fixincl.x: Regenerate.
16301
16302 2002-03-20 Jason Merrill <jason@redhat.com>
16303
16304 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
16305
16306 2002-03-20 Michael Meissner <meissner@redhat.com>
16307
16308 * doc/invoke.texi (Optimize Options): Document that -O2 sets
16309 -fstrict-aliasing.
16310
16311 2002-03-20 Bob Wilson <bob.wilson@acm.org>
16312
16313 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
16314 ".literal_position" directive before the constant pool.
16315
16316 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16317
16318 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
16319 Add Craig Rodrigues.
16320 Add Brad Lucier to testers.
16321
16322 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16323
16324 PR target/4792
16325 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
16326 to if_then_else.
16327 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
16328 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
16329 instead of insn_extract.
16330
16331 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16332
16333 PR bootstrap/4192
16334 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
16335
16336 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
16337 stmt if some case has been output.
16338
16339 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16340
16341 PR c/5972
16342 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
16343 movsfcc_1, movdfcc_1): Add %O2.
16344 * config/i386/i386.c (print_operand): Handle %ON.
16345 Print . before float condition codes in Sun as cmov syntax.
16346 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
16347 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
16348 no longer true.
16349
16350 2002-03-20 Philip Blundell <pb@nexus.co.uk>
16351
16352 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
16353 return instruction if PC was popped.
16354
16355 2002-03-20 Bob Wilson <bob.wilson@acm.org>
16356
16357 * config/xtensa/xtensa.md: Remove unused type attributes.
16358 (adddi_carry, subddi_carry): Change type attribute to "multi".
16359
16360 2002-03-19 Dale Johannesen <dalej@apple.com>
16361
16362 PR optimization/5999, middle-end/5731
16363 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
16364 multiplications by reciprocals.
16365
16366 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
16367
16368 * Makefile.in: Update.
16369 * c-common.c: Include langhooks.h.
16370 (inline_forbidden_p): Use new hook.
16371 * diagnostic.c: Include langhooks.h.
16372 (format_with_decl, announce_function,
16373 default_print_error_function): Use new hook.
16374 * dwarf2out.c (dwarf2_name): Use new hook.
16375 * function.c: Include langhooks.h.
16376 (init_function_start): Use new hook.
16377 * langhooks-def.h (lhd_decl_printable_name): New.
16378 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
16379 (LANGHOOKS_INITIALIZER): Update.
16380 * langhooks.c (lhd_decl_printable_name): New.
16381 * langhooks.h (struct lang_hooks): New hook.
16382 * toplev.c (decl_name, decl_printable_name): Remove.
16383 (open_dump_file): Use new hook.
16384 (process_options): Remove old hook.
16385 * tree.h (decl_printable_name): Remove.
16386 objc:
16387 * objc-act.c (objc_init): Remove old hook.
16388 (objc_printable_name): Export.
16389 * objc-act.h (objc_printable_name): New.
16390 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
16391
16392 2002-03-19 Jim Blandy <jimb@redhat.com>
16393
16394 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
16395 the start_source_file debug hook, not the current line number.
16396
16397 2002-03-19 Richard Henderson <rth@redhat.com>
16398
16399 * flow.c (EH_USES): Provide default.
16400 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
16401 * doc/tm.texi (EH_USES): New.
16402
16403 * config/ia64/ia64.c (ia64_eh_uses): New.
16404 * config/ia64/ia64-protos.h: Update.
16405 * config/ia64/ia64.h (EH_USES): New.
16406
16407 2002-03-19 Richard Henderson <rth@redhat.com>
16408
16409 * varasm.c (output_constant_def): Fix stupid typo.
16410
16411 2002-03-19 Richard Henderson <rth@redhat.com>
16412
16413 PR 5879
16414 * except.c (current_function_has_exception_handlers): New.
16415 * except.h: Declare it.
16416 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
16417 Combine tests that disable all sibcalls for the function.
16418
16419 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
16420
16421 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
16422 for INTEGER_CST.
16423
16424 2002-03-19 Richard Henderson <rth@redhat.com>
16425
16426 PR 5977, 5991
16427 * config/ia64/ia64.c: Revert 2002-03-01 patch.
16428 * config/ia64/ia64.h (INIT_EXPANDERS): New.
16429
16430 2002-03-19 Jim Blandy <jimb@redhat.com>
16431
16432 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
16433 name, even if the replacement list contains no tokens, as required
16434 by Dwarf.
16435
16436 2002-03-19 Jason Merrill <jason@redhat.com>
16437
16438 * varasm.c (globalize_decl): Get the name from the RTL, not
16439 DECL_ASSEMBLER_NAME.
16440
16441 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
16442
16443 2002-03-19 Bob Wilson <bob.wilson@acm.org>
16444
16445 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
16446 subdi_carry): Define.
16447
16448 2002-03-19 David Edelsohn <edelsohn@gnu.org>
16449
16450 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
16451 about -fpic/-fPIC if extra_warnings set.
16452
16453 2002-03-19 David Edelsohn <edelsohn@gnu.org>
16454
16455 * expr.c (expand_expr): Sign-extend CONST_INT generated from
16456 TREE_STRING_POINTER.
16457 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
16458
16459 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16460
16461 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
16462 in favor of SP if FRAME_POINTER_REQUIRED is false.
16463
16464 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
16465
16466 * emit-rtl.c (gen_int_mode): New function.
16467 * rtl.h: Prototype for it.
16468 * combine.c (make_extraction, simplify_comparison), expmed.c
16469 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
16470 (convert_modes, store_field), optabs.c (expand_fix),
16471 simplify-rtx.c (neg_const_int, simplify_unary_real),
16472
16473 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
16474 Use it instead of GEN_INT (trunc_int_for_mode (...)).
16475
16476 2002-03-19 Jakub Jelinek <jakub@redhat.com>
16477
16478 PR c/5656
16479 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
16480 convert_parm_for_inlining.
16481 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
16482 Define.
16483 * langhooks-def.h: Likewise.
16484 * objc/objc-lang.c: Likewise.
16485 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
16486 function.
16487 * tree-inline.c (initialize_inlined_parameters):
16488 Call convert_parm_for_inlining lang hook if needed.
16489 * c-typeck.c (c_convert_parm_for_inlining): New function.
16490 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
16491
16492 2002-03-18 Mark Mitchell <mark@codesourcery.com>
16493
16494 * calls.c (precompute_arguments): Do not assume that temporaries
16495 can be destroyed after expanding the argument.
16496 (expand_call): Likewise.
16497
16498 2002-03-15 Eric Christopher <echristo@redhat.com>
16499
16500 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
16501 Fix register preference on last change.
16502 * config/mips/mips.c (mips_return_in_memory): New function.
16503 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
16504 * config/mips/mips-protos.h: Declare.
16505 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
16506 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
16507
16508 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
16509
16510 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
16511 a register too.
16512 (anddi3, iorsi3): Likewise.
16513
16514 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
16515 use %gprel for symbols that are going to be placed in linkonce
16516 sections.
16517
16518 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
16519 RETURN_ADDRESS_POINTER_REGNUM to $ra.
16520 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
16521 not needed. Disregard leaf_function_p().
16522 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
16523 mips16 frame pointer.
16524 * config/mips/mips.md (store ra): Only to small SP offsets.
16525 2001-08-22 Graham Stott <grahams@redhat.com>
16526 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
16527 return a REG rtx for the return address register.
16528
16529 2002-03-18 Bob Wilson <bob.wilson@acm.org>
16530
16531 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
16532 constant-pool addresses as "mode-dependent".
16533 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
16534
16535 2002-03-18 Jakub Jelinek <jakub@redhat.com>
16536
16537 PR target/5740
16538 * expr.c (emit_group_load): Use extract_bit_field if
16539 needed for CONCAT arguments.
16540
16541 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
16542
16543 PR target/4863
16544 * arm.md (tablejump): Make this a define_expand. For PIC add the
16545 offset to the base of the table.
16546 (thumb_tablejump): Matcher for Thumb tablejump insn.
16547 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
16548 as the difference of two labels.
16549 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16550 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
16551 tables in the code.
16552 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
16553 * arm.c (get_jump_table_size): If the table is not in the text
16554 section, return zero.
16555
16556 2002-03-18 Bernd Schmidt <bernds@redhat.com>
16557
16558 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
16559 of gen_rtx_SUBREG.
16560 (arm_reload_out_hi): Use gen_lowpart instead of
16561 gen_rtx_SUBREG to access QImode components.
16562 * config/arm/arm.md: Disable zero_extend split for QImode
16563 subregs in BIG_ENDIAN mode.
16564 (storehi_bigend): Match use of least significant byte.
16565 (storeinthi): Remove extraneous SUBREG.
16566 Add missing construction of operands[2].
16567 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
16568 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
16569 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
16570
16571 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
16572
16573 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
16574 any_operand.
16575
16576 2002-03-17 Richard Henderson <rth@redhat.com>
16577
16578 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
16579 explicitly.
16580
16581 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
16582
16583 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
16584 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
16585
16586 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16587
16588 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
16589
16590 * predict.c (estimate_bb_frequencies): Delete unused variables.
16591
16592 2002-03-17 Richard Henderson <rth@redhat.com>
16593
16594 * config/ia64/ia64.c (ia64_attribute_table): Move before
16595 targetm definition. Make static.
16596
16597 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
16598
16599 * c-common.h (yyparse, c_common_parse_file): New.
16600 * c-lang.c: Include c-common.h.
16601 (LANG_HOOKS_PARSE_FILE): Redefine.
16602 * c-lex.c: Include c-common.h.
16603 (yyparse): Rename c_common_parse_file. Call yyparse.
16604 * c-parse.in (yyparse): Remove macro.
16605 * c-tree.h (yyparse_1): Remove.
16606 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
16607 (LANG_HOOKS_INITIALIZER): Update.
16608 * langhooks.h (struct lang_hoooks): New hook parse_file.
16609 * toplev.c (compile_file): Use parse_file hook.
16610 * tree.h (yyparse): Remove.
16611 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
16612
16613 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
16614
16615 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
16616 float_truncate, not fix.
16617 ("*truncdfsf2_real"): Ditto.
16618 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
16619
16620 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
16621
16622 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
16623
16624 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
16625 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
16626 where appropriate. Make the second reference to
16627 leaf_function_p a function call, as intended. Reindented.
16628
16629 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
16630 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
16631
16632 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
16633 add register to non-constant into sp.
16634
16635 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
16636 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
16637 (mips16_gp_pseudo_rtx): Lose.
16638 (INIT_EXPANDERS): Deleted.
16639 * config/mips/mips.c (mips_init_machine_status): New.
16640 (mips_free_machine_status): New.
16641 (mips_mark_machine_status): New.
16642 (override_options): Set them.
16643 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
16644 (struct machine_function): ... new. Replaced all references.
16645 (mips_add_gc_roots): Don't mark them.
16646 (embedded_pic_fnaddr_reg): New, extracted from...
16647 (embedded_pic_offset): ... here.
16648 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
16649 (movsi): Likewise.
16650
16651 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
16652
16653 * cppinit.c: Revert -MD removal.
16654
16655 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16656
16657 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
16658 soft registers by default for 68HC12.
16659 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
16660 when compiling with -fomit-frame-pointer.
16661 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
16662 (expand_epilogue): Likewise.
16663 (m68hc11_gen_rotate): Use exg when rotating by 8.
16664
16665 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16666
16667 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
16668 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
16669 (splits): Remove unused add splits.
16670 ("*addhi3_68hc12"): Tune constraints.
16671 ("addhi_sp"): Try to use X instead of Y in all cases and if the
16672 constant fits in 8-bits and D is dead use abx/aby instructions.
16673 ("*addhi3"): Remove extern declaration of ix_reg.
16674 ("*subsi3"): Optimize and provide new split.
16675 ("subhi3"): Cleanup.
16676 ("*subhi3_sp"): Avoid saving X if we know it is dead.
16677 (arith splits): For 68hc12 save the address register on the stack
16678 and do the arithmetic operation with a pop.
16679
16680 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16681
16682 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
16683 allocating QImode in address registers.
16684 ("*movqi_m68hc11"): Likewise.
16685
16686 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
16687
16688 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
16689
16690 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
16691
16692 * cppinit.c (print_help): Display -MD and -MMD.
16693 Don't display usage string. Update assertion syntax and
16694 typo.
16695 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
16696 (cpp_handle_option): Update.
16697
16698 2002-03-15 Chris Demetriou <cgd@broadcom.com>
16699
16700 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
16701 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
16702 and define it so that regardless of target CPU size,
16703 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
16704 of "int" rather than "long."
16705
16706 2002-03-15 Richard Henderson <rth@redhat.com>
16707
16708 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
16709 size as a tree.
16710
16711 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16712
16713 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
16714 ("tstqi" split): Avoid using memory for tstqi on address register.
16715 (splits): Remove constraints.
16716 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
16717 ("cmpdf", "cmpsf"): Remove since not used.
16718 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
16719 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
16720
16721 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16722
16723 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
16724 ("neghi2"): Tighten constraints.
16725 ("one_cmplsi2"): Optimize and simplify split.
16726 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
16727
16728 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16729
16730 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
16731 and split of AND operation to clear the upper bits.
16732 ("*logicalsi3_zextqi"): Likewise.
16733 ("*logicallhi3_zexthi_ashift8"): Likewise.
16734 ("*logicalsi3_silshr16"): Likewise.
16735 ("logicalsi3_silshl16"): Likewise.
16736 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
16737
16738 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16739
16740 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
16741 (m68hc11_indirect_p): New function.
16742 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
16743 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
16744 TARGET_M6812.
16745 (asm_print_register): Likewise.
16746 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
16747 (m68hc11_indirect_p): Declare.
16748 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
16749 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
16750 (TARGET_SWITCHES): New option -mrelax.
16751 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
16752 destination.
16753 ("iorsi3", "xorsi3"): Likewise.
16754 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
16755 ("*andhi3_mem"): New to handle destination in memory with bclr
16756 and a scratch register.
16757 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
16758 ("*andhi3_const"): New when operand2 is constant.
16759 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
16760 ("*andhi3_gen"): Cleanup of the old "andhi3".
16761 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
16762 ("xorqi3"): Update constraints.
16763
16764 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16765
16766 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
16767 for reg_equiv_memory_loc when the operand is a register that does
16768 not get a hard register (stack location).
16769 (tst_operand): After reload, accept all memory operand.
16770 (symbolic_memory_operand): Fix detection of symbolic references.
16771 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
16772 accept symbols and any constant.
16773
16774 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16775
16776 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
16777 note on the insn that sets the soft frame register.
16778 (must_parenthesize): ix and iy are also reserved names.
16779 (print_operand_address): One more place where parenthesis are required
16780 to avoid confusion with register names.
16781 (m68hc11_gen_movhi): Allow push of stack pointer.
16782 (m68hc11_check_z_replacement): Fix handling of parallel with a
16783 clobber.
16784 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
16785 the replacement register is.
16786 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
16787 and D8_REGS classes.
16788 (MODES_TIEABLE_P): All modes are tieable except QImode.
16789
16790 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16791
16792 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
16793 (___subdi3): Likewise.
16794 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
16795 (__map_data_section): Optimize 68hc11 case.
16796
16797 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16798
16799 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
16800 than a shift to avoid adding a register with itself.
16801 (m68hc11_memory_move_cost): Take into account NO_REGS.
16802 (m68hc11_register_move_cost): Update and use memory move cost
16803 for soft registers.
16804 (m68hc11_address_cost): Make cost of valid offset not 0 so that
16805 it gives more opportunities to cse to optimize.
16806 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
16807 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
16808
16809 2002-03-15 Mark Mitchell <mark@codesourcery.com>
16810
16811 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
16812 * c-common.def (CLEANUP_STMT): New tree node.
16813 * c-common.h (CLEANUP_DECL): New macro.
16814 (CLEANUP_EXPR): Likewise.
16815 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
16816 * expr.c (expand_expr): Tidy.
16817 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
16818 * tree-inline.c (initialize_inlined_parameters): Clean up
16819 new local variables.
16820
16821 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16822
16823 PR bootstrap/4128
16824 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
16825 before movrXX only, use reg_overlap_mentioned_p.
16826 Only special case NE if just one insn can be generated.
16827
16828 2002-03-15 Jason Merrill <jason@redhat.com>
16829
16830 * varasm.c (assemble_variable): Call resolve_unique_section before
16831 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
16832 of error_mark_node.
16833
16834 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
16835
16836 PR target/5170
16837 * arm.md (split pattern for thumb shiftable immediates): Add comment
16838 explaining non-obvious test.
16839
16840 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
16841
16842 PR target/5712
16843 * arm.md (movaddr, movaddr_insn): Delete.
16844
16845 2002-03-15 Jason Merrill <jason@redhat.com>
16846
16847 * toplev.c (wrapup_global_declarations): Clarify variable handling.
16848 -fkeep-static-consts doesn't apply to comdats.
16849
16850 2002-03-14 Richard Henderson <rth@redhat.com>
16851
16852 * c-decl.c: Include c-pragma.h.
16853 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
16854 (finish_function): Tidy.
16855 * c-pragma.c: Include c-common.h.
16856 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
16857 (handle_pragma_weak): Use them.
16858 (init_pragma): Register pending_weaks.
16859 * c-pragma.h (maybe_apply_pragma_weak): Declare.
16860 * print-tree.c (print_node): Print DECL_WEAK.
16861 * varasm.c (mark_weak_decls): Remove.
16862 (remove_from_pending_weak_list): Remove.
16863 (add_weak): Remove.
16864 (asm_emit_uninitialised): Call globalize_decl for weak commons.
16865 (weak_decls): Make a tree_list.
16866 (declare_weak): Cons weak_decls directly.
16867 (globalize_decl): Remove weak_decls elements directly.
16868 (weak_finish): Simplify weak_decls walk. Don't weaken unused
16869 symbols. Don't pretend to handle aliases.
16870 (init_varasm_once): Update weak_decls registry.
16871 * Makefile.in: Update dependencies.
16872
16873 2002-03-14 Richard Henderson <rth@redhat.com>
16874
16875 PR target/5312
16876 * config/ia64/ia64.c: Include tm_p.h last.
16877 (gen_nop_type): Remove duplicate definition.
16878 (cycle_end_fill_slots): Set sched_data for second L slot.
16879 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
16880 (nop_cycles_until): Fix typos.
16881
16882 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16883
16884 PR optimization/5891
16885 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
16886
16887 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
16888
16889 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
16890 descriptors correctly.
16891
16892 2002-03-14 Michael Meissner <meissner@redhat.com>
16893
16894 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
16895 100, allowing MAX_UNROLLED_INSNS to be overridden.
16896
16897 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
16898 --param.
16899
16900 * unroll.c (params.h): Include.
16901 (MAX_UNROLLED_INSNS): Delete, now in params.h.
16902
16903 * doc/invoke.texi (--param max-unroll-insns): Document.
16904
16905 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
16906
16907 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16908
16909 * arm.md: Fix warnings about constraints in peepholes and splits.
16910
16911 2002-03-14 Zack Weinberg <zack@codesourcery.com>
16912
16913 * cpphash.h (struct lexer_state): Remove line_extension member.
16914 * cpplib.c (dequote_string, do_linemarker): New functions.
16915 (linemarker_dir): New data object.
16916 (DIRECTIVE_TABLE): No longer need to interpret #line in
16917 preprocessed source. Delete obsolete comment about return
16918 values of handlers.
16919 (end_directive, directive_diagnostics, _cpp_handle_directive):
16920 Don't muck with line_extension.
16921 (directive_diagnostics): No need to issue warnings for
16922 linemarkers here.
16923 (_cpp_handle_directive): Issue warnings for linemarkers here,
16924 when appropriate. Dispatch linemarkers to do_linemarker, not
16925 do_line.
16926 (do_line): Code to handle linemarkers split out to do_linemarker.
16927 Convert escape sequences in filename argument, both places.
16928
16929 * cppmacro.c (quote_string): Rename cpp_quote_string and
16930 export. All callers changed.
16931 * cpplib.h (cpp_quote_string): Prototype.
16932 * cppmain.c (print_line): Call cpp_quote_string on to_file
16933 before printing it.
16934
16935 * doc/cpp.texi: Document that escapes are now interpreted in
16936 #line and in linemarkers, and that non-printing characters are
16937 converted to octal escapes when linemarkers are generated.
16938
16939 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
16940
16941 * emit-rtl.c (try_split): Use delete_insns.
16942 * recog.c (split_all_insns): Fix terminating condition.
16943
16944 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16945 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
16946
16947 PR target/5828
16948 * arm.c (arm_output_epilogue): Fix floating-point register save
16949 adjustment when using a frame pointer.
16950
16951 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
16952
16953 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
16954 * config/mips/mips.c (compute_frame_size): Retrofit them here.
16955 (save_restore_insns, mips_expand_epilogue): And here.
16956 (build_mips16_call_stub): And here.
16957 (mips_function_value): Use the new macros to decide whether a single
16958 or complex float can be returned in floating-point registers. Return
16959 a parallel rtx in the complex case.
16960
16961 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
16962
16963 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
16964 call after liveness analysis.
16965
16966 * recog.c (split_insn): Use delete_insn_and_edges.
16967
16968 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
16969 instructions to have branch prediction notes.
16970 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
16971
16972 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
16973
16974 * configure.in: Don't pass -Wno-long-long to a ADA compiler
16975 that doesn't support it.
16976 * configure: Regenerate.
16977
16978 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16979
16980 PR target/5626
16981 * config/sparc/sparc.md (normal_branch, inverted_branch,
16982 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
16983 inverted_fp_branch): Adjust calls to output_cbranch.
16984 Set length attribute.
16985 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
16986 output_v9branch. Set length attribute.
16987 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
16988 predicates.
16989 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
16990 (output_cbranch): Likewise. Handle far branches.
16991 (output_v9branch): Handle far branches.
16992 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
16993 Adjust prototypes.
16994 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
16995 noov_compare64_op predicates.
16996
16997 2002-03-13 Jason Merrill <jason@redhat.com>
16998
16999 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
17000 into the function and constify it.
17001 * gthr-dce.h, gthr-solaris.h: Likewise.
17002
17003 2002-03-13 David Edelsohn <edelsohn@gnu.org>
17004
17005 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
17006 * config/rs6000/rs6000.c (rs6000_va_arg): Use
17007 std_expand_builtin_va_arg if not ABI_V4.
17008
17009 2002-03-13 Jason Merrill <jason@redhat.com>
17010
17011 * varasm.c (globalize_decl): New fn.
17012 (assemble_start_function): Use it.
17013 (asm_emit_uninitialized): Use it.
17014 (assemble_alias): Use it.
17015 (assemble_variable): Use it.
17016
17017 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
17018
17019 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
17020 2002-03-12 internal visibility change.
17021 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
17022 visibility into SYMBOL_REF_FLAG.
17023
17024 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
17025
17026 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
17027 VOIDmode operand. Add compile-time optimization for constant results.
17028
17029 2002-03-12 Jason Merrill <jason@redhat.com>
17030
17031 * c-typeck.c (convert_for_assignment): Don't allow conversions
17032 between pointers and references. Only allow lvalues to convert to
17033 reference.
17034
17035 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
17036
17037 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
17038 before prologue, to avoid scheduling problems.
17039
17040 2002-03-13 Jakub Jelinek <jakub@redhat.com>
17041
17042 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
17043 (ELIMINABLE_REGS): Add sfp->sp.
17044 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
17045
17046 2002-03-13 Jakub Jelinek <jakub@redhat.com>
17047
17048 PR optimization/5892
17049 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
17050
17051 2002-03-13 Jakub Jelinek <jakub@redhat.com>
17052
17053 * loop.c (basic_induction_var): Don't call convert_modes if mode
17054 classes are different.
17055
17056 2002-03-12 Richard Henderson <rth@redhat.com>
17057
17058 PR optimization/5901
17059 * function.c (reposition_prologue_and_epilogue_notes): Position
17060 the markers after/before the last/first insn not deleted.
17061
17062 2002-03-12 Richard Henderson <rth@redhat.com>
17063
17064 PR optimization/5878
17065 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
17066 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
17067 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
17068
17069 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
17070 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
17071 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
17072
17073 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
17074 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
17075 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
17076 also. Don't set it if not flag_pic.
17077 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
17078 to be INVALID_REGNUM when not used.
17079
17080 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
17081
17082 * expmed.c (store_bit_field): Reset alias set for memory.
17083 (extract_bit_field): Same.
17084
17085 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17086
17087 * c-common.c (c_tree_code_type, c_tree_code_length,
17088 c_tree_code_name, add_c_tree_codes): Delete.
17089 * c-common.h (add_c_tree_codes): Delete.
17090 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
17091 Define.
17092 * c-objc-common.c (c_objc_common_init): Don't call
17093 add_c_tree_codes, instead set lang_unsafe_for_reeval.
17094 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
17095 objc_tree_code_name, add_objc_tree_codes): Delete.
17096 (objc_init): Don't call add_objc_tree_codes.
17097 * objc/objc-lang.c (tree_code_type, tree_code_length,
17098 tree_code_name): Define.
17099 * toplev.c (lang_independent_init): Don't set
17100 tree_code_length[IDENTIFIER_NODE].
17101 * tree.c (tree_code_type, tree_code_length, tree_code_name):
17102 Delete definitions, moved to language front-ends.
17103 * tree.def (IDENTIFIER_NODE): Hardwire the length.
17104 * tree.h (tree_code_type, tree_code_length, tree_code_name):
17105 Const-ify.
17106 (tree_code_length): Change type to unsigned char.
17107
17108 2002-03-12 Richard Henderson <rth@redhat.com>
17109
17110 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
17111 internal visibility change.
17112
17113 2002-03-12 Bob Wilson <bob.wilson@acm.org>
17114
17115 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
17116 validize_mem() instead of change_address to avoid clobbering
17117 memory attributes.
17118
17119 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
17120
17121 * c-lex.h (position_after_whitespace): Remove.
17122
17123 2002-03-12 Jakub Jelinek <jakub@redhat.com>
17124
17125 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
17126 (lex_string): Use unsigned char pointers.
17127
17128 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
17129
17130 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
17131 is not a valid memory_operand.
17132
17133 2002-03-12 Bob Wilson <bob.wilson@acm.org>
17134
17135 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
17136 * config/xtensa/lib1funcs.asm: Fix copyright to include
17137 special case for libgcc files.
17138 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
17139 (__divsi3): Likewise.
17140 (__umodsi3): Likewise.
17141 (__modsi3): Likewise.
17142 * config/xtensa/lib2funcs.S: Fix copyright to include
17143 special case for libgcc files.
17144
17145 2002-03-12 Tom Rix <trix@redhat.com>
17146
17147 * collect2.c (resolve_lib_name): Move outside of
17148 OBJECT_FORMAT_COFF ifdef.
17149 (ignore_library): Same.
17150
17151 2002-03-12 Bob Wilson <bob.wilson@acm.org>
17152
17153 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
17154
17155 2002-03-12 Bob Wilson <bob.wilson@acm.org>
17156
17157 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
17158 to function_section before writing out the constant pool.
17159
17160 2002-03-12 David Edelsohn <edelsohn@gnu.org>
17161
17162 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
17163 zero_constant.
17164 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
17165
17166 2002-03-12 Alan Modra <amodra@bigpond.net.au>
17167
17168 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
17169 (adddi3): Likewise.
17170 (movdf): Likewise.
17171 (movdi): Likewise.
17172 (cmpsi splitter): Likewise.
17173 (modsi3): Fail if <= 0.
17174 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
17175 redundant test when HOST_BITS_PER_WIDE_INT != 32.
17176 (reg_or_sub_cint64_operand): Likewise.
17177 (num_insns_constant_wide): Optimize sign extension.
17178 (rs6000_legitimize_address): Likewise.
17179
17180 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
17181
17182 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17183 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17184
17185 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
17186
17187 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
17188 address calculation.
17189
17190 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
17191
17192 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
17193 scratch register to DImode / TImode.
17194 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
17195 register used does not overlap the target.
17196
17197 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17198
17199 * Makefile.in (debug.o): Depend on debug.h.
17200 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
17201 * debug.c (do_nothing_debug_hooks): Likewise.
17202 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
17203 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
17204 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
17205 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
17206 * dwarfout.c (dwarf_debug_hooks): Likewise.
17207 * integrate.c (output_inline_function): Likewise.
17208 * objc/objc-act.c (synth_module_prologue): Likewise.
17209 * sdbout.c (sdb_debug_hooks): Likewise.
17210 * toplev.c (debug_hooks): Likewise.
17211 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17212
17213 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17214
17215 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
17216 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
17217 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
17218 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
17219 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
17220 * defaults.h (POINTER_SIZE): Define.
17221 * doc/tm.texi (POINTER_SIZE): Document default.
17222
17223 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17224
17225 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
17226
17227 2002-03-11 Richard Henderson <rth@redhat.com>
17228
17229 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
17230 if rebuild_label_notes_after_reload.
17231
17232 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
17233
17234 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
17235 emit pic register load if "internal" visibility.
17236 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
17237 (cris_expand_builtin_va_arg): Do all computations on trees.
17238
17239 2002-03-11 Richard Henderson <rth@redhat.com>
17240
17241 * rtlanal.c: Include recog.h.
17242 (keep_with_call_p): Fix thinko.
17243 * Makefile.in (rtlanal.o): Update dependencies.
17244
17245 2002-03-11 Chris Meyer <cmeyer@gatan.com>
17246
17247 * genflags.c (gen_insn): Use IS_VSPACE.
17248 * genoutput.c (output_insn_data): Likewise.
17249 (process_template): Likewise.
17250
17251 2002-03-11 Richard Henderson <rth@redhat.com>
17252
17253 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
17254
17255 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
17256
17257 * Makefile.in: Update.
17258 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
17259 Update documentation.
17260 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
17261 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
17262
17263 2002-03-11 Zack Weinberg <zack@codesourcery.com>
17264
17265 * Makefile.in: Give texi2pod its input file as a command line
17266 argument, not on stdin.
17267
17268 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
17269 Daniel Berlin <dan@dberlin.org>
17270
17271 C++ alias analysis improvement.
17272 * alias.c (record_component_aliases): Record aliases for base
17273 classes too.
17274
17275 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
17276
17277 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
17278
17279 2002-03-11 Douglas B Rupp <rupp@gnat.com>
17280
17281 * toplev.c (vms_fopen): Remove, not needed.
17282
17283 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
17284
17285 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
17286
17287 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
17288 for FP, already done later.
17289
17290 * toplev.c (debug_args): Add entry for VMS_DEBUG.
17291 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
17292
17293 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
17294
17295 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
17296 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
17297 LARGEST_EXPONENT_IS_NORMAL for the given mode.
17298 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
17299 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
17300 (ediv, emul, eldexp, esqrt): Likewise.
17301 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
17302 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
17303 (saturate): New function.
17304 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
17305 (make_nan): Use a saturation value instead of a NaN if
17306 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
17307 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
17308 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
17309 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
17310 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
17311 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
17312 !ROUND_TOWARDS_ZERO.
17313 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
17314 (ROUND_TOWARDS_ZERO): Document.
17315
17316 2002-03-11 Andreas Jaeger <aj@suse.de>
17317
17318 * cfg.c (dump_flow_info): Remove unused variable.
17319
17320 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
17321
17322 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
17323 computations on trees.
17324
17325 2002-03-10 Richard Henderson <rth@redhat.com>
17326
17327 PR 5693:
17328 * reload.c (copy_replacements_1): New.
17329 (copy_replacements): Use it to recurse through the rtx.
17330
17331 2002-03-10 Richard Henderson <rth@redhat.com>
17332
17333 * loop.c (strength_reduce): Compute number of iterations as
17334 unsigned HOST_WIDE_INT.
17335
17336 2002-03-10 Richard Henderson <rth@redhat.com>
17337
17338 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
17339 to move away from the end of the block.
17340
17341 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
17342
17343 PR preprocessor/5899
17344 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
17345
17346 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17347
17348 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
17349
17350 * attribs.c (decl_attributes): Fix signed/unsigned warning.
17351
17352 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
17353
17354 * config/mmix/mmix.c: Improve comments.
17355 (mmix_target_asm_function_prologue): Drop variable
17356 empty_stack_frame. Don't allocate unused slot above fp.
17357 (mmix_target_asm_function_epilogue): Mirror prologue changes.
17358 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
17359 brace in first column.
17360 (enum reg_class): Ditto.
17361 (FIRST_PARM_OFFSET): Now 0.
17362 (USER_LABEL_PREFIX): Remove #if 0:d definition.
17363
17364 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17365
17366 * combine.c (make_extraction): Fix error in last change.
17367
17368 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17369
17370 * c4x.c (c4x_fp_reglist): Const-ify.
17371 * cris.c (cris_print_operand): Likewise.
17372 * i386.c (ix86_va_arg): Likewise.
17373 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
17374 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
17375 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
17376 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
17377 * mcore.h (regno_reg_class): Likewise.
17378 * mips.c (gen_int_relational): Likewise.
17379 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
17380 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
17381 * pdp11.c (move_costs): Likewise.
17382 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
17383 * s390.c (s390_branch_condition_mnemonic, regclass_map):
17384 Likewise.
17385 * s390.h (regclass_map): Likewise.
17386 * sh.c (shift_amounts): Likewise.
17387 * sh.md (rotlsi3): Likewise.
17388
17389 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
17390
17391 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
17392 (ne0+5): Use new clobber to generate proper shift pattern.
17393 Patch by Michael Matz <matz@kde.org>.
17394
17395 2002-03-09 Andreas Schwab <schwab@suse.de>
17396
17397 * gcc.c (validate_all_switches): Also handle `%W{...}'.
17398
17399 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
17400
17401 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
17402
17403 2002-03-09 Jakub Jelinek <jakub@redhat.com>
17404
17405 PR middle-end/5877
17406 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
17407 even for non-representable constants.
17408
17409 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17410
17411 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
17412 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
17413 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
17414 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
17415 (pop_function_context): Compute MAY_SHARE parameter for
17416 fixup_var_refs.
17417 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
17418 (gen_mem_addressof): Call fixup_var_refs with new parm.
17419
17420 * combine.c (make_extraction): Don't make extension of CONST_INT.
17421
17422 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
17423
17424 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
17425 in o32 and o64 ABIs.
17426 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
17427 but getting fixed-size structs passed in registers regardless of
17428 padding in o32 and o64 ABIs.
17429
17430 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
17431 offset before loading address of argument passed by transparent
17432 reference.
17433
17434 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
17435
17436 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
17437
17438 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
17439
17440 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
17441 marker such that registers after it are saved.
17442
17443 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17444
17445 * sparc.c (arith_4096_operand): Fix error in last change.
17446
17447 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
17448
17449 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
17450 defaults for MEABI.
17451
17452 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
17453
17454 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
17455 vectors.
17456
17457 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
17458
17459 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
17460
17461 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
17462
17463 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
17464 removed; fix return value.
17465 * combine.c (combine_instructions): Dirtify blocks where we failed to
17466 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
17467 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
17468
17469 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17470
17471 * gcse.c (insert_insn_end_bb): Fix typo in last change.
17472
17473 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
17474
17475 * recog.c (peephole2_optimize): Re-distribute EH edges.
17476
17477 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
17478
17479 * expr.c (expand_expr): Use unsave lang hook.
17480 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
17481 (LANG_HOOKS_INITIALIZER): Update.
17482 * langhooks.h (struct lang_hooks): New hook unsave.
17483 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
17484 (unsave_expr_1): Remove unused lang_unsave_expr_now.
17485 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
17486 (unsave_expr_now): Remove.
17487 * tree.h (unsave_expr_now, lang_unsave,
17488 lang_unsave_expr_now): Remove.
17489 (lhd_unsave): New.
17490
17491 2002-03-08 Andreas Jaeger <aj@suse.de>
17492
17493 * flow.c (propagate_block_delete_insn): Remove unused variable.
17494
17495 2002-03-08 Kazu Hirata <kazu@hxi.com>
17496
17497 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
17498 insn length for memory load/store.
17499
17500 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
17501
17502 * doc/install.texi (--with-libiconv-prefix): Document.
17503
17504 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
17505
17506 * doc/sourcebuild.texi: Fix typo.
17507
17508 2002-03-08 Jakub Jelinek <jakub@redhat.com>
17509
17510 PR c/3711
17511 * builtins.c (std_expand_builtin_va_arg): Do all computations on
17512 trees.
17513
17514 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17515
17516 * rtl.c (copy_most_rtx): Move from here ...
17517 * emit-rtl.c (copy_most_rtx): ... to here.
17518
17519 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
17520
17521 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
17522 SUBTARGET_CPP_SIZE_SPEC.
17523 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
17524
17525 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
17526
17527 2002-03-07 Matt Hiller <hiller@redhat.com>
17528
17529 * gensupport.c (first_dir_md_include): Renamed from include;
17530 change all references.
17531 (last_dir_md_include): Renamed from last_include; change all
17532 references.
17533 (init_md_reader): Unconditionally initialize base_dir whether or
17534 not filename is a relative path.
17535
17536 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
17537
17538 * config/fp-bit.c (_unord_f2): Compile it in even if
17539 US_SOFTWARE_GOFAST is enabled.
17540
17541 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
17542 NULL_RTX. Set all HFmode operations as NULL_RTX.
17543 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
17544 NULL_RTX, try reversing the comparison and the operands.
17545
17546 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
17547
17548 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
17549 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
17550 and MATCH_OP_DUP.
17551
17552 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
17553
17554 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
17555
17556 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
17557
17558 * basic-block.h (fixup_abnormal_edges): Declare.
17559 * reload1.c (fixup_abnormal_edges): New function.
17560 * reg-stack.c (convert_regs): Use it.
17561
17562 * gcse.c (insert_insn_end_bb): Handle trapping insns.
17563
17564 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
17565
17566 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
17567
17568 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
17569 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
17570 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
17571 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
17572 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
17573 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
17574 unless x and y could be infinite.
17575 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
17576 Check that the common type of both arguments is a real, even for
17577 targets without unordered comparisons. Allow an integer argument
17578 to be compared against a real.
17579 (expand_tree_builtin): Use expand_unordered_cmp.
17580 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
17581 * cse.c (fold_rtx): Likewise. Fix indentation.
17582 * fold-const.c (fold_real_zero_addition_p): New.
17583 (fold): Use it, and the new HONOR_... macros.
17584 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
17585 * jump.c (reversed_comparison_code_parts): After searching for
17586 the true comparison mode, use HONOR_NANS to decide whether it
17587 can be safely reversed.
17588 (reverse_condition_maybe_unordered): Remove IEEE check.
17589 * simplify-rtx.c (simplify_binary_operation): Use the new macros
17590 to decide which simplifications are valid. Allow the following
17591 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
17592 and (a - -b) to (a + b).
17593 (simplify_relational_operation): Use HONOR_NANS.
17594 * doc/tm.texi: Document the MODE_HAS_... macros.
17595
17596 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
17597
17598 * combine.c (simplify_comparison): If simplifying a logical shift
17599 right and compare with constant, force the comparison to unsigned.
17600
17601 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
17602
17603 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
17604
17605 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
17606 -mabi=no-altivec
17607 (alt_reg_names): Remove % for vrsave.
17608
17609 2002-03-06 Richard Henderson <rth@redhat.com>
17610
17611 PR optimization/5844
17612 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
17613 if used indicates we've already emitted one copy of an operand.
17614 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
17615 (gen_split): Supply a non-null used.
17616
17617 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
17618
17619 * reload1.c (reload): Unshare all rtl after reload is done.
17620
17621 * simplify-rtx.c (simplify_plus_minus): Do not abort,
17622 but simply fail if the expression is too complex to simplify.
17623 (simplify_gen_binary): Handle simplify_plus_minus failures.
17624
17625 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
17626
17627 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
17628 consistently call delete_trivially_dead_insns after CSE and GCSE;
17629 fix DFI_life dumping; do jump threading after liveness; do crossjumping
17630 after liveness2; update comment in last crossjumping.
17631 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
17632
17633 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
17634
17635 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
17636 after completing fast dead code elimination.
17637
17638 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
17639 COMPARE operator.
17640
17641 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
17642
17643 * version.c: Fix misplaced leading blanks on first line.
17644
17645 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
17646
17647 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
17648
17649 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
17650
17651 * cfgcleanup.c (mentions_nonequal_regs): New function.
17652 (thread_jump): Use it.
17653 * toplev.c (rest_of_compilation): Run jump threading after
17654 liveness.
17655
17656 2002-03-06 Jakub Jelinek <jakub@redhat.com>
17657
17658 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
17659 patch.
17660
17661 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
17662
17663 * predict.c (estimate_bb_frequencies): Do not reload the
17664 frequencies from notes.
17665
17666 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
17667
17668 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
17669 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
17670
17671 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
17672 delete_noop_moves): Return indeger.
17673 * flow.c (ndead): New variable.
17674 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
17675 BB argument; update callers.
17676 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
17677 (life_analysis): Do not call purge_all_dead_edges.
17678 (update_life_info): Return number of deleted insns; print statistics.
17679 (update_life_info_in_dirty_blocks): likewise.
17680 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
17681 return number of insns deleted.
17682
17683 * cse.c: Include timevar.h
17684 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
17685 iterate until stabilizes; print statistics; return number of killed
17686 insns.
17687 * Makefile.in: (cse.o): Add timevar.h dependency
17688 * rtl.h (delete_trivially_dead_insns): New.
17689 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
17690 * toplev.c (rest_of_compilation): Update callers.
17691
17692 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
17693 (try_optimize_cfg): Do not update liveness.
17694 (cleanup-cfg): Loop until try_optimize_cfg and dead code
17695 removal stabilizes; use delete_trivially_dead_insns.
17696
17697 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
17698
17699 2002-03-05 Zack Weinberg <zack@codesourcery.com>
17700
17701 * cppmain.c (setup_callbacks): Disable #pragma and #ident
17702 callbacks when processing assembly language.
17703
17704 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17705
17706 * pa.h (ASM_FILE_END): Define.
17707 * som.h (ASM_FILE_END): Delete.
17708
17709 * pa.c (function_arg): Don't pass floats in general registers in
17710 indirect calls if TARGET_ELF32.
17711
17712 2002-03-05 Richard Henderson <rth@redhat.com>
17713
17714 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
17715
17716 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
17717
17718 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
17719
17720 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17721
17722 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
17723 -r command line. Don't hide any symbols if not building
17724 shared libgcc.
17725
17726 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
17727
17728 * cfg.c (dump_flow_info): Warn about profile mismatches.
17729 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
17730 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
17731
17732 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17733
17734 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
17735 wide volatile memory by parts.
17736
17737 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17738
17739 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
17740 is NULL.
17741
17742 2002-03-05 Richard Henderson <rth@redhat.com>
17743
17744 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
17745
17746 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
17747
17748 * toplev.c (documented_lang_options): Document more
17749 language-specific options.
17750 * doc/invoke.texi (Warning Options): Correct documentation for
17751 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
17752 * c-decl.c (c_decode_option): Use a table to handle warning options.
17753
17754 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
17755
17756 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
17757 parameter to mmix_encode_section_info.
17758 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
17759 relocatably. Always produce ELF, not mmo if linking relocatably.
17760 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
17761 first is non-zero, don't add symbol prefix.
17762 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
17763 prototype accordingly.
17764
17765 2002-03-04 Krister Walfridsson <cato@df.lth.se>
17766
17767 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
17768
17769 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
17770
17771 * configure.in: Increase required makeinfo version to 4.1.
17772 * configure: Regenerate.
17773
17774 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
17775
17776 * .cvsignore: Remove *.info* and genrtl*; these files are generated
17777 elsewhere now.
17778
17779 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
17780
17781 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
17782 * doc/invoke.texi: Fix @math uses.
17783
17784 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
17785
17786 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
17787 removal
17788
17789 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
17790
17791 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
17792 (powerpc-*-eabisimaltivec*): Same.
17793
17794 * config/rs6000/t-ppcendian: New.
17795
17796 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17797
17798 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
17799 nonimmediate_src_operand and nonimmediate_lsrc_operand to
17800 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
17801
17802 2002-03-03 Richard Henderson <rth@redhat.com>
17803
17804 * toplev.c (rest_of_decl_compilation): Revert last two changes.
17805
17806 2002-03-03 Zack Weinberg <zack@codesourcery.com>
17807
17808 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
17809 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
17810 tree.c, config/m68k/m68k.c:
17811 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
17812 REAL_ARITHMETIC blocks unconditional. Delete some further
17813 #ifdef blocks predicated on REAL_ARITHMETIC.
17814 * flags.h, toplev.c: Delete remaining references to
17815 flag_pretend_float.
17816
17817 * doc/invoke.texi: Remove documentation of -fpretend-float.
17818 * doc/tm.texi: Describe the various REAL_* macros as provided by
17819 real.h, not by the target configuration files.
17820
17821 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
17822 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
17823 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17824 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
17825 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
17826 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
17827 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
17828 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
17829 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
17830 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
17831 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
17832 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
17833 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
17834 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
17835 config/xtensa/xtensa.h:
17836 Do not define, undefine, or mention in comments any of
17837 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
17838 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
17839 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
17840 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
17841 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
17842 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
17843 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
17844 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
17845 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
17846
17847 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17848
17849 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
17850 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
17851 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
17852 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
17853 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
17854 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
17855 Delete.
17856 * defaults.h (BITS_PER_WORD): Define.
17857 * doc/tm.texi (BITS_PER_WORD): Document default value.
17858
17859 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
17860 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
17861 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
17862
17863 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17864
17865 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
17866 lieu of explicit sizeof/sizeof.
17867 * i386.c (override_options, ix86_init_mmx_sse_builtins,
17868 ix86_expand_builtin): Likewise.
17869 * mips.c (mips_add_gc_roots): Likewise.
17870 * mmix.c (mmix_output_condition): Likewise.
17871 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
17872 altivec_init_builtins): Likewise.
17873 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
17874 * cppexp.c (Nsuff, parse_number): Likewise.
17875 * cppinit.c (builtin_array_end): Likewise.
17876 * gcc.c (n_default_compilers, process_command): Likewise.
17877 * genpreds.c (output_predicate_decls): Likewise.
17878 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
17879 * lcm.c (N_ENTITIES): Likewise.
17880 * stor-layout.c (set_sizetype): Likewise.
17881
17882 2002-03-03 Richard Henderson <rth@redhat.com>
17883
17884 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
17885 for types or labels.
17886
17887 2002-03-03 Richard Henderson <rth@redhat.com>
17888
17889 * c-decl.c (start_decl): Initialized variables are not common.
17890
17891 2002-03-02 Per Bothner <per@bothner.com>
17892
17893 * gcc.c (option_map): Suport new --bootclasspath option.
17894 --CLASSPATH is now just an alias for --classpath.
17895
17896 2002-03-02 Richard Henderson <rth@redhat.com>
17897
17898 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
17899 load if "internal" visibility.
17900 * doc/extend.texi: Document visibility meanings.
17901
17902 2002-03-02 Richard Henderson <rth@redhat.com>
17903
17904 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
17905 to functions as well.
17906
17907 2002-03-02 Richard Henderson <rth@redhat.com>
17908
17909 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
17910 (handle_visibility_attribute): Don't call assemble_visibility.
17911 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
17912 without asmspec. Invoke assemble_alias when needed.
17913 * varasm.c (maybe_assemble_visibility): New.
17914 (assemble_start_function, assemble_variable, assemble_alias): Use it.
17915
17916 2002-03-02 Richard Henderson <rth@redhat.com>
17917
17918 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
17919 invoke ENCODE_SECTION_INFO with first call flag.
17920
17921 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
17922 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
17923 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
17924 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
17925 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
17926 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
17927 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
17928 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
17929 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
17930 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
17931 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
17932 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
17933 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
17934 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
17935 config/mcore/mcore-protos.h, config/mcore/mcore.c,
17936 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
17937 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
17938 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
17939 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
17940 config/sh/sh.h, config/sparc/sparc.h,
17941 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
17942 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
17943 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
17944 FIRST argument. As needed, examine it and do nothing.
17945
17946 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
17947 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17948 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
17949
17950 * config/arm/t-pe (pe.o): Add dependencies.
17951
17952 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17953
17954 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
17955 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
17956 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
17957 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
17958 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
17959 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
17960 * defaults.h (BITS_PER_UNIT): Define.
17961 * doc/tm.texi (BITS_PER_UNIT): Document default value.
17962
17963 2002-03-02 Kazu Hirata <kazu@hxi.com>
17964
17965 * config/h8300/h8300-protos.h: Add a prototype for
17966 compute_a_shift_length.
17967 * config/h8300/h8300.c (h8300_asm_insn_count): New.
17968 (compute_a_shift_length): Likewise.
17969 (h8300_adjust_insn_length): Do not adjust insn length of shift
17970 insns.
17971 * config/h8300/h8300.md (anonymous shift patterns): Use
17972 compute_a_shift_length.
17973
17974 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17975
17976 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
17977 trunc_int_for_mode.
17978
17979 * emit-rtl.c (offset_address): Call update_temp_slot_address.
17980
17981 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17982
17983 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
17984 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
17985 * flags.h (flag_zero_initialized_in_bss): Declare.
17986 * toplev.c (flag_zero_initialized_in_bss): New flag.
17987 (lang_independent_options): Add flag_zero_initialized_in_bss.
17988 * tree.c (initializer_zerop): New function.
17989 * tree.h (initializer_zerop): Declare.
17990 * varasm.c (assemble_variable): If we can emit bss, put zero
17991 initializers in the bss section.
17992
17993 2002-03-02 Alan Modra <amodra@bigpond.net.au>
17994
17995 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
17996 like more than one symbol per .weak directive.
17997
17998 2002-03-01 Richard Henderson <rth@redhat.com>
17999
18000 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
18001 adjust argument_pointer by pretend_args_size.
18002 (ia64_va_start): Adjust va_start address by -pretend_args_size.
18003
18004 2002-03-01 Kazu Hirata <kazu@hxi.com>
18005
18006 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
18007
18008 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
18009
18010 * toplev.c (rest_of_compilation): Delete dead jumptables before
18011 loop.
18012 * flow.c (delete_dead_jumptables): Make global.
18013 * rtl.h (delete_dead_jumptables): Declare.
18014
18015 2002-03-01 David Edelsohn <edelsohn@gnu.org>
18016
18017 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
18018 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
18019 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
18020
18021 2002-03-01 Kazu Hirata <kazu@hxi.com>
18022
18023 * config/h8300/h8300-protos.h: Fix formatting.
18024 * config/h8300/h8300.c: Likewise.
18025 * config/h8300/h8300.h: Likewise.
18026
18027 2002-03-01 Kazu Hirata <kazu@hxi.com>
18028
18029 * config/h8300/h8300.c (print_operand): Support 16-bit
18030 constant addresses.
18031 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
18032
18033 2002-02-28 Richard Henderson <rth@redhat.com>
18034
18035 * expmed.c (store_bit_field): Prevent generation of CONCATs;
18036 pun complex values as integers; use gen_lowpart instead of
18037 gen_rtx_SUBREG.
18038 (extract_bit_field): Likewise.
18039
18040 2002-03-01 Alan Modra <amodra@bigpond.net.au>
18041 David Edelsohn <edelsohn@gnu.org>
18042
18043 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
18044 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
18045 (SUPPORTS_WEAK): Likewise.
18046 * output.h (add_weak): Add tree param.
18047 * varasm.c (add_weak): Likewise. Save decl.
18048 (struct weak_syms): Add decl field.
18049 (mark_weak_decls): New function.
18050 (init_varasm_once): ggc_add_root mark_weak_decls.
18051 (assemble_start_function): Use ASM_WEAKEN_DECL.
18052 (assemble_variable): Likewise.
18053 (assemble_alias): Likewise.
18054 (declare_weak): Pass decl to add_weak.
18055 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
18056 (remove_from_pending_weak_list): Declare and define for
18057 ASM_WEAKEN_DECL.
18058 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
18059 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
18060 * defaults.h (SUPPORTS_WEAK): Likewise.
18061 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
18062 .weak for code sym. Do emit .size for descriptor sym.
18063 (ASM_DECLARE_FUNCTION_SIZE): Define.
18064 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
18065 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
18066 .lglobl unless TARGET_XCOFF. Formatting fixes.
18067 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
18068 .weak for code sym.
18069 (HANDLE_PRAGMA_WEAK): Remove.
18070 (ASM_WEAKEN_LABEL): Remove.
18071 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
18072
18073 2002-03-01 Jason Merrill <jason@redhat.com>
18074
18075 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
18076 (TARGET_EXPR_CLEANUP): New macro.
18077
18078 2002-02-28 Steve Ellcey <sje@cup.hp.com>
18079
18080 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
18081 to take ptr_extend into account as third type of extension.
18082 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
18083 fields used by SUBREG_PROMOTED_UNSIGNED_P.
18084 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
18085 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
18086 * calls.c (precompute_arguments): Use new macro.
18087 (expand_call): Ditto.
18088 * combine.c (nonzero_bits): Ditto.
18089 (record_promoted_value): Ditto.
18090 * expr.c (store_expr): Ditto.
18091 (expand_expr): Ditto.
18092 * function.c (assign_parms): Ditto.
18093
18094 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
18095
18096 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
18097 override -shared and -shared-libgcc.
18098
18099 2002-02-28 David O'Brien <obrien@FreeBSD.org>
18100
18101 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
18102 of "ultrasparc".
18103 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
18104 to be broken.
18105
18106 2002-02-28 Richard Henderson <rth@redhat.com>
18107
18108 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
18109 4 cycle latency from MM producers.
18110 (ia64_internal_sched_reorder): Likewise with pipeline flush.
18111
18112 2002-02-28 Jakub Jelinek <jakub@redhat.com>
18113
18114 * mklibgcc.in: Don't use GNU make extension.
18115
18116 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
18117
18118 * c-parse.in (STATIC): New terminal.
18119 (scspec): New non-terminal. Update productions accordingly.
18120 (program): Remove bogus ifc / end ifc.
18121 (array_declarator): Simplify production using STATIC.
18122
18123 2002-02-28 Jim Meyering <meyering@lucent.com>
18124
18125 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
18126 \a still means TARGET_BELL.
18127
18128 2002-02-28 Richard Henderson <rth@redhat.com>
18129
18130 * haifa-sched.c (sched_emit_insn): New.
18131 (schedule_block): Use last_scheduled_insn to track last insn.
18132 * sched-int.h (sched_emit_insn): Prototype.
18133 * config/ia64/ia64.c (last_issued): Remove.
18134 (ia64_variable_issue): Don't set it.
18135 (nop_cycles_until): Use sched_emit_insn.
18136
18137 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
18138
18139 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
18140 extended constants.
18141
18142 2002-02-28 Kazu Hirata <kazu@hxi.com>
18143
18144 * config/h8300/h8300.c: Fix formatting.
18145 * config/h8300/h8300.h: Likewise.
18146
18147 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
18148
18149 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
18150 which may overwrite the high byte of the frame pointer.
18151
18152 2002-02-28 Bo Thorsen <bo@suse.de>
18153
18154 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
18155 (STARTFILE_SPEC): Add 64 bit files.
18156 (ENDFILE_SPEC): Likewise.
18157
18158 2002-02-28 Jason Merrill <jason@redhat.com>
18159
18160 * c-decl.c (finish_function): Only warn about missing return
18161 statement with -Wreturn-type.
18162
18163 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
18164
18165 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
18166
18167 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
18168 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
18169
18170 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
18171
18172 * basic-block.h (BB_REACHABLE): Renumber.
18173 (BB_DIRTY, BB_NEW): New flags.
18174 (clear_bb_flags): Declare.
18175 (update_life_info_in_dirty_blocks): Declare.
18176 * cfg.c (clear_bb_flags): New function.
18177 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
18178 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
18179 reorder_insns, emit_insn_after): Mark block as dirty.
18180 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
18181 (update_life_info_in_dirty_blocks): New function.
18182 * recog.c (apply_change_group): Dirtify block.
18183
18184 * cse.c (cse_insn): Reorder emitting of jump insn to keep
18185 cfg consistent.
18186 * gcse.c (delete_null_pointer_checks): Likewise.
18187
18188 * toplev.c (dump_file_index): Move cse2 after bp,
18189 add DFI_null
18190 (dump_file_info): Similary.
18191 (rest_of_compilation): Avoid most of CFG rebuilds;
18192 do first if converision after null pointer checks, do cse2
18193 after branch prediction; avoid full liveness rebuild after
18194 initializing subregs.
18195 * invoke.texi (-d options): Document -du, renumber.
18196
18197 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
18198 (notice_new_block): Do not set BB_UPDATE_LIFE.
18199 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
18200 merge_blocks_move_successor_nojumps, merge_blocks,
18201 try_crossjump_to_edge): Likewise.
18202 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
18203 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
18204 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
18205 (merge_of_block): Do not use life_data_ok.
18206 (find_if_case_1): Do not use SET_UPDATE_LIFE.
18207 (if_convert): Use BB_DIRTY mechanizm to update life.
18208 * lcm.c (optimize_mode_switching): Update
18209 update_life_info_in_dirty_blocks
18210
18211 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
18212
18213 * Makefile.in (integrate.o): Update.
18214 * c-decl.c (copy_lang_decl): Rename.
18215 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
18216 * integrate.c: Include langhooks.h.
18217 (copy_decl_for_inlining): Update to use langhook.
18218 * langhooks-def.h (lhd_do_nothing_t,
18219 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
18220 (LANG_HOOKS_INITIALIZER): Update.
18221 * langhooks.c (lhd_do_nothing_t): New.
18222 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
18223 * tree.h (copy_lang_decl): Remove.
18224 objc:
18225 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
18226
18227 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
18228
18229 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
18230 POST_DEC, and POST_MODIFY.
18231
18232 2002-02-27 Zack Weinberg <zack@codesourcery.com>
18233
18234 * c-typeck.c (digest_init): Remove unused parameter; all
18235 callers changed.
18236
18237 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
18238
18239 * expmed.c (expand_shift): Correctly test for low part of a
18240 subreg.
18241
18242 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18243
18244 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
18245 insn UIDs with insn addresses.
18246
18247 2002-02-27 Zack Weinberg <zack@codesourcery.com>
18248
18249 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
18250 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
18251 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
18252 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
18253 gcc.c, toplev.c: Delete code implementing -traditional mode.
18254
18255 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
18256 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
18257 Document removal of -traditional mode for compilation, and
18258 remove documentation only relevant to that mode.
18259
18260 * config/nextstep.h, config/ptx4.h, config/svr4.h,
18261 config/convex/convex.h, config/d30v/d30v.h,
18262 config/i386/dgux.h, config/i386/osf1elf.h,
18263 config/i386/osfelf.h, config/i386/osfrose.h,
18264 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
18265 config/m68k/hp310.h, config/m88k/dgux.h,
18266 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
18267 config/m88k/m88k.h, config/m88k/openbsd.h,
18268 config/mips/abi64.h, config/mips/osfrose.h,
18269 config/mips/svr4-5.h, config/mips/svr4-t.h,
18270 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
18271 config/stormy16/stormy16.h: Remove all references to
18272 -traditional from target specs. Delete all mention of the
18273 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
18274 delete a couple of commented-out definitions of
18275 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
18276 to -traditional.
18277
18278 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
18279 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
18280
18281 2002-02-27 Zack Weinberg <zack@codesourcery.com>
18282
18283 * mklibgcc.in: Don't use \n in a line subject to
18284 interpretation by echo.
18285
18286 2002-02-27 Graham Stott <grahams@redhat.com>
18287
18288 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
18289 Constify NAME.
18290
18291 * loop.c (prescan_loop): Handle PARALLEL.
18292
18293 * unroll.c (loop_iterations): Return 0 if the add_val for
18294 a BIV is REG.
18295
18296 * final.c (output_operand_lossage): Constify PFX_STR.
18297
18298 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
18299
18300 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
18301
18302 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
18303 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
18304
18305 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
18306
18307 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
18308
18309 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
18310
18311 * cpplex.c (_cpp_lex_token): Handle directives in macro
18312 arguments.
18313 * cpplib.c (_cpp_handle_directive): Save and restore state
18314 if parsing macro args when entering a directive.
18315 * cppmacro.c (collect_args): No need to handle directives
18316 in macro arguments.
18317 (enter_macro_context, replace_args): Use the original macro
18318 definition in case it was redefined whilst collecting arguments.
18319 doc:
18320 * cpp.texi: Update.
18321
18322 2002-02-26 David Edelsohn <edelsohn@gnu.org>
18323
18324 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
18325 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
18326 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
18327 method on AIX.
18328 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
18329 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
18330 (load_toc_v4_PIC_2): Same.
18331
18332 2002-02-26 Alan Modra <amodra@bigpond.net.au>
18333
18334 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
18335
18336 2002-02-26 Richard Henderson <rth@redhat.com>
18337
18338 * config/alpha/alpha.md (ashldi_se): Re-enable.
18339
18340 2002-02-26 Richard Henderson <rth@redhat.com>
18341
18342 * config/alpha/alpha.c (alpha_encode_section_info): Examine
18343 MODULE_LOCAL_P; improve commentary.
18344
18345 2002-02-26 Zack Weinberg <zack@codesourcery.com>
18346
18347 * doc/cpp.texi: Clarify documentation of relationship between
18348 #line and #include.
18349
18350 2002-02-26 Kazu Hirata <kazu@hxi.com>
18351
18352 * config/h8300/h8300-protos.h: Update the prototype for
18353 compute_logical_op_length. Add the prototype for
18354 compute_logical_op_cc.
18355 * config/h8300/h8300.c (compute_logical_op_length): Figure out
18356 code from operands.
18357 (compute_logical_op_cc): New.
18358 * config/h8300/h8300.md: Combine all the logical op patterns
18359 in HImode and SImode. Use compute_logical_op_cc.
18360
18361 2002-02-26 Kelley Cook <kelleycook@comcast.net>
18362
18363 * config/i386/i386.c (print_operand): Don't append ATT-style
18364 length suffixs to x87 opcodes when in Intel mode.
18365
18366 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
18367
18368 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
18369 (init_emit_once): Update calls.
18370 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
18371 (init_syntax_once): Prototype.
18372
18373 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
18374
18375 * pa-linux.h (LIB_SPEC): Update definition.
18376 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18377
18378 2002-02-26 Richard Henderson <rth@redhat.com>
18379
18380 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
18381 if we emitted a stop bit.
18382
18383 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18384
18385 * configure.in (libgcc_visibility): Substitute.
18386 * configure: Rebuilt.
18387 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
18388 defined symbols .hidden.
18389
18390 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18391
18392 * attribs.c (c_common_attribute_table): Add visibility.
18393 (handle_visibility_attribute): New function.
18394 * varasm.c (assemble_visibility): New function.
18395 * output.h (assemble_visibility): Add prototype.
18396 * tree.h (MODULE_LOCAL_P): Define.
18397 * crtstuff.c (__dso_handle): Use visibility attribute.
18398 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
18399 for MODULE_LOCAL_P symbols too.
18400 * config/ia64/ia64.c (ia64_encode_section_info): Handle
18401 MODULE_LOCAL_P symbols the same way as local symbols.
18402 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
18403 into .sdata/.sbss by the user.
18404 * doc/extend.texi (Function Attributes): Document visibility
18405 attribute.
18406
18407 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18408
18409 PR debug/5770
18410 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
18411 STRING_CST initializer spanning the whole variable without
18412 embedded zeros.
18413 If expand_expr returned MEM, don't use it.
18414
18415 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
18416
18417 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
18418 generate a die for the lexical block.
18419
18420 2002-02-26 Kazu Hirata <kazu@hxi.com>
18421
18422 * config/h8300/h8300-protos.h: Add a prototype for
18423 compute_logical_op_length.
18424 * config/h8300/h8300.c (compute_logical_op_length): New.
18425 * config/h8300/h8300.md (anonymous logical patterns): Use
18426 compute_logical_op_length for length.
18427
18428 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18429
18430 * dwarf2out.c (modified_type_die): Do not call type_main_variant
18431 for vectors.
18432 (gen_type_die): Same.
18433
18434 * attribs.c (handle_vector_size_attribute): Set debug information.
18435
18436 2002-02-26 Daniel Egger <degger@fhm.edu>
18437
18438 * config/rs6000/rs6000.md: Swap define_insn attributes to
18439 fix incorrect generation of merge high instructions instead
18440 of merge low.
18441
18442 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18443
18444 * c-typeck.c (really_start_incremental_init): Use
18445 bitsize_zero_node for vectors.
18446
18447 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18448
18449 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
18450 ("*set_vrsave_internal"): Same.
18451
18452 2002-02-25 Richard Henderson <rth@redhat.com>
18453
18454 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
18455 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
18456
18457 2002-02-25 Jakub Jelinek <jakub@redhat.com>
18458
18459 PR target/5755
18460 * config/i386/i386.c (ix86_return_pops_args): Only pop
18461 fake structure return argument if it was passed on the stack.
18462
18463 2002-02-25 Jason Merrill <jason@redhat.com>
18464
18465 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
18466 RESULT_DECL.
18467
18468 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
18469
18470 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
18471 link with shared_name only.
18472 * doc/invoke.texi (Link Options): Document new behavior.
18473
18474 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
18475
18476 * c-typeck.c (push_init_level): Handle vectors.
18477
18478 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
18479
18480 * config/sparc/sparc.c (const64_high_operand): Zero-extend
18481 operands of SPARC_SETHI_P.
18482 (input_operand): Likewise.
18483 (sparc_emit_set_const32): Likewise.
18484 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
18485 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
18486 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
18487 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
18488 (movdi_insn_sp64_vis): Likewise.
18489 (movdi split, movdf split): Use SETHI32.
18490 * doc/md.texi: Document SPARC constraints L, M and N.
18491
18492 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
18493
18494 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
18495 ("*set_vrsave_internal"): use mfspr for Darwin.
18496
18497 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
18498 gen_get_vrsave_internal.
18499
18500 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18501
18502 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
18503
18504 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
18505
18506 * cpplex.c (cpp_interpret_charconst): Get signedness or
18507 otherwise of wide character constants correct.
18508 * cppexp.c (lex): Get signedness of wide charconsts correct.
18509
18510 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18511
18512 * optabs.c (widen_operand): Only call convert_modes for
18513 promoted SUBREG if signedness matches.
18514 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
18515
18516 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18517
18518 * cpplib.c (glue_header_name): Use local buffer to build up
18519 header name.
18520
18521 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18522
18523 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
18524
18525 2002-02-23 Kazu Hirata <kazu@hxi.com>
18526
18527 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
18528 H8/300[HS] separately.
18529 * config/h8300/h8300.md: Remove the early clobber constraint
18530 from bit field patterns.
18531
18532 2002-02-23 Kazu Hirata <kazu@hxi.com>
18533
18534 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
18535 register_operand.
18536 (mulhisi3): Likewise.
18537 (umulqisi3): Likewise.
18538 (umulhisi3): Likewise.
18539
18540 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18541
18542 * cppinit.c (output_deps): Correct test for stdout output.
18543 (init_dependency_output): Cure warning.
18544
18545 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18546
18547 * expr.c (store_expr): When converting expression to promoted
18548 equivalent type, allow using SUBREG_REG of TARGET as the target
18549 of the expansion of EXP.
18550 * loop.c (basic_induction_var, case SUBREG): Always look inside.
18551 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
18552 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
18553 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
18554 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
18555
18556 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
18557
18558 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
18559 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
18560 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
18561
18562 2002-02-23 Jakub Jelinek <jakub@redhat.com>
18563
18564 PR optimization/5747
18565 * loop.c (scan_loop): Update reg info if move_movables created new
18566 pseudos.
18567
18568 2002-02-23 David Edelsohn <edelsohn@gnu.org>
18569
18570 * gcc.c (init_gcc_spec): Revert last change.
18571
18572 2002-02-23 David Edelsohn <edelsohn@gnu.org>
18573
18574 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
18575 gpc_reg_operand constraint.
18576
18577 2002-02-23 Alan Modra <amodra@bigpond.net.au>
18578
18579 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
18580 Simplify comparison of `low'.
18581 (add_operand): Fix formatting.
18582 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
18583 (mask_operand): Disallow mask to wrap in 64-bit mode.
18584 (rs6000_stack_info): Remove redundant test setting push_p.
18585 (output_toc): Fix formatting.
18586 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
18587 cc_reg_not_cr0_operand constraint.
18588 (booldi3, boolcdi3 splitters): Same.
18589
18590 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
18591
18592 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
18593
18594 2002-02-22 David Edelsohn <edelsohn@gnu.org>
18595
18596 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
18597 gcc invoked with -shared-libgcc.
18598
18599 2002-02-22 Jakub Jelinek <jakub@redhat.com>
18600
18601 PR c++/5748
18602 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
18603 decl if any of elements was TREE_USED.
18604
18605 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
18606
18607 * config/sparc/sol2.h: Don't include sys/mman.h.
18608 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
18609 (arith_4096_operand): Don't throw high bits away.
18610 (const64_operand): Take sign extension of CONST_INTs into account.
18611 (const64_high_operand, sparc_emit_set_const32): Likewise.
18612 (GEN_HIGHINT64): Likewise.
18613 (sparc_emit_set_const64_quick1): Likewise.
18614 (const64_is_2insns): Likewise.
18615 (print_operand): Use trunc_int_for_mode for sign extension.
18616 * config/sparc/sparc.h (SMALL_INT32): Likewise.
18617 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
18618 chars. Assume CONST_INT is already properly sign-extended.
18619 (movdi split): Sign-extend each SImode part.
18620 (andsi3 split): Don't mask high bits off, so that result
18621 remains properly sign-extend.
18622 (iorsi3 split): Likewise.
18623 (xorsi3 split): Likewise.
18624
18625 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
18626
18627 * fold-const.c (fold): Fix typo in comments.
18628
18629 2002-02-21 Diego Novillo <dnovillo@redhat.com>
18630
18631 * Makefile.in (langhooks.o): Update dependencies.
18632
18633 2002-02-21 Diego Novillo <dnovillo@redhat.com>
18634
18635 * langhooks.c: Include flags.h.
18636
18637 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
18638
18639 * testsuite/gcc.dg/attr-alwaysinline.c: New.
18640
18641 * c-common.c (c_common_post_options): Set inline trees by
18642 default.
18643
18644 * doc/extend.texi (Function Attributes): Document always_inline
18645 attribute.
18646 Update documentation about inlining when not optimizing.
18647
18648 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
18649
18650 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
18651 unless DECL_ALWAYS_INLINE.
18652
18653 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
18654 unless DECL_ALWAYS_INLINE.
18655 (c_disregard_inline_limits): Disregard if always_inline set.
18656
18657 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
18658 Disregard if always_inline set.
18659 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
18660 unless DECL_ALWAYS_INLINE.
18661
18662 * attribs.c (handle_always_inline_attribute): New.
18663 (c_common_attribute_table): Add always_inline.
18664
18665 * config/rs6000/altivec.h: Add prototypes for builtins
18666 requiring the always_inline attribute.
18667
18668 2002-02-21 Eric Christopher <echristo@redhat.com>
18669
18670 * expmed.c (store_bit_field): Try to simplify the subreg
18671 before generating a new one when when the mode size of
18672 value is less than maxmode.
18673
18674 2002-02-21 Richard Henderson <rth@redhat.com>
18675
18676 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
18677 than gen_rtx_PLUS to form the sum.
18678 * explow.c (force_reg): Rearrange to not allocate new pseudo
18679 when force_operand returns a register.
18680 * expr.c (expand_assignment): Allow offset_rtx expansion to
18681 return a sum. Do not force addresses into registers.
18682 (expand_expr): Likewise.
18683 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
18684 to canonicalize arithmetic that didn't simpify.
18685 (simplify_plus_minus): New argument force; update
18686 all callers. Don't split CONST unless we can do something with it,
18687 and wouldn't lose the constness of the operands.
18688
18689 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
18690 that we generated earlier.
18691
18692 2002-02-21 Tom Tromey <tromey@redhat.com>
18693
18694 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18695 (output_line_info): Use constant `1', with a long explanatory
18696 comment.
18697 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
18698
18699 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
18700
18701 * jump.c (redirect_jump): If old label has no UID, don't try to
18702 delete it.
18703
18704 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
18705
18706 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
18707 If input is constant, do shifts at compile time.
18708
18709 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
18710
18711 * doc/extend.texi: Fix some more overfull hboxes.
18712
18713 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18714
18715 PR optimization/4994
18716 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
18717 register moves.
18718
18719 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18720
18721 PR c++/4574
18722 * expr.h (expand_and): Add mode argument.
18723 * expmed.c (expand_and): Add mode argument.
18724 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
18725 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
18726 * except.c (expand_builtin_extract_return_addr): Likewise.
18727 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
18728 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
18729 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
18730 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
18731 * config/c4x/c4x.md: Use GEN_INT (x) instead of
18732 gen_rtx (CONST_INT, VOIDmode, x).
18733
18734 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18735
18736 PR c/4697:
18737 * stmt.c (warn_if_unused_value): Move side effects test once more.
18738
18739 2002-02-20 Torbjorn Granlund <tege@swox.com>
18740
18741 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
18742 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
18743
18744 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
18745
18746 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
18747 SUBREG or ZERO_EXTEND.
18748
18749 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
18750
18751 * sh.h (current_function_anonymous_args): Remove.
18752 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
18753 of current_function_varargs and current_function_stdarg is set.
18754 * sh.c (sh_expand_prologue): Check current_function_varargs /
18755 current_function_stdarg / TARGET_SH5 instead of
18756 current_function_anonymous_args.
18757
18758 * sh64.h (TARGET_VERSION): Define.
18759
18760 2002-02-20 David Edelsohn <edelsohn@gnu.org>
18761
18762 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
18763 VRSAVE_REGNO on TARGET_ALTIVEC.
18764
18765 2002-02-20 Alan Modra <amodra@bigpond.net.au>
18766
18767 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
18768 bits of SImode const_int.
18769 (includes_rshift_p): Likewise.
18770 (print_operand): Call mask_operand and mask64_operand with correct
18771 mode.
18772 (rs6000_output_function_epilogue): Pad traceback table to word.
18773 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
18774 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
18775 mask64_operand with correct mode.
18776 (FUNCTION_ARG_REGNO_P): Correct parentheses.
18777
18778 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18779
18780 PR debug/4461
18781 * varasm.c (get_pool_constant_mark): New.
18782 * rtl.h (get_pool_constant_mark): Add prototype.
18783 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
18784 be represented if it has not been output.
18785
18786 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
18787
18788 * combine.c (do_SUBST): Sanity check substitutions of
18789 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
18790 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
18791 CONST_INT into its operand.
18792 (known_cond): Likewise, for ZERO_EXTEND.
18793 * simplify-rtx.c (simplify_unary_operation): Fix condition to
18794 allow for simplification of wide modes. Reject CONST_INTs in
18795 ZERO_EXTEND when their actual mode is not given.
18796
18797 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
18798
18799 * c-decl.c (pushdecl): If no global declaration is found for an
18800 extern declaration in block scope, try a limbo one.
18801
18802 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18803
18804 PR c++/4401
18805 * c-common.c (pointer_int_sum): Moved from...
18806 * c-typeck.c (pointer_int_sum): ...here.
18807 * c-common.h (pointer_int_sum): Add prototype.
18808
18809 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18810
18811 PR c++/5713
18812 * c-decl.c (duplicate_decls): Return 0 if issued error about
18813 redeclaration.
18814
18815 2002-02-20 Roger Sayle <roger@eyesopen.com>
18816 Jakub Jelinek <jakub@redhat.com>
18817
18818 PR c/4389
18819 * tree.c (host_integerp): Ensure that the constant integer is
18820 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
18821 when pos is zero or non-zero respectively. Clarify comment.
18822 * c-format.c (check_format_info_recurse): Fix host_integerp
18823 usage; the pos argument should be zero when assigning to a
18824 signed HOST_WIDE_INT.
18825
18826 2002-02-20 Richard Henderson <rth@redhat.com>
18827
18828 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
18829 of the operand, rather than assuming TImode.
18830 (ix86_expand_binop_builtin): Cope with commutative patterns
18831 using nonimmediate_operand for both operands.
18832 (ix86_expand_timode_binop_builtin): Likewise.
18833 (ix86_expand_store_builtin): Validate operand 1.
18834 (ix86_expand_unop1_builtin): Likewise.
18835
18836 2002-02-20 Philip Blundell <philb@gnu.org>
18837
18838 PR 5705
18839 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
18840
18841 2002-02-20 Richard Henderson <rth@redhat.com>
18842
18843 PR c/5615
18844 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
18845
18846 2002-02-20 Tom Tromey <tromey@redhat.com>
18847
18848 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18849 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18850 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18851 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18852 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
18853 unconditionally.
18854
18855 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
18856
18857 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
18858 for (const_int 0) in X not just INTVAL.
18859
18860 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
18861
18862 * doc/extend.texi: Avoid or reduce overfull hboxes.
18863
18864 2002-02-20 Diego Novillo <dnovillo@redhat.com>
18865
18866 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
18867 operations if the field does not start at a mode boundary.
18868
18869 2001-02-20 Joel Sherrill <joel@OARcorp.com>
18870
18871 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
18872 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
18873 Also done for -Acpu and -Amachine.
18874
18875 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
18876
18877 * cppinit.c (init_dependency_output): Take deps output file
18878 from -o if none given with -MF. Suppress normal output.
18879 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
18880 * doc/cpp.texi, doc/invoke.texi: Update.
18881
18882 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18883
18884 * toplev.c (output_quoted_string): Write unprintable
18885 characters with octal escapes.
18886
18887 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18888
18889 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
18890 really_call_used[VRSAVE_REGNO] if not Altivec.
18891
18892 2002-02-19 Alan Modra <amodra@bigpond.net.au>
18893
18894 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
18895 MODE_MASK.
18896 (constant_pool_expr_1): Fix formatting.
18897 (rs6000_legitimize_reload_address): Likewise.
18898
18899 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18900
18901 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
18902 now that we have one.
18903
18904 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18905
18906 * tree.h (struct tree_common): Remove aux. Add unused_0 at
18907 end of first block of bitfields (which was only seven bits);
18908 rename dummy to unused_1; remove comment which is no longer true.
18909
18910 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18911
18912 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
18913
18914 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18915
18916 PR 5399
18917 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
18918 if generating PIC.
18919
18920 PR 5054
18921 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
18922 arm_is_longcall_p rather than inspecting call-type cookie
18923 directly.
18924 (call_value_insn) [TARGET_THUMB]: Likewise.
18925
18926 2002-02-19 Graham Stott <grahams@redhat.com>
18927
18928 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
18929
18930 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18931
18932 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
18933 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
18934 (FP_SAVE_INLINE): Delete.
18935
18936 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
18937 * config/rs6000/eabi.asm: Remove ABI save restore routines.
18938 * config/rs6000/t-ppccomm: Build crtsavres.o.
18939 * config/rs6000/crtsavres.asm: New file.
18940
18941 2002-02-19 Philip Blundell <philb@gnu.org>
18942
18943 * config/arm/arm.c (use_return_insn): Don't reject interrupt
18944 functions.
18945 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
18946 (output_return_instruction): Allow interrupt functions to return with
18947 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
18948 (arm_expand_prologue): Subtract 4 before stacking LR in an
18949 interrupt function.
18950
18951 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18952
18953 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
18954 decl, not just FUNCTION_DECL.
18955 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
18956 (arm_assemble_integer): Likewise.
18957 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
18958 marked local.
18959
18960 2002-02-19 matthew green <mrg@eterna.com.au>
18961
18962 * config.gcc (sparc-*-netbsdelf*): Enable target.
18963 (sparc64-*-netbsd*): New target.
18964 * config/sparc/netbsd-elf.h: New file.
18965 * config/sparc/t-netbsd64: New file.
18966
18967 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18968
18969 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
18970
18971 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
18972
18973 * doc/invoke.texi: explicitly list the style guidelines that
18974 -Weffc++ checks for.
18975
18976 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
18977
18978 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
18979
18980 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
18981
18982 PR other/5718
18983 * gcc.c (cpp_unique_options): Treat -o as indicating object file
18984 only if not -E. If -E, pass -o through to the preprocessor.
18985
18986 2002-02-19 Kazu Hirata <kazu@hxi.com>
18987
18988 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
18989 register number with an appropriate macro.
18990
18991 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18992
18993 * doc/rtl.texi (Constants): Close @code tag.
18994
18995 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
18996
18997 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
18998 ("mmx_uavgv4hi3"): Same.
18999 ("pmulhrwv4hi3"): Same.
19000
19001 * tree-inline.c (walk_tree): Handle vectors.
19002
19003 * c-common.c (constant_expression_warning): Handle vectors.
19004 (overflow_warning): Same.
19005
19006 * sched-deps.c (sched_analyze_2): Handle vectors.
19007
19008 * rtlanal.c (rtx_unstable_p): Handle vectors.
19009 (rtx_varies_p): Same.
19010 (count_occurrences): Same.
19011 (regs_set_between_p): Same.
19012 (modified_between_p): Same.
19013 (modified_in_p): Same.
19014 (volatile_insn_p): Same.
19015 (volatile_refs_p): Same.
19016 (side_effects_p): Same.
19017 (may_trap_p): Same.
19018 (inequality_comparisons_p): Same.
19019 (replace_regs): Same.
19020 (computed_jump_p_1): Same.
19021
19022 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
19023 argument.
19024 (inner_mode_array): New.
19025 (copy_rtx): Handle vectors.
19026 (copy_most_rtx): Same.
19027 (rtx_equal_p): Same.
19028 (get_mode_alignment): Adjust for vectors.
19029
19030 * resource.c (mark_referenced_resources): Handle vectors.
19031 (mark_set_resources): Same.
19032
19033 * reload1.c (eliminate_regs): Handle vectors.
19034 (elimination_effects): Same.
19035 (scan_paradoxical_subregs): Same.
19036
19037 * reload.c (subst_reg_equivs): Handle vectors.
19038
19039 * regrename.c (scan_rtx): Handle vectors.
19040
19041 * regclass.c (reg_scan_mark_refs): Handle vectors.
19042
19043 * recog.c (find_single_use_1): Handle vectors.
19044
19045 * local-alloc.c (equiv_init_varies_p): Handle vectors.
19046 (contains_replace_regs): Same.
19047 (memref_referenced_p): Same.
19048
19049 * integrate.c (copy_rtx_and_substitute): Handle vectors.
19050 (subst_constants): Same.
19051
19052 * genattrtab.c (attr_copy_rtx): Handle vectors.
19053 (encode_units_mask): Same.
19054 (clear_struct_flag): Same.
19055 (count_sub_rtxs): Same.
19056
19057 * gcse.c (want_to_gcse_p): Handle vectors.
19058 (oprs_unchanged_p): Same.
19059 (hash_expr_1): Same.
19060 (oprs_not_set_p): Same.
19061 (expr_killed_p): Same.
19062 (compute_transp): Same.
19063 (store_ops_ok): Same.
19064
19065 * function.c (purge_addressof_1): Do not allow paradoxical subregs
19066 of vectors.
19067 (fixup_var_refs_1): Same.
19068 (instantiate_virtual_regs_1): Same.
19069
19070 * fold-const.c (operand_equal_p): Handle vectors.
19071 (fold): Same.
19072 (rtl_expr_nonnegative_p): Same.
19073
19074 * flow.c (mark_used_regs): Handle vectors.
19075
19076 * df.c (df_uses_record): Handle vectors.
19077
19078 * cselib.c (cselib_subst_to_values): Handle vectors.
19079 (cselib_mem_conflict_p): Same.
19080 (hash_rtx): Same.
19081
19082 * cse.c (canon_reg): Handle vectors.
19083 (fold_rt): Same.
19084 (cse_process_notes): Same.
19085 (count_reg_usage): Same.
19086 (canon_hash): Same.
19087
19088 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
19089
19090 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
19091
19092 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
19093 (gen_rtx): Handle CONST_VECTOR.
19094 (gen_const_vector_0): New.
19095 (copy_rtx_if_shared): CONST_VECTORs can be shared.
19096 (reset_used_flags): Same.
19097 (copy_insn_1): Same.
19098 (initializer_constant_valid_p): Handle VECTOR_CST.
19099
19100 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
19101
19102 * doc/rtl.texi (Constants): Document const_vector.
19103 (CONST0_RTX): Update for vectors.
19104 (RTL sharing): Same.
19105
19106 * print-tree.c (print_node): Add case for VECTOR_CST.
19107
19108 * tree.h (TREE_VECTOR_CST_ELTS): New.
19109 (struct tree_vector): New.
19110 (union tree_node): Add vector node.
19111 (build_vector): Add prototype.
19112
19113 * tree.def (VECTOR_CST): New.
19114
19115 * tree.c (build_vector): New.
19116
19117 * expmed.c (make_tree): Handle CONST_VECTOR.
19118
19119 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
19120 (CONST_VECTOR_ELT): New.
19121 (CONST_VECTOR_NUNITS): New.
19122
19123 * machmode.h (GET_MODE_INNER): New.
19124 (DEF_MACHMODE): Accept 8th arg.
19125
19126 * machmode.def: Add 8th argument for vector inner mode.
19127 Add inner vector modes for vectors.
19128
19129 * rtl.def (VEC_CONST): Remove.
19130 (CONST_VECTOR): New.
19131
19132 * expr.c (clear_storage): Allow vectors.
19133 (is_zeros_p): Handle VECTOR_CST.
19134
19135 * varasm.c (output_constant_pool): Handle vectors.
19136 (rtx_const): Add veclo and vechi fields.
19137 (kind): Add RTX_VECTOR.
19138 (decode_rtx_const): Add case for vector.
19139
19140 * config/rs6000/rs6000-protos.h: Add zero_constant.
19141
19142 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
19143 constants. Force easy vector constants into memory.
19144 (easy_vector_constant): New.
19145 (emit_easy_vector_constant): New.
19146 (rs6000_legitimize_reload_address): Do not generate bad reloads on
19147 darwin.
19148
19149 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
19150 instruction does.
19151 ("altivec_lvxl"): Same.
19152 (altivec_lvebx): Same.
19153 (altivec_lvehx): Same.
19154 (altivec_lvewx): Same.
19155 ("*movv4si_const0"): New.
19156 ("*movv4sf_const0"): New.
19157 ("*movv8hi_const0"): New.
19158 ("*movv16qi_const0"): New.
19159
19160 2002-02-18 Kazu Hirata <kazu@hxi.com>
19161
19162 * config/h8300/h8300.c (notice_update_cc): Use
19163 cc_status.value2.
19164
19165 2002-02-18 Kazu Hirata <kazu@hxi.com>
19166
19167 * config/h8300/h8300.md (divmod patterns): Change the
19168 constraints for operands[1] to register_operand.
19169
19170 2002-02-18 Kazu Hirata <kazu@hxi.com>
19171
19172 * config/h8300/h8300-protos.h: Remove the prototype for
19173 p_operand.
19174 * config/h8300/h8300.c (p_operand): Remove.
19175 * config/h8300/h8300.md: Replace p_operand with
19176 const_int_operand.
19177
19178 2002-02-18 Philip Blundell <pb@nexus.co.uk>
19179
19180 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
19181 comment.
19182 (output_return_instruction): Allow use of LDR to unstack
19183 return addresss even for interrupt handlers or when
19184 interworking. If compiling for ARMv5, use interworking-safe
19185 return instructions by default. Remove duplicated code and
19186 lengthy "strcat" sequences.
19187
19188 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19189
19190 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
19191 (LINK_EH_SPEC): Define.
19192 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
19193
19194 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
19195
19196 * config/s390/s390.c (s390_emit_prologue): Do not set the
19197 frame_related flag for call-clobbered registers.
19198
19199 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
19200
19201 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
19202 (construct_container): Fix handling of SSE operands.
19203 (ix86_expand_builtin): Fix handling of 64bit pointers.
19204 (mmx_maskmovq_rex): New pattern.
19205
19206 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
19207
19208 * regrename.c (kill_set_value): Handle subregs properly.
19209
19210 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
19211
19212 * objc/objc-act.c (handle_impent): Remove leading '*'
19213 from objc_class_name.
19214
19215 2002-02-17 Richard Henderson <rth@redhat.com>
19216
19217 * config/alpha/alpha.c (some_small_symbolic_operand,
19218 some_small_symbolic_operand_1, split_small_symbolic_operand,
19219 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
19220 Handle small SYMBOL_REFs anywhere, not just inside memories.
19221 * config/alpha/alpha-protos.h: Update.
19222 * config/alpha/alpha.h (PREDICATE_CODES): Update.
19223 * config/alpha/alpha.md (small symbolic operand splitter): Update.
19224
19225 2002-02-17 Roland McGrath <roland@frob.com>
19226
19227 * config.gcc (powerpc-*-gnu-gnualtivec*,
19228 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
19229 * config/rs6000/gnu.h: New file.
19230 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
19231 Grok "gnu" in rs6000_abi_name.
19232 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
19233 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
19234 Grok -mcall-gnu analogous to -mcall-linux et al.
19235 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
19236 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
19237 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
19238
19239 2002-02-17 Jakub Jelinek <jakub@redhat.com>
19240
19241 PR c/3444:
19242 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
19243 shortening.
19244
19245 2002-02-17 Philipp Thomas <pthomas@suse.de>
19246
19247 * config/cris/cris.h: Undefine STARTFILE_SPEC and
19248 ENDFILE_SPEC before (re)defining them.
19249
19250 2002-02-17 Kazu Hirata <kazu@hxi.com>
19251
19252 * config/h8300/h8300.c: Fix formatting.
19253 * config/h8300/h8300.h: Likewise.
19254
19255 2002-02-17 Philipp Thomas <pthomas@suse.de>
19256
19257 * doc/tm.texi: Explain why empty strings should not be
19258 marked for translation.
19259
19260 2002-02-17 Philipp Thomas <pthomas@suse.de>
19261
19262 * final.c (output_operand_lossage): Changed to accept
19263 printf style arguments. Change calls where necessary.
19264 * output.h (output_operand_lossage): Change declaration
19265 accordingly. Update copyright.
19266 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
19267 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
19268 Update copyright date where necessary.
19269
19270 * config/i386/i386.c (print_operand): Likewise. Remove use of
19271 sprintf.
19272
19273 * config/cris/cris.c (cris_operand_lossage): Likewise.
19274 Rename parameter so that exgettext recognizes it as
19275 translatable message.
19276 (LOSE_AND_RETURN): Rename parameter to msgid.
19277
19278 2002-02-17 Kazu Hirata <kazu@hxi.com>
19279
19280 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
19281 hard coded register number with an appropriate macro.
19282 (HARD_REGNO_MODE_OK): Likewise.
19283 (ARG_POINTER_REGNUM): Likewise.
19284 (STATIC_CHAIN_REGNUM): Likewise.
19285 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
19286 * config/h8300/h8300.md (define_constants): Define more
19287 register numbers.
19288
19289 2002-02-17 Philipp Thomas <pthomas@suse.de>
19290
19291 * config/i386/i386.h: Don't mark empty strings for translation.
19292
19293 2002-02-16 H.J. Lu <hjl@gnu.org>
19294
19295 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
19296
19297 2002-02-16 Zack Weinberg <zack@codesourcery.com>
19298
19299 * cppinit.c (merge_include_chains): Check for brack being
19300 NULL before attempting to merge it with qtail.
19301
19302 2002-02-16 Andrew Cagney <ac131313@redhat.com>
19303
19304 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
19305 DBX_DEBUG.
19306
19307 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
19308
19309 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
19310
19311 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
19312
19313 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
19314 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
19315 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
19316
19317 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19318
19319 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
19320 now only if !TARGET_FIX.
19321 (*movsi_nt_vms_fix): New pattern.
19322
19323 2002-02-16 Douglas B Rupp <rupp@gnat.com>
19324
19325 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
19326 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
19327 (alpha_sa_mask, alpha_sa_size): Reflect above change.
19328 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
19329 (alpha_start_function, alpha_expand_epilogue): Likewise.
19330 (unicosmk_gen_dsib): Likewise.
19331
19332 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19333
19334 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
19335
19336 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
19337
19338 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
19339 check_and_change_labels, s390_final_chunkify): Delete.
19340 (s390_split_branches, s390_chunkify_pool): New functions.
19341 (s390_function_prologue): Call them.
19342
19343 * config/s390/s390.h (S390_REL_MAX): Delete.
19344 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
19345
19346 * config/s390/s390.md (cjump, icjump, jump): Fix length
19347 attribute calculation.
19348
19349
19350 2002-02-15 David Edelsohn <edelsohn@gnu.org>
19351
19352 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
19353 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
19354
19355 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
19356
19357 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
19358 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
19359 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
19360
19361 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
19362
19363 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
19364
19365 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
19366
19367 * reload.c (find_dummy_reload): Check that an output register
19368 is valid for its mode.
19369
19370 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
19371
19372 * combine.c (known_cond): After replacing the REG of a SUBREG, try
19373 to simplify it.
19374
19375 * function.c (assign_parms): Demote promoted argument passed by
19376 transparent reference.
19377
19378 2001-02-14 Joel Sherrill <joel@OARcorp.com>
19379
19380 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
19381 -Acpu() and -Amachine() to eliminate warnings.
19382
19383 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
19384
19385 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
19386
19387 2002-02-14 Kazu Hirata <kazu@hxi.com>
19388
19389 * config/h8300/h8300-protos.h: Update the prototype for
19390 const_costs.
19391 * config/h8300/h8300.c (const_costs): Treat SET as a little
19392 more expensive operation.
19393 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
19394 reference to const_costs.
19395
19396 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
19397
19398 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
19399
19400 2002-02-14 Jakub Jelinek <jakub@redhat.com>
19401
19402 PR c/5503:
19403 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
19404 use arguments from newtype.
19405
19406 2002-02-13 Eric Christopher <echristo@redhat.com>
19407
19408 * config/mips/mips.c (override_options): Add check for march/mipsX
19409 on the same command line. Fix error message in cpu processing.
19410 Remove architecture and ISA checks.
19411
19412 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
19413
19414 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
19415
19416 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
19417
19418 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
19419
19420 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
19421 alternatives.
19422 ("*movv8hi_internal1"): Same.
19423 ("*movv16qi_internal1"): Same.
19424 ("*movv4sf_internal1"): Same.
19425
19426 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
19427 not push_reload for altivec modes.
19428
19429 2002-02-13 Joel Sherrill <joel@OARcorp.com>
19430
19431 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
19432 all RTEMS targets including removal of #includes from config/*/rtems*.h
19433 file and adding them to tm_file setting. Added xm_defines=POSIX to
19434 many targets.
19435 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
19436 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
19437 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
19438 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
19439 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
19440 config/m68k/rtemself.h: Ditto.
19441 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
19442 config/mips/rtems64.h: Ditto.
19443 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
19444 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
19445 Ditto.
19446 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
19447 config/sparc/rtemself.h: Ditto.
19448 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
19449 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
19450 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
19451 more like arm-elf.
19452 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
19453 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
19454 target made more similar to i386-elf.
19455 * config/i386/t-rtems-i386: Added soft float support and multilibs.
19456 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
19457 be similar to config/m68k/t-m68kelf.
19458 * gthr-rtems.h: Encapsulate with extern "C" for C++.
19459
19460 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
19461
19462 * regmove.c (kill_value): Handle subregs.
19463
19464 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
19465
19466 * i386.md (mul patterns): Allow memory operand to be first;
19467 add expanders where needed; fix constraints.
19468 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
19469 Allow memory operand to be the first.
19470
19471 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
19472 operands.
19473
19474 2002-02-13 Jakub Jelinek <jakub@redhat.com>
19475
19476 PR c/5681:
19477 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
19478 GET_MODE (x).
19479
19480 2002-02-13 Jakub Jelinek <jakub@redhat.com>
19481
19482 PR optimization/5547:
19483 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
19484 all valid IA-32 address modes involving non-scaled %ebx and
19485 GOT/GOTOFF as displacement.
19486
19487 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
19488
19489 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
19490 after emitting ltorg insns.
19491
19492 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
19493 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
19494 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
19495 *abssf2): Fix "op_type" attribute.
19496
19497 2002-02-13 Douglas B Rupp <rupp@gnat.com>
19498
19499 * mkconfig.sh: Avoid using a subshell redirect.
19500 ($output.T): Change to $(output)T.
19501 (ENABLE_NLS): Remove unneeded undef.
19502
19503 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
19504 * config/alpha/x-vms (libsubdir): Define.
19505
19506 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
19507 register frame procedures. Optimize retrieving context.
19508
19509 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
19510 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
19511 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
19512
19513 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19514
19515 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
19516 Make same change as for find_base_value.
19517
19518 2002-02-13 Kazu Hirata <kazu@hxi.com>
19519
19520 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
19521 of QImode and SImode.
19522
19523 2002-02-13 Kazu Hirata <kazu@hxi.com>
19524
19525 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
19526 length computation of movsi.
19527 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
19528
19529 2002-02-13 Kazu Hirata <kazu@hxi.com>
19530
19531 * config/h8300/h8300.md (subqi3): Tighten the predicate for
19532 operands[2] to register_operand.
19533
19534 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
19535
19536 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
19537
19538 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
19539
19540 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
19541 for altivec_lvx* and altivec_stvx*.
19542 ("*movv4si_internal"): Add constraint for loading from GPRs.
19543 ("*movv8hi_internal1"): Same.
19544 ("*movv16qi_internal1"): Same.
19545 ("*movv4sf_internal1"): Same.
19546
19547 * config/rs6000/rs6000.c (altivec_register_operand): New.
19548
19549 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
19550 altivec_register_operand.
19551
19552 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
19553
19554 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
19555 handle SYMBOL_REF.
19556
19557 2002-02-13 Stan Shebs <shebs@apple.com>
19558
19559 * c-typeck.c (digest_init): Handle vectors.
19560 (really_start_incremental_init): Same.
19561 (pop_init_level): Same.
19562 (process_init_element): Same.
19563
19564 * varasm.c (output_constant): Same.
19565
19566 * expr.c (clear_storage): Same.
19567 (store_constructor): Same.
19568
19569 2002-02-12 Eric Christopher <echristo@redhat.com>
19570
19571 * explow.c (hard_function_value): Add comment explaining
19572 signed/unsigned comparison.
19573
19574 2002-02-12 Jakub Jelinek <jakub@redhat.com>
19575
19576 * jump.c (never_reached_warning): Add finish argument.
19577 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
19578 real insn after end.
19579 * rtl.h (never_reached_warning): Adjust prototype.
19580 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
19581 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
19582 never_reached_warning.
19583
19584 2002-02-12 Graham Stott <grahams@redhat.com>
19585
19586 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
19587
19588 2002-02-12 Kazu Hirata <kazu@hxi.com>
19589
19590 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
19591 logical shifts on H8/300.
19592 (shift_alg_si): Improve several shifts on H8/300.
19593 (get_shift_alg): Likewise.
19594
19595 2002-02-12 Graham Stott <grahams@redhat.com>
19596
19597 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
19598
19599 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19600
19601 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
19602 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
19603
19604 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
19605
19606 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
19607 non-CONST_INT through default_assemble_integer.
19608 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
19609 <case 8>: Abort for CONST_DOUBLE.
19610
19611 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
19612
19613 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
19614 is specified.
19615 * config/pa/pa-linux.h (LIB_SPEC): Delete.
19616 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
19617
19618 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
19619
19620 * config/stormy16/stormy16.md (zero_extendqihi2): New.
19621
19622 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
19623
19624 * regrename.c (regrename_optimize): Don't accept a
19625 part-clobbered register if the replaced register is not part
19626 clobbered.
19627
19628 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
19629 take padding into account when computing the argument value.
19630
19631 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
19632
19633 * combine.c (try_combine): Apply substitutions in
19634 CALL_INSN_FUNCTION_USAGE too.
19635
19636 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
19637
19638 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
19639 __builtin_altivec_abs*.
19640 (bdesc_abs): New.
19641
19642 * config/rs6000/rs6000.h (rs6000_builtins): Add
19643 ALTIVEC_BUILTIN_ABS*.
19644
19645 * config/rs6000/altivec.h: Use const char for builtins expecting
19646 literals.
19647 (vec_abs): New versions for C and C++.
19648 (vec_abss): Same.
19649
19650 2002-02-10 Kazu Hirata <kazu@hxi.com>
19651
19652 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
19653 using Pmode.
19654
19655 2002-02-10 Kazu Hirata <kazu@hxi.com>
19656
19657 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
19658 constant definition from h8300.md.
19659 (FRAME_POINTER_REGNUM): Likewise.
19660 * config/h8300/h8300.md (define_constants): Add FP_REG.
19661
19662 2002-02-10 Kazu Hirata <kazu@hxi.com>
19663
19664 * config/h8300/h8300.c (print_operand): Remove redundant code.
19665
19666 2002-02-10 Kazu Hirata <kazu@hxi.com>
19667
19668 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
19669 * config/h8300/h8300.c (byte_reg): Make it static.
19670
19671 2002-02-10 Richard Henderson <rth@redhat.com>
19672
19673 PR c/5623
19674 * c-typeck.c (incomplete_type_error): Handle flexible array members.
19675
19676 2002-02-10 Richard Henderson <rth@redhat.com>
19677
19678 PR c++/5624
19679 * tree.c (append_random_chars): Don't abort if main_input_filename
19680 does not exist.
19681
19682 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
19683
19684 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
19685
19686 2002-02-10 Kazu Hirata <kazu@hxi.com>
19687
19688 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
19689 (pushhi1): Likewise.
19690
19691 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
19692
19693 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
19694 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
19695
19696 2002-02-09 David O'Brien <obrien@FreeBSD.org>
19697
19698 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
19699 remove MASK_VIS.
19700 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
19701
19702 2002-02-09 Kazu Hirata <kazu@hxi.com>
19703
19704 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
19705 a half of an SImode register on H8/300.
19706
19707 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
19708
19709 * i386.md (movdi_2): Add missing '!'.
19710
19711 2002-02-09 Kazu Hirata <kazu@hxi.com>
19712
19713 * config/h8300/h8300.h: Fix formatting. Remove commented-out
19714 definitions.
19715
19716 2002-02-09 Kazu Hirata <kazu@hxi.com>
19717
19718 * config/h8300/h8300.md (length): Correct the distance valid
19719 for the short branch.
19720
19721 2002-02-09 Kazu Hirata <kazu@hxi.com>
19722
19723 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
19724
19725 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
19726
19727 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
19728 registers in SImode.
19729 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
19730 part-clobbered.
19731
19732 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
19733 patch.
19734
19735 Contribute sh64-elf.
19736 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
19737 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
19738 (sh_cannot_modify_jumps_p): New function.
19739 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
19740 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
19741 (sh_ms_bitfield_layout_p): New function.
19742 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
19743 Zack Weinberg <zack@codesourcery.com>
19744 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
19745 expand_simple_binop instead of expand_binop.
19746 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
19747 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
19748 use of .quad and .uaquad.
19749 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
19750 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
19751 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19752 * config/sh/sh.md (movdi_const, movdi_const_32bit,
19753 movdi_const_16bit): Make sure all CONSTs have modes.
19754 (sym2PIC): Ditto, but by adjusting all callers.
19755 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
19756 if the prologue calls the SHmedia argument decoder or register
19757 saver.
19758 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19759 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
19760 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
19761 (sh_expand_epilogue): Don't emit USE of return target register.
19762 (prepare_move_operands): Legitimize DImode PIC addresses.
19763 (sh_media_register_for_return): Skip tr0, used to initialize the
19764 PIC register.
19765 (sh_expand_prologue): Remove explicit USE of return register.
19766 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
19767 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
19768 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
19769 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
19770 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
19771 EXTRA_CONSTRAINT_T.
19772 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
19773 (MOVI_SHORI_BASE_OPERAND_P): New.
19774 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
19775 (EXTRA_CONSTRAINT_T): Define in terms of them.
19776 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
19777 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
19778 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
19779 alternatives supporting TARGET_REGS.
19780 (UNSPEC_GOTPLT): New constant.
19781 (movdi split): Move incrementing of LABEL_NUSES...
19782 (movdi_const, movdi_const_32bit): Here. Use
19783 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
19784 (movdi_const_16bit): New.
19785 (call, call_value) [flag_pic]: Use GOTPLT.
19786 (call_pop, call_value_pop): New expands.
19787 (call_pop_compact, call_pop_rettramp): New insns.
19788 (call_value_pop_compact, call_value_pop_rettramp): New insns.
19789 (sibcall) [flag_pic]: Use GOT.
19790 (builtint_setjmp_receiver): Remove bogus, unused expand.
19791 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
19792 (*pt, *ptb, ptrel): New insns.
19793 (sym2GOT): Handle DImode GOT.
19794 (sym2GOTPLT, symGOTPLT2reg): New expands.
19795 (sym2PIC): New expand.
19796 (shcompact_return_tramp): Use GOTPLT to return trampoline.
19797 (shcompact_return_tramp_i): Use return register explicitly.
19798 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
19799 disable flag_reorder_blocks.
19800 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19801 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
19802 clobbers, for clarity.
19803 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
19804 restoring of r0 in macl as MAYBE_DEAD.
19805 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
19806 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
19807 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
19808 alter_subreg all over.
19809 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
19810 reload, instead of emitting instructions that would require
19811 reloading.
19812 (casesi_load_media): Add missing modes.
19813 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
19814 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
19815 as used if the argument decoder is called.
19816 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
19817 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
19818 Pmode, then extend it to DImode if necessary.
19819 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
19820 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
19821 constants in FPU-enabled SHmedia, let them be loaded from memory.
19822 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
19823 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
19824 Adjust whitespace in assembly output templates.
19825 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
19826 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
19827 mode of if_then_else.
19828 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
19829 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
19830 sh.h.
19831 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
19832 Joern Rennecke <amylaar@redhat.com>
19833 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
19834 (SUBTARGET_CPP_PTR_SPEC): New.
19835 (SUBTARGET_CPP_SPEC): Remove.
19836 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
19837 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
19838 Fix typo in previous checkin.
19839 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
19840 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
19841 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
19842 Alexandre Oliva <aoliva@redhat.com>
19843 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
19844 what single FP register can hold for SHmedia target.
19845 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
19846 Alexandre Oliva <aoliva@redhat.com>
19847 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
19848 Do not split into SUBREG.
19849 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
19850 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
19851 and added new functions as specified in SH5 ABI r9.
19852 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
19853 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
19854 8-byte boundary.
19855 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
19856 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
19857 gen_consttable_4 and gen_consttable_8. Emit multiple labels
19858 and consttable_window_ends.
19859 2001-06-03 Graham Stott <grahams@redhat,com>
19860 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
19861 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
19862 * config/sh/sh.c (print_operand): Handle floating-point pair,
19863 vector and matrix registers.
19864 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
19865 vector modes into account.
19866 * config/sh/sh.md (movv2sf): Split move between registers into
19867 movdf.
19868 (movv4sf, movv16sf): Introduce insns that get split only after
19869 reload.
19870 * config/sh/shmedia.h: Fix Copyright dates.
19871 * config/sh/ushmedia.h: Likewise. Move loop counter
19872 declarations into conditionals that uses them.
19873 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
19874 loop boundary.
19875 * config/sh/sshmedia.h: Fix Copyright dates.
19876 (sh_media_PUTCFG): Fix constraints.
19877 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
19878 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
19879 ptrmemfunc_vbit_in_delta for SH5.
19880 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
19881 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
19882 * invoke.texi: Likewise.
19883 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
19884 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
19885 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
19886 GCC_pop_shmedia_regs_nofpu): New global symbols.
19887 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
19888 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
19889 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
19890 compact function with nonlocal labels.
19891 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
19892 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
19893 (initial_elimination_offset): Account for their stack space.
19894 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
19895 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
19896 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
19897 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
19898 least one of the operands to be a register.
19899 (movv2sf): Likewise. Renamed to movv2sf_i.
19900 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
19901 prepare_move_operands() before emitting SHmedia insns.
19902 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
19903 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
19904 Don't save nor initialize r12. Don't mis-align the stack.
19905 Pad the code with a nop.
19906 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
19907 stack.
19908 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
19909 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
19910 [__SHMEDIA__]: Implement.
19911 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
19912 * config/sh/sh.md: Set latency of `pt' closer to reality.
19913 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
19914 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
19915 Set move, load and store type attributes.
19916 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
19917 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
19918 profiling.
19919 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
19920 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
19921 * config/sh/sh.c (sh_media_register_for_return): New function.
19922 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
19923 branch-target register.
19924 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
19925 * config/sh/sh.md (return_media_i): Use any call-clobbered
19926 branch-target register.
19927 (return_media): If r18 wasn't copied in the prologue, copy it
19928 here.
19929 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
19930 Clear class FP0_REGS.
19931 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
19932 from elf.h.
19933 2001-03-08 DJ Delorie <dj@redhat.com>
19934 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
19935 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
19936 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
19937 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
19938 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
19939 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
19940 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
19941 return value correctly for call_cookie.
19942 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
19943 * config/sh/crt1.asm (start): Modified so as to call
19944 ___setup_argv_and_call_main.
19945 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
19946 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
19947 SHmedia mode.
19948 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
19949 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
19950 (STRIP_NAME_ENCODING): Use it.
19951 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
19952 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
19953 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
19954 prepare_scc_operands().
19955 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
19956 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
19957 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
19958 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
19959 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
19960 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
19961 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
19962 used in shcompact_incoming_args.
19963 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
19964 change.
19965 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
19966 mode.
19967 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
19968 Adjust accordingly.
19969 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19970 Simplify. Adjust. Add sanity check.
19971 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
19972 FPU_SINGLE_BIT.
19973 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
19974 TARGET_SHCOMPACT.
19975 (udivsi3, divsi3): Use them.
19976 (force_mode_for_call): New insn.
19977 (call, call_value, sibcall_value): Emit it before SHcompact
19978 calls.
19979 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
19980 * config/sh/sh.md (call, call_value, sibcall): Make sure the
19981 call cookie is non-NULL before taking its value.
19982 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
19983 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
19984 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
19985 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
19986 block.
19987 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
19988 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
19989 temporary for stack adjusts. Use MACL and MACH to pass
19990 arguments to shcompact_incoming_args.
19991 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
19992 clobber r1.
19993 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
19994 (nested_trampoline): Load static chain address into r1.
19995 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
19996 2001-01-07 Alexandre Oliva <aoliva@redhat.com
19997 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
19998 fp_arith_reg_operand().
19999 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
20000 * config/sh/sh.md (casesi): Sign-extend the first two operands,
20001 and use signed compares for them.
20002 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
20003 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
20004 ones properly aligned.
20005 (find_barrier): Account for extra alignment needed for 8-byte wide
20006 constants.
20007 (machine_dependent_reorg): Require a label for the second 4-byte
20008 constant after an 8-byte one.
20009 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
20010 change.
20011 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
20012 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
20013 last_float when switching float modes.
20014 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
20015 auto-increment for general-purpose registers.
20016 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
20017 result.
20018 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
20019 for stack adjust.
20020 * config/sh/sh.c (sh_builtin_saveregs): Support using all
20021 registers for varargs.
20022 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
20023 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
20024 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
20025 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
20026 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
20027 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
20028 call_cookie accordingly.
20029 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
20030 (SHCOMPACT_BYREF): Likewise.
20031 (SHCOMPACT_FORCE_ON_STACK): New macro.
20032 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
20033 (sh_builtin_saveregs): Likewise.
20034 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20035 shcompact_incoming_args): Use new shift values. Support
20036 sequences of consecutive and non-consecutive pushes/pops.
20037 * config/sh/sh.md (return): Don't explicitly use PR_REG.
20038 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
20039 * config/sh/sh.h (TEXT_SECTION): Define.
20040 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
20041 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
20042 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
20043 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
20044 return values on FPU-enabled SHmedia.
20045 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
20046 FPU-enabled SHmedia.
20047 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
20048 value is returned in a non-FP reg and is not returned by
20049 reference.
20050 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
20051 jump_ind.
20052 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
20053 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
20054 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
20055 quad-aligned to be passed by callee-copy reference.
20056 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
20057 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
20058 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
20059 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
20060 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
20061 copying low-numbered FP regs to r7 and r8.
20062 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
20063 FP regs to general-purpose regs only if the copy was passed on the
20064 stack.
20065 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
20066 copying FP reg to r9.
20067 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
20068 copy FP regs to general-purpose regs only in outgoing calls.
20069 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
20070 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
20071 HOST_WIDE_INT.
20072 * config/sh/sh.h (struct sh_args): Document all fields.
20073 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
20074 passed partially on the stack should not consider making
20075 sibcalls.
20076 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
20077 stack_regs only for incoming calls. When passing FP args,
20078 make sure there are FP regs available before modifying
20079 call_cookie.
20080 (SHCOMPACT_BYREF): Pass double args in general-purpose
20081 registers by reference.
20082 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
20083 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
20084 attempt to generate sibcalls if the caller got any arguments
20085 by reference.
20086 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
20087 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
20088 to 8-byte boundaries.
20089 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
20090 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
20091 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
20092 stored in the stack.
20093 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
20094 for the offsets to have the ISA bit set.
20095 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
20096 invocation. Use beq instead of bgt to mark end of sequence of
20097 loads.
20098 (shcompact_incoming_args): Fix store of r2. Use beq instead of
20099 bgt to mark end of sequence of stores.
20100 * config/sh/sh.c (arith_operand): Don't check whether
20101 CONST_OK_FOR_J for now.
20102 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
20103 instead of long for conversion.
20104 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
20105 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
20106 before passing it to fprintf.
20107 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
20108 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
20109 Call set_fpscr before reading/writing SR.
20110 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
20111 Call set_fpscr.
20112 * config/sh/lib1funcs.asm: Add `.align 2' directives before
20113 SHmedia code.
20114 (FMOVD_WORKS): Define on SH5 with FPU.
20115 (set_fpscr): Define on SH5. Remove separate _fpscr_values
20116 setting.
20117 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
20118 _fpscr_values.
20119 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
20120 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
20121 address.
20122 (ia_main_table): Ditto.
20123 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
20124 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
20125 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
20126 the definitions from sh.h.
20127 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
20128 TARGET_SH5.
20129 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
20130 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
20131 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
20132 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
20133 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
20134 Increment LABEL_NUSES.
20135
20136 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
20137 TARGET_SH5.
20138 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
20139 defined.
20140 * config/sh/elf.h (SIZE_TYPE): Likewise.
20141 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
20142 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20143 shcompact_incoming_args): Load switch table addresses using
20144 datalabel.
20145 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
20146 (NO_BUILTIN_SIZE_TYPE): Define.
20147 (SIZE_TYPE): Don't define.
20148 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
20149 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
20150 definition of __SH5__=32 for -m5-compact-nofpu.
20151 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
20152 ADDR_DIFF_VEC.
20153 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
20154 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
20155 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
20156 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
20157 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
20158 (INSN_LENGTH_ALIGNMENT): Likewise.
20159 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
20160 * config/sh/sh.md (call, call_value, sibcall): Simplify
20161 copying of non-branch-target register.
20162 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
20163 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
20164 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
20165 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
20166 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
20167 floating-point values as structs.
20168 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
20169 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
20170 general-purpose register.
20171 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
20172 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
20173 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
20174 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
20175 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
20176 (ENCODE_SECTION_INFO): Enclose variables and constants in
20177 DATALABEL unspecs.
20178 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
20179 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
20180 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
20181 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
20182 only for LABEL_REFs. For SYMBOL_REFs, prepend
20183 SH_DATALABEL_ENCODING to the symbol name.
20184 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
20185 convert_mode().
20186 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
20187 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
20188 UNSPEC_DATALABEL.
20189 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
20190 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
20191 (DATALABEL_REF_P): Don't require CONST.
20192 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
20193 REL label.
20194 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
20195 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
20196 right.
20197 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
20198 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
20199 Use shallow_copy_rtx and PUT_MODE to change the mode of
20200 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
20201 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
20202 on SHmedia using GENERAL_REGs.
20203 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
20204 bltu_media_i): Fix reversion of conditions.
20205 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
20206 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
20207 * config/sh/sh.c (output_far_jump): Save r13 in macl.
20208 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
20209 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
20210 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
20211 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
20212 (GCC_nested_trampoline): Likewise.
20213 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
20214 * config/sh/sh.c (gen_datalabel_ref): Define.
20215 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
20216 (INITIALIZE_TRAMPOLINE): Likewise.
20217 (TRAMPOLINE_ADJUST_ADDRESS): Define.
20218 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
20219 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
20220 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
20221 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
20222 (ic_invalidate): Adjust for SH5.
20223 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
20224 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
20225 _nested_trampoline.
20226 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
20227 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
20228 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
20229 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
20230 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
20231 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
20232 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
20233 * config/sh/sh.c (target_reg_operand): Match only target-branch
20234 registers and pseudos that aren't virtual registers.
20235 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
20236 Copy operands that don't match target_reg_operand to pseudos.
20237 (call_media, call_value_media, sibcall_media): Use
20238 target_reg_operand instead of target_operand.
20239 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
20240 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
20241 * config/sh/sh.c (target_reg_operand): Match hardware registers
20242 other than branch-target registers.
20243 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
20244 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
20245 (fpscr_values) [SH5 == 32]: Define.
20246 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
20247 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
20248 Handle function addresses coming in SUBREGs.
20249 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
20250 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20251 shcompact_return_trampoline): Use datalabel where appropriate.
20252 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
20253 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
20254 general-purpose register to copy one branch-target register to
20255 another.
20256 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
20257 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
20258 SYMBOL_REFs with VOIDmode.
20259 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
20260 bltu_media_i): New insns.
20261 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
20262 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
20263 (INIT_CUMULATIVE_ARGS): Likewise.
20264 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
20265 * machmode.def (V16SFmode): New mode.
20266 * c-common.c (type_for_mode): Support V2SF and V16SF.
20267 * tree.c (build_common_tree_nodes_2): Likewise.
20268 * tree.h (tree_index): Likewise.
20269 * calls.c (emit_call_1): Take args_so_far. Adjust all
20270 callers. Introduce CALL_POPS_ARGS.
20271 * tm.texi (CALL_POPS_ARGS): Document.
20272 * config/sh/crt1.asm: Implement in SHmedia mode.
20273 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
20274 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
20275 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
20276 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
20277 Implement divsi and udivsi in SHmedia mode. Introduce
20278 SHcompact trampolines.
20279 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
20280 only in SHmedia64.
20281 (regno_reg_class): Rewrite.
20282 (fp_reg_names): Remove.
20283 (sh_register_names, sh_additional_register_names): New.
20284 (print_operand): Added `u'. Support SUBREGs in addresses.
20285 Add parentheses around shifted CONSTs.
20286 (output_file_start): Output .mode and .abi directives.
20287 (shiftcosts, addsubcosts, multcosts): Adjust.
20288 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
20289 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
20290 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
20291 bytes, not registers. Take into account the need for the
20292 SHcompact incoming args trampoline. Adjust all callers.
20293 (sh_expand_prologue): Take stack_regs into account. Call
20294 incoming args trampoline. Keep stack aligned as per SH5 ABI.
20295 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
20296 stack aligned as per SH5 ABI.
20297 (sh_builtin_saveregs): Support SH5 ABI.
20298 (sh_build_va_list, sh_va_start): Likewise.
20299 (initial_elimination_offset): Take alignment into account.
20300 Compute location of PR according to the SH5 stack frame.
20301 (arith_reg_operand): Reject branch-target registers.
20302 (shmedia_6bit_operand): New.
20303 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
20304 (target_reg_operand): Match DImode only. Accept SUBREGs.
20305 (target_operand): New.
20306 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
20307 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
20308 SIBCALL_REGS for SHmedia.
20309 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
20310 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
20311 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
20312 (TARGET_SWITCHES): New SH5 flags.
20313 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
20314 VALID_REGISTER_P to disable unsupported registers.
20315 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
20316 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
20317 (FUNCTION_ARG_PADDING): Define.
20318 (FASTEST_ALIGNMENT): Adjust.
20319 (SH_REGISTER_NAMES_INITIALIZER): New.
20320 (sh_register_names): Declare.
20321 (DEBUG_REGISTER_NAMES): Define.
20322 (REGISTER_NAMES): Define based on sh_register_names.
20323 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
20324 (sh_additional_register_names): Declare.
20325 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
20326 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
20327 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
20328 (REGISTER_NATURAL_MODE): Define.
20329 (FIRST_PSEUDO_REGISTER): Adjust.
20330 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
20331 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
20332 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
20333 (VECTOR_MODE_SUPPORTED_P): Define.
20334 (REG_CLASS_CONTENTS): Adjust.
20335 (SMALL_REGISTER_CLASSES): Adjust.
20336 (REG_ALLOC_ORDER): Adjust.
20337 (INDEX_REG_CLASS): Adjust.
20338 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
20339 (CONST_OK_FOR_LETTER_P): Adjust.
20340 (PREFERRED_RELOAD_CLASS): Adjust.
20341 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
20342 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
20343 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
20344 (FIRST_FP_PARM_REG): Adjust.
20345 (CALL_POPS_ARGS): Define.
20346 (FUNCTION_ARG_REGNO_P): Adjust.
20347 (struct sh_args): New fields.
20348 (GET_SH_ARG_CLASS): Adjust.
20349 (INIT_CUMULATIVE_ARGS): Adjust.
20350 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
20351 (FUNCTION_ARG_ADVANCE): Adjust.
20352 (FUNCTION_ARG): Adjust.
20353 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
20354 (FUNCTION_ARG_CALLEE_COPIES): Define.
20355 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
20356 (STRICT_ARGUMENT_NAMING): Define.
20357 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
20358 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
20359 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
20360 (SETUP_INCOMING_VARARGS): Adjust.
20361 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
20362 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
20363 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
20364 (SUBREG_OK_FOR_INDEX_P): Adjust.
20365 (EXTRA_CONSTRAINT_S): Update.
20366 (EXTRA_CONSTRAINT_T): New.
20367 (EXTRA_CONSTRAINT): Adjust.
20368 (GO_IF_LEGITIMATE_INDEX): Adjust.
20369 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
20370 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
20371 (MOVE_MAX): Adjust.
20372 (MAX_MOVE_MAX): Define.
20373 (Pmode): Adjust.
20374 (CONST_COSTS): Adjust.
20375 (REGISTER_MOVE_COST): Adjust.
20376 (BRANCH_COST): Adjust.
20377 (TEXT_SECTION_ASM_OP): Adjust.
20378 (DBX_REGISTER_NUMBER): Adjust.
20379 (ASM_OUTPUT_DOUBLE_INT): New.
20380 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
20381 (PREDICATE_CODES): Adjust.
20382 (PROMOTE_MODE): Adjust.
20383 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
20384 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
20385 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
20386 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
20387 (DR0_REG, DR2_REG, DR4_REG): Renumber.
20388 (TR0_REG, TR1_REG, TR2_REG): New.
20389 (XD0_REG): Renumber.
20390 (UNSPEC_COMPACT_ARGS): New.
20391 (type): Added pt and ptabs.
20392 (length): Default to 4 on SHmedia. Default pt length to 12
20393 and 20 on SHmedia32 and SHmedia64, respectively.
20394 (pt): New function unit.
20395 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
20396 Add whitespace between operands of SHmedia instructions.
20397 (movdicc): Fix.
20398 (adddi3_media, addsi3_media): Adjust constraints.
20399 (subsi3) [SHmedia]: Force operand 1 into a register.
20400 (udivsi3_i1_media, udivsi3_i4_media): New.
20401 (udivsi3): Support SHmedia.
20402 (divsi3_i1_media, divsi3_i4_media): New.
20403 (divsi3): Support SHmedia.
20404 (anddi3, iordi3, xordi3): Adjust constraints.
20405 (zero_extendhidi2, zero_extendqidi2): New.
20406 (extendsidi2, extendhidi2, extendqidi2): New.
20407 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
20408 (pop_e, pop_fpul, pop_4): Likewise.
20409 (movsi_media): Support FP and BT registers.
20410 (movsi_media_nofpu): New. Adjust splits to DImode.
20411 (lduw, ldub): Renamed to zero_extend* above.
20412 (movqi_media): Fix typo.
20413 (movdi_media): Support FP and BT registers.
20414 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
20415 (movdi_const_32bit): New.
20416 (shori_media): Require immediate operand. Use `u' for output.
20417 (movdf_media, movsf_media): Simplified.
20418 (movdf_media_nofpu, movsf_media_nofpu): New.
20419 (movdf, movsf): Adjust
20420 (movv2sf, movv2sf, movv16sf): New.
20421 (beq_media, beq_media_i): Adjust constraints. Don't use
20422 scratch BT register.
20423 (bne_media, bne_media_i): Likewise.
20424 (bgt_media, bgt_media_i): Likewise.
20425 (bge_media, bge_media_i): Likewise.
20426 (bgtu_media, bgtu_media_i): Likewise.
20427 (bgeu_media, bgeu_media_i): Likewise.
20428 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
20429 bunordered): Emit jump insn. Force operands to registers when
20430 needed.
20431 (jump_media, jump): Simplify.
20432 (call_compact, call_compact_rettramp): New.
20433 (call_value_compact, call_value_compact_rettramp): New.
20434 (call_media, call_value_media): Simplify.
20435 (sibcall_compact, sibcall_media): New.
20436 (call, call_value): Adjust for SHmedia and SHcompact.
20437 (sibcall, sibcall_value, untyped_call): Likewise.
20438 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
20439 (indirect_jump): Adjust for SHmedia.
20440 (casesi_jump_media): New.
20441 (nop): Re-enable for SHmedia.
20442 (call_site): Restrict to SH1.
20443 (casesi): Adjust for SHmedia.
20444 (casesi_shift_media, casesi_load_media): New.
20445 (return): Explicitly use PR register. Call return trampoline
20446 on SHcompact.
20447 (return_i): Explicitly use PR register.
20448 (shcompact_return_tramp, shcompact_return_tramp_i): New.
20449 (return_media): Adjust.
20450 (shcompact_incoming_args): New.
20451 (epilogue): Adjust.
20452 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
20453 (movstrsi): Disable on SH5.
20454 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
20455 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
20456 (subsf3, subsf3_media): Likewise.
20457 (mulsf3, mulsf3_media, mac_media): Likewise.
20458 (divsf3, divsf3_media): Likewise.
20459 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
20460 (floatsisf2, fux_truncsfsi2): Likewise.
20461 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
20462 constraints.
20463 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
20464 (cmpunsf_media, cmpsf): Likewise.
20465 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
20466 (abssf2, abssf2_media): Likewise.
20467 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
20468 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
20469 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
20470 (floatsidf2, fix_truncdfsi2): Likewise.
20471 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
20472 constraints.
20473 (cmpeqdf_media, cmpgtdf_media): Likewise.
20474 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
20475 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
20476 (absdf2, absdf2_media): Likewise.
20477 (extendsfdf2, extendsfdf2_media): Likewise.
20478 (truncsfdf2, truncsfdf2_media): Likewise.
20479 * config/sh/sh64.h: New file.
20480 * config/sh/t-sh64: New file.
20481 * config/sh/shmedia.h: New file.
20482 * config/sh/ushmedia.h: New file.
20483 * config/sh/sshmedia.h: New file.
20484 * configure.in: Added sh64-*-elf.
20485 * configure: Rebuilt.
20486 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
20487 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
20488 (reg_class_from_letter): Use `b' for TARGET_REGS.
20489 (print_operand): Support `%M', `%m', `AND' and
20490 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
20491 (andcosts): Adjust for SHmedia.
20492 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
20493 Likewise.
20494 (target_reg_operand): New function.
20495 * config/sh/sh-protos.h (target_reg_operand): Declare.
20496 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
20497 FP registers on SH5.
20498 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
20499 on SH4.
20500 (TARGET_REGISTER_P): New macro.
20501 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
20502 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
20503 (EXTRA_CONSTRAINT_S): New macro.
20504 (EXTRA_CONSTRAINT): Adjust.
20505 (FLOAT_TYPE_SIZE): Define to 32.
20506 (Pmode): DImode on SHmedia.
20507 (CONST_COSTS): Adjust for SHmedia literals.
20508 (PREDICATE_CODES): Added target_reg_operand.
20509 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
20510 * config/sh/sh.md: Remove all attrs from SHmedia insns.
20511 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
20512 (cmpdi): Accept SHmedia.
20513 (movdicc_false, movdicc_true): New insns.
20514 (movdicc): New expand.
20515 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
20516 no_new_pseudos.
20517 (addsi3_media): Match `S' constraint.
20518 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
20519 (negdi2): Expand for SHmedia.
20520 (one_cmpldi2): New expand.
20521 (zero_extendsidi2): Change from expand to insn.
20522 (extendsidi2): Add constraints.
20523 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
20524 LD/ST address. Fix SI immediate loading split.
20525 (movhi_media, movqi_media, lduw, ldub): New insns.
20526 (movhi, movqi): Accept SHmedia.
20527 (shori_media, movdi_media): Relax input constraints. Split
20528 symbolic constants.
20529 (movdf_media, movsf_media): New insn. New split to movdi.
20530 (movdf, movsf): Match on SHmedia.
20531 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
20532 bgeu_media): New insns and splits. New insns with `_i' suffix.
20533 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
20534 (bunordered): New expand.
20535 (jump_compact): Renamed from `jump'.
20536 (jump_media): New insn.
20537 (jump): New expand.
20538 (call_media, call_value_media): New insns.
20539 (call, call_value): Adjust.
20540 (indirect_jump_compact): Renamed from `indirect_jump'.
20541 (indirect_jump_media): New insn.
20542 (indirect_jump): New expand.
20543 (untyped_call, return): Accept SHmedia.
20544 (return_media): New insn.
20545 (prologue, epilogue, blockage): Accept SHmedia.
20546 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
20547 (sunordered): New expand.
20548 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
20549 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
20550 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
20551 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
20552 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
20553 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
20554 abssf2_media): New insns.
20555 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
20556 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
20557 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
20558 floatdidf2, floatsidf2_media, fix_truncdfdi2,
20559 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
20560 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
20561 absdf2_media): New insns.
20562 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
20563 (extendsfdf2_media, truncdfsf2_media): New insns.
20564 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
20565 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
20566 * config/sh/sh.h (CONST_OK_FOR_J): Document.
20567 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
20568 * config/sh/sh.md (adddi3): New expand.
20569 (adddi3_media, adddi3z_media): New insns.
20570 (adddi3_compact): Renamed from adddi3.
20571 (addsi3_media): Use add.l r63 to add constant zero.
20572 (subdi3): New expand.
20573 (subdi3_media): New insn.
20574 (subdi3_compact): Renamed from subdi3.
20575 (mulsidi3): New expand.
20576 (mulsidi3_media): New insn.
20577 (mulsidi3_compact): Renamed from mulsidi3.
20578 (umulsidi3): New expand.
20579 (umulsidi3_media): New insn.
20580 (umulsidi3_compact): Renamed from umulsidi3.
20581 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
20582 (ashlsi3, ashrsi3, lshrsi3): Use them.
20583 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
20584 (ashldi3, ashrdi3, lshrdi3): Use them.
20585 (zero_extendsidi2): New expand.
20586 (extendsidi2): New insn.
20587 (movsi_media): New insn. Split to movdi to load constants.
20588 (movsi): Enable for shmedia.
20589 (movdi_media): New insn. Use shori_media to load wide constants.
20590 (short_media): New insn.
20591 (movdi): Enable for shmedia.
20592 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
20593 * config/sh/sh.h (CPP_SPEC): Added `m5'.
20594 (SUBTARGET_CPP_SPEC): Added `!m5'.
20595 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
20596 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
20597 to all other SH variants.
20598 (TARGET_DEFAULT): Set to SH1_BIT.
20599 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
20600 (BITS_PER_WORD): Raise to 64 on shmedia.
20601 (MAX_BITS_PER_WORD): Change to 64.
20602 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
20603 (INT_TYPE_SIZE): Keep as 32.
20604 (UNITS_PER_WORD): Raise to 8 on shmedia.
20605 (MIN_UNITS_PER_WORD): Keep as 4.
20606 (POINTER_SIZE): Raise to 64 on shmedia.
20607 (CONST_OK_FOR_J): New macro.
20608 (CONST_OK_FOR_LETTER_P): Use it.
20609 (processor_type): Add PROCESSOR_SH5.
20610 * config/sh/sh.md: Conditionalize all expands, insns and
20611 splits to TARGET_SH1.
20612 (cpu): Added sh5.
20613 (addsi3_compact): Renamed from...
20614 (addsi3): Now an expand.
20615 (addsi3_media, subsi3_media): New insns.
20616 (subsi3): Don't negate constants with SHmedia.
20617
20618 * hooks.c: New file.
20619 * hooks.h: New file.
20620 * Makefile.in (HOOKS_H): New.
20621 (TARGET_DEF_H): Added $(HOOKS_H).
20622 (OBJS): Added hooks.o.
20623 (cfgcleanup.o, bb-reorder.o): Added target.h.
20624 (hooks.o): Added dependencies.
20625 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
20626 (TARGET_INITIALIZER): this.
20627 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
20628 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
20629 * bb-reorder.c: Include target.h.
20630 (reorder_basic_blocks): Skip if cannot modify jumps.
20631 * cfgcleanup.c: Include target.h.
20632 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
20633
20634 2002-02-08 Chris Demetriou <cgd@broadcom.com>
20635
20636 * config/mips/mips.md (casesi_internal, casesi_internal_di):
20637 Protect jump delay slot instructions with .set noreorder and
20638 .set nomacro.
20639
20640 2002-02-08 Chris Demetriou <cgd@broadcom.com>
20641
20642 * config/mips/mips.md (casesi_internal_di): Calculate
20643 the index into the target offset table correctly.
20644
20645 2002-02-08 Richard Henderson <rth@redhat.com>
20646
20647 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
20648 * final.c (output_addr_const): Accept and discard SUBREG.
20649 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
20650 mark them unknown instead.
20651 (simplify_subtraction): Handle RTX_UNKNOWN.
20652 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
20653
20654 2002-02-08 David Edelsohn <edelsohn@gnu.org>
20655
20656 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
20657
20658 2002-02-08 Richard Henderson <rth@redhat.com>
20659
20660 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
20661
20662 2002-02-08 Andreas Jaeger <aj@suse.de>
20663
20664 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
20665 * config/i386/t-linux64: New file.
20666
20667 2002-02-08 Jakub Jelinek <jakub@redhat.com>
20668
20669 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
20670 * c-parse.in (compstmt): Clear last_expr_type.
20671
20672 2002-02-07 Richard Henderson <rth@redhat.com>
20673
20674 * loop.c (strength_reduce): Sink final_value when not
20675 eliminating a biv.
20676
20677 2002-02-07 David O'Brien <obrien@FreeBSD.org>
20678
20679 * config/sparc/freebsd.h: Fix mismatched spec {.
20680
20681 2002-02-07 Richard Henderson <rth@redhat.com>
20682
20683 * cfgrtl.c: Include recog.h and insn-config.h.
20684 (keep_with_call_p): Fix general_operand invocation.
20685 * Makefile.in (cfgrtl.o): Update dependencies.
20686
20687 2002-02-07 Kazu Hirata <kazu@hxi.com>
20688
20689 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
20690 comment. Accept HImode only if TARGET_H8300.
20691
20692 2002-02-07 Eric Christopher <echristo@redhat.com>
20693
20694 * config/mips/crtn.asm: Cleanup #ifdefs.
20695
20696 2002-02-07 Eric Christopher <echristo@redhat.com>
20697
20698 * config/mips/crti.asm: Add changes for mips16. mips16 uses
20699 register 7 as RA instead of $31.
20700 * config/mips/crtn.asm: Ditto.
20701 * config/mips/mips.c (mips_move_2words): Add case for
20702 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
20703 (compute_frame_size): Fix typo.
20704 (save_restore_insns): Ditto. Make documentation about using
20705 register $7 as return register more precise.
20706 (mips_expand_epilogue): Fix comment. Add code to work around not
20707 being able to add to the stack pointer directly.
20708 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
20709 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
20710 epilogue.
20711
20712 2002-02-07 Tom Rix <trix@redhat.com>
20713
20714 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
20715 immediates in ldu and stdu DS opcode field.
20716 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
20717 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
20718 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
20719
20720 2002-02-07 Jeff Sturm <jsturm@one-point.com>
20721
20722 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
20723 offset for stack bias.
20724
20725 2002-02-07 H.J. Lu <hjl@gnu.org>
20726
20727 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
20728
20729 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
20730
20731 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
20732
20733 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
20734
20735 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
20736 * i386.c (x86_order_regs_for_local_alloc): New global function.
20737 * i386.h (REG_ALLOC_ORDER): CLeanup.
20738 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
20739
20740 2002-02-07 Richard Henderson <rth@redhat.com>
20741
20742 PR optimization/2463
20743 * alias.c (find_base_value): Recall base values for fixed hard regs.
20744 * loop.c (loop_regs_update): Don't use single_set on non-insns.
20745
20746 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
20747
20748 * config/mips/mips.md (define_delay) [mips16]: Adjust required
20749 length.
20750
20751 2002-02-06 Richard Henderson <rth@redhat.com>
20752
20753 PR c/5609
20754 * stmt.c (resolve_operand_name_1): Take more care with mixed
20755 named and unnamed operands.
20756
20757 2002-02-06 Janis Johnson <janis187@us.ibm.com>
20758 Jan Hubicka <jh@suse.cz>
20759
20760 * loop.c (remove_constant_addition): Avoid clobbering a shared
20761 CONST expression.
20762
20763 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
20764
20765 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
20766 * config/s390/t-linux64: New file.
20767 * config/s390/libgcc-glibc.ver: New file.
20768
20769 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
20770
20771 * config/s390/linux64.h: Delete file.
20772 * config/s390/s390x.h: New file.
20773 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
20774 as target header file.
20775 * config/s390/linux.h (TARGET_VERSION): Define depending on
20776 DEFAULT_TARGET_64BIT.
20777 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
20778 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
20779 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
20780 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
20781 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
20782 (EXTRA_SPEC): New define.
20783 * config/s390/s390.h (TARGET_VERSION): Define depending on
20784 DEFAULT_TARGET_64BIT.
20785 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
20786
20787 2002-02-06 Jason Merrill <jason@redhat.com>
20788
20789 * c-decl.c (finish_function): Warn about a non-void function with
20790 no return statement and no abnormal exit.
20791 (current_function_returns_abnormally): New variable.
20792 (start_function): Clear it.
20793 (struct c_language_function): Add returns_abnormally.
20794 (push_c_function_context): Save it.
20795 (pop_c_function_context): Restore it.
20796 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
20797 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
20798 an explicit return type.
20799 * c-tree.h: Declare current_function_returns_abnormally.
20800 (C_FUNCTION_IMPLICIT_INT): New macro.
20801 * c-typeck.c (build_function_call): Set it.
20802 (c_expand_return): Set current_function_returns_value even if the
20803 value is erroneous.
20804
20805 2002-02-06 Jakub Jelinek <jakub@redhat.com>
20806
20807 PR c/5420:
20808 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
20809 unsafe for reevaluation.
20810
20811 2002-02-06 Jakub Jelinek <jakub@redhat.com>
20812
20813 PR c/5482:
20814 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
20815 EXPR_STMT, but COMPOUND_STMT, recurse into it.
20816
20817 2002-02-06 Richard Henderson <rth@redhat.com>
20818
20819 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
20820 be a general_operand. Dest for function value must be a pseudo.
20821
20822 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
20823
20824 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
20825 as SYMBOL_REFs from the constant pool.
20826
20827 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
20828
20829 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
20830 passed by invisible reference.
20831
20832 2002-02-05 Richard Henderson <rth@redhat.com>
20833
20834 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
20835
20836 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
20837
20838 Implement using "base addresses" in insn operands as default.
20839 * config/mmix/mmix.c (mmix_conditional_register_usage): if
20840 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
20841 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
20842 used to read the rtx value.
20843 (mmix_target_asm_function_epilogue): Fix spacing.
20844 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
20845 (mmix_legitimate_address): Ditto.
20846 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
20847 should be loaded with a GETA insn. Don't allocate needless extra
20848 char for nul termination and fix misleading comment.
20849 (mmix_print_operand_address): Handle constants if
20850 TARGET_BASE_ADDRESSES.
20851 (mmix_output_register_setting): Use base addressing if
20852 TARGET_BASE_ADDRESSES and the number of insns is 3.
20853 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
20854 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
20855 to use R as constraint, add LDA to match s.
20856 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
20857 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
20858 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
20859 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
20860 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
20861 order with other fixed registers.
20862 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
20863 other parameter/call-clobbered registers.
20864 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
20865 -mbase-addresses, -mno-base-addresses.
20866 (MMIX Options): Ditto.
20867
20868 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20869
20870 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
20871
20872 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
20873
20874 * config/rs6000/altivec.h: Change elem to _S_elem.
20875
20876 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20877
20878 * config/netbsd.h (WCHAR_TYPE): Define.
20879 (WCHAR_TYPE_SIZE): Ditto.
20880 (WINT_TYPE): Ditto.
20881 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
20882 (WCHAR_UNSIGNED): Ditto.
20883 (WCHAR_TYPE_SIZE): Ditto.
20884 (WINT_TYPE): Ditto.
20885 * config/arm/netbsd.h: Likewise.
20886 * config/i386/netbsd-elf.h: Likewise.
20887 * config/i386/netbsd.h: Likewise.
20888 * config/m68k/netbsd-elf.h: Likewise.
20889 * config/m68k/netbsd.h: Likewise.
20890 * config/ns32k/netbsd.h: Likewise.
20891 * config/sparc/netbsd.h: Likewise.
20892 * config/vax/netbsd.: Likewise.
20893
20894 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
20895
20896 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
20897 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
20898 (TARGET_INITIALIZER): this.
20899 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
20900 (BITFIELD_NBYTES_LIMITED): Markup fix.
20901 * tree.h (default_ms_bitfield_layout_p): Declare.
20902 (record_layout_info): Added prev_field.
20903 * tree.c (default_ms_bitfield_layout_p): New fn.
20904 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
20905 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
20906 * stor-layout.c: Include target.h.
20907 (start_record_layout): Initialize prev_field.
20908 (place_field): Handle MS bit-field layout, and disregard
20909 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
20910 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
20911 * Makefile.in (stor-layout.o): Adjust dependencies.
20912
20913 2002-02-05 Jason Merrill <jason@redhat.com>
20914
20915 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
20916
20917 2002-02-05 Andreas Jaeger <aj@suse.de>
20918
20919 * crtstuff.c: Fix comments.
20920
20921 2002-02-05 Richard Henderson <rth@redhat.com>
20922
20923 PR fortran/3393
20924 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
20925 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
20926
20927 PR fortran/3392
20928 * config/mips/mips.c (function_arg): Handle TImode.
20929 (function_arg_advance): Likewise.
20930
20931 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20932
20933 * config/rs6000/altivec.h (vec_step_help): Rename to
20934 __vec_step_help.
20935
20936 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20937
20938 * config/rs6000/altivec.h: Fix typos.
20939
20940 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20941
20942 * config/arm/netbsd.h: Correct a comment.
20943
20944 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20945
20946 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
20947 building void typed builtins.
20948
20949 * config/rs6000/altivec.h (vec_ld*): Fix typos.
20950 (vec_step): Implement for C++.
20951
20952 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20953
20954 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
20955
20956 2002-02-04 Richard Henderson <rth@redhat.com>
20957
20958 * combine.c (nonzero_bits): Re-introduce special case for
20959 sp/fp/ap wrt REGNO_POINTER_ALIGN.
20960
20961 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20962
20963 * doc/extend.texi: Warn about unsupported usage of altivec
20964 builtins.
20965
20966 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
20967 (altivec_predicate_*): New.
20968
20969 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
20970 Add C++ version of vec_*() functions.
20971
20972 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
20973 (bdesc_2arg): Remove altivec predicates.
20974 (altivec_expand_builtin): Handle predicates.
20975 (altivec_init_builtins): Handle predicates.
20976 (altivec_expand_predicate_builtin): New.
20977
20978 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20979
20980 * pa.c (DO_FRAME_NOTES): Move forward.
20981 (store_reg): Revise handling of frame notes.
20982 (load_reg): Likewise.
20983 (set_reg_plus_d): Likewise.
20984 (hppa_expand_prologue): Likewise.
20985 (hppa_expand_epilogue): Likewise.
20986
20987 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20988
20989 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
20990
20991 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20992
20993 PR c/4475, c++/3780:
20994 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
20995 * c-common.h (SWITCH_TYPE): Define.
20996 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
20997 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
20998 Rename spareness variable to sparseness.
20999 (expand_end_case_type): Renamed from expand_end_case, use orig_type
21000 if non-NULL instead of TREE_TYPE (orig_index).
21001 * tree.h (expand_end_case_type): Renamed from expand_end_case.
21002 (expand_end_case): Define using expand_end_case_type.
21003 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
21004 to expand_end_case_type.
21005 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
21006
21007 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
21008
21009 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
21010 (BIGGEST_ALIGNMENT): Change to 128.
21011
21012 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
21013
21014 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
21015
21016 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
21017
21018 * pa.md (call_internal_reg_64bit): Remove unused variable.
21019
21020 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
21021
21022 * config/arm/arm.h (machine_function): Add uses_anonymous_args
21023 field.
21024 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
21025 * config/arm/arm.c (current_function_anonymous_args): Delete,
21026 replace uses with cfun->machine->uses_anonymous_args.
21027 (arm_reorg): Do not reset uses_anonymous_args.
21028
21029 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
21030 any geenral register.
21031
21032 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
21033
21034 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
21035 the entry block.
21036
21037 2002-02-04 Richard Henderson <rth@redhat.com>
21038
21039 * combine.c (force_to_mode): Remove STACK_BIAS code.
21040 (nonzero_bits): Likewise. Replace sp/fp special case with
21041 REGNO_POINTER_ALIGN.
21042
21043 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
21044 (HARD_FRAME_POINTER_REGNUM): New.
21045 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
21046 (FIXED_REGS, CALL_USED_REGS): Update.
21047 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
21048 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
21049 (HARD_REGNO_NREGS): Update for SFP.
21050 (STACK_POINTER_OFFSET): Include bias here ...
21051 (FIRST_PARM_OFFSET): ... not here.
21052 (STACK_BIAS): Remove.
21053 (INIT_EXPANDERS): New.
21054 (STARTING_FRAME_OFFSET): Do not include bias.
21055 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
21056 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
21057 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
21058 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
21059 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
21060 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
21061 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
21062 (MUST_SAVE_REGISTER): Likewise.
21063 (sparc_flat_function_prologue): Likewise.
21064 (sparc_flat_function_epilogue): Likewise.
21065 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
21066 (sparc_init_modes): SFP is GENERAL_REGS.
21067 (sparc_builtin_saveregs): SFP does not have bias applied.
21068
21069 2002-02-04 Richard Henderson <rth@redhat.com>
21070
21071 * config/alpha/alpha.c (current_function_is_thunk): Don't check
21072 current_function_is_thunk.
21073 (alpha_sa_mask): Distinguish between current_function_is_thunk
21074 called from ASM_OUTPUT_MI_THUNK and not.
21075 (alpha_does_function_need_gp): Thunks always need gp.
21076 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21077 (alpha_output_mi_thunk_osf): New.
21078 * config/alpha/alpha-protos.h: Update.
21079 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
21080
21081 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
21082
21083 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
21084 function types, not when they're taken away.
21085
21086 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
21087
21088 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
21089 CODE_LABEL and jump table when replacing a table jump with a
21090 simple jump.
21091
21092 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
21093
21094 * config/s390/s390-protos.h (legitimize_la_operand,
21095 s390_secondary_input_reload_class, s390_plus_operand,
21096 s390_expand_plus_operand): Add prototypes.
21097
21098 config/s390/s390.c (s390_secondary_input_reload_class,
21099 s390_plus_operand, s390_expand_plus_operand): New functions.
21100
21101 (struct s390_address): New member 'pointer'.
21102 (s390_decompose_address): Compute it.
21103 (legitimate_la_operand_p): Use it.
21104 (legitimize_la_operand): New function.
21105 (movti, movdi, movdf splitters): Call it.
21106
21107 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
21108 (PREDICATE_CODES): Add s390_plus_operand.
21109
21110 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
21111 (la_ccclobber): Allow GENERAL_REGS as output operand.
21112
21113 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
21114 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
21115 (*la_64, *la_31, reload_indi, reload_insi): ... these.
21116
21117 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
21118
21119 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
21120 register names for regular asm () construct.
21121
21122 2002-02-04 Jakub Jelinek <jakub@redhat.com>
21123
21124 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
21125 registers.
21126
21127 2002-02-04 Jakub Jelinek <jakub@redhat.com>
21128
21129 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
21130 pat for recog.
21131
21132 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
21133
21134 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
21135 constant pool to be identical by string address and index.
21136
21137 2002-02-04 Anthony Green <green@redhat.com>
21138
21139 * output.h (SECTION_OVERRIDE): Define.
21140 * varasm.c (named_section): Obey SECTION_OVERRIDE.
21141
21142 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
21143
21144 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
21145 by existing arm*-*-netbsd* (a.out) target.
21146 (ns32k-*-netbsdelf*): Likewise.
21147 (sparc-*-netbsdelf*): Likewise.
21148 (vax-*-netbsdelf*): Likewise.
21149
21150 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
21151
21152 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
21153 headers and libobjc headers.
21154
21155 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
21156
21157 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
21158 (_mingw.h): Remove duplicate include.
21159
21160 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
21161
21162 * config.gcc: Set cpu_type to m68k for 68010, as well.
21163 (m68010-*-netbsdelf*): New...
21164 (m68k*-*-netbsdelf*): ...targets.
21165 * config/m68k/netbsd-elf.h: New file.
21166
21167 2002-02-02 Kazu Hirata <kazu@hxi.com>
21168
21169 * config/h8300/h8300.c (hand_list): Move inside function_arg.
21170
21171 2002-02-02 Kazu Hirata <kazu@hxi.com>
21172
21173 * config/h8300/h8300.c (h8_push_ops): Move inside
21174 h8300_init_once.
21175 (h8_pop_ops): Likewise.
21176 (h8_move_ops): Likewise.
21177
21178 2002-02-02 Kazu Hirata <kazu@hxi.com>
21179
21180 * config/h8300/h8300.c (os_task): Make it static.
21181 (monitor): Likewise.
21182 (pragma_saveall): Likewise.
21183
21184 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
21185
21186 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
21187 constant is a valid sign-extension for Pmode.
21188
21189 2002-02-02 Kazu Hirata <kazu@hxi.com>
21190
21191 * config/h8300/h8300.c: Fix formatting.
21192
21193 2002-02-02 Kazu Hirata <kazu@hxi.com>
21194
21195 * config/h8300/h8300.md: Fix formatting.
21196
21197 2002-02-02 Kazu Hirata <kazu@hxi.com>
21198
21199 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
21200 predicates of operands[1]. Split the patterns for each
21201 processor variant.
21202
21203 2002-02-02 Kazu Hirata <kazu@hxi.com>
21204
21205 * config/h8300/h8300.md (xor patterns): Tighten the predicates
21206 of operands[1] to register_operand.
21207
21208 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
21209
21210 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
21211 * cpphash.c (_cpp_init_hashtable): Similarly.
21212 * cppinit.c (cpp_create_reader): Default the signed_char flag.
21213 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
21214 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
21215 (cpp_handle_option): Handle the new options.
21216 * cpplex.c (cpp_interpret_charconst): Use new flag.
21217 * cpplib.h (struct cpp_options): New member signed_char.
21218 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
21219 (cpp_options): Handle -fsigned-char and -funsigned-char.
21220 (static_specs): Remove signed_char_spec.
21221 (do_spec1): Don't handle %c.
21222 * system.h: Poison SIGNED_CHAR_SPEC.
21223 * tradcif.y (yylex): Use flag_signed_char.
21224 * tradcpp.h (flag_signed_char): New.
21225 * tradcpp.c (flag_signed_char): New.
21226 (main): Handle new command-line options.
21227 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
21228 config:
21229 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
21230 * avr/avr.h: Remove old comments.
21231 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
21232 (CC1_SPEC): Pass -fsigned-char if -mic*.
21233 (SIGNED_CHAR_SPEC): Remove.
21234 doc:
21235 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
21236
21237 2002-02-01 Eric Christopher <echristo@redhat.com>
21238
21239 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
21240 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
21241 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
21242 (ASM_OUTPUT_REG_POP): Ditto.
21243
21244 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
21245
21246 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
21247 patch.
21248
21249 2002-02-02 Jakub Jelinek <jakub@redhat.com>
21250
21251 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
21252
21253 2002-02-02 Jakub Jelinek <jakub@redhat.com>
21254
21255 PR c/5304:
21256 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
21257 unconditionally.
21258
21259 2002-02-01 Janis Johnson <janis187@us.ibm.com>
21260
21261 * cfganal.c: Include tm_p.h.
21262 (keep_with_call_p): Fix the test that determines if a register holds
21263 the return value of a call.
21264
21265 2002-02-01 DJ Delorie <dj@redhat.com>
21266
21267 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
21268 we are given conflicting registers, switch to the other one we
21269 had allocated for us.
21270 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
21271 as TImode so we know when the "other" register is available.
21272
21273 2002-02-01 David O'Brien <obrien@FreeBSD.org>
21274
21275 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
21276 sparc/sparc_bi.h.
21277
21278 2002-02-01 Janis Johnson <janis187@us.ibm.com>
21279
21280 * cfganal.c (keep_with_call_p): New function.
21281 (flow_call_edges_add): Prevent splitting a block between a call and
21282 a single-set instruction that should be kept in the same block.
21283
21284 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
21285
21286 * doc/install.texi (avr): Update outdated URL.
21287
21288 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
21289
21290 * config/stormy16/stormy16.md (pushqi): New.
21291 (popqi): New.
21292 (pushhi): New.
21293 (pophi): New.
21294 (movhi): Remove stack operands.
21295 (movqi): Likewise.
21296 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
21297 nonimmediate_nonstack_operand.
21298 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
21299 New.
21300 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
21301 New.
21302
21303 2002-01-31 Jason Merrill <jason@redhat.com>
21304
21305 * Makefile.in (c-parse.c): Handle .output file.
21306 * objc/Make-lang.in (objc-parse.c): Likewise.
21307
21308 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
21309
21310 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
21311 the -me[lb] option is given. Don't output the default flag
21312 twice.
21313
21314 2002-01-31 Zack Weinberg <zack@codesourcery.com>
21315
21316 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
21317 the primary source file; this has not been done yet.
21318 * c-decl.c (c_expand_body): Reset input_filename from
21319 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
21320
21321 2002-01-31 Kazu Hirata <kazu@hxi.com>
21322
21323 * rtlanal.c (subreg_regno_offset): Do not use
21324 SUBREG_REGNO_OFFSET.
21325 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
21326 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
21327
21328 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
21329
21330 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
21331 version rather than GNATS version in --version output.
21332
21333 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
21334
21335 * ifcvt.c (noce_process_if_block): Make a copy of the destination
21336 when copying back from a temporary.
21337
21338 2002-01-30 Richard Henderson <rth@redhat.com>
21339
21340 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
21341 and new_dest are the same.
21342
21343 2002-01-30 Richard Henderson <rth@redhat.com>
21344
21345 PR opt/5076
21346 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
21347 * rtl.c (note_insn_name): Update.
21348 * emit-rtl.c (remove_unnecessary_notes): Kill it.
21349 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
21350 to perform loop rotation.
21351 (expand_exit_loop_top_cond): New.
21352 * tree.h (expand_exit_loop_top_cond): Declare it.
21353 * c-semantics.c (genrtl_while_stmt): Use it.
21354 (genrtl_for_stmt): Likewise.
21355
21356 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
21357
21358 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
21359 arguments to 64-bit boundaries on 64-bit ABIs.
21360
21361 2002-01-30 Steve Ellcey <sje@cup.hp.com>
21362
21363 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
21364
21365 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
21366
21367 * c-decl.c (grokdeclarator): Handle type being a typedef for an
21368 invalid type.
21369
21370 2002-01-30 David O'Brien <obrien@FreeBSD.org>
21371
21372 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
21373 * config/sparc/sparc_bi.h: Remove file.
21374 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
21375
21376 2002-01-30 Richard Henderson <rth@redhat.com>
21377
21378 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
21379
21380 2002-01-30 Zack Weinberg <zack@codesourcery.com>
21381
21382 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
21383
21384 2002-01-30 Jason Merrill <jason@redhat.com>
21385
21386 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
21387 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
21388 (reg_save): Use DW_CFA_offset_extended_sf instead.
21389
21390 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
21391
21392 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21393
21394 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
21395 in cselib_lookup.
21396
21397 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
21398
21399 * rs6000.md ("*call_value_local32"): Remove constraints.
21400 ("*call_value_local64"): Same.
21401 ("*call_value_indirect_nonlocal_aix32"): Same.
21402 ("*call_value_nonlocal_aix32"): Same.
21403 ("*call_value_indirect_nonlocal_aix64"): Same.
21404 ("*call_value_nonlocal_aix64"): Same.
21405 ("*call_value_nonlocal_sysv"): Same.
21406
21407 2002-01-29 Richard Henderson <rth@redhat.com>
21408
21409 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
21410
21411 2002-01-29 Richard Henderson <rth@redhat.com>
21412
21413 * expr.c (force_operand): Ignore flag_pic for detecting pic
21414 address loads.
21415 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
21416 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
21417 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
21418 instead of open-coded loop.
21419 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
21420 be fixed when in use.
21421
21422 2002-01-29 Richard Henderson <rth@redhat.com>
21423
21424 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
21425 * sched-rgn.c (propagate_deps): Update them.
21426 * sched-deps.c (sched_analyze_insn): Update them. Flush the
21427 clobbers list when either gets too long.
21428
21429 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21430
21431 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
21432 and INDEX_REGS the same as GENERAL_REGS.
21433 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
21434
21435 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
21436
21437 * tree.c (build_nonstandard_integer_type): Correct prototype.
21438
21439 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
21440
21441 * config/s390/s390.md (movstrsico, movstrdix_64,
21442 movstrsix_31): Remove, replace by ...
21443 (movstrdi_short, movstrsi_short, movstrdi_long,
21444 movstrsi_long): ... these. New.
21445 (movstrdi, movstrsi): Adapt.
21446
21447 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
21448 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
21449 Remove unnecessary CC clobber.
21450 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
21451 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
21452
21453 (divmoddi4): Don't partially initialize TImode register.
21454
21455 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
21456
21457 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
21458
21459 2002-01-29 Richard Henderson <rth@redhat.com>
21460
21461 * flow.c (print_rtl_and_abort): Remove.
21462 (print_rtl_and_abort_fcn): Remove.
21463 (verify_local_live_at_start): Use dump_bb instead.
21464 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
21465 (verify_wide_reg_1): Return 2 on mode test failure.
21466
21467 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
21468
21469 PR c/3325, c/3326, c/2511, c/3347
21470 * c-decl.c (enum_decl_context): Remove BITFIELD.
21471 (grokdeclarator): Take bitfield width as an input.
21472 Ensure bitfields are given the correct type. Perform
21473 bitfield width validation with build_bitfield_integer_type
21474 rather than waiting for finish_struct.
21475 (grok_typename, grok_typename_in_parm_context, start_decl,
21476 push_parmdecl, grokfield, start_function): Update calls to
21477 grokdeclarator.
21478 (build_bitfield_integer_type): New function.
21479 (finish_struct): Move bitfield validation to grokdeclarator
21480 and build_bitfield_integer_type.
21481 * tree.c (build_nonstandard_integer_type): New function.
21482 * tree.h (build_nonstandard_integer_type): New prototype.
21483 objc:
21484 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
21485
21486 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21487
21488 PR other/1502:
21489 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
21490 don't ignore unrecognized -W* options.
21491 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
21492 * cpplib.h (cpp_handle_option): Adjust prototype.
21493 * c-decl.c (c_decode_options): Pass 0 as last argument to
21494 cpp_handle_option.
21495
21496 PR c/2896:
21497 * gcc.c (cpp_unique_options): Split from cpp_options.
21498 (cpp_options): Source cpp_unique_options.
21499 (default_compilers): Use cpp_unique_options instead of cpp_options
21500 when used together with cc1_options.
21501 (static_specs): Add cpp_unique_options.
21502 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
21503 when used together with cc1_options.
21504
21505 2002-01-29 Kazu Hirata <kazu@hxi.com>
21506
21507 * config/h8300/h8300-protos.h: Update the prototype of
21508 output_a_shift.
21509 * config/h8300/h8300.c (output_a_shift): Remove an unused
21510 argument 'insn'. Remove redundant code.
21511 * config/h8300/h8300.md: Adust to the new prototype of
21512 output_a_shift.
21513
21514 2002-01-29 Kazu Hirata <kazu@hxi.com>
21515
21516 * config/h8300/h8300-protos.h: Update the prototypes of
21517 emit_a_rotate and expand_a_rotate.
21518 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
21519 first argument to 'enum rtx_code'.
21520 (expand_a_rotate): Likewise.
21521
21522 2002-01-28 Kazu Hirata <kazu@hxi.com>
21523
21524 * config/h8300/h8300-protos.h: Update the prototype of
21525 output_simode_bld.
21526 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
21527 'log2'.
21528 * config/h8300/h8300.md: Adjust to the new prototype.
21529
21530 2002-01-28 Kazu Hirata <kazu@hxi.com>
21531
21532 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
21533 redundant code.
21534
21535 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
21536
21537 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
21538 is a fixed register before returning pic_offset_table_rtx.
21539 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
21540 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
21541
21542 2002-01-28 Jason Merrill <jason@redhat.com>
21543
21544 * dwarf2.h: Sync with src version.
21545
21546 2002-01-28 Paul Koning <pkoning@equallogic.com>
21547
21548 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
21549 BT_FN_VOID_PTR_VAR.
21550 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
21551 * doc/extend.texi (__builtin_prefetch): Update documentation:
21552 first argument is now const void ptr.
21553
21554 2002-01-28 Kazu Hirata <kazu@hxi.com>
21555
21556 * config/h8300/h8300-protos.h: Remove an unused prototype.
21557
21558 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
21559
21560 * toplev.c (lang_independent_init): Round up identifier size.
21561
21562 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
21563
21564 * config.gcc: Revert previous change.
21565
21566 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
21567
21568 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
21569
21570 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
21571
21572 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
21573 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
21574 other non-elf netbsd config frags.
21575 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
21576 collect2 will does that.
21577 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
21578 shared-lib frobbing will work.
21579
21580 2002-01-28 Kazu Hirata <kazu@hxi.com>
21581
21582 * config/h8300/h8300.h: Fix formatting.
21583 * config/h8300/h8300.md: Likewise.
21584
21585 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
21586
21587 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
21588 the old, removed AAA_standards fix.
21589 * fixinc/fixincl.x: Rebuilt.
21590
21591 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
21592
21593 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
21594 atexit call in crtbegin, hooked in after call to frame_dummy;
21595 register EH before registering __fini__start.
21596
21597 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
21598
21599 * config/rs6000/altivec.h: Remove spurious semicolons.
21600
21601 2002-01-27 Kazu Hirata <kazu@hxi.com>
21602
21603 * config/h8300/h8300.md: Replace dead bit extraction patterns
21604 with ones that work.
21605
21606 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21607
21608 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
21609 if not STRICT_ALIGNMENT.
21610 * rtl.h (MEM_ALIGN): Likewise.
21611
21612 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
21613
21614 * doc/invoke.texi (-fdump-translation-unit): Revert this
21615 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
21616
21617 2002-01-27 Kazu Hirata <kazu@hxi.com>
21618
21619 * config/h8300/h8300.md (define_constants): New.
21620 (anonymous patterns) Use defined constants appropriately.
21621
21622 2002-01-27 Kazu Hirata <kazu@hxi.com>
21623
21624 * config/h8300/h8300.c (function_arg): Remove redundant code.
21625
21626 2002-01-26 Richard Henderson <rth@redhat.com>
21627
21628 * sched-deps.c (reg_pending_uses_head): New.
21629 (reg_pending_barrier): Rename from reg_pending_sets_all.
21630 (find_insn_list): Don't mark inline.
21631 (find_insn_mem_list): Remove.
21632 (add_dependence_list, add_dependence_list_and_free): New.
21633 (flush_pending_lists): Replace only_write param with separate
21634 for_read and for_write parameters. Update all callers. Use
21635 add_dependence_list_and_free.
21636 (sched_analyze_1): Do not add reg dependencies here; just set
21637 the pending bits. Use add_dependence_list.
21638 (sched_analyze_2): Likewise.
21639 (sched_analyze_insn): Replace schedule_barrier_found with
21640 reg_pending_barrier. Add all dependencies for pending reg
21641 uses, sets, and clobbers.
21642 (sched_analyze): Don't add reg dependencies for calls, just
21643 set pending bits. Use regs_invalidated_by_call. Treat
21644 sched_before_next_call as a normal list, not a fake insn.
21645 (init_deps): No funny init for sched_before_next_call.
21646 (free_deps): Free pending mems lists. Don't zero reg_last.
21647 (init_deps_global): Init reg_pending_uses.
21648 (finish_deps_global): Free it.
21649 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
21650 (find_insn_mem_list): Remove.
21651 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
21652 (propagate_deps): Use them. Zero temp mem lists.
21653
21654 2002-01-26 Richard Henderson <rth@redhat.com>
21655
21656 * Makefile.in (CRTSTUFF_CFLAGS): New.
21657 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
21658 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
21659 crtstuff.c instead of alpha assembly version.
21660 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
21661 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
21662 not FORCE_{INIT,FINI}_SECTION_ALIGN.
21663 (__do_global_dtors_aux): Mark used.
21664 (frame_dummy, __do_global_ctors_aux): Mark used.
21665 (fini_dummy, init_dummy): Remove.
21666
21667 * config/alpha/crtbegin.asm: Remove file.
21668 * config/alpha/crtend.asm: Remove file.
21669 * config/alpha/t-crtbe: Remove file.
21670 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
21671 (LINK_EH_SPEC): New.
21672
21673 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
21674 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
21675 calling constructors.
21676 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
21677
21678 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
21679 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
21680 CRT_END_INIT_DUMMY hack.
21681 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
21682 FORCE_{INIT,FINI}_SECTION_ALIGN.
21683
21684 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
21685 FORCE_{INIT,FINI}_SECTION_ALIGN.
21686
21687 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
21688 invocation sequence.
21689 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
21690
21691 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
21692 (FORCE_CODE_SECTION_ALIGN): New.
21693
21694 2002-01-26 Richard Henderson <rth@redhat.com>
21695
21696 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
21697
21698 2002-01-26 Richard Henderson <rth@redhat.com>
21699
21700 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
21701 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
21702
21703 2002-01-26 Kazu Hirata <kazu@hxi.com>
21704
21705 * config/h8300/h8300.md: Remove bit extraction patterns that
21706 cannot be triggered.
21707 Restrict each bit extraction pattern to a variant on which the
21708 pattern is tested.
21709
21710 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
21711
21712 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
21713
21714 2002-01-26 Kazu Hirata <kazu@hxi.com>
21715
21716 * config/h8300/h8300.md: Remove bit test patterns that cannot
21717 be triggered.
21718 Restrict each bit test pattern to a variant on which the
21719 pattern is tested.
21720
21721 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21722
21723 * builtins.c (expand_builtin_strncat): Remove redundant check for
21724 INTEGER_CST.
21725
21726 2002-01-25 David O'Brien <obrien@FreeBSD.org>
21727
21728 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
21729 default setting.
21730 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
21731 existing setting.
21732
21733 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
21734
21735 * dbxout.c (dbxout_init): Use assemble_name rather than just
21736 stripping off the first character.
21737 (dbxout_source_file): Likewise.
21738
21739 2002-01-25 DJ Delorie <dj@redhat.com>
21740
21741 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
21742 using rtx_equal_p, not by comparing pointers.
21743
21744 2002-01-25 Steve Ellcey <sje@cup.hp.com>
21745
21746 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
21747 for PIC_OFFSET_TABLE_REGNUM.
21748 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
21749
21750 2002-01-25 David O'Brien <obrien@FreeBSD.org>
21751
21752 * config.gcc (x86_64-*-freebsd*): New target.
21753 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
21754 value.
21755 (i[34567]86-*-freebsd*): Don't include svr4.h.
21756 * config/i386/freebsd64.h: New file.
21757
21758 2002-01-25 Douglas B Rupp <rupp@gnat.com>
21759
21760 * config/alpha/x-vms (version): Make static.
21761
21762 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
21763 in previous checkin.
21764
21765 * Makefile.in (install-headers-cp): New target.
21766 * config.gcc (alpha-dec-*vms*): Install headers with
21767 install-headers-cp
21768
21769 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
21770
21771 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
21772 avoid it's copies.
21773
21774 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21775
21776 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
21777 of compare_tree_int.
21778 (expand_builtin_strncat): Likewise.
21779 * c-decl.c (finish_struct): Use tree_low_cst.
21780 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
21781 * tree.c (compare_tree_int): Likewise.
21782
21783 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
21784
21785 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
21786 adjustments even if they are implemented by more than two insns.
21787
21788 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
21789
21790 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
21791 * df.h (struct ref): Kill B.
21792 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
21793
21794 * basic-block.h (PROP_EQUAL_NOTES): New flag.
21795 * flow.c (propagate_one_insn): Use it.
21796 (mark_used_regs): Handle NIL.
21797
21798 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
21799
21800 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
21801 to help folding.
21802
21803 2002-01-25 David Edelsohn <edelsohn@gnu.org>
21804
21805 * rs6000.md (prefetch): Make address V4SI mode so that the address
21806 is restricted to legitimate form for instruction.
21807
21808 2002-01-25 Bob Wilson <bob.wilson@acm.org>
21809
21810 * doc/install.texi (xtensa-*-elf): New target.
21811 (xtensa-*-linux*): New target.
21812 * doc/contrib.texi: Add myself.
21813
21814 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
21815
21816 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
21817 purpose register to hold an SImode (or smaller) value.
21818
21819 2002-01-25 Jakub Jelinek <jakub@redhat.com>
21820
21821 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
21822 registry only.
21823 * crtstuff.c: Likewise.
21824
21825 2002-01-25 Kazu Hirata <kazu@hxi.com>
21826
21827 * config/h8300/h8300.md (negation patterns): Tighten
21828 predicates to register_operand.
21829
21830 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
21831
21832 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
21833 mode, not Pmode.
21834
21835 * builtins.c (expand_builtin_prefetch): Same.
21836
21837 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21838
21839 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
21840 modes.
21841
21842 2002-01-24 Kazu Hirata <kazu@hxi.com>
21843
21844 * config/h8300/h8300.c (print_operand): Remove support for
21845 operand character 'A'.
21846 * config/h8300/h8300.md (three anonymous patterns): Replace
21847 operand character 'A' with either 'T' or 'S'.
21848
21849 2002-01-24 Kazu Hirata <kazu@hxi.com>
21850
21851 * config/h8300/h8300.c (print_operand): Remove support for
21852 operand character 'U'.
21853
21854 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
21855
21856 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
21857
21858 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
21859
21860 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
21861 values to be assigned to the stack pointer.
21862
21863 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21864
21865 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
21866 to const_double needs to be done right for big-endian systems.
21867
21868 2002-01-24 Jason Merrill <jason@redhat.com>
21869
21870 PR c++/2432
21871 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
21872 to can_throw_internal.
21873
21874 2002-01-23 Richard Henderson <rth@redhat.com>
21875
21876 * fold-const.c (fold): Change UINT_MAX test to check vs precision
21877 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
21878
21879 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21880
21881 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
21882 (symGOT2reg): Use them, then set as GOT value as unchanging.
21883 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
21884 as a temporary, if possible.
21885 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
21886 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
21887
21888 2002-01-23 Kazu Hirata <kazu@hxi.com>
21889
21890 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
21891 accept to accept 0x80 as operands[2].
21892
21893 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21894
21895 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
21896
21897 2002-01-23 Richard Henderson <rth@redhat.com>
21898
21899 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
21900
21901 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
21902
21903 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
21904 (parmlist_or_identifiers_1): Verify that only a parmlist follows
21905 an attribute.
21906
21907 2002-01-23 Richard Henderson <rth@redhat.com>
21908
21909 * expr.c (move_by_pieces_1): Extend size before negation.
21910
21911 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
21912 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
21913 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
21914 * config/m68k/t-m68kelf: Likewise.
21915
21916 2002-01-23 Bob Wilson <bob.wilson@acm.org>
21917
21918 * config/xtensa/elf.h: New file.
21919 * config/xtensa/lib1funcs.asm: New file.
21920 * config/xtensa/lib2funcs.S: New file.
21921 * config/xtensa/linux.h: New file.
21922 * config/xtensa/t-xtensa: New file.
21923 * config/xtensa/xtensa-config.h: New file.
21924 * config/xtensa/xtensa-protos.h: New file.
21925 * config/xtensa/xtensa.c: New file.
21926 * config/xtensa/xtensa.h: New file.
21927 * config/xtensa/xtensa.md: New file.
21928 * config.gcc (xtensa-*-elf*): New target.
21929 (xtensa-*-linux*): New target.
21930 * cse.c (canon_hash): Compare rtx pointers instead of register
21931 numbers. This is required for the Xtensa port.
21932 * integrate.c (copy_insn_list): Handle case where the static
21933 chain is in memory and the memory address has to be copied to
21934 a register.
21935 * doc/invoke.texi (Option Summary): Add Xtensa options.
21936 (Xtensa Options): New node.
21937 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
21938
21939 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21940
21941 * diagnostic.c (internal_error): Do ICE suppression only
21942 when ENABLE_CHECKING is not defined.
21943
21944 * c-typeck.c (require_complete_type): Return error_mark_node
21945 if type is error_mark_node.
21946
21947 2002-01-23 Janis Johnson <janis187@us.ibm.com>
21948
21949 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
21950 -Os and issue a warning.
21951
21952 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21953
21954 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
21955 current (lack of) need for host configuration by hand.
21956
21957 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
21958 references. Documentation of some target macros moved from
21959 hostconfig.texi to tm.texi.
21960
21961 2002-01-23 Will Cohen <wcohen@redhat.com>
21962
21963 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
21964 defined.
21965
21966 2002-01-23 Kazu Hirata <kazu@hxi.com>
21967
21968 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
21969 operand[3].
21970
21971 2002-01-23 Jason Merrill <jason@redhat.com>
21972
21973 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
21974
21975 * function.c (assign_parms): Don't put args of inline functions
21976 into registers when not optimizing.
21977
21978 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
21979
21980 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
21981 (prologue_use): New pattern.
21982 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
21983 preference to gen_rtx_USE.
21984 (thumb_expand_prologue): Use gen_prologue_use in preference to
21985 gen_rtx_USE.
21986 (thumb_expand_epilogue): Use gen_prologue_use in preference to
21987 gen_rtx_USE.
21988
21989 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
21990
21991 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
21992
21993 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
21994
21995 PR c/3504
21996 * doc/extend.texi: Correct documentation of __alignof__.
21997
21998 2002-01-22 Zack Weinberg <zack@codesourcery.com>
21999
22000 * params.h: Rename arguments of DEFPARAM so that it will be
22001 recognized as a translation keyword.
22002
22003 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
22004
22005 * extend.texi: Document altivec functions.
22006 Fix N-bit adjectives in X86 builtin documentation.
22007
22008 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
22009
22010 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
22011 auto_inc_dec values.
22012
22013 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
22014
22015 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
22016 after backslash.
22017 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
22018
22019 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
22020
22021 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
22022
22023 2002-01-22 Richard Henderson <rth@redhat.com>
22024
22025 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
22026 copy_insn not copy_rtx.
22027
22028 2002-01-23 Alan Modra <amodra@bigpond.net.au>
22029
22030 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
22031 "nonzero" as that might add "1" bits. Ensure "constop" is
22032 properly sign extened.
22033 (force_to_mode): Tweak for sign extended constop.
22034
22035 2002-01-22 Richard Henderson <rth@redhat.com>
22036
22037 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
22038 for_each_rtx instead of assuming we're already looking at the MEM.
22039 (split_small_symbolic_mem_operand): Likewise.
22040 * config/alpha/alpha.h (PREDICATE_CODES): Update.
22041 * config/alpha/alpha.md (small symbolic memory splitters): Update.
22042
22043 2002-01-22 Richard Henderson <rth@redhat.com>
22044
22045 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
22046 sequence number for the literal.
22047 (divmoddi_internal_er): Likewise.
22048
22049 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
22050
22051 PR java/4972
22052 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
22053 in LIBICONV variable.
22054 * configure: Regenerated.
22055
22056 2002-01-22 Krister Walfridsson <cato@df.lth.se>
22057
22058 * dependence.c (build_def_use): Remove array_idx.
22059
22060 * dwarfout.c (last_filename): Remove.
22061 (output_compile_unit_die): Remove last_filename.
22062
22063 2002-01-22 Roger Sayle <roger@eyesopen.com>
22064 Richard Henderson <rth@redhat.com>
22065
22066 PR opt/3640
22067 * fold-const.c (fold): Optimize unsigned comparisons against
22068 UINT_MAX (and similar unsigned constants).
22069
22070 2002-01-22 Janis Johnson <janis187@us.ibm.com>
22071
22072 * Makefile.in (loop.o): Depend on OPTABS_H.
22073 * loop.c (emit_prefetch_instructions): Check the prefetch operand
22074 against the predicate.
22075
22076 PR target/5379
22077 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
22078 for the address operand.
22079
22080 2002-01-22 Richard Henderson <rth@redhat.com>
22081
22082 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
22083
22084 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
22085
22086 PR other/5450
22087 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
22088 preprocessor flags.
22089
22090 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
22091
22092 * config.gcc (x86_64-*-netbsd*): New target.
22093 * config/i386/netbsd64.h: New file.
22094
22095 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
22096
22097 * regrename.c (kill_value): Fix typo.
22098
22099 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
22100
22101 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
22102
22103 * config/rs6000/rs6000.h: Same.
22104
22105 * function.c (instantiate_virtual_regs): Remove
22106 STARTING_FRAME_PHASE.
22107 (assign_stack_local_1): Same.
22108 Calculate frame phase.
22109
22110 2002-01-22 Nick Clifton <nickc@redhat.com>
22111
22112 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
22113 variable declaration to outer scope in order to simplify
22114 future extensions.
22115 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
22116 arm_hard_regno_mode_ok.
22117 * config/arm/arm-protos.h: Add a prototype for
22118 arm_hard_regno_mode_ok.
22119 * config/arm/arm.c (soft_df_operand): Remove now redundant
22120 check for DImode values using IP_REGNUM.
22121 (nonimmediate_soft_df_operand): Remove now redundant check for
22122 DImode values using IP_REGNUM.
22123 (arm_hard_regno_mode_ok): New function. New check: make sure
22124 that DImode values are not stored in IP_REGNUM.
22125
22126 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
22127 note with a USE.
22128 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
22129
22130 2002-01-22 Jason Merrill <jason@redhat.com>
22131
22132 * c-semantics.c (genrtl_compound_stmt): Only check nesting
22133 consistency if this COMPOUND_STMT is scoped.
22134
22135 2002-01-22 Kazu Hirata <kazu@hxi.com>
22136
22137 * predict.c: Fix formatting.
22138 * print-tree.c: Likewise.
22139 * protoize.c: Likewise.
22140 * real.h: Likewise.
22141 * rtl.h: Likewise.
22142 * sbitmap.h: Likewise.
22143 * scan.c: Likewise.
22144 * sched-deps.c: Likewise.
22145 * sched-vis.c: Likewise.
22146 * sdbout.c: Likewise.
22147 * sibcall.c: Likewise.
22148 * ssa.c: Likewise.
22149 * ssa-ccp.c: Likewise.
22150 * ssa-dce.c: Likewise.
22151 * stmt.c: Likewise.
22152 * stor-layout.c: Likewise.
22153 * system.h: Likewise.
22154
22155 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22156
22157 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
22158 if fits in bounds of base type.
22159
22160 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
22161 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
22162 (add_bound_info, default): If can't find a context, make a
22163 SAVE_EXPR.
22164 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
22165
22166 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
22167
22168 * c-typeck.c (parser_build_binary_op): If result from
22169 build_binary_op is ERROR_MARK just return error_mark_node without
22170 further processing.
22171
22172 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
22173
22174 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
22175 Split a.out-specific bits into...
22176 * config/netbsd-aout.h: ...this.
22177 * config/netbsd-elf.h: New file.
22178 * config/alpha/netbsd-elf.h: Remove.
22179 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
22180 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
22181 (STARTFILE_SPEC): Remove redundant definition.
22182 (ENDFILE_SPEC): Likewise.
22183 (LINK_SPEC): Likewise.
22184 (CPP_SPEC): Likewise.
22185 (ASM_SPEC): Likewise.
22186 (LIB_SPEC): Likewise.
22187 (SWITCH_TAKES_ARG): Likewise.
22188 (TARGET_MEM_FUNCTIONS): Likewise.
22189 (CPP_PREDEFINES): Redefine.
22190 (ASM_FINAL_SPEC): Remove redefinition.
22191 (ASM_COMMENT_START): Redefine.
22192 (FUNCTION_PROFILER): Define.
22193 (TARGET_VERSION): Redefine.
22194 Comment and formatting cleanup.
22195 * config/i386/netbsd.h: Include <netbsd-aout.h>.
22196 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
22197 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
22198 big- or little-endian.
22199 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
22200 * config.gcc (*-*-netbsd*): Add definitions common to all
22201 NetBSD configs.
22202 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
22203 gnu_ld definitions. Add netbsd-elf.h to and remove
22204 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
22205 tmake_file, and don't lose previous tmake_file contents.
22206 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
22207 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
22208 gnu_ld definitions. Add netbsd-elf.h to tm_file.
22209 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
22210 (mipsel-*-netbsd*): Rename this to...
22211 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
22212 mips/little.h to tm_file for mips*el-*.
22213 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
22214 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
22215 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
22216
22217 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
22218
22219 * pa-protos.h (reg_before_reload_operand): New function prototype.
22220 * pa.c (reg_before_reload_operand): New function implementation.
22221 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
22222 contraints to "*m".
22223
22224 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22225
22226 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
22227
22228 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
22229
22230 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
22231 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
22232 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
22233 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
22234 (ENDFILE_SPEC): Undefine.
22235 (STARTFILE_SPEC): Redefine for PA.
22236
22237 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22238
22239 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
22240
22241 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
22242
22243 * config.gcc: Add entries to supported PowerPC --with-cpu
22244 types.
22245
22246 2002-01-21 Jakub Jelinek <jakub@redhat.com>
22247
22248 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
22249 true for 64-bit mode only SSE registers in 32-bit mode.
22250
22251 2002-01-21 Kazu Hirata <kazu@hxi.com>
22252
22253 * unwind-dw2.c: Fix formatting.
22254 * unwind-dw2-fde.c: Likewise.
22255 * unwind-dw2-fde.h: Likewise.
22256 * unwind-pe.h: Likewise.
22257 * varasm.c: Likewise.
22258 * varray.h: Likewise.
22259
22260 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
22261
22262 Remove workaround for register stack overwrite bug in mmix.
22263 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
22264 support for TARGET_REG_STACK_FILL_BUG.
22265 * config/mmix/mmix.h: Remove member has_call_without_parameters.
22266 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
22267 Delete.
22268 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
22269 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
22270 -mno-reg-stack-fill-bug-workaround.
22271 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
22272 machine member has_call_without_parameters.
22273 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
22274 -mreg-stack-fill-bug-workaround and
22275 -mno-reg-stack-fill-bug-workaround.
22276 (MMIX Options): Ditto.
22277
22278 2002-01-21 Kazu Hirata <kazu@hxi.com>
22279
22280 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
22281 as appropriate.
22282 Remove redundant code.
22283
22284 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
22285
22286 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
22287 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
22288 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
22289 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
22290 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
22291 out target macro definitions and non-target-specific comments
22292 mostly taken from old versions of the manual.
22293
22294 2002-01-20 Kazu Hirata <kazu@hxi.com>
22295
22296 * config/h8300/h8300.h: Fix comment formatting.
22297 * config/ia64/aix.h: Likewise.
22298 * config/ia64/ia64-protos.h: Likewise.
22299 * config/ia64/ia64.c: Likewise.
22300 * config/ia64/ia64.h: Likewise.
22301 * config/ia64/ia64intrin.h: Likewise.
22302 * config/ia64/linux.h: Likewise.
22303 * config/ia64/unwind-aix.c: Likewise.
22304 * config/ia64/unwind-ia64.c: Likewise.
22305
22306 2002-01-20 Kazu Hirata <kazu@hxi.com>
22307
22308 * config/h8300/h8300.c: Revise comments about shift code.
22309
22310 2002-01-20 Kazu Hirata <kazu@hxi.com>
22311
22312 * config/h8300/h8300.c (function_arg): Update a comment.
22313
22314 2002-01-20 Kazu Hirata <kazu@hxi.com>
22315
22316 * config/h8300/h8300.md: Update the comments at the beginning
22317 of the file.
22318
22319 2002-01-20 Kazu Hirata <kazu@hxi.com>
22320
22321 * config/i370/i370.c: Fix comment formatting.
22322 * config/i370/i370.h: Likewise.
22323 * config/i370/i370.md: Likewise.
22324 * config/i370/linux.h: Likewise.
22325
22326 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22327
22328 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
22329
22330 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
22331 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
22332 in incomplete case.
22333
22334 2002-01-20 Graham Stott <grahams@redhat.com>
22335
22336 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
22337
22338 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
22339
22340 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
22341
22342 2002-01-19 Tom Rix <trix@redhat.com>
22343
22344 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
22345
22346 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
22347
22348 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
22349
22350 * function.c (assign_stack_local_1): Adjust x_frame_offset with
22351 STARTING_FRAME_PHASE.
22352 (STARTING_FRAME_PHASE): New.
22353 (instantiate_virtual_regs): Check saneness of
22354 STARTING_FRAME_PHASE.
22355
22356 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
22357
22358 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
22359
22360 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
22361
22362 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
22363
22364 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
22365 be used for bootstrapping GCC 3.0.
22366
22367 2002-01-18 Kazu Hirata <kazu@hxi.com>
22368
22369 * config/h8300/h8300.md: Fix an insn length.
22370
22371 2002-01-18 Kazu Hirata <kazu@hxi.com>
22372
22373 * bitmap.h: Fix comment formatting.
22374 * combine.c: Likewise.
22375 * cppfiles.c: Likewise.
22376 * c-pragma.h: Likewise.
22377 * c-typeck.c: Likewise.
22378 * df.c: Likewise.
22379 * dwarf2out.c: Likewise.
22380 * function.c: Likewise.
22381 * gcc.c: Likewise.
22382 * genattrtab.c: Likewise.
22383 * gthr-win32.h: Likewise.
22384 * haifa-sched.c: Likewise.
22385 * predict.c: Likewise.
22386 * rtlanal.c: Likewise.
22387 * rtl.h: Likewise.
22388 * unwind-dw2-fde.h: Likewise.
22389 * unwind-pe.h: Likewise.
22390 * vmsdbgout.c: Likewise.
22391
22392 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22393
22394 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
22395 if type_required and passed decl.
22396
22397 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
22398
22399 * config.gcc (cpu_type): Include altivec.h in powerpc
22400 extra_headers.
22401 Same for darwin.
22402
22403 * config/rs6000/altivec.h: New.
22404
22405 2002-01-17 David Edelsohn <edelsohn@gnu.org>
22406
22407 * doc/install.texi (*-ibm-aix*): Update assembler and exception
22408 handling information.
22409 * doc/trouble.texi (Interoperation): Add libstdc++ information
22410 for AIX.
22411 (Misunderstandings): Add template instantiation and static template
22412 member information for AIX.
22413
22414 2002-01-17 Jason Merrill <jason@redhat.com>
22415
22416 * dbxout.c (dbxout_type): Support const and volatile.
22417
22418 * except.c (add_partial_entry): Remove backwards compatibility code.
22419 (end_protect_partials): Likewise.
22420
22421 2002-01-17 Jakub Jelinek <jakub@redhat.com>
22422
22423 * config/ia64/ia64.md (prologue_use): New.
22424 * config/ia64/ia64.c (ia64_expand_prologue): Use
22425 gen_prologue_use instead of gen_rtx_USE.
22426 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
22427 as CODE_FOR_pred_rel_mutex.
22428 (ia64_sched_reorder2): Likewise.
22429
22430 2002-01-16 Eric Christopher <echristo@redhat.com>
22431
22432 * config/mips/r3900.h: Reformat.
22433 (SUBTARGET_CPP_SIZE_SPEC): Remove.
22434 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
22435 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
22436 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
22437 * config/mips/t-elf: Remove mips3 multilib.
22438
22439 2002-01-16 H.J. Lu <hjl@gnu.org>
22440
22441 * config/mips/linux.h: Include "mips/abi64.h".
22442
22443 2002-01-16 H.J. Lu <hjl@gnu.org>
22444
22445 * config/mips/t-linux: New.
22446
22447 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
22448
22449 * config/mips/linux.h: Don't include "gofast.h".
22450 (INIT_SUBTARGET_OPTABS): Removed.
22451
22452 2002-01-16 Kazu Hirata <kazu@hxi.com>
22453
22454 * config/h8300/h8300-protos.h: Replace emit_a_shift with
22455 output_a_shift.
22456 * config/h8300/h8300.c: Likewise.
22457 * config/h8300/h8300.md: Likewise.
22458
22459 2002-01-16 Kazu Hirata <kazu@hxi.com>
22460
22461 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
22462 spaces after an opcode name.
22463 (pushqi1_h8300hs): Likewise.
22464 (pushhi1_h8300hs): Likewise.
22465
22466 2002-01-16 Kazu Hirata <kazu@hxi.com>
22467
22468 * doc/extend.texi: Replace "option" with "attribute"
22469 appropriately.
22470
22471 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22472
22473 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
22474 (and:DI () (const_int -8)).
22475 (split_small_symbolic_mem_operand): Split
22476 (mem (and:DI () (const_int -8)).
22477
22478 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22479
22480 PR target/5309:
22481 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
22482 same way as TYPE_IMUL.
22483 (ultrasparc_sched_reorder): Likewise.
22484 * config/sparc/sparc.md (type): Add comment to update
22485 ultrasparc_sched_reorder when making changes.
22486
22487 2002-01-16 Kazu Hirata <kazu@hxi.com>
22488
22489 * doc/invoke.texi: Change the dump file name of block
22490 reordering pass from 28.bbro to 29.bbro.
22491 Mention -dk option.
22492
22493 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
22494
22495 * i386.md (minsf splitter): Fix pasto.
22496
22497 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
22498
22499 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
22500 to frame pointer initialisation instruction.
22501 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
22502 initialisation instruction.
22503 (soft_df_operand): Do not accept the IP register.
22504 (nonimmediate_soft_df_operand): Do not accept the IP register.
22505
22506 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22507
22508 PR target/5357:
22509 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
22510 MASK_V8 being both set.
22511
22512 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
22513
22514 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
22515 insn for GOT register; add REG_MAYBE_DEAD notes instead.
22516 config/s390/s390.md (call, call_value): Add GOT register to
22517 CALL_INSN_FUNCTION_USAGE where needed.
22518 (call_exp, call_value_exp): New.
22519
22520 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
22521
22522 * config/arm/arm.c: General formatting tidy up.
22523
22524 2002-01-16 Graham Stott <grahams@redhat.com>
22525
22526 * calls.c (try_to_integrate): Use "(size_t)" intermediate
22527 cast and when casting an integer literal to "rtx" pointer.
22528 (expand_call): Likewise.
22529 * flow.c (try_pre_increment): Likewise.
22530 (find_use_as_address): Likewise.
22531 * integrate.c (expand_iline_function): Likewise.
22532 * regmove.c (try_auto_increment): Likewise.
22533
22534 2002-01-16 Graham Stott <grahams@redhat.com>
22535
22536 * sched-rgn.c (passed): Use sbitmap_free.
22537 (header): Likewise.
22538 (inner): Likewise.
22539 (in_queue): Likewise.
22540 (in_stack): Likewise.
22541
22542 2002-01-15 Eric Christopher <echristo@redhat.com>
22543
22544 * flow.c (propagate_one_insn): Change to use fatal_insn.
22545
22546 2002-01-15 Kazu Hirata <kazu@hxi.com>
22547
22548 * expmed.c (extract_fixed_bit_field): Remove unused code.
22549 * system.h: Poison SLOW_ZERO_EXTEND.
22550 * doc/tm.texi: Remove.
22551 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
22552 * config/arm/arm.h: Likewise.
22553 * config/avr/avr.h: Likewise.
22554 * config/clipper/clipper.h: Likewise.
22555 * config/convex/convex.h: Likewise.
22556 * config/d30v/d30v.h: Likewise.
22557 * config/dsp16xx/dsp16xx.h: Likewise.
22558 * config/elxsi/elxsi.h: Likewise.
22559 * config/fr30/fr30.h: Likewise.
22560 * config/h8300/h8300.h: Likewise.
22561 * config/i370/i370.h: Likewise.
22562 * config/i386/i386.h: Likewise.
22563 * config/m68k/m68k.h: Likewise.
22564 * config/mips/mips.h: Likewise.
22565 * config/ns32k/ns32k.h: Likewise.
22566 * config/pdp11/pdp11.h: Likewise.
22567 * config/pj/pj.h: Likewise.
22568 * config/s390/s390.h: Likewise.
22569 * config/sh/sh.h: Likewise.
22570 * config/stormy16/stormy16.h: Likewise.
22571 * config/v850/v850.h: Likewise.
22572 * config/vax/vax.h: Likewise.
22573 * config/we32k/we32k.h: Likewise.
22574
22575 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
22576
22577 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
22578 (altivec_lvsl): Change constraint to b.
22579 (altivec_lvsr): Same.
22580 (altivec_lvebx): Same.
22581 (altivec_lvehx): Same.
22582 (altivec_lvewx): Same.
22583 (altivec_lvxl): Same.
22584 (altivec_lvx): Same.
22585 (altivec_stvx): Add parallel.
22586 (altivec_stvxl): Same.
22587 (altivec_stvehx): Same.
22588 (altivec_stvebx): Same.
22589 (altivec_stvebx): Same.
22590
22591 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
22592
22593 * config.gcc: Change altivec.h to altivec-defs.h.
22594
22595 * config/rs6000/altivec.h: Delete.
22596
22597 * config/rs6000/altivec-defs.h: Add.
22598
22599 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
22600
22601 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
22602 and UMOD modes.
22603
22604 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
22605 less than or equal to eight bytes.
22606
22607 * vax.md (andsi3): Remove constraints and change SET destination
22608 operand type to nonimmediate_operand.
22609 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
22610 when it is a CONST_INT.
22611
22612 2002-01-15 Jason Merrill <jason@redhat.com>
22613
22614 * c-common.def (FILE_STMT): New code.
22615 * c-common.c (statement_code_p): It's a statement.
22616 * c-common.h (stmt_tree_s): Add x_last_filename.
22617 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
22618 (last_expr_filename): New macro.
22619 * c-semantics.c (begin_stmt_tree): Initialize it.
22620 (add_stmt): If the filename changed, also insert a
22621 FILE_STMT.
22622 (expand_stmt): Handle seeing one.
22623
22624 2002-01-15 Eric Christopher <echristo@redhat.com>
22625
22626 * flow.c (propagate_one_insn): Add error message and print out
22627 insn for debugging.
22628
22629 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
22630
22631 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
22632 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
22633 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
22634 TRAMPOLINE_ALIGNMENT.
22635 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
22636 to be in bits.
22637 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
22638 PCC_BITFIELD_TYPE_MATTERS.
22639 * config/interix.h (STDC_VALUE): Remove. Use
22640 STDC_0_IN_SYSTEM_HEADERS.
22641 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
22642 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
22643 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
22644
22645 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
22646
22647 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
22648 not work on this platform currently.
22649
22650 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
22651
22652 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
22653 readonly_warning in _().
22654
22655 2002-01-15 Douglas B Rupp <rupp@gnat.com>
22656
22657 * gcc.c (delete_if_ordinary): Backout previous change.
22658
22659 2002-01-15 Kazu Hirata <kazu@hxi.com>
22660
22661 * config/h8300/h8300.c (print_operand): Remove support for
22662 unused operand characters.
22663
22664 * read-rtl.c: Fix formatting.
22665 * real.c: Likewise.
22666 * recog.c: Likewise.
22667 * regclass.c: Likewise.
22668 * regmove.c: Likewise.
22669 * reg-stack.c: Likewise.
22670 * reload1.c: Likewise.
22671 * rtlanal.c: Likewise.
22672
22673 2002-01-15 Kazu Hirata <kazu@hxi.com>
22674
22675 * config/i386/i386.c: Fix formatting.
22676
22677 2002-01-15 Jakub Jelinek <jakub@redhat.com>
22678
22679 * c-typeck.c (process_init_element): Don't save_expr
22680 COMPOUND_LITERAL_EXPR if just its initializer will be used.
22681
22682 2002-01-15 David Edelsohn <edelsohn@gnu.org>
22683
22684 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
22685 emit optional traceback table if optimize_size or TARGET_ELF.
22686 * config/rs6000/rs6000.md (prefetch): New.
22687
22688 2002-01-15 Andreas Jaeger <aj@suse.de>
22689
22690 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
22691
22692 2002-01-15 Kazu Hirata <kazu@hxi.com>
22693
22694 * mips-tfile.c: Fix formatting.
22695
22696 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
22697
22698 * unroll.c (final_reg_note_copy): Fix previous commit.
22699
22700 2002-01-14 Kazu Hirata <kazu@hxi.com>
22701
22702 * config/h8300/h8300-protos.h: Remove the prototype for
22703 eq_operator.
22704 * config/h8300/h8300.c (eq_operator): Remove.
22705
22706 2002-01-14 Richard Henderson <rth@redhat.com>
22707
22708 * config/i386/i386.md (prefetch): Tidy.
22709 (prefetch_3dnow): Fix locality operand.
22710
22711 2002-01-14 Richard Henderson <rth@redhat.com>
22712
22713 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
22714 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
22715
22716 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
22717
22718 * reload1.c (reload_combine): Pass reg_sum replacement through
22719 copy_rtx in loop performing multiple changes.
22720
22721 2002-01-14 Jakub Jelinek <jakub@redhat.com>
22722
22723 * except.c (remove_unreachable_regions): New.
22724 (free_eh_status): Clear exception_handler_labels.
22725 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
22726 (find_exception_handler_labels): Don't add the same label more than
22727 once.
22728 (remove_exception_handler_label): Don't die if
22729 find_exception_handler_labels hasn't been called for the current
22730 function yet.
22731
22732 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
22733
22734 * toplev.c (rest_of_compilation): Rebuild jump labels after
22735 gcse.
22736
22737 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
22738
22739 * doc/extend.texi: Move documentation of X86 built-in functions
22740 here.
22741 * doc/invoke.texi: From here.
22742 * doc/sourcebuild.texi: Document location of documentation for
22743 machine built-in functions.
22744
22745 2002-01-13 Christopher Faylor <cgf@redhat.com>
22746
22747 * cppfiles.c (TEST_THRESHOLD): New macro.
22748 (SHOULD_MMAP): Ditto.
22749 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
22750 be used.
22751
22752 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
22753
22754 * unroll.c (final_reg_note_copy): Properly handle
22755 REG_LABEL
22756 (unroll_loops): Fix LOOP_CONDITION heuristics.
22757
22758 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
22759
22760 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
22761 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
22762
22763 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
22764
22765 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
22766 threaded loop.
22767
22768 2002-01-14 Tom Rix <trix@redhat.com>
22769
22770 * config/rs6000/rs6000.md: Fix typo with sradi.
22771
22772 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
22773
22774 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
22775 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
22776 (clrstrdi, clrstrsi): Adapt callers.
22777
22778 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
22779
22780 (movti splitter): Never use register 0 as base register.
22781
22782 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
22783
22784 * combine.c (simplify_shift_const): Always generate new rtx
22785 for shift expression instead of reusing given expression.
22786
22787 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22788
22789 * config/alpha/alpha.c (alpha_expand_mov): Don't call
22790 alpha_legitimize_address unless mode is Pmode.
22791
22792 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
22793
22794 * doc/md.texi (Modifiers): Document the '*' constraint for the
22795 user.
22796
22797 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
22798 * doc/extend.texi (Function Attributes): 'interrupt' is valid
22799 for xstormy16 too.
22800
22801 2002-01-13 Richard Henderson <rth@redhat.com>
22802
22803 * reload.c (find_reloads): Use a hard reg destination as reload reg
22804 for an input reload of the source.
22805
22806 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22807
22808 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
22809 more generic.
22810
22811 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
22812
22813 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
22814 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
22815
22816 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
22817
22818 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22819
22820 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
22821
22822 2002-01-12 Tom Rix <trix@redhat.com>
22823
22824 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
22825 TARGET_POWERPC64.
22826
22827 2002-01-12 Richard Henderson <rth@redhat.com>
22828
22829 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
22830
22831 * doc/invoke.texi: Update Alpha options.
22832
22833 * doc/invoke.texi: Update i386 built-in function lists.
22834
22835 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
22836
22837 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
22838 referencing outside.
22839
22840 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22841
22842 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
22843 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
22844 offsets, and change line folding.
22845 * optabs.c (expand_binop): Remove warnings.
22846 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
22847
22848 2002-01-12 Graham Stott <grahams@redhat.com>
22849
22850 * attribs.c (handle_deprecated_attribute): constify WHAT.
22851 * diagnostic.c (warn_deprecated_use): Add braces, fixes
22852 dangling else warning and constify WHAT.
22853 * except.h (struct function, struct inline_remap): Move
22854 struct tag forward defs before all prototypes.
22855 (duplicate_eh_regions): Whitespace.
22856
22857 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
22858
22859 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
22860 MODE_BASE_REG_CLASS.
22861 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
22862
22863 2002-01-12 Richard Henderson <rth@redhat.com>
22864
22865 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
22866 (ix86_expand_vector_move): New.
22867 (bdesc_2arg): Remove andps, andnps, orps, xorps.
22868 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
22869 Remove old prefetch builtins. Special case the logicals removed above.
22870 (ix86_expand_builtin): Likewise.
22871 (safe_vector_operand): Use V4SFmode, not TImode.
22872 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
22873 (ix86_expand_timode_binop_builtin): New.
22874 * config/i386/i386-protos.h: Update.
22875 * config/i386/i386.h (enum ix86_builtins): Update.
22876 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
22877 Use ix86_expand_vector_move in vector move expanders.
22878 (movti_internal, movti_rex64): Add xorps alternative.
22879 (sse_clrv4sf): Rename and adjust from sse_clrti.
22880 (prefetch): Don't work so hard.
22881 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
22882 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
22883 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
22884
22885 2002-01-11 Richard Henderson <rth@redhat.com>
22886
22887 * config/i386/mmintrin.h: New file.
22888 * config/i386/xmmintrin.h: New file.
22889 * config.gcc (i?86-*-*): Add extra_headers.
22890 * simplify-rtx.c (simplify_unary_operation): Handle saturating
22891 truncation codes.
22892 (simplify_binary_operation): Handle saturating arithmetic codes.
22893 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
22894 not the lowpart subreg.
22895 (ix86_expand_builtin): Return a TImode dummy register instead of 0
22896 on error.
22897 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
22898
22899 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22900
22901 * conflict.c (conflict_graph_compute): Free regsets when finished.
22902 * ssa.c (compute_coalesced_reg_partition): Likewise.
22903
22904 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22905
22906 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
22907 every where we allocate a register.
22908
22909 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22910
22911 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
22912 * lcm.c (compute_earliest, compute_farthest): Likewise.
22913
22914 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22915
22916 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
22917
22918 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22919
22920 * doc/rtl.texi (Insns): Fix 2 typos.
22921
22922 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
22923
22924 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
22925 options. Use @table @gcctabopt for MMIX options. Add index
22926 entries for MMIX options. Start new paragraph with first
22927 heading of the machine-dependent options.
22928
22929 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
22930
22931 PR other/5299
22932 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
22933 * combine.c (force_to_mode): Same.
22934 * reload1.c (clear_reload_reg_in_use): Same.
22935
22936 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
22937
22938 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
22939 and 'subtargets'.
22940
22941 2002-01-11 Andreas Jaeger <aj@suse.de>,
22942 Brad Lucier <lucier@math.purdue.edu>
22943
22944 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
22945 mcpu.
22946
22947 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
22948
22949 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
22950 Protect with IN_LIBGCC.
22951 (LINK_EH_SPEC): Add required trailing space.
22952
22953 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
22954
22955 * c-tree.h: Move function declarations so that they are listed
22956 under the filename which contains them.
22957 (check_identifier, finish_decl_top_level,
22958 lookup_name_current_level_global, shadow_record_fields): Remove.
22959
22960 2002-01-11 Andreas Jaeger <aj@suse.de>
22961
22962 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
22963 march.
22964
22965 2002-01-10 Richard Henderson <rth@redhat.com>
22966
22967 * config/alpha/alpha.c (print_operand): Add 'J'.
22968 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
22969 new operand with the sequence number for the lituse. When splitting
22970 the insns, use gen_movdi_er_high_g and generate a sequence number.
22971 (gen_movdi_er_high_g): Print the sequence number if non-zero.
22972
22973 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
22974
22975 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
22976 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
22977 stvxl.
22978 (altivec_expand_builtin): Same.
22979 (altivec_expand_stv_builtin): New.
22980
22981 * config/rs6000/rs6000.h (rs6000_builtins): Same.
22982
22983 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
22984 ("altivec_lvehx"): New.
22985 ("altivec_lvewx"): New.
22986 ("altivec_lvxl"): New.
22987 ("altivec_lvx"): New.
22988 ("altivec_stvx"): New.
22989 ("altivec_stvebx"): New.
22990 ("altivec_stvehx"): New.
22991 ("altivec_stvewx"): New.
22992 ("altivec_stvxl"): New.
22993
22994 2002-01-10 Richard Henderson <rth@redhat.com>
22995
22996 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
22997 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
22998 care not to delete instructions twice.
22999
23000 2002-01-10 Zack Weinberg <zack@codesourcery.com>
23001
23002 * toplev.c: Don't declare environ (it's not used anywhere).
23003 * configure.in: Don't check for declaration of environ.
23004 * config/i386/xm-mingw32.h: Don't #define environ.
23005 * config.in, configure: Regenerate.
23006
23007 2002-01-10 Zack Weinberg <zack@codesourcery.com>
23008
23009 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
23010 * configure: Regenerate.
23011
23012 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
23013 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
23014 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
23015 alpha/xm-vms.h.
23016 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
23017 LIMITS_H_TEST here, not in m68k/x-next.
23018 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
23019 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
23020
23021 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
23022 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
23023 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
23024
23025 * config/i386/x-djgpp: Renamed i386/t-djgpp.
23026 * config/m88k/x-dolph: Renamed m88k/t-dolph.
23027 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
23028 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
23029 replacement of quadlib.asm with quadlib.c.
23030
23031 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
23032 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
23033 config/rs6000/xm-beos.h: Delete file.
23034
23035 * config.gcc: Update to match above changes.
23036
23037 2002-01-10 Kazu Hirata <kazu@hxi.com>
23038
23039 * config/h8300/h8300.h: Fix comment typos.
23040 * config/h8300/h8300.md: Likewise.
23041 * config/h8300/lib1funcs.asm: Likewise.
23042
23043 2002-01-10 Dale Johannesen <dalej@apple.com>
23044
23045 PR optimization/5269
23046 * unroll.c (precondition_loop_p): Make *increment be the correct
23047 sign when n_iterations known, to avoid confusing caller.
23048
23049 2002-01-10 Kazu Hirata <kazu@hxi.com>
23050
23051 * doc/extend.texi (deprecated): Fix a typo.
23052
23053 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
23054
23055 * basic-block.h (update_br_prob_note): Declare.
23056 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
23057 (try_forward_edges): Care negative frequencies and update note.
23058 (outgoing_edges_match): Tweek conditional merging heuristics.
23059 (try_crossjump_to_edge): use update_br_prob_note.
23060 * cfglayout.c (fixup_reorder_chain): Likewise.
23061 * cfrtl.c (update_br_prob_note): New.
23062 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
23063
23064 * i386.c (ix86_decompose_address): Return -1 if address contains
23065 shift.
23066 (legitimate_address_p): Require ix86_decompose_address to return 1.
23067
23068 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
23069 (cprop_insn): Likewise.
23070
23071 2002-01-10 Kazu Hirata <kazu@hxi.com>
23072
23073 * toplev.c: Fix formatting.
23074 * tree.c: Likewise.
23075 * tree-dump.c: Likewise.
23076 * unroll.c: Likewise.
23077 * unwind-dw2.c: Likewise.
23078 * unwind-dw2-fde.c: Likewise.
23079 * unwind-dw2-fde-glibc.c: Likewise.
23080 * unwind-sjlj.c: Likewise.
23081
23082 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
23083
23084 * doc/invoke.texi: Document PDP-11 options.
23085
23086 2002-01-10 Kazu Hirata <kazu@hxi.com>
23087
23088 * config/h8300/h8300.h: Fix formatting.
23089
23090 2002-01-10 Ira Ruben <ira@apple.com>
23091
23092 Add __attribute__ ((deprecated)).
23093 * extend.texi: Document __attribute__ ((deprecated)).
23094 * invoke.texi: Document -Wno-deprecated-declarations.
23095 * testsuite/g++.dg/other/deprecated.C: New C++ test.
23096 * testsuite/gcc.dg/deprecated.c: New C test.
23097 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
23098 (c_common_attribute_table): Add "deprecated" entry.
23099 (handle_deprecated_attribute): New function.
23100 * c-decl.c (deprecated_states): New enum.
23101 deprecated_state: State of "deprecated" handling.
23102 (start_decl): Set deprecated_state based on attributes.
23103 (grokdeclarator): Test for deprecated uses, propagate attribute.
23104 * c-typeck.c (build_component_ref): Test for deprecated fields.
23105 (build_external_ref): Test for deprecated primaries.
23106 * diagnostic.c (warn_deprecated_use) New function to issue
23107 warnings about __attribute__ ((depricated)) references.
23108 * flags.h (warn_deprecated_decl): Extern declared for
23109 -W[no-]deprecated-declarations option.
23110 * print-tree.c (print_node): Show deprecated flag status.
23111 * toplev.c (warn_deprecated_decl): Defined.
23112 (W_options): Added "deprecated-declaration".
23113 * toplev.h (warn_deprecated_use): Extern declared.
23114 * tree.h (struct tree_common): Define deprecated_flag.
23115 (TREE_DEPRECATED): New macro to access flag.
23116 * cp/call.c (build_call): Test for deprecated calls.
23117 * cp/class.c (add_implicitly_declared_members): Set global
23118 flag to tell grokdeclarator to not issue deprecated warnings.
23119 * cp/cp-tree.h: Add extern for adding_implicit_members.
23120 * cp/decl.c (deprecated_states): New enum.
23121 (start_decl): Set deprecated_state based on attributes.
23122 (grokdeclarator): Test for deprecated uses, propagate attribute.
23123 * cp/lex.c (do_identifier): Test for deprecated primaries.
23124 * cp/typeck.c (build_component_ref): Test for deprecated fields.
23125
23126 2002-01-10 Ira Ruben <ira@apple.com>
23127
23128 Fix to assign attributes to inline member functions.
23129 * cp/decl.c (start_method): Handle attrlist.
23130
23131 2002-01-10 Kazu Hirata <kazu@hxi.com>
23132
23133 * combine.c (expand_field_assignment): Use subreg_lsb().
23134
23135 2002-01-10 David Edelsohn <edelsohn@gnu.org>
23136
23137 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
23138 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
23139 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
23140 Recurse for any operand of AND as long as constant is non-zero.
23141
23142 2002-01-10 Kazu Hirata <kazu@hxi.com>
23143
23144 * config/h8300/h8300.md: Remove constraints from expanders.
23145
23146 2002-01-10 Kazu Hirata <kazu@hxi.com>
23147
23148 * varasm.c: Fix formatting.
23149 * varray.c: Likewise.
23150 * vmsdbgout.c: Likewise.
23151 * xcoffout.c: Likewise.
23152
23153 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
23154
23155 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
23156 update edge probabilities to match.
23157
23158 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
23159
23160 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
23161 dependencies.
23162 * doc/languages.texi, doc/sourcebuild.texi: New files.
23163 * doc/configfiles.texi: Make a subsubsection. Update.
23164 * doc/configterms.texi: Add @node. Remove warning that this isn't
23165 instructions for building GCC.
23166 * doc/makefile.texi: Make a subsection.
23167 * doc/gccint.texi: Update.
23168
23169 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
23170
23171 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
23172
23173 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
23174
23175 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
23176
23177 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
23178
23179 * optabs.c (expand_fix): Look for wider integer modes first.
23180
23181 * i386.md (mov?f): Avoid the fake const double trick for medium
23182 memory model.
23183 (min?f*/max?f*): Prohibit memory operands for i387 variant.
23184 (fop_df_4): Disable for SSE compilation.
23185
23186 2002-01-10 Graham Stott <grahams@redhat.com>
23187
23188 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
23189 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
23190
23191 2002-01-10 Richard Henderson <rth@redhat.com>
23192
23193 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
23194
23195 2002-01-10 Richard Henderson <rth@redhat.com>
23196
23197 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
23198 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
23199
23200 2002-01-10 Kazu Hirata <kazu@hxi.com>
23201
23202 * combine.c (can_combine_p): Fix a comment typo.
23203
23204 2002-01-09 Zack Weinberg <zack@codesourcery.com>
23205
23206 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
23207 empty list correctly. Change loop index $t to $f for
23208 consistency with rest of Makefile.
23209
23210 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
23211
23212 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
23213 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
23214
23215 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
23216 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
23217 (altivec_init_builtins): Same.
23218 (altivec_expand_unop_builtin): Return NULL_RTX on error.
23219 (altivec_expand_binop_builtin): Same.
23220 (altivec_expand_ternop_builtin): Same.
23221 (bdesc_dst): New.
23222
23223 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
23224 ("altivec_vctuxs"): Fix typo.
23225 ("altivec_vnmsubfp"): Same.
23226 ("altivec_dssall"): New.
23227 ("altivec_mfvscr"): New.
23228 ("altivec_dss"): New.
23229 ("altivec_lvsl"): New.
23230 ("altivec_lvsr"): New.
23231 ("altivec_dstt"): New.
23232 ("altivec_dstst"): New.
23233 ("altivec_dststt"): New.
23234 ("altivec_dst"): New.
23235
23236 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
23237 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
23238
23239 2002-01-09 Richard Henderson <rth@redhat.com>
23240
23241 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
23242
23243 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
23244
23245 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
23246 function.
23247 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
23248 prototype.
23249 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
23250
23251 2002-01-09 Kazu Hirata <kazu@hxi.com>
23252
23253 * read-rtl.c: Fix formatting.
23254 * real.c: Likewise.
23255 * regclass.c: Likewise.
23256 * regrename.c: Likewise.
23257 * reg-stack.c: Likewise.
23258 * reload1.c: Likewise.
23259 * reload.c: Likewise.
23260 * rtl.c: Likewise.
23261
23262 2002-01-09 Kazu Hirata <kazu@hxi.com>
23263
23264 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
23265 to extract items in the expr_list chain.
23266
23267 2002-01-09 Richard Henderson <rth@redhat.com>
23268
23269 * config/vax/vax.c (vax_rtx_cost): Never abort.
23270
23271 * config/vax/vax.h (REAL_ARITHMETIC): Define.
23272
23273 2002-01-09 Jan Hubicka <jh@suse.cz>
23274
23275 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
23276
23277 2002-01-09 Richard Henderson <rth@redhat.com>
23278
23279 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
23280 Unify code from various alternatives.
23281
23282 2002-01-09 Richard Henderson <rth@redhat.com>
23283
23284 * regrename.c (copy_value): Ignore the copy if the source register
23285 is present in the value chain with a narrower mode.
23286
23287 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23288
23289 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
23290 for the c4x target. Also improve layout.
23291
23292 2002-01-09 Richard Henderson <rth@redhat.com>
23293
23294 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
23295 * config/m32r/m32r.md (and ior xor splitters): Swap operands
23296 to match insn patterns.
23297
23298 2002-01-09 Richard Henderson <rth@redhat.com>
23299
23300 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
23301 (copyprop_hardreg_forward_1): Likewise.
23302
23303 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
23304
23305 * pa.md (decrement_and_branch_until_zero): Change predicate for
23306 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
23307
23308 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
23309
23310 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
23311 gets undefined. For Darwin.
23312
23313 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23314
23315 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
23316
23317 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23318
23319 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
23320
23321 2002-01-08 Richard Henderson <rth@redhat.com>
23322
23323 * regrename.c (copy_value): Ignore overlapping copies.
23324
23325 2002-01-08 Richard Henderson <rth@redhat.com>
23326
23327 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
23328 as needed to avoid shared structure.
23329
23330 2002-01-08 Kazu Hirata <kazu@hxi.com>
23331
23332 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
23333 H8/300H and H8/S.
23334
23335 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23336
23337 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
23338 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
23339 documentation of obsolete macros.
23340 * system.h: Poison these macros.
23341 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
23342 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
23343 config/c4x/c4x.h, config/clipper/clipper.h,
23344 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
23345 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
23346 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
23347 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
23348 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
23349 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
23350 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
23351 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
23352 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
23353 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
23354 config/sparc/sparc.h, config/stormy16/stormy16.h,
23355 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
23356 definitions and commented out definitions of obsolete macros.
23357 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
23358 of MAX_INT_TYPE_SIZE.
23359
23360 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
23361
23362 * config/s390/s390.c (s390_preferred_reload_class): Never
23363 return ADDR_REGS if it isn't a subset of the given class.
23364 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
23365 FP_REGS, but all superclasses as well.
23366
23367 * config/s390/s390.c (s390_function_profiler): Fix thinko.
23368
23369 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
23370 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
23371 must not be a const_int.
23372
23373 2002-01-08 Richard Henderson <rth@redhat.com>
23374
23375 * Makefile.in (toplev.o): Depend on options.h.
23376 (gcc.o): Depend on specs.h.
23377
23378 2002-01-08 Jakub Jelinek <jakub@redhat.com>
23379
23380 * expr.c (store_expr): Convert VOIDmode constants back to target's
23381 mode.
23382
23383 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
23384
23385 * doc/invoke.texi: Markup gcc as @command. Refer to
23386 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
23387 of http://gcc.gnu.org/thanks.html.
23388
23389 2002-01-08 Dale Johannesen <dalej@apple.com>
23390
23391 * config/rs6000/rs6000.md: Add missing int register
23392 target case to movdf_low.
23393
23394 2002-01-08 Zack Weinberg <zack@codesourcery.com>
23395
23396 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
23397 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
23398 (cppinit.o): Depend on except.h.
23399 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
23400 s-specs): New rules.
23401
23402 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
23403 Don't create specs.h/options.h/gencheck.h here. Remove
23404 unnecessary variable settings from last argument of AC_OUTPUT.
23405 * config.in, configure: Regenerate.
23406 * intl.c: Hardcode package name as "gcc".
23407
23408 * cppinit.c: Include except.h.
23409 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
23410 appropriate.
23411 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
23412 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
23413 (!)USING_SJLJ_EXCEPTIONS.
23414 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
23415
23416 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23417
23418 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
23419 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
23420 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
23421 documentation of obsolete macros.
23422 * system.h: Poison these macros.
23423 * config/d30v/d30v.h, config/ns32k/encore.h,
23424 config/stormy16/stormy16.h: Remove definitions and commented out
23425 definitions of obsolete macros.
23426
23427 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
23428
23429 * objc/objc-act.c (handle_class_ref): Mark the declaration of
23430 %sobjc_class_ref_%s as used - to prevent unwanted compiler
23431 warnings.
23432
23433 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
23434
23435 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
23436 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
23437 to insn adjusting stack/frame pointer.
23438 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
23439 accept operands that cause the insn to be non-splittable.
23440
23441 2002-01-08 Graham Stott <grahams@redhat.com>
23442
23443 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
23444 (C_TYPE_FIELDS_VOLATILE): Likewise.
23445 (C_TYPE_BEING_DEFINED): Likewise.
23446 (C_IS_RESERVED_WORD): Likewise.
23447 (C_TYPE_VARIABLE_SIZE): Likewise.
23448 (C_DECL_VARIABLE_SIZE): Likewise.
23449 (C_MISSING_PROTOTYPE_WARNED): Likewise.
23450 (C_SET_EXP_ORIGINAL_CODE): Likewise.
23451 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
23452 parenthesis.
23453 (C_DECL_ANTICIPATED): Likewise.
23454 (c_build_type_variant): Add parenthesis.
23455
23456 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23457
23458 * gcc.c (option_map): Remove --version.
23459 (process_command): Handle -fversion following the GNU Coding
23460 Standards. Partially addresses PR other/704.
23461
23462 2002-01-08 Graham Stott <grahams@redhat.com>
23463
23464 * combine.c (combine_instructions): Fix typo.
23465
23466 2002-01-08 Graham Stott <grahams@redhat.com>
23467
23468 * debug.h: Use "tree" and "rtx" throughout.
23469
23470 * debug.c: Likewise.
23471
23472 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
23473
23474 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
23475 constant pool, use the pool's version of the symbol instead.
23476
23477 2002-01-07 Richard Henderson <rth@redhat.com>
23478
23479 * regrename.c (find_oldest_value_reg): Ignore the value chain if
23480 the original register was copied in a mode with a fewer number of
23481 hard registers than the desired mode.
23482 (copyprop_hardreg_forward_1): Likewise.
23483 (debug_value_data): Fix loop test.
23484 * toplev.c (parse_options_and_default_flags): Reenable
23485 -fcprop-registers at -O1.
23486
23487 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23488
23489 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
23490 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
23491
23492 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
23493 predicates.
23494
23495 * config/rs6000/rs6000.md: Add altivec predicate patterns.
23496
23497 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
23498
23499 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
23500 (pa_output_function_prologue): Output local label at the beginning of
23501 the prologue when profiling.
23502 (hppa_profile_hook): Use the local label rather than the function label.
23503 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
23504
23505 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23506
23507 * config/rs6000/rs6000.c (print_operand): Remove extra space.
23508 (altivec_expand_unop_builtin): Fix thinko.
23509 (altivec_expand_binop_builtin): Same.
23510 (altivec_expand_ternop_builtin): Same.
23511 (altivec_expand_builtin): Same.
23512
23513 2002-01-07 Richard Henderson <rth@redhat.com>
23514
23515 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
23516
23517 2002-01-07 Jason Merrill <jason@redhat.com>
23518
23519 * unwind-dw2.c (execute_cfa_program): Use < again.
23520
23521 2002-01-07 Jakub Jelinek <jakub@redhat.com>
23522
23523 * predict.c (combine_predictions_for_insn): Avoid division by zero.
23524
23525 2002-01-07 Jakub Jelinek <jakub@redhat.com>
23526
23527 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
23528 Don't allow -1 - x -> ~x simplifications in the first pass.
23529
23530 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23531
23532 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
23533 arguments.
23534 (altivec_expand_binop_builtin): Same.
23535 (altivec_expand_unop_builtin): Same.
23536 (print_operand): Fix typo.
23537 (bdesc_1arg): Add vupk* variants.
23538
23539 * rs6000.h (rs6000_builtins): Add vupk* enums.
23540
23541 * rs6000.md: Add altivec_vupk* variants.
23542
23543 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
23544
23545 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
23546 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
23547 and last update dates.
23548
23549 2002-01-07 Janis Johnson <janis187@us.ibm.com>
23550
23551 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
23552
23553 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
23554
23555 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
23556 * config/avr/avr.h (CPP_SPEC): Likewise.
23557 (LINK_SPEC): Likewise.
23558 (CRT_BINUTILS_SPECS): Likewise.
23559 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
23560 * doc/invoke.texi (AVR Options): Document them.
23561
23562 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
23563
23564 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
23565 LABEL_NUSES.
23566
23567 2002-01-07 Graham Stott <grahams@redhat.com>
23568
23569 * config/i386/i386.h: Update copyright date.
23570 (HALF_PIC_PTR): Add parenthesis.
23571 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
23572 (CONSTANT_ALIGNMENT): Add parenthesis.
23573 (DATA_ALIGNMENT): Likewise.
23574 (LOCAL_ALIGNMENT): Likewise.
23575 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
23576 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
23577 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
23578 (HARD_REGNO_NREGS): Add paranethesis.
23579 (VALID_SSE_REG_MODE): Whitespace.
23580 (VALID_MMX_REG_MODE): Whitespace.
23581 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
23582 (ix86_hard_regno_mode_ok): Add parenthesis.
23583 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
23584 (RETURN_IN_MEMORY): Whitespace.
23585 (N_REG_CLASSES): Add parenthesis.
23586 (INTEGER_CLASS_P): Add parenthesis and wrap.
23587 (FLOAT_CLASS_P): Likewise.
23588 (SSE_CLASS_P): Likewise.
23589 (MMX_CLASS_P): Likewise.
23590 (MAYBE_INTEGER_CLASS_P): Likewise.
23591 (MAYBE_FLOAT_CLASS_P): Likewise.
23592 (MAYBE_SSE_CLASS_P): Likewise.
23593 (MAYBE_MMX_CLASS_P): Likewise.
23594 (Q_CLASS_P): Likewise.
23595 (GENERAL_REGNO_P): Uppercase macro parameter.
23596 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
23597 (FP_REGNO_P): Likewise.
23598 (ANY_FP_REGNO_P): Uppercase macro parameter.
23599 (SSE_REGNO_P): Likewise.
23600 (SSE_REGNO): Likewise.
23601 (SSE_REG_P): Likewise.
23602 (SSE_FLOAT_MODE_P): Likewise.
23603 (MMX_REGNO_P): Likewise.
23604 (MMX_REG_P):Likewise.
23605 (STACK_REG_P): Likewise.
23606 (NON_STACK_REG_P): Likewise.
23607 (STACK_TOP_P): Likewise.
23608 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
23609 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
23610 (SECONDARY_MEMORY_NEEDED): Likewise.
23611 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
23612 (MD_ASM_CLOBBERS): Whitespace and wrap.
23613 (MUST_PASS_IN_STACK): Whitespace and wrap.
23614 (RETURN_POPS_ARGS): Add parenthesis.
23615 (INIT_CUMULATIVE_ARGS): Likewise.
23616 (FUNCTION_ARG): Likewise.
23617 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
23618 (SETUP_INCOMING_VARARGS): Likewise.
23619 (BUILD_VA_LIST_TYPE): Add parenthesis.
23620 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
23621 parenthsis.
23622 (EXPAND_BUILTIN_VA_ARG): Likewise.
23623 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
23624 (INITIALIZE_TRAMPOLINE): Add parenthesis.
23625 (INITIAL_ELIMINATION_OFFSET): Likewise.
23626 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
23627 (REGNO_OK_FOR_BASE_P): Likewise.
23628 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
23629 (REGNO_OK_FOR_DIREG_P): Likewise.
23630 (REG_OK_FOR_INDEX_P): Whitespace.
23631 (REG_OK_FOR_BASE_P): Whitespace.
23632 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
23633 parenthesis.
23634 (FIND_BASE_TERM): Fix typo.
23635 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
23636 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
23637 (SYMBOLIC_CONST; Whitespace.
23638 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
23639 (ENCODE_SECTION_INFO): Whitespace.
23640 (FINALIZE_PIC): Remove do { ... } while (0).
23641 (PROMOTE_MODE): Wrap in do { ... } while (0).
23642 (CONST_COSTS): Whitespace.
23643 (RTX_COSTS): Add paramethesis, whitespace and wrap.
23644 (REGISTER_MOVE_COST): Add parenthesis.
23645 (MEMORY_MOVE_COST): Likewise.
23646 (EXTRA_CC_MODES): Whitespace.
23647 (SELECT_CC_MODE): Add parenthesis and whitespace.
23648 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
23649 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
23650 (ASM_OUTPUT_LABEL): Add paramethesis.
23651 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
23652 (ASM_OUTPUT_REG_POP): Likewise.
23653 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
23654 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
23655
23656 * config/i386/i386.c: Update copyright.
23657 (CHECK_STACK_LIMIT): Add parenthesis.
23658 (AT_BP): Uppercase macro parameter.
23659 (x86_64_int_parameter_registers): Constify.
23660 (x86_64_int_return_registers): Likewise.
23661 (ix86_compare_op0): Use rtx.
23662 (construct_container): Constify INTREG parameter.
23663 (function_arg): Use rtx.
23664
23665 * diagnostic.h: Update copyright date.
23666 (output_buffer_state): Add parenthesis.
23667 (output_buffer_format_args): Likewise.
23668
23669 * combine.c (combine_instructions): Replace XEXP (links, 0)
23670 with link.
23671
23672 2002-01-06 H.J. Lu <hjl@gnu.org>
23673
23674 * cfgcleanup.c (thread_jump): Fix 2 typos.
23675
23676 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
23677
23678 * config.gcc: Add support for --enable-altivec.
23679
23680 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
23681
23682 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
23683
23684 2002-01-06 Jakub Jelinek <jakub@redhat.com>
23685
23686 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
23687 __objc_class_name_*.
23688
23689 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
23690
23691 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
23692
23693 2002-01-06 Richard Henderson <rth@redhat.com>
23694
23695 * reorg.c (emit_delay_sequence): Remove death notes, not merely
23696 nop them out. Increment label reference count for REG_LABEL.
23697 (fill_slots_from_thread): Frob label reference count around
23698 delete_related_insns.
23699
23700 2002-01-05 Richard Henderson <rth@redhat.com>
23701
23702 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
23703 jump threading.
23704
23705 2002-01-05 Richard Henderson <rth@redhat.com>
23706
23707 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
23708 * integrate.c (output_inline_function): Likewise.
23709 * toplev.c (rest_of_compilation): Do it here instead. Move call
23710 to remove_unnecessary_notes after emitting abstract instance.
23711 Force an emitted nested function to have its parent emited as well.
23712 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
23713 for null.
23714 (rtl_for_decl_location): Do not look at reload data structures
23715 before reload has run.
23716
23717 2002-01-05 Kazu Hirata <kazu@hxi.com>
23718
23719 * cse.c: Fix formatting.
23720 * dwarf2asm.c: Likewise.
23721 * dwarf2out.c: Likewise.
23722 * explow.c: Likewise.
23723 * expmed.c: Likewise.
23724 * function.c: Likewise.
23725 * gcov.c: Likewise.
23726 * gencheck.c: Likewise.
23727 * genrecog.c: Likewise.
23728 * ggc-common.c: Likewise.
23729 * ggc-page.c: Likewise.
23730 * global.c: Likewise.
23731
23732 2002-01-05 Kazu Hirata <kazu@hxi.com>
23733
23734 * combine.c: Fix formatting.
23735
23736 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
23737
23738 PR middle-end/1557
23739 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
23740
23741 2002-01-05 David Edelsohn <edelsohn@gnu.org>
23742
23743 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
23744 as 1 for __powerpc64__ as well.
23745
23746 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
23747
23748 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
23749 return it.
23750
23751 2002-01-05 Daniel Berlin <dan@dberlin.org>
23752
23753 * lcm.c: Revert change, due to performance regression it causes on
23754 SPEC because it's slightly more conservative (sigh, I hate
23755 edge-based LCM).
23756
23757 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
23758
23759 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
23760
23761 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
23762
23763 * doc/cppinternals.texi: Update.
23764
23765 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
23766
23767 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
23768 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
23769 negatives.
23770 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
23771 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
23772 kludge for pre-october-14th mmix versions to handle new-found bug
23773 with PUSHJ/PUSHGO and the register stack.
23774 * config/mmix/mmix.h (struct machine_function): Rename member
23775 has_call_value_without_parameters to has_call_without_parameters.
23776 All referers changed.
23777 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
23778 TARGET_MASK_BRANCH_PREDICT): New macros.
23779 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
23780 -mno-reg-stack-fill-bug-workaround.
23781 * config/mmix/mmix.md ("call"): Set struct machine member
23782 has_call_without_parameters.
23783
23784 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
23785
23786 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
23787
23788 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
23789
23790 * cfgcleanup.c: Include tm_p.h
23791 (mark_effect): Fix handling of hard register; fix handling of SET
23792
23793 2002-01-04 Kazu Hirata <kazu@hxi.com>
23794
23795 * config/h8300/h8300.md (anonymous patterns): Check that
23796 operands are registers before using REGNO on them.
23797
23798 2002-01-03 Roland McGrath <roland@frob.com>
23799
23800 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
23801
23802 2002-01-04 Jakub Jelinek <jakub@redhat.com>
23803
23804 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
23805 * c-common.h (genrtl_expr_stmt_value): Likewise.
23806 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
23807 (expand_expr_stmt_value): Add maybe_last argument.
23808 Don't warn about statement with no effect if it is the last statement
23809 in expression statement.
23810 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
23811 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
23812 expand_expr_stmt_value.
23813 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
23814 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
23815 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
23816 as maybe_last to expand_expr_stmt_value.
23817
23818 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
23819
23820 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
23821 be passed in, do not build it.
23822 (c_begin_if_stmt): New function.
23823 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
23824 * c-common.h (c_expand_start_cond): Update prototype.
23825 (c_begin_if_stmt): Prototype new function.
23826 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
23827 * c-parse.in (if_prefix): Use c_begin_if_stmt,
23828 c_begin_while_stmt and c_finish_while_stmt_cond.
23829
23830 2002-01-04 William Cohen <wcohen@redhat.com>
23831
23832 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
23833 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23834 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23835 * config/pa/som.h (ASM_FILE_START): Likewise.
23836
23837 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
23838
23839 * lcm.c: Include df.h.
23840 Add available_transfer_function prototype.
23841 (compute_available): Rework to use iterative dataflow framework.
23842 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
23843 with bb_info in df.h
23844 (available_transfer_function): New function.
23845
23846 * Makefile.in (lcm.o): add df.h to dependencies.
23847
23848 2002-01-04 Richard Henderson <rth@redhat.com>
23849
23850 * config/alpha/alpha.c (some_operand): Accept HIGH.
23851 (input_operand): Likewise; accept simple references to globals.
23852 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
23853 (alpha_const_double_ok_for_letter_p): Likewise.
23854 (alpha_extra_constraint): Likewise.
23855 (alpha_preferred_reload_class): Likewise. Do not force
23856 symbolic constants to memory.
23857 (alpha_legitimate_address_p): Accept simple references
23858 to small_symbolic_operand.
23859 (alpha_legitimize_address): New arg scratch. Be prepared to be
23860 called when no_new_pseudos. Emit simple symbolic references.
23861 Split integers into low, high, and rest.
23862 (alpha_expand_mov): Use alpha_legitimize_address.
23863 (some_small_symbolic_mem_operand): New.
23864 (split_small_symbolic_mem_operand): New.
23865 * config/alpha/alpha-protos.h: Update.
23866 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
23867 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
23868 (EXTRA_CONSTRAINT): Likewise.
23869 (PREFERRED_RELOAD_CLASS): Likewise.
23870 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
23871 (PREDICATE_CODES): Update.
23872 * config/alpha/alpha.md: New post-reload splitters to convert
23873 simplfied symbolic operands to the form that references $29.
23874 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
23875 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
23876
23877 2002-01-03 Richard Henderson <rth@redhat.com>
23878
23879 * local-alloc.c (function_invariant_p): Update commentary.
23880
23881 2002-01-04 H.J. Lu <hjl@gnu.org>
23882
23883 * toplev.c (rest_of_compilation): Fix a typo when calling
23884 cleanup_cfg.
23885
23886 2002-01-03 Kazu Hirata <kazu@hxi.com>
23887
23888 * c-common.c: Fix formatting.
23889 * diagnostic.c: Likewise.
23890 * doloop.c: Likewise.
23891 * dwarf2out.c: Likewise.
23892
23893 2002-01-03 Kazu Hirata <kazu@hxi.com>
23894
23895 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
23896 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
23897
23898 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23899
23900 * cpperror.c: Update comments and copyright.
23901 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
23902 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
23903
23904 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
23905
23906 * collect2.c (main): Use strcmp when testing for "-shared".
23907
23908 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23909
23910 * cppmacro.c: Don't include intl.h. Update comments.
23911 (new_number_token): Allocate enough buffer for 64-bit unsigned
23912 integers; update prototype.
23913 * cppmain.c: Update comments.
23914
23915 2002-01-03 William Cohen <wcohen@redhat.com>
23916
23917 * function.h (struct function): Add profile.
23918 (current_function_profile): New.
23919 doc/extend.texi: Update documentation.
23920 * final.c (final_start_function): Use current_function_profile
23921 instead of profile_flag.
23922 (profile_after_prologue): Likewise.
23923 * function.c (expand_function_start): Likewise.
23924 (expand_function_start): Likewise.
23925 * config/alpha/alpha.c (direct_call_operand):
23926 (alpha_does_function_need_gp): Likewise.
23927 (alpha_expand_prologue): Likewise.
23928 * config/arm/arm.c (arm_expand_prologue): Likewise.
23929 thumb_expand_prologue: Likewise.
23930 * config/d30v/d30v.c (d30v_stack_info): Likewise.
23931 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
23932 (fr30_expand_prologue): Likewise.
23933 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
23934 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
23935 * config/i386/i386.h (FINALIZE_PIC): Likewise.
23936 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
23937 * config/i960/i960.c (i960_output_function_prologue): Likewise.
23938 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
23939 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
23940 (m32r_expand_prologue): Likewise.
23941 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
23942 (m88k_expand_prologue): Likewise.
23943 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
23944 * config/mips/mips.c (compute_frame_size): Likewise.
23945 (mips_expand_prologue): Likewise.
23946 (mips_can_use_return_insn): Likewise.
23947 * config/pa/elf.h (ASM_FILE_START): Likewise.
23948 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23949 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23950 * config/pa/som.h (ASM_FILE_START): Likewise.
23951 * config/romp/romp.c (romp_using_r14): Likewise.
23952 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
23953 (rs6000_stack_info): Likewise.
23954 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
23955 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
23956 * config/v850/v850.c (compute_register_save_size): Likewise.
23957
23958 2002-01-03 Jakub Jelinek <jakub@redhat.com>
23959
23960 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
23961 gen_lowpart_common fails, use gen_lowpart_SUBREG.
23962
23963 2002-01-03 Turly O'Connor <turly@apple.com>
23964
23965 * darwin.c (machopic_output_possible_stub_label): Don't generate
23966 stub routines for pseudo-stubs which we've just defined.
23967
23968 2002-01-03 Kazu Hirata <kazu@hxi.com>
23969
23970 * builtins.c: Fix formatting.
23971 * c-typeck.c: Likewise.
23972 * combine.c: Likewise.
23973 * expr.c: Likewise.
23974 * loop.c: Likewise.
23975
23976 2002-01-03 Andreas Schwab <schwab@suse.de>
23977
23978 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
23979 and return true if _cpp_push_next_buffer pushed a new include
23980 file.
23981 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
23982 _cpp_pop_file_buffer did not push a new file.
23983 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
23984
23985 2002-01-02 Eric Christopher <echristo@redhat.com>
23986
23987 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
23988 FIND_REG_INC_NOTE call. Update copyright.
23989 * loop.c (canonicalize_condition): Ditto.
23990 * reorg.c (delete_scheduled_jump): Ditto.
23991
23992 2002-01-03 Kazu Hirata <kazu@hxi.com>
23993
23994 * gcse.c: Fix formatting.
23995
23996 2002-01-03 Graham Stott <grahams@redhat.com>
23997
23998 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
23999 forward defs for struct tags rtx_def, union_tree, rtvec_def
24000 also output corresponding typedefs for rtx, tree, and rtvec.
24001
24002 * system.h: Move forward defs for struct tags rtx_def, union_tree,
24003 rtvec_def along with corresponding typedefs for rtx, tree, and
24004 rtvec to config.h, hconfig.h, tconfig.h.
24005
24006 2002-01-03 Graham Stott <grahams@redhat.com>
24007
24008 * tree.h: Update copyright date.
24009 (IS_EXPR_CODE_CLASS): Add parenthesis.
24010 (TREE_SET_CODE): Add whitespace.
24011 (TREE_CHECK): Add parenthesis.
24012 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
24013 (CST_OR_CONSTRUCTOR_CHECK):
24014 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
24015 (TREE_SYMBOL_REFERENCED): Whitespace.
24016 (INT_CST_LT): Likewise.
24017 (INT_CST_LT_UNSIGNED): Likewise.
24018 (tree_real_cst): Unwrap comment.
24019 (tree_string): Likewise.
24020 (tree_complex): Likewise.
24021 (IDENTIFIER_POINTER): correct cast.
24022 (SAVE_EXPR_CONTEXT): Whitespace.
24023 (EXPR_WFL_FILENAME_NODE): Likewise.
24024 (EXPR_WFL_FILENAME): Remove parenthesis.
24025 (DECL_ORIGIN): Add parenthesis.
24026 (DECL_FROM_INLINE): Use NULL_TREE.
24027 (build_int_2): Whitespace.
24028 (build_type_variant): Add parenthesis.
24029
24030 * gcc/jcf-parse.c: Update copyright date.
24031 (yyparse): Constify resource_filename.
24032
24033 2002-01-03 Graham Stott <grahams@redhat.com>
24034
24035 * rtl.h: Update copyright date.
24036 (RTL_CHECK1): Wrap long line.
24037 (RTL_CHECK2): Likewise.
24038 (RTL_CHECKC1): Wrap long line and whitespace.
24039 (RTL_CHECKC2): Likewise.
24040 (XWINT): Whitespace.
24041 (XINT): Likewise.
24042 (XSTR): Likewise.
24043 (XEXP): Likewise.
24044 (XVEC): Likewise.
24045 (XMODE): Likewise.
24046 (XBITMAP): Likewise.
24047 (XTREE): Likewise.
24048 (XBBDEF): Likewise.
24049 (XTMPL): Likewise.
24050 (X0WINT): Likewise.
24051 (X0INT):Likewise.
24052 (X0UINT): Likewise.
24053 (X0STR): Likewise.
24054 (X0EXP): Likewise.
24055 (X0VEC): Likewise.
24056 (X0MODE): Likewise.
24057 (X0BITMAP): Likewise.
24058 (X0TREE): Likewise.
24059 (X0BBDEF): Likewise.
24060 (X0ADVFLAGS): Likewise.
24061 (X0CSELIB): Likewise.
24062 (X0MEMATTR): Likewise.
24063 (XCWINT): Likewise.
24064 (XCINT): Likewise.
24065 (XCUINT): Likewise.
24066 (XCSTR): Likewise.
24067 (XCEXP): Likewise.
24068 (XCVEC): Likewise.
24069 (XCMODE): Likewise.
24070 (XCBITMAP): Likewise.
24071 (XCTREE): Likewise.
24072 (XCBBDEF): Likewise.
24073 (XCADVFLAGS): Likewise.
24074 (XCCSELIB): Likewise.
24075 (XC2EXP): Likewise.
24076 (INSN_UID): Likewise.
24077 (PREV_INSN): Likewise.
24078 (PATTERN): Likewise.
24079 (INSN_CODE): Likewise.
24080 (PUT_REG_NOTE_KIND): Likewise.
24081 (CODE_LABEL_NUMBER): Likewise.
24082 (NOTE_SOURCE_FILE): Likewise.
24083 (NOTE_BLOCK): Likewise.
24084 (NOTE_EH_HANDLER): Likewise.
24085 (NOTE_RANGE_INFO): Likewise.
24086 (NOTE_LIVE_INFO): Likewise.
24087 (NOTE_BASIC_BLOCK): Likewise.
24088 (NOTE_EXPECTED_VALUE): Likewise.
24089 (NOTE_LINE_NUMBER): Likewise.
24090 (LABEL_NAME): Likewise.
24091 (LABEL_NUSES): Likewise.
24092 (LABEL_ALTERNATE_NAME): Likewise.
24093 (ADDRESSOF_DECL): Likewise.
24094 (JUMP_LABEL): Likewise.
24095 (LABEL_NEXTREF): Likewise.
24096 (REGNO): Likewise.
24097 (ORIGINAL_REGNO: Likewise.
24098 (HARD_REGISTER_NUM_P): Add parenthesis.
24099 (SUBREG_REG): Whitespace.
24100 (SUBREG_BYTE): Likewise.
24101 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
24102 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
24103 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
24104 (ASM_OPERANDS_INPUT_VEC): Likewise.
24105 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
24106 (ASM_OPERANDS_INPUT): Likewise.
24107 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
24108 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
24109 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
24110 (ASM_OPERANDS_INPUT_MODE): Likewise.
24111 (ASM_OPERANDS_SOURCE_FILE): Likewise.
24112 (ASM_OPERANDS_SOURCE_LINE): Likewise.
24113 (MEM_SET_IN_STRUCT_P): Minor reformat.
24114 (TRAP_CONDITION): Whitespace.
24115 (TRAP_CODE): Likewise.
24116 (COND_EXEC_TEST): Likewise.
24117 (COND_EXEC_CODE): Likewise.
24118 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
24119 (PHI_NODE_P): Add parenthesis.
24120 (plus_constant): Whitespace and add parenthesis.
24121
24122 2002-01-03 Kazu Hirata <kazu@hxi.com>
24123
24124 * config/avr/avr.c: Fix comment typos.
24125 * config/c4x/c4x.md: Likewise.
24126 * config/dsp16xx/dsp16xx.h: Likewise.
24127 * config/dsp16xx/dsp16xx.md: Likewise.
24128 * config/i386/i386.md: Likewise.
24129 * config/ia64/ia64.c: Likewise.
24130 * config/m32r/m32r.h: Likewise.
24131 * config/m68hc11/m68hc11.md: Likewise.
24132 * config/mmix/mmix.c: Likewise.
24133 * config/mn10200/mn10200.c: Likewise.
24134 * config/romp/romp.c: Likewise.
24135 * config/sh/sh.c: Likewise.
24136 * config/stormy16/stormy16.c: Likewise.
24137 * config/stormy16/stormy16.h: Likewise.
24138 * config/stormy16/stormy16.md: Likewise.
24139
24140 2002-01-03 Graham Stott <grahams@redhat.com>
24141
24142 * loop.h: Update copyright date.
24143 (LOOP_MOVABLES): Fix typo.
24144 (LOOP_REGS): Likewise.
24145 (LOOP_IVS): Likewise.
24146
24147 2002-01-03 Graham Stott <grahams@redhat.com>
24148
24149 * cppinit.c: Update copyright date.
24150 Don't include output.h
24151 * Makefile.in: Update copyright date.
24152 Update dependency.
24153
24154 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
24155
24156 PR c/5226
24157 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
24158 (-pthread) Add to RS/6000 options.
24159
24160 2002-01-02 Kazu Hirata <kazu@hxi.com>
24161
24162 * except.c: Fix comment typos.
24163 * loop.c: Likewise.
24164 * varasm.c: Likewise.
24165 * doc/tm.texi: Fix a typo.
24166
24167 2002-01-02 Jakub Jelinek <jakub@redhat.com>
24168
24169 * c-typeck.c (output_init_element): Allow initializing static storage
24170 duration objects with compound literals.
24171
24172 2002-01-02 Richard Henderson <rth@redhat.com>
24173
24174 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
24175 after abusing it.
24176
24177 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24178
24179 * gcc.c (default_compilers): Const-ify.
24180 * mips-tdump.c (stab_names): Likewise.
24181 * mips-tfile.c (map_coff_types, map_coff_storage,
24182 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
24183 pseudo_ops_t, pseudo_ops): Likewise.
24184 * protoize.c (default_include): Likewise
24185
24186 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
24187 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
24188 Add array size in declaration.
24189 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
24190 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
24191 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
24192 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
24193 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
24194 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
24195 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
24196 emtens, make_nan): Const-ify.
24197 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
24198 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
24199
24200 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
24201
24202 * config.gcc (ia64-*-*): Set extra_headers.
24203 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
24204 * config/alpha/t-osf: Remove.
24205 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
24206
24207 2002-01-02 David Edelsohn <edelsohn@gnu.org>
24208
24209 * config/rs6000/t-aix43: Revert previous change.
24210
24211 2002-01-02 Jason Merrill <jason@redhat.com>
24212
24213 * c-decl.c (c_expand_body): Call outlining_inline_function when
24214 emitting an inline function out of line.
24215
24216 2002-01-02 Richard Henderson <rth@redhat.com>
24217
24218 * dwarf2out.c (limbo_die_node): Add created_for member.
24219 (new_die): New argument created_for. Update all callers.
24220 (mark_limbo_die_list): New.
24221 (dwarf2out_init): Register limbo_die_list as a root.
24222 (dwarf2out_finish): Force insert limbo dies into their function
24223 context.
24224
24225 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
24226
24227 PR c++/5089
24228 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
24229
24230 2002-01-02 Kazu Hirata <kazu@hxi.com>
24231
24232 * config/h8300/fixunssfsi.c: Update copyright.
24233 Fix comment typos.
24234 Fix formatting.
24235 * config/h8300/h8300.c: Update copyright.
24236 Eliminate warnings.
24237
24238 2002-01-02 Kazu Hirata <kazu@hxi.com>
24239
24240 * config/romp/romp.c: Fix comment formatting.
24241 * config/romp/romp.h: Likewise.
24242 * config/romp/romp.md: Likewise.
24243 * config/s390/s390.c: Likewise.
24244 * config/stormy16/stormy16.c: Likewise.
24245 * config/stormy16/stormy16.h: Likewise.
24246
24247 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
24248
24249 * c-common.h (genrtl_expr_stmt_value): Declare.
24250 * c-semantics.c (genrtl_goto_stmt): Redirect to...
24251 (genrtl_goto_stmt_value): ... this new function. Pass new
24252 argument down to expand_expr_stmt_value, taking
24253 TREE_ADDRESSABLE into account.
24254 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
24255 STMT_EXPR as addressable, i.e., one whose result we want.
24256 * expr.c (expand_expr): Don't save expression statement value
24257 of labeled_blocks or loop_exprs.
24258 * stmt.c (expand_expr_stmt): Redirect to...
24259 (expand_expr_stmt_value): ... this new function. Use new
24260 argument to tell whether to save expression value.
24261 (expand_end_stmt_expr): Reset last_expr_type and
24262 last_expr_value if we don't have either.
24263 * tree-inline.c (declare_return_variable): Mark its use
24264 statement as addressable.
24265 * tree.h: Document new use of TREE_ADDRESSABLE.
24266 (expand_expr_stmt_value): Declare.
24267
24268 2002-01-01 Tom Rix <trix@redhat.com>
24269
24270 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
24271 rs6000_emit_allocate_stack.
24272
24273 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
24274
24275 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
24276 ${srcdir}/ginclude/ to every entry in extra_headers.
24277 * configure: Regenerate.
24278 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
24279 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
24280 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
24281 * ginclude/proto.h: Rename to config/convex/proto.h.
24282
24283 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24284
24285 * attribs.c (handle_vector_size_attribute): Use host_integerp
24286 and tree_int_cst; remove warnings.
24287 * caller-save.c (insert_restore): Add cast to get rid of warning.
24288 (insert_save): Likewise.
24289 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
24290 * regmove.c (find_matches): Add temporary var to kill a warning.
24291
24292 2002-01-01 Douglas B Rupp <rupp@gnat.com>
24293
24294 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
24295 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
24296 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
24297 (vms-dwarf2eh.o): Add Makefile rule.
24298 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
24299 * config/alpha/vms-dwarf2eh.asm: New file.
24300
24301 * gcc.c (delete_if_ordinary): Delete all versions.
24302
24303 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
24304
24305 * config/mmix/mmix.md: Update FIXME to not mention
24306 define_constants.
24307 (MMIX_rJ_REGNUM): New define_constants constant.
24308 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
24309 "*movdicc_real"): Adjust contraints formatting.
24310 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
24311 for branch prediction.
24312 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
24313 output template.
24314 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
24315 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
24316 number. Delete related FIXMEs.
24317 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
24318 from number to MMIX_rJ_REGNUM.
24319 (TARGET_MASK_BRANCH_PREDICT): New.
24320 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
24321 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
24322 value. Add -mbranch-predict and -mno-branch-predict.
24323 (TARGET_VERSION): Drop date.
24324 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
24325 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
24326 for finding out global symbols.
24327 (mmix_asm_output_labelref): Revert condition for global symbol.
24328 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
24329 (mmix_print_operand_punct_valid_p): A '+' is valid.
24330
24331 See ChangeLog.6 for earlier changes.