OSDN Git Service

* Makefile.in: Update.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2
3         * Makefile.in: Update.
4         * c-decl.c (print_lang_decl, print_lang_type): Remove.
5         (print_lang_identifier): Rename c_print_identifier.
6         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
7         (print_lang_statistics, lang_print_xnode): Remove.
8         * c-parse.in (set_yydebug): Rename c_set_yydebug.
9         * c-tree.h (c_set_yydebug, c_print_identifier): New.
10         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
11         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
12         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
13         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
14         (LANG_HOOKS_INITIALIZER): Update.
15         * langhooks.h (struct lang_hooks): New members.
16         (lang_print_tree_hook): New.
17         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
18         * print-tree.c: Include langhooks.h.
19         (print_node): Update.
20         * toplev.c (decode_d_option): Update.
21         * tree.c: Include langhooks.h.
22         (dump_tree_statistics): Update.
23         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
24         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
25 objc:
26         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
27         LANG_HOOKS_SET_YYDEBUG): Override.
28         (lang_print_xnode, print_lang_statistics): Remove.
29
30 2001-11-09  Richard Henderson  <rth@redhat.com>
31
32         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
33         on the symbol string.
34
35 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36
37         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
38         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
39         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
40
41         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
42
43         * tlink.c (recompile_files): Copy strings passed to `putenv'.
44
45 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
46
47         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
48         (TYPE_READONLY): Likewise.
49
50         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
51
52         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
53         don't pass --gdwarf2 to the assembler if the compiler will also
54         provide debug info.
55
56         * config/stormy16/stormy16.c (xstormy16_expand_casesi): 
57         Don't change INDEX.
58
59 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
60
61         * alias.c (nonoverlapping_memrefs_p): New function.
62         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
63
64         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
65
66 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
67
68         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
69         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
70         generating altivec code.
71         (FIXED_REGISTERS): VRSAVE is fixed.
72         (CALL_USED_REGISTERS): VRSAVE is call used.
73
74 2001-11-09  Jason Eckhardt  <jle@rice.edu>
75
76         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
77         code the branch target as ".+16/.+12", but rather use labels.
78
79 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
80
81         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0  
82         to work around limitations of certain versions of GAS.
83
84         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
85         (muldi3): Update due to SUBREG_BYTE changes.
86         (casesi): Similarly.
87
88 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
89
90         * doc/invoke.texi: Remove comment referring to -xf77-version.
91
92 2001-11-09  Kazu Hirata  <kazu@hxi.com>
93
94         * config/convex/convex.c: Fix comment formatting.
95         * config/convex/convex.h: Likewise.
96
97 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
98
99         * Makefile.in (.po.pox): Look both in srcdir and builddir
100         for $(PACKAGE).pot.
101         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
102         to the source directory.
103
104 2001-11-09 Ben Elliston  <bje@redhat.com>
105            Michael Meissner  <meissner@redhat.com>
106            Andrew MacLeod  <amacleod@redhat.com>
107            Richard Henderson  <rth@redhat.com>
108            Nick Clifton  <nickc@redhat.com>
109            Catherine Moore  <clm@redhat.com>
110
111         * m32r.c: Add support for m32rx processor.
112         * m32r.h: Ditto.
113         * m32r.md: Ditto.
114         * t-m32r: Ditto.
115         * m32r-protos.h: Add prototypes for m32rx functions.
116         * doc/invoke.texi: Document -m32rx option.
117
118 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
119
120         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
121         or after reload.
122
123 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
124
125         * doc/install.texi2html: Use $MAKEINFO --no-split.
126
127 2001-11-09  Andreas Schwab  <schwab@suse.de>
128
129         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
130         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
131         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, 
132         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
133         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
134
135 2001-11-09  H.J. Lu <hjl@gnu.org>
136
137         * config/mips/mips.c (mips_output_function_prologues): Cast
138         `tsize' to long for output.
139
140 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
141
142         * c-lang.c (LANG_HOOKS_NAME): New.
143         (lang_hooks): Constify.
144         (c_init_options): Update.
145         (lang_identify): Remove.
146         * c-parse.in (language_string): Remove.
147         * dbxout.c: Include langhooks.h.
148         (dbxout_symbol_location): Update.
149         * dwarf2out.c: Include langhooks.h.
150         (gen_compile_unit_die): Update.
151         * dwarfout.c: Include langhooks.h.
152         (prototyped_attribute, output_compile_unit_die): Update.
153         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
154         (LANG_HOOKS_INITIALIZER): Update.
155         * langhooks.h (struct lang_hooks): New members.  Constify.
156         * stringpool.c: Don't include toplev.h.
157         (set_identifier_size): Remove.
158         * toplev.c (toplev_main): Initialize identifier size.
159         (print_version): Update.
160         * tree.h (language_string, init_lex, lang_identify,
161         set_identifier_size): Remove.
162         * Makefile.in: Update dependencies.
163         * config/darwin.c: Include langhooks.h.
164         (func_name_maybe_scoped): Update.
165         * config/darwin.h (ASM_END_FILE): Update.
166         * config/nextstep.h (ASM_END_FILE): Update.
167         * config/nextstep21.h (ASM_END_FILE): Update.
168         * config/i386/sun386.h (ASM_END_FILE): Update.
169         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
170         (rs6000_output_function_epilogue): Update.
171 objc:
172         * objc-act.c (LANG_HOOKS_NAME): Override.
173         (struct lang_hooks): Constify.
174         (objc_init_options): Update.
175         (lang_identify): Remove.
176
177 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
178
179         * fold-const.c (lshift_double): Honor PREC.
180         (rshift_double): Likewise.
181
182 2001-11-08  Kazu Hirata  <kazu@hxi.com>
183
184         * config/1750a/1750a.c: Fix comment formatting.
185         * config/1750a/1750a.h: Likewise.
186
187 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
188
189         * configure.in (--enable-languages): Be more permissive about
190         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
191         * configure: Regenerated.
192
193 2001-11-08  Richard Henderson  <rth@redhat.com>
194
195         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
196
197 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
198
199         * config.gcc: Rename stormy16 to xstormy16.
200         * config/stormy16/stormy-abi: Likewise.
201         * config/stormy16/stormy16-protos.h: Likewise.
202         * config/stormy16/stormy16.c: Likewise.
203         * config/stormy16/stormy16.h: Likewise.
204         * config/stormy16/stormy16.md: Likewise.
205
206 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
207
208         * tree.h (TYPE_VOLATILE): Add enable-checking code.
209         (TYPE_READONLY): Likewise.
210
211 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
212
213         * reload1.c (reload): Don't delete equiv insn if can throw.
214
215         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
216         (clear_storage): Likewise, for OBJECT.
217
218 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
219
220         * pa.c (emit_move_sequence): Fix SUBREG expression to
221         use proper byte offset when extending a constant from
222         SImode to DImode.
223
224 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
225
226         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
227         which cannot throw.
228
229 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
230
231         * explow.c (convert_memory_address, case SUBREG): Only return
232         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
233
234 2001-11-08  Richard Henderson  <rth@redhat.com>
235
236         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
237         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
238         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
239
240 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
241
242         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
243
244 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
245
246         * dwarf2out.c (debug_str_hash): New.
247         (struct indirect_string_node): New.
248         (struct dw_val_struct): Change type of val_str to it.
249         (DEBUG_STR_SECTION_FLAGS): Define.
250         (add_AT_string): Push string into hashtable, increment reference
251         counter.
252         (AT_string): Return string from ht_identifier.
253         (AT_string_form): New.
254         (free_AT): For dw_val_class_str, just decrement reference counter.
255         (size_of_string): Remove.
256         (size_of_die): Use AT_string_form to decide what size the string
257         occupies in DIE.
258         (size_of_pubnames): Use strlen instead of size_of_string.
259         (value_format): Use AT_string_form for dw_val_class_str.
260         (output_die): Output DW_FORM_strp strings using
261         dw2_asm_output_offset.
262         (indirect_string_alloc, output_indirect_string): New.
263         (dwarf2out_finish): Emit .debug_str strings if there are any.
264
265 2001-11-08  Andreas Franck  <afranck@gmx.de>
266
267         * configure.in: Add AC_ARG_PROGRAM to support program name
268         transformation with --program-prefix, --program-suffix and
269         --program-transform-name.
270         * configure: Regenerated.
271         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
272         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
273         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
274         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
275         program_transform_name the way suggested by autoconf.
276         (GCC_TARGET_INSTALL_NAME): Define.
277         (install-driver): Use the transformed target alias name.
278
279 2001-11-08  Richard Henderson  <rth@redhat.com>
280
281         * config/mips/mips.c (save_restore_insns): Remove GP from the
282         restore registers mask early instead of special casing it inside
283         the loop.
284
285 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
286
287         * cp/decl.c (shadow_warning): New function.
288         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
289         and an error when a block scope decl shadows a parameter.
290
291 2001-11-08  Richard Henderson  <rth@redhat.com>
292
293         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
294         case as well.
295
296 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
297
298         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
299         to implement floating negation on processors prior to PA 2.0.
300
301 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
302
303         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
304         (USE_LINKONCE_INDIRECT): Define.
305         (dw2_output_indirect_constant_1): Try to output indirect constants
306         into linkonce sections if possible.
307         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
308         (dw2_output_indirect_constants): Likewise.
309
310 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
311
312         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
313
314 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
315
316         * c-decl.c (pushdecl): Remove file and line.
317         * c-typeck.c (pop_init_level): Remove size.
318
319 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
320
321         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
322         for rs6000.
323
324         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
325         (TARGET_ALTIVEC): New.
326         (TARGET_SWITCHES): Add altivec.
327         (FIRST_PSEUDO_REGISTER): Change to 109.
328         (CALL_USED_REGISTERS): Same.
329         (FIRST_ALTIVEC_REGNO): New.
330         (LAST_ALTIVEC_REGNO): New.
331         (ALTIVEC_REGNO_P): New.
332         (UNITS_PER_ALTIVEC_WORD): New.
333         (ALTIVEC_VECTOR_MODE): New.
334         (FIXED_REGISTERS): Add altivec registers.
335         (REG_ALLOC_ORDER): Same.
336         (HARD_REGNO_NREGS): Adjust for altivec registers.
337         (HARD_REGNO_MODE_OK): Same.
338         (MODES_TIEABLE_P): Same.
339         (REGISTER_MOVE_COST): Same.
340         (REGNO_REG_CLASS): Same.
341         (reg_class): Add ALTIVEC_REGS.
342         (REG_CLASS_NAMES): Same.
343         (REG_CLASS_CONTENTS): Same.
344         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
345         (ALTIVEC_ARG_RETURN): New.
346         (FUNCTION_VALUE): Handle VECTOR_TYPE.
347         (LIBCALL_VALUE): Handle altivec vector modes.
348         (VECTOR_MODE_SUPPORTED_P): New.
349         (ALTIVEC_ARG_MIN_REG): New.
350         (ALTIVEC_ARG_MAX_REG): New.
351         (ALTIVEC_ARG_NUM_REG): New.
352         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
353         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
354         (REGISTER_NAMES): Add altivec regs.
355         (DEBUG_REGISTER_NAMES): Same.
356         (ADDITIONAL_REGISTER_NAMES): Same.
357         (rs6000_builtins): New.
358         (MD_EXPAND_BUILTIN): New.
359         (MD_INIT_BUILTINS): New.
360         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
361         for AltiVec instructions.
362         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
363         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
364         registers.
365         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
366         (TARGET_SWITCHES): Add no-altivec.
367         (DATA_ALIGNMENT): Align vectors to 128 bits.
368         (TARGET_OPTIONS): Add abi= option.
369         Add rs6000_abi_string extern.
370         (LOCAL_ALIGNMENT): New.
371         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
372         (MASK_ALTIVEC_ABI): New.
373         (TARGET_ALTIVEC_ABI): New.
374         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
375         call-saved.
376         (STACK_BOUNDARY): Adjust for altivec.
377         (BIGGEST_ALIGNMENT): Same.
378         (rs6000_args): Add vregno.
379         (USE_ALTIVEC_FOR_ARG_P): New.
380         (FIXED_REGISTERS): Add vrsave register.
381         (CALL_USED_REGISTERS): Same.
382         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
383         (VRSAVE_REGNO): New.
384         (reg_class): Add VRSAVE_REGS.
385         (REG_CLASS_NAMES): Same.
386         (REG_CLASS_CONTENTS): Same.
387         (REGNO_REG_CLASS): Same.
388         
389         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
390         (ABI_STACK_BOUNDARY): Same.
391         (BIGGEST_ALIGNMENT): Same.
392         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
393         (ROUND_TYPE_ALIGN): Same.
394         
395         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
396         to 64.
397
398         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
399         to 64.
400
401         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
402         to 64.
403
404         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
405         (altivec_expand_builtin): New.
406         (altivec_init_builtins): New.
407         (TARGET_EXPAND_BUILTIN): New.
408         (TARGET_INIT_BUILTINS): New.
409         (rs6000_init_builtins): New.
410         (struct builtin_description): New.
411         (bdesc_2arg): New.
412         (rs6000_reg_names): Add altivec registers.
413         (alt_reg_names): Same.
414         (secondary_reload_class): Altivec regs can hold altivec regs and
415         memory.
416         (rs6000_emit_move): Force constants into memory for AltiVec moves.
417         (print_operand): Add 'y' case for printing altivec memory
418         operands.
419         (rs6000_legitimize_address): Legitimize vector addresses into
420         [REG+REG] or [REG].
421         (altivec_expand_binop_builtin): New.
422         New string rs6000_current_abi.
423         (rs6000_override_options): Call rs6000_parse_abi_options.
424         (rs6000_parse_abi_options): New.
425         (function_arg_boundary): Vector arguments must be 16
426         byte aligned.
427         (function_arg_advance): Handle vector arguments.
428         (function_arg_partial_nregs): Same.
429         (init_cumulative_args): Same.
430         (function_arg): Same.
431
432         * config/rs6000/rs6000.md (altivec_lvx): New.
433         (type): Add altivec attribute.
434         (movv4si): New.
435         (*movv4si_internal): New.
436         (movv16qi): New.
437         (*movv16qi_internal): New.
438         (movv8hi): New.
439         (*movv8hi_internal1): New.
440         (movv4sf): New.
441         (*movv4sf_internal1): New.
442         (altivec_stvx): New.
443         (vaddubm): New.
444         (vadduhm): New.
445         (vadduwm): New.
446         (vaddfp): New.
447         (vaddcuw): New.
448         (vaddubs): New.
449         (vaddsbs): New.
450         (vadduhs): New.
451         (vaddshs): New.
452         (vadduws): New.
453         (vaddsws): New.
454         (vand): New.
455         (vandc): New.
456         (vavgub): New.
457         (vavgsb): New.
458         (vavguh): New.
459         (vavgsh): New.
460         (vavguw): New.
461         (vavgsw): New.
462         (vcmpbfp): New.
463         (vcmpequb): New.
464         (vcmpequh): New.
465         (vcmpequw): New.
466         (vcmpeqfp): New.
467         (vcmpgefp): New.
468         (vcmpgtub): New.
469         (vcmpgtsb): New.
470         (vcmpgtuh): New.
471         (vcmpgtsh): New.
472         (vcmpgtuw): New.
473         (vcmpgtsw): New.
474         (vcmpgtfp): New.
475         (vcmpgefp): New.
476         (vcmpgtub): New.
477         (vcmpgtsb): New.
478         (vcmpgtuh): New.
479         (vcmpgtsh): New.
480         (vcmpgtuw): New.
481         (vcmpgtsw): New.
482         (vcmpgtfp): New.
483         (vmaxub): New.
484         (vmaxsb): New.
485         (vmaxuh): New.
486         (vmaxsh): New.
487         (vmaxuw): New.
488         (vmaxsw): New.
489         (vmaxfp): New.
490         (vmrghb): New.
491         (vmrghh): New.
492         (vmrghw): New.
493         (vmrglb): New.
494         (vmrglh): New.
495         (vmrglw): New.
496         (vminub): New.
497         (vminsb): New.
498         (vminuh): New.
499         (vminsh): New.
500         (vminuw): New.
501         (vminsw): New.
502         (vminfp): New.
503         (vmuleub): New.
504         (vmulesb): New.
505         (vmuleuh): New.
506         (vmulesh): New.
507         (vmuloub): New.
508         (vmulosb): New.
509         (vmulouh): New.
510         (vmulosh): New.
511         (vnor): New.
512         (vor): New.
513         (vpkuhum): New.
514         (vpkuwum): New.
515         (vpkpx): New.
516         (vpkuhss): New.
517         (vpkshss): New.
518         (vpkuwss): New.
519         (vpkswss): New.
520         (vpkuhus): New.
521         (vpkshus): New.
522         (vpkuwus): New.
523         (vpkswus): New.
524         (vrlb): New.
525         (vrlh): New.
526         (vrlw): New.
527         (vslb): New.
528         (vslh): New.
529         (vslw): New.
530         (vsl): New.
531         (vslo): New.
532         (vsrb): New.
533         (vrsh): New.
534         (vrsw): New.
535         (vsrab): New.
536         (vsrah): New.
537         (vsraw): New.
538         (vsr): New.
539         (vsro): New.
540         (vsububm): New.
541         (vsubuhm): New.
542         (vsubuwm): New.
543         (vsubfp): New.
544         (vsubcuw): New.
545         (vsububs): New.
546         (vsubsbs): New.
547         (vsubuhs): New.
548         (vsubshs): New.
549         (vsubuws): New.
550         (vsubsws): New.
551         (vsum4ubs): New.
552         (vsum4sbs): New.
553         (vsum4shs): New.
554         (vsum2sws): New.
555         (vsumsws): New.
556         (vxor): New.
557
558 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
559
560         * Makefile.in (df.o): Add fibheap.h to dependencies.
561        
562         * df.h: Add prototypes for transfer functions, iterative_dataflow
563         functions.
564         (enum df_flow_dir): New enum.
565         (enum df_confluence_op): New enum.
566         (struct df): Add inverse_rts_map.
567
568         * df.c: Add sbitmap.h to the list of includes.
569         (df_rd_global_compute): Removed.
570         (df_ru_global_compute): Removed.
571         (df_lr_global_compute): Removed.
572         (df_rd_transfer_function): New function.
573         (df_ru_transfer_function): New function.
574         (df_lr_transfer_function): New function.
575         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
576         Use iterative_dataflow_bitmap instead of df_*_global_compute.
577         (iterative_dataflow_sbitmap): New function.
578         (iterative_dataflow_bitmap): New function.
579
580 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
581
582         * doc/gcc.texi: Move terminology and spelling conventions to
583         htdocs/codingconventions.html.
584
585 2001-11-07  Graham Stott  <grahams@redhat.com>
586
587         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
588
589 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
590
591         * expmed.c (expand_mult): Force operand to register before computing
592         cost.
593         * i386.c (x86_decompose_lea): New global vairable.
594         * i386.h (x86_decompose_lea): Declare.
595         (TARGET_DECOMPOSE_LEA): New macro.
596         (RTX_COST): Handle leas properly.
597
598 2001-11-06  Richard Henderson  <rth@redhat.com>
599
600         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
601         defined for a CONSTRUCTOR; don't check it.
602
603 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
604
605         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
606         test for absolute pathnames.
607
608 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
609
610         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
611         instructions up to the target pc inclusive.
612
613 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
614
615         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
616
617 2001-11-06  Eric Christopher  <echristo@redhat.com>
618
619         * config/mips/mips.md(movdf_internal2): Add constraints for float
620         to general register move.
621         * config/mips/elf64.h: Add default ABI.
622
623 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
624
625         * alias.c:: Include langhooks.h.
626         * emit-rtl.c: Similarly.
627         * toplev.c: Similarly.
628         * tree-inline.c: Similarly.
629         * langhooks-def.h: New, the old langhooks.h.  Give the default
630         hooks a common prefix.
631         * langhooks.h: Contents extracted from toplev.h.
632         * toplev.h: Move langhook stuff to langhooks.h.
633         * langhooks.c: Give default hooks a common prefix.
634
635         * c-lang.c: Include langhooks-def.h.
636         * objc/objc-act.c: Similarly.
637         * Makefile.in: Update.
638         * objc/Make-lang.in: Update.
639
640 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
641
642         * doc/install.texi: Document that configure options not listed in
643         this file are unsupported.  Document --with-system-zlib.
644
645 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
646
647         * rtl.h (mem_for_const_double): New declaration.
648         * varasm.c (mem_for_const_double): New function.
649         * config/convex/convex.md (movdf): Use it.
650         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
651         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
652         * config/m68k/m68kv4.h: Likewise.
653
654         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
655         of new GP reg classes.
656
657         * expr.c (store_field): When making temp object for unaligned
658         component, set it to alias set 0.
659
660 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
661
662         * c-common.c (c_expand_expr_stmt): Apply default conversions to
663         non-lvalue arrays if C99.
664         * c-typeck.c (default_conversion): Split out code handling
665         array-to-pointer and function-to-pointer conversions into a
666         separate default_function_array_conversion function.
667         (default_function_array_conversion): New function.  Keep track of
668         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
669         arrays unchanged outside C99 mode instead of giving an error for
670         them.
671         (build_component_ref): Use pedantic_non_lvalue when handling
672         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
673         (convert_arguments): Use default_function_array_conversion.
674         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
675         non-lvalues are OK.
676         (unary_complex_lvalue): Likewise.
677         (internal_build_compound_expr): Use
678         default_function_array_conversion.  Apply default conversions to
679         function in compound expression.
680         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
681         Use default_function_array_conversion.
682         * doc/extend.texi: Update documentation of subscripting non-lvalue
683         arrays.
684         Fixes PR c/461.
685
686 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
687
688         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
689         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
690         corresponding to the complete set of .po and .gmo files in
691         the source directory's po subdir, modified by LINGUAS.  Don't
692         look at ALL_LINGUAS.
693         * configure.in: Don't set ALL_LINGUAS.
694         * configure: Regenerate.
695
696         * Makefile.in (.po.gmo): Don't move into source directory.
697         (.po.pox): Clarify comments.
698         (install-po): Look for .gmo files in both srcdir and objdir;
699         don't fail if a file is totally missing.
700         (distclean): rmdir ada subdirectory too.
701
702 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
703
704         * config/rs6000/rs6000.c (rs6000_select_section): Handle
705         CONSTRUCTORs _correctly_.
706
707 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
708
709         * c-decl.c (delete_block): Remove.
710         * c-tree.h (delete_block): Remove.
711
712 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
713
714         * cppexp.c (lex, parse_defined): Update warning about defined.
715
716 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
717
718         * config/rs6000/rs6000.c (rs6000_select_section): Handle
719         CONSTRUCTORs too.
720
721 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
722
723         * config/arm/arm.c (arm_return_in_memory): Cope with
724         int_size_in_bytes returning -1.
725
726         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
727         DECL being NULL.
728
729 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
730
731         * Makefile.in (bb-reoder.o): Add depdendency on cfglayout.h;
732         remove unneded depdendencies;
733         (cfglayout.o): New.
734         * cfglayout.c, cfglayout.h: New files; break out from ...
735         * bb-reorder.c: ... here; Remove unneeded includes;
736
737 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
738
739         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
740
741 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
742
743         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
744         mode as well.  Do not explicitly create intermediate regs.
745
746 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
747
748         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
749         (common_section): Delete unused variable.
750         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
751         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
752         * arm-protos.h (arm_poke_function_name, aof_add_import,
753         aof_delete_import): Const-ify.
754         * arm.c (legitimize_pic_address): Wrap variables in the macro
755         controlling their usage.
756         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
757         (arm_poke_function_name, pic_chain, import, aof_add_import,
758         aof_delete_import): Const-ify.
759         * i386.c (ix86_osf_output_function_prologue): Const-ify.
760         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
761         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
762         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
763         * i860/sysv3.h: Add missing comment closure.
764         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
765         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
766         to symbolic_operand.
767
768         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
769         (i960-*-*): Set tmake_file.
770         (sparc86x-*-elf*): Fix typo in header name.
771
772         * sched-rgn.c (schedule_insns): Delete unused variable.
773
774 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
775
776         PR c/2820
777         * c-typeck.c (lookup_field): Rework to return a chain down to
778         the looked-up field.
779         (build_component_ref): Use the new lookup_field to handle
780         nested anonymous entities correctly.
781
782 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
783
784         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
785         Change parameters to gen_rtx_CONST_DOUBLE.
786         (GEN_INT64, sparc_emit_set_const64): Likewise.
787         * config/sparc/sparc.md (movdf split): Likewise.
788
789 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
790
791         * unroll.c (calculate_giv_inc): Use find_last_value rather
792         than just hoping the last instruction is the right SET.
793         [Fixes 990604-1.c on stormy16.]
794
795         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
796         library at all if -T is used.
797
798         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
799         some uses of uninitialized variables in error cases.
800
801         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
802         look at 'temp' if we won't be using it.
803
804         * config/stormy16/stormy16.h (CONST_COSTS): Define.
805         (RTX_COSTS): Define.
806         (ADDRESS_COST): Define.
807         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
808
809         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
810
811         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
812         stormy16_asm_output_mi_thunk.
813         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
814         function.
815         * config/stormy16/stormy16-protos.h
816         (stormy16_asm_output_mi_thunk): New prototype.
817
818 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
819
820         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
821         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
822         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
823         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
824         sched-int.h, toplev.c, config/alpha/alpha.c,
825         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
826         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
827         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
828         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
829         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
830         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
831         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
832
833 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
834
835         * Makefile.in (dbxout.o): Depend on function.h.
836         * collect2.c (is_in_list): Hide unused function.
837         * dbxout.c: Include function.h.
838         (source_label_number, dbxout_source_line, dbxout_source_file,
839         dbxout_function_end, dbxout_begin_function): Wrap/move inside
840         macros controlling usage.
841         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
842         * output.h (exports_section): Prototype.
843
844         * convex.c (convex_output_function_prologue): Fix format specifier
845         warning.
846         (asm_declare_function_name): Fix signed/unsigned warning.
847         (print_operand): Fix format specifier warning.
848         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
849         * dsp16xx-protos.h (uns_comparison_operator,
850         num_1600_core_shifts): Prototype.
851         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
852         (frame_size, frame_pointer_offset): Delete.
853         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
854         Make static.  Fix format specifier warnings.
855         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
856         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
857         * dsp16xx.md: Add default case in switches.
858         * fr30.h (IN_RANGE): Delete.
859         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
860         * mcore-protos.h (mcore_output_cmov): Const-ify.
861         * mcore.c (mcore_output_cmov): Likewise.
862         * mcore.h (switch_to_section): Make static and prototype.
863         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
864         unsigned>=0 warnings.
865         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
866         * rs6000-protos.h (read_only_data_section,
867         read_only_private_data_section): Prototype.
868         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
869         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
870         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
871
872 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
873
874         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
875         ATTRIBUTE_UNUSED.
876         * final.c (final_scan_insn): Add brackets around body of if-stmt.
877         * gcc.c (convert_filename): Add static prototype.  Const-ify.
878         Wrap variable in macros controlling its use.
879         * output.h (sdata_section): Add prototype.
880
881         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
882         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
883         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
884         (ASM_FILE_START): Const-ify.
885         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
886         specifier warning.
887         * c4x.md: Don't use the 'U' integer suffix.
888         * clipper.md (clipper_movstr): Delete declaration.
889         * d30v-protos.h (d30v_move_2words): Const-ify.
890         (debug_stack_info): Add prototype.
891         * d30v.c: Include "integrate.h".
892         (d30v_function_arg_boundary, d30v_function_arg,
893         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
894         signed/unsigned warnings.
895         (d30v_print_operand_memory_reference, d30v_move_2words):
896         Const-ify.
897         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
898         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
899         * fr30.md: Const-ify.
900         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
901         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
902         (mvs_get_label_page): Hide unused static function.
903         * i860.c (current_function_original_name): Const-ify.
904         * i860/sysv3.h (current_function_original_name): Likewise.
905         * i860/sysv4.h (current_function_original_name): Likewise.
906         * i960.md: Add default case in switches.  Remove unused variable.
907         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
908         * m32r.md: Const-ify.
909         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
910         * m68hc11.c: Include "reload.h".
911         (static_chain_reg, print_options, m68hc11_asm_file_start):
912         Const-ify.
913         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
914         around & in comparison.
915         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
916         * mn10200.c (shift_mode): Remove trailing comma.
917         * mn10300-protos.h (output_tst): Const-ify.
918         * mn10300.c (output_tst): Likewise.
919         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
920         warnings.
921         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
922         * pa.c (output_ascii): Likewise.
923         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
924         * pdp11.md (expand_unop): Delete declarations.
925         * pj-protos.h (pj_output_addsi3): Const-ify.
926         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
927         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
928         unique_src_operand): Add prototypes.
929         (pj_output_store_into_lval): Make definition static.
930         (pj_function_incoming_arg): Don't use unary plus.
931         (pj_output_addsi3): Const-ify.
932         * romp.md (get_symref): Delete declarations.
933         * v850-c.c (mark_current_function_as_interrupt): Don't return
934         value from void function.
935         * v850.c: Include "integrate.h".
936         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
937         * vax-protos.h (const_section): Add prototype.
938
939 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
940
941         * machmode.def: Add documentation for the seventh argument in
942         vector modes.
943
944 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
945
946         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
947         consistently.
948         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
949         <-melf>: Don't have markup for ELF acronym.
950
951 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
952
953         * config.gcc (mmix-*-*): New target.
954         * doc/invoke.texi: Document MMIX options.
955         * doc/contrib.texi: Add note about MMIX port to my entry.
956         * config/mmix/t-mmix: New file.
957         * config/mmix/mmix.h: New file.
958         * config/mmix/mmix-protos.h: New file.
959         * config/mmix/mmix.c: New file.
960         * config/mmix/mmix.md: New file.
961         * config/mmix/crti.asm: New file.
962         * config/mmix/crtn.asm: New file.
963
964 2001-11-03  Kazu Hirata  <kazu@hxi.com>
965
966         * config/sparc/linux-aout.h: Fix comment formatting.
967         * config/sparc/linux.h: Likewise.
968         * config/sparc/linux64.h: Likewise.
969         * config/sparc/lynx.h: Likewise.
970         * config/sparc/pbd.h: Likewise.
971         * config/sparc/sol2-sld-64.h: Likewise.
972         * config/sparc/sol2.h: Likewise.
973         * config/sparc/sparc.c: Likewise.
974         * config/sparc/sparc.h: Likewise.
975         * config/sparc/sparc.md: Likewise.
976         * config/sparc/sunos4.h: Likewise.
977         * config/sparc/vxsim.h: Likewise.
978         * config/sparc/vxsparc.h: Likewise.
979         * config/sparc/vxsparc64.h: Likewise.
980
981 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
982
983         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
984         reference to CONST_DOUBLE_MEM in comment.
985         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
986         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
987         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
988         * function.c (pop_function_context_from): Don't call
989         restore_varasm_status.
990         * function.h (restore_varasm_status): Delete declaration.
991         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
992         * rtl.c: Likewise.
993         * rtl.def (CONST_DOUBLE): Update comment.
994         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
995         (CONST_DOUBLE_CHAIN): Likewise.
996         (CONST_DOUBLE_MEM): Delete.
997         (gen_rtx_CONST_DOUBLE): Update parameters.
998         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
999         Remove reference to CONST_DOUBLE_MEM.
1000         (const_alias_set): New variable.
1001         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
1002         (immed_real_const_1): Adjust tests for 0, 1, and 2.
1003         Don't set CONST_DOUBLE_MEM.
1004         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
1005         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
1006         Put constant in const_alias_set.
1007         (struct pool_constant): ALIGN now unsigned.
1008         OFFSET now HOST_WIDE_INT.
1009         Delete LABEL.
1010         (restore_varasm_status): Deleted.
1011         (mark_pool_constant): Mark desc->rtl.
1012         (force_const_mem): Rework to store rtl in hash table,
1013         not CONST_DOUBLE_MEM.
1014         Put constant in const_alias_set.
1015         (find_pool_constant): Check desc->rtl.
1016         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
1017         (init_varasm_once): Initialize const_alias_set.
1018
1019         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
1020         force_const_mem.
1021
1022         * reload.c (combine_reloads): Don't combine an output reload if there
1023         are other reloads around for part of the output.
1024
1025         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
1026         constant expression.
1027         (set_mem_decl): New function.
1028         * expr.h (set_mem_decl): New declaration.
1029         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
1030         (output_asm_operand_names): Add tab.
1031         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
1032
1033         * builtins.c (get_memory_rtx): Properly set MEM alias set and
1034         attributes.
1035
1036 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1037
1038         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
1039         Use "invalid" instead of "illegal".  Use @r in comments in
1040         examples.
1041
1042 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1043
1044         * c-decl.c (pushdecl): Move block inside if conditional to remove
1045         possibility of a segfault.  Lookup block-level extern
1046         variables in enclosing scopes correctly.
1047
1048         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
1049
1050 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
1051
1052         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
1053         SUBREG so we avoid SUBREGing memory.
1054
1055         * expmed.c (store_bit_field): Same.
1056
1057 2001-11-02  DJ Delorie  <dj@redhat.com>
1058
1059         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
1060         using FP registers for DImode mem-mem moves is acceptable.
1061
1062 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
1063
1064         * builtins.c (apply_args_size): Handle vector arguments.
1065         (apply_result_size): Same.
1066
1067         * machmode.def: Set WIDER mode field for all vector entries.
1068
1069 2001-11-02  Graham Stott  <grahams@redhat.com>
1070
1071         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
1072
1073 2001-11-01  Eric Christopher  <echristo@redhat.com>
1074
1075         * config.gcc: Revert part of earlier patch.
1076         * config/mips/linux.h: Ditto.
1077         * df.c: Include tm_p.h to avoid warnings.
1078         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
1079         #if/#endif.
1080         * config/mips/mips.c: Define mips_abi regardless.
1081         (mips_output_function_prologues): Add long casts for .frame
1082         output.
1083         (override_options): Allow use of ABI_32.
1084
1085 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1086
1087         * config/m68hc11/m68hc11.c: Fix comment formatting.
1088         * config/m68hc11/m68hc11.h: Likewise.
1089         * config/m68hc11/m68hc11.md: Likewise.
1090
1091 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1092
1093         * c-typeck.c (default_conversion): Retain the original expression
1094         codes.
1095         * gcc.dg/Wparentheses.c: New tests.
1096
1097 2001-11-01  David S. Miller  <davem@redhat.com>
1098
1099         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
1100         64-bit Sparc description more in line with reality.
1101
1102 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
1103
1104         * Makefile.in (GCOV_OBJS): Add version.o.
1105         * gcov.c: Include "version.h" and <getopt.h>.
1106         (gcov_version_string): Remove.
1107         (print_usage): Take a parameter to determine whether this is a
1108         call from --help or an error message.  Give fuller output that
1109         follows the GNU Coding Standards for --help.
1110         (print_version): New function.
1111         (options): New.
1112         (process_args): Use getopt_long.  Support long options.  Follow
1113         GNU Coding Standards for --help and --version.
1114         * doc/gcov.texi: Document long options.
1115         Addresses part of PR other/704.
1116
1117 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1118
1119         * pa.c (output_move_double): Fix typo in double load.
1120
1121 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1122
1123         * config/h8300/h8300.c (h8300_encode_label): Compute a string
1124         before passing it to ggc_alloc_string.
1125
1126 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1127
1128         * config/m68k/3b1.h: Fix comment formatting.
1129         * config/m68k/3b1g.h: Likewise.
1130         * config/m68k/a-ux.h: Likewise.
1131         * config/m68k/amix.h: Likewise.
1132         * config/m68k/apollo68.h: Likewise.
1133         * config/m68k/atari.h: Likewise.
1134         * config/m68k/aux-exit.c: Likewise.
1135         * config/m68k/ccur-GAS.h: Likewise.
1136         * config/m68k/crds.h: Likewise.
1137         * config/m68k/dpx2.h: Likewise.
1138         * config/m68k/dpx2g.h: Likewise.
1139         * config/m68k/hp310.h: Likewise.
1140         * config/m68k/hp320.h: Likewise.
1141         * config/m68k/isi.h: Likewise.
1142         * config/m68k/linux.h: Likewise.
1143         * config/m68k/lynx.h: Likewise.
1144         * config/m68k/m68k-psos.h: Likewise.
1145         * config/m68k/m68k.c: Likewise.
1146         * config/m68k/m68k.h: Likewise.
1147         * config/m68k/m68k.md: Likewise.
1148         * config/m68k/m68kelf.h: Likewise.
1149         * config/m68k/m68kv4.h: Likewise.
1150         * config/m68k/mot3300.h: Likewise.
1151         * config/m68k/news.h: Likewise.
1152         * config/m68k/next.h: Likewise.
1153         * config/m68k/pbb.h: Likewise.
1154         * config/m68k/plexus.h: Likewise.
1155         * config/m68k/sgs.h: Likewise.
1156         * config/m68k/sun3.h: Likewise.
1157         * config/m68k/tower.h: Likewise.
1158         * config/m68k/vxm68k.h: Likewise.
1159
1160 2001-10-31  DJ Delorie  <dj@redhat.com>
1161
1162         * config/mips/mips.h (mips_cache_flush_func): Prototype.
1163         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
1164         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
1165         * config/mips/mips.c (mips_cache_flush_func): New.
1166         * doc/invoke.texi: Document the new options.
1167
1168 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
1169
1170         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
1171         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
1172
1173         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
1174
1175         * config/cris/cris.c: Include output.h after tree.h but before
1176         target.h.
1177
1178 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
1179
1180         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
1181         (INTL_SUBDIRS): Just intl.
1182         (.SUFFIXES): Add .gmo .po .pox.
1183         (native): Also depend on build-@POSUB@.
1184         (intl.all, intl.install): Depend on config.h and things it includes.
1185         (po-generated): New target; depend on c-parse.c and tradcif.c.
1186         (install-normal): Also depend on install-@POSUB@.
1187         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
1188         (build-, install-, build-po, update-po, install-po,
1189         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
1190
1191         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
1192         * configure.in: Don't munge XGETTEXT.  Don't generate
1193         po/Makefile.in.
1194         * configure: Regenerate.
1195
1196         * exgettext: Delete.
1197         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
1198         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
1199
1200 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1201
1202         * config/h8300/h8300.md (two anonymous patterns): New.
1203
1204 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
1205
1206         * tree.h (tree_index): Add support for V16QI and V8HI.
1207         (V8HI_type_node): New.
1208         (V16QI_type_node): New.
1209
1210         * tree.c (build_common_tree_nodes_2): Same.
1211
1212         * c-common.c (type_for_mode): Same.
1213
1214 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1215
1216         * config/i386/att.h: Fix comment formatting.
1217         * config/i386/beos-elf.h: Likewise.
1218         * config/i386/bsd.h: Likewise.
1219         * config/i386/bsd386.h: Likewise.
1220         * config/i386/crtdll.h: Likewise.
1221         * config/i386/cygwin.asm: Likewise.
1222         * config/i386/cygwin.h: Likewise.
1223         * config/i386/djgpp.h: Likewise.
1224         * config/i386/freebsd-aout.h: Likewise.
1225         * config/i386/freebsd.h: Likewise.
1226         * config/i386/gas.h: Likewise.
1227         * config/i386/i386-interix.h: Likewise.
1228         * config/i386/i386-protos.h: Likewise.
1229         * config/i386/i386.c: Likewise.
1230         * config/i386/i386.h: Likewise.
1231         * config/i386/i386.md: Likewise.
1232         * config/i386/i386elf.h: Likewise.
1233         * config/i386/interix.c: Likewise.
1234         * config/i386/isc.h: Likewise.
1235         * config/i386/isccoff.h: Likewise.
1236         * config/i386/iscdbx.h: Likewise.
1237         * config/i386/linux.h: Likewise.
1238         * config/i386/lynx.h: Likewise.
1239         * config/i386/mingw32.h: Likewise.
1240         * config/i386/netbsd-elf.h: Likewise.
1241         * config/i386/next.h: Likewise.
1242         * config/i386/osf1elf.h: Likewise.
1243         * config/i386/osfrose.h: Likewise.
1244         * config/i386/sco5.h: Likewise.
1245         * config/i386/seq-gas.h: Likewise.
1246         * config/i386/seq-sysv3.h: Likewise.
1247         * config/i386/sequent.h: Likewise.
1248         * config/i386/sol2.h: Likewise.
1249         * config/i386/sun386.h: Likewise.
1250         * config/i386/uwin.asm: Likewise.
1251         * config/i386/uwin.h: Likewise.
1252         * config/i386/vxi386.h: Likewise.
1253         * config/i386/win32.h: Likewise.
1254         * config/i386/winnt.c: Likewise.
1255         * config/i386/xm-cygwin.h: Likewise.
1256         * config/i386/xm-mingw32.h: Likewise.
1257
1258 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1259
1260         * builtins.def: Fix comment typos.
1261         * config/alpha.c: Likewise.
1262         * config/arm/arm.c: Likewise.
1263         * config/avr/avr.h: Likewise.
1264         * config/d30v/d30v.c: Likewise.
1265         * config/d30v/d30v.h: Likewise.
1266         * config/d30v/d30v.md: Likewise.
1267         * config/dsp16xx/dsp16xx.c: Likewise.
1268         * config/fr30/fr30.c: Likewise.
1269         * config/fr30/fr30.md: Likewise.
1270         * config/i386/i386.c: Likewise.
1271         * config/i860/i860.c: Likewise.
1272         * config/i960/i960.c: Likewise.
1273         * config/ia64/ia64.c: Likewise.
1274         * config/mips/mips.c: Likewise.
1275         * config/pa/pa.c: Likewise.
1276         * config/rs6000/rs6000.c: Likewise.
1277         * config/s390/s390.c: Likewise.
1278         * config/sparc/sparc.c: Likewise.
1279
1280 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1281
1282         * config/mips/elf.h: Fix comment formatting.
1283         * config/mips/elf64.h: Likewise.
1284         * config/mips/iris5.h: Likewise.
1285         * config/mips/iris5gas.h: Likewise.
1286         * config/mips/iris6.h: Likewise.
1287         * config/mips/isa3264.h: Likewise.
1288         * config/mips/linux.h: Likewise.
1289         * config/mips/mips.c: Likewise.
1290         * config/mips/mips.h: Likewise.
1291         * config/mips/mips.md: Likewise.
1292         * config/mips/mips16.S: Likewise.
1293         * config/mips/netbsd.h: Likewise.
1294         * config/mips/osfrose.h: Likewise.
1295         * config/mips/r3900.h: Likewise.
1296         * config/mips/sni-svr4.h: Likewise.
1297         * config/mips/svr4-t.h: Likewise.
1298         * config/mips/ultrix.h: Likewise.
1299
1300 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
1301
1302         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
1303         when we update head->current.
1304
1305 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
1306
1307         * tree.c (id_string_size): Remove.
1308         (dump_tree_statistics): Update.
1309         * toplev.c (compile_file): If dumping stats, dump tree stats too.
1310
1311 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
1312
1313         * sched-rgn.c (schedule_insns): Fix comment.
1314
1315 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
1316
1317         * configure.in: Correct previous change: don't assume that
1318         gas's version number _isn't_ the last thing on the line, or
1319         isn't the only number on the line, either.
1320         * configure: Regenerate.
1321
1322 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1323
1324         * cfgcleanup.c: Fix a comment typo.
1325
1326 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1327
1328         * alias.c: Fix comment formatting.
1329         * recog.c: Likewise.
1330         * config/cris/cris.c: Likewise.
1331         * config/cris/cris.h: Likewise.
1332         * config/i960/i960.c: Likewise.
1333         * config/i960/i960.h: Likewise.
1334
1335 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1336
1337         * config/arm/arm.c: Fix a comment typo.
1338         * config/arm/arm.h: Likewise.
1339         * config/ia64/ia64.c: Likewise.
1340
1341 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
1342
1343         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
1344         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
1345         * rtl.h (set_unique_reg_note): Change return value.
1346         * gcse.c (try_replace_reg): Use set_unique_reg_note.
1347         * cse.c (cse_insn): Likewise.
1348         * expr.c (emit_move_insn): Likewise.
1349         * explow.c (force_reg): Likewise.
1350         * local-alloc (update_equiv_regs): Likewise.
1351         * loop.c (move_moveables, load_mems): Likewise.
1352         * reload (find_reloads): Likewise.
1353
1354 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
1355
1356         Localization fixes.
1357         * c-decl.c (parmlist_tags_warning, start_struct,
1358         check_for_loop_decls): Separate messages for struct, union and
1359         enum cases to allow for languages in which they have different
1360         genders.
1361         * c-format.c (scanf_flag_specs): Separate short and long name of
1362         the assignment suppression feature.
1363         (check_format_types): Localize "pointer" and "different types"
1364         strings.
1365         * c-lex.c (lex_number): Localize "an unsigned long int" and
1366         related strings.
1367         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
1368         warning message.
1369         * c-typeck.c (build_unary_up): Separate messages for increment and
1370         decrement cases to allow for languages in which they use different
1371         articles.  Localize the strings "increment" and "decrement" in one
1372         case.
1373
1374 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
1375
1376         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
1377         when no changes has been made.
1378
1379         * gcse.c (reg_set_bitmap): Turn into reg_set.
1380         (modify_mem_list_set, canon_modify_mem_list_set)
1381         (clear_modify_mem_tables, free_modify_mem_tables): New.
1382         (gcse_main); Use free_modify_mem_tables.
1383         (free_gcse_mem): Likewise; free the bitmaps.
1384         (alloc_gcse_main): Initialize the bitmaps.
1385         (canon_list_insert): Set canon_modify_mem_list_set.
1386         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
1387         (compute_hash_table): Use clear_modify_mem_tables.
1388         (reset_opr_set_tables): Likewise.
1389         (oprs_not_set_p): reg_set_bitmap is regset.
1390         (mark_set, mark_clobber): Likewise.
1391
1392         * df.h (DF_EQUIV_NOTES): New constant.
1393         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
1394         when asked for.
1395
1396         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
1397         (init_regions, schedule_insns): Conditionalize the checking
1398         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
1399
1400 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
1401
1402         * i386.md (movti_rex64 splitter): Fix condition.
1403
1404 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
1405
1406         * configure.in: Do not assume that gas's version number is the
1407         last thing on the first line of as --version output.
1408         * configure: Regenerate.
1409
1410         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
1411         MT_WARNING, MT_ERROR, MT_FATAL.
1412         (main): Call gcc_init_libintl.
1413         (v_message): Call gettext on msgid and "warning: "
1414         * tradcif.y: Include intl.h.
1415         (yyerror): Make parameter definition consistent with
1416         prototype.  Call gettext on msgid argument.
1417
1418 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1419
1420         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
1421         warnings.
1422
1423         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
1424
1425 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1426
1427         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
1428         before referencing it.
1429
1430 2001-10-26  DJ Delorie  <dj@redhat.com>
1431
1432         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
1433         override -G, and force -G0.
1434
1435 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1436
1437         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
1438         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
1439         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
1440         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
1441
1442         * loop.h (struct induction): Rename ext_dependant to
1443         ext_dependent.
1444         * loop.c: Change all uses.
1445         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
1446         All callers changed.
1447         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
1448
1449 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1450
1451         * c-parse.in (expr_no_commas, primary), c-typeck.c
1452         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
1453
1454 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
1455
1456         Undo assemble_name change in earlier patch.
1457
1458 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
1459
1460         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
1461         determining the type of the receiver, do not check that TREE_CODE
1462         of receiver is CALL_EXPR before calling receiver_is_class_object().
1463         (receiver_is_class_object): For the GNU runtime: recognize
1464         the case that the receiver is self in a class method context.
1465         Check that TREE_CODE of receiver is CALL_EXPR when checking that
1466         the receiver is a call to objc_get_class.
1467
1468 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1469
1470         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
1471
1472 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1473
1474         * Makefile.in (OBJS): Put all files in alphabetical order.
1475
1476         * dwarf2out.c (add_const_value_attribute): Fix error in last
1477         change.
1478
1479 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
1480
1481         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
1482         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
1483         fix warning.
1484         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
1485         (life_analysis): call purge_all_dead_edges after deleting noops.
1486         (delete_noop_move): Do not purge CFG.
1487         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
1488
1489 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
1490
1491         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
1492         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
1493         (ASM_GLOBALIZE_LABEL): Use assemble_name.
1494         (ASM_OUTPUT_COMMON): Likewise.
1495         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
1496         (rs6000_output_function_epilogue): Likewise.
1497         (output_mi_thunk): Fix typo.
1498         (rs6000_output_symbol_ref): Use assemble_name.
1499         (output_toc): Likewise.
1500         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
1501         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
1502         assemble_name calls STRIP_NAME_ENCODING.
1503         (ASM_OUTPUT_LABEL): Use assemble_name.
1504         (ASM_GLOBALIZE_LABEL): Likewise.
1505         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1506         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
1507         (ASM_OUTPUT_LOCAL): Likewise.
1508
1509 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1510
1511         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
1512         (expand_builtin_apply, expand_builtin_return): Likewise.
1513         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
1514
1515 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
1516
1517         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
1518         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
1519         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
1520         configure, configure.in, except.c, except.h, flow.c, function.c,
1521         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
1522         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
1523         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
1524         unroll.c: Fix spelling errors.
1525
1526         * doc/extend.texi, doc/invoke.texi: Fix spelling.
1527
1528         * doc/gcc.texi: Document use of "dependent" and American spelling.
1529
1530 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
1531
1532         * expr.c (emit_group_load): Support CONCATs by storing them to memory
1533         and reloading.
1534
1535 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1536
1537         * expr.c (store_constructor_field): Only call adjust_address on MEM.
1538
1539 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
1540
1541         * genrecog.c (write_switch):  Output if before switch for
1542         DT_elt_zero_wide_safe.
1543
1544 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1545
1546         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
1547         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
1548         (FUNCTION_PROFILER): Const-ify.
1549         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
1550         (eliminate_constant_term, assemble_name, output_addr_const):
1551         Remove declarations.
1552         (ptr_half_pic_address_p, half_pic_hash): Prototype.
1553         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
1554         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
1555         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
1556         (half_pic_declare, half_pic_external): Const-ify.
1557         * toplev.c: Include "halfpic.h".
1558
1559 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
1560
1561         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
1562         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
1563         config/i386/i386.c, config/i386/i386-interix.h,
1564         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
1565         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
1566         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
1567         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
1568         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
1569         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
1570         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
1571         spelling errors.
1572
1573         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
1574         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
1575         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
1576         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
1577         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
1578         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
1579         system.h, toplev.c: Fix spelling errors.
1580
1581 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1582
1583         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
1584
1585         * dwarf2out.c (reg_number): Abort if pseudo.
1586         (reg_loc_descriptor): Return 0 if pseudo.
1587         (is_based_loc): Return 0 if pseudo.
1588         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
1589         recursive calls.
1590         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
1591         (loc_descriptor): Return 0 if can't find location and handle 0
1592         return from recursive calls.
1593         (loc_descriptor_from_tree): Likewise.
1594         Fix handling of indirect.
1595         Also return 0 for PLACEHOLDER_EXPR.
1596         Clean up COMPONENT_REF cases.
1597         (add_AT_location_descriptor): Simplify, but handle 0 return from
1598         loc_descriptor.
1599         (add_const_value_attribute): Avoid shift count warning.
1600         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
1601         Set comp_unit_die as context if not in function.
1602
1603         * config/mips/mips-protos.h: Break up long lines.
1604         Remove needless #ifdef/#endif blocks.
1605         Don't declare functions declared in file made by genpreds or recog.h.
1606         * config/mips/mips.c (mips_output_function_prologue): TSIZE
1607         is now HOST_WIDE_INT; delete unneeded casts.
1608         * config/mips/mips.h: Don't use #elif.
1609
1610         * expr.c (stor_constructor_field): Always call adjust_address.
1611         Copy TARGET before changing its alias set.
1612         (store_field): Likewise, for TO_RTX.
1613         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
1614         replacement.
1615         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
1616         (find_placeholder): Return 0 if can't find object.
1617         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
1618         returns 0.
1619
1620 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
1621
1622         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
1623
1624 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
1625
1626         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
1627         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
1628         (merge_blocks): Properly udpate life after making edge nonfallthru.
1629         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
1630
1631 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1632
1633         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1634
1635 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1636
1637         * c-typeck.c (convert_arguments): When comparing for enumeral
1638         type equality, use TYPE_MAIN_VARIANT.
1639         * gcc.dg/Wconversion.c: New tests.
1640
1641 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1642
1643         * s390/s390.c: Fix comment typos.
1644         * s390/s390.h: Likewise.
1645         * s390/s390.md: Likewise.
1646
1647 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1648
1649         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
1650         (walk_tree): Use it for tail calls where appropriate.
1651
1652 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1653
1654         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
1655         non-local label_refs.
1656
1657 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1658
1659         * config/h8300/h8300.md (4 anonymous patterns): New.
1660
1661 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1662
1663         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
1664         algorithm through the shift_info structure.
1665         (emit_a_shift): Update the use of get_shift_alg.
1666
1667 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
1668
1669         * sched-rgn.c: Remove bitset typedef.
1670         Change bitset to sbitmap in prototypes / variable types.
1671         Remove bbset_size.
1672         Remove edgeset_bits.
1673         Remove edgeset_size.
1674         s/BITSET_ADD/SET_BIT/g
1675         s/BITSET_INVERT/sbitmap_ones/g
1676         s/BITSET_INTER/sbitmap_a_and_b/g
1677         s/BITSET_UNION/sbitmap_a_or_b/g
1678         s/BITSET_DIFFER/sbitmap_difference/g
1679         s/bitset_member/TEST_BIT/g
1680         (BITSET_*): Removed.
1681         (bitset_member): Removed.
1682         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
1683         EXECUTE_IF_SET_IN_SBITMAP.
1684         (split_edges): Rewrite, use sbitmap functions instead of bitset
1685         operations.
1686         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
1687
1688 2001-10-26  Andreas Schwab  <schwab@suse.de>
1689
1690         * reload1.c (emit_input_reload_insns): Fix parens in last
1691         (undocumented) change that was supposed to change only whitespace.
1692
1693 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1694
1695         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
1696
1697         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
1698         ASM_OPERANDS.
1699
1700 2001-10-26  Andreas Jaeger  <aj@suse.de>
1701
1702         * flow.c (clear_log_links): Remove unused variable.
1703         * cfgcleanup.c (cleanup_cfg): Likewise.
1704
1705 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1706
1707         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
1708         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
1709
1710 2001-10-26  Richard Henderson  <rth@redhat.com>
1711
1712         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
1713         rename PV_REG to R27_REG.
1714         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
1715         (REG_CLASS_FROM_LETTER): Update.
1716         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
1717         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
1718         (udivsi3, modsi3, umodsi3): Likewise.
1719         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
1720
1721 2001-10-26  Richard Henderson  <rth@redhat.com>
1722
1723         * cfg.c (clear_aux_for_blocks): Split out of ...
1724         (free_aux_for_blocks): here.
1725         (clear_aux_for_edges): Split from ...
1726         (free_aux_for_edges): here.
1727         * basic-block.h: Declare them.
1728         * lcm.c (compute_antinout_edge): Use them.
1729         (compute_laterin, compute_available, compute_nearerout): Likewise.
1730         (optimize_mode_switching): Likewise.
1731
1732 2001-10-26  Richard Henderson  <rth@redhat.com>
1733
1734         * Makefile.in (unstage*): Remove as, ld, collect-ld before
1735         moving everything back to the main build directory.
1736
1737 2001-10-26  Christopher Faylor  <cgf@redhat.com>
1738
1739         * config/i386/cygwin.h: Search target specfic include directory, if
1740         appropriate.
1741
1742 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1743
1744         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
1745         of macro guards. Fix #endif comment.
1746
1747         * output.h (default_exception_section, default_eh_frame_section):
1748         Move prototypes outside of macro guard.
1749
1750         * crtstuff.c: Fix #endif comment.
1751
1752 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
1753
1754         * doc/md.texi (movMM): Clarify semantics of storing into a
1755         non-paradoxical SUBREG.
1756
1757 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
1758
1759         * langhooks.c (lang_hook_default_clear_binding_stack): New.
1760         (lang_hook_default_get_alias_set): Move next to other alias
1761         hooks.
1762         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
1763         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
1764         (LANG_HOOKS_INITIALIZER): Add it.
1765         * toplev.h (struct lang_hooks): Add clear_binding_stack.
1766         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
1767         instead of a loop calling poplevel.
1768
1769 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
1770
1771         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
1772         occurrences of #elif with #if...#endif.
1773
1774 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1775
1776         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
1777
1778 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1779
1780         * alias.c (can_address_p): No longer static.
1781         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
1782         Return 0 if all parameters are default values.
1783         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
1784         (adjust_address_1): Try harder to compute a size.
1785         * expr.c (expand_assignment, store_constructor): If can't address,
1786         set MEM_KEEP_ALIAS_SET_P.
1787         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
1788         (store_field): Likewise.
1789         (store_constructor): Simplify call to store_constructor_field.
1790         * expr.h (can_address_p): New declaration.
1791         * gensupport.c (gen_rtx_CONST_INT): New function.
1792         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
1793         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
1794         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
1795
1796         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
1797
1798 2001-10-24  Christopher Faylor  <cgf@redhat.com>
1799
1800         * config/i386/cygwin.h: Use proper path for mingw crt files when
1801         -mno-cygwin.
1802
1803 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1804
1805         * dwarf2out.c (file_info_cmp): Always return consistent results.
1806
1807 2001-10-24  Roger Sayle <roger@eyesopen.com>
1808
1809         * stmt.c (expand_end_case): Index jumptables from zero for
1810         suitably small values of minval.
1811
1812 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
1813
1814         * stor-layout.c (place_union_field): If any field was aligned with
1815         attribute aligned, set record type's TYPE_USER_ALIGN.
1816         (place_field): Likewise.
1817         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
1818         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
1819
1820 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
1821
1822         * c-common.h (struct c_common_identifier): Remove rid_code field.
1823         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
1824
1825         * c-typeck.c (constructor_designated): New local flag.
1826         (struct constructor_stack): Add "designated" field to match.
1827         (start_init): Clear it.
1828         (really_start_incremental_init, push_init_level): Push and
1829         clear it.
1830         (pop_init_level): Pop it.
1831         (set_designator): Set it.
1832
1833         (pop_init_level): Suppress "missing initializer" warnings if
1834         constructor_designated is true.
1835         (process_init_element): Suppress warning about union
1836         initialization under traditional C, if constructor_designated
1837         is true.
1838
1839 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1840
1841         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
1842         change.
1843
1844 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
1845
1846         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
1847
1848 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
1849
1850         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
1851         the node was already a set to a constant.
1852
1853 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1854
1855         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
1856         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
1857
1858 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1859
1860         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
1861         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
1862         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
1863         * s390.c (s390_final_chunkify): Don't use string concatenation.
1864         (s390_function_prologue, s390_function_epilogue): Const-ify.
1865         * s390.h (FUNCTION_PROFILER): Remove unused variable.
1866
1867 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
1868
1869         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
1870         prototypes.
1871
1872 2001-10-23  Stan Shebs  <shebs@apple.com>
1873
1874         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
1875         -traditional-cpp in first-stage compilation.
1876
1877 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1878
1879         * gensupport.c (target_flags): Add.
1880
1881 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
1882
1883         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
1884         if needed.
1885         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
1886         * except.c (expand_builtin_frob_return_addr): Likewise.
1887         (expand_builtin_eh_return): Likewise.
1888         * stmt.c (expand_computed_goto): Likewise.
1889         * explow.c (memory_address): Likewise.
1890         (allocate_dynamic_stack_space): Clean up predicate testing.
1891         (probe_stack_range): Convert SIZE to Pmode.
1892         * calls.c (rtx_for_function_call): Only call convert_memory_address
1893         if needed.
1894         Pass function call operand as ptr_mode, not Pmode.
1895         * expr.c (expand_assignment): Clean up calls to convert_memory
1896         address by only doing so when needed and making offsets Pmode.
1897         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
1898         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
1899         is in Pmode, not ptr_mode.
1900
1901 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1902
1903         * darwin-protos.h (constructor_section, destructor_section,
1904         mod_init_section, mod_term_section): Prototype.
1905         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
1906         Const-ify.
1907         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
1908         Likewise.
1909         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
1910         objc_section_init declaration.
1911         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
1912         (objc_section_init, try_section_alias): Make static.
1913         (alias_section): Make static and hide unused function.
1914         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
1915
1916 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1917
1918         * alias.c (can_address_p): Compnonents are not addressable if
1919         the containing type has alias set 0.
1920         (get_alias_set): Rework to use STRIP_NOPS.
1921         Only call front-end routine on object, type, or object with
1922         NOPs stripped, not inner values.
1923         Use language hook to call front-end routine.
1924         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
1925         (expand_builtin_apply): Call set_mem_align on MEMs we make.
1926         Don't pass alignment to emit_block_move.
1927         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
1928         (expand_builtin_memset): Likewise, but for clear_storage.
1929         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
1930         and remove C++ specific parts.
1931         * c-common.h (c_common_get_alias_set): Add declaration.
1932         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
1933         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
1934         (save_fixed_argument_area): Call set_mem_align.
1935         Remove alignment in call to emit_block_move.
1936         (emit_library_call_value_1, store_one_arg): Likewise.
1937         (target_for_arg): Remove; disabled long ago.
1938         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
1939         once and similar cleanups.
1940         (offset_address): Use proper introductory comment.
1941         * expr.c (emit_block_move): Use alignment from that of MEM args, not
1942         from explicit operand; all callers changed.
1943         (clear_storage): Likewise.
1944         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
1945         (store_field): Remove kludge on alias set used for to_rtx.
1946         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
1947         (expand_expr_unaligned): Call set_mem_attributes instead of
1948         set_mem_alias_set.
1949         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
1950         * function.c (assign_stack_temp_for_type): Set MEM alignment.
1951         (expand_function_end): Track MEM attributes of trampolines.
1952         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
1953         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
1954         attributes from original.
1955         * langhooks.c (lang_hook_default_get_alias_set): New function.
1956         (hook_get_alias_set_0): New function.
1957         * langhooks.h (hook_get_alias_set_0): New declaration.
1958         (lang_hook_default_get_alias_set): Likewise.
1959         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
1960         * reload1.c (alter_reg): Use adjust_address_nv.
1961         * rtl.c (get_mode_alignment): Moved to here.
1962         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
1963         change default if unknown from 1 to BITS_PER_UNIT.
1964         * stor-layout.c (get_mode_alignment): Remove from here.
1965         * toplev.h (struct lang_hoks): Add get_alias_set field.
1966         * tree.h (lang_get_alias_set): Delete declaration.
1967         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
1968         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
1969         (ix86_va_arg): Likewise.
1970         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
1971         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1972         * config/sparc/sparc.c (sparc_va_arg): Likewise.
1973         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
1974         (expand_block_move_mem): Remove dead code.
1975
1976 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1977
1978         * c-common.c (warn_div_by_zero): New.
1979         * c-common.h (warn_div_by_zero): New.
1980         * c-decl.c (c_decode_option): Take it on the command line.
1981         * c-typeck.c (build_binary_op): Warn about division by zero.
1982         * doc/invoke.texi: Document the new command line option, fix
1983         documentation of -Wmultichar.
1984         * testsuite/gcc.dg/divbyzero.c: New tests.
1985         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
1986
1987 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
1988
1989         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
1990
1991         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
1992         to avoid update_life_info call.
1993         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
1994         * cfgcleanup.c (bb_flags): New enum.
1995         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
1996         (notice_new_block, update_forwarder_flag): New functions.
1997         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
1998         (try_forward_edges): Likewise; update flags.
1999         (merge_blocks): Likewise.
2000         (outgoing_edges_match): Likewise.
2001         (try_crossjump_to_edge): Likewise.
2002         (try_optimize_cfg): Likewise; initialize and clear the flags;
2003         recompute life info if needed.
2004         (cleanup_cfg): No need to clear aux pointers.
2005
2006 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
2007
2008         * config/i386/i386.c (override_options): Default to minimum
2009         stack alignment when optimizing for code size.
2010         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
2011         change.
2012
2013         * config/i386/i386.c (override_options): Set upper limit of
2014         -mpreferred-stack-boundary to 12.
2015
2016 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
2017
2018         * recog.c (peephole2_optimize): Add default case to switch.
2019
2020 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
2021
2022         * doc/gcc.texi (Sending Patches): Remove.
2023
2024 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
2025
2026         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
2027         fields when comparing.
2028
2029 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2030
2031         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
2032         * arm.c (HOST_INT, HOST_UINT): Likewise.
2033
2034 2001-10-22  Stan Shebs  <shebs@apple.com>
2035
2036         * config/darwin-protos.h (darwin_exception_section): Declare.
2037         (darwin_eh_frame_section): Declare.
2038
2039 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
2040
2041         * i386.md (movti_rex64): Fix mode.
2042
2043 2001-10-22  Stan Shebs  <shebs@apple.com>
2044
2045         * target.h (struct gcc_target): Add asm_out.exception_section,
2046         asm_out.eh_frame_section.
2047         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
2048         (TARGET_ASM_EH_FRAME_SECTION): New.
2049         (TARGET_INITIALIZER): Update.
2050         * output.h (default_exception_section): Declare.
2051         (default_eh_frame_section): Declare.
2052         * dwarf2out.c: Include target.h.
2053         (output_call_frame_info): Call target hook for eh frames.
2054         (default_eh_frame_section): New function.
2055         * except.c: Include target.h.
2056         (output_function_exception_table): Call target hook for exception
2057         section.
2058         * varasm.c (default_exception_section): Rename from
2059         exception_section, remove EXCEPTION_SECTION macro.
2060
2061         * config/darwin.h (darwin_eh_frame_section): New function.
2062         (EXCEPTION_SECTION): Remove.
2063         (TARGET_ASM_EXCEPTION_SECTION): Define.
2064         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
2065         (nextstep_exception_section): New function.
2066         (nextstep_eh_frame_section): New function.
2067         (TARGET_ASM_EXCEPTION_SECTION): Define.
2068         (TARGET_ASM_EH_FRAME_SECTION): Define.
2069
2070         * config/pa/som.h (EXCEPTION_SECTION): Remove.
2071         (TARGET_ASM_EXCEPTION_SECTION): Define.
2072         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
2073         (EXCEPTION_SECTION): Remove.
2074         (TARGET_ASM_EXCEPTION_SECTION): Define.
2075         * config/stormy16/stormy16.h: Remove comments referencing
2076         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
2077
2078         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
2079         TARGET_ASM_EH_FRAME_SECTION.
2080
2081 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
2082
2083         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
2084         terms.
2085
2086         * c-format.c: Fix spelling typo in comment.
2087
2088         * sched-int.h: Fix typo in GCC preamble.
2089
2090 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2091
2092         PR debug/4252
2093         * doc/invoke.texi: Remove references to -fdump-translation-unit.
2094
2095 2001-10-22  Richard Henderson  <rth@redhat.com>
2096
2097         * config/i386/i386.c (ix86_expand_clear): New.
2098         * config/i386/i386-protos.h: Declare it.
2099         * config/i386/i386.md (setcc peep2s): Use it.
2100         (movsi_xor): Unexport.
2101
2102 2001-10-22  Richard Henderson  <rth@redhat.com>
2103
2104         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
2105         free_EXPR_LIST_list for LOG_LINKS.
2106
2107 2001-10-21  Robert Lipe  <robertlipe@usa.net>
2108
2109         * config/i386/i386.c (sco_asm_named_section): Delete.
2110         (sco_asm_out_constructor): Delete.
2111         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
2112         (ASM_OUTPUT_DOUBLE_INT): Likewise.
2113         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
2114         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
2115         (EXCEPTION_SECTION): Delete EH scn renaming hack.
2116
2117 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2118
2119         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
2120         and/or fold extra calls into fewer ones.
2121         * collect2.c (dump_file): Likewise.
2122         * cppexp.c (parse_number): Likewise.
2123         * cpplex.c (_cpp_lex_direct): Likewise.
2124         * final.c (output_asm_insn, asm_fprintf): Likewise.
2125         * fix-header.c (inf_scan_ident, main): Likewise.
2126         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
2127         Likewise.
2128         * fold-const.c (real_hex_to_f): Likewise.
2129         * gen-protos.c (parse_fn_proto): Likewise.
2130         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
2131         * genrecog.c (change_state, write_action): Likewise.
2132         * gensupport.c (shift_output_template): Likewise.
2133         * local-alloc.c (requires_inout): Likewise.
2134         * mips-tfile.c (IS_ASM_IDENT): Likewise.
2135         * protoize.c (is_id_char, main): Likewise.
2136         * real.c (asctoeg): Likewise.
2137         * recog.c (asm_operand_ok): Likewise.
2138         * reload.c (find_reloads): Likewise.
2139         * scan.c (scan_identget_token): Likewise.
2140         * sched-vis.c (print_value): Likewise.
2141         * stringpool.c (ggc_alloc_string): Likewise.
2142         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
2143         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
2144         * tradcpp.c (rescan): Likewise.
2145         * tree.c (clean_symbol_name): Likewise.
2146         * varasm.c (decode_reg_name): Likewise.
2147
2148         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
2149         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
2150         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
2151         * m88k.c (output_ascii): Likewise.
2152         * m88k.h (OVERRIDE_OPTIONS): Likewise.
2153         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
2154         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
2155         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
2156
2157 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2158
2159         * langhooks.c (lang_hook_default_do_nothing,
2160         lang_hook_default_decode_option): New defaults.
2161         * langhooks.h: Make hooks unconditional and non-NULL.
2162         * toplev.c (compile_file, toplev_main): Update.
2163         * toplev.h: Update comments.
2164         * objc/objc-act.c (lang_hooks): Update to new paradigm.
2165
2166 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2167
2168         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
2169
2170         * system.h (IN_RANGE): New macro.
2171
2172 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
2173
2174         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
2175         INTLDEPS variable, which does not include $LIBICONV.
2176         * Makefile.in: Use INTLDEPS in LIBDEPS.
2177         * configure: Regenerate.
2178
2179 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2180
2181         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
2182         * cpplex.c (lex_percent, lex_dot): Remove.
2183         (get_effective_char, skip_block_comment, skip_line_comment,
2184         parse_identifier_slow, parse_number, parse_string, save_comment,
2185         _cpp_lex_direct): Update to do lookback freely.
2186         (IF_NEXT_IS, BACKUP): New macros.
2187         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
2188         * cppmacro.c (paste_tokens): Update.
2189
2190 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2191
2192         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
2193
2194 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
2195
2196         * reload1.c (reload): Check CONSTANT_P before calling
2197         LEGITIMATE_PIC_OPERAND_P.
2198         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
2199         workaround of 2001-10-13.
2200
2201 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
2202
2203         * i386.c (split_di): Handle splitting of DFmode.
2204
2205 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2206
2207         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
2208         (adjust_address_1, offset_address): Likewise.
2209
2210         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
2211         (output_asm_insn): Call it for each line output.
2212         Don't record an operand more than once.
2213
2214         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
2215         * main.c: Include config.h and system.h, but not ansidecl.h.
2216         * Makefile.in (main.o): Update accordingly.
2217
2218 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
2219
2220         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
2221
2222 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
2223
2224         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
2225         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
2226         Break out from ...
2227         (find_sub_basic_blocks): ... here;
2228         (find_many_sub_basic_blocks): New.
2229         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
2230
2231         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
2232
2233         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
2234
2235         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
2236
2237         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
2238         * flow.c (update_life_info): Measure time.
2239         * c-decl.c: Include timevar.h
2240         (c_expand_body): Measure time.
2241         * toplev.c (rest_of_compilation): Measure time of mode switching
2242         separately.
2243         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
2244
2245         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
2246         (lang_independent_options): Add asynchronous-unwind-tables
2247         (toplev_main): flag_asynchronous_unwind_tables implies
2248         flag_unwind_tables.
2249         * flags.h (flag_asynchronous_unwind_tables): Declare.
2250         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
2251         flag_asynchronous_unwind_tables.
2252         (output_call_frame_info): Likewise.
2253         * invoke.texi (-fasynchronous-unwind-tables): Document.
2254         * i386.c (optimization_options): Enable
2255         flag_asynchronous_unwind_tables.
2256
2257         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
2258         * i386.md (s* expanders): Destination is QImode.
2259
2260         * toplev.c (rest_of_compilation): Do not call clear_log_links.
2261         * rtl.h (clear_log_links): Kill.
2262         * flow.c (clear_log_links): Make static; accept blocks parameter;
2263         do no clear life info.
2264         (update_life_info): Call clear_log_links.
2265
2266         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
2267
2268 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2269
2270         * cpplex.c (handle_newline, skip_escaped_newlines,
2271         get_effective_char, skip_block_comment, skip_line_comment,
2272         parse_identifier_slow, parse_number, parse_string,
2273         _cpp_lex_direct): Update to do more stepping back.
2274         (trigraph_ok): Similarly.  Rename trigraph_p.
2275         (SAVE_STATE, RESTORE_STATE): Remove.
2276         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
2277
2278         * cpplib.c (destringize): Rename destringize_and_run, and
2279         call run_directive directly.
2280         (_cpp_do__Pragma): Simplify.
2281
2282 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2283
2284         * pe.c (arm_pe_unique_section): Const-ify.
2285         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2286         (switch_to_section): Add static prototype.
2287
2288         * output.h (drectve_section): Prototype.
2289
2290 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2291
2292         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
2293         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
2294         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
2295         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
2296         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
2297         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
2298         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
2299         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
2300         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
2301         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
2302         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
2303         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
2304         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
2305         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
2306         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
2307         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
2308         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
2309         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
2310         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
2311         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
2312         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
2313         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
2314         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
2315         cris-*-none, cris-*-linux*: Update ${tmfile} list.
2316         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
2317         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
2318         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
2319         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
2320         v850-*-*): Delete superflous ${cpu_type} setting.
2321         * config/linux.h: Delete svr4.h include.
2322         (SET_ASM_OP): Delete.
2323         * config/netware.h (INT_ASM_OP): Undef before define.
2324         * config/ptx4.h: Delete elfos.h include.
2325         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
2326         * config/svr4.h: Delete elfos.h include. Update commentary.
2327         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
2328         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
2329         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
2330         config/v850/v850.h: Delete svr4.h include.
2331         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
2332         config/m68k/m68kv4.h, config/m88k/sysv4.h,
2333         config/sparc/sysv4.h: Update includes.
2334         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
2335         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
2336         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
2337         config/m88k/dguxbcs.h: Delete includes.
2338         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
2339         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
2340         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
2341         it.
2342         * config/m88k/dgux.h: Delete include.
2343         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
2344         defining it.
2345         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
2346         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
2347         * config/sh/elf.h: Update include.
2348         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
2349         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
2350
2351 2001-10-19  Catherine Moore  <clm@redhat.com>
2352
2353         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
2354         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
2355         base and count fields.
2356         (stormy16_expand_builtin_va_start):  last_reg_count changed to
2357         size_of_reg_args.  Use count + size in first comparison.
2358
2359 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2360
2361         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
2362         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
2363         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
2364         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
2365         Set alignment from type if INDIRECT_REF.
2366         (adjust_address_1, offset_address): Simplify alignment compuitation.
2367         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
2368         here; done by set_mem_attributes.
2369
2370 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2371
2372         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
2373         * arm-protos.h (rdata_section, zero_init_section, common_section):
2374         Prototype.
2375         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
2376         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
2377         traditional mode stringification.
2378         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
2379         in macros controling its use.
2380         * rtlanal.c: Include tm_p.h.
2381         * varasm.c (asm_output_aligned_bss): Mark parameter with
2382         ATTRIBUTE_UNUSED.
2383         (assemble_constant_align, assemble_start_function, assemble_align,
2384         assemble_variable, assemble_trampoline_template,
2385         output_constant_def_contents): Wrap potentially empty if-stmt body
2386         in brackets.
2387
2388 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2389
2390         * a29k-protos.h (literal_section): Prototype.
2391         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
2392         * a29k.md: Ensure function pointers are prototyped.
2393         * genattrtab.c (write_eligible_delay): Mark parameter with
2394         ATTRIBUTE_UNUSED.
2395
2396 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2397
2398         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
2399         * 1750a.c (print_operand): Fix format specifier warning.
2400         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
2401         * 1750a.md: Likewise.
2402         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
2403         * genemit.c (output_add_clobbers): Mark parameter with
2404         ATTRIBUTE_UNUSED.
2405         * genrecog.c (write_subroutine): Likewise.
2406         * integrate.c (expand_inline_function): Delete unused variable.
2407         * varasm.c (remove_from_pending_weak_list): Wrap with
2408         ASM_WEAKEN_LABEL.
2409
2410 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2411
2412         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
2413         field is different to previous argument's neg field.
2414
2415         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
2416
2417 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2418
2419         * final.c (get_decl_from_op): New function.
2420         (output_asm_insn): Call it; write "*" when item with decl is address.
2421
2422 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
2423
2424         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
2425         about 64-bit support from the 3.0_branch version.
2426
2427 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
2428
2429         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
2430         USE_INCLUDED_LIBINTL when appropriate.
2431         * configure, config.in: Regenerate.
2432         * Makefile.in (datadir): Set to @datadir@.
2433         (intl.o): Also depend on $(CONFIG_H) and system.h.
2434
2435         * intl.c: Factor out common gettext initialization sequence.
2436         (gcc_init_libintl):  New function.
2437         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
2438         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
2439         off NLS.  Add multiple include guard.  No need to #ifdef-guard
2440         an #undef.  Prototype gcc_init_libintl here.
2441
2442         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
2443         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
2444         Use gcc_init_libintl.
2445
2446 2001-10-19  Catherine Moore  <clm@redhat.com>
2447
2448         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
2449
2450         * config/stormy16/stormy16.c (stormy16_split_move):  Make
2451         sure that REG_INC notes are present for auto_inc operands.
2452
2453 2001-10-19  Andreas Jaeger  <aj@suse.de>
2454
2455         * configure: Regenerated.
2456         * configure.in: Add x86_64 to switch statements.
2457
2458 2001-10-18  Richard Henderson  <rth@redhat.com>
2459
2460         * config/alpha/alpha.md (sibcall_osf_1): Load destination
2461         address into $27 explicitly.
2462         (sibcall_value_osf_1): Likewise.
2463
2464 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2465
2466         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
2467         (offset_address): New function.
2468         (free_emit_status): Free regno_decl.
2469         (init_emit): Pass proper number of elements to xcalloc.
2470         Allocate regno_decl.
2471         (mark_emit_status): Mark regno_decl values.
2472         * expr.c (highest_pow2_factor): New function.
2473         (expand_assigment): Use it and offset_address.
2474         Properly handle ptr_mode vs. Pmode in offset calculation.
2475         (store_constructor, expand_expr_unaligned): Likewise.
2476         (expand_expr, case COMPONENT_EXPR): Likewise.
2477         * expr.h (offset_address): New decl.
2478         * function.h (struct emit_status): Add regno_decl.
2479         (REGNO_DECL): New macro.
2480         * final.c (output_asm_name): Move in file and don't conditionalize
2481         on flag_print_asm_name.
2482         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
2483         Output names of operands, if known.
2484         * function.c (assign_parms): Set REGNO_DECL.
2485         * integrate.c (integrate_decl_tree): Likewise.
2486         * stmt.c (expand_decl): Likewise.
2487         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
2488
2489 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
2490
2491         * attribs.c (handle_noinline_attribute): New function.
2492         (handle_used_attribute): Likewise.
2493         (c_common_attribute_table): Added noinline and used.
2494         * doc/extend.texi (Function Attributes): Document them.
2495         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
2496         Warn when merging inline with attribute noinline.
2497         (start_decl, start_function): Warn if inline and attribute
2498         noinline appear in the same declaration.
2499
2500 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2501
2502         * config.gcc: Update c4x and i370 for C front end-specific
2503         dependencies.
2504         * config/c4x/c4x-c.c: New.
2505         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
2506         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
2507         New declarations.
2508         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
2509         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
2510         Make extern.
2511         (c4x_init_pragma): Remove.
2512         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
2513         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
2514         c4x_pr_ignored): Move to c4x-c.c.
2515         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
2516         * config/c4x/t-c4x: Update.
2517         * config/i370/i370-c.c: New.
2518         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
2519         (i370_pr_map): Move to i370-c.c.
2520         * config/i370/t-i370: New.
2521
2522         * doc/tm.texi: Update.
2523
2524 2001-10-17  Stan Shebs  <shebs@apple.com>
2525
2526         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
2527         typo fixes throughout.
2528         (machopic_output_stub): Remove some dead code.
2529
2530 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
2531
2532         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
2533         leak.
2534
2535 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2536
2537         * Makefile.in (print-rtl.o): Depend on TREE_H.
2538         * alias.c (get_alias_set): Make two passes over objects to first
2539         see if inner object is access via restricted pointer.
2540         Defer allocating alias set for restricted pointer until here.
2541         Call find_placeholder with second arg nonzero.
2542         Minor cleanups.
2543         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
2544         set for restricted pointer types.
2545         * emit-rtl.c (set_mem_attributes): Set more attributes.
2546         (set_mem_align, change_address, adjust_address_1): New functions.
2547         (change_address_1): Now static.
2548         (adjust_address, adjust_address_nv): Deleted.
2549         (replace_equiv_address): Call change_address_1.
2550         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
2551         (find_placeholder): Get starting point from PLIST arg.
2552         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
2553         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
2554         (adjust_address, adjust_address_nv): New macros.
2555         * print-rtl.c (tree.h): New include.
2556         (print_rtx, case MEM): Print all memory attributes.
2557
2558 2001-10-17  Richard Henderson  <rth@redhat.com>
2559
2560         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
2561
2562 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2563
2564         * c-tree.texi: Eliminate duplicated word.
2565         * cpp.texi: Likewise.
2566         * install.texi: Likewise.
2567         * invoke.texi: Likewise.
2568         * tm.texi: Likewise.
2569
2570 2001-10-17  Michael Collison  <collison@isisinc.net>
2571
2572         * dsp16xx.c: Fix comment formatting to match GNU standards.
2573         (dsp16xx_output_function_prologue): Change type of 'size'
2574         parameter from 'int' to HOST_WIDE_INT.
2575         (dsp16xx_output_function_epilogue): Change type of 'size'
2576         parameter from 'int' to HOST_WIDE_INT.
2577
2578 2001-10-16  Richard Henderson  <rth@redhat.com>
2579
2580         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
2581         * configure, config.in: Rebuild.
2582
2583         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
2584         (ix86_output_addr_diff_elt): New.
2585         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
2586         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2587         (JUMP_TABLES_IN_TEXT_SECTION): New.
2588         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
2589         * config/i386/i386-protos.h: Update.
2590
2591         * config/i386/386bsd.h, config/i386/beos-elf.h,
2592         config/i386/freebsd-aout.h, config/i386/freebsd.h,
2593         config/i386/i386-interix.h, config/i386/i386elf.h,
2594         config/i386/linux.h, config/i386/netbsd-elf.h,
2595         config/i386/netbsd.h, config/i386/openbsd.h,
2596         config/i386/ptx4-i.h, config/i386/rtemself.h,
2597         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
2598         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
2599
2600 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
2601
2602         * stmt.c (expand_asm_operands): Update commentary.
2603
2604 2001-10-16  Stan Shebs  <shebs@apple.com>
2605
2606         * config/darwin.h (GCC_NAME): Remove, no longer used.
2607         (NO_MATH_LIBRARY): Ditto.
2608         (MATH_LIBRARY): Define to emptiness.
2609         (DWARF2_DEBUGGING_INFO): Define.
2610         (PREFERRED_DEBUGGING_TYPE): Define.
2611         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
2612         (EXCEPTION_SECTION): Define.
2613         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2614         * config/darwin.c (darwin_encode_section_info): Handle case of
2615         DECL_INITIAL being error_mark_node.
2616
2617 2001-10-16  Richard Henderson  <rth@redhat.com>
2618
2619         * alpha.c (current_file_function_operand): Don't fail for profiling.
2620         (direct_call_operand): New.
2621         * alpha-protos.h: Declare it.
2622         * alpha.h (EXTRA_CONSTRAINT): Use it.
2623         (PREDICATE_CODES): Add it.
2624         (ASM_OUTPUT_MI_THUNK): Remove.
2625         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
2626         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
2627
2628 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
2629
2630         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
2631         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2632
2633 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
2634
2635         * cfg.c (free_edge): Break out from ....
2636         (remove_edge): ... here.
2637         (clear_edges): Use free_edge.
2638
2639         * att.h (ASM_QUAD): Add comment.
2640         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
2641
2642 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
2643
2644         * i386.c (split_ti): New function.
2645         (ix86_split_to_parts): Support TImodes.
2646         * i386.h (VALID_INT_MODE_P): Add TImode.
2647         * i386.md (movdi splitter): Fix.
2648         (movti): Support 64bit integer registers.
2649         (movti_rex64): New function and splitter.
2650
2651         * i386.c (*_cost): Add movsx/movzx cost.
2652         * i386.h (struct processor_costs): Add movsx/movzx fields.
2653         (RTX_COSTS): Handle zero/sign extend + avoid believing that
2654         64bit operations require split on 64bit machine.
2655         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
2656
2657         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
2658         (ix86_expand_move): Avoid pushes of memory if size does not match;
2659         move long constants to register.
2660         (x86_initialize_trampoline): Fix mode.
2661         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
2662         Use ASM_QUAD on 64bit.
2663         * i386.md (test pattern): Disallow impossible constants.
2664         (tablejump PIC expander): Fix emitting of sum.
2665         (movdicc_rex64): Rename to movdicc.
2666         * linux64.h (LINK_SPEC): Add missing '%'.
2667
2668 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
2669
2670         * tree-inline.c (inlinable_function_p): Leave it up to the
2671         front-end to turn -finline-functions into DECL_INLINE set for all
2672         functions.
2673
2674 2001-10-16  Stan Shebs  <shebs@apple.com>
2675
2676         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
2677
2678 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
2679
2680         * recog.c: Formatting and comment typo fixes.
2681
2682         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
2683         version in single tree build.
2684         * configure: Regenerate.
2685
2686 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
2687
2688         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
2689         MODE arguments to gen_rtx and compare operand with const0_rtx.
2690
2691 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2692
2693         * system.h: Poison old unused target macros.
2694         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
2695         * config/stormy16/stormy16.c: Update references to obsolete macros.
2696         * config/stormy16/stormy16.h: Similarly.
2697         * config/stormy16/stormy16.md: Similarly.
2698         * config/cris/cris.h: Similarly.
2699
2700 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2701
2702         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
2703         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
2704         cpp_register_pragma): Update accordingly.
2705
2706 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2707
2708         * c-pragma.h (cpp_register_pragma_space): Remove.
2709         * cpplib.h (cpp_register_pragma_space): Remove.
2710         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
2711         (cpp_register_pragma_space): Remove.
2712         (cpp_register_pragma): Simplify using lookup_pragma_entry,
2713         add sanity checks.
2714         (do_pragma): Similarly.
2715         (_cpp_init_internal_pragmas): Don't register namespaces.
2716
2717         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
2718         Don't register namespaces.
2719         * cp/lex.c (init_cp_pragma): Similarly.
2720         * doc/tm.texi: Update.
2721
2722 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2723
2724         PR c/4157
2725         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
2726
2727 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
2728
2729         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
2730         add scheduling support.
2731         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
2732         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
2733         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
2734
2735
2736 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
2737
2738         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
2739         missing CONSTANT_P test in core GCC.
2740
2741 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
2742
2743         * cppmain.c (struct printer): New member source.
2744         (scan_translation_unit): Fix spacing at start of lines.
2745         (cb_line_change): Update.
2746
2747         * gcc.dg/cpp/spacing2.c: New test.
2748
2749 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
2750
2751         * config/cris/arit.c: Use __builtin_labs, not abs.
2752
2753         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
2754
2755         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
2756         misplaced sprintf and fprintf argument.
2757
2758 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
2759
2760         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
2761         * configure.in, Makefile.in: Take out obsolete check-po logic.
2762         * configure, config.in: Regenerate.
2763
2764 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
2765
2766         * objc/objc-act.c (finish_objc): Correct precondition for emitting
2767         symtab declarations.
2768
2769 2001-10-12  Stan Shebs  <shebs@apple.com>
2770
2771         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
2772         declarations of arguments and local variables.
2773
2774 2001-10-12  Christopher Faylor  <cgf@redhat.com>
2775
2776         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
2777         ENDFILE_SPEC definition.
2778
2779 2001-10-12  Kazu Hirata  <kazu@hxi.com>
2780
2781         * gthr-dce.h: Fix comment formatting.
2782         * gthr-posix.h: Likewise.
2783         * gthr-single.h: Likewise.
2784         * gthr-solaris.h: Likewise.
2785         * gthr-vxworks.h: Likewise.
2786         * gthr-win32.h: Likewise.
2787
2788 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
2789
2790         * final.c (output_asm_insn): Make sure assembly dialects are
2791         terminated, not nested.  Output `|' and `}' characters if they
2792         don't appear inside assembly dialect selection.
2793         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
2794         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
2795         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
2796         strsetsi_rex_1): Add {} braces.
2797
2798 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
2799
2800         * toplev.c (compile_file): Ignore return value from yyparse.
2801         Always pop any nested binding levels after yyparse returns.
2802
2803 2001-10-11  Richard Henderson  <rth@redhat.com>
2804
2805         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
2806
2807 2001-10-11  Richard Henderson  <rth@redhat.com>
2808
2809         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
2810         fall back to add_AT_long_long for large CONST_INT.
2811
2812 2001-10-11  Richard Henderson  <rth@redhat.com>
2813
2814         * config/i386/i386.md (setcc splitters): Add four splitters to
2815         simplify compound compares that simplify_comparison can't handle.
2816
2817 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
2818
2819         * cpplex.c (digraph_spellings, token_spellings): Make static.
2820
2821 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2822
2823         * unroll.c (loop_iterations): Fixup last patch.
2824
2825 2001-10-11  Richard Henderson  <rth@redhat.com>
2826
2827         * rtl.h (REG_VTABLE_REF): New.
2828         * rtl.c (reg_note_name): Add it.
2829         * combine.c (distribute_notes): Handle it.
2830         * final.c (final_scan_insn): Handle it.
2831         * tree.def (VTABLE_REF): New.
2832         * expr.c (expand_expr): Handle it.
2833         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
2834         * output.h: Declare them.
2835
2836 2001-10-11  Richard Henderson  <rth@redhat.com>
2837
2838         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
2839         for a DECL_INITIAL.
2840
2841 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
2842
2843         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
2844         available in 64-bit mode.
2845
2846 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
2847
2848         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
2849         cris-*-linux* cases.
2850         * config/cris/cris-protos.h: New file.
2851         * config/cris/cris.c: New file.
2852         * config/cris/cris.h: New file.
2853         * config/cris/cris.md: New file.
2854         * config/cris/linux.h: New file.
2855         * config/cris/aout.h: New file.
2856         * config/cris/arit.c: New file.
2857         * config/cris/cris_abi_symbol.c: New file.
2858         * config/cris/mulsi3.asm: New file.
2859         * config/cris/t-aout: New file.
2860         * config/cris/t-cris: New file.
2861         * config/cris/t-elfmulti: New file.
2862         * config/cris/t-linux: New file.
2863         * doc/invoke.texi: Add CRIS options.
2864         * doc/install.texi (Specific): Add blurb for CRIS.
2865
2866 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
2867
2868         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
2869         before using it.
2870         * config/float/i32.h: Likewise.
2871         * config/float-i386.h: Likewise.
2872         * config/float-i64.h: Likewise.
2873         * config/float-m68k.h: Likewise.
2874         * config/float-sh.h: Likewise.
2875         * config/float-sparc.h: Likewise.
2876
2877 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
2878
2879         * doc/contrib.texi: Add note about CRIS port to my entry.
2880
2881 2001-10-11  Kazu Hirata  <kazu@hxi.com>
2882
2883         * basic-block.h: Fix formatting.
2884         * bitmap.h: Likewise.
2885         * cpplib.h: Likewise.
2886         * c-tree.h: Likewise.
2887         * diagnostic.h: Likewise.
2888         * flags.h: Likewise.
2889         * ggc.h: Likewise.
2890         * longlong.h: Likewise.
2891         * real.h: Likewise.
2892         * reload.h: Likewise.
2893         * rtl.h: Likewise.
2894         * tree.h: Likewise.
2895
2896 2001-10-10  Richard Henderson  <rth@redhat.com>
2897
2898         * c-parse.in (asm_operand): Allow named operands.
2899         * genconfig.c (max_recog_operands): Set to 29.
2900         * local-alloc.c (requires_inout): Skip multiple digits.
2901         * recog.c (asm_operand_ok): Likewise.
2902         (preprocess_constraints): Use strtoul for matching constraints.
2903         (constrain_operands): Likewise.
2904         * regmove.c (find_matches): Likewise.
2905         * reload.c (find_reloads): Likewise.
2906         * stmt.c (parse_output_constraint): Don't reject in-out
2907         constraint on operands > 9.  Reject '[' in constraint.
2908         (expand_asm_operands): Handle named operands.  Use strtoul
2909         for matching constraints.
2910         (check_operand_nalternatives): Split out from expand_asm_operands.
2911         (check_unique_operand_names): New.
2912         (resolve_operand_names, resolve_operand_name_1): New.
2913
2914         * doc/extend.texi (Extended Asm): Document named operands.
2915         * doc/md.texi (Simple Constraints): Document matching constraints
2916         on operands > 9.
2917
2918 2001-10-10  Richard Henderson  <rth@redhat.com>
2919
2920         * combine.c (try_combine): Handle a SEQUENCE of one insn.
2921
2922         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
2923         (jcc splitters): Add two splitters to simplify compound compares
2924         that simplify_comparison can't handle.
2925
2926 2001-10-10  Richard Henderson  <rth@redhat.com>
2927
2928         * langhooks.c: Include langhooks.h.
2929         * Makefile.in (langhooks.o): Depend on it.
2930
2931 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
2932
2933         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
2934         should not be considered as a no-op.
2935         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
2936
2937 2001-10-10  Stan Shebs  <shebs@apple.com>
2938
2939         * alias.c: Remove uses of "register" specifier in declarations
2940         of arguments and local variables.
2941         * c-common.c: Ditto.
2942         * c-convert.c: Ditto.
2943         * c-decl.c: Ditto.
2944         * c-format.c: Ditto.
2945         * c-semantics.c: Ditto.
2946         * c-typeck.c: Ditto.
2947         * caller-save.c: Ditto.
2948         * calls.c: Ditto.
2949         * cfg.c: Ditto.
2950         * cfgbuild.c: Ditto.
2951         * cfgrtl.c: Ditto.
2952         * collect2.c: Ditto.
2953         * combine.c: Ditto.
2954         * convert.c: Ditto.
2955         * cppexp.c: Ditto.
2956         * cppfiles.c: Ditto.
2957         * cse.c: Ditto.
2958         * dbxout.c: Ditto.
2959         * defaults.h: Ditto.
2960         * df.c: Ditto.
2961         * dwarf2out.c: Ditto.
2962         * dwarfout.c: Ditto.
2963         * emit-rtl.c: Ditto.
2964         * explow.c: Ditto.
2965         * expmed.c: Ditto.
2966         * expr.c: Ditto.
2967         * final.c: Ditto.
2968         * fix-header.c: Ditto.
2969         * floatlib.c: Ditto.
2970         * flow.c: Ditto.
2971         * fold-const.c: Ditto.
2972         * function.c: Ditto.
2973         * gcc.c: Ditto.
2974         * gcse.c: Ditto.
2975         * gen-protos.c: Ditto.
2976         * genattrtab.c: Ditto.
2977         * gencheck.c: Ditto.
2978         * genconfig.c: Ditto.
2979         * genemit.c: Ditto.
2980         * genextract.c: Ditto.
2981         * genflags.c: Ditto.
2982         * gengenrtl.c: Ditto.
2983         * genoutput.c: Ditto.
2984         * genpeep.c: Ditto.
2985         * genrecog.c: Ditto.
2986         * gensupport.c: Ditto.
2987         * global.c: Ditto.
2988         * gmon.c: Ditto.
2989         * graph.c: Ditto.
2990         * haifa-sched.c: Ditto.
2991         * hard-reg-set.h: Ditto.
2992         * hash.c: Ditto.
2993         * integrate.c: Ditto.
2994         * jump.c: Ditto.
2995         * lists.c: Ditto.
2996         * local-alloc.c: Ditto.
2997         * loop.c: Ditto.
2998         * mips-tdump.c: Ditto.
2999         * mips-tfile.c: Ditto.
3000         * optabs.c: Ditto.
3001         * prefix.c: Ditto.
3002         * print-rtl.c: Ditto.
3003         * read-rtl.c: Ditto.
3004         * real.c: Ditto.
3005         * recog.c: Ditto.
3006         * reg-stack.c: Ditto.
3007         * regclass.c: Ditto.
3008         * regmove.c: Ditto.
3009         * reload.c: Ditto.
3010         * reload1.c: Ditto.
3011         * reorg.c: Ditto.
3012         * resource.c: Ditto.
3013         * rtl.c: Ditto.
3014         * rtlanal.c: Ditto.
3015         * scan.c: Ditto.
3016         * sched-deps.c: Ditto.
3017         * sched-rgn.c: Ditto.
3018         * sdbout.c: Ditto.
3019         * simplify-rtx.c: Ditto.
3020         * stmt.c: Ditto.
3021         * stor-layout.c: Ditto.
3022         * toplev.c: Ditto.
3023         * tradcif.y: Ditto.
3024         * tradcpp.c: Ditto.
3025         * tree.c: Ditto.
3026         * unroll.c: Ditto.
3027         * varasm.c: Ditto.
3028         * xcoffout.c: Ditto.
3029
3030 2001-10-10  Richard Henderson  <rth@redhat.com>
3031
3032         * rtl.h (can_reverse_comparison_p): Remove.
3033
3034 2001-10-10  Christopher Faylor <cgf@redhat.com>
3035
3036         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
3037         used.
3038
3039 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3040
3041         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
3042         (Thanks to Chris Faylor for suggesting macro name).
3043         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
3044         WIN32 defines.
3045         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
3046         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
3047         (MATH_LIBRARY): Undef before definition.
3048         (OUTPUT_QUOTED_STRING): Likewise.
3049         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
3050
3051 2001-10-10  Richard Henderson  <rth@redhat.com>
3052
3053         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
3054         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
3055         a tristate comparison value.
3056         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
3057
3058 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3059
3060         PR c++/4512
3061         * unroll.c (loop_iterations): Ignore insns generated by loop
3062         unrolling.
3063
3064         * config.gcc (mips*-*-gnu*): Delete support.
3065         * config/mips/gnu.h: Remove.
3066
3067 2001-10-10  Kazu Hirata  <kazu@hxi.com>
3068
3069         * calls.c: Fix formatting.
3070         * c-decl.c: Likewise.
3071         * cfgcleanup.c: Likewise.
3072         * combine.c: Likewise.
3073         * cppfiles.c: Likewise.
3074         * cpplib.c: Likewise.
3075         * cppmacro.c: Likewise.
3076         * crtstuff.c: Likewise.
3077         * cse.c: Likewise.
3078         * dwarf2out.c: Likewise.
3079         * expmed.c: Likewise.
3080         * expr.c: Likewise.
3081         * fold-const.c: Likewise.
3082         * function.c: Likewise.
3083         * gcse.c: Likewise.
3084         * genattrtab.c: Likewise.
3085         * ggc-page.c: Likewise.
3086         * integrate.c: Likewise.
3087         * libgcc2.c: Likewise.
3088         * loop.c: Likewise.
3089         * optabs.c: Likewise.
3090         * profile.c: Likewise.
3091         * protoize.c: Likewise.
3092         * real.c: Likewise.
3093         * recog.c: Likewise.
3094         * reload1.c: Likewise.
3095         * reload.c: Likewise.
3096         * reorg.c: Likewise.
3097         * resource.c: Likewise.
3098         * sched-rgn.c: Likewise.
3099         * sdbout.c: Likewise.
3100         * stmt.c: Likewise.
3101         * toplev.c: Likewise.
3102         * varasm.c: Likewise.
3103
3104 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
3105
3106         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
3107         * Makefile.in (langhooks.o): Add dependencies.
3108
3109 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
3110
3111         * rs6000.c (rs6000_emit_load_toc_table): Don't
3112         strdup the toc label.
3113         (create_TOC_reference): Likewise.
3114
3115 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3116
3117         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
3118         version default.
3119
3120 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3121
3122         * config/i386/i386.c (ix86_attribute_table): Correct
3123         min_len, max_len fields for dllimport, dllexport and shared.
3124
3125 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
3126
3127         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
3128         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
3129         Consistently use "nonzero" instead of "non-zero".
3130
3131 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3132
3133         * acconfig.h: Fix comment formatting.
3134         * c-dump.h: Likewise.
3135         * c-tree.h: Likewise.
3136         * conditions.h: Likewise.
3137         * expr.h: Likewise.
3138         * function.h: Likewise.
3139         * gthr.h: Likewise.
3140         * hwint.h: Likewise.
3141         * integrate.h: Likewise.
3142         * intl.h: Likewise.
3143         * loop.h: Likewise.
3144         * optabs.h: Likewise.
3145
3146 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3147
3148         * c-common.h: Fix comment formatting.
3149         * c-dump.c: Likewise.
3150         * cfg.c: Likewise.
3151         * diagnostic.h: Likewise.
3152         * except.c: Likewise.
3153         * gcc.h: Likewise.
3154         * gcov-io.h: Likewise.
3155         * genattrtab.c: Likewise.
3156         * output.h: Likewise.
3157         * predict.h: Likewise.
3158         * reload1.c: Likewise.
3159         * reload.h: Likewise.
3160         * resource.h: Likewise.
3161         * scan.h: Likewise.
3162         * system.h: Likewise.
3163         * tree.h: Likewise.
3164         * tree-inline.c: Likewise.
3165         * tsystem.h: Likewise.
3166         * varasm.c: Likewise.
3167         * xcoffout.h: Likewise.
3168
3169 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3170
3171         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
3172
3173 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3174
3175         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
3176         config/i386/i386elf.h, config/i386/netbsd-elf.h,
3177         config/i386/netware.h, config/mcore/gfloat.h,
3178         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
3179         config/netware.h, gccbug.in: Update FSF address.
3180
3181 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3182
3183         * c-common.c: Fix comment typos.
3184         * cfgrtl.c: Likewise.
3185         * collect2.c: Likewise.
3186         * cpplex.c: Likewise.
3187         * doloop.c: Likewise.
3188         * dwarf2out.c: Likewise.
3189         * dwarfout.c: Likewise.
3190         * expr.c: Likewise.
3191         * fold-const.c: Likewise.
3192         * gcc.c: Likewise.
3193         * gcov.c: Likewise.
3194         * gcse.c: Likewise.
3195         * global.c: Likewise.
3196         * ifcvt.c: Likewise.
3197         * loop.c: Likewise.
3198         * optabs.c: Likewise.
3199         * protoize.c: Likewise.
3200         * regclass.c: Likewise.
3201         * reorg.c: Likewise.
3202         * rtl.h: Likewise.
3203         * stmt.c: Likewise.
3204         * tree.h: Likewise.
3205         * doc/cpp.texi: Likewise.
3206         * doc/c-tree.texi: Likewise.
3207         * doc/extend.texi: Likewise.
3208         * doc/invoke.texi: Likewise.
3209         * doc/objc.texi: Likewise.
3210         * doc/tm.texi: Likewise.
3211
3212 2001-10-08  Richard Henderson  <rth@redhat.com>
3213
3214         * varasm.c (set_named_section_flags): Initialize "declared".
3215
3216 2001-10-08  Robert Lipe  <robertlipe@usa.net>
3217
3218         * varasm.c (struct in_named_entry): Add declared.
3219         (named_section_first_declaration): New function.
3220         (default_elf_asm_named_section): Use it.
3221         * output.h (named_section_first_declaration): New.
3222
3223 2001-10-08  Richard Henderson  <rth@redhat.com>
3224
3225         * i386.md (movsi_xor): Export.
3226         (setcc peep2): Use it when available; add an alternative to
3227         match zero_extendhisi2_and.
3228
3229 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3230
3231         * romp-protos.h (romp_initialize_trampoline): New function.
3232         * romp.c (romp_initialize_trampoline): Likewise.
3233         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
3234         romp_initialize_trampoline.
3235
3236 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3237
3238         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
3239         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3240         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3241         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3242
3243 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3244
3245         * unroll.c (loop_iterations): Extend check for multiple back edges.
3246
3247 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
3248
3249         * langhooks.h: New file.
3250         * Makefile.in (OBJS): Added langhooks.o.
3251         (c-lang.o): Depend on langhooks.h.
3252         (c-common.o): Don't depend on tree-inline.h.
3253         (tree-inline.o): Depend on toplev.h.
3254         (langhooks.o): New rule.
3255         * c-common.c: Don't include tree-inline.h.
3256         (c_mark_lang_decl): Mark argument c as unused.
3257         (c_common_lang_init): Don't initialize hooks here.
3258         * c-lang.c: Include langhooks.h, then override some macros.
3259         (lang_hooks): Initialize with macros in langhooks.h.
3260         (c_init): Don't initialize hooks here.
3261         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
3262         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
3263         * tree-inline.c: Include toplev.h.  Don't define hook variables.
3264         * tree-inline.h: Don't define hook types nor declare hook
3265         variables.  Move macros to...
3266         * langhooks.c: ... new file, as functions.  Adjust all callers.
3267
3268 2001-10-08  Jeffrey A Law  <law@cygnus.com>
3269
3270         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
3271         purge_mem_unchanging_flag on all instructions, not just on those
3272         before NOTE_INSN_FUNCTION_BEG.
3273
3274 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3275
3276         * cppmacro.c (_cpp_create_definition): Leave comments off.
3277
3278         * doc/cpp.texi: Update.
3279
3280 2001-10-08  DJ Delorie  <dj@redhat.com>
3281
3282         * c-decl.c (grokfield): Make sure the only unnamed fields
3283         we're allowing are either structs or unions.
3284         * doc/extend.texi: Add documentation for the unnamed field
3285         extension.
3286
3287 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
3288
3289         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
3290         * configure.in: Use it.
3291         * configure: Regenerated.
3292         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
3293         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
3294
3295 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3296
3297         * cppfiles.c (open_file): Don't mark zero-length files
3298         never-reread here.  Don't output diagnostics here either.
3299         (stack_include_file): Mark them never-reread here.
3300         (_cpp_read_file): Update.
3301
3302 2001-10-08  Richard Henderson  <rth@redhat.com>
3303
3304         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
3305
3306 2001-10-08  Richard Henderson  <rth@redhat.com>
3307
3308         * expr.c (store_expr): When converting a CONST_INT for storage
3309         in a SUBREG, convert it to both SUBREG modes before stripping
3310         the SUBREG.
3311
3312 2001-10-08  Richard Henderson  <rth@redhat.com>
3313
3314         * varasm.c (restore_varasm_status): New.
3315         * function.h: Declare it.
3316         * function.c (pop_function_context_from): Call it.
3317
3318 2001-10-08  Richard Henderson  <rth@redhat.com>
3319
3320         * c-common.h (struct c_lang_decl): Add declared_inline.
3321         * c-tree.h (DECL_DECLARED_INLINE_P): New.
3322         * c-lang.c (c_disregard_inline_limits): Use it.
3323         * c-decl.c (duplicate_decls): Likewise.
3324         (pushdecl, redeclaration_error_message): Likewise.
3325         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
3326         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
3327         Set DECL_INLINE if -finline-functions.
3328         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
3329
3330 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3331
3332         * cppmacro.c (funlike_invocation_p): Move some logic to caller
3333         in enter_macro_context.  Create a padding token in its own context
3334         if necessary when the search for '(' fails.
3335         (enter_macro_context): Update.
3336
3337 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3338
3339         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
3340         genmultilib, toplev.c: Fix spelling errors of "separate" as
3341         "seperate", and corresponding spelling errors of related words.
3342
3343 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3344
3345         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
3346         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
3347         Likewise.
3348         * c-dump.c (dump_option_value_info): Likewise.
3349         * c-format.c (format_length_info, format_char_info,
3350         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
3351         * collect2.c (names): Likewise.
3352         * cppdefault.h (default_include): Likewise.
3353         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
3354         * flow.c (life_analysis): Likewise.
3355         * gcc.c (dir_separator_str, modify_target, option_map,
3356         target_option_translations, spec_list_1, extra_specs_1,
3357         init_spec): Likewise.
3358         * gcov.c (gcov_version_string): Likewise.
3359         * genattr.c (write_units): Likewise.
3360         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
3361         * gengenrtl.c (rtx_definition, defs): Likewise.
3362         * genrecog.c (pred_table): Likewise.
3363         * global.c (global_alloc): Likewise.
3364         * lcm.c (optimize_mode_switching): Likewise.
3365         * local-alloc.c (find_free_reg): Likewise.
3366         * params.h (param_info): Likewise.
3367         * predict.c (predictor_info): Likewise.
3368         * protoize.c (unexpansion_struct): Likewise.
3369         * real.c (bmask): Likewise.
3370         * recog.h (insn_operand_data, insn_data): Likewise.
3371         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
3372         * stmt.c (expand_nl_goto_receiver): Likewise.
3373         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
3374         target_switches, target_options): Likewise.
3375         * tradcif.y (token, tokentab2, yylex): Likewise.
3376         * tree.h (attribute_spec): Likewise.
3377
3378         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
3379         Likewise.
3380         * arc.c (arc_output_function_epilogue): Likewise.
3381         * arm.c (processors, all_cores, all_architectures,
3382         arm_override_options, isr_attribute_arg, isr_attribute_args,
3383         arm_isr_value): Likewise.
3384         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
3385         Likewise.
3386         * c4x.c (c4x_int_reglist): Likewise.
3387         * d30v.c (override_options): Likewise.
3388         * h8300.c (shift_insn): Likewise.
3389         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
3390         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
3391         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
3392         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
3393         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
3394         * i386.h (processor_costs, ix86_cost): Likewise.
3395         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
3396         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
3397         * m68k.c (codes_68881, codes_FPA): Likewise.
3398         * m88k.c (mode_from_align, max_from_align, all_from_align,
3399         best_from_align, m_options): Likewise.
3400         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
3401         * mcore.c (mode_from_align): Likewise.
3402         * mips/elf64.h (UNIQUE_SECTION): Likewise.
3403         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
3404         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
3405         * mips.h (mips_regno_to_class): Likewise.
3406         * ns32k.c (scales): Likewise.
3407         * pa.c (import_string, magic_milli): Likewise.
3408         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
3409         * sparc.c (leaf_reg_remap, sparc_override_options,
3410         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
3411         Likewise.
3412         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
3413
3414 2001-10-07  Dale Johannesen  <dalej@apple.com>
3415
3416         * reload1.c (reload_reg_free_p): Teach register interference
3417         checking that multiple output reloads are emitted in
3418         reverse order.
3419         reload1.c (reload_reg_reaches_end_p):  Ditto.
3420         reload1.c (reloads_conflict):  Ditto.
3421
3422 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3423
3424         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
3425         NULL_TREE inside @code.
3426
3427 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3428
3429         * doc/gcc.texi: Document consistent style of "32-bit",
3430         "Objective-C", and "@code{NULL}".
3431
3432 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
3433
3434         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
3435         (cpp_token_len, cpp_spell_token, cpp_output_token,
3436         _cpp_equiv_tokens): Handle it.
3437         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
3438         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
3439         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
3440         error messages.
3441
3442 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3443
3444         * gcc.c (default_compilers): Remove .ada.
3445
3446 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3447
3448         * doc/cppinternals.texi: Update.
3449
3450 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
3451
3452         * gcc.c (main): Set this_file_error if the appropriate
3453         compiler for a language has not been installed.
3454
3455 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
3456
3457         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
3458
3459 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
3460
3461         * gccbug.in (CATEGORIES): Add ada.
3462
3463 2001-10-05  Catherine Moore  <clm@redhat.com>
3464
3465         * config/stormy16/stormy-abi:  Document abi changes.
3466         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
3467         (ICALL_REGS): New register class.
3468         (NUM_ARGUMENT_REGISTERS): Now 6.
3469         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
3470         in registers.
3471         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
3472         * config/stormy16.md (call_internal, call_value_internal,
3473         indirect_jump): Use new 'z' constraint.
3474
3475 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3476
3477         * doc/cppinternals.texi: Update.
3478
3479 2001-10-05  Richard Henderson  <rth@redhat.com>
3480
3481         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
3482         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
3483         the gas section-name-as-label feature.
3484
3485 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3486
3487         * doc/cppinternals.texi: Update.
3488
3489 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3490
3491         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
3492         to ensure valid SImode constants.
3493
3494 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
3495
3496         * Makefile.in (c-decl.o): Depend on tree-inline.h.
3497         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
3498         * c-decl.c: Include tree-inline.h.
3499         (c_expand_body): Call optimize_inline_calls. Determine whether
3500         a function is inlinable upfront, and only clear
3501         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
3502         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
3503         (c_disregard_inline_limits): New function.
3504         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
3505         (c_post_options): Enable tree inlining if inlining is enabled.
3506         Don't inline trees when instrumenting functions.
3507         (c_init): Initialize lang_disregard_inline_limits and
3508         lang_cannot_inline_tree_fn.
3509         * tree-inline.c (initialize_inlined_parameters): Handle calls
3510         with fewer arguments than declared parameters, and fewer
3511         parameters than passed arguments.  Don't assume value is a
3512         DECL.
3513         (declare_return_variable): Convert return value back to the
3514         original type, if it was promoted.
3515         (tree_inlinable_function_p): New function.
3516         (inlinable_function_p): Don't look at DECL_INLINE if we're
3517         inlining all functions.  Make it work with a NULL id.
3518         Re-check DECL_UNINLINABLE after language-specific checks.
3519         * tree-inline.h (tree_inlinable_function_p): Declare it.
3520         * integrate.c (save_for_inline): Don't bother to prepare argvec
3521         when not inlining.
3522         * cse.c (check_for_label_ref): Don't check deleted labels.
3523
3524         * Makefile.in (tree-inline.o): Depend on newly-included headers.
3525         * tree-inline.c: Include headers needed for the functions moved in.
3526         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
3527         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
3528         (copy_body, initialize_inlined_parameters): Likewise.
3529         (declare_return_variable, inlinable_function_p): Likewise.
3530         (expand_call_inline, expand_calls_inline): Likewise.
3531         (optimize_inline_calls, clone_body): Likewise.
3532         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
3533         (copy_tree_r, remap_save_expr): Likewise.
3534
3535 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
3536
3537         * Makefile.in (OBJS): Added tree-inline.o.
3538         (c-common.o): Depend on tree-inline.h.
3539         (tree-inline.o): New target.
3540         * c-common.c: Include tree-inline.h.
3541         (c_mark_lang_decl): Don't mark saved_tree.
3542         (c_common_lang_init): Set lang_anon_aggr_type_p.
3543         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
3544         (struct c_lang_decl): Moved saved_tree to tree_decl.
3545         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
3546         * integrate.h (function_attribute_inlinable_p): Declare it.
3547         * integrate.c (function_attribute_inlinable_p): Export it.
3548         * tree-inline.c: New file.  Define variables declared in...
3549         * tree-inline.h: New file.  Declare functions to be moved to
3550         tree-inline.c.  Define macros and declare types and hooks for
3551         language-specific tree inlining.
3552         (flag_inline_trees): Moved definition from cp/decl2.c.
3553         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
3554         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
3555         (struct tree_decl): Moved saved_tree from c_lang_decl and
3556         inlined_fns from C++'s lang_decl.
3557
3558 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
3559
3560         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
3561         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
3562
3563 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3564
3565         * doc/cppinternals.texi: Update.
3566
3567 2001-10-04  Eric Christopher  <echristo@redhat.com>
3568
3569         * config/mips/mips.c (init_cumulative_args): Remember to set
3570         cum->prototype.
3571         * config.gcc: Redo linux configuration. Add target_cpu_default
3572         of soft-float to all mipsisa32 combinations and tx39.
3573         * config/mips/linux.h: Remove include of mips.h.
3574
3575 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
3576
3577         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
3578         HOST_LDFLAGS and HOST_CPPFLAGS.
3579
3580 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
3581
3582         * c-parse.in (objc_inherit_code, objc_pq_context,
3583         objc_public_flag): Make static.
3584         (objc_interface_context, objc_implementation_context,
3585         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
3586         global tree array in objc/objc-act.[ch].
3587         (methoddef): Remove unnecessary code.
3588
3589         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
3590         Hoist struct definitions to objc-act.h.
3591         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
3592         cat_count): Place declaration in objc-act.h.
3593         (objc_tree_index): Move enumeration to objc-act.h.
3594         (objc_global_trees): Place declaration and macro accessors in
3595         objc-act.h.
3596         (implementation_context): Remove duplicate; use
3597         objc_implementation_context instead:
3598         (method_context): Remove duplicate; use objc_method_context
3599         instead.
3600         (objc_ellipsis_node, objc_method_prototype_template,
3601         implemented_classes, function_type): Move global vars to
3602         objc_global_trees.
3603         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
3604         (build_message_expr): Move actual construction of ObjC message
3605         send nodes to finish_message_expr.
3606         (finish_message_expr): New routine, contains code formerly in
3607         build_message_expr.
3608         * objc/objc-act.h (finish_message_expr): New prototype.
3609         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
3610         declarations; these vars are now part of objc_global_trees.
3611         (objc_tree_index, objc_global_trees): Move definitions from
3612         objc-act.c.
3613         * objc/objc-tree.def: Update copyright info.
3614
3615 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
3616
3617         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
3618         op is NULL.
3619         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
3620         only if TARGET_ARCH64.
3621
3622 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
3623
3624         * doc/extend.texi: Fix some problems with previous checkin.
3625         * doc/invoke.texi: Likewise.
3626
3627 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3628
3629         * cpphash.h: Update comments.
3630         (cpp_context): Update.
3631         (spec_nodes): Remove n__Pragma.
3632         * cppinit.c (cpp_create_reader): Update.
3633         (builtin_array): Add _Pragma.
3634         * cpplib.h: Update comments.
3635         (NODE_DISABLED, BT_PRAGMA): New.
3636         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
3637         * cppmacro.c (struct cpp_macro): Remove disabled.
3638         (builtin_macro): Return int, handle _Pragma, push the new token
3639         on the context stack.
3640         (funlike_invocation_p): Unconstify, update.
3641         (enter_macro_context): Handle builtins here.
3642         (replace_args, push_token_context, push_ptoken_context):
3643         Update for prototype changes.
3644         (_cpp_pop_context): Update.
3645         (cpp_get_token): Don't handle buitins, nor _Pragma here.
3646         (cpp_sys_macro_p): Update.
3647         (_cpp_free_definition): Clear disabled flag.
3648         (_cpp_create_definition): Upate.
3649         * cppmain.c: Update comments.
3650
3651 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
3652                                 Andreas Jaeger <aj@suse.de>,
3653                                 Jan Hubicka    <jh@suse.cz>
3654
3655         * doc/invoke.texi (i386 Options): Document x86-64 options.
3656         (i386 and x86-64 Options): Rename i386 options section.
3657
3658         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
3659         (TARGET_SWITCHES): Add -munwind-info.
3660         (MASK_NO_UNWIND_INFO): New.
3661         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
3662         biarch compilation.
3663         (ASM_OUTPUT_DOUBLE_INT): New.
3664
3665         * config/i386/linux64.h: New spec file for Linux x86-64 support.
3666         * config.gcc: Fix tm_file settings for x86-64.
3667         * config/i386/x86-64.h: New file with OS independent x86-64
3668         definitions.
3669         * config/i386/biarch64.h: New file used to configure compiler
3670         to biarch/64bit compilation.
3671
3672         * config/i386/i386.c: (override_options): Set flags default
3673         for 64bit compilation.
3674
3675 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
3676
3677         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
3678         (ix86_expand_int_movcc): Optimize DImode conditional moves with
3679         constants on x86_64.
3680         (ix86_attr_length_immediate_default): Support MODE_DI.
3681         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
3682         condition.
3683         (indirect_jump, tablejump): Turn into expander.
3684
3685 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3686
3687         * c-common.c (c_format_attribute_table): Make format and
3688         format_arg attributes apply to function types rather than to
3689         decls.
3690         (is_valid_printf_arglist): Construct an attribute list and pass
3691         that to check_function_format rather than a name.
3692         * c-common.h (check_function_format): Adjust prototype.
3693         * c-decl.c (duplicate_decls): Preserve attributes from type of
3694         built-in decl when allowing for harmless conflict in types.
3695         * c-format.c (record_function_format,
3696         record_international_format, function_format_list,
3697         international_format_info, international_format_list): Remove.
3698         (function_format_info): Remove next, name and assembler_name.
3699         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
3700         (decode_format_attr): New.
3701         (handle_format_attribute): Handle receiving a type rather than a
3702         decl.  Call decode_format_attr.  Store format information in a
3703         function_format_info.
3704         (handle_format_arg_attribute): Correct comment.  Handle receiving
3705         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
3706         arg_num.
3707         (check_format_info_recurse, check_format_info_main): Take argument
3708         numbers as unsigned HOST_WIDE_INT.
3709         (check_function_format): Take a list of attributes from the
3710         function type rather than a name or assembler name.  Check for
3711         format attributes in that list and the attributes on the type of
3712         the current function rather than looking through
3713         function_format_list.
3714         (check_format_info): Use unsigned HOST_WIDE_INT for argument
3715         numbers.
3716         (check_format_info_recurse): Take format_arg attributes from the
3717         type of the function calls rather than using
3718         international_format_list.  Allow for multiple format_arg
3719         attributes.
3720         * c-typeck.c (build_function_call): Pass type attributes to
3721         check_function_format rather than name or assembler name.  Don't
3722         require there to be a name or assembler name to check formats.
3723
3724 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3725
3726         * attribs.c (decl_attributes): Possibly call
3727         insert_default_attributes to insert default attributes on
3728         functions in a lazy manner.
3729         * builtin-attrs.def: New file; define the default format and
3730         format_arg attributes.
3731         * c-common.c (c_format_attribute_table): Move to earlier in the
3732         file.
3733         (c_common_nodes_and_builtins): Initialize format_attribute_table.
3734         (enum built_in_attribute, built_in_attributes,
3735         c_attrs_initialized, c_init_attributes,
3736         c_common_insert_default_attributes): New.
3737         (c_common_lang_init): Don't initialize format_attribute_table.  Do
3738         call c_init_attributes.
3739         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
3740         * c-common.h (init_function_format_info): Don't declare.
3741         (c_common_insert_default_attributes): Declare.
3742         * c-decl.c (implicitly_declare, builtin_function): Call
3743         decl_attributes.
3744         (init_decl_processing): Don't call init_function_format_info.
3745         (insert_default_attributes): New.
3746         * c-format.c (handle_format_attribute,
3747         handle_format_arg_attribute): Be quiet about inappropriate
3748         declaration when applying default attributes.
3749         (init_function_format_info): Remove.
3750         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
3751         (insert_default_attributes): Declare.
3752
3753 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3754
3755         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
3756
3757 2001-10-01  Jim Wilson  <wilson@redhat.com>
3758
3759         * sched-deps.c (add_dependence): When elide conditional dependence,
3760         check that insn doesn't modify cond2.
3761
3762 2001-10-01  Dale Johannesen  <dalej@apple.com>
3763
3764         * config/rs6000/rs6000.h (enum processor_type): Add support
3765         for 7400 (G4) and 7450.
3766         (RTX_COSTS): Ditto.
3767         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
3768         (rs6000_issue_rate): Ditto.
3769         (rs6000_adjust_cost): Fix cycle counts for compares.
3770         (debug_stack_info):  Fix an obvious typo.
3771         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
3772         * doc/invoke.texi: Document.
3773         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
3774         for Darwin.
3775         (PROCESSOR_DEFAULT): Ditto.
3776
3777 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
3778
3779         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
3780         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
3781         later recursive make invocation.
3782
3783 2001-10-01  Hans Boehm  <boehm@acm.org>
3784
3785         * optabs.c (emit_libcall_block): When using non-call exceptions,
3786         don't add REG_LIBCALL reg notes to trapping calls.
3787
3788 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
3789
3790         * flow.c (propagate_block_delete_libcall): Remove unused first arg
3791         (propagate_one_insn):  Update for above change
3792
3793 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
3794
3795         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
3796         _Unwind_GetTextRelBase): Argument is unused.
3797
3798 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3799
3800         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
3801         Loop through NOPs, placeholders, and components.
3802         Don't go through NOPs if change mode.
3803         (record_alias_subset): Do nothing if SUBSET and SET are the same.
3804         * emit-rtl.c (set_mem_alias_set): Enable check.
3805         * expr.c (find_placeholder): New function.
3806         (expand_expr, case PLACEHOLDER_EXPR): Use it.
3807         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
3808         to modify it and avoid unneeded copies.
3809         * expr.h (expand_expr): Always define.
3810         (find_placeholder): New declaration.
3811
3812 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3813
3814         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
3815         operand 2 is the stack pointer.
3816         ("addr-peephole"): Fix address computation peephole when operand 2
3817         is the stack pointer.
3818
3819 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3820
3821         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
3822         (ix86_setup_incoming_varargs): Likewise.
3823
3824 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
3825
3826         * stor-layout.c (layout_type): Don't complain about too-large
3827         array here.
3828
3829 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3830
3831         * function.c (keep_stack_depressed): Don't use delete_insn.
3832
3833         * expr.h (set_mem_alias_set): Move decl to here.
3834         * rtl.h (mem_attrs): New typedef and struct.
3835         (union rtunion_def): Add field for mem_attrs.
3836         (X0MEMATTR, MEM_ATTRS): New macros.
3837         (MEM_ALIAS_SET): Use MEM_ATTRS.
3838         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
3839         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
3840         (set_mem_alias_set): Delete decl from here.
3841
3842         * alias.c (set_mem_alias_set): Delete from here.
3843         * emit-rtl.c (mem_attrs_htab): New variable.
3844         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
3845         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
3846         (mem_attrs_mark, get_mem_attrs): Likewise.
3847         (gen_rtx_MEM): Clear MEM_ATTRS.
3848         (set_mem_attributes): Move to here.
3849         (set_mem_alias_set): Likewise, and call get_mem_attrs.
3850         (init_emit_once): const_int_htab now deletable htab.
3851         Initialize mem_attrs_htab.
3852         * explow.c (set_mem_attributes): Delete from here.
3853         * function.c (put_var_into_stack): Clear MEM_ATTRS.
3854         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
3855         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
3856         * reload1.c (reload): Rework changing REG to MEM.
3857
3858 2001-09-30  H.J. Lu <hjl@gnu.org>
3859
3860         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
3861         * config.in: Rebuild.
3862
3863 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3864
3865         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
3866         ("tsthi_1"): Avoid allocation in register y.
3867         ("*movqi_68hc12"): Reorganize and fix constraints.
3868         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
3869         ("addqi3"): Likewise.
3870         ("addhi3"): Fix constraints.
3871         ("*logicalhi3_zexthi"): Disparage soft registers.
3872
3873 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3874
3875         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
3876         to tmp reg.
3877
3878 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3879
3880         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
3881         that we use setjmp/longjmp exceptions.
3882
3883 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
3884
3885         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
3886         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
3887         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
3888         _cpp_pool_alloc, _cpp_next_chunk): Remove.
3889         (_cpp_extend_buff, BUFF_ROOM): Update.
3890         (_cpp_append_extend_buff): New.
3891         (struct cpp_reader): Remove macro_pool, add a_buff.
3892         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
3893         macro_pool.
3894         (cpp_destroy): Free a_buff instead of macro_pool.
3895         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
3896         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
3897         _cpp_pool_alloc, ): Remove.
3898         (parse_number, parse_string): Update use of _cpp_extend_buff.
3899         (_cpp_extend_buff): Update.
3900         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
3901         * cpplib.c (glue_header_name, parse_answer):
3902         Update use of _cpp_extend_buff.
3903         (cpp_register_pragma, cpp_register_pragma_space): Use
3904         _cpp_aligned_alloc.
3905         (do_assert, do_unassert): Check for EOL, update.
3906         * cppmacro.c (stringify_arg, collect_args): Update to use
3907         _cpp_extend_buff and _cpp_append_extend_buff.
3908         (save_parameter, parse_params, alloc_expansion_token,
3909         _cpp_create_definition): Rework memory management.
3910
3911 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
3912
3913         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
3914         update md_exec_prefix.
3915         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
3916         to string constant.
3917
3918 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
3919
3920         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
3921         (SELECT_CC_MODE): Use s390_select_ccmode.
3922         * config/s390/s390-protos.h (s390_select_ccmode): Add.
3923         * config/s390/s390.c (s390_select_ccmode): New.
3924         (s390_match_ccmode): Add CCLmode.
3925         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
3926         (output_branch_condition, output_inverse_branch_condition): Removed.
3927         (print_operand): Use s390_branch_condition_mnemonic.
3928         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
3929         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
3930         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
3931
3932         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
3933         when converting conditional branches to far branches.
3934         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
3935         cmpint_di): Use CCSmode instead of CCUmode.
3936
3937         * config/s390/s390.c (legitimate_la_operand_p): New.
3938         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
3939         * config/s390/s390.md (movsi): Convert load address patterns to
3940         arithmetic operations when necessary.
3941         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
3942         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
3943         (*do_la_reg_0): Don't use before reload.
3944
3945         * config/s390/s390.c (legitimize_address): Make more efficient
3946         use of two-register addressing mode.
3947
3948         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
3949         with -mno-backchain in some corner cases.
3950
3951         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
3952
3953 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
3954
3955         * reload.c (find_reloads): Mark new USE insns with QImode.
3956         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
3957         find_reloads_subreg_address): Likewise.
3958         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
3959         encountered.
3960         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
3961         CLOBBERs.
3962         (reload): Make sure there are no USEs with mode other than
3963         VOIDmode.  At the end, remove those marked with QImode.
3964
3965 2001-09-29  Per Bothner  <per@bothner.com>
3966
3967         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
3968         * Makefile.in (includedir):  Rename to local_includedir.
3969         (includedir):  Define as $(prefix)/include.
3970         * config.in (PREFIX_INCLUDE_DIR):  New variable.
3971         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
3972
3973 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
3974
3975         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
3976         storehps builtins.
3977         * doc/extend.texi (Vector Extensions): New node.
3978         * doc/invoke.texi (Machine Dependent Options): Add documentation for
3979         i386 -mmmx, -msse, -m3dnow.
3980
3981 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
3982
3983         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
3984
3985 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
3986
3987         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
3988
3989         * doc/invoke.texi (Optimize Options): Delete spurious @table.
3990
3991 2001-09-28  Richard Henderson  <rth@redhat.com>
3992
3993         * varasm.c (assemble_integer): Bound alignment check by
3994         BIGGEST_ALIGNMENT.
3995
3996         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
3997
3998 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3999
4000         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
4001
4002 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
4003
4004         Mostly from Graham Stott  <grahams@redhat.com>
4005         * c-common.c (type_for_mode): Add support for V2SFmode.
4006         * tree.c (build_common_tree_nodes_2): Likewise.
4007         * tree.h (enum tree_index, global_trees): Likewise.
4008         * config/i386/i386.c (x86_3dnow_a): New variable.
4009         (override_options): Support 3Dnow extensions.
4010         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
4011         Athlon's version of 3Dnow.
4012         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
4013         (ix86_expand_builtin): Handle them.
4014         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
4015         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
4016         TARGET_3DNOW_A): New macros.
4017         (TARGET_SWITCHES): Add 3Dnow switches.
4018         (VALID_MMX_REG_MODE_3DNOW): New macro.
4019         (VECTOR_MODE_SUPPORTED_P): Use it.
4020         (enum ix86_builtins): Add entries for 3Dnow builtins.
4021         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
4022         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
4023         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
4024         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
4025         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
4026         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
4027         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
4028         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
4029         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
4030         sfence_insn, prefetch): Make these available if TARGET_SSE or
4031         TARGET_3DNOW_A.
4032
4033 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
4034
4035         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
4036         ix86_va_start, ix86_build_va_list): Declare.
4037         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
4038         ix86_va_start, ix86_build_va_list): New global functions.
4039         * i386.md (sse_prologue_save_insn): New insn.
4040         (sse_prologue_save): New expander.
4041         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
4042         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
4043
4044 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4045
4046         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
4047         Use size_t everywhere, make definitions consistent with
4048         prototypes.
4049
4050 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
4051
4052         * gcse.c (replace_store_insn): Use delete_insn.
4053         * loop.c (move_movables): Likewise; avoid delete_insn
4054         from clobbering notes moved elsewhere.
4055         (check_dbra_loop): Use delete_insn.
4056         * ssa.c (convert_from_ssa): Likewise.
4057         * cse.c (cse_insn): Use delete_insn.
4058
4059 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4060
4061         * cpphash.h (struct cpp_buff): Make unsigned.
4062         (_cpp_get_buff): Take length of size_t.
4063         (_cpp_unaligned_alloc): New.
4064         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
4065         (struct cpp_reader): Remove ident_pool.  Add u_buff.
4066         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
4067         (cpp_destroy): Destroy u_buff, not ident_pool.
4068         * cpplex.c (parse_number, parse_string, save_comment,
4069         cpp_token_as_text): Update to use the unaligned buffer.
4070         (new_buff): Make unsigned.
4071         (_cpp_unaligned_alloc): New.
4072         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
4073         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
4074         Similarly.
4075         (collect_args): Make unsigned.
4076
4077 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
4078
4079         * cpplex.c (cpp_output_token): Use a putc loop for
4080         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
4081
4082         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
4083         * configure, config.in: Regenerate.
4084         * system.h: Replace fwrite and fprintf with their unlocked
4085         variants if available.
4086
4087 2001-09-27  Richard Henderson  <rth@redhat.com>
4088
4089         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
4090         in favour of .eh_frame.
4091
4092 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
4093
4094         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
4095         to macros.
4096         (LIBCALL_VALUE): Likewise.
4097
4098 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4099
4100         * cpphash.h: Update comment.
4101         * cpplex.c: Update comments.
4102         (_cpp_can_paste): Remove.
4103         * cpplib.h (_cpp_can_paste): Remove.
4104         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
4105         lexer rather than _cpp_can_paste.
4106
4107 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4108
4109         * doc/cppinternals.texi: Update.
4110
4111 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4112
4113         * cpphash.h (struct cpp_pool): Remove locks and locked.
4114         (struct cpp_context): Add member buff.
4115         (struct cpp_reader): Remove member argument_pool.
4116         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
4117         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
4118         * cpplex.c (chunk_suitable): Remove pool argument.
4119         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
4120         (new_buff, _cpp_extend_buff): Update.
4121         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
4122         which buffer is returned.
4123         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
4124         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
4125         * cppmacro.c (lock_pools, unlock_pools): Remove.
4126         (push_ptoken_context): Take a _cpp_buff.
4127         (enter_macro_context): Pool locking removed.
4128         (replace_args): Use a _cpp_buff for the replacement list with
4129         arguments replaced.
4130         (push_token_context): Clear buff.
4131         (expand_arg): Use _cpp_pop_context.
4132         (_cpp_pop_context): Free a context's buffer, if any.
4133
4134 2001-09-26  DJ Delorie  <dj@redhat.com>
4135
4136         * c-typeck.c (digest_init): Check for sizeless arrays.
4137
4138 2001-09-26  Richard Henderson  <rth@redhat.com>
4139
4140         * optabs.c (init_one_libfunc): Create a dummy function type
4141         instead of using error_mark_node.
4142
4143 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4144
4145         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
4146         _cpp_extend_buff, _cpp_free_buff): New.
4147         (struct cpp_reader): New member free_buffs.
4148         * cppinit.c (cpp_destroy): Free buffers.
4149         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
4150         _cpp_extend_buff, _cpp_free_buff): New.
4151         * cpplib.h (struct cpp_options): Remove unused member.
4152         * cppmacro.c (collect_args): New.  Combines the old parse_arg
4153         and parse_args.  Use _cpp_buff for memory allocation.
4154         (funlike_invocation_p, replace_args): Update.
4155
4156 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
4157
4158         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
4159
4160 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
4161
4162         * except.c (sjlj_mark_call_sites): Change address inside sequence.
4163
4164 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
4165
4166         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
4167         glibc.
4168
4169 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
4170             Jim Wilson  <wilson@redhat.com>
4171
4172         * doc/install.texi (Specific, ia64-*-linux): Document.
4173
4174 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
4175
4176         * Makefile.in (cfgrtl.o): Add.
4177         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
4178         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
4179         free_aux_for_edge): Declare.
4180         * cfg.c
4181         (HAVE_return): Undefine.
4182         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
4183         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
4184         free_aux_for_edge): New global functions.
4185         (first_delete_block): New static variable.
4186         (init_flow): Clear first_delete_block.
4187         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
4188          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
4189          try_redirect_by_replacing_jump, last_loop_beg_note,
4190          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
4191          delete_insn, delete_insn_chain, create_basic_block_structure,
4192          create_basic_block, flow_delete_block, compute_bb_for_insn,
4193          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
4194          set_block_for_new_insns, split_block, merge_blocks_nomove,
4195          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
4196          redirect_edge_and_branch, force_nonfallthru_and_redirect,
4197          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
4198          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
4199          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
4200          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4201          purge_all_dead_edges): Move to ....
4202         * cfgrtl.c: New file; .... Here.
4203
4204         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
4205         (reroder_basic_block): Use alloc_aux_for_blocks.
4206         * predict.c (estimate_bb_frequencies): Likewise; use
4207         alloc_aux_for_edges.
4208         * profile.c (compute_branch_probabilities): Likewise.
4209         (branch_prob): Likewise.
4210         * reg-stack.c (reg_to_stack): Likewise.
4211
4212         * emit-rtl.c (emit_insns_after): Never return NULL.
4213
4214         * basic-block.h (set_block_for_new_insns): Delete.
4215         * cfgrtl.c (set_block_for_new_insns): Delete.
4216
4217         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
4218         calls when crossjumping.
4219
4220         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
4221         * unroll.c (copy_loop_body): Use delete_insn.
4222
4223         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
4224         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
4225         keep_stack_depressed): Likewise.
4226         * gcse.c (cprop_cc0_jump): Likewise.
4227         * local-alloc.c (update_equiv_regs): Likewise.
4228         * loop.c (scan_loop, loop_delete_insns): Likewise.
4229         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
4230         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
4231         delete_output_reload, delete_address_reloads_1,
4232         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
4233         Likewise.
4234         * sibcall.c (replace_call_placeholder): Likewise.
4235         * cse.c (cse_insn): Likewise.
4236
4237 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
4238
4239         From Graham Stott  <grahams@redhat.com>
4240         (def_builtin): Only define builtins appropriate for target_flags.  All
4241         callers changed.
4242         (builtin_decsription): Add new field mask which is used to determine
4243         when to define the builtin via the macro def_builtin.
4244
4245         (bdesc_comi): Initialise new mask fields.
4246         (bdesc_2srg): Likewise.
4247         (bdesc_1arg): Likewise.
4248
4249         * config/i386/i386.c (ix86_init_builtins): Correct return type
4250         building v4hi_ftype_v4hi_int_int tree node.
4251         (ix86_expand_sse_comi): Fix typo swapping operands.
4252         Don't swap comparision condition, it is already swapped.
4253         (ix86_expand_sse_compare): Before swapping operands
4254         move operand 1 into new rtx and not the target rtx.
4255         Don't swap comparison condition, it is already swapped.
4256         Always check whether we need to create a new TARGET.
4257
4258         * config/i386/i386.md: (sse_comi) Fix typos.
4259         (sse_ucomi): Likewise.
4260         (cvtss2si): Fix operand 0 contraint.
4261         (cvttss2si): Likewise.
4262         (sse_unpckhps): Fix mode for operand 2.
4263         (sse_unpcklps): Likewise.
4264
4265 2001-09-25  Graham Stott  <grahams@redhat.com>
4266
4267         * sibcall.c (skip_copy_to_return_value): Tighten return value
4268         copy check.
4269
4270 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
4271
4272         * rs6000.c (lwa_operand): Address must be word aligned.
4273
4274 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4275
4276         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
4277         number has been set.
4278         (type_hash_mark): Mark type itself.
4279
4280 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4281
4282         * c-lex.c (cb_def_pragma): Update.
4283         (c_lex): Update, and skip padding.
4284         * cppexp.c (lex, parse_defined): Update, remove unused variable.
4285         * cpphash.h (struct toklist): Delete.
4286         (union utoken): New.
4287         (struct cpp_context): Update.
4288         (struct cpp_reader): New members eof, avoid_paste.
4289         (_cpp_temp_token): New.
4290         * cppinit.c (cpp_create_reader): Update.
4291         * cpplex.c (_cpp_temp_token): New.
4292         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
4293         (cpp_output_token): Don't print leading whitespace.
4294         (cpp_output_line): Update.
4295         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
4296         do_include_common, do_line, do_ident, do_pragma,
4297         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
4298         parse_assertion): Update.
4299         (get_token_no_padding): New.
4300         * cpplib.h (CPP_PADDING): New.
4301         (AVOID_LPASTE): Delete.
4302         (struct cpp_token): New union member source.
4303         (cpp_get_token): Update.
4304         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
4305         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
4306         replace_args, quote_string, stringify_arg, parse_arg, next_context,
4307         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
4308         _cpp_backup_tokens, _cpp_create_definition): Update.
4309         (push_arg_context): Delete.
4310         (padding_token, push_token_context, push_ptoken_context): New.
4311         (make_string_token, make_number_token): Update, rename.
4312         (cpp_get_token): Update to handle tokens as pointers to const,
4313         and insert padding appropriately.
4314         * cppmain.c (struct printer): New member prev.
4315         (check_multiline_token): Constify.
4316         (do_preprocessing, cb_line_change): Update.
4317         (scan_translation_unit): Update to handle spacing.
4318         * scan-decls.c (get_a_token): New.
4319         (skip_to_closing_brace, scan_decls): Update.
4320         * fix-header.c (read_scan_file): Update.
4321
4322         * doc/cpp.texi: Update.
4323
4324 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4325
4326         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
4327         leak by passing malloc'ed pointer to reconcat, not concat.
4328
4329 2001-09-24  DJ Delorie  <dj@redhat.com>
4330
4331         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
4332
4333 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
4334
4335         * flow.c (delete_dead_jumptables): Delete jumptable if the only
4336         reference is from the literal pool.
4337
4338 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
4339
4340         * doc/install.texi (Final install): Request additional information
4341         in mail about successful builds.
4342
4343 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4344
4345         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
4346         initial value of return pointer register instead of value in frame-20.
4347         Revise comments.
4348
4349 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4350
4351         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
4352         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
4353         the libcall if there isn't a referenced identifier for the symbol.
4354
4355 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4356
4357         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
4358         non 64-bit machines.  Use these as a plabel for the trampoline.
4359         (TRAMPOLINE_SIZE): Adjust size for new words.
4360         (INITIALIZE_TRAMPOLINE): Initialize new words.
4361         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
4362         pointer to the plabel in the trampoline.
4363
4364 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4365
4366         * pa.c (function_arg): Pass floating arguments in both general and
4367         floating registers in indirect (dynamic) calls when generating code
4368         for the 32 bit ABI and the HP assembler.
4369
4370 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4371
4372         * doc/install.texi: Markup fixes.
4373         Use Solaris 2, SunOS 4 as appropriate.
4374         (Specific, *-*-solaris2*): Explain this.
4375         Unconditionally warn against /usr/ucb tools.
4376         Remove Sun as warning, obsolete.
4377         Move X11 header bug workaround here, update patches.
4378         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
4379         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
4380
4381 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
4382
4383         * errors.h (warning, error, fatal, internal_error): Don't mark
4384         with ATTRIBUTE_PRINTF_n.
4385         * toplev.h (internal_error, fatal_io_error, warning, error,
4386         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
4387         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
4388         Likewise.
4389
4390 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4391
4392         * function.c (pop_function_context_from): var_refs_queue
4393         and temp slots now in GC memory.
4394         (mark_function_status, free_after_compilation): Likewise;
4395         also struct function now in GC memory.
4396         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
4397         (combine_temp_slots): Likewise.
4398         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
4399         (prepare_function_start): Use GC memory for struct function.
4400         (mark_temp_slot): Deleted.
4401         (gcc_mark_struct_function): struct function now in GC memory.
4402
4403         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
4404         code for division, not modulus.
4405
4406         * rtl.def (MEM): Remove obsolete part of comment.
4407
4408 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
4409
4410         * c-format.c (init_function_format_info): Check __builtin_printf
4411         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
4412         in gnu89 mode.
4413
4414 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4415
4416         * c-common.c (format_attribute_table): Remove decl.
4417         * tree.h (format_attribute_table, lang_attribute_table): New decls.
4418         (lang_attribute_common): Likewise.
4419
4420         * function.c (fix_lexical_address): Use set_mem_alias_set.
4421         (expand_function_start): Likewise.
4422         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
4423
4424         * varasm.c (output_constant): Fix unused variable warning.
4425
4426         * attribs.c: New file, from c-common.c.
4427         (attribute_tables): Now four elements.
4428         (format_attribute_table, lang_attribute_common): New variables.
4429         (init_attributes): Reflect above changes.
4430         (handle_mode_attribute): Delete check for wider than uintmax.
4431         * c-common.c: Delete parts moved to attribs.c.
4432         (enum attrs): Deleted; unused.
4433         (c_format_attribute_table): New variable.
4434         (c_common_lang_init): Initialize format_attribute_table with it.
4435         * c-common.h (decl_attributes): Remove decl.
4436         * tree.h (decl_attribute): Move it to here.
4437         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
4438         (attribs.o): New rule.
4439
4440 2001-09-22  Andreas Jaeger  <aj@suse.de>
4441
4442         * builtins.c (c_getstr): Remove unused variable.
4443
4444 2001-09-21  Richard Henderson  <rth@redhat.com>
4445
4446         * reload1.c (reload): Use delete_insn instead of splatting
4447         NOTE_INSN_DELETED.
4448
4449 2001-09-21  Richard Henderson  <rth@redhat.com>
4450
4451         * reload.c (push_secondary_reload): Don't check for "=" in output
4452         constraint after ""->ALL_REGS check.
4453
4454 2001-09-21  Richard Henderson  <rth@redhat.com>
4455
4456         * predict.c (expected_value_to_br_prob): Use pc_set.
4457
4458         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
4459         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
4460
4461 2001-09-21  Richard Henderson  <rth@redhat.com>
4462
4463         * rtl.h (LCT_RETURNS_TWICE): New.
4464         * calls.c (emit_call_1): Set current_function_calls_setjmp for
4465         ECF_RETURNS_TWICE.
4466         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
4467         to ECF_RETURNS_TWICE.
4468         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
4469         call to setjmp.
4470
4471         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
4472
4473         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
4474         (JMP_BUF_SIZE): New.
4475
4476 2001-09-21  Richard Henderson  <rth@redhat.com>
4477
4478         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
4479         to R8_REGS.
4480
4481 2001-09-21  Richard Henderson  <rth@redhat.com>
4482
4483         * tree.def (FDESC_EXPR): New.
4484         * expr.c (expand_expr): Handle it.
4485         * varasm.c (initializer_constant_valid_p): Likewise.
4486         (output_constant): Likewise.
4487         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
4488         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
4489         (ASM_OUTPUT_FDESC): New.
4490         * doc/tm.texi: Document the new macros.
4491
4492 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
4493
4494         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
4495         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
4496         once merging is complete.
4497
4498 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4499
4500         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
4501
4502 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
4503
4504         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
4505         that would be invalid after a merge.
4506
4507 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
4508
4509         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
4510         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
4511         remove some labels.
4512         (flow_delete_insn): This one.
4513         (delete_insn_chain): Rename from ...; do not care labels.
4514         (flow_delete_insn_chain): ... this one.
4515         (flow_delete_block): Remove the insns one BB has been expunged.
4516         (merge_blocks_nomove): Likewise.
4517         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
4518         updating BB boundaries.
4519         (tidy_fallthru_edge): Likewise.
4520         (commit_one_edge_insertion): Likewise.
4521         * cfgbuild.c (find_basic_block): Likewise.
4522         (find_basic_blocks_1): Likewise.
4523         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
4524         (try_crossjump_to_edge): Likewise.
4525         (try_optimize_cfg): Likewise.
4526         * cse.c (delete_trivially_dead_insns): Likewise.
4527         * df.c (df_insn_delete): Likewise.
4528         * doloop.c (doloop_modify): Use delete_related_insns.
4529         * emit-rtl.c (try_split): Likewise.
4530         (remove_insn): Update BB boundaries.
4531         * expect.c (connect_post_landing_pads): Use delete_related_insns.
4532         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
4533         updating BB boundaries.
4534         (propagate_block_delete_insn): Likewise.
4535         (propagate_block_delete_libcall): Likewise.
4536         * function.c (delete_handlers): Use delete_related_insns.
4537         (thread_prologue_and_epilogue_insns): Likewise.
4538         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
4539         * genpeep.c (gen_peephole): Use delete_related_insns.
4540         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
4541         BB boundaries.
4542         (find_cond_trap): Likewise.
4543         * integrate.c (save_for_inline): Use delete_related_insns.
4544         (copy_insn_list): Likewise.
4545         * jump.c (pruge_linie_number_notes): Likewise.
4546         (duplicate_loop_exit_test): Likewise.
4547         (delete_computation): Likewise.
4548         (delete_related_insn): Rename from ...; use delete_insn
4549         (delete_insn): ... this one.
4550         (redirect_jump): Use delete_related_insns.
4551         * loop.c (scan_loop): Likewise.
4552         (move_movables): Likewise.
4553         (find_and_verify_loops): Likewise.
4554         (check_dbra_loop): Likewise.
4555         * recog.c (peephole2_optimize): Likewise.
4556         * reg-stack.c (delete_insn_for_stacker): Remove.
4557         (move_for_stack_reg): Use delete_insn.
4558         * regmove.c (combine_stack_adjustments_for_block): Likewise.
4559         * reload1.c (delete_address_reloads): Use delete_related_insns.
4560         (fixup_abnormal_edges): Use delete_insn.
4561         * recog.c (emit_delay_sequence): Use delete_related_insns.
4562         (delete_from-delay_slot): Likewise.
4563         (delete_scheduled_jump): likewise.
4564         (optimize_skip): Likewise.
4565         (try_merge_delay_insns): Likewise.
4566         (full_simple_delay_slots): Likewise.
4567         (fill_slots_from_thread): Likewise.
4568         (relax_delay_slots): Likewise.
4569         (make_return_insns): Likewise.
4570         (dbr_schedule): Likewise.
4571         * rtl.h (delete_insn): Rename to delete_related_insns.
4572         (delete_insn, delete_insn_chain): New prototypes.
4573         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
4574         by df_insn_delete already.
4575         * ssa-dce.c (delete_insn_bb): Use delete_insn.
4576         * ssa.c (convert_from_ssa): Use delete_related_insns.
4577         * unroll.c (unroll_loop): Likewise.
4578         (calculate_giv_inc): Likewise.
4579         (copy_loop_body): Likewise.
4580
4581         * i386-protos.h (ix86_libcall_value, ix86_function_value,
4582         ix86_function_arg_regno_p, ix86_function_arg_boundary,
4583         ix86_return_in_memory, ix86_function_value): Declare.
4584         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
4585         new static valurables.
4586         (x86_64_reg_class): New enum
4587         (x86_64_reg_class_name): New array.
4588         (classify_argument, examine_argument, construct_container,
4589          merge_classes): New static functions.
4590         (optimization_options): Enable flag_omit_frame_pointer and disable
4591         flag_pcc_struct_return on 64bit.
4592         (ix86_libcall_value, ix86_function_value,
4593         ix86_function_arg_regno_p, ix86_function_arg_boundary,
4594         ix86_return_in_memory, ix86_function_value): New global functions.
4595         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
4596         (function_arg_advance): Handle x86_64 passing conventions.
4597         (function_arg): Likewise.
4598         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
4599         (RETURN_IN_MEMORY): Move offline.
4600         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
4601         (FUNCTION_VALUE_REGNO_P): New macro.
4602         (FUNCTION_ARG_REGNO_P): Move offline.
4603         (struct ix86_args): Add maybe_vaarg.
4604         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
4605         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
4606
4607 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
4608
4609         * s390.md: Changed attributes for scheduling.
4610         * s390.c: (s390_adjust_cost, s390_adjust_priority)
4611         Changed scheduling
4612
4613 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4614
4615         Table-driven attributes.
4616         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
4617         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
4618         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
4619         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
4620         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
4621         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
4622         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
4623         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
4624         * tree.h (struct tree_decl): Change machine_attributes to
4625         attributes.
4626         * doc/c-tree.texi: Document that all attributes are now attached
4627         to decls and types.
4628         * c-common.c (add_attribute, attrtab, attrtab_idx,
4629         default_valid_lang_attribute, valid_lang_attribute): Remove.
4630         (attribute_tables, attributes_initialized,
4631         c_common_attribute_table, default_lang_attribute_table): New
4632         variables.
4633         (handle_packed_attribute, handle_nocommon_attribute,
4634         handle_common_attribute, handle_noreturn_attribute,
4635         handle_unused_attribute, handle_const_attribute,
4636         handle_transparent_union_attribute, handle_constructor_attribute,
4637         handle_destructor_attribute, handle_mode_attribute,
4638         handle_section_attribute, handle_aligned_attribute,
4639         handle_weak_attribute, handle_alias_attribute,
4640         handle_no_instrument_function_attribute,
4641         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
4642         handle_no_limit_stack_attribute, handle_pure_attribute): New
4643         functions.
4644         (init_attributes, decl_attributes): Rewrite to implement
4645         table-driven attributes.
4646         * c-common.h (enum attribute_flags): Move to tree.h.
4647         * c-format.c (decl_handle_format_attribute,
4648         decl_handle_format_arg_attribute): Rename to
4649         handle_format_attribute and handle_format_arg_attribute.  Update
4650         for table-driven attributes.
4651         * c-common.h (decl_handle_format_attribute,
4652         decl_handle_format_arg_attribute): Remove prototypes.
4653         (handle_format_attribute, handle_format_arg_attribute): Add
4654         prototypes.
4655         * c-decl.c (grokdeclarator): Handle attributes nested inside
4656         declarators.
4657         * c-parse.in (setattrs, maybe_setattrs): Remove.
4658         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
4659         Update to handle nested attributes properly.
4660         (maybe_resetattrs, after_type_declarator,
4661         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
4662         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
4663         properly.
4664         (make_pointer_declarator): Update to handle nested attributes
4665         properly.
4666         * doc/extend.texi: Update documentation of limits of attributes
4667         syntax.  Warn about problems with attribute semantics in C++.
4668         * target.h (struct target): Remove valid_decl_attribute and
4669         valid_type_attribute.  Add attribute_table and
4670         function_attribute_inlinable_p.
4671         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
4672         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
4673         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
4674         Add.
4675         (TARGET_INITIALIZER): Update.
4676         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
4677         definition.
4678         (function_attribute_inlinable_p): New function.  Check for the
4679         presence of any machine attributes before using
4680         targetm.function_attribute_inlinable_p.
4681         (function_cannot_inline_p): Update.
4682         * Makefile.in (integrate.o): Update dependencies.
4683         * doc/tm.texi: Update documentation of target attributes and
4684         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
4685         * tree.c (default_valid_attribute_p, valid_machine_attribute):
4686         Remove.
4687         (default_target_attribute_table,
4688         default_function_attribute_inlinable_p): New.
4689         (lookup_attribute): Update comment to clarify handling of multiple
4690         attributes with the same name.
4691         (merge_attributes, attribute_list_contained): Allow multiple
4692         attributes with the same name but different arguments to appear in
4693         the same attribute list.
4694         * tree.h (default_valid_attribute_p): Remove prototype.
4695         (struct attribute_spec): New.
4696         (default_target_attribute_table): Declare.
4697         (enum attribute_flags): Move from c-common.h.  Add
4698         ATTR_FLAG_TYPE_IN_PLACE.
4699         (default_function_attribute_inlinable_p): Declare.
4700         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
4701         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4702         (TARGET_ATTRIBUTE_TABLE): Define.
4703         (vms_attribute_table): New.
4704         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
4705         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4706         (TARGET_ATTRIBUTE_TABLE): Define.
4707         (arc_attribute_table, arc_handle_interrupt_attribute): New.
4708         * config/arm/arm.c (arm_valid_type_attribute_p,
4709         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
4710         Remove.
4711         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
4712         define.
4713         (TARGET_ATTRIBUTE_TABLE): Define.
4714         (arm_attribute_table, arm_handle_fndecl_attribute,
4715         arm_handle_isr_attribute): New.
4716         * config/avr/avr.c (avr_valid_type_attribute,
4717         avr_valid_decl_attribute): Remove.
4718         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
4719         define.
4720         (TARGET_ATTRIBUTE_TABLE): Define.
4721         (avr_attribute_table, avr_handle_progmem_attribute,
4722         avr_handle_fndecl_attribute): New.
4723         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
4724         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4725         (TARGET_ATTRIBUTE_TABLE): Define.
4726         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
4727         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
4728         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4729         (TARGET_ATTRIBUTE_TABLE): Define.
4730         (h8300_attribute_table, h8300_handle_fndecl_attribute,
4731         h8300_handle_eightbit_data_attribute,
4732         h8300_handle_tiny_data_attribute): New.
4733         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
4734         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
4735         Remove prototypes.
4736         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
4737         declarations.
4738         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
4739         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
4740         define.
4741         (TARGET_ATTRIBUTE_TABLE): Define.
4742         (ix86_attribute_table, ix86_handle_cdecl_attribute,
4743         ix86_handle_regparm_attribute): New.
4744         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
4745         i386_pe_valid_type_attribute_p): Remove.
4746         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
4747         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
4748         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4749         (TARGET_ATTRIBUTE_TABLE): Define.
4750         (ia64_attribute_table): New.
4751         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
4752         interrupt_ident2, model_ident1, model_ident2): Remove.
4753         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4754         (TARGET_ATTRIBUTE_TABLE): Define.
4755         (init_idents): Update.
4756         (m32r_attribute_table, m32r_handle_model_attribute): New.
4757         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
4758         Remove.
4759         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4760         (TARGET_ATTRIBUTE_TABLE): Define.
4761         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
4762         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
4763         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4764         (TARGET_ATTRIBUTE_TABLE): Define.
4765         (mcore_attribute_table, mcore_handle_naked_attribute): New.
4766         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
4767         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4768         (TARGET_ATTRIBUTE_TABLE): Define.
4769         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
4770         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
4771         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4772         (TARGET_ATTRIBUTE_TABLE): Define.
4773         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
4774         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
4775         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4776         (TARGET_ATTRIBUTE_TABLE): Define.
4777         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
4778         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
4779         New.
4780         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
4781         Remove.
4782         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
4783         (TARGET_ATTRIBUTE_TABLE): Define.
4784         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
4785         New.
4786         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
4787         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4788         (TARGET_ATTRIBUTE_TABLE): Define.
4789         (v850_attribute_table, v850_handle_interrupt_attribute,
4790         v850_handle_data_area_attribute): New.
4791         * config/v850/v850-c.c (mark_current_function_as_interrupt):
4792         Return void.  Call decl_attributes instead of
4793         valid_machine_attribute.
4794
4795 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
4796
4797         * sh-protos.h (sh_pr_n_sets): Declare.
4798         * sh.c (calc_live_regs): If the initial value for PR has been copied,
4799         look at the copy to determine if PR needs to be saved.
4800         sh_pr_n_sets: New function.
4801         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
4802         (ALLOCATE_INITIAL_VALUE): Define.
4803
4804         * sh.c (initial_elimination_offset):
4805         Fix RETURN_ADDRESS_POINTER_REGNUM case.
4806
4807 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
4808
4809         * integrate.c (allocate_initial_values): New function.
4810         * integrate.h (allocate_initial_values): Declare.
4811         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
4812         here...
4813         * reload1.c (reload): And initialization of reg_equiv_memory_loc
4814         from here...
4815         * toplev.c (rest_of_compilation): To here.
4816         Call allocate_initial_values.
4817         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
4818
4819 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4820
4821         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
4822
4823 2001-09-20  DJ Delorie  <dj@redhat.com>
4824
4825         * c-typeck.c (really_start_incremental_init): Discriminate
4826         between zero-length arrays and flexible arrays.
4827         (push_init_level): Detect zero-length arrays and handle them
4828         like fixed-sized arrays.
4829         * expr.c (store_constructor): Handle zero-length arrays and
4830         flexible arrays correctly.
4831         * doc/extend.texi: Update zero-length array notes.
4832
4833 2001-09-20  Jim Wilson  <wilson@redhat.com>
4834
4835         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
4836         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
4837         for issue port conflicts.
4838         (cycle_end_fill_slots): TYPE_L instructions take two slots.
4839
4840 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
4841
4842         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
4843         on ia64.
4844
4845 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4846
4847         * fold-const.c (hashtab.h): Include.
4848         (int_const_binop): Remove FORSIZE arg and compute from type; all
4849         callers changed.
4850         Call size_int_type_wide for all single-word constants.
4851         (size_htab_hash, size_htab_eq): New functions.
4852         (size_int_type_wide): Rework to use hash table.
4853         * ggc-common.c (hashtab.h): Include.
4854         (struct d_htab_root): New struct.
4855         (d_htab_roots): New variable.
4856         (ggc_add_deletable_htab, ggc_htab_delete): New functions
4857         (ggc_mark_roots): Handle deletable htabs.
4858         * ggc-page.c (ggc_marked_p): New function.
4859         * ggc-simple.c (ggc_marked_p): Likewise.
4860         * ggc.h: Reformatting throughout.
4861         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
4862         * tree.c (init_obstacks): Make type_hash_table a deletable root.
4863         (type_hash_add): Allocate struct type_hash from GC memory.
4864         (mark_hash_entry, mark_type_hash): Deleted.
4865         (type_hash_marked_p, type_hash_mark): New functions.
4866         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
4867
4868 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
4869
4870         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
4871         than SImode.
4872
4873 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4874
4875         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
4876         array-too-large test for signed sizetype.
4877
4878 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
4879
4880         * i386.md (indirect_jump): Allow Pmode operand.
4881         (tablejump): LIkewise; perform expansion to 64bit mode.
4882         * i386.c (symbolic_operand): Allow 64bit PIC references.
4883         (pic_symbolic_operand): Likewise.
4884         (ix86_find_base_term): Strip the 64bit PIC references.
4885         (legitimate_pic_address_disp_p): Handle 64bit PIC.
4886         (legitimize_pic_address): Likewise.
4887         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
4888         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
4889
4890 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
4891
4892         * stringpool.c (get_identifier_with_length): New function.
4893         * tree.h (get_identifier_with_length): New prototype.
4894
4895 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
4896             David Edelsohn  <edelsohn@gnu.org>
4897
4898         Revert:
4899         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
4900         already sign-extended.
4901
4902         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
4903         * config/rs6000/rs6000.c (logical_operand): Always compare op as
4904         HOST_WIDE_INT.
4905         (rs6000_emit_set_long_const): Avoid unnecessary shift.
4906         (output_profile_hook): Declare label_name const.
4907         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
4908         to match constraints.
4909
4910 2001-09-19  Stan Shebs  <shebs@apple.com>
4911
4912         * alias.c: Fix typos in comments.
4913         * sched-rgn.c (init_ready_list): Ditto.
4914         * unwind-dw2.c (uw_frame_state_for): Ditto.
4915         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
4916         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
4917         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
4918
4919 2001-09-19  Richard Henderson  <rth@redhat.com>
4920
4921         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
4922         to the exit block.
4923         * Makefile.in (cfg.o): Depend on TM_P_H.
4924
4925 2001-09-19  Richard Henderson  <rth@redhat.com>
4926
4927         * config/alpha/alpha.c (local_symbol_p): Split out from ...
4928         (local_symbolic_operand): ... here.
4929         (small_symbolic_operand): Check mode.
4930         (global_symbolic_operand): New.
4931         (input_operand): Reject symbolics if explicit relocs.
4932         (call_operand): Tidy.
4933         (alpha_legitimize_address): Use movdi_er_high_g.
4934         (alpha_expand_mov): Likewise.
4935         * config/alpha/alpha-protos.h: Update.
4936         * config/alpha/alpha.h (PREDICATE_CODES): Update.
4937         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
4938         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
4939         (UNSPECV_LDGP2): Remove.
4940         (all call patterns): Use 's' not 'i' for symbolic constraint.
4941         (call_osf call_value_osf): Use call_operand.
4942         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
4943         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
4944         (prologue_ldgp_1_er): Remove.
4945         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
4946         (builtin_setjmp_receiver_er patterns): Use them.
4947         (exception_receiver_er): Likewise.
4948
4949 2001-09-19  Richard Henderson  <rth@redhat.com>
4950
4951         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
4952
4953         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
4954         and NON_LOCAL_GOTO notes.
4955         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
4956         copy over CALL_INSN_FUNCTION_USAGE.
4957
4958 2001-09-18  Catherine Moore  <clm@redhat.com>
4959
4960         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
4961         Define as 0.
4962
4963 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
4964
4965         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
4966         new-style tm_file specification.  Specify correct tm_p_file,
4967         md_file, and out_file for s390x.
4968
4969         * config/s390/linux.h, linux64.h:  Don't include other target
4970         macro header files.  Now handled via tm_file.
4971
4972         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
4973         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
4974         are defined before use.
4975
4976 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
4977
4978         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
4979         code generation only for Gnu assembler.
4980
4981 2001-09-18  Catherine Moore  <clm@redhat.com>
4982
4983         * config/stormy16 (LIB_SPEC): Remove -lnosys.
4984
4985 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
4986
4987         * config/mips/mips.c (mips_frame_set): New.
4988         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
4989         a parallel frame-related expression with a set for each register.
4990
4991 2001-09-18  Philip Blundell  <philb@gnu.org>
4992
4993         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
4994         header files.
4995
4996 2001-09-17  Dale Johannesen  <dalej@apple.com>
4997
4998         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
4999         * config/rs6000/aix.h (FIXED_R2): Define.
5000         * config/rs6000/darwin.h (FIXED_R2): Define.
5001         * config/rs6000/sysv4.h (FIXED_R2): Define.
5002
5003 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
5004
5005         * except.c (dw2_build_landing_pads): New local
5006         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
5007         barrier after clobbers.  Fixes c++/4012.
5008
5009 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5010
5011         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
5012
5013 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
5014
5015         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
5016         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
5017
5018 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5019
5020         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
5021         alloca/strcpy.
5022
5023 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5024
5025         * cpphash.h (_cpp_lex_direct): New.
5026         * cpplex.c (_cpp_lex_token): Update.
5027         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
5028         and increment that pointer.
5029         * cppmacro.c (alloc_expansion_token): New.
5030         (lex_expansion_token): Lex macro expansion directly into
5031         macro storage.
5032
5033 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
5034
5035         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
5036
5037 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
5038
5039         * basic-block.h (free_bb_for_insn): Declare.
5040         * bb-reorder.c (label_for_bb): Use block_label.
5041         (emit_jump_to_block_after): Remove.
5042         (insert_intra_1): Do not update block_for_insn.
5043         (insert_inter_bb_scope_notes): Likewise; update bb->end
5044         * cfg.c (free_bb_for_insn): New.
5045         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
5046         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
5047         (commit_one_edge_insertion): Likewise.
5048         (commit_one_edge_insertion): Do not update BB boundary.
5049         (commit_edge_insertions): Do not call compute_bb_for_insn.
5050         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
5051         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
5052         (merge_blocks_move_successor_nojumps): Likewise.
5053         (try_crossjump_to_edge): Do not update block_for_insn.
5054         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
5055         * df.c (df_pattern_emit_later): Do not update BB boundary.
5056         (df_jump_pattern_emit_after): Likewise.
5057         (df_insn_move_before): Use emit_insn_before.
5058         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
5059          properly.
5060         (add_insn_after, add_insn_before, emit_insns_after): Update BB
5061         boundaries and basic_block_for_insn.
5062         (reorder_insns_nobb): Rename from reorder_insns.
5063         (reorder_insns): New.
5064         (emit_block_insn_before, emit_block_insn_after): Kill.
5065         * flow.c (check_function_return_warnings): Do not call
5066         compute_bb_for_insn; Do not free basic_block_for_insn.
5067         (attempt_auto_inc): Do not update basic_block_for_insn.
5068         * function.c (emit_return_into_block): Likewise;
5069         do not update BB boundaries.
5070         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
5071         (insert_insn_end_bb): Use emit_insn_before; Likewise.
5072         (pre_insert_copy_insn): Likewise.
5073         (update_ld_motion_notes): Likewise.
5074         (insert_insn_start_bb): Likewise.
5075         (replace_store_insn): Likewise.
5076         * ifcvt.c (noce_process_if_block): Likewise.
5077         (if_convert): Do not call compute_bb_for_insn.
5078         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
5079         Use emit_insn_before and emit_insn_after.
5080         * recog.c (split_all_insns): Do not update BB boundaries;
5081         Do not call compute_bb_for_insn.
5082         (peephole2_optimize): Do not update BB boundaries.
5083         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
5084         emit_insn_before.
5085         (emit_swap_insn): Likewise.
5086         (convert_regs_1): Likewise.
5087         * reload1.c (reload): Call compute_bb_for_insn.
5088         * rtl.h (reorder_insns_nobb): Declare.
5089         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
5090         * toplev.c (rest_of_compilation): Call free_bb_for_insn
5091         at places CFG is invalidated; do not call compute_bb_for_insn.
5092
5093         * cfg.c (expunge_block): Invalidate BB structure.
5094
5095         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
5096         array.
5097
5098         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
5099
5100 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5101
5102         * cpphash.h (_cpp_lex_token): Update prototype.
5103         * cpplex.c (_cpp_lex_token): New prototype.
5104         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
5105         lex_macro_node, read_flag, do_pragma_poison): Update.
5106         * cppmacro.c (cpp_get_token, parse_params,
5107         lex_expansion_token): Update.
5108
5109 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5110
5111         * cppmain.c (scan_translation_unit): Don't worry about
5112         putting a space after hashes.
5113         * cpplib.c (directive_diagnostics): New.
5114         (_cpp_handle_directive): Update to use directive_diagnostics.
5115         (run_directive): Don't toggle prevent_expansion.
5116         (do_line): Backup in case of the line extension.
5117         * cpplib.h (cpp_lexer_pos): Remove.
5118         * cppmacro.c (_cpp_create_definition): Precede a leading #
5119         with whitespace.
5120
5121 2001-09-15  Richard Henderson  <rth@redhat.com>
5122
5123         * c-typeck.c (comptypes): Handle zero-length arrays properly.
5124
5125 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5126
5127         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
5128
5129 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5130
5131         PR preprocessor/3571
5132         * tradcpp.c (handle_directive): Skip non-vertical space.
5133
5134 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5135
5136         * cppmain.c (setup_callbacks): Set line callback only
5137         if outputting preprocessed source.
5138
5139 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5140
5141         * collect2.c (main): Const-ification.
5142         * gcc.c (translate_options, process_command): Use xstrdup in
5143         lieu of xmalloc/strcpy.
5144         (main): Use concat in lieu of xmalloc/strcpy/strcat.
5145
5146 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5147
5148         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
5149         example.
5150
5151 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5152
5153         * scan-decls.c (scan_decls): Fix typo.
5154
5155 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5156
5157         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
5158         Split mlstring_pos into mls_line and mls_col.
5159         * cppinit.c (cpp_create_reader): Initialize line to 1.
5160         (cpp_destroy): Free tokenruns.
5161         (push_include): Don't update lexer_pos.
5162         * cpplex.c (unterminated, parse_string): Update.
5163         (lex_token): Don't update lexer_pos, update.
5164         * cpplib.c (if_stack): Save line instead of line + col.
5165         (start_directive, _cpp_do__Pragma, do_else, do_elif,
5166         push_conditional, _cpp_pop_buffer): Update.
5167         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
5168         (_cpp_create_definition): Update.
5169
5170 2001-09-15  Eric Christopher  <echristo@redhat.com>
5171
5172         * config/mips/abi64.h: Add support for MEABI.
5173
5174 2001-09-15  Eric Christopher  <echristo@redhat.com>
5175
5176         * config/mips/mips.md: Add unspec #2.
5177         (reload_indi): Use.
5178         (reload_outdi): Ditto.
5179         (reload_outsi): Ditto.
5180         (HILO_delay): New.
5181
5182 2001-09-15  Eric Christopher  <echristo@redhat.com>
5183             Jason Eckhardt  <jle@redhat.com>
5184
5185         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
5186         * config/mips/isa32-linux.h: New file.
5187         * config/mips/isa3264.h: Ditto.
5188         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
5189         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
5190         (output_block_mode): Support MEABI.
5191         (function_arg): Ditto. Fix floating point arg passing.
5192         (mips_va_start): Ditto.
5193         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
5194         processors.
5195         (mips_asm_file_start): Add new section to pass abi to gdb.
5196         (function_arg_pass_by_reference): Support MEABI.
5197         (mips_parse_cpu): Support mips32 and mips64 processors.
5198         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
5199         TARGET_MIPS5KC.  Support isa32 and isa64.
5200         (processor_type): Add r4kc, r5kc, r20kc.
5201         (GENERATE_MULT3_SI): New.
5202         (GENERATE_MULT3_DI): Ditto.
5203         (GENERATE_MULT3): Remove.
5204         (ISA_HAS_64BIT_REGS): Add isa == 64.
5205         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
5206         (ISA_HAS_MADD_MSUB): New.
5207         (ISA_HAS_CLZ_CLO): Ditto.
5208         (ISA_HAS_DCLZ_DCLO): Ditto.
5209         (ABI_GAS_ASM_SPEC): New.
5210         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
5211         (ASM_SPEC): Ditto.
5212         (LINK_SPEC): Ditto.
5213         (SUBTARGET_CC1_SPEC): Ditto.
5214         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
5215         (PAD_VARARGS_DOWN): Support MEABI.
5216         (HARD_REGNO_NREGS): Move to mips.c.
5217         (ASM_OUTPUT_IDENT): Add #undef.
5218         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
5219         (mulsi3): Use GENERATE_MULT3_SI.
5220         (mulsi3_mult3): Ditto.  Support mips32, mips64.
5221         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
5222         (mul_sub_si): New pattern.
5223         (unnamed splitters): New.
5224         (muldi3): Use GENERATE_MULT3_DI.
5225         (muldi3_internal2): Ditto.
5226         (movdicc): Support mips32.
5227         * config/mips/t-isa3264: New file.
5228
5229 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
5230
5231         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
5232         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
5233         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
5234
5235         * reorg.c (fill_slots_from_thread): After call to
5236         steal_delay_list_from_target, update own_thread as new_thread may
5237         have branched.
5238
5239 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5240
5241         * cpperror.c (print_location): Take line and column, for
5242         default positioning use the previously lexed token.
5243         (_cpp_begin_message): Take line and column.
5244         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
5245         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
5246         * cpphash.h (_cpp_begin_message): Update prototype.
5247         * cppinit.c (push_include): Don't set output line.
5248         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
5249         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
5250         (do_pragma): Kludge for front ends.  Don't expand macros at all.
5251         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
5252         (struct cpp_token): Remove output_line.
5253         (struct cpp_callbacks): New member line_change.
5254         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
5255         cpp_get_token): Preserve BOL flag.
5256         (cpp_get_line): Remove.
5257         (_cpp_backup_tokens): Remove useless abort().
5258         * cppmain.c (cb_line_change): New.
5259         (scan_translation_unit): Don't worry about starting new lines here.
5260         * scan-decls.c (scan_decls): Update.
5261         * c-lex.c (c_lex, init_c_lex): Update.
5262         (cb_line_change, src_lineno): New.
5263
5264 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
5265
5266         * tree.c (append_random_chars): Generate the random
5267         characters in a reproducable fashion.
5268
5269 2001-09-14  Richard Henderson  <rth@redhat.com>
5270
5271         * config/i386/i386.c (internal_label_prefix): New.
5272         (internal_label_prefix_len): New.
5273         (override_options): Set them.
5274         (local_symbolic_operand): New.
5275         (legitimate_pic_address_disp_p): Use it.
5276         (legitimize_pic_address): Likewise.
5277
5278 2001-09-14  Marc Espie <espie@openbsd.org>
5279
5280         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
5281         correctly.
5282
5283 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5284
5285         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
5286         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
5287
5288 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
5289
5290         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
5291         invocation of SUBREG_REGNO_OFFSET.
5292
5293         * haifa-sched.c: Fix typo in FSF copyright statement.
5294         * sched-deps.c: Fix typo in FSF copyright statement.
5295         * sched-ebb.c: Fix typo in FSF copyright statement.
5296         * sched-rgn.c: Fix typo in FSF copyright statement.
5297         * sched-vis.c: Fix typo in FSF copyright statement.
5298
5299         * config.gcc: Move inclusion of arm elf specific header files
5300         from the files themselves into the tm_file variable.  Make
5301         sure that elfos.h is included before target specific elf
5302         headers.
5303         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
5304         already defined.
5305         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
5306         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
5307         ASM_OUTPUT_CASE_LABEL): Protect definition.
5308         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
5309         not already defined.
5310         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
5311         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
5312         Remove duplicate definition.
5313         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
5314         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
5315         (RDATA_SECTION_FUNCTION): Remove redundant definition.
5316         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
5317         Remove inclusion of arm/elf.h.
5318         * config/arm/unknown-elf.h: as for conix-elf.h.
5319         (STARTFILE_SPEC): Include crti.o and crtn.o.
5320         * config/arm/linux-elf.h: as for conix-elf.h.
5321         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
5322         * config/arm/strongarm-elf.h: Remove inclusion of
5323         unknown-elf.h.
5324         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
5325         * config/arm/unknown-elf-oabi.h: Remove inclusion of
5326         unknown-elf.h and elf.h.
5327         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
5328         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
5329         ASM_WEAKEN_LABEL): Remove redundant definition.
5330         * config/arm/elf.h: Test for inclusion of elfos.h
5331         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
5332         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
5333         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
5334         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
5335         redundant definition.
5336         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
5337         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
5338         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
5339         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
5340         Add rules to build crti.o and crtn.o
5341         * crti.asm: New file.
5342         * crtn.asm: New file.
5343
5344 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5345
5346         * c-parse.in (_yylex): Use _cpp_backup_tokens.
5347         * cpphash.h (struct tokenrun): Add prev.
5348         (struct lexer_state): Remove bol.
5349         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
5350         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
5351         : Remove.
5352         * cppinit.c (cpp_create_reader): Don't set bol.
5353         (cpp_destroy): Don't free lookaheads.
5354         * cpplex.c (lex_directive): Remove.
5355         (next_tokenrun): Update.
5356         (_cpp_lex_token): Clean up logic.
5357         (lex_token): Update to return a pointer to lexed token, since it
5358         can move to the start of the buffer.  Simpify newline handling.
5359         * cpplib.c (SEEN_EOL): Update.
5360         (skip_rest_of_line): Remove lookahead stuff.
5361         (end_directive): Line numbers are already incremented.  Revert
5362         to start of lexed token buffer if we can.
5363         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
5364         parse_answer): Use _cpp_backup_tokens.
5365         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
5366         instead.  Don't check for EOL.
5367         (do_include_common, do_line, do_pragma_system_header): Use
5368         skip_rest_of_line.
5369         * cpplib.h (BOL, _cpp_backup_tokens): New.
5370         * cppmacro.c (save_lookahead_token, take_lookahead_token,
5371         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
5372         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
5373         (builtin_macro): Don't use cpp_get_line.
5374         (cpp_get_line): Short term kludge.
5375         (parse_arg): Handle directives in arguments here.  Back up when
5376         appropriate.  Store EOF at end of argument list.
5377         (funlike_invocation_p): Use _cpp_backup_tokens.
5378         (push_arg_context): Account for EOF at end of list.
5379         (cpp_get_token): Remove lookahead stuff.  Update.
5380
5381 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5382
5383         * c-parse.in (yyerror): Const-ification and/or static-ization.
5384         * c-typeck.c (push_member_name): Likewise.
5385         * collect2.c (main): Likewise.
5386         * dbxout.c (dbxout_parms): Likewise.
5387         * diagnostic.c (format_with_decl): Likewise.
5388         * dwarf2out.c (output_ranges): Likewise.
5389         * dwarfout.c (fundamental_type_code): Likewise.
5390         * except.c (dw2_output_call_site_table): Likewise.
5391         * gcc.c (do_spec_1): Likewise.
5392         * genopinit.c (optabs): Likewise.
5393         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
5394         gen_declaration_1, handle_impent): Likewise.
5395         * protoize.c (default_include, in_system_include_dir, abspath):
5396         Likewise.
5397         * sched-vis.c (visualize_stall_cycles): Likewise.
5398         * sdbout.c (plain_type_1, sdbout_end_function,
5399         sdbout_end_epilogue): Likewise.
5400         * varasm.c (decode_reg_name): Likewise.
5401
5402         * 1750a.c (mod_regno_adjust): Likewise.
5403         * alpha.c (alpha_write_one_linkage,
5404         unicosmk_output_default_externs): Likewise.
5405         * arm.c (arm_condition_codes): Likewise.
5406         * arm.h (arm_condition_codes): Likewise.
5407         * avr.c (output_movsisf, encode_section_info): Likewise.
5408         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
5409         Likewise.
5410         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
5411         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
5412         * m88k.c (output_function_profiler): Likewise.
5413         * mips.c (mips_output_conditional_branch): Likewise.
5414         * ns32k.c (ns32k_out_reg_names): Likewise.
5415         * ns32k.h (ns32k_out_reg_names): Likewise.
5416         * pj.c (pj_output_rval): Likewise.
5417         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
5418         * sparc.c (sparc_flat_function_prologue,
5419         sparc_flat_function_epilogue): Likewise.
5420
5421 2001-09-13  Markus Werle <numerical.simulation@web.de>
5422             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5423
5424         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
5425         Aachen University of Technology".
5426
5427 2001-09-13  Andreas Schwab  <schwab@suse.de>
5428
5429         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
5430         C99.
5431
5432 2001-09-13  Richard Henderson  <rth@redhat.com>
5433
5434         * config/alpha/alpha.c (small_symbolic_operand): New.
5435         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
5436         (some_operand, input_operand): Don't handle HIGH.
5437         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
5438         (alpha_expand_mov): Likewise.
5439         (print_operand) [H]: Just print HIGH symbol.
5440         (print_operand_address): Handle small data.
5441         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
5442         (TARGET_SWITCHES): Add -msmall-data/large-data.
5443         (PIC_OFFSET_TABLE_REGNUM): New.
5444         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
5445         (PREDICATE_COES): Update.
5446         * config/alpha/alpha.md (adddi_er_high): New.
5447         (adddi_er_low): Handle small data.
5448         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
5449         prefer .sdata to .rodata.
5450         (SELECT_RTX_SECTION): Likewise.
5451
5452 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
5453
5454         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
5455         defining __size_t and leaving size_t undefined.
5456
5457 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
5458
5459         * basic-block.h (expunge_block): Declare.
5460         * cfg.c (expunge_block): Remove static declaration.
5461
5462 2001-09-12  Richard Henderson  <rth@redhat.com>
5463
5464         * integrate.c (copy_insn_list): Copy label name from
5465         NOTE_INSN_DELETED_LABEL.
5466
5467 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5468
5469         * c-common.c (c_tree_code_name): Const-ification.
5470         * c-decl.c (c_decode_option): Likewise.
5471         * c-typeck.c (warn_for_assignment): Likewise.
5472         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
5473         Likewise.
5474         * cppinit.c (output_deps): Likewise.
5475         * dependence.c (dependence_string, direction_string): Likewise.
5476         * dwarf2out.c (output_ranges): Likewise.
5477         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
5478         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
5479         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
5480         standard_startfile_prefix, standard_startfile_prefix_1,
5481         standard_startfile_prefix_2, tooldir_base_prefix,
5482         standard_bindir_prefix, find_a_file): Likewise.
5483         * genattrtab.c (make_length_attrs): Likewise.
5484         * gencheck.c (tree_codes): Likewise.
5485         * genemit.c (gen_split): Likewise.
5486         * genrecog.c (special_mode_pred_table): Likewise.
5487         * graph.c (graph_ext): Likewise.
5488         * protoize (default_include): Likewise.
5489         * reload.c (reload_when_needed_name): Likewise.
5490         * sched-vis.c (visualize_stall_cycles): Likewise.
5491         * tlink.c (recompile_files): Likewise.
5492         * toplev.c (decode_g_option): Likewise.
5493         * tradcpp.c (output_deps): Likewise.
5494         * varasm.c (decode_reg_name): Likewise.
5495
5496         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
5497         Const-ification.
5498         * arm.md: Likewise.
5499         * avr.c (avr_regnames, encode_section_info): Likewise.
5500         * c4x.c (float_reg_names): Likewise.
5501         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
5502         * elfos.h (const_section): Likewise.
5503         * i386.c (ix86_comp_type_attributes): Likewise.
5504         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
5505         * ia64/aix.h (UNIQUE_SECTION): Likewise.
5506         * ia64.c (type_names): Likewise.
5507         * m68hc11.c (reg_class_names): Likewise.
5508         * m88k.c (m_options): Likewise.
5509         * mips.c (mips_output_conditional_branch, mips_unique_section):
5510         Likewise.
5511         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5512         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
5513         ultra_code_names): Likewise.
5514         * sparc.h (OVERRIDE_OPTIONS): Likewise.
5515
5516 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
5517
5518         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
5519         Use --fatal-warnings option for gas.
5520         * configure: Rebuilt.
5521
5522 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5523
5524         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
5525
5526 2001-09-11  Jim Wilson  <wilson@redhat.com>
5527
5528         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
5529
5530 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5531
5532         * builtins.c (c_strlen): Treat an offset too large for a
5533         HOST_WIDE_INT as out of range.
5534
5535 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
5536
5537         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
5538         (EDGE_CRITICAL_P): New predicate.
5539         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
5540         handling.
5541         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
5542         (dump_edge_info): Remove "crit".
5543         * cfganal.c (mark_critical_edges): Kill.
5544         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
5545         * cfgcleanup.c (cleanup_cfg): Likewise.
5546         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
5547         (find_spanning_tree): Likewise.
5548         * reg-stack.c (convert_regs_1): Likewise.
5549         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
5550
5551         * basic-block.h (create_basic_block_structure): New.
5552         (create_basic_block): Update prototype.
5553         (force_nonfallthru): New.
5554         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
5555         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
5556         handle updating of block_for_insn, creating of empty BBs and BBs at
5557         the end of INSN chain.
5558         (create_basic_block): New function.
5559         (split_block): Use create_basic_block.
5560         (force_nonfallthru_and_redirect): Break out from ...; cleanup
5561         (redirect_edge_and_branch_force): ... here.
5562         (force_nonfallthru): New.
5563         (split_edge): Rewrite to use force_nonfallthru and create_block.
5564         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
5565         (find_basic_blocks): Free basic_block_for_insn.
5566         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
5567
5568         * cfg.c: Fix formating.
5569         * cfgcleanup.c: Fix formating.
5570         (merge_blocks, tail_recursion_label_p): Return bool.
5571         (merge_blocks_move_predecessor_nojumps,
5572          merge_blocks_move_successor_nojumps): Return void.
5573
5574 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
5575
5576         * configure.in: Check whether assembler supports section merging.
5577         * config.in: Rebuilt.
5578         * configure: Rebuilt.
5579         * varasm.c (variable_section, output_constant_pool): Pass alignment
5580         to SELECT_SECTION and SELECT_RTX_SECTION.
5581         (mergeable_string_section): New.
5582         (mergeable_constant_section): New.
5583         (default_elf_asm_named_section): Output SECTION_MERGE and
5584         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
5585         * output.h (mergeable_string_section): New.
5586         (mergeable_constant_section): New.
5587         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
5588         * toplev.c (flag_merge_constants): New.
5589         (f_options): Add -fmerge-constants and -fmerge-all-constants
5590         options.
5591         (toplev_main): Default to -fno-merge-constants if not optimizing.
5592         * flags.h (flag_merge_constants): Add extern.
5593         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
5594         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
5595         argument.
5596         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
5597         Define if assembler has working .subsection -1 support.
5598         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
5599         Put constant into special SHF_MERGE sections if the linker should
5600         attempt to merge duplicates.
5601         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
5602         macro argument.
5603         Put constant into special SHF_MERGE sections if the linker should
5604         attempt to merge duplicates.
5605         * config/alpha/elf.h: Likewise.
5606         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
5607         has working .subsection -1 support.
5608         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
5609         SELECT_SECTION.
5610         * config/svr3.h: Likewise.
5611         * config/darwin.h: Likewise.
5612         * config/arm/aof.h: Likewise.
5613         * config/arm/linux-elf.h: Likewise.
5614         * config/avr/avr.h: Likewise.
5615         * config/c4x/c4x.h: Likewise.
5616         * config/d30v/d30v.h: Likewise.
5617         * config/i386/dgux.h: Likewise.
5618         * config/i386/osfrose.h: Likewise.
5619         * config/i386/sco5.h: Likewise.
5620         * config/i386/svr3gas.h: Likewise.
5621         * config/ia64/aix.h: Likewise.
5622         * config/m32r/m32r.h: Likewise.
5623         * config/m68k/m68k.h: Likewise.
5624         * config/m88k/dgux.h: Likewise.
5625         * config/m88k/m88k.h: Likewise.
5626         * config/mcore/mcore-pe.h: Likewise.
5627         * config/mips/mips.h: Likewise.
5628         * config/pa/pa.h: Likewise.
5629         * config/pa/pa-linux.h: Likewise.
5630         * config/romp/romp.h: Likewise.
5631         * config/rs6000/sysv4.h: Likewise.
5632         * config/rs6000/xcoff.h: Likewise.
5633         * config/s390/linux.h: Likewise.
5634         * config/sparc/sparc.h: Likewise.
5635         * config/sparc/sysv4.h: Likewise.
5636         * config/stormy16/stormy16.h: Likewise.
5637         * config/v850/v850.h: Likewise.
5638         * config/vax/vms.h: Likewise.
5639         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
5640         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
5641         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
5642         default_elf_asm_named_section for SHF_MERGE sections.
5643
5644 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
5645
5646         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
5647         is OK.
5648
5649 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5650
5651         * c-common.c (split_specs_attrs): Allow for empty attributes with
5652         empty TREE_PURPOSE.  Fixes PR c/4294.
5653
5654 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
5655
5656         * basic-block.h (cached_make_edge, make_single_succ): New.
5657         (make_edge): Remove first parameter.
5658         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
5659         * cfg.c (cached_make_edge): Rename from make_edge; return newly
5660         created edge; use obstack allocation.
5661         (make_edge, make_single_succ_edge): New.
5662         (first_removed_edge): New static variable.
5663         (init_flow): Initialize first_removed_edge and n_edges.
5664         (clear_edges): Use remove_edge.
5665         (flow_delete_block): Likewise.
5666         (remove_edge): Add removed edges to the removed edges list.
5667         (split_block, redirect_edge_and_branch_force, split_edge):
5668         Use make_edge.
5669         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
5670         (add_noreturn_fake_exit_edges): Likewise.
5671         (connect_infinite_loops_to_exit): Liekwise.
5672         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
5673         Use cached_make_edge.
5674         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
5675         * profile.c (branch_prob): Update make_edge call.
5676         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5677
5678 2001-09-11  Richard Henderson  <rth@redhat.com>
5679
5680         * config/alpha/alpha.c: Tidy formatting.
5681         (local_symbolic_operand): Verify mode.
5682         (alpha_sa_mask): Ignore unicos for eh_return.
5683         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
5684         * config/alpha/alpha.md (umk divsi patterns): Remove.
5685         (extendsfdf2): Remove unicos check.
5686         (tablejump): Merge vms and unicos code; always use direct set
5687         plus label_ref use.
5688
5689 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5690
5691         * config.gcc (alpha*-*-unicosmk*): New target.
5692
5693         * config/alpha/alpha-protos.h (symbolic_operand,
5694         unicosmk_add_call_info_word, unicosmk_add_extern,
5695         unicosmk_defer_case_vector, unicosmk_unique_section,
5696         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
5697         unicosmk_asm_file_start, unicosmk_asm_file_end,
5698         unicosmk_output_common): Declare.
5699
5700         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
5701         direct_return, function_arg, alpha_va_start, alpha_va_arg,
5702         alpha_does_function_need_gp, alpha_end_function): Support Cray
5703         Unicos/Mk.
5704         (alpha_init_machine_status, alpha_mark_machine_status,
5705         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
5706         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
5707         unicosmk_asm_named_section, unicosmk_insert_attributes,
5708         unicosmk_section_type_flags, symbolic_operand,
5709         unicosmk_output_module_name, unicosmk_output_default_externs,
5710         unicosmk_output_dex, unicosmk_output_externs,
5711         unicosmk_output_addr_vec, unicosmk_ssib_name,
5712         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
5713         unicosmk_asm_file_end, unicosmk_output_common,
5714         unicosmk_section_type_flags, unicosmk_unique_section,
5715         unicosmk_add_call_info_word, unicosmk_text_section,
5716         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
5717         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
5718         unicosmk_dex_count, unicosmk_special_name): New.
5719         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
5720         TARGET_ABI_UNICOSMK.
5721         (get_aligned_mem, alpha_expand_unaligned_load,
5722         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
5723         alpha_expand_unaligned_store_words): Support big-endian mode.
5724         (print_operand): Likewise. New format specifier 't'. Use
5725         TARGET_AS_SLASH_BEFORE_SUFFIX.
5726         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
5727         (alpha_pv_save_size): Update with above change.
5728         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
5729         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
5730         Unicos/Mk.
5731
5732         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
5733         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
5734         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
5735         (EXTRA_CONSTRAINT): New constraint 'U'.
5736         (PREDICATE_CODES): Add symbolic_operand.
5737
5738         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
5739         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
5740         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
5741         (integer division and modulus patterns): Split in default and
5742         Unicos/Mk versions.
5743         (*divmodsi_internal, *divmoddi_internal): Disable for
5744         TARGET_ABI_UNICOSMK.
5745         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
5746         little-endian and big-endian versions.
5747         (ext, ins, msk): Likewise.
5748         (extv, extzv, insv): Support big-endian mode.
5749         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
5750         (call_umk, call_value_umk, *call_umk, tablejump_umk,
5751         *tablejump_umk_internal, *call_value_umk): New.
5752         (*movdi_nofix): Add pattern for loading an address into a register on
5753         TARGET_ABI_UNICOSMK.
5754         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
5755         (umk_mismatch_args, arg_home_umk): New.
5756         (various insns): Don't use mov, fmov, nop, fnop and unop.
5757         (realign): Support TARGET_ABI_UNICOSMK.
5758
5759         * config/alpha/unicosmk.h: New file.
5760         * config/alpha/t-unicosmk: New file.
5761
5762         * fixinc/inclhack.def (unicosmk_restrict): New.
5763         * fixinc/fixincl.x: Regenerate.
5764
5765         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
5766         (wchar_t): Check for and define __WCHAR_T__.
5767
5768 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
5769
5770         * combine.c (simplify_shift_const): Treat shifts by the mode
5771         size as undefined.
5772
5773 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5774
5775         * cpphash.h (struct tokenrun): New.
5776         (struct cpp_context): New member bol.
5777         (struct cpp_reader): New members.
5778         (_cpp_init_tokenrun): New.
5779         * cppinit.c (cpp_create_reader): Set up the token runs.
5780         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
5781         (lex_token): New internalised version of _cpp_lex_token.  Don't
5782         handle directives or the multiple include opimisation here any
5783         more.  Simply lex a token.
5784         * cpplib.c (run_directive): Clear bol.
5785         (_cpp_pop_buffer): Set bol.
5786         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
5787         arguments.
5788
5789 2001-09-11  Michael Meissner  <meissner@redhat.com>
5790
5791         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
5792         give an error if the user uses -mfp32.
5793         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
5794         default options.
5795         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
5796         floating point register size.
5797         (EXTRA_SPECS): Add CPP_FPR_SPEC.
5798
5799         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
5800         HOST_WIDE_INT_PRINT_DEC to properly print the result of
5801         int_size_in_bytes.
5802         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
5803         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
5804
5805 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
5806
5807         * dbxout.c (dbxout_parms): Fix typo in comment.
5808         * unroll.c (loop_find_equiv_value): Ditto.
5809         * toplev.c (rest_of_compilation): Ditto.
5810         * loop.c (scan_loop): Ditto.
5811         * dwarf2out.c (struct dw_fde_struct): Ditto.
5812
5813 2001-09-10  Zack Weinberg  <zackw@panix.com>
5814
5815         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
5816         copying identifier when we're just going to throw it away.
5817         (parse_identifier_slow): New routine to handle abnormal cases.
5818         (_cpp_lex_token): Update call site.
5819
5820         * hashtable.c (ht_lookup): Don't assume that the string we've
5821         been given is NUL-terminated.
5822         * system.h: #define __builtin_expect(a, b) to (a) if not
5823         GCC >=3.0.
5824
5825 2001-09-10  Michael Meissner  <meissner@redhat.com>
5826
5827         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
5828         binutils, gdb.
5829
5830 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
5831
5832         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
5833
5834 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5835
5836         * builtins.c (c_getstr): Correct thinko in last change and further
5837         cleanup.
5838
5839 2001-09-10  Tim Freeman <tim@fungibole.com>
5840
5841         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
5842         into varray's and register them as roots with the garbage
5843         collector so they are not collected too soon.
5844
5845 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
5846
5847         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
5848         New.
5849         * basic-block.h (flow_obstack, label_value_list,
5850         tail_recursion_label_list): Declare
5851         (tidy_fallthru_edges): Declare.
5852         (expunge_block, last_loop_beg_note): Delete.
5853         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
5854         * cfg.c: New file
5855         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
5856         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
5857         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
5858         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
5859         expunge_block, flow_delete_block, compute_bb_for_insn,
5860         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
5861         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
5862         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
5863         try_redirect_by_replacing_jump, last_loop_beg_note,
5864         redirect_edge_and_branch, redirect_edge_and_branch_force,
5865         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
5866         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
5867         commit_edge_insertions, dump_flow_info, debug_flow_info,
5868         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
5869         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
5870         Move here from flow.c
5871         * cfganal.c: New file.
5872         (forwarder_block_p, can_fallthru, mark_critical_edges,
5873          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
5874          find_unreachable_blocks, create_edge_list, free_edge_list,
5875          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
5876          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
5877          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
5878          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
5879          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
5880          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
5881         Move here from flow.c
5882         * cfgbuild.c: New file
5883         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
5884          make_edges, find_basic_blocks_1, find_basic_blocks,
5885          find_sub_basic_blocks): Move here from flow.c
5886         * cfgcleanup.c: New file.
5887         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
5888          merge_blocks_move_predecessor_nojumps,
5889          merge_blocks_move_successor_nojumps, merge_blocks,
5890          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
5891          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
5892         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
5893         if succeeded.
5894         * cfgloop.c: New file
5895         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
5896          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
5897          flow_loop_exit_edges_find, flow_loop_nodes_find,
5898          flow_loop_pre_header_scan, flow_loop_pre_header_find,
5899          flow_loop_tree_node_add, flow_loops_tree_build,
5900          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
5901          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
5902         Move here from flow.c
5903         * flow.c: Remove everything moved elsewhere
5904         * output.h (cleanup_cfg): Return bool.
5905
5906         * bb-reorder.c (reorder_block_def): Remove 'index'.
5907         (insert_intra_1): Add argument BB, set block for new note.
5908         (make_reorder_chain): Do not depdent on BB indexes.
5909         (make_reorder_chain_1): Do not use BB indexes.
5910         (label_for_bb): Likewise; set BB for new insn.
5911         (emit_jump_to_block_after): Likewise.
5912         (fixup_reoder_chain): Sanity check that all basic blocks
5913         are chained; verify newly created insn chain; remove
5914         undocnitional jump simplifying; Do not use BB indexes;
5915         properly initialize count and frequency information;
5916         dump reordered sequence.
5917         (insert_intra_bb_scope_notes): update call of insert_intra_1.
5918         (insert_inter_bb_scope_notes): Set block for new insn.
5919         (reorder_basic_blocks): Dump flow info before reoredering.
5920
5921 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5922
5923         * alias.c (clear_reg_alias_info): Use K&R format definition.
5924         Avoid unsigned warning.
5925         * builtins.c: Use "unsigned int", not "unsigned".
5926         (target_char_cast): Use host_integerp and tree_low_cst.
5927         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
5928         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
5929         (c_getstr): Likewise.
5930         (std_expand_builtin_va_arg): Use int_size_in_bytes.
5931         (builtin_memcpy_read_str): Avoid unsigned warning.
5932         (expand_builtin_memcpy): Alignments are unsigned.
5933         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
5934         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
5935         * predict.c (expensive_function_p): LIMIT now unsigned.
5936         * resource.c (mark_target_live_regs): Make some vars unsigned.
5937         * sdbout.c: Use "unsigned int", not "unsigned".
5938         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
5939         (sdbout_source_line): Likewise.
5940         (sdbout_record_type_name): Remove "const" for NAME declaration.
5941         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
5942
5943 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
5944
5945         * calls.c (store_one_arg): Expand comment.
5946
5947 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5948
5949         * calls.c (store_one_arg): Make sure that the entire argument is
5950         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
5951
5952 2001-09-09  Richard Henderson  <rth@redhat.com>
5953
5954         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
5955
5956 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
5957
5958         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
5959
5960 2001-09-09  Richard Henderson  <rth@redhat.com>
5961
5962         * config/alpha/alpha.c (alpha_next_sequence_number): New.
5963         (alpha_this_literal_sequence_number): New.
5964         (alpha_this_gpdisp_sequence_number): New.
5965         (some_operand, input_operand): Add HIGH.
5966         (local_symbolic_operand): New.
5967         (alpha_encode_section_info): New.
5968         (alpha_legitimate_address_p): Allow LO_SUM.
5969         (alpha_legitimize_address): Generate HIGH+LO_SUM.
5970         (alpha_expand_mov): Likewise.
5971         (secondary_reload_class): Check memory_operand not general_operand
5972         for FP_REGS test.
5973         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
5974         (alpha_expand_unaligned_store): Likewise.
5975         (alpha_expand_unaligned_load_words): Likewise.
5976         (alpha_expand_unaligned_store_words): Likewise.
5977         (alpha_expand_block_clear): Likewise.
5978         (print_operand): Handle %#, %*, %H.
5979         (print_operand_address): Handle LO_SUM.
5980         (find_lo_sum): New.
5981         (alpha_does_function_need_gp): Use it.
5982         (alpha_expand_block_move): Fix signed compare warnings.
5983         (alpha_sa_mask, alpha_align_insns): Likewise.
5984         * config/alpha/alpha-protos.h: Update.
5985         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
5986         (MASK_EXPLICIT_RELOCS): New.
5987         (TARGET_SWITCHES): Add -mexplicit-relocs.
5988         (EXTRA_CONSTRAINT): Add 'T'.
5989         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
5990         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
5991         (ENCODE_SECTION_INFO): Out line.
5992         (REDO_SECTION_INFO_P): New.
5993         (STRIP_NAME_ENCODING): New.
5994         (ASM_OUTPUT_LABELREF): New.
5995         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
5996         (PREDICATE_CODES): Update.
5997         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
5998         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
5999         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
6000         builtin_setjmp_receiver_er, exception_receiver_1_er,
6001         call_value_osf_1_er): New patterns.
6002         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
6003         (movqi, movhi, movsi): Add explicit $31 base register to lda.
6004         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
6005         (FINAL_PRESCAN_INSN): New.
6006
6007 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
6008
6009         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
6010
6011 2001-09-08  Andreas Jaeger  <aj@suse.de>
6012
6013         * i386.h (TARGET_SWITCHES): Fix description.
6014
6015 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
6016
6017         * rs6000.c (num_insns_constant): Compute number of instructions
6018         more accurately.
6019
6020         * doc/install.texi: Explain AIX exception handling work-around.
6021         Update URL for AIX fixes.
6022
6023 2001-09-07  Jim Wilson  <wilson@redhat.com>
6024
6025         * alias.c (clear_reg_alias_info): New.
6026         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
6027         * rtl.h (clear_reg_alias_info): Declare.
6028
6029 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6030
6031         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
6032         available.
6033         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
6034         (m16m,edivm,emulm): Change declaration to match definition.
6035
6036 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
6037
6038         * reload.c (push_reload): Check for subreg_lowpart_p instead of
6039         SUBREG_BYTE being 0 when determining if the inner part of a subreg
6040         can be reloaded.
6041
6042 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6043
6044         * c-common.c (signed_or_unsigned_type): Handle machine mode types
6045         which have no corresponding C type.
6046         * fold_const.c (target_isinf,target_isnan,target_negative): Update
6047         the representation of 64-bit doubles to work with 64-bit ints.
6048
6049 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
6050
6051         * config/mips/mips.c (override_options): Do not override ISA when ABI
6052         specified if MIPS_CPU_STRING_DEFAULT was specified.
6053
6054 2001-09-07  Richard Henderson  <rth@redhat.com>
6055
6056         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
6057         (express_from_1): Wrap lines.
6058         * rtlanal.c (commutative_operand_precedence): Rename from
6059         operand_preference; export.
6060         * rtl.h: Declare it.
6061         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
6062         (simplify_binary_operation): Invoke simplify_plus_minus on
6063         (CONST (PLUS ...)) as well.
6064         (struct simplify_plus_minus_op_data): New.
6065         (simplify_plus_minus_op_data_cmp): New.
6066         (simplify_plus_minus): Use them.  Avoid infinite recursion with
6067         simplify_binary_operation wrt CONST.
6068
6069 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
6070
6071         * h8300-protos.h (general_operand_dst_push): Remove.
6072         * h8300.c (general_operand_dst_push): Likewise.
6073         * h8300.h (OK_FOR_T): Likewise.
6074         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
6075         * h8300.md (pushqi_h8300): New.
6076         (pushqi_h8300hs): Likewise.
6077         (pushqi): Likewise.
6078         (pushhi_h8300): Likewise.
6079         (pushhi_h8300hs): Likewise.
6080         (pushhi): Likewise.
6081
6082 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6083
6084         * genattrtab.c (attr_printf): First arg is unsigned.
6085         Clean up formatting of callers.
6086
6087 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
6088
6089         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
6090         registers.
6091
6092 2001-09-07  Andreas Jaeger  <aj@suse.de>
6093
6094         * i386.h (TARGET_SWITCHES): Fix descriptions.
6095
6096 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6097
6098         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
6099
6100 2001-09-06  Ira Ruben  <ira@apple.com>
6101
6102         Remove OP_IDENTIFIER.
6103         * tree.def (OP_IDENTIFIER): Remove.
6104         * tree.c (tree_node_kind enum): Remove op_id_kind.
6105         (tree_node_kind_names): Remove "op_identifiers".
6106         (make_node): Remove OP_IDENTIFIER test.
6107         (build_op_identifier): Removed because it isn't being used.
6108         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
6109         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
6110
6111 2001-09-06  Richard Henderson  <rth@redhat.com>
6112
6113         * simplify-rtx.c (simplify_binary_operation): Revert last change.
6114
6115 2001-09-06  Richard Henderson  <rth@redhat.com>
6116
6117         * simplify-rtx.c (simplify_binary_operation): Simplify contents
6118         of CONST.
6119
6120 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6121
6122         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
6123         number used for CR register.
6124
6125 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
6126                           Joern Rennecke (amylaar@cygnus.com)
6127
6128         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
6129         * h8300.c (initial_offset): Handle offset between RP and FP.
6130         (h8300_return_addr_rtx): New function.
6131         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
6132         return register.
6133         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
6134         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6135         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
6136         (CAN_ELIMINATE, REGISTER_NAMES):
6137         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
6138
6139 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
6140
6141         Remove TYPE_NONCOPIED_PARTS.
6142         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
6143         (struct tree_type): Remove noncopied_parts.
6144         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
6145         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
6146         (fixed_type_p): Remove.
6147         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
6148         (expand_expr, MODIFY_EXPR): Likewise.
6149         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
6150         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
6151
6152 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
6153
6154         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
6155         compiler warnings.
6156         (mask64_operand): Likewise.
6157         (includes_rldic_lshift_p): Likewise.
6158         (includes_rldicr_lshift_p): Likewise.
6159
6160 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
6161
6162         * objc/objc-act.c (build_message_expr): If a class method cannot
6163         be found, do not issue a warning if a corresponding instance
6164         method exists in the root class.
6165
6166 2001-09-05  Richard Henderson  <rth@redhat.com>
6167
6168         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
6169
6170 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
6171
6172         * function.c (ggc_mark_struct_function): Mark f->outer.
6173         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
6174         * integrate.c (output_inline_function): ... not here.
6175
6176 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
6177
6178         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
6179
6180         * i386.c (size_cost): New static variable.
6181         (override_function): Use size_cost when -Os is specified.
6182
6183         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
6184         properly;  Use current_function_calls_eh_return.
6185         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
6186         use leave to avoid dependency chain.
6187
6188         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
6189         get BB loop_depth instead of computing it from LOOP notes.
6190
6191         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
6192
6193 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6194
6195         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6196         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6197         UNALIGNED_DOUBLE_INT_ASM_OP): Define
6198
6199 2001-09-05  Jeffrey A Law  (law@cygnus.com)
6200             Jason Merrill (jason@redhat.com)
6201
6202         * stor-layout.c (layout_type): Complain if an array's size can
6203         not be represented in a size_t.
6204
6205         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
6206
6207 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
6208
6209         * gcc.c: (process_command) Add parentheses around assignment
6210         used as truth value.
6211
6212 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
6213
6214         * config/mips/mips.c (save_restore_insns): Don't mark any register
6215         save slots as unchanging if current_function_calls_eh_return.
6216
6217 2001-09-05  Richard Henderson  <rth@redhat.com>
6218
6219         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
6220         * config/alpha/alpha-protos.h: Declare it.
6221         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
6222         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
6223         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
6224         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
6225         (REG_OK_FOR_BASE_P): Select one of the above.
6226
6227 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
6228
6229         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
6230         (crti.o): Prefix name of object file with $(T).
6231         (crtn.o): Likewise.
6232
6233 2001-09-05  David S. Miller  <davem@redhat.com>
6234
6235         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
6236         * config/sparc/linux64.h: Likewise.
6237
6238 2001-09-05  Andreas Jaeger  <aj@suse.de>
6239
6240         * doc/invoke.texi (i386 Options): -mwide-multiply is not
6241         available anymore, remove the documentation.
6242         (i386 Options): Fix typo, cleanup index entries.
6243
6244         * prefix.c (concat): Remove, we can use the version from liberty.
6245
6246 2001-09-05  Richard Henderson  <rth@redhat.com>
6247
6248         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
6249         New functions split out of md file expanders.
6250         * config/alpha/alpha-protos.h: Declare them.
6251         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
6252
6253 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6254
6255         * cppmacro.c (funlike_invocation_p): No need to restore context.
6256
6257 2001-09-04  Richard Henderson  <rth@redhat.com>
6258
6259         * reload.c (push_reload): Export.
6260         * reload.h (push_reload): Declare it.
6261
6262         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
6263         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6264         * config/alpha/alpha.c (alpha_legitimize_address): New.
6265         (alpha_legitimize_reload_address): Likewise.
6266         * config/alpha/alpha-protos.h: Declare them.
6267
6268 2001-09-04  Stan Shebs  <shebs@apple.com>
6269
6270         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
6271         * config/darwin.c (machopic_stub_name): Account for internally
6272         generated lib calls such as memcpy.
6273
6274 2001-09-04  Richard Henderson  <rth@redhat.com>
6275
6276         * unwind.h (_UA_END_OF_STACK): New flag.
6277         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
6278
6279 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
6280
6281         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
6282
6283 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
6284
6285         * config/mips/mips.c (save_restore_insns): Change base_offset to
6286         fp_offset in second call to mips_emit_frame_related_store.
6287
6288 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
6289
6290         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
6291         sometimes be represented as a NOTE of type
6292         NOTE_INSN_DELETED_LABEL.
6293         (Insns): Document NOTE_INSN_DELETED_LABEL.
6294
6295 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
6296
6297         * c-common.h (tree_dump_index): Add more comments.
6298         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
6299         (dump_option_value_info): New struct.
6300         (dump_options): New array.
6301         (dump_switch_p): Parse switch options symbolically.
6302         * doc/invoke.texi (-fdump-ast): Rename to ...
6303         (-fdump-tree): ... here. Document that options are symbolic, and
6304         not all are applicable.
6305
6306 2001-09-04  David S. Miller  <davem@redhat.com>
6307
6308         * config/sparc/sparc.md (define_splits): Kill constraints.
6309
6310         Cleanup redundant and unused insn attributes.
6311         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
6312         binary, and move.  Mark ialu as default.
6313         (commented out define_function_unit "alu"): Kill.
6314         (define_attr "use_clobbered"): Kill.
6315         (whole file): Kill address insn type references.  Replace
6316         all unary/binary/move references with ialu.
6317         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
6318         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
6319         TYPE_IALU.
6320
6321         Simplify length insn attribute and make more judicious use
6322         of insn attribute defaulting.
6323         * config/sparc/sparc.md (all insns with length > one): Mark as
6324         insn type multi if real instructions, else use default if
6325         it is a forced splitter.
6326         (all insns with length == one): Use default insn length.
6327         (all insns of type ialu): Use default insn type.
6328
6329         Fix erroneous insn attribute settings.
6330         (addx): Set insn type to misc.
6331         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
6332         const_umulsidi3_sp64): Set insn type to imul.
6333
6334         Track SFmode vs DFmode insns according to UltraSPARC
6335         scheduling rules.
6336         * config/sparc/sparc.md ("fptype"): New attribute, default
6337         to "single".
6338         (all DFmode single insns): Mark as fptype "double".
6339
6340 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
6341
6342         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
6343
6344 2001-09-03  Richard Henderson  <rth@redhat.com>
6345
6346         * function.h (struct function): Add arg_pointer_save_area_init.
6347         * function.c (expand_function_end): Init arg_pointer_save_area.
6348         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
6349         when called from a nested function.
6350
6351 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
6352
6353         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
6354         is enabled.
6355
6356 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
6357
6358         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
6359
6360 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
6361
6362         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
6363         (emit_push_insn): Use specified padding direction when
6364         STACK_PUSH_CODE is POST_INC.
6365
6366         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
6367
6368 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6369
6370         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
6371
6372 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6373
6374         * cppinit.c (cpp_start_read): Free the imacros list as we
6375         traverse it.  Don't free the chains before returning.
6376         (_cpp_push_next_buffer): Only try pushing buffers if we've
6377         completed -imacros handling.
6378
6379 2001-08-31  Eric Christopher  <echristo@redhat.com>
6380
6381         * gcc.c (handle_braces): Add explaination for abort.
6382
6383 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
6384
6385         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
6386         move adjustment of bitpos instead.
6387
6388 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
6389
6390         * function.c: Remove all_functions.  Make outer_function_chain
6391         static.
6392         (init_function_start): Don't add new function structure to
6393         all_functions.
6394         (find_function_data, push_function_context_to,
6395         pop_function_context_from, put_var_into_stack,
6396         trampoline_address): Update for changed structure element names.
6397         (push_function_context_to): Disentangle.
6398         (free_after_compilation): Also free F.
6399         (expand_dummy_function_end): Don't free cfun here.
6400         (put_var_into_stack): Comment why we can't use find_function_data here.
6401         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
6402         (mark_function_chain): Split into maybe_mark_struct_function and
6403         ggc_mark_struct_function.  Export the latter.
6404         (init_function_once): Mark from cfun and outer_function_chain;
6405         not all_functions.
6406
6407         * function.h (struct function): Kill next_global.  Rename next
6408         to outer.  All users updated to match.
6409         (all_functions, outer_function_chain): Don't declare.
6410
6411         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
6412         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
6413         don't touch f->inlinable, after calling rest_of_compilation.
6414
6415         * tree.h: Forward-declare struct function.  Prototype
6416         ggc_mark_struct_function.
6417
6418 2001-08-31  Kazu Hirata  <kazu@hxi.com>
6419
6420         * config/h8300/h8300.md (*andorhi3): Fix typos.
6421
6422 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6423
6424         * calls.c (emit_library_call_value): Don't use a fixed
6425         argument after VA_CLOSE, i.e. out of scope in traditional C.
6426
6427         * emit-rtl.c (gen_rtvec): Likewise.
6428
6429 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6430
6431         * Makefile.in (c-pragma.o): Depend on output.h.
6432         (reorg.o): Depend on except.h.
6433
6434         * c-pragma.c: Include output.h.
6435
6436         * reorg.c: Include except.h.
6437
6438         * unwind-dw2.c: Call __builtin_alloca, not alloca.
6439
6440 2001-08-31  Richard Henderson  <rth@redhat.com>
6441
6442         * sched-deps.c (add_dependence): Don't elide dependency if the
6443         conditional used by insn is modified in elem.
6444
6445 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
6446
6447         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
6448
6449 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
6450
6451         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
6452         dump_switch_p.
6453
6454 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
6455
6456         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
6457         function.
6458         (stormy16_asm_out_constructor): New function.
6459         (TARGET_ASM_CONSTRUCTOR): Define.
6460         (TARGET_ASM_DESTRUCTOR): Define.
6461
6462 2001-08-31  Andreas Jaeger  <aj@suse.de>
6463
6464         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
6465         * loop.c (add_label_notes): Likewise.
6466         * reload.c (find_reloads): Likewise.
6467         * config/sh/sh.c (machine_dependent_reorg): Likewise.
6468
6469 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
6470
6471         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
6472         code here.  Take _Unwind_{W,Sw}ord*.
6473         (read_encoded_value_with_base): Use them.
6474         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
6475         words.
6476         (extract_cie_info): Simplify read_?leb128 handling.
6477         (execute_stack_op, execute_cfa_program): Likewise.
6478         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
6479
6480 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
6481
6482         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
6483         the frame pointer to pop the stack if convenient.
6484
6485         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
6486         Don't use post-increment before combine.
6487         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
6488         a call-saved register.
6489
6490 2001-08-31  Andreas Jaeger  <aj@suse.de>
6491
6492         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
6493         code was correct.
6494
6495 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
6496
6497         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
6498         not DIV/MOD, of course.
6499
6500 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
6501
6502         * rtl.def: Undo my patch commited 2001-08-27.
6503
6504         * genattrtab.c: Ditto.
6505
6506         * rtl.h: Ditto.
6507
6508         * sched-int.h: Ditto.
6509
6510         * target-def.h: Ditto.
6511
6512         * target.h: Ditto.
6513
6514         * haifa-sched.c: Ditto.
6515
6516         * sched-rgn.c: Ditto.
6517
6518         * sched-vis.c: Ditto.
6519
6520         * Makefile.in: Ditto.
6521
6522         * doc/md.texi: Ditto.
6523
6524         * doc/tm.texi: Ditto.
6525
6526         * doc/contrib.texi: Ditto.
6527
6528         * doc/gcc.texi: Ditto.
6529
6530         * genattrtab.h: Remove it.
6531
6532         * genautomata.c: Remove it.
6533
6534         * genattr.c: Undo my patch and Richard Henderson's patch commited
6535         2001-08-27.
6536
6537 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
6538
6539         * config.gcc (h8300-*-elf*): New case.
6540         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
6541         (SUBTARGET_CPP_SPEC): Define.
6542         (EXTRA_SPECS): Define.
6543         (SUBTARGET_EXTRA_SPECS): Define.
6544         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
6545         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
6546
6547 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
6548
6549         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
6550         (LIB2FUNCS_EXTRA): Define.
6551         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
6552         config/h8300/fixunssfsi.c: New file.
6553
6554 2001-08-30  Kazu Hirata  <kazu@hxi.com>
6555
6556         * config/h8300/h8300.md (zero_extendqihi2): Changes to
6557         define_expand to accommodate target-specific attributes.
6558         (anonymous zero_extendqihi2 patterns): New.
6559
6560 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
6561
6562         * h8300.md (*andorhi3): New pattern.
6563
6564 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
6565
6566         * h8300.c (dosize): Fix test for "sub".
6567
6568 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
6569
6570         * c-typeck.c (pointer_diff): Try to eliminate common term before
6571         doing conversions.
6572
6573 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
6574
6575         * config/arm/arm.c (arm_compute_initial_elimination_offset):
6576         Account for the saves of the FP registers.
6577
6578         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
6579         (TEXT_SECTION_ASM_OP): Define.
6580         (INIT_SECTION_ASM_OP): Define.
6581         (FINI_SECTION_ASM_OP): Define.
6582         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
6583         (RDATA_SECTION_FUNCITON): Provide prototype.
6584
6585 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
6586
6587         * reload1.c (move2add_note_store): Correct typo checking for
6588         argument pushes.
6589
6590 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
6591
6592         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
6593         note should not be considered outside the libcall block.
6594
6595 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6596
6597         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
6598
6599 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6600
6601         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
6602
6603 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6604
6605         * config/h8300/h8300-protos.h: Add a prototype for
6606         emit_logical_op.
6607         * config/h8300/h8300.c (emit_logical_op): New.
6608         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
6609         (andsi3): Likewise.
6610         (iorhi3): Likewise.
6611         (iorsi3): Likewise.
6612         (xorhi3): Likewise.
6613         (xorsi3): Likewise.
6614
6615 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6616
6617         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
6618         comparison with rtx INTVAL.
6619         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
6620         expression.
6621         * pa.h (FUNCTION_ARG_SIZE): Likewise.
6622
6623 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6624
6625         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
6626         comment typos.
6627
6628 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6629
6630         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
6631         (reg n) to (mem (pre_dec (reg n))
6632         (anonymous movsi pattern): Likewise.
6633
6634 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6635
6636         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
6637
6638 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6639
6640         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
6641         several special constants.
6642
6643 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6644
6645         * config/h8300/lib1funcs.asm: Fix comment typos.
6646
6647 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6648
6649         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
6650         Fix format specifier warnings.
6651
6652         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
6653         inet_makeaddr, semctl): Prototype.
6654
6655         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
6656         (save_restore_insns): Use base_offset, not gp_offset.
6657
6658         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
6659         (ASM_OUTPUT_BYTE): Fix format specifier warning.
6660
6661 2001-08-29  Richard Henderson  <rth@redhat.com>
6662
6663         * bb-reorder.c (function_tail_eff_head): New.
6664         (record_effective_endpoints): Set it.
6665         (fixup_reorder_chain): Use it.
6666
6667 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6668
6669         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
6670
6671 2001-08-28  Dale Johannesen  <dalej@apple.com>
6672
6673         * config/darwin.c (machopic_function_base_name): Add const
6674         qualifier to a string.
6675         (darwin_encode_section_info): Ditto.
6676
6677 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6678
6679         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
6680         function definition.
6681
6682 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
6683
6684         * df.h (struct df): Add rts_order variable.
6685
6686         * df.c (df_visit_next_rts): New function.
6687         (df_visit_next): Renamed to df_visit_next_rc
6688         (df_analyse_1): Allocate/compute/free rts_order as well.
6689         (df_rd_global_compute): Use df_visit_next_rc instead of
6690         df_visit_next.
6691         (df_ru_global_compute): Use df_visit_next_rts instead of
6692         df_visit_next.
6693
6694         * flow.c (flow_reverse_top_sort_order_compute): New function.
6695
6696         * basic-block.h: Add prototype.
6697
6698 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
6699
6700         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
6701         blocks, the BB_REACHABLE is now set, rather than aux being
6702         non-NULL. Update the test to reflect this.
6703
6704 2001-08-28  Eric Christopher  <echristo@redhat.com>
6705
6706         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
6707         config/mips/crti.asm: Ditto.
6708
6709 2001-08-28  Eric Christopher <echristo@redhat.com>
6710             Richard Henderson <rth@redhat.com>
6711
6712         * c-pragma.h (add_weak): Move prototype from here...
6713         * output.h (add_weak): ... to here.
6714         * varasm.c (add_weak): Fix typo.
6715         * config/mips/crti.asm: New file.
6716         * config/mips/crtn.asm: Ditto.
6717         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
6718         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
6719         (INVOKE__main): Ditto.
6720         (INIT_SECTION_ASM_OP): New.
6721         (FINI_SECTION_ASM_OP): Ditto.
6722         (STARTFILE_SPEC): Add crti.
6723         (ENDFILE_SPEC): Add crtn.
6724         * config/mips/elf64.h: Same.
6725         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
6726         Remove.
6727         * config/mips/vxworks.h: Ditto.
6728         * config/mips/t-elf: Support crti and crtn.
6729
6730 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6731
6732         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
6733         INSN_LIST.
6734
6735 2001-08-28  Richard Henderson  <rth@redhat.com>
6736
6737         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
6738         (one_cmplbi2 splitter): Remove redundant test.
6739
6740 2001-08-28  Dale Johannesen  <dalej@apple.com>
6741
6742         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
6743
6744 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
6745
6746         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
6747
6748 2001-08-28  Stan Shebs  <shebs@apple.com>
6749
6750         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
6751         (UNALIGNED_SHORT_ASM_OP): Define.
6752         (UNALIGNED_INT_ASM_OP): Define.
6753
6754 2001-08-28  Will Cohen  <wcohen@redhat.com>
6755
6756         * config/rs6000/rs6000.md (store_multiple): Correct RTL
6757         generation for first set.
6758
6759 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
6760
6761         * flow.c (redirect_edge_succ_nodup): Return new edge.
6762         (try_simplify_condjump): Use new edge.
6763         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
6764
6765         * cse.c (cse_basic_block): Skip note instructions.
6766
6767 2001-08-27  Richard Henderson  <rth@redhat.com>
6768
6769         * combine.c (combine_simplify_rtx): Don't reverse condition
6770         if there is no reverse for the condition.
6771         (simplify_comparison): Don't simplify subregs from INT to FP.
6772
6773         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
6774         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
6775         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
6776         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
6777         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
6778         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
6779
6780 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
6781
6782         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
6783         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
6784         (pushqi1): New.
6785         (adddi_dilshr32, adddi_dishl32): Only data register can be
6786         source for mem destination.
6787
6788         * expmed.c (store_bit_field): Ignore adjustment to bitpos
6789         and use bitnum to decide about register move.
6790
6791 2001-08-27  Richard Henderson  <rth@redhat.com>
6792
6793         * genattr.c (main): Emit state_t even when not doing scheduling.
6794
6795 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
6796             Richard Henderson  <rth@redhat.com>
6797
6798         * gcse.c (reg_first_set, reg_last_set): Replace with ...
6799         (reg_avail_info, current_bb): ... these.
6800         (oprs_unchanged_p, record_last_reg_set_info): Use them.
6801         (compute_hash_table): Likewise.
6802
6803 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
6804
6805         * flow.c (verify_flow_info): Use checksums to verify edges.
6806
6807 2001-08-27  Richard Henderson  <rth@redhat.com>
6808
6809         * genautomata.c (expand_automata): Always create a description.
6810
6811 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
6812
6813         * optabs.c (expand_binop): Correctly handle the carry in multiword
6814         add/subtract operations.
6815
6816 2001-08-27  Fred Fish  <fnf@be.com>
6817
6818         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
6819         __SIZE_TYPE__.
6820
6821 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
6822
6823         * reload.c (find_reloads_toplev): Back out this change:
6824
6825         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
6826
6827         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
6828         mem if the address is a mode_dependent_address_p.
6829
6830 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
6831
6832         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
6833         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
6834         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
6835         RTL constructions.
6836
6837         * genattr.c (main): New variable num_insn_reservations.  Increase
6838         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
6839         pipeline hazard recognizer interface.
6840
6841         * genattrtab.h: New file.
6842
6843         * genattrtab.c: Include genattrtab.h.
6844         (attr_printf, check_attr_test, make_internal_attr,
6845         make_numeric_value): Move protypes into genattrtab.h.  Define them
6846         as external.
6847         (num_dfa_decls): New global variable.
6848         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
6849         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
6850         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
6851         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
6852
6853         * genautomata.c: New file.
6854
6855         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
6856
6857         * sched-int.h: (curr_state): Add the external definition for
6858         automaton pipeline interface.
6859         (haifa_insn_data): Add comments for members blockage and units.
6860
6861         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6862         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6863         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6864         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6865         TARGET_SCHED_DFA_POST_CYCLE_INSN,
6866         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6867         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
6868         macros.
6869         (TARGET_SCHED): Use the new macros.
6870
6871         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
6872         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
6873         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
6874         dfa_bubble): New members in gcc_target.sched.
6875
6876         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
6877         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
6878         (insn_queue): Redefine it as pointer to array.
6879         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
6880         INSN_QUEUE_SIZE.
6881         (max_insn_queue_index_macro_value): New variable.
6882         (curr_state, dfa_state_size, ready_try): New varaibles for
6883         automaton interface.
6884         (ready_element, ready_remove, max_issue): New function prototypes
6885         for automaton interface.
6886         (choose_ready): New function prototype.
6887         (insn_unit, blockage_range): Add comments.
6888         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
6889         FUNCTION_UNITS_SIZE == 0.
6890         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
6891         actual_hazard, potential_hazard): Add comments.
6892         (insn_cost): Use cost -1 as undefined value.  Remove
6893         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
6894         pipeline interface.
6895         (ready_element, ready_remove): New functions for automaton
6896         interface.
6897         (schedule_insn): Add new code for automaton pipeline interface.
6898         (queue_to_ready): Add new code for automaton pipeline interface.
6899         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
6900         (debug_ready_list): Print newline when the queue is empty.
6901         (max_issue): New function for automaton pipeline interface.
6902         (choose_ready): New function.
6903         (schedule_block): Add new code for automaton pipeline interface.
6904         Print ready list before scheduling each insn.
6905         (sched_init): Add new code for automaton pipeline interface.
6906         Initiate insn cost by -1.
6907         (sched_finish): Free the current automaton state and finalize
6908         automaton pipeline interface.
6909
6910         * sched-rgn.c: Include target.h.
6911         (init_ready_list, new_ready, debug_dependencies): Add new code for
6912         automaton pipeline interface.
6913
6914         * sched-vis.c: Include target.h.
6915         (get_visual_tbl_length): Add code for automaton interface.
6916         (target_units, print_block_visualization):  Add comments.
6917
6918         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
6919         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
6920         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
6921         (getruntime.o, genautomata.o): New entries.
6922         (genattrtab.o): Add new dependency file genattrtab.h.
6923         (genattrtab): Add new dependencies.  Link it with `libm.a'.
6924         (getruntime.o, hashtab.o): New entries for canadian cross.
6925
6926         * doc/md.texi: Description of automaton based model.
6927
6928         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
6929         Add comments.
6930         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6931         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6932         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6933         TARGET_SCHED_DFA_POST_CYCLE_INSN,
6934         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6935         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6936         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
6937         hook descriptions.
6938         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
6939         MAX_DFA_ISSUE_RATE): New macro descriptions.
6940
6941         * doc/contrib.texi: Add dfa based scheduler contribution.
6942
6943         * doc/gcc.texi: Add more information about genattrtab.
6944
6945 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
6946
6947         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
6948         an RTL basic block.
6949
6950 2001-08-27  Richard Henderson  <rth@redhat.com>
6951
6952         * function.c (expand_function_end): Don't init arg_pointer_save_area.
6953         (get_arg_pointer_save_area): New.  Create an init it here.
6954         (fix_lexical_addr): Use it.
6955         * function.h: Declare it.
6956         * builtins.c (expand_builtin_setjmp_receiver): Use it.
6957         * stmt.c (expand_nl_goto_receiver): Use it.
6958
6959 2001-08-27  Richard Henderson  <rth@redhat.com>
6960
6961         * final.c (final_scan_insn): Don't enter APP_ON mode for
6962         empty asm strings.
6963
6964         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
6965         alignment for assemble_integer for DW_EH_PE_aligned.
6966         * except.c (output_function_exception_table): Likewise.
6967
6968 2001-08-26  Andreas Jaeger  <aj@suse.de>
6969
6970         * c-tree.h: Add prototyp for c_sizeof_nowarn.
6971
6972 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
6973
6974         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
6975
6976 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
6977
6978         * config/rs6000/rs6000.c (mask_operand): Rewrite without
6979         bit-shifting loop.
6980         (mask64_operand): Likewise.
6981         (rldic_operand): Delete.
6982         (includes_lshift64_p): Delete.
6983         (includes_rldic_lshift_p): New function.
6984         (includes_rldicr_lshift_p): New function.
6985         (print_operand): Don't call rldic_operand in case 'W'.
6986         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
6987         (includes_lshift64_p): Remove.
6988         (includes_rldic_lshift_p): Declare.
6989         (includes_rldicr_lshift_p): Declare.
6990         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
6991         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
6992         Replace match_operand rldic_operand predicate with
6993         const_int_operand.  Replace includes_lshift64_p condition with
6994         includes_rldic_lshift_p.
6995         <ashldi3_internal 64 bit rldicr patterns>: New.
6996
6997 2001-08-27  Andreas Jaeger  <aj@suse.de>
6998
6999         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
7000         * errors.c: Likewise.
7001         * final.c: Likewise.
7002         * dwarf2asm.c: Likewise.
7003         * doprint.c (checkit): Likewise.
7004         * diagnostic.c: Likewise.
7005         * collect2.c: Likewise.
7006         * calls.c: Likewise.
7007         * c-semantics.c (build_stmt): Likewise.
7008         * c-format.c (status_warning): Likewise.
7009         * c-errors.c (pedwarn_c99): Likewise.
7010         * builtins.c (validate_arglist): Likewise.
7011         * config/pj/pj.c (pj_printf): Likewise.
7012         * fix-header.c: Likewise.
7013         * gcc.c: Likewise.
7014         * gcov.c (fnotice): Likewise.
7015         * gensupport.c (message_with_line): Likewise.
7016         * mips-tfile.c: Likewise.
7017         * protoize.c (notice): Likewise.
7018         * read-rtl.c (fatal_with_file_and_line): Likewise.
7019         * rtl-error.c: Likewise.
7020         * tradcpp.c: Likewise.
7021         * tree.c: Likewise.
7022         * cp/tree.c (build_min_nt): Likewise.
7023         (build_min): Likewise.
7024         * cp/lex.c: Likewise.
7025         * cp/errfn.c: Likewise.
7026         * cp/rtti.c (create_pseudo_type_info): Likewise.
7027
7028 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
7029
7030         * df.c (df_uses_record): Return after recording all uses
7031         in ASM_OPERANDS.
7032
7033 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
7034
7035         * df.c (df_insn_modify): Realloc the INSN table here, if
7036         necessary, here, too.
7037
7038 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
7039
7040         * config/mips/mips.c (mips_function_value): Handle complex return
7041         values.
7042
7043 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
7044
7045         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
7046         unshared.
7047         * reload.c (make_memloc): Copy result if it is still
7048         reg_equiv_memory_loc[regno] on return.
7049         (subst_reloads) [ENABLE_CHECKING]: Check that none of
7050         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
7051         reg_equiv_mem are modified by the substitutions.
7052
7053 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
7054
7055         * predict.c (expensive_function_p): New.
7056         * rtl.h (expensive_function_p): Declare.
7057         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
7058         (use_fast_prologue_epilogue): New static variable.
7059         (expand_prologue): Set it; emit short prologues if unset.
7060         (expand_epilogue): Likewise.
7061
7062 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
7063
7064         * config.gcc: Add stormy16-*-elf case.
7065         * config/stormy16/stormy-abi: New file.
7066         * config/stormy16/stormy16-lib2.c: New file.
7067         * config/stormy16/stormy16-protos.h: New file.
7068         * config/stormy16/stormy16.c: New file.
7069         * config/stormy16/stormy16.h: New file.
7070         * config/stormy16/stormy16.md: New file.
7071         * config/stormy16/t-stormy16: New file.
7072
7073 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
7074
7075         * i386.h (no-accumulate-outgoing-args): Use proper mask.
7076
7077 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
7078
7079         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
7080         descriptor members are pointer size, not constant 4.
7081         * config/rs6000/rs6000.md (define_splits): Remove more unused
7082         constraints.
7083
7084 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7085
7086         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
7087
7088 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
7089
7090         * cp/rtti.c (VPARAMS): Fix parameter.
7091
7092 2001-08-24  Zack Weinberg  <zackw@panix.com>
7093
7094         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
7095         to zero.
7096         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
7097         to switch.
7098         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
7099         in if controlling use of insv.
7100         (extract_bit_field): Likewise, for extv and extzv.
7101
7102 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
7103
7104         * i386.md (movcc peep2): Fix load of 0.
7105
7106 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7107
7108         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
7109         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
7110
7111 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
7112
7113         * c-pragma.h: Move weak_syms and weak_decls...
7114         * varasm.c: ...here.  Now static.
7115         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
7116         depend on HANDLE_PRAGMA_WEAK.
7117
7118         * c-common.c (c_alignof, c_alignof_expr): Move here...
7119         * c-typeck.c: ...from here.
7120         * c-tree.h, c-common.h: Adjust.
7121
7122 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
7123
7124         * config/ia64/ia64.c (rws_update): If !pred, set write_count
7125         instead of incrementing it.
7126
7127         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
7128         asm ready, don't try to move them all into the same array element.
7129
7130 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
7131
7132         * function.c (thread_prologue_and_epilogue_insns): Avoid
7133         fallthru flag on edge to exit.
7134
7135         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
7136
7137         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
7138         dead edges.
7139
7140 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
7141
7142         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
7143         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
7144         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
7145         Remove prototype.
7146
7147 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
7148
7149         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
7150         replace "GNU CC" with "GCC".
7151
7152 2001-08-23  Richard Henderson  <rth@redhat.com>
7153
7154         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
7155         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
7156         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
7157         Need GR between FR and not GR_AND_FR.
7158         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
7159         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
7160         AR regs before GR regs.
7161         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
7162         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
7163         (REGISTER_MOVE_COST): Update.
7164         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
7165
7166 2001-08-23  Richard Henderson  <rth@redhat.com>
7167
7168         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
7169         a register class.
7170
7171 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
7172
7173         * reload1.c (emit_reload_insns): Don't look for notes
7174         on a NULL store_insn.
7175
7176 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7177
7178         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
7179         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
7180         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
7181         format specifier warnings.
7182         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
7183
7184 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
7185
7186         * config/i386/i386-protos.h: Correct declaration of
7187         i386_pe_asm_named_section.
7188
7189 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7190
7191         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
7192         variable i.
7193         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
7194
7195 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7196
7197         * cpperror.c (print_location): Don't show _Pragma.
7198         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
7199         and file change callback generation here.
7200         (stack_include_file): Update use of cpp_push_buffer.
7201         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
7202         (struct cpp_buffer): Remove type, pfile members.
7203         * cppinit.c (cpp_handle_option): Use free_chain.
7204         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
7205         (skip_escaped_newlines, get_effective_char, lex_percent): Take
7206         a cpp_reader rather than a cpp_buffer.
7207         (skip_escaped_newlines, get_effective_char, skip_block_comment,
7208         skip_line_comment, parse_string, lex_percent, lex_dot,
7209         _cpp_lex_token): Update accordingly.
7210         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
7211         generation here.
7212         (cpp_push_buffer): Update prototype.
7213         (run_directive): Update use of cpp_push_buffer.
7214         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
7215         handle_assertion): Update use of run_directive.
7216         * cpplib.h (enum cpp_buffer_type): Remove.
7217         (cpp_push_buffer): Update prototype.
7218         * fix-header.c (read_scan_file): Update.
7219
7220 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7221
7222         * gcc.c (struct prefix_list): Change prefix to const char *.
7223
7224 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7225
7226         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
7227
7228 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
7229
7230         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
7231         from a new MEM.
7232
7233         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
7234         a squeezable note.
7235         * rtl.h: Adjust.
7236         * ifcvt.c (dead_or_predicable): Adjust.
7237         * loop.c (find_and_verify_loops): Adjust.
7238         * stmt.c (expand_end_case): Adjust.
7239         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
7240         head and end insn pointers in the basic block, not just local copies.
7241         (merge_blocks_move_predecessor_nojumps): Likewise.
7242
7243 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
7244
7245         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
7246         bitmap.h, builtin-types.def, builtins.c, builtins.def,
7247         c-aux-info.c, c-common.c, c-common.def, c-common.h,
7248         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
7249         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
7250         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
7251         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
7252         conditions.h, config.gcc, configure.frag, configure.in,
7253         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
7254         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
7255         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
7256         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
7257         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
7258         emit-rtl.c, errors.c, errors.h, except.c, except.h,
7259         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
7260         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
7261         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
7262         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
7263         gencheck.c, gencodes.c, genconfig.c, genemit.c,
7264         genextract.c, genflags.c, gengenrtl.c, genmultilib,
7265         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
7266         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
7267         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
7268         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
7269         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
7270         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
7271         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
7272         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
7273         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
7274         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
7275         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
7276         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
7277         params.h, predict.c, predict.def, predict.h, prefix.c,
7278         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
7279         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
7280         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
7281         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
7282         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
7283         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
7284         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
7285         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
7286         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
7287         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
7288         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
7289         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
7290         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
7291         xcoffout.h: replace "GNU CC" with "GCC".
7292
7293 2001-08-21  Richard Henderson  <rth@redhat.com>
7294
7295         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
7296         (final_scan_insn): Consider jump tables data even if we have no
7297         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
7298         ADDR_VEC_ALIGN.
7299         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
7300         (ASM_OUTPUT_CASE_END): Remove.
7301         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
7302         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
7303         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
7304
7305 2001-08-21  Richard Henderson  <rth@redhat.com>
7306
7307         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
7308         at barrier insns.  Emit stop bits before barriers.
7309
7310         * flow.c (flow_find_cross_jump): Don't consider unconditional
7311         return insns for commoning.
7312
7313         * final.c (compute_alignments): Fix typo.
7314
7315         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
7316         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
7317         (store_bit_field): Use mode_for_extraction more places.
7318         (extract_bit_field): Likewise.
7319
7320 2001-08-21  Zack Weinberg  <zackw@panix.com>
7321
7322         * caller-save.c: Don't include insn-codes.h.
7323         (reg_save_code, reg_restore_code): Make arrays of int.
7324         All uses updated to match.
7325         (insert_save, insert_restore): No need to initialize "code"
7326         variable upon declaration.
7327         * Makefile.in: update dependencies; fix typo in clean rule.
7328
7329 2001-08-21  Richard Henderson  <rth@redhat.com>
7330
7331         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
7332         (merge_if_block): Handle fallout from same.
7333
7334 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7335
7336         * builtins.c (type_to_class): Fix typo in last change.
7337
7338 2001-08-21  Richard Henderson  <rth@redhat.com>
7339
7340         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
7341         ia64_asm_output_label.
7342
7343         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
7344         copy of gp while the real gp register contains garbage.
7345
7346 2001-08-21  Zack Weinberg  <zackw@panix.com>
7347
7348         * expmed.c (mode_for_extraction): New function.
7349         (store_bit_field, extract_bit_field): Use it.
7350         * expr.h: Prototype it and provide an enum for its first argument.
7351
7352         * combine.c, function.c, recog.c: Don't include insn-codes.h.
7353         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
7354         and digging through the insn_data tables.
7355         * Makefile.in: Update dependencies.
7356
7357 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7358
7359         * cppfiles.c (stack_include_file): line-map.c now handles include
7360         depth.
7361         (handle_missing_handler): Similarly.
7362         (_cpp_execute_include): Similarly.
7363         (_cpp_pop_file_buffer): Similarly.
7364         * cpphash.h (struct cpp_reader): Remove system_include_depth,
7365         buffer_stack_depth and include_depth.
7366         * cpplib.c (do_include_common): line-map.c now handles include depth.
7367         (cpp_push_buffer): Similarly.
7368         (_cpp_pop_buffer): Similarly.
7369         * cppmacro.c (builtin_macro): Update.
7370         * line-map.c (init_line_maps): Set depth.
7371         (add_line_map): Increment "used" earlier.  Update and use the
7372         include depth.
7373         (trace_include): Use the include depth.
7374         * line-map.h (struct line_maps): New member depth.
7375
7376 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7377
7378         * cppfiles.c (stack_include_file): Don't handle -H here.
7379         * cppinit.c (cpp_start_read): Set include tracing after
7380         cpp_post_options and after stacking the main file.
7381         * line-map.c (trace_include): New.
7382         (init_line_maps, add_line_map): Update.
7383         * line-map.h (struct line_maps): New member trace_includes.
7384
7385 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7386
7387         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
7388         * cppfiles.c (stack_include_file): Only stack a file if there
7389         is something to do.  Return a boolean indicating whether a
7390         buffer was stacked or not.
7391         (_cpp_execute_include): Similarly.
7392         (_cpp_read_file): Similarly.
7393         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
7394
7395 2001-08-21  Sam Steingold  <sds@gnu.org>
7396
7397         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
7398         (RECACHE): keep obufp_before_macroname up to date
7399
7400 2001-08-21  Zack Weinberg  <zackw@panix.com>
7401
7402         * stmt.c: Don't include insn-codes.h.
7403         (expand_end_case): Machine specific logic moved to expr.c.
7404         No need to worry about __builtin_classify_type.
7405         (check_for_full_enumeration_handling, emit_case_nodes):
7406         Kill #if 0 blocks.
7407
7408         * builtins.o (expand_builtin_classify_type): Split up so code
7409         can be shared with fold_builtin_classify_type.
7410         (type_to_class, fold_builtin_classify_type): New functions.
7411         (fold_builtins): Handle __builtin_classify_type.
7412
7413         * expr.c (do_tablejump): Now static.
7414         (case_values_threshold, try_casesi, try_tablejump): New;
7415         code mostly from stmt.c (expand_end_case).
7416         (expr.h): Update prototypes.
7417
7418         * Makefile.in (stmt.o): Update dependencies.
7419
7420 2001-08-21  Will Cohen  <wcohen@redhat.com>
7421
7422         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
7423         declaration of variable i.
7424         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
7425         declaration of variable i.
7426
7427 2001-08-21  Richard Henderson  <rth@redhat.com>
7428
7429         * crtstuff.c: Fix thinko last change.  Move list tails to start
7430         of CRT_END section.  Tidy ifdefs.
7431         (__EH_FRAME_BEGIN__): Always static for ELF.
7432         (__do_global_ctors_1): Rename from __frame_dummy.
7433         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
7434         name change; don't hide __EH_FRAME_BEGIN__.
7435
7436 2001-08-21  Richard Henderson  <rth@redhat.com>
7437
7438         * gdbinit.in: Move break on exit after break on fancy_abort.
7439
7440         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
7441         sized types.
7442
7443 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7444
7445         * cpphash.h (_cpp_push_next_buffer): New.
7446         * cppinit.c (do_includes): Remove.
7447         (push_include, free_chain, _cpp_push_next_buffer): New.
7448         (cpp_start_read): Use them to rework command line option handling.
7449         (cpp_handle_option): Combine handling of -include and -imacros.
7450         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
7451         appropriate.  Always insert missing \n at EOF.
7452         * cpplib.c (start_directive): Get the directive position right.
7453         * cppmain.c (cb_file_change): Always print the first line, unless
7454         preprocessed.
7455
7456 2001-08-20  Andreas Jaeger  <aj@suse.de>
7457
7458         * profile.c (compute_branch_probabilities): Remove extra new-line
7459         in error message.
7460         * flow.c (verify_flow_info): Likewise.
7461
7462 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
7463
7464         * basic-block.h (basic_block): Add new field 'flags'.
7465         (BB_REACHABLE): Define.
7466         (expunge_block): Declare.
7467         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
7468         (EXIT_BLOCK_PTR): Ditto.
7469         (expunge_block): Remove static declaration.
7470         (cleanup_cfg): Clear bb->aux on every basic block.
7471         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
7472         computing reachability.
7473         (delete_unreachable_blocks): Delete block b if b->flags has
7474         BB_REACHABLE unset.
7475
7476 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
7477
7478         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
7479
7480 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7481
7482         * sparc.c (sparc_variable_issue): Fix typo in last change.
7483
7484 2001-08-20  Richard Henderson  <rth@redhat.com>
7485
7486         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
7487
7488 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7489
7490         * pa.h (RETURN_IN_MEMORY): Improve comment.
7491
7492 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
7493
7494         * doc/invoke.texi (Profiling options): Clarify the interactions
7495         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
7496
7497 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
7498
7499         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
7500         command.
7501
7502 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7503
7504         * gcc.c (make_relative_prefix): Allocate a sufficiently large
7505         buffer.
7506
7507 2001-08-20  Richard Henderson  <rth@redhat.com>
7508
7509         * final.c (end_final): Fix typo last change.
7510
7511 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7512
7513         * cppinit.c (init_standard_includes): The returned buffer
7514         is already malloc-ed.
7515         * gcc.c (add_prefix): Similarly.
7516         * prefix.c (translate_name): Update to support clear buffer
7517         ownership rules.
7518         (update_path): Similarly.  Be sure to free any newly allocated
7519         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
7520         (tr): New function.
7521         * prefix.h (update_path): Update prototype and document.
7522         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
7523         up and update to new buffer ownership rules.
7524         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
7525
7526 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
7527
7528         * final.c (compute_alignments): New function.
7529         (init_insn_lengths): Do not care label_align.
7530         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
7531         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
7532         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
7533         (shorted_branches): Realloc label_align array; do
7534         not call init_insn_lengths; Do not care about loop alignments.
7535         * output.h (compute_alignments): Declare.
7536         * toplev.c (rest_of_compilation): Call compute_alignments.
7537         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
7538
7539         * predict.c (block_info_def): Add npredecesors, remove nvisited;
7540         change visited to tovisit.
7541         (propagate_freq): Use faster traversing algorithm.
7542         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
7543         to tovisit; reverse meaning.
7544
7545         * predict.c (struct block_info_def): Remove nvisited.
7546         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
7547         (estimate_bb_frequencies): Call mark_dfs_back_edges.
7548
7549 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
7550
7551         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
7552         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
7553         (TARGET_FUSED_MADD): New.
7554         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
7555         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
7556         the multiply-add instructions.
7557
7558 2001-08-19  Richard Henderson  <rth@redhat.com>
7559
7560         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
7561         is aligned to pointer size.
7562
7563 2001-08-19  Richard Henderson  <rth@redhat.com>
7564
7565         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
7566         display markers during final schedule.
7567
7568 2001-08-19  Richard Henderson  <rth@redhat.com>
7569
7570         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
7571
7572 2001-08-19  Richard Henderson  <rth@redhat.com>
7573
7574         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
7575         in the same string.
7576         (ASM_NAME_TO_STRING): Remove.
7577         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
7578         in the same string.  Remove support for expressions.
7579
7580 2001-08-19  Richard Henderson  <rth@redhat.com>
7581
7582         * config/i386/i386.md (tablejump): Make an expander; handle
7583         pic relative addressing here.
7584         (tablejump_1): Rename from tablejump_pic.
7585         (casesi): Remove.
7586
7587 2001-08-19  Richard Henderson  <rth@redhat.com>
7588
7589         * regclass.c (fix_register): Fix typo.
7590
7591 2001-08-18  Richard Henderson  <rth@redhat.com>
7592
7593         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
7594         (struct _Unwind_Context): Expand br_loc to hold it.
7595         (uw_frame_state_for): Handle leaf functions better.
7596         (uw_update_reg_address): Update for br_loc change.
7597
7598 2001-08-18  Richard Henderson  <rth@redhat.com>
7599
7600         * crtstuff.c: Move list heads before code that uses them.
7601         (__JCR_LIST__): Remove initial null.
7602         (frame_dummy, __frame_dummy): Do java registration here ...
7603         (__do_global_ctors_aux): ... not here.
7604
7605         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
7606         (__do_global_dtors_aux): Update to match.
7607         (__JCR_LIST__, __do_jv_register_classes): New.
7608         (.init): Call it.
7609         * config/ia64/crtend.asm (__JCR_END__): New.
7610         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
7611         instead of an indirect LTOFF22 reloc.
7612
7613 2001-08-18  Richard Henderson  <rth@redhat.com>
7614
7615         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
7616         * regclass.c (init_reg_sets_1): Fix typo.
7617         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
7618         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
7619         (ia64_compute_frame_size): Make ar.unat live when in use.
7620         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
7621         for ar.pfs; remove ar.unat handling.
7622         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
7623         call-saved.
7624         (PREDICATE_CODES): Add ar_pfs_reg_operand.
7625         * config/ia64/ia64-protos.h: Update decls.
7626         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
7627         (sibcall_pic): Likewise.
7628
7629 2001-08-18  Richard Henderson  <rth@redhat.com>
7630
7631         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
7632         pred_rel_mutex when searching for insn_group_barrier.
7633         * config/ia64/ia64.md (cycle_display): Combine the expander
7634         and insn patterns.
7635
7636         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
7637         bit before asm as needed.
7638
7639 2001-08-18  Richard Henderson  <rth@redhat.com>
7640
7641         * timevar.def (TV_MACH_DEP): New.
7642         * toplev.c (rest_of_compilation): Use it.
7643         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
7644
7645 2001-08-18  Zack Weinberg  <zackw@panix.com>
7646
7647         * unwind-dw2.c (execute_stack_op): Add default aborts to
7648         the inner switches to prevent warnings.
7649
7650 2001-08-18  Richard Henderson  <rth@redhat.com>
7651
7652         * timevar.h (struct timevar_time_def): Change element type to float.
7653         (ticks_to_msec, clocks_to_msec): Likewise.
7654         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
7655         (get_time): Likewise.
7656         (timevar_print): Adjust zero check and printing to match.
7657
7658 2001-08-18  Zack Weinberg  <zackw@panix.com>
7659
7660         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
7661         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
7662         Eliminate overfull or underfull hboxes.
7663
7664 2001-08-18  Zack Weinberg  <zackw@panix.com>
7665
7666         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
7667
7668 2001-08-18  Zack Weinberg  <zackw@panix.com>
7669
7670         * haifa-sched.c: Convert to target hooks.  Macros replaced
7671         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
7672         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
7673         MD_SCHED_FINISH, and HAVE_cycle_display.
7674         * target-def.h (TARGET_SCHED_ADJUST_COST,
7675         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
7676         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
7677         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
7678         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
7679         New hook #defines to be overridden.
7680         (TARGET_SCHED): Bring them all together.
7681         (TARGET_INITIALIZER): Update.
7682         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
7683         instead of 'struct rtx_def *' throughout.
7684         (struct sched): New set of hooks for the scheduler.
7685         * Makefile.in (haifa-sched.o): Depend on target.h.
7686         * doc/tm.texi: Document the new scheduler hooks, together in
7687         their own section, instead of scattered around.
7688         Fix a bunch of underfull/overfull hboxes.
7689
7690         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
7691         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
7692         sparc.h: Don't define any of the old scheduler macros.
7693
7694         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
7695         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
7696         sparc.c: Create hook functions from code extracted from
7697         corresponding target header, or make existing hooks static, as
7698         appropriate.  Set the appropriate entries in targetm.
7699
7700         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
7701         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
7702         rs6000-protos.h, s390-protos.h, sparc-protos.h:
7703         Remove prototypes for functions which are now static.
7704
7705         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
7706         related gunk; the Haifa scheduler is now the only choice.
7707
7708 2001-08-18  Zack Weinberg  <zackw@panix.com>
7709
7710         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
7711         * genopinit.c: Put floating point divide insns in sdiv_optab.
7712         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
7713         * config/gofast.h, config/c4x/c4x.h,
7714         config/ia64/hpux_longdouble.h, config/mips/mips.h,
7715         config/pa/long_double.h, config/rs6000/sysv4.h,
7716         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
7717         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
7718         (init_optabs): Use init_optabv for overflow-trapping optabs.
7719         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
7720         cmp_optab RTX codes so have_insn_for can find them.
7721
7722         * optabs.c (expand_simple_binop, expand_simple_unop,
7723         have_insn_for, gen_sub3_insn): New interfaces.
7724         * expr.h: Prototype new functions.
7725         (enum optab_methods): Move here from optabs.h.
7726
7727         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
7728         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
7729         Use new functions instead of working directly with optabs.
7730         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
7731         unroll.c: Don't include optabs.h.
7732         * caller-save.c, combine.c, function.c, stmt.c: Just include
7733         insn-codes.h, not optabs.h.
7734         * Makefile.in: Update dependencies.
7735
7736         * combine.c (make_compound_operation, simplify_comparison):
7737         Fix typos testing for this or that instruction.
7738
7739 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
7740
7741         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
7742         generating libgcc.a.
7743
7744 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7745
7746         * except.c (TYPE_HASH): Delete.
7747
7748         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
7749         HOST_WIDE_INT.
7750
7751         * tree.c (TYPE_HASH): Delete.
7752
7753         * tree.h (TYPE_HASH): Define.
7754
7755 2001-08-18  Graham Stott  <grahams@redhat.com>
7756
7757         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
7758         define_split.
7759         (adddi3_internal_2+2): Likewise.
7760         (eh_set_lr_di+1): Likewise.
7761
7762 2001-08-17  Richard Henderson  <rth@redhat.com>
7763
7764         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7765         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
7766         * dwarf2asm.c: ... here.
7767         * dwarfout.c: Remove them.
7768
7769         * varasm.c (assemble_integer): Add align parameter.
7770         (assemble_real, output_constant, output_constructor): Likewise.
7771         * output.h: Update decls.
7772         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
7773         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
7774         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
7775         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
7776         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
7777         Update all callers.
7778
7779         * final.c (end_final): Abort profile block generation if we
7780         havn't layed it out properly.
7781         * output.h (assemble_eh_integer): Remove stale decl.
7782         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
7783         (min_align): New.
7784         (assemble_integer): Handle unaligned data.
7785         (assemble_real): Abort on unaligned data.
7786         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
7787         anything useful.
7788         (default_dtor_section_asm_out_destructor): Use assemble_align.
7789         (default_named_section_asm_out_constructor): Likewise.
7790         (default_ctor_section_asm_out_constructor): Likewise.
7791         * config/darwin.c (machopic_asm_out_constructor): Likewise.
7792         (machopic_asm_out_destructor): Likewise.
7793         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
7794         (nextstep_asm_out_destructor): Likewise.
7795         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
7796         (vms_asm_out_destructor): Likewise.
7797
7798 2001-08-17  Richard Henderson  <rth@redhat.com>
7799
7800         * config/mips/iris6.h (TARGET_IRIX6): New.
7801         (current_section_name, current_section_flags): New.
7802         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
7803         (MAX_OFILE_ALIGNMENT): New.
7804         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
7805         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
7806         (copy_file_data): Split out from
7807         (mips_asm_file_end): ... here.
7808         (mips_asm_file_start): Remove extra .section directive.  Use
7809         tmpfile instead of mips_make_temp_file.
7810         (mips_unique_section): Use const char * as needed for warnings.
7811         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
7812         re-add align parameter.
7813         (iris6_asm_named_section): New.
7814         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
7815         (iris6_asm_output_align, iris6_section_align_1): New.
7816         (iris6_asm_file_start, iris6_asm_file_end): New.
7817         * config/mips/mips-protos.h: Update decls.
7818
7819 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
7820
7821         * doc/install.texi (Install GCC): Add links to build status pages.
7822         (Specific): Ditto.
7823         (Final install): Ditto; request updates for specific info
7824
7825 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7826
7827         * cpperror.c (print_location):  Don't take a file name; use the
7828         line map instead.
7829         (_cpp_begin_message): Similarly.
7830         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7831         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7832         (cpp_pedwarn_with_file_and_line): Remove.
7833         * cppfiles.c (stack_include_file): Update; set filename to stdin
7834         here when appropriate.
7835         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
7836         (_cpp_begin_message): Don't take a file name.
7837         * cppinit.c: Add comment.
7838         * cpplex.c: Fix end-of-directive indicator.
7839         * cpplib.c: Don't include intl.h.
7840         (run_directive, do_diagnostic): Update.
7841         (do_line): Update to not use nominal_fname.
7842         (cpp_push_buffer): Don't take a filename.
7843         * cpplib.h (struct ht): Remove.
7844         (cpp_push_buffer): Don't take a filename.
7845         (cpp_pedwarn_with_file_and_line): Remove.
7846         * cppmacro.c (struct cpp_macro): Remove file.
7847         (builtin_macro): Update.
7848         (_cpp_create_definition): Update.
7849         * cppmain.c: Correct comment.
7850         * fix-header.c (read_scan_file): Update.
7851
7852 2001-08-17  Kazu Hirata  <kazu@hxi.com>
7853
7854         * sbitmap.c: Fix comment formatting.
7855         * sched-deps.c: Likewise.
7856         * sibcall.c: Likewise.
7857         * simplify-rtx.c: Likewise.
7858         * ssa.c: Likewise.
7859         * ssa-ccp.c: Likewise.
7860         * stor-layout.c: Likewise.
7861         * timevar.c: Likewise.
7862         * toplev.c: Likewise.
7863         * unwind-dw2.c: Likewise.
7864         * unwind-dw2-fde.c: Likewise.
7865         * varasm.c: Likewise.
7866
7867 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7868
7869         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
7870         or larger than an integer in memory.
7871
7872 2001-08-17  Zack Weinberg  <zackw@panix.com>
7873
7874         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
7875         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
7876         * rtl.h: Don't forward-declare union tree_node here.  Don't
7877         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
7878         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
7879         and tree respectively.
7880         * tree.h: Don't forward-declare struct rtx_def here.  Don't
7881         typedef tree here.  Change all uses of struct rtx_def *,
7882         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
7883         and tree respectively.
7884
7885 2001-08-17  Richard Henderson  <rth@redhat.com>
7886
7887         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
7888         config/mips/openbsd.h: Fix typos last change.
7889
7890 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7891
7892         * doc/invoke.texi (Optimize Options): The default for
7893         -finline-limit is 600.
7894
7895 2001-08-17  Richard Henderson  <rth@redhat.com>
7896
7897         * varasm.c (text_section): Allow TEXT_SECTION to override the
7898         printing of TEXT_SECTION_ASM_OP.
7899         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
7900         (DATA_SECTION, BSS_SECTION): Remove.
7901         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
7902         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
7903         Rename from s/_NAME//.
7904         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
7905         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
7906         (TEXT_SECTION): ... here.  New.
7907         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
7908         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
7909         * config/mips/openbsd.h: Likewise.
7910         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
7911         (mips_asm_file_end): Likewise test.
7912         (mips_output_function_epilogue): Likewise.  Switch back to data
7913         section after emitting the function.
7914
7915         * doc/tm.texi (Sections): Document TEXT_SECTION.
7916
7917 2001-08-17  Richard Henderson  <rth@redhat.com>
7918
7919         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
7920         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
7921
7922 2001-08-17  Richard Henderson  <rth@redhat.com>
7923
7924         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
7925         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
7926         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
7927         Add aligned attribute.
7928
7929 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
7930
7931         * config/sh/sh.md: Add modes to unspecs in first insn to match
7932         those in the second.
7933
7934         * Makefile.in: Fix collect2 copy for Cygwin.
7935
7936 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
7937
7938         Install the proper patch.
7939         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
7940         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
7941         (expand_function_start): Likewise.
7942         * stmt.c (expand_decl): Likewise.
7943         * varasm.c (make_decl_rtx): Likewise.
7944
7945 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
7946
7947         * final.c: Undo my previous accidental checkin.
7948         * output.h: Likewise.
7949         * tm.texi: Likewise.
7950
7951 2001-08-16  Richard Henderson  <rth@redhat.com>
7952
7953         * varasm.c (named_section_flags): Remove align parameter.
7954         * varasm.c, dwarf2out.c: Update all callers.
7955         * output.h: Update prototypes.
7956
7957         * target.h (target.asm_out.named_section): Remove align parameter.
7958         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
7959         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
7960         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
7961         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
7962         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
7963
7964         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
7965         (get_named_section_flags, set_named_section_flags): New.
7966         (named_section_flags): Use them.
7967         (named_section): Do decl vs section flags check here...
7968         (default_section_type_flags): ... not here.
7969         (init_varasm_once): Create in_named_htab.
7970         (resolve_unique_section): Mark reloc unused.
7971
7972 2001-08-16  Richard Henderson  <rth@redhat.com>
7973
7974         * varasm.c (force_const_mem): Keep pool alignment in bits.
7975         (output_constant_pool): Use assemble_align.
7976
7977 2001-08-16  Zack Weinberg  <zackw@panix.com>
7978
7979         * doc/tm.texi: Remove extra @table command.
7980
7981 2001-08-16  Zack Weinberg  <zackw@panix.com>
7982
7983         * final.c (shorten_branches): Clear the end of the label_align
7984         array only if we made it larger.  Break up messy expressions
7985         for clarity.
7986
7987         * diagnostic.c (internal_error): Check for error recursion
7988         before doing ICE suppression.
7989
7990         * timevar.c: Timing variables now count in milliseconds.
7991         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
7992         (get_time): Not here.
7993         (timevar_print): Don't print any timer whose user, cpu, and
7994         wall times are all zero as displayed.
7995         * timevar.h: Update comment aboout units.  Make timevar
7996         counters unsigned.
7997
7998 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
7999
8000         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
8001         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
8002         (expand_function_start): Likewise.
8003         * stmt.c (expand_decl): Likewise.
8004         * varasm.c (make_decl_rtx): Likewise.
8005
8006 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
8007
8008         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
8009         (finalize_record_size): Don't set TYPE_USER_ALIGN.
8010
8011 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8012
8013         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
8014         variables.
8015
8016 2001-08-16  Andreas Jaeger  <aj@suse.de>
8017
8018         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
8019         prototype.
8020
8021 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
8022
8023         * rtl.h (only_sets_cc0_p): New prototype.
8024         * jump.c (sets_cc0_p): Handle INSN.
8025         (only_sets_cc0_p): New function.
8026         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
8027         (tidy_fallthru_edge): Likewise.
8028         * integrate.c (copy_insn_list): Likewise.
8029         * unroll.c (unroll_loop): Likewise.
8030         (copy_loop_body): Likewise.
8031
8032 2001-08-15  Jason Eckhardt  <jle@redhat.com>
8033
8034         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
8035
8036 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8037
8038         * predict.c (struct block_info_def): Remove nvisited.
8039         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
8040         (estimate_bb_frequencies): Call mark_dfs_back_edges.
8041
8042         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
8043         (ix86_adjust_cost): Teach scheduler that latency to load operand can
8044         be masked.
8045
8046 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
8047
8048         * predict.def: Update hitrates.
8049
8050 2001-08-15  Richard Henderson  <rth@redhat.com>
8051
8052         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
8053
8054 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
8055
8056         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
8057         note from its associated jump.
8058
8059 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8060
8061         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
8062         also on 64-bit s390x targets.
8063
8064 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
8065
8066         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
8067         function.
8068         (arm_expand_prologue): Handled nested functions which take a
8069         variable argument list.
8070         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
8071         macro with an invocation of
8072         arm_compute_initial_elimination_offset.
8073         * config/arm/arm-protos.h: Prototype
8074         arm_compute_initial_elimination_offset.
8075
8076 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8077
8078         * doc/install.texi (Specific, avr): Fix markup.
8079         (Specific, c4x): Ditto.
8080
8081 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8082
8083         * predict.c (dump_prediction): Change `bool' parameter to `int'.
8084
8085 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
8086
8087         * Makefile.in (OBJS): Add rtl-error.o
8088         (rtl-error.o): New rule.
8089         (diagnostic.o): Adjust dependency.
8090         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
8091         error_for_asm, _fatal_insn, _fatal_insn_not_found,
8092         warning_for_asm): Move to...
8093         rtl-error.c: ...here.  New file.
8094
8095 2001-08-14  Richard Henderson  <rth@redhat.com>
8096
8097         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
8098         if USING_SJLJ_EXCEPTIONS.
8099
8100 2001-08-14  Steve Ellcey <sje@cup.hp.com>
8101
8102         * tlink.c (scan_linker_output): Check string for unsatisfied in
8103         addition to undefined and unresolved.
8104
8105 2001-08-14  Graham Stott  <grahams@redhat.com>
8106
8107         * libgcc2.c (*): Replace EH_FRAME_SECTION with
8108         EH_FRAME_SECTION_NAME.
8109
8110 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
8111
8112         * genattrtab.c (simplify_test_exp_in_temp): New function.
8113         (simplify_test_exp): Avoid explicit use of temporary obstack.
8114         (simplify_cond, insert_right_side, evaluate_eq_attr,
8115         simplify_and_tree, simplify_or_tree, eliminate_known_true):
8116         Use simplify_test_exp_in_temp.
8117         (optimize_attrs): Iterate until expression stabilizes.
8118
8119 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
8120
8121         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
8122         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
8123
8124 2001-08-13  Richard Henderson  <rth@redhat.com>
8125
8126         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
8127         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
8128         * config/arm/conix-elf.h: Likewise.
8129
8130 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
8131
8132         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
8133         in gcc.c.
8134         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8135
8136         * gcse.c (hash_scan_set): Expressions that are set as part of
8137         jump instructions are not available.
8138
8139 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
8140
8141         * config/s390/s390.c (print_operand, s390_function_prologue,
8142         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
8143
8144 2001-08-13  Richard Henderson  <rth@redhat.com>
8145
8146         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
8147         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
8148         * doc/tm.texi (Exception Region Output): Document it.
8149
8150 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
8151
8152         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
8153         DWARF2 instead of stabs by default.
8154
8155 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
8156
8157         * config/rs6000/rs6000.c: Include optabs.h.
8158
8159 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
8160
8161         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
8162         save/restore routines.
8163         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
8164
8165 2001-08-13  Andreas Jaeger  <aj@suse.de>
8166
8167         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
8168         the english is correct.
8169
8170 2001-08-13  Zack Weinberg  <zackw@panix.com>
8171
8172         * expr.h: Split out optab- and libfunc-related code to...
8173         * optabs.h, libfuncs.h: ... these new headers.
8174
8175         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
8176         (OPTABS_H): New.
8177         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
8178         dependencies.
8179         * mkconfig.sh: Don't include insn-codes.h from config.h.
8180
8181         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
8182         enum insn_code is available.  Move reload_in_optab and
8183         reload_out_optab array declarations to optabs.h.
8184         * regmove.c (gen_add3_insn): Move to optabs.c, export from
8185         there, prototype in expr.h.
8186         * gencodes.c: Cleanup: zap global variables, don't use
8187         printf where puts will do, don't bother defining MAX_INSN_CODE
8188         which nothing uses, let CODE_FOR_nothing get its value implicitly.
8189
8190         * genemit.c, genopinit.c: Include optabs.h in generated file.
8191         * genoutput.c: Include insn-codes.h in generated file.
8192         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
8193         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
8194         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
8195         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
8196         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
8197         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
8198         Include optabs.h.
8199         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
8200         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
8201         config/m88k/m88k.c, config/sparc/sparc.c:
8202         Include libfuncs.h.
8203         * reload.c: Include expr.h and optabs.h before reload.h.
8204         * config/alpha/alpha.c: Include tree.h before reload.h.
8205         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
8206         and reload.h in that order.
8207         * config/sparc/sparc.c: Include debug.h.
8208         * recog.c: Include insn-codes.h.
8209
8210 2001-08-13  Andreas Jaeger  <aj@suse.de>
8211
8212         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
8213         s390*linux.
8214
8215 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8216
8217         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
8218         * gcc.c (init_spec): Fix typo in comment.
8219         * varasm.c (data_section): Fix typo in comment.
8220
8221 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
8222
8223         * predict.c (dump_prediction): New argument "USED".
8224         (combine_predictions_for_insn): Determine the used heuristics,
8225         output the case no heuristic applied.
8226         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
8227
8228 2001-08-13  Andreas Jaeger  <aj@suse.de>
8229
8230         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
8231         register %rip.
8232
8233 2001-08-13  Kazu Hirata  <kazu@hxi.com>
8234
8235         * jump.c: Fix formatting.
8236
8237 2001-08-13  Kazu Hirata  <kazu@hxi.com>
8238
8239         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
8240         length.
8241
8242 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
8243
8244         * loop.c (check_dbra_loop): Use condjump_label to compute
8245         jump_label.
8246
8247         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
8248         to better document the files they're in.
8249
8250 2001-08-12  Zack Weinberg  <zackw@panix.com>
8251
8252         * recog.h (struct insn_operand_data): Shrink 'mode' field
8253         to 16 bits.
8254
8255 2001-08-12  Kazu Hirata  <kazu@hxi.com>
8256
8257         * gcc.c: Fix comment formatting.
8258         * gccspec.c: Likewise.
8259         * gcov.c: Likewise.
8260         * gcse.c: Likewise.
8261         * genemit.c: Likewise.
8262         * gengenrtl.c: Likewise.
8263         * genrecog.c: Likewise.
8264         * gensupport.c: Likewise.
8265         * ggc-page.c: Likewise.
8266         * global.c: Likewise.
8267         * graph.c: Likewise.
8268         * ifcvt.c: Likewise.
8269         * integrate.c: Likewise.
8270         * lcm.c: Likewise.
8271         * libgcc2.c: Likewise.
8272         * loop.c: Likewise.
8273         * mbchar.c: Likewise.
8274         * optabs.c: Likewise.
8275         * predict.c: Likewise.
8276         * prefix.c: Likewise.
8277         * profile.c: Likewise.
8278         * protoize.c: Likewise.
8279         * real.c: Likewise.
8280         * recog.c: Likewise.
8281         * regclass.c: Likewise.
8282         * regmove.c: Likewise.
8283         * reg-stack.c: Likewise.
8284         * reload1.c: Likewise.
8285         * resource.c: Likewise.
8286         * rtlanal.c: Likewise.
8287         * rtl.c: Likewise.
8288
8289 2001-08-12  Kazu Hirata  <kazu@hxi.com>
8290
8291         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
8292         a tree representing a constant is passed to the macro.
8293
8294 2001-08-12  Richard Henderson  <rth@redhat.com>
8295
8296         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
8297         (rs6000_elf_asm_out_destructor): New.
8298         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
8299         (DTORS_SECTION_ASM_OP): Remove.
8300         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8301         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
8302
8303 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
8304
8305         Revert:
8306         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8307         * gcc.c (set_collect_gcc_options): New function, split out from
8308         main.
8309         Ignore elided switches.
8310         (do_spec_1): Invoke before executing command.
8311         (set_input): Export.
8312         Move declaration ...
8313         * gcc.h (set_input): ... here.
8314         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
8315         file.
8316
8317 2001-08-12  Richard Henderson  <rth@redhat.com>
8318
8319         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
8320         thinko wrt TARGET_RELOCATABLE.
8321
8322 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8323
8324         * fix-header.c (cb_file_change): Update prototype.
8325
8326 2001-08-11  Zack Weinberg  <zackw@panix.com>
8327
8328         * toplev.c (set_float_handler): Make static.
8329         * toplev.h: Don't prototype set_float_handler.
8330
8331         * simplify-rtx.c: Don't include setjmp.h.
8332         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
8333         New functions.
8334         (simplify_unary_operation, simplify_binary_operation): Use them,
8335         via do_float_handler.
8336
8337         * fold-const.c: Don't include setjmp.h.
8338         (exact_real_inverse_1): New function.
8339         (exact_real_inverse): Use it, via do_float_handler.
8340
8341         * varasm.c: Don't include setjmp.h.
8342         (assemble_real_1): New function.
8343         (assemble_real): Use it, via do_float_handler.
8344         Call internal_error if we get a trap here.
8345
8346         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
8347         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
8348
8349 2001-08-11  Zack Weinberg  <zackw@panix.com>
8350
8351         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
8352         STACK_BOUNDARY if not already defined.
8353
8354         * calls.c, function.c, reload1.c, explow.c: Don't default
8355         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
8356         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
8357
8358         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
8359         to run-time test.
8360
8361         * doc/tm.texi: Document that STACK_BOUNDARY is required;
8362         clarify difference between it and PREFERRED_STACK_BOUNDARY.
8363
8364 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8365
8366         * cppmacro.c (enter_macro_context): Push macro expansions even
8367         if empty.
8368
8369 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8370
8371         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
8372         (rs6000_elf_section_type_flags): Actually return a value.
8373
8374 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
8375
8376         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
8377         Clean up code: add missing comments and prototypes, fix warnings,
8378         remove obsolete code, fix spacing to conform to coding style.
8379
8380 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
8381
8382         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
8383         and TARGET_ASM_CLOSE_PAREN.
8384         (regclass_map): CC register belongs to class NO_REGS.
8385         (legitimize_pic_address): Don't generate unnecessary moves
8386         (to avoid confusing loop optimization).
8387         (check_and_change_labels): Replace jump_long by indirect_jump.
8388         (s390_final_chunkify): Don't start a new literal pool on section
8389         switch in 64-bit code.
8390         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
8391
8392         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
8393         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
8394         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
8395         modes correctly.
8396         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
8397         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
8398         (CONST_COSTS): Fixed incorrect costs.
8399
8400         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
8401         Use emit_jump instead of emit_jump_insn (gen_jump).
8402         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
8403         (to avoid confusing flow analysis).
8404         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
8405         (casesi, casesi_jump): New.
8406         (jump_long): Removed.  Functionality merged into indirect_jump.
8407         (indirect_jump): Accept address_operand, not just register_operand.
8408         (cjump_long, icjump_long): Use same logic as indirect_jump.
8409         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
8410         Fixed broken setjmp/longjmp handling.
8411         (do_builtin_setjmp_setup): Removed.
8412
8413         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
8414         broken GNU as versions that don't accept .quad with large
8415         negative values.  Use hexadecimal output instead.
8416         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
8417         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
8418         FUNCTION_EPILOGUE): Removed.  Now in targetm.
8419
8420         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
8421
8422         * config/s390/fixdfdi.h: Add missing copyright statement.
8423         Fix type conflicts on 64-bit.  Add missing SFmode routines.
8424
8425         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
8426         email address.
8427
8428 2001-08-11  Richard Henderson  <rth@redhat.com>
8429
8430         * rtl.h (REG_EH_RETHROW): Remove.
8431         * rtl.c (reg_note_name): Update.
8432         * combine.c (distribute_notes): Don't check for it.
8433
8434 2001-08-11  Richard Henderson  <rth@redhat.com>
8435
8436         * combine.c (distribute_notes): Place REG_SETJMP.
8437
8438 2001-08-11  Richard Henderson  <rth@redhat.com>
8439
8440         * doc/extend.texi (Arrays and pointers implementation): Discourage
8441         relying on sign-extension of pointers.
8442
8443 2001-08-11  H.J. Lu <hjl@gnu.org>
8444
8445         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
8446         in_dtors.
8447         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
8448         RDATA_SECTION_ASM_OP.
8449
8450 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8451
8452         * doc/install.texi (Specific, c4x): Fix cross-reference to the
8453         main manual to work both for info and HTML versions.
8454
8455 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8456             Matt Kraai <kraai@alumni.carnegiemellon.edu>
8457
8458         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
8459         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
8460         (struct cpp_pool): New member first.
8461         * cppinit.c (append_include_chain): Plug memory leaks.
8462         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
8463         Allocate pragma structures from the (aligned) macro pool to
8464         avoid leaking memory.
8465         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
8466         so we don't leak memory.
8467         * hashtable.c (ht_destroy): New.
8468         * hashtable.h (ht_destroy): New.
8469
8470 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8471             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8472
8473         * c-lex.c (map): Make const.
8474         (cb_file_change): Update for callback passing a line map.
8475         Don't assume we have a previous map.  Remove sanity check
8476         about popping too many files.
8477         * cpperror.c (print_location): Make map const.
8478         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
8479         (cpp_make_system_header): Similarly.
8480         (search_from): Similarly.
8481         (_cpp_execute_include): Don't remember where we came from.
8482         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
8483         (struct cpp_reader): Make map const.
8484         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
8485         * cpplib.c (do_line): Update; line maps now hold sysp.
8486         (cpp_push_buffer): Similarly.
8487         (_cpp_do_file_change): Similarly; callback with map instead.
8488         (cpp_get_line_maps): Constify return value.
8489         (_cpp_pop_buffer): Update.
8490         * cpplib.h (struct cpp_file_change): Remove.
8491         (struct cpp_callbacks): Update.
8492         (cpp_get_line_maps): Constify return value.
8493         * cppmacro.c (_cpp_create_definition): Update.
8494         * cppmain.c (struct printer): Constify map.
8495         (maybe_print_line): Similarly.
8496         (print_line): Similarly.  Deduce flags 1 and 2 here.
8497         (cb_file_change): Update.
8498         * line-map.c (free_line_maps): Warn regardless.
8499         (add_line_map): Return pointer to const.  When passed NULL to_file
8500         with LC_LEAVE, use the obvious values for the return point so the
8501         caller doesn't have to figure them out.
8502         (lookup_line): Return pointer to const.
8503         (print_containing_files): Take pointer to const.
8504         * line-map.h (struct line_map): New members reason, sysp.
8505         (add_line_map): Return pointer to const.
8506         (lookup_line): Similarly.
8507         (print_containing_files): Take pointer to const.
8508
8509 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
8510             Richard Henderson  <rth@redhat.com>
8511
8512         * regmove.c (regmove_optimize): Avoid setting a register twice in
8513         a parallel set.
8514
8515 2001-08-10  Richard Henderson  <rth@redhat.com>
8516
8517         * doc/extend.texi (Arrays and pointers implementation): Document
8518         behavior of pointer/integer conversion.
8519
8520 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
8521
8522         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
8523
8524 2001-08-10  Richard Henderson  <rth@redhat.com>
8525
8526         * doc/extend.texi (C Implementation): New chapter.
8527         * doc/gcc.texi (Top): Link it in.
8528
8529 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
8530
8531         * doc/install.texi (Specific): Fix CVS merge botch.
8532
8533 2001-08-10  Richard Henderson  <rth@redhat.com>
8534
8535         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
8536         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
8537
8538 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
8539
8540         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
8541         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
8542         this macro is now required.
8543
8544         * cselib.c (cselib_process_insn), flow.c (propagate_block),
8545         loop.c (find_and_verify_loops), reload.c (reload): Check
8546         for rtx code of CALL_INSN, not CALL, when deciding if we
8547         need to check for REG_SETJMP note.
8548
8549         * gcse.c (compute_hash_table, compute_store_table): Update
8550         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
8551         logic.
8552
8553         * config/avr/avr.c: Fix typo.
8554         * config/convex/convex.c (expand_movstr): Use adjust_address.
8555         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
8556         variable.
8557         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
8558         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
8559         Fix typo.
8560         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
8561         Do define STACK_BOUNDARY.
8562         * config/i370/i370.c: Include expr.h.
8563         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
8564         config/pa/som.h, config/v850/v850.h: Take in_ctors and
8565         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
8566         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
8567         * config/m88k/m88k.c: Include c-tree.h after expr.h.
8568         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
8569         * config/romp/romp.c: Include expr.h after tree.h.
8570         Include toplev.h.
8571         (output_fpop): Use xmalloc, not oballoc.
8572         * config/we32k/we32k.c: Include expr.h.
8573
8574 2001-08-10  Kazu Hirata  <kazu@hxi.com>
8575
8576         * config/h8300/h8300.h: Fix formatting.
8577
8578 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
8579
8580         * c-common.h (RETURN_NULLIFIED_P): Lose.
8581         * c-semantics.c (genrtl_return_stmt): Don't check it.
8582
8583 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8584
8585         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
8586         (mips_annotate_frame_insn): New function.
8587         (mips_emit_frame_related_store): New function.
8588         (save_restore_insns): Don't mark instructions that set up the base
8589         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
8590         the store instructions instead.
8591         (mips_expand_prologue): If the stack size is moved into a temporary
8592         register, do not mark that move as frame-related.  Add a
8593         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
8594
8595 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8596
8597         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
8598         stack slot as unchanging if current_function_calls_eh_return.
8599
8600 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8601
8602         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
8603         access the second half of the TFmode scratch operand.
8604
8605 2001-08-10  Anthony Green  <green@redhat.com>
8606
8607         * java/class.c (emit_register_classes): Conditionalize code on
8608         JCR_SECTION_NAME.
8609
8610 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8611
8612         * doc/install.texi (Specific, avr): Fix cross-reference to the
8613         main manual to work both for info and HTML versions.
8614
8615 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8616
8617         * stmt.c (expand_null_return_1): Remove code to generate simple returns
8618         and "use_goto" argument.
8619         (expand_null_return, expand_value_return): Update all callers.
8620         * function.c (expand_function_end): Remove code to generate simple
8621         return.
8622         * config/vax/vax.md (epilogue): New expander for function return.
8623         * doc/md.texi (epilogue): Remove "if defined".
8624
8625 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
8626
8627         * Makefile.in: Partially revert my previous change:
8628         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
8629         of the hashtab.o and safe-ctype.o rules.
8630
8631 2001-08-09  Richard Henderson  <rth@redhat.com>
8632
8633         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
8634         (USE_COLLECT2): Remove duplicate definition.
8635         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
8636         (use_collect2): Remove dead code.
8637         * configure.in (use_collect2): Remove will_use_collect2 and
8638         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
8639         * configure: Rebuild.
8640
8641         * target.h (targetm.asm_out.constructor): New.
8642         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
8643         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
8644         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
8645         * varasm.c (in_ctors, in_dtors): New.
8646         (assemble_constructor, assemble_destructor): Remove.
8647         (default_stabs_asm_out_destructor): New.
8648         (default_named_section_asm_out_destructor): New.
8649         (dtors_section, default_dtor_section_asm_out_destructor): New.
8650         (default_stabs_asm_out_constructor): New.
8651         (default_named_section_asm_out_constructor): New.
8652         (ctors_section, default_ctor_section_asm_out_constructor): New.
8653         * output.h: Update declarations.
8654         * c-decl.c (c_expand_body): Use target hooks instead of
8655         assemble_constructor and assemble_destructor.
8656         * profile.c (output_func_start_profiler): Likewise.
8657         * objc/objc-act.c (finish_objc): Likewise.
8658         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
8659         for the constructor.
8660         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
8661
8662         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
8663         (DTORS_SECTION_ASM_OP): Likewise.
8664         (__CTOR_LIST__): Use attribute section when possible.
8665         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
8666
8667         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
8668         ASM_OUTPUT_CONSTRUCTOR.
8669
8670         * config/darwin.c (machopic_asm_out_constructor): New.
8671         (machopic_asm_out_destructor): New.
8672         * config/darwin-protos.h: Update declarations.
8673         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8674         (ASM_OUTPUT_DESTRUCTOR): Remove.
8675         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8676         * config/nextstep.c (nextstep_asm_out_constructor): New.
8677         (nextstep_asm_out_destructor): New.
8678         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8679         (ASM_OUTPUT_DESTRUCTOR): Remove.
8680         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8681         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
8682         ASM_OUTPUT_*STRUCTOR.
8683         * config/i386/aix386ng.h: Likewise.
8684
8685         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
8686         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
8687         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
8688         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8689         * config/lynx.h: Likewise.
8690         * config/netware.h: Likewise.
8691         * config/psos.h: Likewise.
8692         * config/alpha/alpha-interix.h: Likewise.
8693         * config/alpha/elf.h: Likewise.
8694         * config/arc/arc.h: Likewise.
8695         * config/arm/aof.h: Likewise.
8696         * config/arm/coff.h: Likewise.
8697         * config/arm/elf.h: Likewise.
8698         * config/c4x/c4x.h: Likewise.
8699         * config/h8300/h8300.h: Likewise.
8700         * config/i386/cygwin.h: Likewise.
8701         * config/i386/djgpp.h: Likewise.
8702         * config/i386/i386-coff.h: Likewise.
8703         * config/i386/i386-interix.h: Likewise.
8704         * config/i386/sco5.h: Likewise.
8705         * config/i386/vsta.h: Likewise.
8706         * config/i386/win32.h: Likewise.
8707         * config/i960/i960-coff.h: Likewise.
8708         * config/ia64/sysv4.h: Likewise.
8709         * config/m68hc11/m68hc11.h: Likewise.
8710         * config/m68k/coff.h: Likewise.
8711         * config/m68k/mot3300.h: Likewise.
8712         * config/m88k/m88k.h: Likewise.
8713         * config/mcore/mcore-pe.h: Likewise.
8714         * config/mcore/mcore.h: Likewise.
8715         * config/mips/elf.h: Likewise.
8716         * config/mips/elf64.h: Likewise.
8717         * config/mips/iris6.h: Likewise.
8718         * config/pa/pa64-hpux.h: Likewise.
8719         * config/rs6000/sysv4.h: Likewise.
8720         * config/sh/sh.h: Likewise.
8721         * config/sparc/litecoff.h: Likewise.
8722
8723         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
8724         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
8725         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8726         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8727         (ASM_OUTPUT_DESTRUCTOR): Remove.
8728         * config/a29k/a29k.c: Move include of tree.h.
8729         * config/a29k/udi.h: Delete file.
8730         * config/alpha/alpha.c (vms_asm_out_constructor): New.
8731         (vms_asm_out_destructor): New.
8732         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
8733         (EXTRA_SECTION_FUNCTIONS): Likewise.
8734         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8735         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8736         * config/c4x/c4x.c: Move include of tree.h.
8737         * config/clipper/clipper.c (clix_asm_out_constructor): New.
8738         (clix_asm_out_destructor): New.
8739         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8740         (ASM_OUTPUT_DESTRUCTOR): Remove.
8741         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8742         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8743         (TARGET_ASM_CONSTRUCTOR): New.
8744         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
8745         (sco_asm_out_constructor): New.
8746         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
8747         * config/i386/svr3gas.h: Remove stack grows up code.
8748         Remove code duplicated from i386/sysv3.h.
8749         (TARGET_ASM_CONSTRUCTOR): New.
8750         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8751         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
8752         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8753         (TARGET_ASM_CONSTRUCTOR): New.
8754         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
8755         (m68hc11_asm_out_destructor): New.
8756         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
8757         (TARGET_ASM_DESTRUCTOR): New.
8758         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
8759         * config/m68k/dpx2.h: Properly undef all the bits inherited from
8760         config/svr3.h pertaining to section manipulation.
8761         * config/m68k/dpx2g.h: Remove #if 0 code.
8762         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
8763         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
8764         (ASM_OUTPUT_CONSTRUCTOR): Remove.
8765         (TARGET_ASM_CONSTRUCTOR): New.
8766         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
8767         (m88k_svr3_asm_out_constructor): New.
8768         (m88k_svr3_asm_out_destructor): New.
8769         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8770         (ASM_OUTPUT_DESTRUCTOR): Remove.
8771         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8772         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
8773         * config/rs6000/aix.h: Likewise.
8774         * config/mips/rtems64.h: Don't undef removed constructor related bits.
8775         * config/mips/vxworks.h: Likewise.
8776         * config/rs6000/lynx.h: Likewise.
8777         * config/sh/elf.h: Likewise.
8778         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
8779         (DTORS_SECTION_ASM_OP): New.
8780         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8781         (ASM_OUTPUT_DESTRUCTOR): Remove.
8782         * config/sparc/sol2-sld-64.h: Likewise.
8783         * config/vax/vax.c (vms_asm_out_constructor): New.
8784         (vms_asm_out_destructor): New.
8785         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8786         (ASM_OUTPUT_DESTRUCTOR): Remove.
8787         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8788
8789         * doc/tm.texi (@node Initialization): Update.
8790
8791 2001-08-09  Richard Henderson  <rth@redhat.com>
8792
8793         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
8794         (__do_global_dtors_aux): Use gp-relative static data to avoid
8795         one dynamic relocation.
8796         (__do_frame_setup): Register Java classes.
8797         * config/alpha/crtend.asm (__JCR_END__): New.
8798
8799 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
8800
8801         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
8802         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
8803         (GEN, STAGESTUFF): Add new files.
8804         (insn-constants.h, s-constants, tm-preds.h, s-preds,
8805         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
8806         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
8807         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
8808         as well as insn-codes.h and insn-flags.h in config.h; and no
8809         extra headers in tconfig.h and hconfig.h.
8810
8811         * gencodes.c: Eliminate code to generate predicate declarations
8812         or #defines for md-file constants.
8813         * genconstants.c, genpreds.c: New files.
8814
8815         * i386.md: Re-order guard expressions such that TARGET_64BIT
8816         comes first, when this permits better optimization.  Add
8817         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
8818         why this is desirable.
8819
8820 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
8821
8822         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
8823         (find_fde_for_dso): Remove.
8824         (_Unwind_IteratePhdrCallback): New.
8825         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
8826         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
8827
8828 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8829
8830         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
8831         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
8832
8833 2001-08-09  Graham Stott  <grahams@redhat.com>
8834
8835         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
8836         (vis_no_unit): Use it.
8837         (visualize_no_unit): Add the insn only if room exists.
8838
8839 2001-08-09  Graham Stott  <grahams@redhat.com>
8840
8841         * predict.c (estimate_probability): Replace magic numbers with
8842         appropriate enumeration.
8843
8844 2001-08-09  Graham Stott  <grahams@redhat.com>
8845
8846         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
8847         parameter.
8848         (EXTRACT_FLAGS): Likewise.
8849
8850 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
8851
8852         * config/mips/mips.c    (mips_legitimate_address_p): Check for
8853         CONST_INT in last patch.
8854
8855 2001-08-08  Anthony Green  <green@redhat.com>
8856
8857         * java/class.c (emit_register_classes): Use assemble_jcr if
8858         possible.  Keep the original mechanism as a fallback.
8859         * defaults.h (JCR_SECTION_NAME): Define if we have named section
8860         and weak symbol support.
8861         * crtstuff.c (__JCR_LIST__): Define.
8862         (__JCR_END__): Define.
8863         (_Jv_RegiserClasses): Define weak symbol if possible.
8864         (__do_global_ctors_aux): Register classes for ELF targets with
8865         weak symbol support.
8866
8867 2001-08-08  Kazu Hirata  <kazu@hxi.com>
8868
8869         * dbxout.c: Fix comment formatting.
8870         * dependence.c: Likewise.
8871         * df.c: Likewise.
8872         * diagnostic.c: Likewise.
8873         * dominance.c: Likewise.
8874         * doprint.c: Likewise.
8875         * dwarf2out.c: Likewise.
8876         * dwarfout.c: Likewise.
8877         * emit-rtl.c: Likewise.
8878         * except.c: Likewise.
8879         * explow.c: Likewise.
8880         * expmed.c: Likewise.
8881         * expr.c: Likewise.
8882         * flow.c: Likewise.
8883         * fold-const.c: Likewise.
8884         * function.c: Likewise.
8885
8886 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8887
8888         * global.c (retry_global_alloc): Avoid shadowing allocno.
8889
8890 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
8891
8892         * except.c (remove_fixup_regions): Fix typo.
8893
8894 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
8895
8896         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
8897         unsigned HOST_WIDE_INT to avoid warning.
8898         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
8899         * flow.c (set_block_for_new_insns): Likewise.
8900
8901 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
8902
8903         * sibcall.c (return_value_pseudo): New static variable.
8904         (skip_copy_to_return_value): Handle return_value_pseudo.
8905         (call_ends_block_p): Ensure that return_value_pseudo is set.
8906         (optimize_sibling_and_tail_recursive_call): Discover the
8907         load of pseudo return value in alternate exit block.
8908
8909 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8910
8911         * calls.c (ECF_ALWAYS_RETURN): New constant.
8912         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
8913         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
8914         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
8915         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
8916         * rtl.c (reg_note_name): New name.
8917         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
8918
8919 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
8920
8921         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
8922
8923 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
8924
8925         * alias.c (get_alias_set): Return a previously calculated
8926         alias set for a VAR_DECL.
8927         * function.c (gen_mem_addressof): Calculate the alias set before
8928         touching the RTL.
8929
8930 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
8931
8932         * predict.def: Set hitrates according our experimental run.
8933
8934 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
8935
8936         * i386.h (HARD_REGNO_RENAME_OK): New macro.
8937
8938 2001-08-08  H.J. Lu <hjl@gnu.org>
8939
8940         * config/mips/mips.c (mips_unique_section): New. Copied from
8941         config/mips/elf.h.
8942
8943         * config/mips/mips-protos.h (mips_unique_section): New
8944         prototype.
8945
8946         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
8947
8948         * config/mips/little.h: New. Generic little endian mips
8949         targets. Only mips*-*-linux* is converted to use it so far.
8950
8951         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
8952         (WCHAR_TYPE): Defined
8953         (WCHAR_TYPE_SIZE): Likewise.
8954         (INIT_SUBTARGET_OPTABS): Likewise.
8955         (BSS_SECTION_ASM_OP): Likewise.
8956         (SBSS_SECTION_ASM_OP): Likewise.
8957         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8958         (ASM_DECLARE_OBJECT_NAME): Likewise.
8959         (UNIQUE_SECTION): Likewise.
8960         (EXTRA_SECTIONS): Likewise.
8961         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
8962         (ASM_OUTPUT_DESTRUCTOR): Likewise.
8963         (ASM_OUTPUT_DEF): Likewise.
8964         (HANDLE_SYSV_PRAGMA): Removed.
8965         (NO_IMPLICIT_EXTERN_C): Likewise.
8966         (TARGET_MEM_FUNCTIONS): Likewise.
8967         (STARTFILE_SPEC): Likewise.
8968         (ENDFILE_SPEC): Likewise.
8969         (LIB_SPEC): Likewise.
8970         (INVOKE__main): Likewise.
8971         (CTOR_LIST_BEGIN): Likewise.
8972         (CTOR_LIST_END): Likewise.
8973         (DTOR_LIST_BEGIN): Likewise.
8974         (DTOR_LIST_END): Likewise.
8975         (SET_ASM_OP): Likewise.
8976         (ASM_OUTPUT_SOURCE_LINE): Likewise.
8977         (ASM_OUTPUT_DEF): Likewise.
8978         (ASM_OUTPUT_IDENT): Likewise.
8979
8980         * config/mips/mips.h (ASM_SPEC): Undefine before define.
8981         (CPLUSPLUS_CPP_SPEC): Likewise.
8982         (ASM_APP_ON) Redefine only if not defined.
8983         (ASM_APP_OFF): Likewise.
8984         (ASM_OUTPUT_SOURCE_LINE): Likewise.
8985         (ASM_OUTPUT_IDENT): Likewise.
8986
8987         * config.gcc: Update tm_file for Linux/mips.
8988
8989 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
8990
8991         * cselib.c (cselib_record_sets): If insn is predicated, turn
8992         sources into IF_THEN_ELSEs.
8993
8994         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
8995         Turn into define_insn_and_split.
8996
8997         * sched-deps.c: Include "cselib.h".
8998         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
8999         Use cselib to turn memory addresses into VALUEs.
9000         (sched_analyze): Call cselib_init/cselib_finish if necessary.
9001         * sched-int.h (struct sched_info): New member USE_CSELIB.
9002         * sched-ebb.c (ebb_sched_info): Initialize it.
9003         * sched-rgn.c (rgn_sched_info): Likewise.
9004         * Makefile.in (sched-deps.o): Update dependencies.
9005
9006         * cselib.h (cselib_subst_to_values): Declare.
9007         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
9008         that have no value and autoincs to be handled by generating a new
9009         dummy value.
9010
9011 2001-08-08  Graham Stott  <grahams@redhat.com>
9012
9013         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
9014         within fixed length SEQUENCE.
9015
9016 2001-08-08  Graham Stott  <grahams@redhat.com>
9017
9018         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
9019         (diagnostic_prefixing_rule): Likewise.
9020         (diagnostic_line_cutoff): Likewise.
9021         (diagnostic_kind_count): Likewise.
9022
9023 2001-08-08  Graham Stott  <grahams@redhat.com>
9024
9025         * alias.c (find_base_decl): Delete redundent assignment.
9026
9027 2001-08-08  Graham Stott  <grahams@redhat.com>
9028
9029         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
9030         (abs): Uppercase and paranthesize macro parameter.
9031         (MEM_DEPENDENCY): Add whitespace.
9032
9033 2001-08-08  Graham Stott  <grahams@redhat.com>
9034
9035         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
9036         failure check for CONST_INT
9037
9038 2001-08-08  Graham Stott  <grahams@redhat.com>
9039
9040         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
9041         (libcall_dead_p): Likewise.
9042
9043         (mark_used_regs): Constify fmt.
9044         (find_use_as_address): Likewise.
9045
9046 2001-08-08  Graham Stott  <grahams@redhat.com>
9047
9048         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
9049          parameter.
9050
9051 2001-08-08  Graham Stott  <grahams@redhat.com>
9052
9053         * combine.c (combine_simplify_rtx): Update comment and
9054         remove erroneous test.
9055
9056 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9057
9058         * cppinit.c (cpp_finish): Pop the final buffer without comment.
9059         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
9060         take care to avoid multiple no-newline at EOF warnings in that
9061         case.
9062
9063 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
9064
9065         * calls.c (expand_call): Do not emit INSN_SETJMP note.
9066         (emit_library_call_value_1): Likewise.
9067         (emit_call_1): Emit REG_SETJMP note.
9068         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
9069         of INSN_SETJMP
9070         * cselib.c (cselib_process_insn): Likewise.
9071         * flow.c (propagate_block): Likewise.
9072         * loop.c (find_and_verify_loops): Likewise.
9073         * reload.c (find_equiv_regs): Likewise.
9074         * reload1.c (reload): Likewise.
9075         * resource.c (mark_referenced_resources,
9076         mark_set_resources): Likewise.
9077         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
9078         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
9079         * haifa-sched.c (unlink_other_notes): Likewise.
9080         (reemit_notes): Likewise.
9081         * sched-ebb.c (sched_ebb): Likewise.
9082         * sched-rgc.c (sched_region): Likewise.
9083         * rtl.c (note_insn_name): Likewise.
9084         (reg_note_name): Add REG_SETJMP
9085         * rtl.h (reg_note): Add REG_SETJMP.
9086         (insn_note): Remove NOTE_INSN_SETJMP.
9087
9088         * profile.c (branch_prob): Add fake edges for setjmp.
9089
9090 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
9091
9092         * config.gcc: Quote target_cpu_default2 correctly for
9093         powerpc*-*-* targets.
9094
9095 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9096
9097         * cpplib.h, line-map.h: Update comments.
9098         * cppmain.c (printer_init): Move inline.
9099         (maybe_print_line, print_line): Take a map pointer.
9100         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
9101         (cb_file_change): Don't use prior value of print.map.
9102
9103 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
9104
9105         * doc/install.texi: Document fine-grained multilib configuration.
9106
9107 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9108
9109         * rtlanal.c (find_first_parameter_load): Call note_stores
9110         only on the instructions.
9111
9112 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9113
9114         * alias.c (nonlocal_mentioned_p):
9115         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
9116         * calls.c (emit_call_1): Likewise.
9117         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
9118         * cselib.c (cselib_process_insn): Likewise.
9119         * df.c (df_insns_modify): Likewise.
9120         * flow.c (need_fake_edge_p): Likewise.
9121         (propagate_one_insn): Likewise.
9122         * haifa-sched.c (reemit_notes): Likewise.
9123         * integrate.c (copy_insn_list): Likewise.
9124         * jump.c (delete_prior_computation): Likewise.
9125         * local-alloc.c (validate_equiv_mem): Likewise.
9126         * loop.c (scan_loop): Likewise.
9127         * predict.c (estimate_probability): Likewise.
9128         * reload.c (reload): Likewise.
9129         * sched-deps (sched_analyze): Likewise.
9130         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
9131         * gcse.c (compute_hash_table): Likewise.
9132         (mark_call): Likewise.
9133         (store_killed_in_insn): Likewise.
9134
9135 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
9136
9137         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
9138
9139 2001-08-06  Richard Henderson  <rth@redhat.com>
9140
9141         * varasm.c (assemble_gc_entry): Remove.
9142         * output.h: Likewise.
9143
9144 2001-08-06  Richard Henderson  <rth@redhat.com>
9145
9146         * varasm.c (assemble_constructor): Take a symbol_ref and a
9147         priority instead of a bare string.  Move priority handling
9148         here from cp/decl2.c.
9149         * output.h: Update decls.
9150
9151         * c-decl.c (c_expand_body): Update calls to assemble_constructor
9152         and assemble_destructor.
9153         * profile.c (output_func_start_profiler): Likewise.
9154         * objc/objc-act.c (finish_objc): Likewise.
9155         (build_module_descriptor): Return the symbol not the symbol name.
9156
9157 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
9158
9159         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
9160         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
9161         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
9162         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
9163         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
9164         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
9165
9166 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9167
9168         * cpperror.c (print_containing_files): Moved to line-map.c.
9169         (print_location): line-map.c handles re-listing or otherwise.
9170         * cpphash.h (struct lexer_state): Remove next_bol.
9171         (struct cpp_buffer): Remove include_stack_listed.
9172         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
9173         Remove faked buffer handling.
9174         (_cpp_do_file_change): Tweak.
9175         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
9176         * cppmain.c (struct printer): Remove filename.
9177         (print_line, cb_file_change): Update accordingly.
9178         * line-map.c: Include intl.h.
9179         (init_line_maps): Initialize last_listed.
9180         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
9181         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
9182         (print_containing_files): New.
9183         * line-map.h (struct line_maps): New member last_listed.
9184         (print_containing_files, INCLUDED_FROM): New.
9185         * Makefile.in: Update.
9186         * po/POTFILES.in: Add line-map.c.
9187
9188 2001-08-06  Richard Henderson  <rth@redhat.com>
9189
9190         * except.c (convert_from_eh_region_ranges_1): Never mark
9191         USE or CLOBBER insns as throwing.
9192
9193         * expr.c (store_constructor): Don't clobber memory targets.
9194
9195 2001-08-06  Andreas Jaeger  <aj@suse.de>
9196
9197         * profile.c (branch_prob): Remove unused variable insn.
9198
9199         * Makefile.in (local-alloc.o): Add dependency on except.h.
9200
9201         * local-alloc.c: Include except.h for can_throw_internal prototype.
9202
9203 2001-08-06  Richard Henderson  <rth@redhat.com>
9204
9205         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
9206         * function.c (expand_main_function): Implement it.
9207         * doc/tm.texi: Document it.
9208
9209 2001-08-06  Stan Shebs  <shebs@apple.com>
9210
9211         * doc/install.texi: Document powerpc-*-darwin* details.
9212
9213 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
9214
9215         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
9216         (ASM_CPU_SPEC): Move back to rs6000.h
9217         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
9218
9219         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
9220
9221         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
9222         readded.
9223
9224         * config/rs6000/linux64.h: Ditto.
9225
9226         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
9227         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
9228         nothing.
9229
9230         Remove accidently readded definitions of FUNCTION_PROLOGUE,
9231         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
9232
9233         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
9234         to rs6000.h
9235
9236 2001-08-05  Richard Henderson  <rth@redhat.com>
9237
9238         * local-alloc.c (update_equiv_regs): Do not move insns that
9239         can throw.
9240
9241 2001-08-05  Jan Hubicka  <jh@suse.cz>
9242
9243         * Makefile.in (reload1.o): Add dedendancy on except.h
9244         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
9245         prototypes.
9246         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
9247         indicating wehther edges has been cleaned up.
9248         * reload1.c: Inlucde except.h
9249         (fixup_abnormal_edges): Accept deleted insns.
9250         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
9251         after combine.
9252
9253 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9254
9255         * cpplib.c (do_line): Correct line number after pop_buffer.
9256
9257 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9258
9259         PR preprocessor/3824
9260         * line-map.c: Update comments.
9261         * line-map.h: Update comments.
9262         * tradcif.y: Don't consider large numbers unsigned.
9263
9264 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9265
9266         PR preprocessor/3081
9267         * c-lex.c (map): New.
9268         (cb_file_change): Update map and use it.
9269         (cb_def_pragma, cb_define, cb_undef): Use map and line.
9270         (c_lex): Update to use map.
9271         * cpperror.c (print_location): Move to using logical line numbers.
9272         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
9273         (cpp_make_system_header): Similarly.
9274         (_cpp_execute_include): Stop line numbering hacks.  Store the
9275         line we will return to.
9276         * cpphash.h (CPP_BUF_LINE): Remove.
9277         (struct cpp_buffer): Remove lineno and pseudo_newlines.
9278         Add map and return_to_line.
9279         (_cpp_do_file_change): Update.
9280         * cppinit.c (cpp_start_read): Update line kludge.
9281         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
9282         (trigraph_ok): Use logical line numbers for diagnostics.
9283         (skip_block_comment): Likewise.
9284         (skip_whitespace): Likewise.
9285         (skip_line_comment): Use pfile->line instead.
9286         (_cpp_lex_token): Update to use logical line numbering exclusively.
9287         Handle BOL locally.  Accept new lines in directives, but keep
9288         pfile->line decremented.  Diagnostics use logical lines.  Update
9289         directive handling.
9290         * cpplib.c (SEEN_EOL): New.
9291         (skip_rest_of_line, check_eol): Use it.
9292         (end_directive): Increase line number when accepting the newline
9293         at the end of a directive.
9294         (run_directive): Simplify.
9295         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
9296         (_cpp_do_file_change): Update to take buffer line number as an
9297         argument, and store the current map in the cpp_reader.  Remove
9298         line number kludges.
9299         (_cpp_do__Pragma): Restore output position after a _Pragma.
9300         (cpp_push_buffer): Don't set output line or lineno.
9301         (_cpp_pop_buffer): Transfer more info from a faked buffer.
9302         Remove line kludge.  Set output_line.
9303         * cppmacro.c (builtin_macro): Update handling of __LINE__.
9304         (parse_arg): Use logical lines.
9305         (save_lookahead_token): Save EOFs too now.
9306         * cppmain.c (struct printer): Fix comments.
9307         (printer_init): Simplify, let caller do errors.
9308         (scan_translation_unit, check_multiline_token, dump_macro): Update.
9309         (maybe_print_line): Simplify.
9310         (print_line): Don't print a linemarker if -P.
9311         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
9312         (cb_file_change): Simplify.
9313         * line-map.h (LAST_SOURCE_LINE): Fix.
9314         (CURRENT_LINE_MAP): New.
9315
9316 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
9317
9318         * doloop.c (doloop_modify_runtime): Properly compute number of
9319         iterations if loop was unrolled.
9320
9321         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
9322         if their CSELIB_VAL_PTRs are.
9323
9324         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
9325         (setup_spill_pointers): Initialize it.
9326         (spill_restore_mem): Set it.
9327         (do_spill, do_restore): Use it to add REG_INC note.
9328         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
9329
9330         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
9331         asms if other insns are available.
9332
9333         * config/ia64/ia64.c (condop_operator): New predicate.
9334         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
9335         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
9336         patterns.
9337
9338         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
9339         temporary register than directly using a MEM.
9340
9341 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9342
9343         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
9344         parameter in last change.
9345
9346 2001-08-04  Zack Weinberg  <zackw@panix.com>
9347
9348         * sparc.md: Don't use #if inside C test expression.
9349
9350 2001-08-04  Richard Henderson  <rth@redhat.com>
9351
9352         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
9353
9354 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9355
9356         * cpphash.h (struct cpp_reader): New member directive_line.
9357         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
9358         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
9359         do_pragma): Pass line to callbacks.
9360         (start_directive): Record line of directive.
9361         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
9362         cb_include): Similarly.
9363         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
9364         Similarly.
9365
9366 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9367
9368         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
9369         comment.
9370
9371 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9372
9373         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
9374
9375         * reload1.c (fixup_abnormal_edges): New static function.
9376         (reload): Use it.
9377
9378         * flow.c (need_fake_edge_p): New function.
9379         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
9380         avoid call insn to be very last insn in the insn stream.
9381
9382         * profile.c (branch_prob): Call flow_call_edges_add instead of
9383         doing that by hand; cleanup cfg to re-merge basic blocks once
9384         we are done.
9385
9386 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9387
9388         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
9389         are also on line-map.h.
9390         * cppfiles.c (stack_include_file): Update.
9391         * cpphash.h (struct cpp_buffer): New member return_at_eof.
9392         (_cpp_pop_buffer): New.
9393         * cppinit.c (cpp_destroy, cpp_finish): Update.
9394         (do_includes): Mark each buffer to return at EOF.
9395         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
9396         return as requested.
9397         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
9398         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
9399         * cpplib.h (cpp_pop_buffer): Remove.
9400         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
9401         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
9402         buffers.
9403         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
9404         to pop buffers.
9405         (do_preprocessing): Update.
9406         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
9407         * c-parse.in (_yylex): Similarly.
9408         * scan-decls.c (scan_decls): Similarly.
9409         * line-map.h: Update comments.
9410
9411         * objc/Make-lang.in (objc-act.o): Update dependencies.
9412
9413 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9414
9415         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
9416         and soft register for operand 0.
9417         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
9418
9419 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9420
9421         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
9422         register for operand 0.
9423         ("bitcmpqi_z_used"): Allow memory for operand 0.
9424         (split "bitcmpqi"): New split to handle address reg as operand 1.
9425
9426 2001-08-04  Andreas Jaeger  <aj@suse.de>
9427
9428         * gcse.c: Revert Daniel's last patch.
9429
9430 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
9431
9432         * sparc-protos.h: Add prototypes for fp_zero_operand and
9433         reg_or_0_operand.
9434         * sh-protos.h: Add prototype for fpul_operand.
9435
9436 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9437
9438         * doc/extend.texi (Other Builtins): Fix typo in last change.
9439
9440 2001-08-03  Richard Henderson  <rth@redhat.com>
9441
9442         * target.h (gcc_target): Add asm_out.named_section,
9443         section_type_flags, have_named_sections.
9444         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
9445         (TARGET_HAVE_NAMED_SECTIONS): New.
9446         (TARGET_SECTION_TYPE_FLAGS): New.
9447
9448         * Makefile.in (toplev.o): Depend on TARGET_H.
9449         (varasm.o, dbxout.o): Likewise.
9450         * c-common.c (decl_attributes): Check targetm.have_named_sections
9451         instead of ifdef ASM_OUTPUT_SECTION_NAME.
9452         * dbxout.c (dbxout_function_decl): Likewise.
9453         (dbxout_function_end): Likewise.
9454         * toplev.c (compile_file): Likewise.
9455         * varasm.c (exception_section): Likewise.
9456         * cp/decl2.c (finish_objects): Likewise.
9457
9458         * defaults.h (EH_FRAME_SECTION): Remove.
9459         (EH_FRAME_SECTION_ASM_OP): Remove.
9460         (EH_FRAME_SECTION_NAME): New.
9461         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
9462         (UNIQUE_SECTION_P): Remove.
9463         * dwarf2out.c (SECTION_FORMAT): Remove.
9464         (ASM_OUTPUT_SECTION): Remove.
9465         (output_call_frame_info): Use named_section_flags.
9466         (output_comp_unit, dwarf2out_start_source_file): Likewise.
9467         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
9468         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
9469         * varasm.c (in_eh_frame, eh_frame_section): Remove.
9470         (named_section_flags): New.
9471         (named_section): Use it and targetm.section_type_flags.
9472         (resolve_unique_section): New.
9473         (assemble_start_function): Use it.
9474         (asm_emit_uninitialised, assemble_variable): Likewise.
9475         (default_section_type_flags): New.
9476         (default_no_named_section, default_elf_asm_named_section): New.
9477         (default_coff_asm_named_section, default_pe_asm_named_section): New.
9478         * output.h: Update varasm.c decls.
9479         (SECTION_*): New flags.
9480
9481         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
9482         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
9483
9484         * config/elfos.h (UNIQUE_SECTION_P): Remove.
9485         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
9486         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
9487         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
9488         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
9489         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
9490         * config/mips/elf.h, config/mips/elf64.h: Likewise.
9491         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
9492         * config/pa/pa64-hpux.h,
9493
9494         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
9495         (TARGET_ASM_NAMED_SECTION): New.
9496         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
9497         * config/alpha/vms.h, config/arm/coff.h: Likewise.
9498         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
9499         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
9500         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
9501         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
9502         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
9503         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
9504         * config/i386/sco5.h, config/i386/win32.h: Likewise.
9505         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
9506         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
9507         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
9508         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
9509         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
9510         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
9511         * config/sparc/sysv4.h: Likewise.
9512
9513         * config/nextstep.h: Error until named sections implemented.
9514
9515         * config/a29k/a29k.c (a29k_asm_named_section): New.
9516         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
9517         (vms_section_type_flags, vms_asm_named_section): New.
9518         * config/arm/arm.c (arm_elf_asm_named_section): New.
9519         * config/avr/avr.c (asm_output_section_name): Remove.
9520         * config/avr/avr-protos.h: Update.
9521         * config/c4x/c4x.c (c4x_asm_named_section): New.
9522         * config/h8300/h8300.c (h8300_asm_named_section): New.
9523         * config/i386/i386.c (sco_asm_named_section): New.
9524         * config/i386/winnt.c (SECTION_PE_SHARED): New.
9525         (i386_pe_section_type_flags): New.
9526         (i386_pe_asm_named_section): New.
9527         * config/i386/i386-protos.h: Update.
9528         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
9529         * config/mcore/mcore.c (mcore_asm_named_section): New.
9530         * config/mips/mips.c (iris6_asm_named_section): New.
9531         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
9532         instead of UNIQUE_SECTION_P.
9533         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
9534         (xcoff_asm_named_section): New.
9535         * config/sh/sh.c (sh_asm_named_section): New.
9536         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
9537
9538         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
9539         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
9540         (EH_FRAME_SECTION_NAME): New.
9541         (EXCEPTION_SECTION): New.
9542         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
9543         (DEBUG_*_SECTION): Remove.
9544         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
9545         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
9546         (EH_FRAME_SECTION_ASM_OP): Remove.
9547
9548         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
9549         (ASM_OUTPUT_SECTION_NAME): Remove.
9550         (TARGET_ASM_NAMED_SECTION): New.
9551         (TARGET_HAVE_NAMED_SECTIONS): New.
9552         (TARGET_SECTION_TYPE_FLAGS): New.
9553         (EH_FRAME_SECTION_ASM_OP): Remove.
9554         (EH_FRAME_SECTION_NAME): New.
9555
9556 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
9557
9558         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
9559         for complex expressions when cfun == 0.
9560         * doc/extend.texi: Document that __builtin_constant_p can be
9561         used in data initializers as well as functions.
9562
9563 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
9564
9565         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
9566         variable I locally, instead of expecting a declaration in the
9567         calling context.
9568
9569 2001-08-03  Richard Henderson  <rth@redhat.com>
9570
9571         * except.c (collect_one_action_chain): Add an explicit cleanup
9572         action if regions surrounding a catch were encoded entirely
9573         within the call-site entry.
9574
9575 2001-08-03  Richard Henderson  <rth@redhat.com>
9576
9577         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
9578         don't take REGNO of a non-register.
9579
9580 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9581
9582         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
9583         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
9584         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
9585         (__gthread_mutex_init_function): New function for mutex initialization.
9586
9587 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9588
9589         * Makefile.in: Revert screwed up commit.
9590
9591 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9592
9593         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
9594         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
9595         merged by linker script to get a final _exit().
9596         (__do_global_dtors): New for destructor handling in specific exit
9597         section.
9598         (__do_global_ctors): New for constructors in specific install section.
9599         (__map_data_section): Map data sections before running constructors.
9600         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
9601         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
9602         (DTORS_SECTION_ASM_OP): Likewise.
9603         (CTORS_SECTION_FUNCTION): Define to force a reference to
9604         __do_global_ctors.
9605         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
9606
9607 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9608
9609         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
9610
9611         * Makefile.in: Add df.h to gcse.c dependencies.
9612
9613 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9614
9615         * varasm.c (output_constant_def_contents): Use for the length of a
9616         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
9617         depending on which is larger.
9618
9619 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9620
9621         * gcse.c: Include df.h for use as a dataflow analyzer.
9622         Remove regvec.
9623         Declaration of reg_set_info: gone.
9624         New df_analyzer variable used by store motion.
9625         (reg_set_info): Deleted.
9626         (mark_mem_regs): New function, analyze regs used by a mem.
9627         (store_ops_ok): Use dataflow analyzer results to determine if
9628         necessary regs are changed in the block.
9629         (find_moveable_store): Remove check for symbol ref, we can handle
9630         much more complex expressions now.
9631         (compute_store_table): Remove most of the code, it's unnecessary
9632         now that the dataflow analyzer records the info for us.
9633         (store_killed_after): Add parameter to say whether to do the
9634         store_ops_okay test, used to speed up testing when we already know
9635         the answer, and just want to know if the store itself was killed.
9636         (build_store_vector): Largely rewritten to calculate the various
9637         vectors properly, and somewhat optimized.
9638         (store_motion): Init the df_analyzer, get REG_DEF chains.
9639         Also handle trapping expressions (since mems almost always trap)
9640         (simple_mem): Redefine what a simple mem is.
9641
9642 2001-08-03  DJ Delorie  <dj@redhat.com>
9643
9644         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
9645         set from a constant part of the condition.
9646
9647 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
9648
9649         * mkdeps.c (deps_add_default_target): Make local variable
9650         ``start'' a const char pointer.
9651         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
9652
9653 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9654
9655         * doc/install.texi (Configuration): Fix markup.
9656         (Specific, i?86-*-udk): Likewise.
9657         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
9658         --with-gnu-ld.
9659         Document --enable-threads and --enable-libgcj status.
9660         (Specific, mips-sgi-irix*): Canonicalize triples.
9661         (Specific, mips-sgi-irix5): Warn about problems with this config.
9662         Mention required GNU as patch.
9663         Native assembler problems are fixed.
9664         (Specific, mips-sgi-irix6): Update O32 ABI support status.
9665         Document --enable-threads and --enable-libgcj status.
9666
9667 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9668
9669         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
9670         of mkinstalldirs.
9671
9672 2001-08-03  Richard Henderson  <rth@redhat.com>
9673
9674         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
9675         constant data.
9676
9677 2001-08-03  Richard Henderson  <rth@redhat.com>
9678
9679         * rtlanal.c (find_first_parameter_load): Stop if we
9680         reach a CODE_LABEL at BOUNDARY.
9681
9682 2001-08-03  Richard Henderson  <rth@redhat.com>
9683
9684         * config/alpha/alpha.md (force_movdi): New insn.
9685         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
9686         Tweek FRP marking of VMS prologue insns.
9687         * config/alpha/vms.h (EPILOGUE_USES): New.
9688
9689 2001-08-02  Richard Henderson  <rth@redhat.com>
9690
9691         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
9692
9693 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
9694
9695         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
9696         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
9697         config/convex/convex.h, config/d30v/d30v.c,
9698         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9699         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
9700         config/mips/mips.h, config/mn10200/mn10200.h,
9701         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
9702         config/v850/v850.h, config/vax/openbsd.h,
9703         config/vax/openbsd1.h, config/vax/ultrix.h,
9704         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
9705         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
9706         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
9707         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
9708         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
9709         in comments and documentation.
9710
9711 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9712
9713         * line-map.c: New.
9714         * line-map.h: New.
9715         * Makefile.in (line-map.o): New.
9716         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
9717         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
9718         * cpperror.c (print_containing_files): Similarly.
9719         (print_location): Update.  Don't output a space before _Pragma.
9720         * cppfiles.c (stack_include_file): Set to line 1 immediately.
9721         (stack_include_filee, cpp_make_system_header): Update.
9722         (_cpp_execute_include): Get logical line number right for calling
9723         as-yet-unterminated #include.
9724         * cpphash.h (struct cpp_reader): Add line_maps.
9725         (_cpp_do_file_change): Update.
9726         * cppinit.c (cpp_create_reader): Initialize line maps.
9727         (cpp_destroy): Destroy line maps.
9728         (cpp_start_read): Get logical line number right.
9729         * cpplex.c (parse_string): Only warn once for multi-line strings.
9730         Use boolean variable for null warning.
9731         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
9732         already.
9733         (do_include_common): End the directive early.
9734         (do_line): Don't warn about out-of-range lines in preprocessed
9735         source.  Update.  Remove unused variables.
9736         (_cpp_do_file_change): Update for new line mapping.
9737         (pragma_cb): New typedef.
9738         (cpp_register_pragma): Stop looking ahead before calling the
9739         handler.  Clean up.
9740         (do_pragma_system_header): End directive early.
9741         (cpp_get_line_maps): New.
9742         (cpp_pop_buffer): Fudge logical line.  Update.
9743         * cpplib.h: Include line-map.h
9744         (enum cpp_fc_reason): Remove.
9745         (struct cpp_file_change): Update.
9746         (cpp_get_line_maps): New.
9747         * cppmain.c (struct_printer): New member map.
9748         (cb_file_change): Update for new mappings.
9749         * fix-header.c (cb_file_change): Similarly.
9750
9751 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9752
9753         * Makefile.in (libgcc.mk): Define mkinstalldirs.
9754         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
9755
9756 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
9757
9758         * config/vax/vax.c: include expr.h.
9759
9760 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9761
9762         * Makefile.in ($(srcdir)/configure): Only rebuild in
9763         maintainer mode.
9764         ($(srcdir)/config.in): Only define in maintainer mode.
9765         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
9766
9767 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
9768
9769         * doc/install.texi (Install GCC: Binaries): Update Bull info.
9770
9771 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9772
9773         * gcc.c (set_collect_gcc_options): New function, split out from
9774         main.
9775         Ignore elided switches.
9776         (do_spec_1): Invoke before executing command.
9777         (set_input): Export.
9778         Move declaration ...
9779         * gcc.h (set_input): ... here.
9780         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
9781         file.
9782
9783 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
9784
9785         Kill -fhonor-std.
9786         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
9787         interaction.
9788         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
9789
9790 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
9791
9792         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
9793         for the unnamed instructions it expands to.
9794
9795 2001-08-02  Richard Henderson  <rth@redhat.com>
9796
9797         * regclass.c (call_really_used_regs): Conditionally define.
9798         (init_reg_sets_1): Don't use it if not defined.
9799         (fix_register): Similarly, don't set it.
9800
9801 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9802
9803         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
9804         Correct comment that had been missed in the previous change.
9805
9806 2001-08-01  Stan Shebs  <shebs@apple.com>
9807
9808         * config/darwin.c (machopic_stub_name): Try matching by name.
9809         (update_stubs): New function.
9810         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
9811         unconditionally.
9812
9813 2001-08-01  Richard Henderson  <rth@redhat.com>
9814
9815         * except.c (output_function_exception_table): Use assemble_align.
9816         * varasm.c (assemble_eh_label): Remove.
9817         (assemble_eh_align, assemble_eh_integer): Remove.
9818
9819 2001-08-01  Robert Lipe  <robertl@caldera.com>
9820
9821         * dwarfout.c: Remove reference to README.DWARF.
9822
9823 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
9824
9825         * regclass.c (call_really_used_regs): New array for registers which
9826         are actually used by a call.
9827         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
9828         new array.
9829         (fix_register): Set call_really_used too.
9830         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
9831         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
9832
9833 2001-08-01  Richard Henderson  <rth@redhat.com>
9834
9835         * read-rtl.c (read_name): Consider \r whitespace.
9836
9837 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
9838
9839         * config.gcc: Recognize powerpc-*-netbsd*.
9840
9841         * doc/install.texi (Host/target specific installation notes for
9842         GCC): Mention powerpc-*-netbsd*.
9843
9844         * config/rs6000/netbsd.h: New file.
9845         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
9846         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
9847         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
9848         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
9849         (TARGET_VERSION): Redefine.
9850
9851         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
9852         mcall-netbsd as a match for mcall-sysv.
9853         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
9854         (ncrti.S, ncrtn.S): New targets.
9855         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
9856
9857         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
9858         "netbsd' as a V4 ABI.
9859         (ASM_SPEC): Check for -mcall-netbsd.
9860         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
9861         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
9862         (LIB_SPEC, ENDFILE_SPEC): Ditto.
9863         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
9864         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
9865         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
9866         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
9867
9868         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
9869         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
9870
9871 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
9872
9873         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
9874         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
9875         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
9876         including "unwind-pe.h".
9877
9878 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
9879
9880         * rs6000.md (define_splits): Kill unused constraints.
9881
9882 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
9883                               Jan Hubicka  <jh@suse.cz>
9884
9885         * function.c (thread_prologue_and_epilogue_insns): Kill code
9886         dealing with non-existent CFG.
9887
9888 2001-08-01  Kazu Hirata  <kazu@hxi.com>
9889
9890         * alias.c: Fix comment formatting.
9891         * bitmap.c: Likewise.
9892         * builtins.c: Likewise.
9893         * calls.c: Likewise.
9894         * c-common.c: Likewise.
9895         * c-decl.c: Likewise.
9896         * c-dump.c: Likewise.
9897         * c-lex.c: Likewise.
9898         * collect2.c: Likewise.
9899         * combine.c: Likewise.
9900         * conflict.c: Likewise.
9901         * cppfiles.c: Likewise.
9902         * cppinit.c: Likewise.
9903         * cpplex.c: Likewise.
9904         * cpplib.c: Likewise.
9905         * cppmacro.c: Likewise.
9906         * cppspec.c: Likewise.
9907         * c-pragma.c: Likewise.
9908         * crtstuff.c: Likewise.
9909         * cse.c: Likewise.
9910         * cselib.c: Likewise.
9911         * c-semantics.c: Likewise.
9912         * c-typeck.c: Likewise.
9913
9914 2001-08-01  H.J. Lu <hjl@gnu.org>
9915
9916         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
9917
9918 2001-08-01  H.J. Lu <hjl@gnu.org>
9919
9920         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
9921
9922 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
9923
9924         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
9925         contextualizing Objective-C class name lookup by the lexer.
9926         (typespec_reserved_nonattr): Disable ObjC class name lookup after
9927         seeing a TYPESPEC.
9928         (protocoldef): Add support for forward @protocol declarations.
9929         (yylexname): Suppress ObjC class name lookup in certain contexts;
9930         re-enable after lookup is complete.
9931         (_yylex): Re-enable ObjC class name lookup when certain
9932         punctuation marks are seen.
9933
9934         * objc/objc-act.c (check_protocol_recursively): New function used
9935         for finding circular dependencies in protocols.
9936         (objc_declare_protocols): New function for handling forward
9937         @protocol declarations.
9938         (receiver_is_class_object): Detect the case when 'self' is used
9939         inside of a class method.
9940         (build_message_expr): Issue a warning if class method is desired
9941         but instance method is found instead.
9942         (conforms_to_protocol): Streamline.
9943         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
9944         protocol Foo, even if 'Bar foo' does not.
9945         (check_protocols): Streamline.
9946         (start_protocol): Add checks for circular and duplicate protocol
9947         definitions.
9948         (encode_aggregate_within): For typedefs of structs, encode the
9949         underlying struct.
9950         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
9951         (objc_declare_protocols): New prototype.
9952
9953 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9954
9955         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
9956         * cpplex.c (handle_newline): Update prototype.  Maintain logical
9957         line number.
9958         (skip_escaped_newlines, skip_block_comment, parse_string):
9959         Update accordingly.
9960         (_cpp_lex_token): Update, and store token position within the token.
9961         * cpplib.h (struct cpp_token): Add line and column entries.
9962         * cppmacro.c (replace_args): Position stringified tokens correctly.
9963
9964 2001-08-01  Andreas Jaeger  <aj@suse.de>
9965
9966         * basic-block.h: Add prototype for last_loop_beg_note.
9967
9968 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
9969
9970         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
9971         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
9972         comment.
9973         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
9974         while handling WITH_CLEANUP_EXPR node. Use second operand calling
9975         expand_decl_cleanup.
9976         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
9977         the first RTX.
9978         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
9979         operand while calling simple_cst_equal.
9980         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
9981         operand is the cleanup expression, the third is the RTL_EXPR.
9982         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
9983
9984 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
9985
9986         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
9987
9988 2001-07-31  matthew green  <mrg@eterna.com.au>
9989
9990         * config.gcc (i386-*-netbsdelf): New description.
9991         * config/i386/netbsd-elf.h: New file.
9992
9993 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
9994
9995         * loop.c (check_dbra_loop): Use single_set to compute
9996         jump_label.
9997
9998 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
9999
10000         PowerPC reorg and support for powerpc64-*-linux*.
10001
10002         Also fixes emitting of constants on 32 bit and 64 bit
10003         platforms.
10004
10005         * config.gcc: powerpc64-*-linux* is a new target.
10006         Things that needed aix.h now also include xcoff.h
10007
10008         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
10009         xcoff.h.
10010         Move AIX specific stuff into aix.h.
10011         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
10012         with more than just XCOFF now.
10013         (SET_ASM_OP): Remove, now defined where needed.
10014         (FUNCTION_PROLOGUE): New macro definition.
10015         (FUNCTION_EPILOGUE): New macro definition.
10016         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
10017
10018         * config/rs6000/xcoff.h: New file.
10019
10020         * config/rs6000/linux64.h: New file.
10021
10022         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
10023
10024 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
10025
10026         * rs6000.c (print_operand_address): Handle ELF syntax.
10027         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
10028         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
10029         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
10030
10031 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
10032
10033         * rs6000.c (rs6000_override_options): Only disable
10034         flag_function_sections for XCOFF.
10035         (exact_log2_cint_operand): New predicate.
10036         (reg_or_{add,sub}_cint64_operand): New predicates.
10037         (add_operand): Compare CONST_INT with fewer function calls.
10038         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
10039         (print_operand, case 'p'): Ensure positive operand.
10040         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
10041         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
10042         (PREDICATE_CODES): Add new predicates.
10043         * rs6000.md (addsi3): Split 32-bit constants more correctly.
10044         (divsi3, modsi3): Ensure positive power-of-2.
10045         (adddi3): Use new predicate.  Split 32-bit constants more
10046         correctly.  Re-arrange splitter to handle any constant.
10047         (subdi3): Use new predicate.
10048         (divdi3, moddi3): Ensure positive power-of-2.
10049         (movdi): Use rs6000_emit_set_const.
10050         (load_toc_v4_pic_di): Delete.
10051
10052 2001-07-31  Graham Stott <grahams@redhat.com>
10053
10054         * function.c (pad_below): Revert 2001-07-26 patch.
10055
10056 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
10057
10058         * reg-stack (convert_regs_1): Fix best edge condition.
10059
10060 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
10061
10062         * jump.c (duplicate_loop_exit_test): Better test for jumps
10063         entering the loop; create loop pre_header.
10064
10065 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
10066
10067         * doc/install.texi: Add s390 and s390x as new targets.
10068         * doc/invoke.texi: Add documentation of S/390 and zSeries
10069         target options.
10070         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
10071
10072 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
10073
10074         * config/m68k/m68k.md: Replace all general_operand with
10075         nonimmediate_operand for all destinations.
10076         * config/m68k/m68k.c (not_sp_operand): Likewise.
10077
10078 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
10079
10080         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
10081
10082 2001-07-30  Richard Henderson  <rth@redhat.com>
10083
10084         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
10085         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
10086
10087 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
10088
10089         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
10090         Add missing doc strings
10091         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
10092         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
10093
10094 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
10095
10096         * i386.c (ix86_output_main_function_alignment_hack): New function.
10097         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
10098
10099         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
10100         edges by EDGE_DFS_BACK flag.
10101         (dump_edge_info): Add dfs_back flag.
10102         * basic-block.h (EDGE_DFS_BACK): New constant.
10103         (mark_dfs_back_edges): Declare.
10104         * alias.c (loop_p): Remove.
10105         (mark_constant_function): Use mark_dfs_back_edges.
10106
10107         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
10108         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
10109         (compensate_edge): Break out from ...
10110         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
10111         (convert_regs_2): Set block_done once block is really done;
10112         Do updating of the predecesors counts.
10113
10114         * toplev.c (rest_of_compilation): Recompute block_for_insn
10115         before post-reload cfg_cleanup.
10116         * function.c (thread_prologue_epilogue_insns):
10117         Call set_block_for_new_insns when emitting prologue directly.
10118
10119 2001-07-30  Andreas Jaeger  <aj@suse.de>
10120
10121         * jump.c: Add prototype for mark_modified_reg.
10122
10123         * cse.c (set_live_p): Add unused attribute.
10124
10125         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
10126         overflow.
10127         (scan_for_source_files): Use long for count to avoid overflow.
10128         (output_data): Likewise.
10129         (output_data): Don't use string concatatenation to silence gcc
10130         -traditional.
10131
10132         * predict.c: Fix typos and grammar.
10133
10134         * gcse.c (insert_insn_end_bb): Remove unused variables.
10135
10136 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
10137
10138         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
10139         (attempt_auto_inc): LIkewise.
10140         (mark_used_reg): Likewise.
10141         (try_pre_increment_1): Likewise.
10142         * regclass.c (regclass): Likewise.
10143         * global.c (allocno_compare): Update comment; change scaling factor.
10144         * local-alloc.c (QTY_CMP_PRI): Likewise.
10145         * regs.h (REG_FREQ_FROM_BB): New.
10146         (REG_FREQ_MAX): Likewise.
10147
10148 2001-07-30  H.J. Lu <hjl@gnu.org>
10149
10150         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
10151         -D_GNU_SOURCE.
10152
10153 2001-07-30  H.J. Lu  (hjl@gnu.org)
10154
10155         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
10156         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10157         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
10158
10159 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
10160
10161         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
10162         as -mthumb-interwork when -mcpu=arm7 is specified.
10163
10164 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10165
10166         * predict.def (noreturn, loop branch, loop exit): Mark as first
10167         match heuristics.
10168
10169 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
10170
10171         * combine.c (try_combine): Avoid barrier after noop jumps.
10172
10173 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10174
10175         * cpphash.h (struct cpp_reader): Remove import_warning.
10176         * cpplib.c (skip_rest_of_line): Don't bother turning off
10177         macro expansion.
10178         (parse_include): Move include handling to...
10179         (do_include_common): ... here.  Move import warning from...
10180         (do_import): ... here.
10181         (do_pragma_poison): Don't do a callback for poison identifiers.
10182         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
10183         * cppmain.c (setup_callbacks): Similarly.
10184
10185 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
10186
10187         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
10188         handle multiple sets.
10189         * except.c (sjlj_mark_call_sites): .... here.
10190         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
10191
10192 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
10193
10194         Suggested by Richard Henderson and Richard Kenner:
10195         * combine.c (recog_for_combine): Use the fake recog
10196         only if instruction does not match.
10197         * rtl.h (NOOP_MOVE_INSN_CODE): New.
10198         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
10199
10200         * combine.c (try_combine): Discover noop jump as direct jump.
10201
10202 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
10203
10204         * df.c (df_rd_global_compute): Add successors to worklist, not
10205         current item.
10206         (df_ru_global_compute): Ditto.
10207
10208 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
10209
10210         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
10211         increment REG_N_SETS.
10212
10213 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
10214
10215         * sbitmap.h: New prototype for sbitmap_a_xor_b.
10216
10217         * sbitmap.c (sbitmap_a_xor_b): New function.
10218         ifdef the basic block stuff on IN_GCC.
10219
10220 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10221
10222         * cppexp.c (parse_defined): Always record the macro name.
10223         (lex): Don't worry about identifiers, or special-case
10224         CPP_NOT here.
10225         (_cpp_parse_expr): Figure out at the end of the routine
10226         whether we saw a valid !defined() expression.
10227         * cppfiles.c (stack_include_file): Update for mi_valid.
10228         (_cpp_pop_file_buffer): Similarly.
10229         * cpplex.c (_cpp_lex_token): Similarly.
10230         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
10231         mi_if_not_defined, mi_lexed): Remove.
10232         (mi_valid): New.
10233         * cpplib.c (do_if): Simplify.
10234         (do_endif, push_conditional, _cpp_handle_directive): Update
10235         for renaming of mi_state to mi_valid.
10236 doc:
10237         * cpp.texi: Add index entries for digraphs, and add comment
10238         that C++ refers to them as alternative tokens.
10239
10240 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
10241
10242         * basic-block.h (CLEANUP_PRE_LOOP): New.
10243         * except.c (finish_eh_generation): Update call of cleanup_cfg.
10244         * sibcall.c (optimize_sibling_calls): Likewise.
10245         * toplev.c (rest_of_compilation): Likewise.
10246         * flow.c (try_forward_edges): Take argument MODE;
10247         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
10248         (try_optimize_cfg): Update call of try_forward_edges.
10249
10250 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
10251                                 Jan Hubicka  <jh@suse.cz>
10252
10253         * (validate_replace_rtx_1): Fix simplification of MINUS.
10254
10255 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10256
10257         PR preprocessor/3669
10258         * cppinit.c (init_dependency_output): Turn off dump requests
10259         if sending dependencies to stdout.
10260
10261 2001-07-28  Richard Henderson  <rth@redhat.com>
10262
10263         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
10264         not optimizing.
10265
10266 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
10267
10268         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
10269
10270 2001-07-28  Kazu Hirata  <kazu@hxi.com>
10271
10272         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
10273         is VAR_DECL first to prevent an ICE.
10274
10275 2001-07-28  Richard Henderson  <rth@redhat.com>
10276
10277         * varasm.c (immed_real_const_1): Don't elide special cases for
10278         nested functions.
10279         (clear_const_double_mem): Clear const_tiny_rtx too.
10280
10281 2001-07-28  Richard Henderson  <rth@redhat.com>
10282
10283         * dwarf2out.c (dw_val_class_offset): New.
10284         (struct dw_ranges_struct, dw_ranges_ref): New.
10285         (ranges_table, ranges_table_allocated): New.
10286         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
10287         (add_AT_offset, add_ranges, output_ranges): New.
10288         (print_die, output_die): Handle dw_val_class_offset.
10289         (attr_checksum, size_of_die, value_format): Likewise.
10290         (gen_lexical_block_die): Handle non-contiguous blocks.
10291         (gen_block_die): Likewise.
10292         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
10293         if needed.  Dump the ranges table.
10294         * final.c (final_start_function): Remove unnecessary notes and
10295         rebuild the block tree before numbering the blocks.
10296         * function.c (reorder_blocks_0): Walk the existing block tree
10297         to unmark all blocks.
10298         (reorder_blocks_1): Create block fragments when duplicate block
10299         notes are seen.
10300         (reorder_fix_fragments): New.
10301         (reorder_blocks): Call it.
10302         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
10303
10304 2001-07-28  Richard Henderson  <rth@redhat.com>
10305
10306         * emit-rtl.c (adjust_address): Make a copy of the memory address.
10307
10308 2001-07-28  Richard Henderson  <rth@redhat.com>
10309
10310         * flow.c (add_to_mem_set_list): New function.
10311         (init_propagate_block_info): Use it.
10312         (mark_set_1): Likewise.
10313         (insn_dead_p): Canonicalize memory address for dead store
10314         comparison.  Allow wider mode stores to kill narrower mode stores.
10315         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
10316         (invalidate_mems_from_set): Don't handle MEMs.
10317
10318 2001-07-28  Kazu Hirata  <kazu@hxi.com>
10319
10320         * config/h8300/h8300.h: Fix formatting.
10321
10322 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10323
10324         * basic-block.h (EDGE_FREQUENCY): New macro.
10325         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
10326         for new BB/edges.
10327         * flow.c (find_sub_basic_blocks): Likewise.
10328         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
10329         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
10330
10331         * predict.c (DEF_PREDICTOR): New argument FLAGS.
10332         (HITRATE): New macro.
10333         (PRED_FLAG_FIRST_MATCH): New constant.
10334         (predictor_info): New field flgags.
10335         (combine_predictions_for_insn): Use DS theory to combine
10336         probabilities; set the edge probabilities when finished.
10337         (estimate_probability): Avoid duplicated matches
10338         of LOOP_BRANCH heuristics for nested loops; update comment.
10339         * predict.def: Add flags for each prediction, set probabilities
10340         according to B&L paper.
10341         * predict.h (DEF_PREDICTOR): New argument FLAGS.
10342
10343         * profile.c (compute_branch_probabilities):  Cleanup way the edge
10344         probabilities are computed and REG_BR_PROB notes are dropped; if
10345         values does not match, emit error.
10346         (init_branch_prob): Do error instead of warning when profile driven
10347         feedback is missing or corrupt.
10348
10349 2001-07-27  DJ Delorie  <dj@redhat.com>
10350
10351         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
10352         against a constant, try to adjust the compare to have the desired
10353         constant in it so that min/max optimizations happen more often.
10354
10355 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10356
10357         * flow.c (last_loop_beg_note): New function.
10358         (redirect_edge_and_branch): Use it.
10359         (split_edge): Likewise.
10360
10361         * alias.c (loop_p): Avoid uninitialized memory access.
10362
10363         * flow.c (try_forward_edges): Avoid accessing freed memory.
10364
10365         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
10366         variable access.
10367
10368 2001-07-26  Andrew Haley  <aph@redhat.com>
10369         Joern Rennecke <amylaar@redhat.com>
10370
10371         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
10372         (SUBTARGET_CPP_ENDIAN_SPEC): New.
10373         (SUBTARGET_CPP_SPEC): New.
10374         (CPP_SPEC): Remove.
10375         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
10376         (SUBTARGET_CPP_PTR_SPEC): New.
10377         (CPP_DEFAULT_CPU_SPEC): New.
10378         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
10379         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
10380         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
10381         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
10382         (SUBTARGET_CPP_SPEC): Define as an empty string.
10383
10384 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10385
10386         * doc/install.texi (Configuration): Properly link the host
10387         specific instructions also when generating HTML.
10388
10389 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
10390
10391         * flow.c (redirect_edge_and_branch_force): Test
10392         target->global_live_at_start.
10393
10394 2001-07-26  Richard Henderson  <rth@redhat.com>
10395
10396         * simplify-rtx.c (avoid_constant_pool_reference): Export.
10397         * rtl.h (avoid_constant_pool_reference): Declare it.
10398         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
10399         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
10400
10401 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10402
10403         * rtl.h (cleanup_barriers): Declare.
10404         * jump.c (cleanup_barriers): New function.
10405         * toplev.c (rest_of_compilation): Call cleanup_barriers
10406         before loop optimizer and after bb_reorder.
10407
10408         * flow.c (back_edge_of_syntactic_loop_p): New.
10409         (split_edge): Use it.
10410
10411 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10412
10413         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
10414
10415 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
10416
10417         * cse.c (cse_process_notes): Replace any registers if the address
10418         remains valid.
10419
10420 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
10421
10422         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
10423         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
10424         (propagate_block): Update prototype.
10425         * flow.c (update_life_info): Simplify the CFG and
10426         recalculate the global regs which are alive when
10427         removing dead code during a global update.
10428         (propagate_block): Return non-zero if an INSN is
10429         deleted.
10430
10431 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10432
10433         * Makefile.in (LIBICONV): Define.
10434
10435 2001-07-26  Catherine Moore  <clm@redhat.com>
10436
10437         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
10438         of conditional to avoid tree checking errors.
10439
10440 2001-07-26  Kazu Hirata  <kazu@hxi.com>
10441
10442         * regmove.c (regmove_optimize): Don't replace a reg with
10443         another reg of a different mode.
10444
10445 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
10446
10447         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
10448         limit length of dependency flush list.
10449         * params.h (MAX_PENDING_LIST_LENGTH): Define.
10450         * sched-int.h  (struct deps): Add pending_flush_length field.
10451         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
10452         has 1 element in it.
10453         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
10454         (sched_analyze): After a jump, if the pending memory flush list is too
10455         large, flush the pending lists.
10456         (init_deps): Initialize pending_flush_length to 0.
10457         * doc/invoke.texi (max_pending_list_length): Document parameter.
10458
10459 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10460
10461         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
10462         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
10463         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
10464
10465 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10466
10467         * cpphash.h (struct_lexer_state): Delete was_skipping.
10468         Move skipping here from struct cpp_reader.
10469         * cpplex.c (parse_identifier): Update.
10470         (_cpp_lex_token): Don't skip tokens in a directive.
10471         * cpplib.c (struct if_stack): Update.
10472         (start_directive, end_directive): Don't change skipping state.
10473         (_cpp_handle_directive): Update.
10474         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
10475         (do_else, do_endif): Update; only check for excess tokens if not
10476         in a skipped conditional block.
10477         (push_conditional): Update for new struct if_stack.
10478
10479 2001-07-26  Graham Stott  <grahams@redhat.com>
10480
10481         * function.c (locate_and_pad_parm): Also pad initial offset
10482         so that the total argument size also includes the padding.
10483
10484 2001-07-26  Graham Stott <grahams@redhat.com>
10485
10486         * gensupport.c (alter_output_for_insn): Correct enable checking failure
10487         change XSTR to XTMPL.
10488
10489         (process_one_cond_exec): Likewise
10490
10491 2001-07-25  Richard Henderson  <rth@redhat.com>
10492
10493         * varasm.c (assemble_variable): Create DECL_RTL before setting
10494         TREE_ASM_WRITTEN.
10495
10496 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
10497
10498         * predict.c (estimate_probability): Avoid duplicated predictions.
10499
10500         * loop.c (find_and_verify_loops): Grok multiple barriers.
10501
10502 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10503
10504         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
10505
10506         * dbxout.c: Consistently use putc instead of fputc.
10507         (print_wide_int): New function; call instead of direct fprintf.
10508         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
10509         (dbxout_type_fields, dbxout_type_method_1): Likewise.
10510         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
10511         (print_int_cst_octal): Likewise.
10512         (print_octal): Show we wrote characters.
10513         (dbxout_type): Set have_used_extensions in more places.
10514
10515 2001-07-25  Catherine Moore  <clm@redhat.com>
10516
10517         * config/v850/v850.c (v850_va_arg):  Use addr
10518         instead of valist to build incr.
10519
10520 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
10521
10522         * flow.c (delete_dead_jumptables): New function.
10523         (life_analyzis): Call it.
10524         * bb-reorder.c (skip_insns_after_block): Handle contradictory
10525         sequences.
10526
10527 2001-07-25  Richard Henderson  <rth@redhat.com>
10528
10529         * except.c (reachable_handlers): Handle a region being removed
10530         out from under a RESX.
10531
10532 2001-07-25  Richard Henderson  <rth@redhat.com>
10533
10534         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
10535         swap GE/GT if it is an fp comparison.
10536
10537 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
10538
10539         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
10540         operands.
10541
10542 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
10543
10544         * ssa.c (rename_insn_1): Do not wrap an assignment to a
10545         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
10546         glitch.
10547
10548         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
10549         throw an exception.
10550         (visit_expression): When attempting to simplify an expression,
10551         retrieve any modes for arguments before they are simplified
10552         to constants.
10553
10554 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
10555             Janis Johnson  <janis@us.ibm.com>
10556
10557         * stmt.c (expand_goto): A nonlocal goto can be a call too.
10558         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
10559         pointer parameters to match documented usage of nonlocal_goto.
10560         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
10561         parameters to their correct order.
10562         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
10563         parameters to their correct order.
10564
10565 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
10566
10567         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
10568
10569 2001-07-25  Jan Hubicka  <jh@suse.cz>
10570             Richard Henderson  <rth@redhat.com>
10571
10572         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
10573         the sequence.
10574         (make_edges): New argument update_p; populate the edge cache if set.
10575         (find_basic_blocks): Update make_edges invocation.
10576
10577 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10578
10579         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
10580
10581 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10582
10583         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
10584         -Acpu and -Amachine.h.
10585         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
10586         Corrected header to say ELF not a.out.
10587         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
10588         when given -msoft-float.
10589
10590 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10591
10592         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
10593         extra multilib parts like arm-elf.
10594         (i960-*-coff*, i960-*-rtems): Should not use collect2.
10595         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
10596         crtfini.o as extra multilib parts.
10597
10598 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10599
10600         * configure.in: Add rtems as a supported thread model.
10601         * gthr-rtems.h: Add missing entry point __gthread_active_p.
10602         * configure: Rebuilt.
10603
10604 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
10605
10606         * stor-layout.c (get_mode_alignment): make it work when
10607         BITS_PER_UNIT is not a power of two.
10608         * builtins.c (get_pointer_alignment): Likewise.
10609
10610 2001-07-24  Richard Henderson  <rth@redhat.com>
10611
10612         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
10613         the retrieved constant into the expected mode.
10614
10615 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
10616
10617         * flow.c (try_simplify_condjump): Avoid duplicated edges.
10618         (verify_flow_info): Check for duplicated edges; clarify
10619         error reporting.
10620
10621         * flow.c (block_label): Update basic_block_for_insn.
10622         (commit_edge_insertions): Call compute_bb_for_insn.
10623
10624         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
10625         returns too.
10626
10627         * flow.c (redirect_edge_and_branch,
10628         try_optimize_cfg): Use redirect_edge_succ_nodup
10629         (redirect_edge_succ_nodup): New.
10630         * basic_block.h (redirect_edge_succ_nodup): Declare.
10631
10632         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
10633         after gcse.
10634
10635 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
10636
10637         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
10638         (try_crossjump_to_edge): Update commetns.
10639         (try_crossjump_bb): Likewise.
10640
10641 2001-07-24  Richard Henderson  <rth@redhat.com>
10642
10643         * combine.c (distribute_notes): Move set of need_refresh
10644         for noop_move_p down to catch all cases.
10645
10646 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
10647
10648         * recog.c (split_all_insns_noflow): New.
10649         * rtl.h (split_all_insns_noflow): Declare.
10650         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
10651         * m68hc11.c (m68hc11_reorg): Likewise.
10652         * sh.c (machine_dependent_reorg): Likewise.
10653         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
10654         call.
10655
10656 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
10657
10658         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
10659         (ashlsi3_n splitter): Likewise.
10660         (lshrsi3_n splitter): Likewise.
10661
10662         (GOTaddr2picreg): Make const SImode.
10663         (sym_label2reg): Likewise.
10664         (symGOT2reg): Likewise.
10665         (symGOTOFF2reg) Likewise.
10666
10667         (casesi_worker_0): Make unspec SImode.
10668
10669 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
10670
10671         * config/sh/sh.c (barrier_align): Check that an operand really is
10672         an insn before extracting its INSN_CODE.
10673
10674 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
10675
10676         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
10677         dangling else.
10678
10679         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
10680         for SImode to prevent overflow.
10681
10682 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10683
10684         * config/mips/irix6-libc-compat.c: New file.
10685         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
10686         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
10687         passing workaround.
10688
10689 2001-07-24  lars brinkhoff  <lars@nocrew.org>
10690
10691         * rtl.texi (REG_POINTER): Document.
10692         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
10693         QFmode, HFmode, TQFmode, QCmode, and HCmode.
10694
10695 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
10696
10697         * flow.c (delete_noop_moves): Do not confuse libcall regions.
10698
10699 2001-07-23  Richard Henderson  <rth@redhat.com>
10700
10701         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
10702
10703 2001-07-23  Kazu Hirata  <kazu@hxi.com>
10704
10705         * config/h8300/h8300-protos.h: Add a prototype for
10706         general_operand_dst_push.
10707         * config/h8300/h8300.c (general_operand_dst_push): New.
10708         * config/h8300/h8300.h (OK_FOR_T): New.
10709         (EXTRA_CONSTRAINT): Use it.
10710         * config/h8300/h8300.md (movqi_push): Remove and integrate into
10711         the existing movqi pattern.
10712         (movhi_push): Likewise.
10713
10714         * reload.c: Fix comment typos.
10715
10716 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
10717
10718         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
10719
10720 2001-07-23  H.J. Lu  (hjl@gnu.org)
10721
10722         * doc/extend.texi: Update __builtin_return_address and
10723         __builtin_frame_address.
10724
10725 2001-07-23  Richard Henderson  <rth@redhat.com>
10726
10727         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
10728         before CSE.
10729         * config/i386/i386.md: New setcc+movzbl peephole2.
10730
10731 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10732
10733         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
10734         * objc/objc-act.c: Include debug.h.
10735         (synth_module_prologue): Save and restore debug hooks too.
10736
10737 2001-07-23  lars brinkhoff  <lars@nocrew.org>
10738
10739         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
10740         and C4X_FLOAT_FORMAT.
10741         (BOOL_TYPE_SIZE): Document.
10742
10743 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
10744
10745         * unroll.c (loop_iterations): Fix miscalculation of initial
10746         giv offset.
10747
10748 2001-07-13  Andrew Haley  <aph@redhat.com>
10749
10750         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
10751         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
10752         * config/sh/sh.c (sh_can_redirect_branch): New function.
10753         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
10754         * reorg.c (steal_delay_list_from_target): Use
10755         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
10756
10757 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
10758
10759         * flow.c (try_simplify_condjump): Unlink insn chain on
10760         fallthru edge; use can_fallthru.
10761
10762 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
10763
10764         * basic-block.h (find_sub_basic_block): Declare.
10765         * flow.c (make_edges): New arguments MIN and MAX;
10766         (find_sub_basic_blocks): Revamp to use make_edges
10767         and purge_dead_edges.
10768         (find_basic_blocks): Update call of find_sub_basic_block.
10769
10770         * recog.c (split_all_insns): Always expect CFG to be consistent;
10771         call find_sub_basic_blocks in case something has changed.
10772         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
10773         has been built.
10774
10775         * basic-block.h (delete_noop_moves): Declare.
10776         * combine.c (combine_instructions): Call it.
10777         (recog_for_combine): Tolerate noop moves
10778         (distribute_notes): Force refresh when register dies at noop move.
10779         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
10780         too.
10781         (life_analysis): Update delete_noop_moves call.
10782         (set_noop_p): Move too ...
10783         * rtlanal.c (noop_move_p): ... here.
10784         * rtl.h (noop_move_p): Declare.
10785
10786         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
10787         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
10788         after combine.
10789         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
10790         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
10791
10792 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
10793
10794         * reload.c (push_reload): Fix typo in comment.
10795         (find_reloads_address): Ditto.
10796         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
10797
10798 2001-07-22  Richard Henderson  <rth@redhat.com>
10799
10800         * flow.c: Grammar check and clarify a lot of comments.
10801         (try_simplify_condjump): Rename variables to be clearer.
10802         (try_forward_edges): Skip complex and fallthru edges.
10803         Rearrange tests to avoid duplicate checks.
10804         (flow_find_cross_jump): Likewise.
10805         (outgoing_edges_match): Allow match if neither branch has
10806         probability data.  Loosen probability match to 5%.
10807         (try_crossjump_to_edge): Hoist repeated indirection into
10808         local variables.
10809         (try_crossjump_bb): Don't check complex edges.  Eliminate
10810         redundant crossjump tests.
10811         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
10812         checks before more expensive checks.
10813
10814 2001-07-22  Richard Henderson  <rth@redhat.com>
10815
10816         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
10817         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
10818         arguments.
10819
10820 2001-07-22  Richard Henderson  <rth@redhat.com>
10821
10822         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
10823         (const_sint32_operand): Likewise.
10824         * m68k.md (anon mulsi pattern): Use const_int_operand not
10825         const_sint32_operand.
10826         (umulsi3_highpart): Zero extend a constant input.
10827         (smulsi3_highpart): Don't bother checking SImode constant.
10828         (const_umulsi3_highpart): Give op3 DImode.
10829         (const_smulsi3_highpart): Likewise.
10830
10831 2001-07-22  Richard Henderson  <rth@redhat.com>
10832
10833         * flow.c (split_block): Make sure bb_note is included in the
10834         new block when splitting before a label.
10835
10836 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
10837
10838         * basic-block.h (redirect_edge_and_branch_force,
10839         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
10840         * flow.c (redirect_edge_and_branch_force,
10841         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
10842         (redirect_edge_and_branch_force): Fix copying of lifeness information.
10843         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
10844         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
10845         instead of label; update CFG after transformation.
10846         (find_if_case_1): Update call, use redirect_edge_and_branch_force
10847         for finishing the transformation; handle even case where ELSE
10848         does not follow THEN.
10849         (find_if_case_2): Update call of dead_or_predictable; simplify
10850         CFG update.
10851
10852         * emit-rtl.c (split_branch_probability): New global variable.
10853         (try_split): Take care to set split_branch_probability and
10854         create REG_BR_PROB note for new jump insns.
10855         * md.texi (define_split): Document new feature.
10856
10857         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
10858
10859 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10860
10861         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
10862         (asm_out_file): Remove redundant declaration.
10863         (assemble_asm): Remove old #if 0 block.
10864         (assemble_variable): Remove end of function; debug output is
10865         now handled with global_decl.  Remove old #if 0 block.  Update.
10866         Remove saved_in_section and associated no-op code.
10867         * Makefile.in (varasm.o): Correct dependencies.
10868
10869 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
10870
10871         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10872         the definition in defaults.h.
10873
10874 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
10875
10876         * jump.c: Update comments.
10877         (delete_barrier_successors, delete_unreferenced_labels,
10878         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
10879         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
10880         jump_optimize, jump_optimize_minimal): Kill.
10881         (rebuild_jump_labels): Move code from jump_optimize_1.
10882         (purge_line_number_notes): Likewise.
10883         (copy_loop_headers): Likewise.
10884         * reg-stack.c: Update comment.
10885         * stmt.c: Likewise.
10886         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
10887         JUMP_AFTER_REGSCAN): Kill.
10888         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
10889         purge_line_number_notes and copy_loop_headers.
10890
10891 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
10892            Richard Henderson  <rth@redhat.com>
10893
10894         * dbxout.c (dbxout_global_decl): New.
10895         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
10896         * sdbout.c (sdbout_finish): New.
10897         (sdbout_debug_hooks): Use it, add comments.
10898         (sdbout_global_decl): Defer initialised public vars to
10899         sdbout_finish.
10900         * varasm.c (assemble_variable): Don't output debug information
10901         for file-scope variables.
10902
10903 2001-07-22  Richard Henderson  <rth@redhat.com>
10904
10905         * config/alpha/alpha.c (get_trap_mode_suffix): New.
10906         (get_round_mode_suffix): New.
10907         (print_operand): Use them for [/].  Remove support for [&'`()+].
10908         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
10909         * config/alpha/alpha.md (attr round_suffix): New.
10910         (attr trap_suffix): New.
10911         (all insns): Set them appropriately.  Use %/ instead of the
10912         myriad punctuators.
10913
10914 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10915
10916         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
10917
10918 2001-07-22  Richard Henderson  <rth@redhat.com>
10919
10920         * regrename.c (regrename_optimize): Compute nregs for each
10921         potential target register.
10922
10923 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
10924            Richard Henderson  <rth@redhat.com>
10925
10926         * dbxout.c (dbxout_global_decl): New.
10927         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
10928         * sdbout.c (sdbout_finish): New.
10929         (sdbout_debug_hooks): Use it, add comments.
10930         (sdbout_global_decl): Defer initialised public vars to
10931         sdbout_finish.
10932         * varasm.c (assemble_variable): Don't output debug information
10933         for file-scope variables.
10934
10935 2001-07-21  H.J. Lu  (hjl@gnu.org)
10936
10937         * config/mips/mips.c (mips_cpu): Moved into ...
10938         (override_options): Here.
10939
10940         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
10941         mips_tune.
10942         (mips_cpu): Removed.
10943
10944 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10945
10946         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
10947         ("iorqi3"): Likewise.
10948         ("xorqi3"): Likewise.
10949         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
10950         ("*subhi3_sp): Likewise.
10951         ("*subhi3"): Likewise.
10952         ("extendhisi2"): Accept D, X and Y as source operand to avoid
10953         reload problems.
10954
10955 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10956
10957         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
10958         * config/freebsd.h: Likewise.
10959         * config/linux.h: Likewise.
10960         * config/openbsd.h: Likewise.
10961         * config/alpha/linux-elf.h: Likewise.
10962         * config/arm/linux-elf.h: Likewise.
10963         * config/d30v/d30v.h: Likewise.
10964         * config/fr30/fr30.h: Likewise.
10965         * config/ia64/aix.h: Likewise.
10966         * config/ia64/ia64.h: Likewise.
10967         * config/mips/linux.h: Likewise.
10968         * config/pj/pj.h: Likewise.
10969         * config/rs6000/linux.h: Likewise.
10970         * config/sparc/linux.h: Likewise.
10971         * config/sparc/linux64.h: Likewise.
10972
10973 2001-07-20  Bruce Korb  <bkorb@gnu.org>
10974
10975         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
10976         because getc() and char* may disagree on signedness.
10977
10978 2001-07-20  Richard Henderson  <rth@redhat.com>
10979
10980         * doc/rtl.texi (REG_DEAD): Update for current semantics.
10981
10982         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
10983         insns to delete in the presence of cc0 in a jump insn.
10984
10985 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
10986                                 Jan Hubicka  <jh@suse.cz>
10987
10988         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
10989         of doing the change by hand.
10990
10991 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
10992
10993         * rtlanal.c (set_noop_p): Return true for noop jumps.
10994
10995         * expr.c (emit_single_push_insn): Add call to push expander.
10996         * expr.h (optab_index): Add OTI_push
10997         (push_optab): New constant.
10998         * genopinit.c (optabs): Add push_optab.
10999         * optabs.c (init_optab): Init push optab.
11000         * md.texi (push??1): Document
11001
11002 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11003
11004         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
11005         expand to emit the pattern; put a REG_INC note for push/pop
11006         instructions.
11007         ("movdf", "movdf_internal"): Likewise.
11008         ("movsi", "movsi_internal"): Likewise.
11009         ("movsf", "movsf_internal"): Likewise.
11010         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
11011
11012 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11013
11014         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
11015         gen_highpart.
11016
11017 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
11018
11019         * params.def: Change default max inline insns to 100.
11020
11021 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
11022
11023         * combine.c (combine_simplify_rtx): Generate a new shift operation
11024         when simplifying the first operand of a (neg (ashift)) expression.
11025
11026 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11027
11028         * regclass.c (N_REG_INTS): Use only 32 bits per element.
11029
11030 2001-07-20  Kelley Cook  <kelley.cook@home.com>
11031
11032         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
11033         information.   Move rest into ...
11034         (*-*-solaris): ... here.  Eliminate redundant information and
11035         reword necessary packages section.  Delete 4.x assembler bug info.
11036         (sparc-sun-*): Merge into ...
11037         (sparc-sun-sunos*): here.
11038
11039 2001-07-20  Catherine Moore  <clm@redhat.com>
11040
11041         * config/v850/v850.md (casesi): Generate LABEL_REF
11042         with Pmode.
11043
11044 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
11045
11046         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
11047         * i386.c (ix86_zero_extend_to_Pmode): Make global.
11048         * i386.md (strclrsi expander): Use it.
11049
11050 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11051
11052         * integrate.c (copy_insn_list): handle
11053         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
11054         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
11055         identically as to CODE_LABEL.
11056
11057         * fold-const (fold): Convert A/B/C to A/(B*C) and
11058         A/(B/C) to (A/B)*C
11059
11060         * except.c (connect_post_landing_pads): Delete the RESX insns.
11061
11062 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
11063
11064         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
11065
11066         * config/mips/mips.md (nmadd/nmsub): Use macro.
11067
11068 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
11069
11070         * cppinit.c (remove_dup_dir): Make static.
11071         (remove_dup_dirs): Make static. Only warn about preempting a
11072         system directory with a non-system directory.
11073
11074 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
11075
11076         * ifcvt.c (noce_try_store_flag_constants): Correct order
11077         of parameters to trunc_int_for_mode.
11078
11079 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
11080
11081         * reorg.c (fill_simple_delay_slots): If an instruction might throw
11082         an exception that will be caught within this function, do not fill
11083         its delay slot with any subsequent instruction.
11084
11085 2001-07-19  Steve Ellcey <sje@cup.hp.com>
11086
11087         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
11088         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
11089         pointer extension instruction.
11090         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
11091         * simplify-rtx.c (simplify_unary_operation) Likewise.
11092         * explow.c (convert_memory_address) Check value of
11093         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
11094         less than zero.
11095         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
11096         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
11097         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
11098         Add Multilib Support.
11099         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
11100         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
11101         Add Multilib Support.
11102         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
11103         support.
11104         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
11105         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
11106         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
11107
11108 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
11109
11110         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
11111         old and new operands in `<', `3' and `b'.
11112
11113 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11114
11115         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
11116         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
11117         (toplev.o): Don't depend on xcoffout.h.
11118         * c-decl.c: Include debug.h
11119         (duplicate_decls): Use debug hook.
11120         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
11121         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11122         (dbxout_types): Remove.
11123         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
11124         * debug.c (do_nothing_debug_hooks): Update.
11125         (debug_true_tree, debug_nothing_rtx): New.
11126         * debug.h (struct rtx_def): New.
11127         (struct gcc_debug_hooks): New hooks ignore_block,
11128         outlining_inline_function and label.
11129         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
11130         dwarf2out_frame_finish): New.
11131         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
11132         Make static, update prototype.
11133         (dwarf2_debug_hooks): Update.
11134         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
11135         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
11136         * dwarfout.c (dwarf_debug_hooks): Update.
11137         * emit-rtl.c: Include debug.h.
11138         (remove_unnecessary_notes): Use debug hook.
11139         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
11140         (final_scan_insn): Use debug hook.
11141         * integrate.c (output_inline_function): Use debug hook.
11142         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
11143         (sdb_debug_hooks): Update.
11144         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
11145         * toplev.c: Don't include xcoffout.h.
11146         (note_outlining_of_inline_function, debug_ignore_block): Remove.
11147         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
11148         Remove.
11149         * tree.h (dwarf2out_do_frame): Remove.
11150
11151 2001-07-19  Catherine Moore  <clm@cygnus.com>
11152
11153         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
11154
11155 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
11156
11157         * reload1.c (eliminate_regs_in_insn): When updating a set
11158         to the frame pointer to the hardware frame pointer, perform
11159         the update always not just when REPLACE is set.
11160
11161         * reload1.c (choose_reload_regs): Don't inherit a reload
11162         that crosses multiple registers if registers past the first
11163         don't fit in the desired class.
11164
11165         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
11166         when negating constants.
11167
11168 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
11169
11170         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
11171         * doc/tree.texi: Ditto.
11172
11173 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
11174             Jakub Jelinek  <jakub@redhat.com>
11175
11176         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
11177         (extract_cie_info): Handle "eh" augmentation properly,
11178         remember eh_ptr.
11179         (struct frame_state, __frame_state_for): New.
11180
11181 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11182
11183         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
11184         HANDLE_SYSV_PRAGMA): Define.
11185         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
11186         previous args.
11187         (copy_object): Caller changed.
11188
11189 2001-07-19  Andreas Schwab  <schwab@suse.de>
11190
11191         * configure.in (assembler dwarf2 debug_line support): Define nop
11192         insn for m68k.
11193         * configure: Regenerated.
11194
11195 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11196
11197         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
11198         dwarfout.h.
11199         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
11200         to conditionally compiled block.
11201         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11202         * dbxout.h (dbxout_function): Remove.
11203         * debug.c (do_nothing_debug_hooks): Update.
11204         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
11205         global_decl, deferred_inline_function.
11206         * dwarf2out.c (dwarf2_debug_hooks): Update.
11207         (dwarf2out_global_decl): New.
11208         * dwarfout.c: Don't include dwarfout.h.
11209         (dwarfout_global_decl, dwarfout_function_decl,
11210         dwarfout_deferred_inline_function): New.
11211         (dwarf_debug_hooks): Update.
11212         * dwarfout.h: Remove.
11213         * final.c: Don't include dwarfout.h.
11214         * sdbout.c (sdbout_global_decl): New.
11215         (sdbout_debug_hooks): Update.
11216         * toplev.c: Don't include dwarfout.h.
11217         (check_global_declarations, rest_of_compilation): Use new debug hooks.
11218         (note_deferral_of_defined_inline_function): Remove.
11219         * toplev.h (note_deferral_of_defined_inline_function): Remove.
11220         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
11221         * ch/lex.c: Don't include dwarfout.h.
11222         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
11223         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
11224         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
11225         * cp/optimize.c: Include debug.h.
11226         (maybe_clone_body): Use debug hook.
11227         * cp/semantics.c: Include debug.h.
11228         (expand_body): Use debug hook.
11229         * po/POTFILES.in: Remove dwarfout.h.
11230
11231 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11232
11233         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
11234         * c-parse.in (yyerror, _yylex): Similarly.
11235         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
11236         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
11237         Update comments.
11238         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
11239         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
11240
11241 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
11242
11243         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
11244         in-class declaration at -g1.  Fixes c++/2814.
11245
11246 2001-07-18  Richard Henderson  <rth@redhat.com>
11247
11248         * doc/md.texi (reload_in/out): Document restrictions in predicates
11249         and constraints for these patterns.  Document empty string matching
11250         ALL_REGS.
11251
11252 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11253
11254         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
11255
11256 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11257
11258         * cse.c: Undo my previous patch.
11259
11260 2001-07-18  Tom Tromey  <tromey@redhat.com>
11261
11262         For PR java/2812:
11263         * configure: Rebuilt.
11264         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
11265         instead.
11266         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
11267
11268 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
11269                                 Jan Hubicka  <jh@suse.cz>
11270
11271         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
11272         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
11273         * jump.c (mark_jump_label): Do not forward branches.
11274
11275 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
11276
11277         * cse.c (delete_trivially_dead_insns): Delete the libcall block
11278         when return value is unused.
11279
11280 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11281
11282         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
11283
11284 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
11285
11286         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
11287         on error.  We can't blindly return the result of
11288         pthread_mutex_trylock because it returns a positive number on
11289         error, while we must return -1 on error.
11290         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
11291         fixes.
11292         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
11293
11294 2001-07-18  Andreas Jaeger  <aj@suse.de>
11295
11296         * integrate.c (output_inline_function): Correct type of debug_hooks.
11297
11298 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
11299
11300         * combine.c (combine_simplify_rtx): DIV can be treated
11301         associatively for floats if unsafe math optimisations are enabled.
11302
11303 2001-07-17  Richard Henderson  <rth@redhat.com>
11304
11305         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
11306
11307 2001-07-17  Richard Henderson  <rth@redhat.com>
11308
11309         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
11310         don't force the function address into a register.
11311         (expand_call, emit_library_call_value_1): Update callers.
11312         * builtins.c (expand_builtin_apply): Likewise.
11313         * expr.h (prepare_call_address): Update decl.
11314
11315 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
11316
11317         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
11318         config directory.
11319         * config/i386/chorus.h: Move up.
11320         * config/sparc/chorus.h: Likewise.
11321         * config/rs6000/chorus.h: Likewise.
11322         * config/chorus.h: Moved here.
11323
11324 2001-07-17  Andreas Schwab  <schwab@suse.de>
11325
11326         * configure.in  (assembler eh_frame optimization): Handle big
11327         endian.
11328         * configure: Regenerated.
11329
11330 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
11331
11332         * expr.c (epxand_expr): Convert divisions into multiplications by
11333         reciprocals if -ffast-math.
11334
11335 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11336
11337         * dbxout.c (dbxout_really_begin_function): Rename to
11338         dbxout_begin_function.
11339         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11340         (dbxout_begin_function): Remove.
11341         (dbxout_function): Update.
11342         (dbxout_source_line): Update prototype.
11343         * dbxout.h (dbxout_begin_function): Remove.
11344         * debug.c (do_nothing_debug_hooks): Update.
11345         (debug_nothing_tree): Update.
11346         (debug_nothing_charstar_rtx): Remove.
11347         * debug.h (union tree_node): Declare.
11348         (struct rtx_def): Remove.
11349         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
11350         begin_function.  Change source_line prototype.
11351         (debug_nothing_tree): New.
11352         (debug_nothing_charstar_rtx): Delete.
11353         (dwarf2out_begin_prologue): Moved from ...
11354         * tree.h: ... here.
11355         * dwarf2out.c (dwarf2_debug_hooks): Update.
11356         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
11357         debug info, call dwarf2out_source_line.
11358         (dwarf2out_souce_line): Update prototype.
11359         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
11360         Change prototype, make static.
11361         (dwarfout_source_line): Update prototype.
11362         (dwarf_debug_hooks): Update.
11363         * dwarfout.h (dwarfout_begin_function): Remove.
11364         * final.c (final_start_function, final_scan_insn): Use appropriate
11365         debug hooks, update to use notice_source_line.
11366         (output_source_line): Rename notice_source_line.  Don't call the
11367         source_line debug hook.
11368         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
11369         make static, update prototype.
11370         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
11371         prototype.
11372         (sdbout_end_prologue): New.
11373         (sdbout_source_line): Update prototype.
11374         (sdbout_debug_hooks): Update.
11375         (sdbout_symbol): Remove unused var.
11376         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
11377         Delete.
11378         * varasm.c: Include debug.h.
11379         (assemble_start_function): Use begin_function debug_hook.
11380         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
11381         update with prototype.
11382         (xcoffout_source_line): Update prototype.
11383         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
11384         update prototype.
11385         (xcoffout_source_line): Update prototype.
11386
11387 2001-07-17  Richard Henderson  <rth@redhat.com>
11388
11389         * c-typeck.c (build_binary_op): Do not shorten unsigned
11390         right shift after sign extension.
11391
11392 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
11393
11394         * combine.c (combine_simplify_rtx): Attempt to simplify
11395         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
11396
11397         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
11398         (simplify_binary_operation, simplify_unary_operation,
11399          simplify_relational_operation): Use it.
11400
11401         * combine.c (combine_simplify_rtx): Don't do associative law
11402         on divisions; allow associative law on floats.
11403
11404 2001-07-17  H.J. Lu <hjl@gnu.org>
11405             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11406
11407         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
11408         ASM_OUTPUT_WEAK_ALIAS are defined.
11409         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
11410         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
11411         Moved ...
11412         * config/mips/iris5.h: ... here.
11413         (HANDLE_SYSV_PRAGMA): Defined as 1.
11414         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
11415         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
11416         symbol.
11417
11418 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
11419
11420         * c-parse.in (all_prefix_attributes): New variable.
11421         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
11422         (maybe_resetattrs): New production.
11423         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
11424         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
11425         notype_initdcl, nested_function, notype_nested_function,
11426         component_decl, components, components_notype,
11427         component_declarator, component_notype_declarator,
11428         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
11429         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
11430         after a comma being applied to more than one declarator.
11431         * doc/extend.texi (Attribute Syntax): Update.  Remove
11432         documentation of bugs that are no longer present.
11433
11434 2001-07-13  Eric Christopher  <echristo@redhat.com>
11435
11436         * config/mips/mips.h: Change TUNE_MIPS* options to use
11437         mips_tune.
11438         (EXTRA_SPECS): Add cc1_cpu_spec.
11439         * config/mips/mips.md (muldf3): Fix typo.
11440
11441 2001-07-16  Richard Henderson  <rth@redhat.com>
11442
11443         * config/m68k/m68k.c: Include expr.h and reload.h.
11444         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
11445         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
11446
11447 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
11448             Richard Henderson  <rth@redhat.com>
11449
11450         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
11451         (insn_live_p): Fix fall off end of function.
11452         (dead_libcall_p): Remove COUNTS argument; update callers.
11453         (delete_trivially_dead_insns): Remove unused variables.
11454
11455 2001-07-17  Andreas Jaeger  <aj@suse.de>
11456
11457         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
11458         x86-64 pic support.
11459
11460         * lcm.c (optimize_mode_switching): Avoid warning for unused
11461         variable if !NORMAL_MODE.
11462
11463         * flow.c (try_crossjump_to_edge): Remove unused variable.
11464
11465 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11466
11467         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
11468         atexit declaration in stdlib.h.
11469
11470 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
11471
11472         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
11473
11474 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11475
11476         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
11477         * except.c (finish_eh_generation): Update call of cleanup_cfg;
11478         do rebuild_jump_labels instead of jump_optimize
11479         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
11480         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
11481         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
11482
11483         * flow.c: Include timevar.h
11484         (find_basic_block): Push/pop timevar;
11485         (cleanup_cfg): Likewise.
11486         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
11487         * Makefile: Add dependencies on timevar.h
11488
11489         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
11490         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
11491
11492         * rtl.h (delete_trivially_dead_insns): Add new parameter.
11493         * toplev.c (rest_of_compilation): Update calls.
11494         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
11495         (delete_trivially_dead_insns): ... here; accept new argument
11496         preserve_basic_blocks; preserve basic blocks if set.
11497
11498         * reg-stack.c (stack_regs_mentioned): Return 0 if
11499         stack_regs_mentioned_data is not initialized.
11500         (reg_to_stack): Make stack_regs_mentioned survive after the
11501         reg-stack is completted; do not call cleanup_cfg.
11502         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
11503         make cleanup_cfg after bb-reorder to output to debug file.
11504
11505 2001-07-16  Richard Henderson  <rth@redhat.com>
11506
11507         * regclass.c (init_reg_sets): Use only 32 bits per initializer
11508         from int_reg_class_contents.
11509
11510 2001-07-16  Richard Henderson  <rth@redhat.com>
11511
11512         * hard-reg-set.h (regs_invalidated_by_call): Declare.
11513         * regclass.c (regs_invalidated_by_call): Move from cse.c.
11514         (init_reg_sets_1): Move initialization from cse_main.
11515         * cse.c (regs_invalidated_by_call): Move to regclass.c.
11516         (cse_main): Move its initialization also.
11517         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
11518         * flow.c (propagate_one_insn): Likewise.
11519         * gcse.c (compute_hash_table): Likewise.
11520         (compute_kill_rd, compute_store_table): Likewise.
11521         * sched-deps.c (sched_analyze_1): Likewise.
11522
11523 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
11524
11525         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
11526         gen_rtx_SET.
11527
11528 2001-07-16  Steve Ellcey <sje@cup.hp.com>
11529
11530         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
11531         in if statement so we don't access undefined memory.
11532
11533 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
11534
11535         * gcse.c: Update comment at top.
11536         Update comment on mem handling.
11537         mem_last_set, mem_first_set, mem_set_in_block: gone.
11538         Declaration of reg_set_info: gone.
11539         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
11540         pointless with load_killed_in_block_p (they are *more*
11541         conservative then it, not less, and less accurate).
11542         (oprs_not_set_p): Ditto.
11543         (alloc_gcse_mem): Don't allocate mem_set_in_block
11544         (free_gcse_mem): Don't free it, either.
11545         (record_last_mem_set_info): Update comment in front, remove
11546         mem_*set_* stuff. Note the reason we don't handle stores directly
11547         here.
11548         (compute_hash_table): Update comments to reflect reality. Remove
11549         mem_*set_* references.
11550         (reset_opr_set_tables): Remove mem_*set_* references.
11551         (mark_call): Ditto.
11552         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
11553         (mark_clobber): Ditto (on both parts, we double set here too).
11554         (expr_killed_p): Remove mem_set_in_block test.
11555         (compute_transp): Remove mem_set_in_block test.
11556
11557         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
11558         of edge, and removal of phi alternative to dump file.
11559         (ssa_ccp_substitute_constants): Add note about register now being
11560         constant, and which uses were replaced in what insns to dump file.
11561
11562 2001-07-16  Andreas Jaeger  <aj@suse.de>
11563
11564         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
11565         variables of type HOST_WIDEST_INT.
11566
11567         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
11568         (__bb_exit_func): Correct type of count_max to avoid overflow.
11569         (num_digits): Handle long long argument.
11570
11571         * combine.c (gen_lowpart_for_combine): Remove unused variable.
11572
11573 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11574
11575         * output.h (sdb_begin_function_line): Restore as an extern
11576         variable.
11577         * sdbout.c (sdb_begin_function_line): Make extern.
11578
11579 2001-07-15  Richard Henderson  <rth@redhat.com>
11580
11581         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
11582         * genrecog.c (maybe_both_true_mode): New.
11583         (maybe_both_true_2): Use it.
11584         (write_switch): Don't put Pmode in a switch.
11585         * rtl.c (mode arrays): Don't explicitly size them.
11586
11587 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11588
11589         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
11590         handling; move unconditional splitting before mode switching.
11591
11592         * i386.md (type): Add fistp type.
11593         (i387, length_attr, scheduling definitions): Handle this type.
11594         (fix_trunc?f?i2): Revamp to use mode switching.
11595         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
11596         * i386.h (fp_cw_mode): New enum
11597         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
11598         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
11599
11600 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11601
11602         * Makefile.in (integrate.o): Add debug.h.
11603         * integrate.c (debug.h): Add.
11604         (output_inline_function): Save, reset, and restore debug_hooks.
11605
11606 2001-07-15  Richard Henderson  <rth@redhat.com>
11607
11608         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
11609         instead of COMPARE for the EQUIV expression.
11610
11611 2001-07-15  Richard Henderson  <rth@redhat.com>
11612
11613         * flow.c (redirect_edge_and_branch_force): Initialize
11614         global_live_at_start and global_live_at_end.
11615         (allocate_bb_life_data): Export.
11616         * basic-block.h (allocate_bb_life_data): Declare.
11617         * toplev.c (rest_of_compilation): Call it.
11618
11619 2001-07-15  Richard Henderson  <rth@redhat.com>
11620
11621         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
11622         (alpha_tablejump_best_label): New.
11623         * config/alpha/alpha-protos.h: Declare them.
11624         * config/alpha/alpha.md: Use braced strings for code blocks.
11625         (tablejump_osf): Break out add with r29.
11626         (tablejump_osf_internal): Remove.
11627         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
11628         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
11629
11630 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11631
11632         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
11633         of the movable.
11634
11635         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
11636
11637         * i386-protos.h (ix86_split_fp_branch): Update prototype.
11638         (ix86_fp_jump_nontrivial_p): New.
11639         * i386.md (fp_jcc_?): Update call of split_fp_branch;
11640         use ix86_fp_jump_nontrivial_p.
11641         * i386.c (ix86_fp_jump_nontrivial_p): New.
11642         (ix86_split_fp_branch): Accept code instead of rtx.
11643         (ix86_expand_compare): Expand comparison early in case
11644         doing so is resonably cheap.
11645
11646 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
11647
11648         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
11649         not 'machine'.
11650         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
11651         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
11652
11653 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
11654
11655         * dbxout.c (dbxout_source_line): Make static, update prototype.
11656         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
11657         (dbxout_init, dbxout_finish, dbxout_source_line,
11658         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
11659         * dbxout.h (dbxout_source_line): Delete.
11660         * debug.c (debug_nothing_file, debug_nothing_file_int,
11661         debug_nothing_file_charstar_rtx): New.
11662         (do_nothing_debug_hooks): Update.
11663         (debug_nothing_void, debug_nothing_charstar_rtx,
11664         dwarf2out_end_epilogue): New.
11665         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
11666         * debug.h (struct rtx_def): Declare.
11667         (gcc_debug_hooks): New hooks source_line, end_epilogue
11668         and end_function.
11669         (debug_nothing_void, debug_nothing_charstar_rtx,
11670         dwarf2out_end_epilogue): New.
11671         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
11672         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
11673         (dwarf2_debug_hooks): Update.
11674         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
11675         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
11676         * dwarf2out.h (dwarf2out_source_line): Remove.
11677         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
11678         Make static, update prototype.
11679         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
11680         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
11681         (dwarf_debug_hooks): Update.
11682         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
11683         dwarfout_end_function): Remove.
11684         * final.c (profile_function): Use debug hooks for ending functions
11685         and epilogues.
11686         (output_source_line, final_end_function): Update prototype,
11687         use debug hooks.
11688         (final_start_function, final_scan_insn): Update.
11689         * output.h (sdb_begin_function_line): Remove.
11690         (final_end_function): Update prototype.
11691         * sdbout.c (sdb_begin_function_line): Make static.
11692         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
11693         (sdbout_source_line): New.
11694         (sdbout_end_epilogue, sdbout_end_function): Make static, update
11695         prototypes.
11696         (sdb_debug_hooks): Update.
11697         (sdbout_init, sdbout_source_line,
11698         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
11699         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
11700         * toplev.c (compile_file, rest_of_compilation): Update.
11701         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
11702         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
11703         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
11704         Update for prototype changes.
11705         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
11706         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
11707
11708 2001-07-15  Richard Henderson  <rth@redhat.com>
11709
11710         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
11711         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
11712         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
11713         * config/alpha/alpha.c: Likewise.
11714         * config/alpha/alpha.md: Likewise.
11715         * config/alpha/alpha32.h: Likewise.
11716         * config/alpha/vms.h: Likewise.
11717         (OPEN_VMS): Remove.
11718
11719 2001-07-14  Richard Henderson  <rth@redhat.com>
11720
11721         * config/alpha/alpha.md: Use define_constants for unspec values.
11722         Substitute throughout.
11723
11724 2001-07-14  Tim Josling  <tej@melbpc.org.au>
11725
11726         * tree.def (EXPON_EXPR) remove. Never supported anyway.
11727
11728 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11729
11730         * pa.md: Remove unused constraints from define_split's.
11731
11732 2001-04-14  Richard Henderson  <rth@redhat.com>
11733
11734         * ifcvt.c (find_cond_trap): Test for exit block.
11735
11736 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
11737
11738         Re-install recently reverted patch.
11739         * emit-rtl.c (try_split): Update mark_jump_label call.
11740         * flow.c (find_sub_basic_blocks): Likewise.
11741         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
11742         jump_back_p): Kill.
11743         (mark_all_labels): Kill second parameter.
11744         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
11745         (rebuild_jump_labels, jump_optimize_minimal): Update call
11746         of jump_optimize_1.
11747         (jump_optimize_1): Kill crossjumping code.
11748         (mark_jump_label): Kill cross_jump parameter.
11749         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
11750         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
11751         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
11752          splitting.
11753         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
11754         DFI_bpro.
11755         (dump_file_info): Likewise.
11756         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
11757         reorganize passes to do reg-stack first, bb-reorder second.
11758         * invoke.texi (-d letters doc): Remove the jump2 pass.
11759
11760 2001-07-14  Richard Henderson  <rth@redhat.com>
11761
11762         * ifcvt.c (find_cond_trap): New.
11763         (find_if_header): Call it.
11764         (merge_if_block): Relax existing jump sanity check.
11765         * jump.c (jump_optimize_1): Remove conditional trap handling.
11766
11767 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
11768
11769         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
11770         millicode.
11771         (insn_refs_are_delayed): Correct comment.
11772         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
11773         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
11774         instead of r31.  Make associated insn !TARGET_64BIT, and
11775         provide an additional 64-bit insn that clobbers r2.
11776         (divsi3): Likewise.
11777         (udivsi3): Likewise.
11778         (modsi3): Likewise.
11779         (umodsi3): Likewise.
11780
11781 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
11782
11783         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
11784
11785         * flow.c (redirect_edge_and_branch_force, split_edge,
11786         try_crossjump_to_edge): Use set_block_for_new_insns.
11787         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
11788
11789 2001-07-13  H.J. Lu  (hjl@gnu.org)
11790
11791         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
11792         the correct patch.
11793
11794 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
11795
11796         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
11797
11798 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
11799
11800         * c-common.c (decl_attributes): Take a pointer to the node to
11801         which attributes are to be attached, and a flags argument.
11802         * c-common.h (enum attribute_flags): New.
11803         (decl_attributes): Update prototype.
11804         * c-decl.c (start_decl, push_parm_decl, finish_struct,
11805         finish_enum, start_function): Update calls to decl_attributes.
11806         * c-parse.in (component_declarator, component_notype_declarator,
11807         label): Update calls to decl_attributes.
11808
11809 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
11810
11811         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
11812         * config/avr/avr.c (legitimate_address_p): Return value changed
11813         from letter to register classes. For better debugging.
11814
11815 2001-07-13  Kazu Hirata  <kazu@hxi.com>
11816
11817         * jump.c (reversed_comparison_code_parts): Fix comment typos.
11818
11819 2001-07-13  H.J. Lu  (hjl@gnu.org)
11820
11821         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
11822
11823 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
11824
11825         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
11826         correctly for shared configurations.
11827         * config/t-libgcc-pic:  New.
11828         * config/{i386,m68k,sparc}/t-openbsd:  New.
11829         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
11830         Support -shared.  Support debugging libraries with -g.
11831         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
11832         frame information does not emit pointer diffs.
11833         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
11834         emit pointer diffs.
11835
11836 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
11837
11838         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
11839
11840 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
11841
11842         * combine.c (try_combine): Ensure const_int pow2 is positive.
11843
11844 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
11845
11846         * config.gcc: Add configuration for s/390.
11847         * config/s390/s390.c: New. Subroutines for code generation.
11848         * config/s390/s390.h: New. Definitions for s/390.
11849         * config/s390/s390-protos.h: New. Prototypes.
11850         * config/s390/linux.h: New. Definitions for linux for s/390.
11851         * config/s390/linux64.h: New. Definitions for linux for zSeries.
11852         * config/s390/t-linux: New. Makefile fragment.
11853         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
11854         * config/s390/fixdfdi.h: New. Fix L_fix*di.
11855
11856 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
11857
11858         * emit-rtl.c (try_split): Update mark_jump_label call.
11859         * flow.c (find_sub_basic_blocks): Likewise.
11860         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
11861         jump_back_p): Kill.
11862         (mark_all_labels): Kill second parameter.
11863         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
11864         (rebuild_jump_labels, jump_optimize_minimal): Update call
11865         of jump_optimize_1.
11866         (jump_optimize_1): Kill crossjumping code.
11867         (mark_jump_label): Kill cross_jump parameter.
11868         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
11869         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
11870         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
11871          splitting.
11872         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
11873         DFI_bpro.
11874         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
11875         reorganize passes to do reg-stack first, bb-reorder second.
11876         * invoke.texi (-d letters doc): Remove the jump2 pass.
11877
11878 2001-07-12  Steve Ellcey <sje@cup.hp.com>
11879
11880         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
11881
11882 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11883
11884         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
11885         basic blocks.
11886         (verify_flow_info): Make diagnostics prettier.
11887
11888 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11889
11890         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
11891
11892         * flow.c (outgoing_edges_match): Return early if condition reversal
11893         failed.
11894
11895 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
11896
11897         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
11898         (mips_move_2words): When splitting a move into two instructions,
11899         prefix the second address operand with '%D'.
11900
11901 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
11902
11903         * Makefile.in (final.o): Depend on debug.h.
11904         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
11905         (dbx_debug_hooks): Add new hooks.
11906         (xcoff_debug_hooks): New.
11907         * debug.c (debug_nothing_file_int_int): New.
11908         (do_nothing_debug_hooks): Update.
11909         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
11910         (debug_nothing_file_int_int): New.
11911         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
11912         static, update prototype.
11913         (dwarf2_debug_hooks): Update.
11914         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
11915         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
11916         static, update prototype.
11917         (dwarf_debug_hooks): Update.
11918         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
11919         * final.c: Include debug.h.
11920         (final_scan_insn): Use debug hooks when beginning and ending blocks.
11921         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
11922         static, update prototype.
11923         (sdb_debug_hooks): Update.
11924         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
11925         * toplev.c: Distinguish between xcoff and dbx.
11926
11927         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
11928         Call all debug hooks, not just dwarf ones.
11929
11930 2001-07-11  Timothy Wall  <twall@redhat.com>
11931
11932         * config.gcc: Add configuration for AIX5/IA64.
11933         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
11934         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
11935         support prefix/suffix code.
11936         * config/ia64/t-aix: New.  Makefile fragment.
11937         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
11938
11939 2001-07-11  Kazu Hirata  <kazu@hxi.com>
11940
11941         * recog.c (validate_change): Fix a comment typo.
11942
11943 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11944
11945         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
11946         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
11947         hooks directly.
11948         * dbxout.c (dbx_debug_hooks): Add new hooks.
11949         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
11950         make static.
11951         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
11952         make static.
11953         * dbxout.h (dbxout_start_new_source_file,
11954         dbxout_resume_previous_source_file): Delete.
11955         * debug.c (do_nothing_debug_hooks): Add new hooks.
11956         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
11957         (debug_nothing_int_charstar, debug_nothing_int): New.
11958         * debug.h (gcc_debug_hooks): New hooks define, undef,
11959         start_source_file and end_source_file.
11960         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
11961         (debug_nothing_int_charstar, debug_nothing_int): New.
11962         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
11963         the conditionally compiled section.
11964         (dwarf2out_start_source_file, dwarf2out_end_source_file,
11965         dwarf2out_define, dwarf2out_undef): Make static.
11966         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
11967         dwarf2out_define, dwarf2out_undef): Remove.
11968         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
11969         (dwarfout_start_source_file, dwarfout_end_source_file,
11970         dwarfout_define, dwarfout_undef): Make static.
11971         (dwarfout_start_source_file_check,
11972         dwarfout_end_source_file_check): New.
11973         (dwarfout_define, dwarfout_finish): Update.
11974         * dwarfout.h (dwarfout_start_new_source_file,
11975         dwarfout_resume_previous_source_file, dwarfout_define,
11976         dwarfout_undef): Remove.
11977         * sdbout.c (sdb_debug_hooks): Add new hooks.
11978         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
11979         make static.
11980         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
11981         make static, take an arg.
11982         * sdbout.h (sdbout_start_new_source_file,
11983         sdbout_resume_previous_source_file): Delete.
11984         * toplev.c (debug_start_source_file, debug_end_source_file,
11985         debug_define, debug_undef): Delete.
11986         * toplev.h (debug_start_source_file, debug_end_source_file,
11987         debug_define, debug_undef): Delete.
11988
11989         * java/jcf-parse.c: Include debug.h.
11990         (parse_class_file): Update to use debug hooks directly.
11991         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
11992
11993 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11994
11995         * alias.c (set_mem_alias_set): New function.
11996         * rtl.h (set_mem_alias_set): Declare it.
11997         * builtins.c (expand_builtin_return_addr): Call it instead of
11998         using MEM_ALIAS_SET accessor.
11999         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
12000         (get_memory_rtx, expand_builtin_va_arg): Likewise.
12001         (expand_builtin_va_copy):Likewise.
12002         * caller-save.c (setup_save_areas): Likewise.
12003         * calls.c (compute_argument_addresses): Likewise.
12004         * explow.c (set_mem_attributes): Likewise.
12005         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
12006         (expand_assignment, store_constructor_field, store_field): Likewise.
12007         (expand_expr_unaligned): Likewise.
12008         * function.c (assign_stack_temp_for_type): Likewise.
12009         (put_reg_into_stack, gen_mem_addressof): Likewise.
12010         * ifcvt.c (noce_try_cmove_arith): Likewise.
12011         * reload1.c (reload, alter_reg): Likewise.
12012         * config/alpha/alpha.c (get_aligned_mem): Likewise.
12013         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
12014         (alpha_expand_unaligned_store): Likewise
12015         (alpha_expand_unaligned_load_words): Likewise.
12016         (alpha_expand_unaligned_store_words): Likewise.
12017         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
12018         (alpha_expand_epilogue): Likewise.
12019         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12020         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
12021         * config/i386/i386.c (legitimize_pic_address): Likewise.
12022         * config/i960/i960.c (setup_incoming_varargs): Likewise.
12023         * config/ia64/ia64.c (spill_restore_mem): Likewise.
12024         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12025         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
12026         * config/mips/mips.c (mips_va_arg): Likewise.
12027         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
12028         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
12029         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12030         (setup_incoming_varargs, rs6000_va_arg): Likewise.
12031         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
12032         (rs6000_emit_epilogue): Likewise.
12033         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
12034         * config/sparc/sparc.c (sparc_va_arg): Likewise.
12035         * config/v850/v850.c (v850_va_arg): Likewise.
12036
12037 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
12038
12039         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
12040         when fallthru edge is present.
12041         (mege_blocks): Handle case where creation of jump insn
12042         is required.
12043
12044         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
12045         CLEANUP_POST_REGSTACK): New constants.
12046         * except.c (finish_eh_generation): Update call of cleanup_cfg,
12047         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
12048         * output.h (cleanup_cfg): Update prototype.
12049         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
12050         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
12051         cleanup_cfg call; kill missleading comment.
12052         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
12053         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
12054         parameter; control optimizations performed using it.
12055         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
12056         try_crossjump_bb): New functions.
12057
12058 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12059
12060         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
12061         extern.
12062         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
12063         pa_output_function_prologue.
12064         * pa-protos.h (pa_output_function_prologue): New prototype.
12065
12066 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12067
12068         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
12069         and low to get correct sign extension in low+high test.
12070
12071 2001-07-11  Janis Johnson <janis@us.ibm.com>
12072
12073         * gcov.c (arcdata): Use gcov_type to fix branch percentage
12074         for large hit count.
12075
12076         * profile.c (branch_prob): Fix .bbg info for computed gotos
12077         and C++ EH code.
12078
12079 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
12080
12081         * stmt.c (parse_output_constraint): New function, split out
12082         from ...
12083         (expand_asm_operands): ... here.  Use parse_output_constraint.
12084         * tree.h (parse_output_constraint): Declare it.
12085
12086 2001-07-11  Richard Henderson  <rth@redhat.com>
12087
12088         * bitmap.c: Comment some functions; fiddle whitespace.
12089         (bitmap_free): Don't export.
12090         (bitmap_element_allocate): Use memset.
12091         * bitmap.h (bitmap_free): Don't declare.
12092
12093 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
12094
12095         * gcse.c, lcm.c, sched-deps.c:
12096         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
12097
12098         * flow.c (flow_loops_find): Free dom if we found no loops, since
12099         we aren't going to save it.
12100
12101         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
12102         done.
12103
12104 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
12105
12106         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
12107
12108 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12109
12110         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
12111         #ifndef DWARF2_DEBUGGING_INFO.
12112
12113 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12114
12115         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
12116
12117 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12118
12119         * config/mips/mips.c (gen_int_relational): Tell the caller not to
12120         reverse a branch if a NE comparison is implemented with GTU.
12121
12122 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12123             H.J. Lu  <hjl@gnu.org>
12124
12125         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
12126         constant addresses.
12127         (call_internal2): Likewise.
12128         (call_value_internal1): Likewise.
12129         (call_value_internal2): Likewise.
12130         (call_value_multiple_internal1): Likewise.
12131         (call_value_multiple_internal2): Likewise.
12132
12133 2001-07-10  Kazu Hirata  <kazu@hxi.com>
12134
12135         * calls.c (emit_library_call_value_1): Fix a comment typo.
12136         * dwarf2out.c (mem_loc_descriptor): Likewise.
12137         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
12138
12139 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
12140
12141         * simplify-rtx.c (simplify_subreg): Fix typo in comment
12142
12143 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12144
12145         * recog.c (offsettable_address_p): Handle LO_SUM case.
12146         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
12147         instead of plus_constant.
12148
12149 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12150
12151         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
12152         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
12153
12154 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12155
12156         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
12157         adjust_address_nv instead of plus_constant.
12158
12159 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
12160
12161         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
12162         dwarf2out.o): Depend on debug.h, wrap long lines.
12163         * dbxout.c: Include debug.h.
12164         (dbx_debug_hooks): New.
12165         (dbxout_init): Make static, take just 2 args.
12166         (dbxout_finish): Make static.
12167         * dbxout.h (dbxout_init, dbxout_finish): Delete.
12168         * debug.c: New file.
12169         * debug.h: New file.
12170         * dwarf2out.c: Include debug.h.
12171         (dwarf2_debug_hooks): New.
12172         (dwarf2out_init): Make static.
12173         (dwarf2out_finish): Make static, take 2 args.
12174         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
12175         * dwarfout.c: Include debug.h.
12176         (dwarf_debug_hooks): New.
12177         (dwarfout_init): Make static.
12178         (dwarfout_finish): Make static, take 2 args.
12179         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
12180         * sdbout.c: Include debug.h.
12181         (sdb_debug_hooks): New.
12182         (sdbout_init): Make static, take 2 args.
12183         * sdbout.h (sdbout_init): Delete.
12184         * toplev.c: Include debug.h.
12185         (debug_hooks): New.
12186         (compile_file): Set deubg_hooks based on command line options.
12187         Use the hooks unconditionally rather than conditional compilation.
12188
12189 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
12190
12191         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
12192         first_insn_after_basic_block_note instead.
12193
12194         * df.c (df_bb_refs_unlink): #if 0 out for now.
12195
12196 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
12197
12198         * ssa.h: Add prototype for ssa_const_prop
12199         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
12200         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
12201         (ssa_fast_dce): Remove unused variable
12202
12203 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12204
12205         * diagnostic.c (finish_diagnostic): Rename to
12206         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
12207         calls thourghout.
12208
12209 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
12210
12211         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
12212         .loc support.
12213
12214         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
12215         (dump_file): Only pad the demangled name with spaces if the
12216         mangled name was padded with spaces.
12217
12218 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
12219
12220         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
12221         edge detection.
12222
12223 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12224
12225         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
12226         extraction if no direct load if either EXPAND_CONST_ADDRESS or
12227         EXPAND_INITIALIZER.
12228
12229         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
12230         whether can put offset inside LO_SUM to check mode alignment, not size.
12231
12232 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12233
12234         * doc/tm.texi (Misc): Fix thinko.
12235
12236 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
12237
12238         * regmove.c (replace_in_call_usage): Fix warnings.
12239         * sched-deps.c (add_dependence): Fix warnings.
12240         * simplify-rtx.c (simplify_subreg): Likewise.
12241         Return NULL_RTX instead of NULL.
12242
12243         * reg-stack.c (emit_swap_insn): Eliminate warnings.
12244         (subst_asm_stack_regs): Likewise.
12245
12246         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
12247         warnings.
12248
12249         * dwarf2out.c (output_call_frame_info): Declare i as int.
12250         (build_abbrev_table): Declare n_alloc as int.
12251         (dwarf2out_finish): Initialize die.
12252         * except.c: Declare sjlj_funcdef_number as unsigned.
12253         (connect_post_landing_pads): Declare j as unsigned.
12254         (convert_to_eh_region_ranges): Initialize call_site.
12255         (output_function_exception_table): Initialize tt_format_size.
12256         * expr.c (move_by_pieces_1): Initialize to1.
12257         (store_constructor): Initialize minelt and maxelt.
12258         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
12259         * function.c (instantiate_decls): Avoid signed/unsigned warning.
12260
12261         * c-decl.c (combine_parm_decls): Unused, remove.
12262         * c-tree.h: Remove prototype for combine_parm_decls.
12263
12264         * reload.c (push_reload): Fix warning.
12265         (regno_clobbered_p): Likewise.
12266         * reload1.c (replace_pseudos_in_call_usage): Likewise.
12267         (reload_combine): Likewise.
12268
12269         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
12270         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
12271         warnings.
12272         * bitmap.c (bitmap_operation): Change user.
12273         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
12274
12275 2001-07-10  Eric Christopher  <echristo@redhat.com>
12276
12277         * config/mips/mips.c (override_options): Fix typo.
12278
12279 2001-07-09  Stan Shebs  <shebs@apple.com>
12280
12281         * target.h (struct gcc_target): New fields init_builtins and
12282         expand_builtin.
12283         * target-def.h (TARGET_INIT_BUILTINS): New macro.
12284         (TARGET_EXPAND_BUILTIN): New macro.
12285         (TARGET_INITIALIZER): Add them.
12286         * builtins.c: Include target.h.
12287         (expand_builtin): Use targetm.expand_builtin.
12288         (default_init_builtins): New function.
12289         (default_expand_builtin): New function.
12290         * expr.h (default_init_builtins): Declare.
12291         (default_expand_builtin): Declare.
12292         * c-common.c (c_common_nodes_and_builtins): Use
12293         targetm.init_builtins.
12294         * defaults.h (MD_INIT_BUILTINS): Remove.
12295         * Makefile.in (builtins.o): Depend on target.h.
12296
12297         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
12298         (TARGET_EXPAND_BUILTIN): Define.
12299         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
12300         (MD_EXPAND_BUILTIN): Remove.
12301
12302         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
12303         (TARGET_EXPAND_BUILTIN): Define.
12304         (c4x_init_builtins): Make endlink arg a local.
12305         (c4x_print_operand): Fix typos in adjust_address usages.
12306         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
12307         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
12308         (MD_EXPAND_BUILTIN): Remove.
12309
12310         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
12311         (TARGET_EXPAND_BUILTIN): Define.
12312         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
12313         (ix86_init_builtins): Call new function only if TARGET_MMX.
12314         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
12315         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
12316         (MD_EXPAND_BUILTIN): Remove.
12317
12318         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
12319         (TARGET_EXPAND_BUILTIN): Define.
12320         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
12321         (MD_EXPAND_BUILTIN): Remove.
12322
12323         * doc/tm.texi: Document these changes.
12324
12325 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
12326
12327         * basic-block.h (tree_node): Forward declare if needed.
12328         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
12329         (BLOCK_HEAD_TREE): Define.
12330         (BLOCK_END_TREE): Define.
12331         (struct loops): Rename field 'tree' to 'tree_root'.
12332         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
12333         'end_tree'.
12334         (flow_loops_tree_build): Rename reference to field 'tree' to
12335         'tree_root'.
12336         (flow_loops_level_compute): Ditto.
12337         * predict.c (estimate_bb_frequencies): Ditto.
12338         * tree.h (struct tree_common): Add field 'aux'.
12339
12340 2001-07-09  Stan Shebs  <shebs@apple.com>
12341
12342         * config/darwin.c (darwin_encode_section_info): Don't mark any
12343         DECL_EXTERNAL node as defined.
12344
12345 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12346
12347         * pa.c (pa_init_machine_status, pa_mark_machine_status,
12348         pa_free_machine_status, hppa_init_pic_save): Delete.
12349         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
12350         (hppa_profile_hook): Use hppa_pic_save_rtx.
12351         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
12352         hppa_init_pic_save): Delete.
12353         (hppa_pic_save_rtx): Declare.
12354         * pa.md (call, call_value, sibcall, sibcall_value,
12355         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
12356
12357 2001-07-09  Kazu Hirata  <kazu@hxi.com>
12358
12359         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
12360         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
12361
12362 2001-07-09  Andreas Jaeger  <aj@suse.de>
12363
12364         * output.h: Add declaration of final_forward_branch_p.
12365
12366         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
12367
12368         * varray.c: Include errors.h for internal_error and trim_filename
12369         declarations.
12370
12371         * Makefile.in (varray.o): Add errors.h.
12372
12373 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
12374
12375         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
12376         * optabs.c (have_add2_insn): Check whether the add insn chosen
12377         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
12378         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
12379
12380 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
12381
12382         * Makefile.in (OBJS): Add ssa-ccp.o
12383         (ssa-ccp.o): Add dependencies.
12384         * toplev.c (DFI_ssa_ccp): New dump file enum.
12385         (dump_file): Add entry for dumping after SSA CCP.
12386         (flag_ssa_ccp): New flag variable.
12387         (f_options): Add -fssa-ccp.
12388         (rest_of_compilation): Run SSA CCP if requested.
12389         * timevar.def (TV_SSA_CCP): New timevar.
12390         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
12391         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
12392         Fix minor typo in SSA DCE documentation.
12393         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
12394         Add documentation for new dump option.  Renumber dump files
12395         appropriately.
12396
12397 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12398
12399         * emit-rtl.c (gen_highpart_mode): New.
12400         * rtl.h (gen_highpart_mode): Declare.
12401         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
12402         operand can be VOIDmode constant.
12403
12404 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
12405
12406         * flow.c (redirect_edge_and_branch_force): New.
12407         (can_fallthru): Ensure that basic blocks are succeeding.
12408         (try_optimize_cfg): Do not delete basic block if it is the last one.
12409
12410         * flow.c (try_redirect_by_replacing_jump): Do not remove
12411         jumps with side effects, unlink chain on fallthru edge;
12412         set block for new jump instruction; avoid basic block to
12413         over by line number note.
12414
12415         * flow.c (try_simplify_condjump): Verify that the condjump
12416         is not always falling through.
12417
12418         Re-install patch:
12419         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
12420
12421         * flow.c (forwarder_block_p): Fix for fallthru blocks.
12422         (try_redirect_by_replacing_jump): Update properly the count
12423         and frequency information.
12424
12425 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12426
12427         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
12428         address that is a LO_SUM specially.
12429         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
12430
12431         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
12432
12433         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
12434         (operand_subword): Use them.
12435         (change_address_1): Renamed from change_address; new arg VALIDATE.
12436         * expr.h: Reflect above changes; change_address now macro.
12437         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
12438         making MEM.
12439         * cselib.c (add_mem_for_addr): Likewise.
12440         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
12441         * regmove.c (try_apply_stack_adjustment): Likewise.
12442         * reload.c (push_reload, make_memloc): Likewise.
12443         * reload1.c (eliminate_regs): Likewise.
12444         * simplify-rtx.c (simplify_replace_rtx): Likewise.
12445         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
12446         adjust_addess.
12447         * combine.c (make_extraction, simplify_shift_const): Likewise.
12448         (gen_lowpart_for_combine): Likewise.
12449         * cse.c (gen_lowpart_if_possible): Likewise.
12450         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
12451         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
12452         * optabs.c (gen_move_insn): Likewise.
12453         * reload1.c (alter_reg): Likewise.
12454         * simplify-rtx.c (simplify_subreg): Likewise.
12455         * stmt.c (expand_anon_union_decl): Likewise.
12456         * recog.c (validate_replace_rtx_1): Likewise.
12457         (expr.h): Include.
12458         * Makefile.in (recog.o): Add $(EXPR_H).
12459         * explow.c (stabilize): Call replace_equiv_address.
12460         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
12461         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
12462
12463 2001-07-03  Andrew Haley  <aph@redhat.com>
12464
12465         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
12466         the mode of the memory location.
12467
12468 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
12469
12470         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
12471
12472 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12473
12474         * final.c (output_addr_const): Use target opening and
12475         closing parentheses.
12476         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
12477         defaults, add to TARGET_ASM_OUT.
12478         * target.h (struct gcc_target): Add open_paren and close_paren.
12479         * doc/md.texi: Update.
12480         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
12481         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
12482         TARGET_ASM_CLOSE_PAREN.
12483         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
12484         Override.
12485         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
12486         Override.
12487         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
12488         * config/a29k/a29k.h: Similarly.
12489         * config/alpha/alpha.h: Similarly.
12490         * config/arc/arc.h: Similarly.
12491         * config/arm/aof.h: Similarly.
12492         * config/arm/aout.h: Similarly.
12493         * config/avr/avr.h: Similarly.
12494         * config/c4x/c4x.h: Similarly.
12495         * config/clipper/clipper.h: Similarly.
12496         * config/convex/convex.h: Similarly.
12497         * config/d30v/d30v.h: Similarly.
12498         * config/dsp16xx/dsp16xx.h: Similarly.
12499         * config/elxsi/elxsi.h: Similarly.
12500         * config/fr30/fr30.h: Similarly.
12501         * config/h8300/h8300.h: Similarly.
12502         * config/i370/i370.h: Similarly.
12503         * config/i386/i386.h: Similarly.
12504         * config/i860/i860.h: Similarly.
12505         * config/i960/i960.h: Similarly.
12506         * config/ia64/ia64.h: Similarly.
12507         * config/m32r/m32r.h: Similarly.
12508         * config/m68hc11/m68hc11.h: Similarly.
12509         * config/m68k/m68k.h: Similarly.
12510         * config/m88k/m88k.h: Similarly.
12511         * config/mcore/mcore.h: Similarly.
12512         * config/mips/mips.h: Similarly.
12513         * config/mn10200/mn10200.h: Similarly.
12514         * config/mn10300/mn10300.h: Similarly.
12515         * config/ns32k/ns32k.h: Similarly.
12516         * config/pa/pa.h: Similarly.
12517         * config/pdp11/pdp11.h: Similarly.
12518         * config/pj/pj.h: Similarly.
12519         * config/romp/romp.h: Similarly.
12520         * config/rs6000/rs6000.h: Similarly.
12521         * config/sh/sh.h: Similarly.
12522         * config/sparc/sparc.h: Similarly.
12523         * config/v850/v850.h: Similarly.
12524         * config/vax/vax.h: Similarly.
12525         * config/we32k/we32k.h: Similarly.
12526
12527 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
12528
12529         * doc/c-tree.texi: Document representation of attributes.
12530
12531 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12532
12533         * doc/tm.texi: Update some places for the rename of target to
12534         targetm.  Fix typo.
12535
12536 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12537
12538         * target.h (struct gcc_target): Add insert_attributes.
12539         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
12540         (TARGET_INITIALIZER): Update.
12541         * tree.c, tree.h (default_insert_attributes): New function.
12542         Update comments on other default functions to refer to targetm,
12543         not target.
12544         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
12545         TARGET_INSERT_ATTRIBUTES.
12546         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
12547         * c-common.c (decl_attributes): Use targetm.insert_attributes.
12548         Don't use PRAGMA_INSERT_ATTRIBUTES.
12549         * Makefile.in (c-common.o): Depend on $(TARGET_H).
12550         * c-decl.c (start_decl, start_function): Don't call
12551         SET_DEFAULT_DECL_ATTRIBUTES.
12552         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
12553         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
12554         declare.
12555         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
12556         (c4x_check_attribute): Avoid modifying attribute list itself.
12557         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
12558         Make static.
12559         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
12560         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
12561         declare.
12562         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
12563         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
12564         Make static.
12565         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
12566         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
12567         declare.
12568         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
12569         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
12570         Adjust parameters.  Make static.
12571
12572 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12573
12574         * c-common.c (decl_attributes): Only take a single attributes
12575         parameter.
12576         * c-common.h (decl_attributes): Update prototype.
12577         * c-decl.c (start_decl, start_function): Only take a single
12578         attributes parameter.  Update calls to decl_attributes.
12579         (finish_struct, finish_enum): Update calls to decl_attributes.
12580         (push_parm_decl): Expect unified list of attributes.  Update call
12581         to decl_attributes.
12582         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
12583         notype_nested_function, component_declarator,
12584         component_notype_declarator, label): Update calls to
12585         decl_attributes.
12586         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
12587         lists that are passed to push_parm_decl.
12588         * c-tree.h (start_function, start_decl): Update prototypes.
12589         * config/sh/sh-protos.h, config/sh/sh.c
12590         (sh_pragma_insert_attributes): Only take a single attributes
12591         parameter.
12592         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
12593         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
12594         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
12595         build_module_descriptor, generate_static_references,
12596         generate_strings, build_selector_translation_table,
12597         generate_descriptor_table, generate_protocols,
12598         generate_ivars_list, generate_dispatch_table,
12599         generate_protocol_list, generate_category,
12600         generate_shared_structures, really_start_method, add_objc_decls,
12601         generate_classref_translation_entry): Update calls to start_decl
12602         and start_function.
12603         (build_tmp_function_decl, start_method_def): Unify attribute lists
12604         that are passed to push_parm_decl.
12605
12606 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
12607
12608         * final.c (no_asm_to_stream): New.
12609         (final_scan_insn): Use target structures for prologue ends
12610         and epilogue starts.
12611         * output.h (no_asm_to_stream): New.
12612         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
12613         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
12614         (TARGET_ASM_OUT): Update.
12615         * target.h (struct gcc_target): New members function_end_prologue
12616         and function_begin_epilogue.
12617         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
12618         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
12619         * config/alpha/alpha.c (output_end_prologue): Rename to
12620         alpha_output_function_end_prologue.  Use in target struct
12621         and make static.
12622         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
12623         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
12624         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
12625         ia64_output_function_end_prologue.  Use in target struct
12626         and make static.
12627         (ia64_function_prologue, ia64_funciton_epilogue): Rename
12628         mistyped prototypes.
12629         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
12630         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
12631         Delete.
12632         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
12633         an use in target struct, make static.
12634         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
12635         Delete.
12636
12637 2001-07-08  Richard Henderson  <rth@redhat.com>
12638
12639         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
12640
12641 2001-07-08  Richard Henderson  <rth@redhat.com>
12642
12643         * config/i386/i386.md: Remove constraints strings from define_split
12644         and define_peephole2 patterns.
12645         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
12646         (eh_return): Use them.
12647
12648 2001-07-08  Richard Henderson  <rth@redhat.com>
12649
12650         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
12651         Document MD_FALLBACK_FRAME_STATE_FOR.
12652
12653 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12654
12655         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
12656         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
12657         elimination.
12658         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
12659
12660 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
12661
12662         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
12663         of the label inside NAME as opposed to just the end of NAME.
12664
12665 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12666
12667         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
12668         * config/alpha/alpha.c (alpha_init_machine_status,
12669         alpha_mark_machine_status, alpha_free_machine_status): Delete.
12670         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
12671         (vms_valid_decl_attribute_p): Make static, conditionally compile.
12672         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
12673
12674 2001-07-06  Stan Shebs  <shebs@apple.com>
12675
12676         * target.h (targetm): Rename global from "target", so as not to
12677         conflict with local variables.
12678         * c-decl.c: Ditto.
12679         * c-typeck.c: Ditto.
12680         * final.c: Ditto.
12681         * tree.c: Ditto.
12682         * cp/decl.c: Ditto.
12683         * cp/decl2.c: Ditto.
12684         * cp/typeck.c: Ditto.
12685         * 1750a/1750a.c: Ditto.
12686         * a29k/a29k.c: Ditto.
12687         * arc/arc.c: Ditto.
12688         * arm/arm.c: Ditto.
12689         * avr/avr.c: Ditto.
12690         * clipper/clipper.c: Ditto.
12691         * convex/convex.c: Ditto.
12692         * d30v/d30v.c: Ditto.
12693         * dsp16xx/dsp16xx.c: Ditto.
12694         * elxsi/elxsi.c: Ditto.
12695         * fr30/fr30.c: Ditto.
12696         * h8300/h8300.c: Ditto.
12697         * i370/i370.c: Ditto.
12698         * i386/i386.c: Ditto.
12699         * i860/i860.c: Ditto.
12700         * i960/i960.c: Ditto.
12701         * ia64/ia64.c: Ditto.
12702         * m32r/m32r.c: Ditto.
12703         * m68hc11/m68hc11.c: Ditto.
12704         * m68k/m68k.c: Ditto.
12705         * m88k/m88k.c: Ditto.
12706         * mips/mips.c: Ditto.
12707         * ns32k/ns32k.c: Ditto.
12708         * pa/pa.c: Ditto.
12709         * pdp11/pdp11.c: Ditto.
12710         * romp/romp.c: Ditto.
12711         * rs6000/rs6000.c: Ditto.
12712         * sh/sh.c: Ditto.
12713         * sparc/sparc.c: Ditto.
12714         * vax/vax.c: Ditto.
12715         * we32k/we32k.c: Ditto.
12716         * doc/tm.texi: Update the manual to match.
12717
12718 2001-07-06  Richard Henderson  <rth@redhat.com>
12719
12720         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
12721         DWARF2_UNWIND_INFO not just whether it is defined.
12722
12723 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
12724
12725         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
12726         call to simplify_binary_operation returns a new pattern.
12727
12728 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
12729
12730         * glimits.h (__SHRT_MAX__): New.
12731         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
12732         (SHRT_MAX): Define in terms of __SHRT_MAX__.
12733
12734 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
12735
12736         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
12737         avoid warnings.
12738
12739 2001-07-06  Richard Henderson  <rth@redhat.com>
12740
12741         * bitmap.c (bitmap_release_memory): Move adjacent to the
12742         allocation functions.
12743         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
12744         the implementation.  Binary search for the set bit.
12745         (bitmap_union_of_diff): Allocate the temporary on the stack
12746         instead of using xmalloc.
12747
12748 2001-07-06  Richard Henderson  <rth@redhat.com>
12749
12750         * genrecog.c (validate_pattern): Warn for constraints in
12751         define_{expand,split,peephole2}.  Remove strict_low_part
12752         before looking up match_dup.
12753
12754 2001-07-06  DJ Delorie  <dj@redhat.com>
12755
12756         * doc/gcc.texi (Makefile): Rename to be a more general purpose
12757         chapter about various build hints and history.  Add section
12758         talking about the various types of native and cross builds.
12759
12760 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12761
12762         * Makefile.in (final.o): Depend on target.h.
12763         * final.c: Include target.h.
12764         (default_function_pro_epilogue): New.
12765         (final_start_function): Use target structure for function prologues.
12766         (final_end_function): Use target structure for function epilogues.
12767         * fold-const.c (real_hex_to_f): Constify s and p.
12768         * output.h (default_function_pro_epilogue): New.
12769         * real.h (real_hex_to_f): Update prototype.
12770         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
12771         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
12772         (TARGET_INITIALIZER): Update.
12773         * target.h (gcc_target): Add struct asm_out.
12774         * doc/tm.texi: Update.
12775
12776 config:
12777         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
12778         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
12779         in cpu/cpu.c, or rename old functions consistently.  Take
12780         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
12781         redundant macros and prototypes.  Make new functions static.
12782
12783         * 1750a/1750a.c: Similarly.
12784         * 1750a/1750a.h: Similarly.
12785         * a29k/a29k-protos.h: Similarly.
12786         * a29k/a29k.c: Similarly.
12787         * a29k/a29k.h: Similarly.
12788         * arc/arc-protos.h: Similarly.
12789         * arc/arc.c: Similarly.
12790         * arc/arc.h: Similarly.
12791         * arm/arm-protos.h: Similarly.
12792         * arm/arm.c: Similarly.
12793         * arm/arm.h: Similarly.
12794         * avr/avr-protos.h: Similarly.
12795         * avr/avr.c: Similarly.
12796         * avr/avr.h: Similarly.
12797         * clipper/clipper-protos.h: Similarly.
12798         * clipper/clipper.c: Similarly.
12799         * clipper/clipper.h: Similarly.
12800         * convex/convex.c: Similarly.
12801         * convex/convex.h: Similarly.
12802         * d30v/d30v-protos.h: Similarly.
12803         * d30v/d30v.c: Similarly.
12804         * d30v/d30v.h: Similarly.
12805         * d30v/d30v.md: Similarly.
12806         * dsp16xx/dsp16xx-protos.h: Similarly.
12807         * dsp16xx/dsp16xx.c: Similarly.
12808         * dsp16xx/dsp16xx.h: Similarly.
12809         * elxsi/elxsi.c: Similarly.
12810         * elxsi/elxsi.h: Similarly.
12811         * fr30/fr30.c: Similarly.
12812         * fr30/fr30.md: Similarly.
12813         * h8300/h8300-protos.h: Similarly.
12814         * h8300/h8300.c: Similarly.
12815         * h8300/h8300.h: Similarly.
12816         * i370/i370-protos.h: Similarly.
12817         * i370/i370.c: Similarly.
12818         * i370/i370.h: Similarly.
12819         * i386/i386.c: Similarly.
12820         * i386/osf1elf.h: Similarly.
12821         * i386/osfrose.h: Similarly.
12822         * i860/i860-protos.h: Similarly.
12823         * i860/i860.c: Similarly.
12824         * i860/i860.h: Similarly.
12825         * i960/i960-protos.h: Similarly.
12826         * i960/i960.c: Similarly.
12827         * i960/i960.h: Similarly.
12828         * ia64/ia64-protos.h: Similarly.
12829         * ia64/ia64.c: Similarly.
12830         * ia64/ia64.h: Similarly.
12831         * m32r/m32r-protos.h: Similarly.
12832         * m32r/m32r.c: Similarly.
12833         * m32r/m32r.h: Similarly.
12834         * m68hc11/m68hc11-protos.h: Similarly.
12835         * m68hc11/m68hc11.c: Similarly.
12836         * m68hc11/m68hc11.h: Similarly.
12837         * m68k/crds.h: Similarly.
12838         * m68k/dpx2.h: Similarly.
12839         * m68k/m68k-protos.h: Similarly.
12840         * m68k/m68k.c: Similarly.
12841         * m68k/m68k.h: Similarly.
12842         * m68k/news.h: Similarly.
12843         * m88k/m88k-protos.h: Similarly.
12844         * m88k/m88k.c: Similarly.
12845         * m88k/m88k.h: Similarly.
12846         * mips/mips-protos.h: Similarly.
12847         * mips/mips.c: Similarly.
12848         * mips/mips.h: Similarly.
12849         * ns32k/merlin.h: Similarly.
12850         * ns32k/ns32k.c: Similarly.
12851         * ns32k/ns32k.h: Similarly.
12852         * ns32k/tek6000.h: Similarly.
12853         * pa/pa-protos.h: Similarly.
12854         * pa/pa.c: Similarly.
12855         * pa/pa.h: Similarly.
12856         * pdp11/2bsd.h: Similarly.
12857         * pdp11/pdp11-protos.h: Similarly.
12858         * pdp11/pdp11.c: Similarly.
12859         * pdp11/pdp11.h: Similarly.
12860         * romp/romp-protos.h: Similarly.
12861         * romp/romp.c: Similarly.
12862         * romp/romp.h: Similarly.
12863         * rs6000/rs6000-protos.h: Similarly.
12864         * rs6000/rs6000.c: Similarly.
12865         * rs6000/rs6000.h: Similarly.
12866         * rs6000/sysv4.h: Similarly.
12867         * sh/sh-protos.h: Similarly.
12868         * sh/sh.c: Similarly.
12869         * sh/sh.h: Similarly.
12870         * sparc/sparc-protos.h: Similarly.
12871         * sparc/sparc.c: Similarly.
12872         * sparc/sparc.h: Similarly.
12873         * vax/vax.c: Similarly.
12874         * vax/vax.h: Similarly.
12875         * vax/vms.h: Similarly.
12876         * we32k/we32k.c: Similarly.
12877         * we32k/we32k.h: Similarly.
12878
12879 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
12880
12881         * basic-block.h (first_insn_after_basic_block_note): Declare.
12882         * flow.c (first_insn_after_basic_block_note): Define.  Moved
12883         from...
12884         * ssa.c (first_insn_after_basic_block_note): Remove.
12885         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
12886         necessary.
12887         (ssa_eliminate_dead_code): Properly update the CFG and PHI
12888         nodes when we find a dead conditional branch.  Insert BARRIERs
12889         after any blocks with no successors, but which do not have
12890         any BARRIERs.
12891
12892 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
12893
12894         * varray.c (varray_check_failed): Use internal_error.
12895
12896 2001-07-05  Andrew Haley  <aph@redhat.com>
12897
12898         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
12899         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
12900         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
12901
12902 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
12903
12904         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
12905         reference if the target constant is also a SYMBOL_REF.
12906
12907 2001-07-05  Eric Christopher  <echristo@redhat.com>
12908
12909         * config/mips/mips.h (MASK_MIPS3900): Remove.
12910         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
12911         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
12912         (TARGET_MIPS3900): Change to use mips_arch.
12913         (TARGET_MIPS4000): New.
12914         (TARGET_MIPS4100): New.
12915         (TARGET_MIPS4300): New.
12916         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
12917         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
12918         for -mipsX.
12919         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
12920         (ISA_HAS_BRANCHLIKELY): To here.
12921         (CC1_CPU_SPEC):  New.
12922         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
12923         (mips_arch_string): Declare.
12924         (mips_arch): Declare.
12925         (TARGET_OPTIONS): Add -march and -mtune.
12926
12927         * config/mips/mips.c (mips_arch_string): New.
12928         (mips_arch): New.
12929         (override_options): Handle -march for codegen and -mtune
12930         for scheduling. Use mips_arch. Move tx39 target default here.
12931         (mips_parse_cpu): Move error message to override_options.
12932
12933         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
12934
12935         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
12936
12937         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
12938         (MIPS Options): Ditto.  Change mcpu entry to historical text.
12939
12940 2001-07-05  H.J. Lu  (hjl@gnu.org)
12941
12942         * config/mips/mips.c (mips_parse_cpu): New function to parse
12943         -march=*/-mcpu=*.
12944
12945 2001-07-05  Jim Wilson  <wilson@redhat.com>
12946
12947         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
12948         * config/ia64/t-ia64: Likewise.
12949         (LIB1ASMFUNCS): Update comment.
12950
12951 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
12952
12953         * doc/install.texi (Install GCC: Binaries): Fix typo.
12954
12955 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12956
12957         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
12958         reference using the stack pointer, adjust it since we push Y
12959         temporarily.
12960         ("*ashrsi3"): Likewise.
12961         ("*lshrsi3"): Likewise.
12962
12963 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12964
12965         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
12966         when -fomit-frame-pointer is used.
12967
12968 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
12969
12970         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
12971         (try_redirect_by_replacing_jump): Reverse updating properly the
12972         count and frequency information.  Reverse removing cc0 setter.
12973         (forwarder_block_p): Reverse fixing for fallthru blocks.
12974
12975 2001-07-05  DJ Delorie  <dj@redhat.com>
12976
12977         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
12978         (translate_options): If the above is defined, use it to map
12979         given options to new options.
12980         * doc/tm.texi: Document it.
12981
12982 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
12983             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12984
12985         * doc/invoke.texi (Optimize Options): Document that -fgcse may
12986         cause programs using computed gotos to run more slowly.
12987
12988 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12989
12990         * doc/install.texi (Specific): Markup, spelling and typo fixes.
12991         Fixed sorting.
12992         Consistently require binutils 2.11.2, not prereleases.
12993         (Specific, decstation-*): Canonicalize as mips-dec-*.
12994         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
12995         always necessary.
12996         (Specific, m68k-altos): Removed reference to README.altos, deleted.
12997         (Specific, mips-*): Reword MIPS C compiler requirements.
12998         (Specific, powerpc*-*-*): New, mention --with-cpu once.
12999         (Specific, sunv5): Removed, obsolete.
13000
13001 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
13002
13003         * dwarf2out.c (output_loc_list): Use an all ones mask for
13004         .text asm output and don't rely on long long
13005         literals. Reformat some long lines.
13006
13007 2001-07-05  Andreas Jaeger  <aj@suse.de>
13008
13009         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
13010         section.
13011
13012 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
13013
13014         * dwarf2out.c (dwarf2out_define): Update comment.
13015         (dwarf2out_undef): Ditto.
13016         (dwarf2out_start_source_file): Ditto.
13017         (dwarf2out_end_source_file): Ditto.
13018         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
13019         since we never call the start/end debug hook for the primary file.
13020
13021 2001-07-04  Kazu Hirata  <kazu@hxi.com>
13022
13023         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
13024         from shll.
13025
13026 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
13027
13028         * cppinit.c (remove_dup_dirs): Inform if a system include
13029         directory is being reordered.
13030         * doc/invoke.texi (Directory Options): GCC warns if you hide a
13031         system include.
13032         * doc/cpp.texi (Search Paths): Likewise.
13033         * doc/gcc.texi (Interoperation): Remove information about
13034         -I/usr/include.
13035
13036 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
13037
13038         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
13039         (VARRAY_TOP_CHAR_PTR): Likewise.
13040
13041 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13042
13043         * gcc.c (process_command): Don't assign elements of a const char*.
13044
13045 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13046
13047         * emit-rtl.c (change_address): Don't abort if invalid address while
13048         reload is in progress.
13049
13050 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
13051
13052         * c-lex.c (cb_file_change): Pass line number to
13053         debug_start_source_file.
13054         (cb_undefine): Pass correct line number to debug_undef.
13055
13056         * toplev.c (debug_start_source_file): Add line number to
13057         parameters. Pass it along to dwarf2out_start_source_file.
13058         (decode_g_option): Stop resetting debug level back to normal when
13059         we change debug formats, unless the current level is
13060         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
13061         3).
13062
13063         * toplev.h (debug_start_source_file): Add line number to
13064         parameters.
13065
13066         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
13067         parameters.
13068
13069         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
13070         parameters.
13071         Output debug_macinfo data for starting file if requested.
13072         (dwarf2out_end_source_file): Output debug_macinfo data for ending
13073         file if requested.
13074         (dwarf2out_define): Output debug_macinfo data for defining a macro
13075         if requested.
13076         (dwarf2out_undef): Output debug_macinfo data for undefining a
13077         macro if requested.
13078         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
13079         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
13080         (macinfo_section_label): New. DWARF2 macro info section label.
13081         (dwarf2out_init): If we want macro info, output the start label
13082         for the section.
13083         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
13084         attribute to the compilation unit die pointing to the macro info.
13085
13086 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
13087
13088         * dwarf2out.c (new_loc_list): Move to inside #ifdef
13089         DWARF2_DEBUGGING_INFO.
13090         (add_loc_descr_to_loc_list): Ditto.
13091         (output_loc_list): Ditto.
13092         Also, fix thinko in curr not being initialized.
13093         (gen_internal_sym): Ditto.
13094
13095 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13096
13097         * emit-rtl.c (replace_equiv_address): New function.
13098         * expr.h (replace_equiv_address): New declaration.
13099         * explow.c (validize_mem): Call it instead of change_address and
13100         also call if -fforce-addr and address is constant.
13101         * expr.c: Replace more calls to change_address with adjust_address
13102         and/or replace_equiv_address or to validize_mem.
13103         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
13104         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
13105         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
13106         * config/i370/i370.md, config/i860/i860.md: Likewise.
13107         * config/i960/i960.md, config/mips/mips.c: Likewise.
13108         * config/mips/mips.md, config/pa/pa.md: Likewise.
13109         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
13110         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
13111
13112 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13113
13114         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
13115
13116         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
13117         function.
13118
13119 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
13120
13121         * doc/include: New directory.
13122         * doc/fdl.texi: Move to doc/include/fdl.texi.
13123         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
13124         * doc/include/funding.texi, doc/include/gpl.texi: New files.
13125         * doc/gcc.texi: Use funding.texi and gpl.texi.
13126         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
13127         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
13128         Update dependencies and use -I $(docdir)/include.
13129
13130 2001-07-04  Anthony Green  <green@redhat.com>
13131
13132         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
13133
13134 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13135
13136         * doc/install.texi (sparc64-*-*): Remove garbage.
13137
13138 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
13139
13140         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
13141         Fix typo in last change to use adjust_address.
13142
13143 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13144
13145         * doc/install.texi (Specific): Update information for *-*-solaris*.
13146
13147 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13148
13149         * explow.c (plus_constant_wide): Reinitialize Y for restart.
13150
13151 2001-07-03  Stan Shebs  <shebs@apple.com>
13152
13153         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
13154         case for flag_no_mach_text_sections.
13155         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
13156         * config/darwin.c (flag_no_mach_text_sections): Remove.
13157         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
13158
13159 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13160
13161         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
13162         and avoid checking for constant as first operand.
13163         * recog.c (find_constant_term_loc): No longer static.
13164         (adj_offettable_operand): Delete.
13165         * rtl.h (adj_offsettable_operand): Delete declaration.
13166         (find_constant_term): Add declaration.
13167         * caller-save.c: Replace calls to adj_offsettable_operand with calls
13168         to adjust_address.
13169         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
13170         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
13171         * config/i386/i386.c, config/i386/i386.md: Likewise.
13172         * config/i860/i860.c, config/i960/i960.c: Likewise.
13173         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
13174         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
13175         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
13176         * config/mips/mips.c, config/mips/mips.md: Likewise.
13177         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
13178         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
13179         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
13180         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
13181         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
13182         * config/ns32k/ns32k.md: Likewise.
13183
13184 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
13185
13186         * rtl.c (copy_rtx): Handle 'T' format letter.
13187         * gensupport.c (collect_insn_data): Likewise.
13188         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
13189
13190 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
13191
13192         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
13193         -B option.  Use 'dir' not 'foo' as example directory name.
13194
13195 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13196
13197         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13198         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
13199
13200 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
13201
13202         * doc/cppinternals.texi: Improve formatting and logical markup.
13203
13204 2001-07-03  Andreas Jaeger  <aj@suse.de>
13205
13206         * Makefile.in (insn-recog.o): Add dependency on reload.h.
13207
13208         * genrecog.c (write_header): Include reload.h for prototypes in
13209         insn-recog.c.
13210
13211 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
13212
13213 config:
13214         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
13215         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
13216         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
13217         i386_pe_valid_type_attribute_p): Add.
13218         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
13219         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
13220
13221 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13222
13223         * explow.c (plus_constant_wide, case LO_SUM): New case.
13224         (plus_constant_for_output_wide): Delete.
13225         * rtl.h (plus_constant_for_output): Delete.
13226         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
13227         instead of plus_constant_for_output.
13228         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
13229         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
13230         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
13231         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
13232         * config/sparc/sparc.md: Likewise.
13233         Convert some change_address calls to adjust_address.
13234
13235 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
13236
13237         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
13238         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
13239         documentation of -std and -Wwrite-strings.
13240
13241 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
13242
13243         * cse.c (canon_hash): Don't register registers in very small
13244         register classes, as extending their lifetime might cause
13245         reload to fail.
13246
13247 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13248
13249         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
13250
13251         * flow.c (forwarder_block_p): Fix for fallthru blocks.
13252         (try_redirect_by_replacing_jump): Update properly the count
13253         and frequency information.
13254
13255 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
13256
13257         * toplev.c (dump_file_index): Move SSA dumps just after first
13258         jump dump.
13259         (dump_file): Corresponding changes.
13260         (rest_of_compilation): Move SSA path to just after the first
13261         jump pass.
13262         * doc/gcc.texi (Passes): Update due to movement of SSA path.
13263         * doc/invoke.texi: Update dump file #s as they were completely
13264         out of date with reality.
13265
13266 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
13267
13268         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
13269
13270         * expr.c (emit_move_insn_1): Deal with non-default
13271         STACK_PUSH_CODE.
13272
13273         * expr.c (emit_single_push_insn): Fix warning.
13274
13275 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
13276
13277         * expr.c (emit_move_insn_1): Avoid modifying
13278         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
13279
13280 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13281
13282         * emit-rtl.c (adjust_address): New function.
13283         * expr.h (adjust_address): Add declaration.
13284         * builtins.c: Replace some calls to change_address with calls to it
13285         or to validize_mem.
13286         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
13287         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
13288         * config/arm/arm.c, config/convex/convex.c: Likewise.
13289         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
13290         * config/i386/i386.c, config/i386/i386.md: Likewise.
13291         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
13292         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
13293         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
13294         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
13295         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
13296
13297 2001-07-02  Jim Wilson  <wilson@redhat.com>
13298
13299         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
13300
13301 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
13302
13303         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
13304         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
13305
13306 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
13307
13308         * cppinit.c (lang_defaults): New table.
13309         (set_lang): Just read from lang_defaults into the live options
13310         structure.
13311
13312 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
13313
13314         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
13315         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
13316         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
13317
13318 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13319
13320         * doc/install.texi: Various spelling and markup fixes.
13321         (Installing GCC): Component specific installation instructions are
13322         gone.
13323         Fix reference.
13324         Warn about removing old install dir in the presence of shared libs.
13325         (Configuration): Invoke with options target to match configure
13326         --help.
13327         Consistently refer to gas, gld pathnames.
13328         Invert --enable-multilib documentation.
13329         Remove references to old compiler versions.
13330
13331 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13332
13333         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
13334
13335 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13336
13337         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
13338         section.
13339         (Specific, mips*-sgi-irix5): Note IDO download.
13340         Reworded MIPS C hints.
13341         Use GNU as instead of GAS.
13342         Markup fixes.
13343         Removed SGI Freeware reference, IRIX 6 only.
13344         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
13345         Note N64 library requirement/workaround.
13346         Update O32 hints.
13347         Complete list of structure passing bug victims.
13348
13349 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13350
13351         * doc/install.texi: Remove CVS Id.
13352
13353 2001-07-02  Andreas Jaeger  <aj@suse.de>
13354
13355         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
13356         (find_inherently_necessary): Remove unused variable.
13357
13358 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
13359
13360         * c-common.h (TDI_inlined): New ast dump phase.
13361         (dump_flag_name): New function.
13362         * c-dump.c (dump_files): Add inlined phase.
13363         (dump_flag_name): Define.
13364         * doc/invoke.texi (-fdump-ast-inlined): Document.
13365
13366 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13367
13368         * stor-layout.c (layout_decl): Revert change to handling of alignment
13369         in packed types.
13370
13371 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13372
13373         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
13374         for FIELD_DECL.
13375
13376 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
13377
13378         * doc/tm.texi (FUNCTION_ARG): Document that the last call
13379         is special.
13380
13381 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
13382
13383         * tlink.c (recompile_files): Remove COMPILER_PATH and
13384         LIBRARY_PATH from the environment.
13385
13386 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
13387
13388         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
13389         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
13390         enumerators.
13391         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
13392
13393         * c-parse.in (OBJC_STRING): Kill.
13394         (objc_string): Decompose to [objc_string] '@' STRING.
13395         (reswords): Take the leading '@' off all the Objective C keywords.
13396         (objc_rid_sans_at): Kill.
13397         (init_reswords): Don't initialize it.
13398         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
13399         (_yylex): Kill reconsider label.  Look ahead one token after
13400         an '@'; if we get an identifier, check whether it's an
13401         Objective C @-keyword.  If so, return the keyword.  Otherwise,
13402         put back the token and return the '@' as a terminal.
13403
13404         * cpplib.c (lex_macro_node): Remove unnecessary check for
13405         leading '@' on identifier.  Clarify control flow and commentary.
13406
13407 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13408
13409         * cse.c (new_label_ref): Variable deleted.
13410         (insert): Remove set of new_label_ref.
13411         (check_for_label_ref): New function.
13412         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
13413
13414 See ChangeLog.5 for earlier changes.