OSDN Git Service

* alias.c (nonoverlapping_memrefs_p): New function.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2
3         * alias.c (nonoverlapping_memrefs_p): New function.
4         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
5
6         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
7
8 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
9
10         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
11         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
12         generating altivec code.
13         (FIXED_REGISTERS): VRSAVE is fixed.
14         (CALL_USED_REGISTERS): VRSAVE is call used.
15
16 2001-11-08  Jason Eckhardt  <jle@rice.edu>
17
18         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
19         code the branch target as ".+16/.+12", but rather use labels.
20
21 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
22
23         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0  
24         to work around limitations of certain versions of GAS.
25
26         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
27         (muldi3): Update due to SUBREG_BYTE changes.
28         (casesi): Similarly.
29
30 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
31
32         * doc/invoke.texi: Remove comment referring to -xf77-version.
33
34 2001-11-09  Kazu Hirata  <kazu@hxi.com>
35
36         * config/convex/convex.c: Fix comment formatting.
37         * config/convex/convex.h: Likewise.
38
39 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
40
41         * Makefile.in (.po.pox): Look both in srcdir and builddir
42         for $(PACKAGE).pot.
43         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
44         to the source directory.
45
46 2001-11-09 Ben Elliston  <bje@redhat.com>
47            Michael Meissner  <meissner@redhat.com>
48            Andrew MacLeod  <amacleod@redhat.com>
49            Richard Henderson  <rth@redhat.com>
50            Nick Clifton  <nickc@redhat.com>
51            Catherine Moore  <clm@redhat.com>
52
53         * m32r.c: Add support for m32rx processor.
54         * m32r.h: Ditto.
55         * m32r.md: Ditto.
56         * t-m32r: Ditto.
57         * m32r-protos.h: Add prototypes for m32rx functions.
58         * doc/invoke.texi: Document -m32rx option.
59
60 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
61
62         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
63         or after reload.
64
65 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
66
67         * doc/install.texi2html: Use $MAKEINFO --no-split.
68
69 2001-11-09  Andreas Schwab  <schwab@suse.de>
70
71         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
72         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
73         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, 
74         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
75         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
76
77 2001-11-09  H.J. Lu <hjl@gnu.org>
78
79         * config/mips/mips.c (mips_output_function_prologues): Cast
80         `tsize' to long for output.
81
82 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
83
84         * c-lang.c (LANG_HOOKS_NAME): New.
85         (lang_hooks): Constify.
86         (c_init_options): Update.
87         (lang_identify): Remove.
88         * c-parse.in (language_string): Remove.
89         * dbxout.c: Include langhooks.h.
90         (dbxout_symbol_location): Update.
91         * dwarf2out.c: Include langhooks.h.
92         (gen_compile_unit_die): Update.
93         * dwarfout.c: Include langhooks.h.
94         (prototyped_attribute, output_compile_unit_die): Update.
95         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
96         (LANG_HOOKS_INITIALIZER): Update.
97         * langhooks.h (struct lang_hooks): New members.  Constify.
98         * stringpool.c: Don't include toplev.h.
99         (set_identifier_size): Remove.
100         * toplev.c (toplev_main): Initialize identifier size.
101         (print_version): Update.
102         * tree.h (language_string, init_lex, lang_identify,
103         set_identifier_size): Remove.
104         * Makefile.in: Update dependencies.
105         * config/darwin.c: Include langhooks.h.
106         (func_name_maybe_scoped): Update.
107         * config/darwin.h (ASM_END_FILE): Update.
108         * config/nextstep.h (ASM_END_FILE): Update.
109         * config/nextstep21.h (ASM_END_FILE): Update.
110         * config/i386/sun386.h (ASM_END_FILE): Update.
111         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
112         (rs6000_output_function_epilogue): Update.
113 objc:
114         * objc-act.c (LANG_HOOKS_NAME): Override.
115         (struct lang_hooks): Constify.
116         (objc_init_options): Update.
117         (lang_identify): Remove.
118
119 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
120
121         * fold-const.c (lshift_double): Honor PREC.
122         (rshift_double): Likewise.
123
124 2001-11-08  Kazu Hirata  <kazu@hxi.com>
125
126         * config/1750a/1750a.c: Fix comment formatting.
127         * config/1750a/1750a.h: Likewise.
128
129 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
130
131         * configure.in (--enable-languages): Be more permissive about
132         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
133         * configure: Regenerated.
134
135 2001-11-08  Richard Henderson  <rth@redhat.com>
136
137         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
138
139 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
140
141         * config.gcc: Rename stormy16 to xstormy16.
142         * config/stormy16/stormy-abi: Likewise.
143         * config/stormy16/stormy16-protos.h: Likewise.
144         * config/stormy16/stormy16.c: Likewise.
145         * config/stormy16/stormy16.h: Likewise.
146         * config/stormy16/stormy16.md: Likewise.
147
148 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
149
150         * tree.h (TYPE_VOLATILE): Add enable-checking code.
151         (TYPE_READONLY): Likewise.
152
153 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
154
155         * reload1.c (reload): Don't delete equiv insn if can throw.
156
157         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
158         (clear_storage): Likewise, for OBJECT.
159
160 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
161
162         * pa.c (emit_move_sequence): Fix SUBREG expression to
163         use proper byte offset when extending a constant from
164         SImode to DImode.
165
166 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
167
168         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
169         which cannot throw.
170
171 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
172
173         * explow.c (convert_memory_address, case SUBREG): Only return
174         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
175
176 2001-11-08  Richard Henderson  <rth@redhat.com>
177
178         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
179         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
180         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
181
182 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
183
184         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
185
186 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
187
188         * dwarf2out.c (debug_str_hash): New.
189         (struct indirect_string_node): New.
190         (struct dw_val_struct): Change type of val_str to it.
191         (DEBUG_STR_SECTION_FLAGS): Define.
192         (add_AT_string): Push string into hashtable, increment reference
193         counter.
194         (AT_string): Return string from ht_identifier.
195         (AT_string_form): New.
196         (free_AT): For dw_val_class_str, just decrement reference counter.
197         (size_of_string): Remove.
198         (size_of_die): Use AT_string_form to decide what size the string
199         occupies in DIE.
200         (size_of_pubnames): Use strlen instead of size_of_string.
201         (value_format): Use AT_string_form for dw_val_class_str.
202         (output_die): Output DW_FORM_strp strings using
203         dw2_asm_output_offset.
204         (indirect_string_alloc, output_indirect_string): New.
205         (dwarf2out_finish): Emit .debug_str strings if there are any.
206
207 2001-11-08  Andreas Franck  <afranck@gmx.de>
208
209         * configure.in: Add AC_ARG_PROGRAM to support program name
210         transformation with --program-prefix, --program-suffix and
211         --program-transform-name.
212         * configure: Regenerated.
213         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
214         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
215         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
216         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
217         program_transform_name the way suggested by autoconf.
218         (GCC_TARGET_INSTALL_NAME): Define.
219         (install-driver): Use the transformed target alias name.
220
221 2001-11-08  Richard Henderson  <rth@redhat.com>
222
223         * config/mips/mips.c (save_restore_insns): Remove GP from the
224         restore registers mask early instead of special casing it inside
225         the loop.
226
227 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
228
229         * cp/decl.c (shadow_warning): New function.
230         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
231         and an error when a block scope decl shadows a parameter.
232
233 2001-11-08  Richard Henderson  <rth@redhat.com>
234
235         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
236         case as well.
237
238 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
239
240         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
241         to implement floating negation on processors prior to PA 2.0.
242
243 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
244
245         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
246         (USE_LINKONCE_INDIRECT): Define.
247         (dw2_output_indirect_constant_1): Try to output indirect constants
248         into linkonce sections if possible.
249         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
250         (dw2_output_indirect_constants): Likewise.
251
252 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
253
254         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
255
256 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
257
258         * c-decl.c (pushdecl): Remove file and line.
259         * c-typeck.c (pop_init_level): Remove size.
260
261 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
262
263         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
264         for rs6000.
265
266         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
267         (TARGET_ALTIVEC): New.
268         (TARGET_SWITCHES): Add altivec.
269         (FIRST_PSEUDO_REGISTER): Change to 109.
270         (CALL_USED_REGISTERS): Same.
271         (FIRST_ALTIVEC_REGNO): New.
272         (LAST_ALTIVEC_REGNO): New.
273         (ALTIVEC_REGNO_P): New.
274         (UNITS_PER_ALTIVEC_WORD): New.
275         (ALTIVEC_VECTOR_MODE): New.
276         (FIXED_REGISTERS): Add altivec registers.
277         (REG_ALLOC_ORDER): Same.
278         (HARD_REGNO_NREGS): Adjust for altivec registers.
279         (HARD_REGNO_MODE_OK): Same.
280         (MODES_TIEABLE_P): Same.
281         (REGISTER_MOVE_COST): Same.
282         (REGNO_REG_CLASS): Same.
283         (reg_class): Add ALTIVEC_REGS.
284         (REG_CLASS_NAMES): Same.
285         (REG_CLASS_CONTENTS): Same.
286         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
287         (ALTIVEC_ARG_RETURN): New.
288         (FUNCTION_VALUE): Handle VECTOR_TYPE.
289         (LIBCALL_VALUE): Handle altivec vector modes.
290         (VECTOR_MODE_SUPPORTED_P): New.
291         (ALTIVEC_ARG_MIN_REG): New.
292         (ALTIVEC_ARG_MAX_REG): New.
293         (ALTIVEC_ARG_NUM_REG): New.
294         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
295         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
296         (REGISTER_NAMES): Add altivec regs.
297         (DEBUG_REGISTER_NAMES): Same.
298         (ADDITIONAL_REGISTER_NAMES): Same.
299         (rs6000_builtins): New.
300         (MD_EXPAND_BUILTIN): New.
301         (MD_INIT_BUILTINS): New.
302         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
303         for AltiVec instructions.
304         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
305         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
306         registers.
307         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
308         (TARGET_SWITCHES): Add no-altivec.
309         (DATA_ALIGNMENT): Align vectors to 128 bits.
310         (TARGET_OPTIONS): Add abi= option.
311         Add rs6000_abi_string extern.
312         (LOCAL_ALIGNMENT): New.
313         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
314         (MASK_ALTIVEC_ABI): New.
315         (TARGET_ALTIVEC_ABI): New.
316         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
317         call-saved.
318         (STACK_BOUNDARY): Adjust for altivec.
319         (BIGGEST_ALIGNMENT): Same.
320         (rs6000_args): Add vregno.
321         (USE_ALTIVEC_FOR_ARG_P): New.
322         (FIXED_REGISTERS): Add vrsave register.
323         (CALL_USED_REGISTERS): Same.
324         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
325         (VRSAVE_REGNO): New.
326         (reg_class): Add VRSAVE_REGS.
327         (REG_CLASS_NAMES): Same.
328         (REG_CLASS_CONTENTS): Same.
329         (REGNO_REG_CLASS): Same.
330         
331         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
332         (ABI_STACK_BOUNDARY): Same.
333         (BIGGEST_ALIGNMENT): Same.
334         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
335         (ROUND_TYPE_ALIGN): Same.
336         
337         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
338         to 64.
339
340         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
341         to 64.
342
343         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
344         to 64.
345
346         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
347         (altivec_expand_builtin): New.
348         (altivec_init_builtins): New.
349         (TARGET_EXPAND_BUILTIN): New.
350         (TARGET_INIT_BUILTINS): New.
351         (rs6000_init_builtins): New.
352         (struct builtin_description): New.
353         (bdesc_2arg): New.
354         (rs6000_reg_names): Add altivec registers.
355         (alt_reg_names): Same.
356         (secondary_reload_class): Altivec regs can hold altivec regs and
357         memory.
358         (rs6000_emit_move): Force constants into memory for AltiVec moves.
359         (print_operand): Add 'y' case for printing altivec memory
360         operands.
361         (rs6000_legitimize_address): Legitimize vector addresses into
362         [REG+REG] or [REG].
363         (altivec_expand_binop_builtin): New.
364         New string rs6000_current_abi.
365         (rs6000_override_options): Call rs6000_parse_abi_options.
366         (rs6000_parse_abi_options): New.
367         (function_arg_boundary): Vector arguments must be 16
368         byte aligned.
369         (function_arg_advance): Handle vector arguments.
370         (function_arg_partial_nregs): Same.
371         (init_cumulative_args): Same.
372         (function_arg): Same.
373
374         * config/rs6000/rs6000.md (altivec_lvx): New.
375         (type): Add altivec attribute.
376         (movv4si): New.
377         (*movv4si_internal): New.
378         (movv16qi): New.
379         (*movv16qi_internal): New.
380         (movv8hi): New.
381         (*movv8hi_internal1): New.
382         (movv4sf): New.
383         (*movv4sf_internal1): New.
384         (altivec_stvx): New.
385         (vaddubm): New.
386         (vadduhm): New.
387         (vadduwm): New.
388         (vaddfp): New.
389         (vaddcuw): New.
390         (vaddubs): New.
391         (vaddsbs): New.
392         (vadduhs): New.
393         (vaddshs): New.
394         (vadduws): New.
395         (vaddsws): New.
396         (vand): New.
397         (vandc): New.
398         (vavgub): New.
399         (vavgsb): New.
400         (vavguh): New.
401         (vavgsh): New.
402         (vavguw): New.
403         (vavgsw): New.
404         (vcmpbfp): New.
405         (vcmpequb): New.
406         (vcmpequh): New.
407         (vcmpequw): New.
408         (vcmpeqfp): New.
409         (vcmpgefp): New.
410         (vcmpgtub): New.
411         (vcmpgtsb): New.
412         (vcmpgtuh): New.
413         (vcmpgtsh): New.
414         (vcmpgtuw): New.
415         (vcmpgtsw): New.
416         (vcmpgtfp): New.
417         (vcmpgefp): New.
418         (vcmpgtub): New.
419         (vcmpgtsb): New.
420         (vcmpgtuh): New.
421         (vcmpgtsh): New.
422         (vcmpgtuw): New.
423         (vcmpgtsw): New.
424         (vcmpgtfp): New.
425         (vmaxub): New.
426         (vmaxsb): New.
427         (vmaxuh): New.
428         (vmaxsh): New.
429         (vmaxuw): New.
430         (vmaxsw): New.
431         (vmaxfp): New.
432         (vmrghb): New.
433         (vmrghh): New.
434         (vmrghw): New.
435         (vmrglb): New.
436         (vmrglh): New.
437         (vmrglw): New.
438         (vminub): New.
439         (vminsb): New.
440         (vminuh): New.
441         (vminsh): New.
442         (vminuw): New.
443         (vminsw): New.
444         (vminfp): New.
445         (vmuleub): New.
446         (vmulesb): New.
447         (vmuleuh): New.
448         (vmulesh): New.
449         (vmuloub): New.
450         (vmulosb): New.
451         (vmulouh): New.
452         (vmulosh): New.
453         (vnor): New.
454         (vor): New.
455         (vpkuhum): New.
456         (vpkuwum): New.
457         (vpkpx): New.
458         (vpkuhss): New.
459         (vpkshss): New.
460         (vpkuwss): New.
461         (vpkswss): New.
462         (vpkuhus): New.
463         (vpkshus): New.
464         (vpkuwus): New.
465         (vpkswus): New.
466         (vrlb): New.
467         (vrlh): New.
468         (vrlw): New.
469         (vslb): New.
470         (vslh): New.
471         (vslw): New.
472         (vsl): New.
473         (vslo): New.
474         (vsrb): New.
475         (vrsh): New.
476         (vrsw): New.
477         (vsrab): New.
478         (vsrah): New.
479         (vsraw): New.
480         (vsr): New.
481         (vsro): New.
482         (vsububm): New.
483         (vsubuhm): New.
484         (vsubuwm): New.
485         (vsubfp): New.
486         (vsubcuw): New.
487         (vsububs): New.
488         (vsubsbs): New.
489         (vsubuhs): New.
490         (vsubshs): New.
491         (vsubuws): New.
492         (vsubsws): New.
493         (vsum4ubs): New.
494         (vsum4sbs): New.
495         (vsum4shs): New.
496         (vsum2sws): New.
497         (vsumsws): New.
498         (vxor): New.
499
500 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
501
502         * Makefile.in (df.o): Add fibheap.h to dependencies.
503        
504         * df.h: Add prototypes for transfer functions, iterative_dataflow
505         functions.
506         (enum df_flow_dir): New enum.
507         (enum df_confluence_op): New enum.
508         (struct df): Add inverse_rts_map.
509
510         * df.c: Add sbitmap.h to the list of includes.
511         (df_rd_global_compute): Removed.
512         (df_ru_global_compute): Removed.
513         (df_lr_global_compute): Removed.
514         (df_rd_transfer_function): New function.
515         (df_ru_transfer_function): New function.
516         (df_lr_transfer_function): New function.
517         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
518         Use iterative_dataflow_bitmap instead of df_*_global_compute.
519         (iterative_dataflow_sbitmap): New function.
520         (iterative_dataflow_bitmap): New function.
521
522 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
523
524         * doc/gcc.texi: Move terminology and spelling conventions to
525         htdocs/codingconventions.html.
526
527 2001-11-07  Graham Stott  <grahams@redhat.com>
528
529         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
530
531 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
532
533         * expmed.c (expand_mult): Force operand to register before computing
534         cost.
535         * i386.c (x86_decompose_lea): New global vairable.
536         * i386.h (x86_decompose_lea): Declare.
537         (TARGET_DECOMPOSE_LEA): New macro.
538         (RTX_COST): Handle leas properly.
539
540 2001-11-06  Richard Henderson  <rth@redhat.com>
541
542         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
543         defined for a CONSTRUCTOR; don't check it.
544
545 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
546
547         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
548         test for absolute pathnames.
549
550 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
551
552         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
553         instructions up to the target pc inclusive.
554
555 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
556
557         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
558
559 2001-11-06  Eric Christopher  <echristo@redhat.com>
560
561         * config/mips/mips.md(movdf_internal2): Add constraints for float
562         to general register move.
563         * config/mips/elf64.h: Add default ABI.
564
565 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
566
567         * alias.c:: Include langhooks.h.
568         * emit-rtl.c: Similarly.
569         * toplev.c: Similarly.
570         * tree-inline.c: Similarly.
571         * langhooks-def.h: New, the old langhooks.h.  Give the default
572         hooks a common prefix.
573         * langhooks.h: Contents extracted from toplev.h.
574         * toplev.h: Move langhook stuff to langhooks.h.
575         * langhooks.c: Give default hooks a common prefix.
576
577         * c-lang.c: Include langhooks-def.h.
578         * objc/objc-act.c: Similarly.
579         * Makefile.in: Update.
580         * objc/Make-lang.in: Update.
581
582 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
583
584         * doc/install.texi: Document that configure options not listed in
585         this file are unsupported.  Document --with-system-zlib.
586
587 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
588
589         * rtl.h (mem_for_const_double): New declaration.
590         * varasm.c (mem_for_const_double): New function.
591         * config/convex/convex.md (movdf): Use it.
592         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
593         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
594         * config/m68k/m68kv4.h: Likewise.
595
596         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
597         of new GP reg classes.
598
599         * expr.c (store_field): When making temp object for unaligned
600         component, set it to alias set 0.
601
602 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
603
604         * c-common.c (c_expand_expr_stmt): Apply default conversions to
605         non-lvalue arrays if C99.
606         * c-typeck.c (default_conversion): Split out code handling
607         array-to-pointer and function-to-pointer conversions into a
608         separate default_function_array_conversion function.
609         (default_function_array_conversion): New function.  Keep track of
610         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
611         arrays unchanged outside C99 mode instead of giving an error for
612         them.
613         (build_component_ref): Use pedantic_non_lvalue when handling
614         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
615         (convert_arguments): Use default_function_array_conversion.
616         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
617         non-lvalues are OK.
618         (unary_complex_lvalue): Likewise.
619         (internal_build_compound_expr): Use
620         default_function_array_conversion.  Apply default conversions to
621         function in compound expression.
622         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
623         Use default_function_array_conversion.
624         * doc/extend.texi: Update documentation of subscripting non-lvalue
625         arrays.
626         Fixes PR c/461.
627
628 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
629
630         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
631         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
632         corresponding to the complete set of .po and .gmo files in
633         the source directory's po subdir, modified by LINGUAS.  Don't
634         look at ALL_LINGUAS.
635         * configure.in: Don't set ALL_LINGUAS.
636         * configure: Regenerate.
637
638         * Makefile.in (.po.gmo): Don't move into source directory.
639         (.po.pox): Clarify comments.
640         (install-po): Look for .gmo files in both srcdir and objdir;
641         don't fail if a file is totally missing.
642         (distclean): rmdir ada subdirectory too.
643
644 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
645
646         * config/rs6000/rs6000.c (rs6000_select_section): Handle
647         CONSTRUCTORs _correctly_.
648
649 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
650
651         * c-decl.c (delete_block): Remove.
652         * c-tree.h (delete_block): Remove.
653
654 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
655
656         * cppexp.c (lex, parse_defined): Update warning about defined.
657
658 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
659
660         * config/rs6000/rs6000.c (rs6000_select_section): Handle
661         CONSTRUCTORs too.
662
663 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
664
665         * config/arm/arm.c (arm_return_in_memory): Cope with
666         int_size_in_bytes returning -1.
667
668         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
669         DECL being NULL.
670
671 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
672
673         * Makefile.in (bb-reoder.o): Add depdendency on cfglayout.h;
674         remove unneded depdendencies;
675         (cfglayout.o): New.
676         * cfglayout.c, cfglayout.h: New files; break out from ...
677         * bb-reorder.c: ... here; Remove unneeded includes;
678
679 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
680
681         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
682
683 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
684
685         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
686         mode as well.  Do not explicitly create intermediate regs.
687
688 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
689
690         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
691         (common_section): Delete unused variable.
692         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
693         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
694         * arm-protos.h (arm_poke_function_name, aof_add_import,
695         aof_delete_import): Const-ify.
696         * arm.c (legitimize_pic_address): Wrap variables in the macro
697         controlling their usage.
698         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
699         (arm_poke_function_name, pic_chain, import, aof_add_import,
700         aof_delete_import): Const-ify.
701         * i386.c (ix86_osf_output_function_prologue): Const-ify.
702         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
703         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
704         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
705         * i860/sysv3.h: Add missing comment closure.
706         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
707         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
708         to symbolic_operand.
709
710         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
711         (i960-*-*): Set tmake_file.
712         (sparc86x-*-elf*): Fix typo in header name.
713
714         * sched-rgn.c (schedule_insns): Delete unused variable.
715
716 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
717
718         PR c/2820
719         * c-typeck.c (lookup_field): Rework to return a chain down to
720         the looked-up field.
721         (build_component_ref): Use the new lookup_field to handle
722         nested anonymous entities correctly.
723
724 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
725
726         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
727         Change parameters to gen_rtx_CONST_DOUBLE.
728         (GEN_INT64, sparc_emit_set_const64): Likewise.
729         * config/sparc/sparc.md (movdf split): Likewise.
730
731 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
732
733         * unroll.c (calculate_giv_inc): Use find_last_value rather
734         than just hoping the last instruction is the right SET.
735         [Fixes 990604-1.c on stormy16.]
736
737         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
738         library at all if -T is used.
739
740         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
741         some uses of uninitialized variables in error cases.
742
743         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
744         look at 'temp' if we won't be using it.
745
746         * config/stormy16/stormy16.h (CONST_COSTS): Define.
747         (RTX_COSTS): Define.
748         (ADDRESS_COST): Define.
749         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
750
751         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
752
753         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
754         stormy16_asm_output_mi_thunk.
755         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
756         function.
757         * config/stormy16/stormy16-protos.h
758         (stormy16_asm_output_mi_thunk): New prototype.
759
760 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
761
762         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
763         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
764         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
765         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
766         sched-int.h, toplev.c, config/alpha/alpha.c,
767         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
768         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
769         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
770         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
771         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
772         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
773         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
774
775 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
776
777         * Makefile.in (dbxout.o): Depend on function.h.
778         * collect2.c (is_in_list): Hide unused function.
779         * dbxout.c: Include function.h.
780         (source_label_number, dbxout_source_line, dbxout_source_file,
781         dbxout_function_end, dbxout_begin_function): Wrap/move inside
782         macros controlling usage.
783         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
784         * output.h (exports_section): Prototype.
785
786         * convex.c (convex_output_function_prologue): Fix format specifier
787         warning.
788         (asm_declare_function_name): Fix signed/unsigned warning.
789         (print_operand): Fix format specifier warning.
790         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
791         * dsp16xx-protos.h (uns_comparison_operator,
792         num_1600_core_shifts): Prototype.
793         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
794         (frame_size, frame_pointer_offset): Delete.
795         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
796         Make static.  Fix format specifier warnings.
797         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
798         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
799         * dsp16xx.md: Add default case in switches.
800         * fr30.h (IN_RANGE): Delete.
801         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
802         * mcore-protos.h (mcore_output_cmov): Const-ify.
803         * mcore.c (mcore_output_cmov): Likewise.
804         * mcore.h (switch_to_section): Make static and prototype.
805         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
806         unsigned>=0 warnings.
807         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
808         * rs6000-protos.h (read_only_data_section,
809         read_only_private_data_section): Prototype.
810         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
811         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
812         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
813
814 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
815
816         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
817         ATTRIBUTE_UNUSED.
818         * final.c (final_scan_insn): Add brackets around body of if-stmt.
819         * gcc.c (convert_filename): Add static prototype.  Const-ify.
820         Wrap variable in macros controlling its use.
821         * output.h (sdata_section): Add prototype.
822
823         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
824         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
825         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
826         (ASM_FILE_START): Const-ify.
827         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
828         specifier warning.
829         * c4x.md: Don't use the 'U' integer suffix.
830         * clipper.md (clipper_movstr): Delete declaration.
831         * d30v-protos.h (d30v_move_2words): Const-ify.
832         (debug_stack_info): Add prototype.
833         * d30v.c: Include "integrate.h".
834         (d30v_function_arg_boundary, d30v_function_arg,
835         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
836         signed/unsigned warnings.
837         (d30v_print_operand_memory_reference, d30v_move_2words):
838         Const-ify.
839         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
840         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
841         * fr30.md: Const-ify.
842         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
843         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
844         (mvs_get_label_page): Hide unused static function.
845         * i860.c (current_function_original_name): Const-ify.
846         * i860/sysv3.h (current_function_original_name): Likewise.
847         * i860/sysv4.h (current_function_original_name): Likewise.
848         * i960.md: Add default case in switches.  Remove unused variable.
849         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
850         * m32r.md: Const-ify.
851         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
852         * m68hc11.c: Include "reload.h".
853         (static_chain_reg, print_options, m68hc11_asm_file_start):
854         Const-ify.
855         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
856         around & in comparison.
857         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
858         * mn10200.c (shift_mode): Remove trailing comma.
859         * mn10300-protos.h (output_tst): Const-ify.
860         * mn10300.c (output_tst): Likewise.
861         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
862         warnings.
863         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
864         * pa.c (output_ascii): Likewise.
865         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
866         * pdp11.md (expand_unop): Delete declarations.
867         * pj-protos.h (pj_output_addsi3): Const-ify.
868         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
869         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
870         unique_src_operand): Add prototypes.
871         (pj_output_store_into_lval): Make definition static.
872         (pj_function_incoming_arg): Don't use unary plus.
873         (pj_output_addsi3): Const-ify.
874         * romp.md (get_symref): Delete declarations.
875         * v850-c.c (mark_current_function_as_interrupt): Don't return
876         value from void function.
877         * v850.c: Include "integrate.h".
878         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
879         * vax-protos.h (const_section): Add prototype.
880
881 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
882
883         * machmode.def: Add documentation for the seventh argument in
884         vector modes.
885
886 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
887
888         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
889         consistently.
890         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
891         <-melf>: Don't have markup for ELF acronym.
892
893 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
894
895         * config.gcc (mmix-*-*): New target.
896         * doc/invoke.texi: Document MMIX options.
897         * doc/contrib.texi: Add note about MMIX port to my entry.
898         * config/mmix/t-mmix: New file.
899         * config/mmix/mmix.h: New file.
900         * config/mmix/mmix-protos.h: New file.
901         * config/mmix/mmix.c: New file.
902         * config/mmix/mmix.md: New file.
903         * config/mmix/crti.asm: New file.
904         * config/mmix/crtn.asm: New file.
905
906 2001-11-03  Kazu Hirata  <kazu@hxi.com>
907
908         * config/sparc/linux-aout.h: Fix comment formatting.
909         * config/sparc/linux.h: Likewise.
910         * config/sparc/linux64.h: Likewise.
911         * config/sparc/lynx.h: Likewise.
912         * config/sparc/pbd.h: Likewise.
913         * config/sparc/sol2-sld-64.h: Likewise.
914         * config/sparc/sol2.h: Likewise.
915         * config/sparc/sparc.c: Likewise.
916         * config/sparc/sparc.h: Likewise.
917         * config/sparc/sparc.md: Likewise.
918         * config/sparc/sunos4.h: Likewise.
919         * config/sparc/vxsim.h: Likewise.
920         * config/sparc/vxsparc.h: Likewise.
921         * config/sparc/vxsparc64.h: Likewise.
922
923 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
924
925         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
926         reference to CONST_DOUBLE_MEM in comment.
927         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
928         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
929         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
930         * function.c (pop_function_context_from): Don't call
931         restore_varasm_status.
932         * function.h (restore_varasm_status): Delete declaration.
933         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
934         * rtl.c: Likewise.
935         * rtl.def (CONST_DOUBLE): Update comment.
936         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
937         (CONST_DOUBLE_CHAIN): Likewise.
938         (CONST_DOUBLE_MEM): Delete.
939         (gen_rtx_CONST_DOUBLE): Update parameters.
940         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
941         Remove reference to CONST_DOUBLE_MEM.
942         (const_alias_set): New variable.
943         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
944         (immed_real_const_1): Adjust tests for 0, 1, and 2.
945         Don't set CONST_DOUBLE_MEM.
946         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
947         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
948         Put constant in const_alias_set.
949         (struct pool_constant): ALIGN now unsigned.
950         OFFSET now HOST_WIDE_INT.
951         Delete LABEL.
952         (restore_varasm_status): Deleted.
953         (mark_pool_constant): Mark desc->rtl.
954         (force_const_mem): Rework to store rtl in hash table,
955         not CONST_DOUBLE_MEM.
956         Put constant in const_alias_set.
957         (find_pool_constant): Check desc->rtl.
958         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
959         (init_varasm_once): Initialize const_alias_set.
960
961         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
962         force_const_mem.
963
964         * reload.c (combine_reloads): Don't combine an output reload if there
965         are other reloads around for part of the output.
966
967         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
968         constant expression.
969         (set_mem_decl): New function.
970         * expr.h (set_mem_decl): New declaration.
971         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
972         (output_asm_operand_names): Add tab.
973         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
974
975         * builtins.c (get_memory_rtx): Properly set MEM alias set and
976         attributes.
977
978 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
979
980         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
981         Use "invalid" instead of "illegal".  Use @r in comments in
982         examples.
983
984 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
985
986         * c-decl.c (pushdecl): Move block inside if conditional to remove
987         possibility of a segfault.  Lookup block-level extern
988         variables in enclosing scopes correctly.
989
990         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
991
992 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
993
994         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
995         SUBREG so we avoid SUBREGing memory.
996
997         * expmed.c (store_bit_field): Same.
998
999 2001-11-02  DJ Delorie  <dj@redhat.com>
1000
1001         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
1002         using FP registers for DImode mem-mem moves is acceptable.
1003
1004 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
1005
1006         * builtins.c (apply_args_size): Handle vector arguments.
1007         (apply_result_size): Same.
1008
1009         * machmode.def: Set WIDER mode field for all vector entries.
1010
1011 2001-11-02  Graham Stott  <grahams@redhat.com>
1012
1013         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
1014
1015 2001-11-01  Eric Christopher  <echristo@redhat.com>
1016
1017         * config.gcc: Revert part of earlier patch.
1018         * config/mips/linux.h: Ditto.
1019         * df.c: Include tm_p.h to avoid warnings.
1020         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
1021         #if/#endif.
1022         * config/mips/mips.c: Define mips_abi regardless.
1023         (mips_output_function_prologues): Add long casts for .frame
1024         output.
1025         (override_options): Allow use of ABI_32.
1026
1027 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1028
1029         * config/m68hc11/m68hc11.c: Fix comment formatting.
1030         * config/m68hc11/m68hc11.h: Likewise.
1031         * config/m68hc11/m68hc11.md: Likewise.
1032
1033 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1034
1035         * c-typeck.c (default_conversion): Retain the original expression
1036         codes.
1037         * gcc.dg/Wparentheses.c: New tests.
1038
1039 2001-11-01  David S. Miller  <davem@redhat.com>
1040
1041         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
1042         64-bit Sparc description more in line with reality.
1043
1044 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
1045
1046         * Makefile.in (GCOV_OBJS): Add version.o.
1047         * gcov.c: Include "version.h" and <getopt.h>.
1048         (gcov_version_string): Remove.
1049         (print_usage): Take a parameter to determine whether this is a
1050         call from --help or an error message.  Give fuller output that
1051         follows the GNU Coding Standards for --help.
1052         (print_version): New function.
1053         (options): New.
1054         (process_args): Use getopt_long.  Support long options.  Follow
1055         GNU Coding Standards for --help and --version.
1056         * doc/gcov.texi: Document long options.
1057         Addresses part of PR other/704.
1058
1059 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1060
1061         * pa.c (output_move_double): Fix typo in double load.
1062
1063 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1064
1065         * config/h8300/h8300.c (h8300_encode_label): Compute a string
1066         before passing it to ggc_alloc_string.
1067
1068 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1069
1070         * config/m68k/3b1.h: Fix comment formatting.
1071         * config/m68k/3b1g.h: Likewise.
1072         * config/m68k/a-ux.h: Likewise.
1073         * config/m68k/amix.h: Likewise.
1074         * config/m68k/apollo68.h: Likewise.
1075         * config/m68k/atari.h: Likewise.
1076         * config/m68k/aux-exit.c: Likewise.
1077         * config/m68k/ccur-GAS.h: Likewise.
1078         * config/m68k/crds.h: Likewise.
1079         * config/m68k/dpx2.h: Likewise.
1080         * config/m68k/dpx2g.h: Likewise.
1081         * config/m68k/hp310.h: Likewise.
1082         * config/m68k/hp320.h: Likewise.
1083         * config/m68k/isi.h: Likewise.
1084         * config/m68k/linux.h: Likewise.
1085         * config/m68k/lynx.h: Likewise.
1086         * config/m68k/m68k-psos.h: Likewise.
1087         * config/m68k/m68k.c: Likewise.
1088         * config/m68k/m68k.h: Likewise.
1089         * config/m68k/m68k.md: Likewise.
1090         * config/m68k/m68kelf.h: Likewise.
1091         * config/m68k/m68kv4.h: Likewise.
1092         * config/m68k/mot3300.h: Likewise.
1093         * config/m68k/news.h: Likewise.
1094         * config/m68k/next.h: Likewise.
1095         * config/m68k/pbb.h: Likewise.
1096         * config/m68k/plexus.h: Likewise.
1097         * config/m68k/sgs.h: Likewise.
1098         * config/m68k/sun3.h: Likewise.
1099         * config/m68k/tower.h: Likewise.
1100         * config/m68k/vxm68k.h: Likewise.
1101
1102 2001-10-31  DJ Delorie  <dj@redhat.com>
1103
1104         * config/mips/mips.h (mips_cache_flush_func): Prototype.
1105         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
1106         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
1107         * config/mips/mips.c (mips_cache_flush_func): New.
1108         * doc/invoke.texi: Document the new options.
1109
1110 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
1111
1112         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
1113         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
1114
1115         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
1116
1117         * config/cris/cris.c: Include output.h after tree.h but before
1118         target.h.
1119
1120 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
1121
1122         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
1123         (INTL_SUBDIRS): Just intl.
1124         (.SUFFIXES): Add .gmo .po .pox.
1125         (native): Also depend on build-@POSUB@.
1126         (intl.all, intl.install): Depend on config.h and things it includes.
1127         (po-generated): New target; depend on c-parse.c and tradcif.c.
1128         (install-normal): Also depend on install-@POSUB@.
1129         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
1130         (build-, install-, build-po, update-po, install-po,
1131         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
1132
1133         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
1134         * configure.in: Don't munge XGETTEXT.  Don't generate
1135         po/Makefile.in.
1136         * configure: Regenerate.
1137
1138         * exgettext: Delete.
1139         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
1140         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
1141
1142 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1143
1144         * config/h8300/h8300.md (two anonymous patterns): New.
1145
1146 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
1147
1148         * tree.h (tree_index): Add support for V16QI and V8HI.
1149         (V8HI_type_node): New.
1150         (V16QI_type_node): New.
1151
1152         * tree.c (build_common_tree_nodes_2): Same.
1153
1154         * c-common.c (type_for_mode): Same.
1155
1156 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1157
1158         * config/i386/att.h: Fix comment formatting.
1159         * config/i386/beos-elf.h: Likewise.
1160         * config/i386/bsd.h: Likewise.
1161         * config/i386/bsd386.h: Likewise.
1162         * config/i386/crtdll.h: Likewise.
1163         * config/i386/cygwin.asm: Likewise.
1164         * config/i386/cygwin.h: Likewise.
1165         * config/i386/djgpp.h: Likewise.
1166         * config/i386/freebsd-aout.h: Likewise.
1167         * config/i386/freebsd.h: Likewise.
1168         * config/i386/gas.h: Likewise.
1169         * config/i386/i386-interix.h: Likewise.
1170         * config/i386/i386-protos.h: Likewise.
1171         * config/i386/i386.c: Likewise.
1172         * config/i386/i386.h: Likewise.
1173         * config/i386/i386.md: Likewise.
1174         * config/i386/i386elf.h: Likewise.
1175         * config/i386/interix.c: Likewise.
1176         * config/i386/isc.h: Likewise.
1177         * config/i386/isccoff.h: Likewise.
1178         * config/i386/iscdbx.h: Likewise.
1179         * config/i386/linux.h: Likewise.
1180         * config/i386/lynx.h: Likewise.
1181         * config/i386/mingw32.h: Likewise.
1182         * config/i386/netbsd-elf.h: Likewise.
1183         * config/i386/next.h: Likewise.
1184         * config/i386/osf1elf.h: Likewise.
1185         * config/i386/osfrose.h: Likewise.
1186         * config/i386/sco5.h: Likewise.
1187         * config/i386/seq-gas.h: Likewise.
1188         * config/i386/seq-sysv3.h: Likewise.
1189         * config/i386/sequent.h: Likewise.
1190         * config/i386/sol2.h: Likewise.
1191         * config/i386/sun386.h: Likewise.
1192         * config/i386/uwin.asm: Likewise.
1193         * config/i386/uwin.h: Likewise.
1194         * config/i386/vxi386.h: Likewise.
1195         * config/i386/win32.h: Likewise.
1196         * config/i386/winnt.c: Likewise.
1197         * config/i386/xm-cygwin.h: Likewise.
1198         * config/i386/xm-mingw32.h: Likewise.
1199
1200 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1201
1202         * builtins.def: Fix comment typos.
1203         * config/alpha.c: Likewise.
1204         * config/arm/arm.c: Likewise.
1205         * config/avr/avr.h: Likewise.
1206         * config/d30v/d30v.c: Likewise.
1207         * config/d30v/d30v.h: Likewise.
1208         * config/d30v/d30v.md: Likewise.
1209         * config/dsp16xx/dsp16xx.c: Likewise.
1210         * config/fr30/fr30.c: Likewise.
1211         * config/fr30/fr30.md: Likewise.
1212         * config/i386/i386.c: Likewise.
1213         * config/i860/i860.c: Likewise.
1214         * config/i960/i960.c: Likewise.
1215         * config/ia64/ia64.c: Likewise.
1216         * config/mips/mips.c: Likewise.
1217         * config/pa/pa.c: Likewise.
1218         * config/rs6000/rs6000.c: Likewise.
1219         * config/s390/s390.c: Likewise.
1220         * config/sparc/sparc.c: Likewise.
1221
1222 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1223
1224         * config/mips/elf.h: Fix comment formatting.
1225         * config/mips/elf64.h: Likewise.
1226         * config/mips/iris5.h: Likewise.
1227         * config/mips/iris5gas.h: Likewise.
1228         * config/mips/iris6.h: Likewise.
1229         * config/mips/isa3264.h: Likewise.
1230         * config/mips/linux.h: Likewise.
1231         * config/mips/mips.c: Likewise.
1232         * config/mips/mips.h: Likewise.
1233         * config/mips/mips.md: Likewise.
1234         * config/mips/mips16.S: Likewise.
1235         * config/mips/netbsd.h: Likewise.
1236         * config/mips/osfrose.h: Likewise.
1237         * config/mips/r3900.h: Likewise.
1238         * config/mips/sni-svr4.h: Likewise.
1239         * config/mips/svr4-t.h: Likewise.
1240         * config/mips/ultrix.h: Likewise.
1241
1242 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
1243
1244         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
1245         when we update head->current.
1246
1247 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
1248
1249         * tree.c (id_string_size): Remove.
1250         (dump_tree_statistics): Update.
1251         * toplev.c (compile_file): If dumping stats, dump tree stats too.
1252
1253 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
1254
1255         * sched-rgn.c (schedule_insns): Fix comment.
1256
1257 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
1258
1259         * configure.in: Correct previous change: don't assume that
1260         gas's version number _isn't_ the last thing on the line, or
1261         isn't the only number on the line, either.
1262         * configure: Regenerate.
1263
1264 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1265
1266         * cfgcleanup.c: Fix a comment typo.
1267
1268 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1269
1270         * alias.c: Fix comment formatting.
1271         * recog.c: Likewise.
1272         * config/cris/cris.c: Likewise.
1273         * config/cris/cris.h: Likewise.
1274         * config/i960/i960.c: Likewise.
1275         * config/i960/i960.h: Likewise.
1276
1277 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1278
1279         * config/arm/arm.c: Fix a comment typo.
1280         * config/arm/arm.h: Likewise.
1281         * config/ia64/ia64.c: Likewise.
1282
1283 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
1284
1285         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
1286         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
1287         * rtl.h (set_unique_reg_note): Change return value.
1288         * gcse.c (try_replace_reg): Use set_unique_reg_note.
1289         * cse.c (cse_insn): Likewise.
1290         * expr.c (emit_move_insn): Likewise.
1291         * explow.c (force_reg): Likewise.
1292         * local-alloc (update_equiv_regs): Likewise.
1293         * loop.c (move_moveables, load_mems): Likewise.
1294         * reload (find_reloads): Likewise.
1295
1296 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
1297
1298         Localization fixes.
1299         * c-decl.c (parmlist_tags_warning, start_struct,
1300         check_for_loop_decls): Separate messages for struct, union and
1301         enum cases to allow for languages in which they have different
1302         genders.
1303         * c-format.c (scanf_flag_specs): Separate short and long name of
1304         the assignment suppression feature.
1305         (check_format_types): Localize "pointer" and "different types"
1306         strings.
1307         * c-lex.c (lex_number): Localize "an unsigned long int" and
1308         related strings.
1309         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
1310         warning message.
1311         * c-typeck.c (build_unary_up): Separate messages for increment and
1312         decrement cases to allow for languages in which they use different
1313         articles.  Localize the strings "increment" and "decrement" in one
1314         case.
1315
1316 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
1317
1318         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
1319         when no changes has been made.
1320
1321         * gcse.c (reg_set_bitmap): Turn into reg_set.
1322         (modify_mem_list_set, canon_modify_mem_list_set)
1323         (clear_modify_mem_tables, free_modify_mem_tables): New.
1324         (gcse_main); Use free_modify_mem_tables.
1325         (free_gcse_mem): Likewise; free the bitmaps.
1326         (alloc_gcse_main): Initialize the bitmaps.
1327         (canon_list_insert): Set canon_modify_mem_list_set.
1328         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
1329         (compute_hash_table): Use clear_modify_mem_tables.
1330         (reset_opr_set_tables): Likewise.
1331         (oprs_not_set_p): reg_set_bitmap is regset.
1332         (mark_set, mark_clobber): Likewise.
1333
1334         * df.h (DF_EQUIV_NOTES): New constant.
1335         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
1336         when asked for.
1337
1338         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
1339         (init_regions, schedule_insns): Conditionalize the checking
1340         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
1341
1342 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
1343
1344         * i386.md (movti_rex64 splitter): Fix condition.
1345
1346 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
1347
1348         * configure.in: Do not assume that gas's version number is the
1349         last thing on the first line of as --version output.
1350         * configure: Regenerate.
1351
1352         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
1353         MT_WARNING, MT_ERROR, MT_FATAL.
1354         (main): Call gcc_init_libintl.
1355         (v_message): Call gettext on msgid and "warning: "
1356         * tradcif.y: Include intl.h.
1357         (yyerror): Make parameter definition consistent with
1358         prototype.  Call gettext on msgid argument.
1359
1360 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1361
1362         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
1363         warnings.
1364
1365         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
1366
1367 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1368
1369         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
1370         before referencing it.
1371
1372 2001-10-26  DJ Delorie  <dj@redhat.com>
1373
1374         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
1375         override -G, and force -G0.
1376
1377 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1378
1379         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
1380         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
1381         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
1382         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
1383
1384         * loop.h (struct induction): Rename ext_dependant to
1385         ext_dependent.
1386         * loop.c: Change all uses.
1387         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
1388         All callers changed.
1389         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
1390
1391 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1392
1393         * c-parse.in (expr_no_commas, primary), c-typeck.c
1394         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
1395
1396 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
1397
1398         Undo assemble_name change in earlier patch.
1399
1400 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
1401
1402         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
1403         determining the type of the receiver, do not check that TREE_CODE
1404         of receiver is CALL_EXPR before calling receiver_is_class_object().
1405         (receiver_is_class_object): For the GNU runtime: recognize
1406         the case that the receiver is self in a class method context.
1407         Check that TREE_CODE of receiver is CALL_EXPR when checking that
1408         the receiver is a call to objc_get_class.
1409
1410 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1411
1412         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
1413
1414 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1415
1416         * Makefile.in (OBJS): Put all files in alphabetical order.
1417
1418         * dwarf2out.c (add_const_value_attribute): Fix error in last
1419         change.
1420
1421 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
1422
1423         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
1424         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
1425         fix warning.
1426         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
1427         (life_analysis): call purge_all_dead_edges after deleting noops.
1428         (delete_noop_move): Do not purge CFG.
1429         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
1430
1431 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
1432
1433         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
1434         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
1435         (ASM_GLOBALIZE_LABEL): Use assemble_name.
1436         (ASM_OUTPUT_COMMON): Likewise.
1437         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
1438         (rs6000_output_function_epilogue): Likewise.
1439         (output_mi_thunk): Fix typo.
1440         (rs6000_output_symbol_ref): Use assemble_name.
1441         (output_toc): Likewise.
1442         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
1443         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
1444         assemble_name calls STRIP_NAME_ENCODING.
1445         (ASM_OUTPUT_LABEL): Use assemble_name.
1446         (ASM_GLOBALIZE_LABEL): Likewise.
1447         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1448         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
1449         (ASM_OUTPUT_LOCAL): Likewise.
1450
1451 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1452
1453         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
1454         (expand_builtin_apply, expand_builtin_return): Likewise.
1455         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
1456
1457 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
1458
1459         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
1460         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
1461         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
1462         configure, configure.in, except.c, except.h, flow.c, function.c,
1463         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
1464         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
1465         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
1466         unroll.c: Fix spelling errors.
1467
1468         * doc/extend.texi, doc/invoke.texi: Fix spelling.
1469
1470         * doc/gcc.texi: Document use of "dependent" and American spelling.
1471
1472 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
1473
1474         * expr.c (emit_group_load): Support CONCATs by storing them to memory
1475         and reloading.
1476
1477 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1478
1479         * expr.c (store_constructor_field): Only call adjust_address on MEM.
1480
1481 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
1482
1483         * genrecog.c (write_switch):  Output if before switch for
1484         DT_elt_zero_wide_safe.
1485
1486 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1487
1488         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
1489         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
1490         (FUNCTION_PROFILER): Const-ify.
1491         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
1492         (eliminate_constant_term, assemble_name, output_addr_const):
1493         Remove declarations.
1494         (ptr_half_pic_address_p, half_pic_hash): Prototype.
1495         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
1496         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
1497         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
1498         (half_pic_declare, half_pic_external): Const-ify.
1499         * toplev.c: Include "halfpic.h".
1500
1501 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
1502
1503         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
1504         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
1505         config/i386/i386.c, config/i386/i386-interix.h,
1506         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
1507         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
1508         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
1509         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
1510         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
1511         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
1512         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
1513         spelling errors.
1514
1515         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
1516         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
1517         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
1518         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
1519         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
1520         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
1521         system.h, toplev.c: Fix spelling errors.
1522
1523 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1524
1525         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
1526
1527         * dwarf2out.c (reg_number): Abort if pseudo.
1528         (reg_loc_descriptor): Return 0 if pseudo.
1529         (is_based_loc): Return 0 if pseudo.
1530         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
1531         recursive calls.
1532         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
1533         (loc_descriptor): Return 0 if can't find location and handle 0
1534         return from recursive calls.
1535         (loc_descriptor_from_tree): Likewise.
1536         Fix handling of indirect.
1537         Also return 0 for PLACEHOLDER_EXPR.
1538         Clean up COMPONENT_REF cases.
1539         (add_AT_location_descriptor): Simplify, but handle 0 return from
1540         loc_descriptor.
1541         (add_const_value_attribute): Avoid shift count warning.
1542         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
1543         Set comp_unit_die as context if not in function.
1544
1545         * config/mips/mips-protos.h: Break up long lines.
1546         Remove needless #ifdef/#endif blocks.
1547         Don't declare functions declared in file made by genpreds or recog.h.
1548         * config/mips/mips.c (mips_output_function_prologue): TSIZE
1549         is now HOST_WIDE_INT; delete unneeded casts.
1550         * config/mips/mips.h: Don't use #elif.
1551
1552         * expr.c (stor_constructor_field): Always call adjust_address.
1553         Copy TARGET before changing its alias set.
1554         (store_field): Likewise, for TO_RTX.
1555         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
1556         replacement.
1557         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
1558         (find_placeholder): Return 0 if can't find object.
1559         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
1560         returns 0.
1561
1562 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
1563
1564         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
1565
1566 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
1567
1568         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
1569         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
1570         (merge_blocks): Properly udpate life after making edge nonfallthru.
1571         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
1572
1573 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1574
1575         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1576
1577 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1578
1579         * c-typeck.c (convert_arguments): When comparing for enumeral
1580         type equality, use TYPE_MAIN_VARIANT.
1581         * gcc.dg/Wconversion.c: New tests.
1582
1583 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1584
1585         * s390/s390.c: Fix comment typos.
1586         * s390/s390.h: Likewise.
1587         * s390/s390.md: Likewise.
1588
1589 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1590
1591         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
1592         (walk_tree): Use it for tail calls where appropriate.
1593
1594 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1595
1596         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
1597         non-local label_refs.
1598
1599 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1600
1601         * config/h8300/h8300.md (4 anonymous patterns): New.
1602
1603 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1604
1605         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
1606         algorithm through the shift_info structure.
1607         (emit_a_shift): Update the use of get_shift_alg.
1608
1609 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
1610
1611         * sched-rgn.c: Remove bitset typedef.
1612         Change bitset to sbitmap in prototypes / variable types.
1613         Remove bbset_size.
1614         Remove edgeset_bits.
1615         Remove edgeset_size.
1616         s/BITSET_ADD/SET_BIT/g
1617         s/BITSET_INVERT/sbitmap_ones/g
1618         s/BITSET_INTER/sbitmap_a_and_b/g
1619         s/BITSET_UNION/sbitmap_a_or_b/g
1620         s/BITSET_DIFFER/sbitmap_difference/g
1621         s/bitset_member/TEST_BIT/g
1622         (BITSET_*): Removed.
1623         (bitset_member): Removed.
1624         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
1625         EXECUTE_IF_SET_IN_SBITMAP.
1626         (split_edges): Rewrite, use sbitmap functions instead of bitset
1627         operations.
1628         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
1629
1630 2001-10-26  Andreas Schwab  <schwab@suse.de>
1631
1632         * reload1.c (emit_input_reload_insns): Fix parens in last
1633         (undocumented) change that was supposed to change only whitespace.
1634
1635 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1636
1637         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
1638
1639         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
1640         ASM_OPERANDS.
1641
1642 2001-10-26  Andreas Jaeger  <aj@suse.de>
1643
1644         * flow.c (clear_log_links): Remove unused variable.
1645         * cfgcleanup.c (cleanup_cfg): Likewise.
1646
1647 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1648
1649         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
1650         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
1651
1652 2001-10-26  Richard Henderson  <rth@redhat.com>
1653
1654         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
1655         rename PV_REG to R27_REG.
1656         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
1657         (REG_CLASS_FROM_LETTER): Update.
1658         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
1659         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
1660         (udivsi3, modsi3, umodsi3): Likewise.
1661         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
1662
1663 2001-10-26  Richard Henderson  <rth@redhat.com>
1664
1665         * cfg.c (clear_aux_for_blocks): Split out of ...
1666         (free_aux_for_blocks): here.
1667         (clear_aux_for_edges): Split from ...
1668         (free_aux_for_edges): here.
1669         * basic-block.h: Declare them.
1670         * lcm.c (compute_antinout_edge): Use them.
1671         (compute_laterin, compute_available, compute_nearerout): Likewise.
1672         (optimize_mode_switching): Likewise.
1673
1674 2001-10-26  Richard Henderson  <rth@redhat.com>
1675
1676         * Makefile.in (unstage*): Remove as, ld, collect-ld before
1677         moving everything back to the main build directory.
1678
1679 2001-10-26  Christopher Faylor  <cgf@redhat.com>
1680
1681         * config/i386/cygwin.h: Search target specfic include directory, if
1682         appropriate.
1683
1684 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1685
1686         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
1687         of macro guards. Fix #endif comment.
1688
1689         * output.h (default_exception_section, default_eh_frame_section):
1690         Move prototypes outside of macro guard.
1691
1692         * crtstuff.c: Fix #endif comment.
1693
1694 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
1695
1696         * doc/md.texi (movMM): Clarify semantics of storing into a
1697         non-paradoxical SUBREG.
1698
1699 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
1700
1701         * langhooks.c (lang_hook_default_clear_binding_stack): New.
1702         (lang_hook_default_get_alias_set): Move next to other alias
1703         hooks.
1704         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
1705         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
1706         (LANG_HOOKS_INITIALIZER): Add it.
1707         * toplev.h (struct lang_hooks): Add clear_binding_stack.
1708         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
1709         instead of a loop calling poplevel.
1710
1711 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
1712
1713         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
1714         occurrences of #elif with #if...#endif.
1715
1716 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1717
1718         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
1719
1720 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1721
1722         * alias.c (can_address_p): No longer static.
1723         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
1724         Return 0 if all parameters are default values.
1725         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
1726         (adjust_address_1): Try harder to compute a size.
1727         * expr.c (expand_assignment, store_constructor): If can't address,
1728         set MEM_KEEP_ALIAS_SET_P.
1729         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
1730         (store_field): Likewise.
1731         (store_constructor): Simplify call to store_constructor_field.
1732         * expr.h (can_address_p): New declaration.
1733         * gensupport.c (gen_rtx_CONST_INT): New function.
1734         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
1735         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
1736         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
1737
1738         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
1739
1740 2001-10-24  Christopher Faylor  <cgf@redhat.com>
1741
1742         * config/i386/cygwin.h: Use proper path for mingw crt files when
1743         -mno-cygwin.
1744
1745 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1746
1747         * dwarf2out.c (file_info_cmp): Always return consistent results.
1748
1749 2001-10-24  Roger Sayle <roger@eyesopen.com>
1750
1751         * stmt.c (expand_end_case): Index jumptables from zero for
1752         suitably small values of minval.
1753
1754 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
1755
1756         * stor-layout.c (place_union_field): If any field was aligned with
1757         attribute aligned, set record type's TYPE_USER_ALIGN.
1758         (place_field): Likewise.
1759         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
1760         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
1761
1762 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
1763
1764         * c-common.h (struct c_common_identifier): Remove rid_code field.
1765         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
1766
1767         * c-typeck.c (constructor_designated): New local flag.
1768         (struct constructor_stack): Add "designated" field to match.
1769         (start_init): Clear it.
1770         (really_start_incremental_init, push_init_level): Push and
1771         clear it.
1772         (pop_init_level): Pop it.
1773         (set_designator): Set it.
1774
1775         (pop_init_level): Suppress "missing initializer" warnings if
1776         constructor_designated is true.
1777         (process_init_element): Suppress warning about union
1778         initialization under traditional C, if constructor_designated
1779         is true.
1780
1781 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1782
1783         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
1784         change.
1785
1786 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
1787
1788         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
1789
1790 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
1791
1792         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
1793         the node was already a set to a constant.
1794
1795 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1796
1797         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
1798         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
1799
1800 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1801
1802         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
1803         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
1804         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
1805         * s390.c (s390_final_chunkify): Don't use string concatenation.
1806         (s390_function_prologue, s390_function_epilogue): Const-ify.
1807         * s390.h (FUNCTION_PROFILER): Remove unused variable.
1808
1809 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
1810
1811         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
1812         prototypes.
1813
1814 2001-10-23  Stan Shebs  <shebs@apple.com>
1815
1816         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
1817         -traditional-cpp in first-stage compilation.
1818
1819 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1820
1821         * gensupport.c (target_flags): Add.
1822
1823 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
1824
1825         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
1826         if needed.
1827         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
1828         * except.c (expand_builtin_frob_return_addr): Likewise.
1829         (expand_builtin_eh_return): Likewise.
1830         * stmt.c (expand_computed_goto): Likewise.
1831         * explow.c (memory_address): Likewise.
1832         (allocate_dynamic_stack_space): Clean up predicate testing.
1833         (probe_stack_range): Convert SIZE to Pmode.
1834         * calls.c (rtx_for_function_call): Only call convert_memory_address
1835         if needed.
1836         Pass function call operand as ptr_mode, not Pmode.
1837         * expr.c (expand_assignment): Clean up calls to convert_memory
1838         address by only doing so when needed and making offsets Pmode.
1839         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
1840         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
1841         is in Pmode, not ptr_mode.
1842
1843 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1844
1845         * darwin-protos.h (constructor_section, destructor_section,
1846         mod_init_section, mod_term_section): Prototype.
1847         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
1848         Const-ify.
1849         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
1850         Likewise.
1851         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
1852         objc_section_init declaration.
1853         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
1854         (objc_section_init, try_section_alias): Make static.
1855         (alias_section): Make static and hide unused function.
1856         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
1857
1858 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1859
1860         * alias.c (can_address_p): Compnonents are not addressable if
1861         the containing type has alias set 0.
1862         (get_alias_set): Rework to use STRIP_NOPS.
1863         Only call front-end routine on object, type, or object with
1864         NOPs stripped, not inner values.
1865         Use language hook to call front-end routine.
1866         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
1867         (expand_builtin_apply): Call set_mem_align on MEMs we make.
1868         Don't pass alignment to emit_block_move.
1869         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
1870         (expand_builtin_memset): Likewise, but for clear_storage.
1871         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
1872         and remove C++ specific parts.
1873         * c-common.h (c_common_get_alias_set): Add declaration.
1874         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
1875         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
1876         (save_fixed_argument_area): Call set_mem_align.
1877         Remove alignment in call to emit_block_move.
1878         (emit_library_call_value_1, store_one_arg): Likewise.
1879         (target_for_arg): Remove; disabled long ago.
1880         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
1881         once and similar cleanups.
1882         (offset_address): Use proper introductory comment.
1883         * expr.c (emit_block_move): Use alignment from that of MEM args, not
1884         from explicit operand; all callers changed.
1885         (clear_storage): Likewise.
1886         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
1887         (store_field): Remove kludge on alias set used for to_rtx.
1888         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
1889         (expand_expr_unaligned): Call set_mem_attributes instead of
1890         set_mem_alias_set.
1891         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
1892         * function.c (assign_stack_temp_for_type): Set MEM alignment.
1893         (expand_function_end): Track MEM attributes of trampolines.
1894         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
1895         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
1896         attributes from original.
1897         * langhooks.c (lang_hook_default_get_alias_set): New function.
1898         (hook_get_alias_set_0): New function.
1899         * langhooks.h (hook_get_alias_set_0): New declaration.
1900         (lang_hook_default_get_alias_set): Likewise.
1901         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
1902         * reload1.c (alter_reg): Use adjust_address_nv.
1903         * rtl.c (get_mode_alignment): Moved to here.
1904         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
1905         change default if unknown from 1 to BITS_PER_UNIT.
1906         * stor-layout.c (get_mode_alignment): Remove from here.
1907         * toplev.h (struct lang_hoks): Add get_alias_set field.
1908         * tree.h (lang_get_alias_set): Delete declaration.
1909         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
1910         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
1911         (ix86_va_arg): Likewise.
1912         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
1913         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1914         * config/sparc/sparc.c (sparc_va_arg): Likewise.
1915         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
1916         (expand_block_move_mem): Remove dead code.
1917
1918 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1919
1920         * c-common.c (warn_div_by_zero): New.
1921         * c-common.h (warn_div_by_zero): New.
1922         * c-decl.c (c_decode_option): Take it on the command line.
1923         * c-typeck.c (build_binary_op): Warn about division by zero.
1924         * doc/invoke.texi: Document the new command line option, fix
1925         documentation of -Wmultichar.
1926         * testsuite/gcc.dg/divbyzero.c: New tests.
1927         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
1928
1929 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
1930
1931         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
1932
1933         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
1934         to avoid update_life_info call.
1935         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
1936         * cfgcleanup.c (bb_flags): New enum.
1937         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
1938         (notice_new_block, update_forwarder_flag): New functions.
1939         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
1940         (try_forward_edges): Likewise; update flags.
1941         (merge_blocks): Likewise.
1942         (outgoing_edges_match): Likewise.
1943         (try_crossjump_to_edge): Likewise.
1944         (try_optimize_cfg): Likewise; initialize and clear the flags;
1945         recompute life info if needed.
1946         (cleanup_cfg): No need to clear aux pointers.
1947
1948 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
1949
1950         * config/i386/i386.c (override_options): Default to minimum
1951         stack alignment when optimizing for code size.
1952         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
1953         change.
1954
1955         * config/i386/i386.c (override_options): Set upper limit of
1956         -mpreferred-stack-boundary to 12.
1957
1958 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
1959
1960         * recog.c (peephole2_optimize): Add default case to switch.
1961
1962 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1963
1964         * doc/gcc.texi (Sending Patches): Remove.
1965
1966 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
1967
1968         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
1969         fields when comparing.
1970
1971 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1972
1973         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
1974         * arm.c (HOST_INT, HOST_UINT): Likewise.
1975
1976 2001-10-22  Stan Shebs  <shebs@apple.com>
1977
1978         * config/darwin-protos.h (darwin_exception_section): Declare.
1979         (darwin_eh_frame_section): Declare.
1980
1981 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
1982
1983         * i386.md (movti_rex64): Fix mode.
1984
1985 2001-10-22  Stan Shebs  <shebs@apple.com>
1986
1987         * target.h (struct gcc_target): Add asm_out.exception_section,
1988         asm_out.eh_frame_section.
1989         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
1990         (TARGET_ASM_EH_FRAME_SECTION): New.
1991         (TARGET_INITIALIZER): Update.
1992         * output.h (default_exception_section): Declare.
1993         (default_eh_frame_section): Declare.
1994         * dwarf2out.c: Include target.h.
1995         (output_call_frame_info): Call target hook for eh frames.
1996         (default_eh_frame_section): New function.
1997         * except.c: Include target.h.
1998         (output_function_exception_table): Call target hook for exception
1999         section.
2000         * varasm.c (default_exception_section): Rename from
2001         exception_section, remove EXCEPTION_SECTION macro.
2002
2003         * config/darwin.h (darwin_eh_frame_section): New function.
2004         (EXCEPTION_SECTION): Remove.
2005         (TARGET_ASM_EXCEPTION_SECTION): Define.
2006         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
2007         (nextstep_exception_section): New function.
2008         (nextstep_eh_frame_section): New function.
2009         (TARGET_ASM_EXCEPTION_SECTION): Define.
2010         (TARGET_ASM_EH_FRAME_SECTION): Define.
2011
2012         * config/pa/som.h (EXCEPTION_SECTION): Remove.
2013         (TARGET_ASM_EXCEPTION_SECTION): Define.
2014         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
2015         (EXCEPTION_SECTION): Remove.
2016         (TARGET_ASM_EXCEPTION_SECTION): Define.
2017         * config/stormy16/stormy16.h: Remove comments referencing
2018         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
2019
2020         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
2021         TARGET_ASM_EH_FRAME_SECTION.
2022
2023 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
2024
2025         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
2026         terms.
2027
2028         * c-format.c: Fix spelling typo in comment.
2029
2030         * sched-int.h: Fix typo in GCC preamble.
2031
2032 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2033
2034         PR debug/4252
2035         * doc/invoke.texi: Remove references to -fdump-translation-unit.
2036
2037 2001-10-22  Richard Henderson  <rth@redhat.com>
2038
2039         * config/i386/i386.c (ix86_expand_clear): New.
2040         * config/i386/i386-protos.h: Declare it.
2041         * config/i386/i386.md (setcc peep2s): Use it.
2042         (movsi_xor): Unexport.
2043
2044 2001-10-22  Richard Henderson  <rth@redhat.com>
2045
2046         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
2047         free_EXPR_LIST_list for LOG_LINKS.
2048
2049 2001-10-21  Robert Lipe  <robertlipe@usa.net>
2050
2051         * config/i386/i386.c (sco_asm_named_section): Delete.
2052         (sco_asm_out_constructor): Delete.
2053         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
2054         (ASM_OUTPUT_DOUBLE_INT): Likewise.
2055         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
2056         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
2057         (EXCEPTION_SECTION): Delete EH scn renaming hack.
2058
2059 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2060
2061         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
2062         and/or fold extra calls into fewer ones.
2063         * collect2.c (dump_file): Likewise.
2064         * cppexp.c (parse_number): Likewise.
2065         * cpplex.c (_cpp_lex_direct): Likewise.
2066         * final.c (output_asm_insn, asm_fprintf): Likewise.
2067         * fix-header.c (inf_scan_ident, main): Likewise.
2068         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
2069         Likewise.
2070         * fold-const.c (real_hex_to_f): Likewise.
2071         * gen-protos.c (parse_fn_proto): Likewise.
2072         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
2073         * genrecog.c (change_state, write_action): Likewise.
2074         * gensupport.c (shift_output_template): Likewise.
2075         * local-alloc.c (requires_inout): Likewise.
2076         * mips-tfile.c (IS_ASM_IDENT): Likewise.
2077         * protoize.c (is_id_char, main): Likewise.
2078         * real.c (asctoeg): Likewise.
2079         * recog.c (asm_operand_ok): Likewise.
2080         * reload.c (find_reloads): Likewise.
2081         * scan.c (scan_identget_token): Likewise.
2082         * sched-vis.c (print_value): Likewise.
2083         * stringpool.c (ggc_alloc_string): Likewise.
2084         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
2085         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
2086         * tradcpp.c (rescan): Likewise.
2087         * tree.c (clean_symbol_name): Likewise.
2088         * varasm.c (decode_reg_name): Likewise.
2089
2090         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
2091         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
2092         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
2093         * m88k.c (output_ascii): Likewise.
2094         * m88k.h (OVERRIDE_OPTIONS): Likewise.
2095         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
2096         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
2097         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
2098
2099 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2100
2101         * langhooks.c (lang_hook_default_do_nothing,
2102         lang_hook_default_decode_option): New defaults.
2103         * langhooks.h: Make hooks unconditional and non-NULL.
2104         * toplev.c (compile_file, toplev_main): Update.
2105         * toplev.h: Update comments.
2106         * objc/objc-act.c (lang_hooks): Update to new paradigm.
2107
2108 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2109
2110         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
2111
2112         * system.h (IN_RANGE): New macro.
2113
2114 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
2115
2116         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
2117         INTLDEPS variable, which does not include $LIBICONV.
2118         * Makefile.in: Use INTLDEPS in LIBDEPS.
2119         * configure: Regenerate.
2120
2121 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2122
2123         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
2124         * cpplex.c (lex_percent, lex_dot): Remove.
2125         (get_effective_char, skip_block_comment, skip_line_comment,
2126         parse_identifier_slow, parse_number, parse_string, save_comment,
2127         _cpp_lex_direct): Update to do lookback freely.
2128         (IF_NEXT_IS, BACKUP): New macros.
2129         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
2130         * cppmacro.c (paste_tokens): Update.
2131
2132 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2133
2134         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
2135
2136 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
2137
2138         * reload1.c (reload): Check CONSTANT_P before calling
2139         LEGITIMATE_PIC_OPERAND_P.
2140         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
2141         workaround of 2001-10-13.
2142
2143 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
2144
2145         * i386.c (split_di): Handle splitting of DFmode.
2146
2147 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2148
2149         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
2150         (adjust_address_1, offset_address): Likewise.
2151
2152         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
2153         (output_asm_insn): Call it for each line output.
2154         Don't record an operand more than once.
2155
2156         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
2157         * main.c: Include config.h and system.h, but not ansidecl.h.
2158         * Makefile.in (main.o): Update accordingly.
2159
2160 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
2161
2162         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
2163
2164 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
2165
2166         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
2167         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
2168         Break out from ...
2169         (find_sub_basic_blocks): ... here;
2170         (find_many_sub_basic_blocks): New.
2171         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
2172
2173         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
2174
2175         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
2176
2177         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
2178
2179         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
2180         * flow.c (update_life_info): Measure time.
2181         * c-decl.c: Include timevar.h
2182         (c_expand_body): Measure time.
2183         * toplev.c (rest_of_compilation): Measure time of mode switching
2184         separately.
2185         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
2186
2187         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
2188         (lang_independent_options): Add asynchronous-unwind-tables
2189         (toplev_main): flag_asynchronous_unwind_tables implies
2190         flag_unwind_tables.
2191         * flags.h (flag_asynchronous_unwind_tables): Declare.
2192         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
2193         flag_asynchronous_unwind_tables.
2194         (output_call_frame_info): Likewise.
2195         * invoke.texi (-fasynchronous-unwind-tables): Document.
2196         * i386.c (optimization_options): Enable
2197         flag_asynchronous_unwind_tables.
2198
2199         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
2200         * i386.md (s* expanders): Destination is QImode.
2201
2202         * toplev.c (rest_of_compilation): Do not call clear_log_links.
2203         * rtl.h (clear_log_links): Kill.
2204         * flow.c (clear_log_links): Make static; accept blocks parameter;
2205         do no clear life info.
2206         (update_life_info): Call clear_log_links.
2207
2208         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
2209
2210 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2211
2212         * cpplex.c (handle_newline, skip_escaped_newlines,
2213         get_effective_char, skip_block_comment, skip_line_comment,
2214         parse_identifier_slow, parse_number, parse_string,
2215         _cpp_lex_direct): Update to do more stepping back.
2216         (trigraph_ok): Similarly.  Rename trigraph_p.
2217         (SAVE_STATE, RESTORE_STATE): Remove.
2218         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
2219
2220         * cpplib.c (destringize): Rename destringize_and_run, and
2221         call run_directive directly.
2222         (_cpp_do__Pragma): Simplify.
2223
2224 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2225
2226         * pe.c (arm_pe_unique_section): Const-ify.
2227         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2228         (switch_to_section): Add static prototype.
2229
2230         * output.h (drectve_section): Prototype.
2231
2232 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2233
2234         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
2235         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
2236         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
2237         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
2238         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
2239         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
2240         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
2241         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
2242         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
2243         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
2244         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
2245         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
2246         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
2247         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
2248         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
2249         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
2250         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
2251         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
2252         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
2253         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
2254         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
2255         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
2256         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
2257         cris-*-none, cris-*-linux*: Update ${tmfile} list.
2258         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
2259         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
2260         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
2261         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
2262         v850-*-*): Delete superflous ${cpu_type} setting.
2263         * config/linux.h: Delete svr4.h include.
2264         (SET_ASM_OP): Delete.
2265         * config/netware.h (INT_ASM_OP): Undef before define.
2266         * config/ptx4.h: Delete elfos.h include.
2267         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
2268         * config/svr4.h: Delete elfos.h include. Update commentary.
2269         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
2270         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
2271         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
2272         config/v850/v850.h: Delete svr4.h include.
2273         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
2274         config/m68k/m68kv4.h, config/m88k/sysv4.h,
2275         config/sparc/sysv4.h: Update includes.
2276         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
2277         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
2278         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
2279         config/m88k/dguxbcs.h: Delete includes.
2280         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
2281         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
2282         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
2283         it.
2284         * config/m88k/dgux.h: Delete include.
2285         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
2286         defining it.
2287         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
2288         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
2289         * config/sh/elf.h: Update include.
2290         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
2291         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
2292
2293 2001-10-19  Catherine Moore  <clm@redhat.com>
2294
2295         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
2296         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
2297         base and count fields.
2298         (stormy16_expand_builtin_va_start):  last_reg_count changed to
2299         size_of_reg_args.  Use count + size in first comparison.
2300
2301 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2302
2303         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
2304         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
2305         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
2306         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
2307         Set alignment from type if INDIRECT_REF.
2308         (adjust_address_1, offset_address): Simplify alignment compuitation.
2309         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
2310         here; done by set_mem_attributes.
2311
2312 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2313
2314         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
2315         * arm-protos.h (rdata_section, zero_init_section, common_section):
2316         Prototype.
2317         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
2318         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
2319         traditional mode stringification.
2320         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
2321         in macros controling its use.
2322         * rtlanal.c: Include tm_p.h.
2323         * varasm.c (asm_output_aligned_bss): Mark parameter with
2324         ATTRIBUTE_UNUSED.
2325         (assemble_constant_align, assemble_start_function, assemble_align,
2326         assemble_variable, assemble_trampoline_template,
2327         output_constant_def_contents): Wrap potentially empty if-stmt body
2328         in brackets.
2329
2330 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2331
2332         * a29k-protos.h (literal_section): Prototype.
2333         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
2334         * a29k.md: Ensure function pointers are prototyped.
2335         * genattrtab.c (write_eligible_delay): Mark parameter with
2336         ATTRIBUTE_UNUSED.
2337
2338 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2339
2340         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
2341         * 1750a.c (print_operand): Fix format specifier warning.
2342         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
2343         * 1750a.md: Likewise.
2344         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
2345         * genemit.c (output_add_clobbers): Mark parameter with
2346         ATTRIBUTE_UNUSED.
2347         * genrecog.c (write_subroutine): Likewise.
2348         * integrate.c (expand_inline_function): Delete unused variable.
2349         * varasm.c (remove_from_pending_weak_list): Wrap with
2350         ASM_WEAKEN_LABEL.
2351
2352 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2353
2354         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
2355         field is different to previous argument's neg field.
2356
2357         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
2358
2359 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2360
2361         * final.c (get_decl_from_op): New function.
2362         (output_asm_insn): Call it; write "*" when item with decl is address.
2363
2364 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
2365
2366         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
2367         about 64-bit support from the 3.0_branch version.
2368
2369 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
2370
2371         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
2372         USE_INCLUDED_LIBINTL when appropriate.
2373         * configure, config.in: Regenerate.
2374         * Makefile.in (datadir): Set to @datadir@.
2375         (intl.o): Also depend on $(CONFIG_H) and system.h.
2376
2377         * intl.c: Factor out common gettext initialization sequence.
2378         (gcc_init_libintl):  New function.
2379         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
2380         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
2381         off NLS.  Add multiple include guard.  No need to #ifdef-guard
2382         an #undef.  Prototype gcc_init_libintl here.
2383
2384         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
2385         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
2386         Use gcc_init_libintl.
2387
2388 2001-10-19  Catherine Moore  <clm@redhat.com>
2389
2390         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
2391
2392         * config/stormy16/stormy16.c (stormy16_split_move):  Make
2393         sure that REG_INC notes are present for auto_inc operands.
2394
2395 2001-10-19  Andreas Jaeger  <aj@suse.de>
2396
2397         * configure: Regenerated.
2398         * configure.in: Add x86_64 to switch statements.
2399
2400 2001-10-18  Richard Henderson  <rth@redhat.com>
2401
2402         * config/alpha/alpha.md (sibcall_osf_1): Load destination
2403         address into $27 explicitly.
2404         (sibcall_value_osf_1): Likewise.
2405
2406 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2407
2408         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
2409         (offset_address): New function.
2410         (free_emit_status): Free regno_decl.
2411         (init_emit): Pass proper number of elements to xcalloc.
2412         Allocate regno_decl.
2413         (mark_emit_status): Mark regno_decl values.
2414         * expr.c (highest_pow2_factor): New function.
2415         (expand_assigment): Use it and offset_address.
2416         Properly handle ptr_mode vs. Pmode in offset calculation.
2417         (store_constructor, expand_expr_unaligned): Likewise.
2418         (expand_expr, case COMPONENT_EXPR): Likewise.
2419         * expr.h (offset_address): New decl.
2420         * function.h (struct emit_status): Add regno_decl.
2421         (REGNO_DECL): New macro.
2422         * final.c (output_asm_name): Move in file and don't conditionalize
2423         on flag_print_asm_name.
2424         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
2425         Output names of operands, if known.
2426         * function.c (assign_parms): Set REGNO_DECL.
2427         * integrate.c (integrate_decl_tree): Likewise.
2428         * stmt.c (expand_decl): Likewise.
2429         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
2430
2431 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
2432
2433         * attribs.c (handle_noinline_attribute): New function.
2434         (handle_used_attribute): Likewise.
2435         (c_common_attribute_table): Added noinline and used.
2436         * doc/extend.texi (Function Attributes): Document them.
2437         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
2438         Warn when merging inline with attribute noinline.
2439         (start_decl, start_function): Warn if inline and attribute
2440         noinline appear in the same declaration.
2441
2442 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2443
2444         * config.gcc: Update c4x and i370 for C front end-specific
2445         dependencies.
2446         * config/c4x/c4x-c.c: New.
2447         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
2448         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
2449         New declarations.
2450         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
2451         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
2452         Make extern.
2453         (c4x_init_pragma): Remove.
2454         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
2455         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
2456         c4x_pr_ignored): Move to c4x-c.c.
2457         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
2458         * config/c4x/t-c4x: Update.
2459         * config/i370/i370-c.c: New.
2460         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
2461         (i370_pr_map): Move to i370-c.c.
2462         * config/i370/t-i370: New.
2463
2464         * doc/tm.texi: Update.
2465
2466 2001-10-17  Stan Shebs  <shebs@apple.com>
2467
2468         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
2469         typo fixes throughout.
2470         (machopic_output_stub): Remove some dead code.
2471
2472 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
2473
2474         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
2475         leak.
2476
2477 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2478
2479         * Makefile.in (print-rtl.o): Depend on TREE_H.
2480         * alias.c (get_alias_set): Make two passes over objects to first
2481         see if inner object is access via restricted pointer.
2482         Defer allocating alias set for restricted pointer until here.
2483         Call find_placeholder with second arg nonzero.
2484         Minor cleanups.
2485         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
2486         set for restricted pointer types.
2487         * emit-rtl.c (set_mem_attributes): Set more attributes.
2488         (set_mem_align, change_address, adjust_address_1): New functions.
2489         (change_address_1): Now static.
2490         (adjust_address, adjust_address_nv): Deleted.
2491         (replace_equiv_address): Call change_address_1.
2492         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
2493         (find_placeholder): Get starting point from PLIST arg.
2494         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
2495         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
2496         (adjust_address, adjust_address_nv): New macros.
2497         * print-rtl.c (tree.h): New include.
2498         (print_rtx, case MEM): Print all memory attributes.
2499
2500 2001-10-17  Richard Henderson  <rth@redhat.com>
2501
2502         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
2503
2504 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2505
2506         * c-tree.texi: Eliminate duplicated word.
2507         * cpp.texi: Likewise.
2508         * install.texi: Likewise.
2509         * invoke.texi: Likewise.
2510         * tm.texi: Likewise.
2511
2512 2001-10-17  Michael Collison  <collison@isisinc.net>
2513
2514         * dsp16xx.c: Fix comment formatting to match GNU standards.
2515         (dsp16xx_output_function_prologue): Change type of 'size'
2516         parameter from 'int' to HOST_WIDE_INT.
2517         (dsp16xx_output_function_epilogue): Change type of 'size'
2518         parameter from 'int' to HOST_WIDE_INT.
2519
2520 2001-10-16  Richard Henderson  <rth@redhat.com>
2521
2522         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
2523         * configure, config.in: Rebuild.
2524
2525         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
2526         (ix86_output_addr_diff_elt): New.
2527         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
2528         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2529         (JUMP_TABLES_IN_TEXT_SECTION): New.
2530         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
2531         * config/i386/i386-protos.h: Update.
2532
2533         * config/i386/386bsd.h, config/i386/beos-elf.h,
2534         config/i386/freebsd-aout.h, config/i386/freebsd.h,
2535         config/i386/i386-interix.h, config/i386/i386elf.h,
2536         config/i386/linux.h, config/i386/netbsd-elf.h,
2537         config/i386/netbsd.h, config/i386/openbsd.h,
2538         config/i386/ptx4-i.h, config/i386/rtemself.h,
2539         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
2540         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
2541
2542 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
2543
2544         * stmt.c (expand_asm_operands): Update commentary.
2545
2546 2001-10-16  Stan Shebs  <shebs@apple.com>
2547
2548         * config/darwin.h (GCC_NAME): Remove, no longer used.
2549         (NO_MATH_LIBRARY): Ditto.
2550         (MATH_LIBRARY): Define to emptiness.
2551         (DWARF2_DEBUGGING_INFO): Define.
2552         (PREFERRED_DEBUGGING_TYPE): Define.
2553         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
2554         (EXCEPTION_SECTION): Define.
2555         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2556         * config/darwin.c (darwin_encode_section_info): Handle case of
2557         DECL_INITIAL being error_mark_node.
2558
2559 2001-10-16  Richard Henderson  <rth@redhat.com>
2560
2561         * alpha.c (current_file_function_operand): Don't fail for profiling.
2562         (direct_call_operand): New.
2563         * alpha-protos.h: Declare it.
2564         * alpha.h (EXTRA_CONSTRAINT): Use it.
2565         (PREDICATE_CODES): Add it.
2566         (ASM_OUTPUT_MI_THUNK): Remove.
2567         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
2568         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
2569
2570 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
2571
2572         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
2573         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2574
2575 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
2576
2577         * cfg.c (free_edge): Break out from ....
2578         (remove_edge): ... here.
2579         (clear_edges): Use free_edge.
2580
2581         * att.h (ASM_QUAD): Add comment.
2582         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
2583
2584 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
2585
2586         * i386.c (split_ti): New function.
2587         (ix86_split_to_parts): Support TImodes.
2588         * i386.h (VALID_INT_MODE_P): Add TImode.
2589         * i386.md (movdi splitter): Fix.
2590         (movti): Support 64bit integer registers.
2591         (movti_rex64): New function and splitter.
2592
2593         * i386.c (*_cost): Add movsx/movzx cost.
2594         * i386.h (struct processor_costs): Add movsx/movzx fields.
2595         (RTX_COSTS): Handle zero/sign extend + avoid believing that
2596         64bit operations require split on 64bit machine.
2597         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
2598
2599         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
2600         (ix86_expand_move): Avoid pushes of memory if size does not match;
2601         move long constants to register.
2602         (x86_initialize_trampoline): Fix mode.
2603         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
2604         Use ASM_QUAD on 64bit.
2605         * i386.md (test pattern): Disallow impossible constants.
2606         (tablejump PIC expander): Fix emitting of sum.
2607         (movdicc_rex64): Rename to movdicc.
2608         * linux64.h (LINK_SPEC): Add missing '%'.
2609
2610 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
2611
2612         * tree-inline.c (inlinable_function_p): Leave it up to the
2613         front-end to turn -finline-functions into DECL_INLINE set for all
2614         functions.
2615
2616 2001-10-16  Stan Shebs  <shebs@apple.com>
2617
2618         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
2619
2620 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
2621
2622         * recog.c: Formatting and comment typo fixes.
2623
2624         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
2625         version in single tree build.
2626         * configure: Regenerate.
2627
2628 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
2629
2630         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
2631         MODE arguments to gen_rtx and compare operand with const0_rtx.
2632
2633 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2634
2635         * system.h: Poison old unused target macros.
2636         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
2637         * config/stormy16/stormy16.c: Update references to obsolete macros.
2638         * config/stormy16/stormy16.h: Similarly.
2639         * config/stormy16/stormy16.md: Similarly.
2640         * config/cris/cris.h: Similarly.
2641
2642 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2643
2644         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
2645         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
2646         cpp_register_pragma): Update accordingly.
2647
2648 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2649
2650         * c-pragma.h (cpp_register_pragma_space): Remove.
2651         * cpplib.h (cpp_register_pragma_space): Remove.
2652         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
2653         (cpp_register_pragma_space): Remove.
2654         (cpp_register_pragma): Simplify using lookup_pragma_entry,
2655         add sanity checks.
2656         (do_pragma): Similarly.
2657         (_cpp_init_internal_pragmas): Don't register namespaces.
2658
2659         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
2660         Don't register namespaces.
2661         * cp/lex.c (init_cp_pragma): Similarly.
2662         * doc/tm.texi: Update.
2663
2664 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2665
2666         PR c/4157
2667         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
2668
2669 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
2670
2671         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
2672         add scheduling support.
2673         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
2674         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
2675         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
2676
2677
2678 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
2679
2680         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
2681         missing CONSTANT_P test in core GCC.
2682
2683 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
2684
2685         * cppmain.c (struct printer): New member source.
2686         (scan_translation_unit): Fix spacing at start of lines.
2687         (cb_line_change): Update.
2688
2689         * gcc.dg/cpp/spacing2.c: New test.
2690
2691 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
2692
2693         * config/cris/arit.c: Use __builtin_labs, not abs.
2694
2695         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
2696
2697         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
2698         misplaced sprintf and fprintf argument.
2699
2700 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
2701
2702         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
2703         * configure.in, Makefile.in: Take out obsolete check-po logic.
2704         * configure, config.in: Regenerate.
2705
2706 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
2707
2708         * objc/objc-act.c (finish_objc): Correct precondition for emitting
2709         symtab declarations.
2710
2711 2001-10-12  Stan Shebs  <shebs@apple.com>
2712
2713         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
2714         declarations of arguments and local variables.
2715
2716 2001-10-12  Christopher Faylor  <cgf@redhat.com>
2717
2718         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
2719         ENDFILE_SPEC definition.
2720
2721 2001-10-12  Kazu Hirata  <kazu@hxi.com>
2722
2723         * gthr-dce.h: Fix comment formatting.
2724         * gthr-posix.h: Likewise.
2725         * gthr-single.h: Likewise.
2726         * gthr-solaris.h: Likewise.
2727         * gthr-vxworks.h: Likewise.
2728         * gthr-win32.h: Likewise.
2729
2730 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
2731
2732         * final.c (output_asm_insn): Make sure assembly dialects are
2733         terminated, not nested.  Output `|' and `}' characters if they
2734         don't appear inside assembly dialect selection.
2735         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
2736         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
2737         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
2738         strsetsi_rex_1): Add {} braces.
2739
2740 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
2741
2742         * toplev.c (compile_file): Ignore return value from yyparse.
2743         Always pop any nested binding levels after yyparse returns.
2744
2745 2001-10-11  Richard Henderson  <rth@redhat.com>
2746
2747         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
2748
2749 2001-10-11  Richard Henderson  <rth@redhat.com>
2750
2751         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
2752         fall back to add_AT_long_long for large CONST_INT.
2753
2754 2001-10-11  Richard Henderson  <rth@redhat.com>
2755
2756         * config/i386/i386.md (setcc splitters): Add four splitters to
2757         simplify compound compares that simplify_comparison can't handle.
2758
2759 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
2760
2761         * cpplex.c (digraph_spellings, token_spellings): Make static.
2762
2763 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2764
2765         * unroll.c (loop_iterations): Fixup last patch.
2766
2767 2001-10-11  Richard Henderson  <rth@redhat.com>
2768
2769         * rtl.h (REG_VTABLE_REF): New.
2770         * rtl.c (reg_note_name): Add it.
2771         * combine.c (distribute_notes): Handle it.
2772         * final.c (final_scan_insn): Handle it.
2773         * tree.def (VTABLE_REF): New.
2774         * expr.c (expand_expr): Handle it.
2775         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
2776         * output.h: Declare them.
2777
2778 2001-10-11  Richard Henderson  <rth@redhat.com>
2779
2780         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
2781         for a DECL_INITIAL.
2782
2783 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
2784
2785         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
2786         available in 64-bit mode.
2787
2788 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
2789
2790         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
2791         cris-*-linux* cases.
2792         * config/cris/cris-protos.h: New file.
2793         * config/cris/cris.c: New file.
2794         * config/cris/cris.h: New file.
2795         * config/cris/cris.md: New file.
2796         * config/cris/linux.h: New file.
2797         * config/cris/aout.h: New file.
2798         * config/cris/arit.c: New file.
2799         * config/cris/cris_abi_symbol.c: New file.
2800         * config/cris/mulsi3.asm: New file.
2801         * config/cris/t-aout: New file.
2802         * config/cris/t-cris: New file.
2803         * config/cris/t-elfmulti: New file.
2804         * config/cris/t-linux: New file.
2805         * doc/invoke.texi: Add CRIS options.
2806         * doc/install.texi (Specific): Add blurb for CRIS.
2807
2808 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
2809
2810         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
2811         before using it.
2812         * config/float/i32.h: Likewise.
2813         * config/float-i386.h: Likewise.
2814         * config/float-i64.h: Likewise.
2815         * config/float-m68k.h: Likewise.
2816         * config/float-sh.h: Likewise.
2817         * config/float-sparc.h: Likewise.
2818
2819 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
2820
2821         * doc/contrib.texi: Add note about CRIS port to my entry.
2822
2823 2001-10-11  Kazu Hirata  <kazu@hxi.com>
2824
2825         * basic-block.h: Fix formatting.
2826         * bitmap.h: Likewise.
2827         * cpplib.h: Likewise.
2828         * c-tree.h: Likewise.
2829         * diagnostic.h: Likewise.
2830         * flags.h: Likewise.
2831         * ggc.h: Likewise.
2832         * longlong.h: Likewise.
2833         * real.h: Likewise.
2834         * reload.h: Likewise.
2835         * rtl.h: Likewise.
2836         * tree.h: Likewise.
2837
2838 2001-10-10  Richard Henderson  <rth@redhat.com>
2839
2840         * c-parse.in (asm_operand): Allow named operands.
2841         * genconfig.c (max_recog_operands): Set to 29.
2842         * local-alloc.c (requires_inout): Skip multiple digits.
2843         * recog.c (asm_operand_ok): Likewise.
2844         (preprocess_constraints): Use strtoul for matching constraints.
2845         (constrain_operands): Likewise.
2846         * regmove.c (find_matches): Likewise.
2847         * reload.c (find_reloads): Likewise.
2848         * stmt.c (parse_output_constraint): Don't reject in-out
2849         constraint on operands > 9.  Reject '[' in constraint.
2850         (expand_asm_operands): Handle named operands.  Use strtoul
2851         for matching constraints.
2852         (check_operand_nalternatives): Split out from expand_asm_operands.
2853         (check_unique_operand_names): New.
2854         (resolve_operand_names, resolve_operand_name_1): New.
2855
2856         * doc/extend.texi (Extended Asm): Document named operands.
2857         * doc/md.texi (Simple Constraints): Document matching constraints
2858         on operands > 9.
2859
2860 2001-10-10  Richard Henderson  <rth@redhat.com>
2861
2862         * combine.c (try_combine): Handle a SEQUENCE of one insn.
2863
2864         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
2865         (jcc splitters): Add two splitters to simplify compound compares
2866         that simplify_comparison can't handle.
2867
2868 2001-10-10  Richard Henderson  <rth@redhat.com>
2869
2870         * langhooks.c: Include langhooks.h.
2871         * Makefile.in (langhooks.o): Depend on it.
2872
2873 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
2874
2875         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
2876         should not be considered as a no-op.
2877         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
2878
2879 2001-10-10  Stan Shebs  <shebs@apple.com>
2880
2881         * alias.c: Remove uses of "register" specifier in declarations
2882         of arguments and local variables.
2883         * c-common.c: Ditto.
2884         * c-convert.c: Ditto.
2885         * c-decl.c: Ditto.
2886         * c-format.c: Ditto.
2887         * c-semantics.c: Ditto.
2888         * c-typeck.c: Ditto.
2889         * caller-save.c: Ditto.
2890         * calls.c: Ditto.
2891         * cfg.c: Ditto.
2892         * cfgbuild.c: Ditto.
2893         * cfgrtl.c: Ditto.
2894         * collect2.c: Ditto.
2895         * combine.c: Ditto.
2896         * convert.c: Ditto.
2897         * cppexp.c: Ditto.
2898         * cppfiles.c: Ditto.
2899         * cse.c: Ditto.
2900         * dbxout.c: Ditto.
2901         * defaults.h: Ditto.
2902         * df.c: Ditto.
2903         * dwarf2out.c: Ditto.
2904         * dwarfout.c: Ditto.
2905         * emit-rtl.c: Ditto.
2906         * explow.c: Ditto.
2907         * expmed.c: Ditto.
2908         * expr.c: Ditto.
2909         * final.c: Ditto.
2910         * fix-header.c: Ditto.
2911         * floatlib.c: Ditto.
2912         * flow.c: Ditto.
2913         * fold-const.c: Ditto.
2914         * function.c: Ditto.
2915         * gcc.c: Ditto.
2916         * gcse.c: Ditto.
2917         * gen-protos.c: Ditto.
2918         * genattrtab.c: Ditto.
2919         * gencheck.c: Ditto.
2920         * genconfig.c: Ditto.
2921         * genemit.c: Ditto.
2922         * genextract.c: Ditto.
2923         * genflags.c: Ditto.
2924         * gengenrtl.c: Ditto.
2925         * genoutput.c: Ditto.
2926         * genpeep.c: Ditto.
2927         * genrecog.c: Ditto.
2928         * gensupport.c: Ditto.
2929         * global.c: Ditto.
2930         * gmon.c: Ditto.
2931         * graph.c: Ditto.
2932         * haifa-sched.c: Ditto.
2933         * hard-reg-set.h: Ditto.
2934         * hash.c: Ditto.
2935         * integrate.c: Ditto.
2936         * jump.c: Ditto.
2937         * lists.c: Ditto.
2938         * local-alloc.c: Ditto.
2939         * loop.c: Ditto.
2940         * mips-tdump.c: Ditto.
2941         * mips-tfile.c: Ditto.
2942         * optabs.c: Ditto.
2943         * prefix.c: Ditto.
2944         * print-rtl.c: Ditto.
2945         * read-rtl.c: Ditto.
2946         * real.c: Ditto.
2947         * recog.c: Ditto.
2948         * reg-stack.c: Ditto.
2949         * regclass.c: Ditto.
2950         * regmove.c: Ditto.
2951         * reload.c: Ditto.
2952         * reload1.c: Ditto.
2953         * reorg.c: Ditto.
2954         * resource.c: Ditto.
2955         * rtl.c: Ditto.
2956         * rtlanal.c: Ditto.
2957         * scan.c: Ditto.
2958         * sched-deps.c: Ditto.
2959         * sched-rgn.c: Ditto.
2960         * sdbout.c: Ditto.
2961         * simplify-rtx.c: Ditto.
2962         * stmt.c: Ditto.
2963         * stor-layout.c: Ditto.
2964         * toplev.c: Ditto.
2965         * tradcif.y: Ditto.
2966         * tradcpp.c: Ditto.
2967         * tree.c: Ditto.
2968         * unroll.c: Ditto.
2969         * varasm.c: Ditto.
2970         * xcoffout.c: Ditto.
2971
2972 2001-10-10  Richard Henderson  <rth@redhat.com>
2973
2974         * rtl.h (can_reverse_comparison_p): Remove.
2975
2976 2001-10-10  Christopher Faylor <cgf@redhat.com>
2977
2978         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
2979         used.
2980
2981 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2982
2983         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
2984         (Thanks to Chris Faylor for suggesting macro name).
2985         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
2986         WIN32 defines.
2987         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
2988         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
2989         (MATH_LIBRARY): Undef before definition.
2990         (OUTPUT_QUOTED_STRING): Likewise.
2991         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
2992
2993 2001-10-10  Richard Henderson  <rth@redhat.com>
2994
2995         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
2996         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
2997         a tristate comparison value.
2998         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
2999
3000 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3001
3002         PR c++/4512
3003         * unroll.c (loop_iterations): Ignore insns generated by loop
3004         unrolling.
3005
3006         * config.gcc (mips*-*-gnu*): Delete support.
3007         * config/mips/gnu.h: Remove.
3008
3009 2001-10-10  Kazu Hirata  <kazu@hxi.com>
3010
3011         * calls.c: Fix formatting.
3012         * c-decl.c: Likewise.
3013         * cfgcleanup.c: Likewise.
3014         * combine.c: Likewise.
3015         * cppfiles.c: Likewise.
3016         * cpplib.c: Likewise.
3017         * cppmacro.c: Likewise.
3018         * crtstuff.c: Likewise.
3019         * cse.c: Likewise.
3020         * dwarf2out.c: Likewise.
3021         * expmed.c: Likewise.
3022         * expr.c: Likewise.
3023         * fold-const.c: Likewise.
3024         * function.c: Likewise.
3025         * gcse.c: Likewise.
3026         * genattrtab.c: Likewise.
3027         * ggc-page.c: Likewise.
3028         * integrate.c: Likewise.
3029         * libgcc2.c: Likewise.
3030         * loop.c: Likewise.
3031         * optabs.c: Likewise.
3032         * profile.c: Likewise.
3033         * protoize.c: Likewise.
3034         * real.c: Likewise.
3035         * recog.c: Likewise.
3036         * reload1.c: Likewise.
3037         * reload.c: Likewise.
3038         * reorg.c: Likewise.
3039         * resource.c: Likewise.
3040         * sched-rgn.c: Likewise.
3041         * sdbout.c: Likewise.
3042         * stmt.c: Likewise.
3043         * toplev.c: Likewise.
3044         * varasm.c: Likewise.
3045
3046 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
3047
3048         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
3049         * Makefile.in (langhooks.o): Add dependencies.
3050
3051 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
3052
3053         * rs6000.c (rs6000_emit_load_toc_table): Don't
3054         strdup the toc label.
3055         (create_TOC_reference): Likewise.
3056
3057 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3058
3059         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
3060         version default.
3061
3062 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3063
3064         * config/i386/i386.c (ix86_attribute_table): Correct
3065         min_len, max_len fields for dllimport, dllexport and shared.
3066
3067 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
3068
3069         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
3070         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
3071         Consistently use "nonzero" instead of "non-zero".
3072
3073 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3074
3075         * acconfig.h: Fix comment formatting.
3076         * c-dump.h: Likewise.
3077         * c-tree.h: Likewise.
3078         * conditions.h: Likewise.
3079         * expr.h: Likewise.
3080         * function.h: Likewise.
3081         * gthr.h: Likewise.
3082         * hwint.h: Likewise.
3083         * integrate.h: Likewise.
3084         * intl.h: Likewise.
3085         * loop.h: Likewise.
3086         * optabs.h: Likewise.
3087
3088 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3089
3090         * c-common.h: Fix comment formatting.
3091         * c-dump.c: Likewise.
3092         * cfg.c: Likewise.
3093         * diagnostic.h: Likewise.
3094         * except.c: Likewise.
3095         * gcc.h: Likewise.
3096         * gcov-io.h: Likewise.
3097         * genattrtab.c: Likewise.
3098         * output.h: Likewise.
3099         * predict.h: Likewise.
3100         * reload1.c: Likewise.
3101         * reload.h: Likewise.
3102         * resource.h: Likewise.
3103         * scan.h: Likewise.
3104         * system.h: Likewise.
3105         * tree.h: Likewise.
3106         * tree-inline.c: Likewise.
3107         * tsystem.h: Likewise.
3108         * varasm.c: Likewise.
3109         * xcoffout.h: Likewise.
3110
3111 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3112
3113         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
3114
3115 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3116
3117         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
3118         config/i386/i386elf.h, config/i386/netbsd-elf.h,
3119         config/i386/netware.h, config/mcore/gfloat.h,
3120         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
3121         config/netware.h, gccbug.in: Update FSF address.
3122
3123 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3124
3125         * c-common.c: Fix comment typos.
3126         * cfgrtl.c: Likewise.
3127         * collect2.c: Likewise.
3128         * cpplex.c: Likewise.
3129         * doloop.c: Likewise.
3130         * dwarf2out.c: Likewise.
3131         * dwarfout.c: Likewise.
3132         * expr.c: Likewise.
3133         * fold-const.c: Likewise.
3134         * gcc.c: Likewise.
3135         * gcov.c: Likewise.
3136         * gcse.c: Likewise.
3137         * global.c: Likewise.
3138         * ifcvt.c: Likewise.
3139         * loop.c: Likewise.
3140         * optabs.c: Likewise.
3141         * protoize.c: Likewise.
3142         * regclass.c: Likewise.
3143         * reorg.c: Likewise.
3144         * rtl.h: Likewise.
3145         * stmt.c: Likewise.
3146         * tree.h: Likewise.
3147         * doc/cpp.texi: Likewise.
3148         * doc/c-tree.texi: Likewise.
3149         * doc/extend.texi: Likewise.
3150         * doc/invoke.texi: Likewise.
3151         * doc/objc.texi: Likewise.
3152         * doc/tm.texi: Likewise.
3153
3154 2001-10-08  Richard Henderson  <rth@redhat.com>
3155
3156         * varasm.c (set_named_section_flags): Initialize "declared".
3157
3158 2001-10-08  Robert Lipe  <robertlipe@usa.net>
3159
3160         * varasm.c (struct in_named_entry): Add declared.
3161         (named_section_first_declaration): New function.
3162         (default_elf_asm_named_section): Use it.
3163         * output.h (named_section_first_declaration): New.
3164
3165 2001-10-08  Richard Henderson  <rth@redhat.com>
3166
3167         * i386.md (movsi_xor): Export.
3168         (setcc peep2): Use it when available; add an alternative to
3169         match zero_extendhisi2_and.
3170
3171 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3172
3173         * romp-protos.h (romp_initialize_trampoline): New function.
3174         * romp.c (romp_initialize_trampoline): Likewise.
3175         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
3176         romp_initialize_trampoline.
3177
3178 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3179
3180         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
3181         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3182         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3183         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3184
3185 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3186
3187         * unroll.c (loop_iterations): Extend check for multiple back edges.
3188
3189 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
3190
3191         * langhooks.h: New file.
3192         * Makefile.in (OBJS): Added langhooks.o.
3193         (c-lang.o): Depend on langhooks.h.
3194         (c-common.o): Don't depend on tree-inline.h.
3195         (tree-inline.o): Depend on toplev.h.
3196         (langhooks.o): New rule.
3197         * c-common.c: Don't include tree-inline.h.
3198         (c_mark_lang_decl): Mark argument c as unused.
3199         (c_common_lang_init): Don't initialize hooks here.
3200         * c-lang.c: Include langhooks.h, then override some macros.
3201         (lang_hooks): Initialize with macros in langhooks.h.
3202         (c_init): Don't initialize hooks here.
3203         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
3204         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
3205         * tree-inline.c: Include toplev.h.  Don't define hook variables.
3206         * tree-inline.h: Don't define hook types nor declare hook
3207         variables.  Move macros to...
3208         * langhooks.c: ... new file, as functions.  Adjust all callers.
3209
3210 2001-10-08  Jeffrey A Law  <law@cygnus.com>
3211
3212         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
3213         purge_mem_unchanging_flag on all instructions, not just on those
3214         before NOTE_INSN_FUNCTION_BEG.
3215
3216 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3217
3218         * cppmacro.c (_cpp_create_definition): Leave comments off.
3219
3220         * doc/cpp.texi: Update.
3221
3222 2001-10-08  DJ Delorie  <dj@redhat.com>
3223
3224         * c-decl.c (grokfield): Make sure the only unnamed fields
3225         we're allowing are either structs or unions.
3226         * doc/extend.texi: Add documentation for the unnamed field
3227         extension.
3228
3229 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
3230
3231         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
3232         * configure.in: Use it.
3233         * configure: Regenerated.
3234         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
3235         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
3236
3237 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3238
3239         * cppfiles.c (open_file): Don't mark zero-length files
3240         never-reread here.  Don't output diagnostics here either.
3241         (stack_include_file): Mark them never-reread here.
3242         (_cpp_read_file): Update.
3243
3244 2001-10-08  Richard Henderson  <rth@redhat.com>
3245
3246         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
3247
3248 2001-10-08  Richard Henderson  <rth@redhat.com>
3249
3250         * expr.c (store_expr): When converting a CONST_INT for storage
3251         in a SUBREG, convert it to both SUBREG modes before stripping
3252         the SUBREG.
3253
3254 2001-10-08  Richard Henderson  <rth@redhat.com>
3255
3256         * varasm.c (restore_varasm_status): New.
3257         * function.h: Declare it.
3258         * function.c (pop_function_context_from): Call it.
3259
3260 2001-10-08  Richard Henderson  <rth@redhat.com>
3261
3262         * c-common.h (struct c_lang_decl): Add declared_inline.
3263         * c-tree.h (DECL_DECLARED_INLINE_P): New.
3264         * c-lang.c (c_disregard_inline_limits): Use it.
3265         * c-decl.c (duplicate_decls): Likewise.
3266         (pushdecl, redeclaration_error_message): Likewise.
3267         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
3268         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
3269         Set DECL_INLINE if -finline-functions.
3270         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
3271
3272 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3273
3274         * cppmacro.c (funlike_invocation_p): Move some logic to caller
3275         in enter_macro_context.  Create a padding token in its own context
3276         if necessary when the search for '(' fails.
3277         (enter_macro_context): Update.
3278
3279 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3280
3281         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
3282         genmultilib, toplev.c: Fix spelling errors of "separate" as
3283         "seperate", and corresponding spelling errors of related words.
3284
3285 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3286
3287         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
3288         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
3289         Likewise.
3290         * c-dump.c (dump_option_value_info): Likewise.
3291         * c-format.c (format_length_info, format_char_info,
3292         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
3293         * collect2.c (names): Likewise.
3294         * cppdefault.h (default_include): Likewise.
3295         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
3296         * flow.c (life_analysis): Likewise.
3297         * gcc.c (dir_separator_str, modify_target, option_map,
3298         target_option_translations, spec_list_1, extra_specs_1,
3299         init_spec): Likewise.
3300         * gcov.c (gcov_version_string): Likewise.
3301         * genattr.c (write_units): Likewise.
3302         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
3303         * gengenrtl.c (rtx_definition, defs): Likewise.
3304         * genrecog.c (pred_table): Likewise.
3305         * global.c (global_alloc): Likewise.
3306         * lcm.c (optimize_mode_switching): Likewise.
3307         * local-alloc.c (find_free_reg): Likewise.
3308         * params.h (param_info): Likewise.
3309         * predict.c (predictor_info): Likewise.
3310         * protoize.c (unexpansion_struct): Likewise.
3311         * real.c (bmask): Likewise.
3312         * recog.h (insn_operand_data, insn_data): Likewise.
3313         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
3314         * stmt.c (expand_nl_goto_receiver): Likewise.
3315         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
3316         target_switches, target_options): Likewise.
3317         * tradcif.y (token, tokentab2, yylex): Likewise.
3318         * tree.h (attribute_spec): Likewise.
3319
3320         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
3321         Likewise.
3322         * arc.c (arc_output_function_epilogue): Likewise.
3323         * arm.c (processors, all_cores, all_architectures,
3324         arm_override_options, isr_attribute_arg, isr_attribute_args,
3325         arm_isr_value): Likewise.
3326         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
3327         Likewise.
3328         * c4x.c (c4x_int_reglist): Likewise.
3329         * d30v.c (override_options): Likewise.
3330         * h8300.c (shift_insn): Likewise.
3331         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
3332         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
3333         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
3334         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
3335         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
3336         * i386.h (processor_costs, ix86_cost): Likewise.
3337         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
3338         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
3339         * m68k.c (codes_68881, codes_FPA): Likewise.
3340         * m88k.c (mode_from_align, max_from_align, all_from_align,
3341         best_from_align, m_options): Likewise.
3342         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
3343         * mcore.c (mode_from_align): Likewise.
3344         * mips/elf64.h (UNIQUE_SECTION): Likewise.
3345         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
3346         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
3347         * mips.h (mips_regno_to_class): Likewise.
3348         * ns32k.c (scales): Likewise.
3349         * pa.c (import_string, magic_milli): Likewise.
3350         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
3351         * sparc.c (leaf_reg_remap, sparc_override_options,
3352         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
3353         Likewise.
3354         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
3355
3356 2001-10-07  Dale Johannesen  <dalej@apple.com>
3357
3358         * reload1.c (reload_reg_free_p): Teach register interference
3359         checking that multiple output reloads are emitted in
3360         reverse order.
3361         reload1.c (reload_reg_reaches_end_p):  Ditto.
3362         reload1.c (reloads_conflict):  Ditto.
3363
3364 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3365
3366         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
3367         NULL_TREE inside @code.
3368
3369 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3370
3371         * doc/gcc.texi: Document consistent style of "32-bit",
3372         "Objective-C", and "@code{NULL}".
3373
3374 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
3375
3376         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
3377         (cpp_token_len, cpp_spell_token, cpp_output_token,
3378         _cpp_equiv_tokens): Handle it.
3379         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
3380         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
3381         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
3382         error messages.
3383
3384 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3385
3386         * gcc.c (default_compilers): Remove .ada.
3387
3388 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3389
3390         * doc/cppinternals.texi: Update.
3391
3392 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
3393
3394         * gcc.c (main): Set this_file_error if the appropriate
3395         compiler for a language has not been installed.
3396
3397 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
3398
3399         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
3400
3401 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
3402
3403         * gccbug.in (CATEGORIES): Add ada.
3404
3405 2001-10-05  Catherine Moore  <clm@redhat.com>
3406
3407         * config/stormy16/stormy-abi:  Document abi changes.
3408         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
3409         (ICALL_REGS): New register class.
3410         (NUM_ARGUMENT_REGISTERS): Now 6.
3411         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
3412         in registers.
3413         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
3414         * config/stormy16.md (call_internal, call_value_internal,
3415         indirect_jump): Use new 'z' constraint.
3416
3417 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3418
3419         * doc/cppinternals.texi: Update.
3420
3421 2001-10-05  Richard Henderson  <rth@redhat.com>
3422
3423         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
3424         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
3425         the gas section-name-as-label feature.
3426
3427 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3428
3429         * doc/cppinternals.texi: Update.
3430
3431 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3432
3433         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
3434         to ensure valid SImode constants.
3435
3436 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
3437
3438         * Makefile.in (c-decl.o): Depend on tree-inline.h.
3439         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
3440         * c-decl.c: Include tree-inline.h.
3441         (c_expand_body): Call optimize_inline_calls. Determine whether
3442         a function is inlinable upfront, and only clear
3443         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
3444         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
3445         (c_disregard_inline_limits): New function.
3446         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
3447         (c_post_options): Enable tree inlining if inlining is enabled.
3448         Don't inline trees when instrumenting functions.
3449         (c_init): Initialize lang_disregard_inline_limits and
3450         lang_cannot_inline_tree_fn.
3451         * tree-inline.c (initialize_inlined_parameters): Handle calls
3452         with fewer arguments than declared parameters, and fewer
3453         parameters than passed arguments.  Don't assume value is a
3454         DECL.
3455         (declare_return_variable): Convert return value back to the
3456         original type, if it was promoted.
3457         (tree_inlinable_function_p): New function.
3458         (inlinable_function_p): Don't look at DECL_INLINE if we're
3459         inlining all functions.  Make it work with a NULL id.
3460         Re-check DECL_UNINLINABLE after language-specific checks.
3461         * tree-inline.h (tree_inlinable_function_p): Declare it.
3462         * integrate.c (save_for_inline): Don't bother to prepare argvec
3463         when not inlining.
3464         * cse.c (check_for_label_ref): Don't check deleted labels.
3465
3466         * Makefile.in (tree-inline.o): Depend on newly-included headers.
3467         * tree-inline.c: Include headers needed for the functions moved in.
3468         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
3469         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
3470         (copy_body, initialize_inlined_parameters): Likewise.
3471         (declare_return_variable, inlinable_function_p): Likewise.
3472         (expand_call_inline, expand_calls_inline): Likewise.
3473         (optimize_inline_calls, clone_body): Likewise.
3474         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
3475         (copy_tree_r, remap_save_expr): Likewise.
3476
3477 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
3478
3479         * Makefile.in (OBJS): Added tree-inline.o.
3480         (c-common.o): Depend on tree-inline.h.
3481         (tree-inline.o): New target.
3482         * c-common.c: Include tree-inline.h.
3483         (c_mark_lang_decl): Don't mark saved_tree.
3484         (c_common_lang_init): Set lang_anon_aggr_type_p.
3485         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
3486         (struct c_lang_decl): Moved saved_tree to tree_decl.
3487         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
3488         * integrate.h (function_attribute_inlinable_p): Declare it.
3489         * integrate.c (function_attribute_inlinable_p): Export it.
3490         * tree-inline.c: New file.  Define variables declared in...
3491         * tree-inline.h: New file.  Declare functions to be moved to
3492         tree-inline.c.  Define macros and declare types and hooks for
3493         language-specific tree inlining.
3494         (flag_inline_trees): Moved definition from cp/decl2.c.
3495         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
3496         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
3497         (struct tree_decl): Moved saved_tree from c_lang_decl and
3498         inlined_fns from C++'s lang_decl.
3499
3500 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
3501
3502         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
3503         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
3504
3505 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3506
3507         * doc/cppinternals.texi: Update.
3508
3509 2001-10-04  Eric Christopher  <echristo@redhat.com>
3510
3511         * config/mips/mips.c (init_cumulative_args): Remember to set
3512         cum->prototype.
3513         * config.gcc: Redo linux configuration. Add target_cpu_default
3514         of soft-float to all mipsisa32 combinations and tx39.
3515         * config/mips/linux.h: Remove include of mips.h.
3516
3517 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
3518
3519         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
3520         HOST_LDFLAGS and HOST_CPPFLAGS.
3521
3522 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
3523
3524         * c-parse.in (objc_inherit_code, objc_pq_context,
3525         objc_public_flag): Make static.
3526         (objc_interface_context, objc_implementation_context,
3527         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
3528         global tree array in objc/objc-act.[ch].
3529         (methoddef): Remove unnecessary code.
3530
3531         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
3532         Hoist struct definitions to objc-act.h.
3533         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
3534         cat_count): Place declaration in objc-act.h.
3535         (objc_tree_index): Move enumeration to objc-act.h.
3536         (objc_global_trees): Place declaration and macro accessors in
3537         objc-act.h.
3538         (implementation_context): Remove duplicate; use
3539         objc_implementation_context instead:
3540         (method_context): Remove duplicate; use objc_method_context
3541         instead.
3542         (objc_ellipsis_node, objc_method_prototype_template,
3543         implemented_classes, function_type): Move global vars to
3544         objc_global_trees.
3545         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
3546         (build_message_expr): Move actual construction of ObjC message
3547         send nodes to finish_message_expr.
3548         (finish_message_expr): New routine, contains code formerly in
3549         build_message_expr.
3550         * objc/objc-act.h (finish_message_expr): New prototype.
3551         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
3552         declarations; these vars are now part of objc_global_trees.
3553         (objc_tree_index, objc_global_trees): Move definitions from
3554         objc-act.c.
3555         * objc/objc-tree.def: Update copyright info.
3556
3557 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
3558
3559         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
3560         op is NULL.
3561         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
3562         only if TARGET_ARCH64.
3563
3564 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
3565
3566         * doc/extend.texi: Fix some problems with previous checkin.
3567         * doc/invoke.texi: Likewise.
3568
3569 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3570
3571         * cpphash.h: Update comments.
3572         (cpp_context): Update.
3573         (spec_nodes): Remove n__Pragma.
3574         * cppinit.c (cpp_create_reader): Update.
3575         (builtin_array): Add _Pragma.
3576         * cpplib.h: Update comments.
3577         (NODE_DISABLED, BT_PRAGMA): New.
3578         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
3579         * cppmacro.c (struct cpp_macro): Remove disabled.
3580         (builtin_macro): Return int, handle _Pragma, push the new token
3581         on the context stack.
3582         (funlike_invocation_p): Unconstify, update.
3583         (enter_macro_context): Handle builtins here.
3584         (replace_args, push_token_context, push_ptoken_context):
3585         Update for prototype changes.
3586         (_cpp_pop_context): Update.
3587         (cpp_get_token): Don't handle buitins, nor _Pragma here.
3588         (cpp_sys_macro_p): Update.
3589         (_cpp_free_definition): Clear disabled flag.
3590         (_cpp_create_definition): Upate.
3591         * cppmain.c: Update comments.
3592
3593 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
3594                                 Andreas Jaeger <aj@suse.de>,
3595                                 Jan Hubicka    <jh@suse.cz>
3596
3597         * doc/invoke.texi (i386 Options): Document x86-64 options.
3598         (i386 and x86-64 Options): Rename i386 options section.
3599
3600         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
3601         (TARGET_SWITCHES): Add -munwind-info.
3602         (MASK_NO_UNWIND_INFO): New.
3603         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
3604         biarch compilation.
3605         (ASM_OUTPUT_DOUBLE_INT): New.
3606
3607         * config/i386/linux64.h: New spec file for Linux x86-64 support.
3608         * config.gcc: Fix tm_file settings for x86-64.
3609         * config/i386/x86-64.h: New file with OS independent x86-64
3610         definitions.
3611         * config/i386/biarch64.h: New file used to configure compiler
3612         to biarch/64bit compilation.
3613
3614         * config/i386/i386.c: (override_options): Set flags default
3615         for 64bit compilation.
3616
3617 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
3618
3619         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
3620         (ix86_expand_int_movcc): Optimize DImode conditional moves with
3621         constants on x86_64.
3622         (ix86_attr_length_immediate_default): Support MODE_DI.
3623         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
3624         condition.
3625         (indirect_jump, tablejump): Turn into expander.
3626
3627 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3628
3629         * c-common.c (c_format_attribute_table): Make format and
3630         format_arg attributes apply to function types rather than to
3631         decls.
3632         (is_valid_printf_arglist): Construct an attribute list and pass
3633         that to check_function_format rather than a name.
3634         * c-common.h (check_function_format): Adjust prototype.
3635         * c-decl.c (duplicate_decls): Preserve attributes from type of
3636         built-in decl when allowing for harmless conflict in types.
3637         * c-format.c (record_function_format,
3638         record_international_format, function_format_list,
3639         international_format_info, international_format_list): Remove.
3640         (function_format_info): Remove next, name and assembler_name.
3641         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
3642         (decode_format_attr): New.
3643         (handle_format_attribute): Handle receiving a type rather than a
3644         decl.  Call decode_format_attr.  Store format information in a
3645         function_format_info.
3646         (handle_format_arg_attribute): Correct comment.  Handle receiving
3647         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
3648         arg_num.
3649         (check_format_info_recurse, check_format_info_main): Take argument
3650         numbers as unsigned HOST_WIDE_INT.
3651         (check_function_format): Take a list of attributes from the
3652         function type rather than a name or assembler name.  Check for
3653         format attributes in that list and the attributes on the type of
3654         the current function rather than looking through
3655         function_format_list.
3656         (check_format_info): Use unsigned HOST_WIDE_INT for argument
3657         numbers.
3658         (check_format_info_recurse): Take format_arg attributes from the
3659         type of the function calls rather than using
3660         international_format_list.  Allow for multiple format_arg
3661         attributes.
3662         * c-typeck.c (build_function_call): Pass type attributes to
3663         check_function_format rather than name or assembler name.  Don't
3664         require there to be a name or assembler name to check formats.
3665
3666 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3667
3668         * attribs.c (decl_attributes): Possibly call
3669         insert_default_attributes to insert default attributes on
3670         functions in a lazy manner.
3671         * builtin-attrs.def: New file; define the default format and
3672         format_arg attributes.
3673         * c-common.c (c_format_attribute_table): Move to earlier in the
3674         file.
3675         (c_common_nodes_and_builtins): Initialize format_attribute_table.
3676         (enum built_in_attribute, built_in_attributes,
3677         c_attrs_initialized, c_init_attributes,
3678         c_common_insert_default_attributes): New.
3679         (c_common_lang_init): Don't initialize format_attribute_table.  Do
3680         call c_init_attributes.
3681         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
3682         * c-common.h (init_function_format_info): Don't declare.
3683         (c_common_insert_default_attributes): Declare.
3684         * c-decl.c (implicitly_declare, builtin_function): Call
3685         decl_attributes.
3686         (init_decl_processing): Don't call init_function_format_info.
3687         (insert_default_attributes): New.
3688         * c-format.c (handle_format_attribute,
3689         handle_format_arg_attribute): Be quiet about inappropriate
3690         declaration when applying default attributes.
3691         (init_function_format_info): Remove.
3692         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
3693         (insert_default_attributes): Declare.
3694
3695 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3696
3697         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
3698
3699 2001-10-01  Jim Wilson  <wilson@redhat.com>
3700
3701         * sched-deps.c (add_dependence): When elide conditional dependence,
3702         check that insn doesn't modify cond2.
3703
3704 2001-10-01  Dale Johannesen  <dalej@apple.com>
3705
3706         * config/rs6000/rs6000.h (enum processor_type): Add support
3707         for 7400 (G4) and 7450.
3708         (RTX_COSTS): Ditto.
3709         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
3710         (rs6000_issue_rate): Ditto.
3711         (rs6000_adjust_cost): Fix cycle counts for compares.
3712         (debug_stack_info):  Fix an obvious typo.
3713         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
3714         * doc/invoke.texi: Document.
3715         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
3716         for Darwin.
3717         (PROCESSOR_DEFAULT): Ditto.
3718
3719 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
3720
3721         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
3722         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
3723         later recursive make invocation.
3724
3725 2001-10-01  Hans Boehm  <boehm@acm.org>
3726
3727         * optabs.c (emit_libcall_block): When using non-call exceptions,
3728         don't add REG_LIBCALL reg notes to trapping calls.
3729
3730 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
3731
3732         * flow.c (propagate_block_delete_libcall): Remove unused first arg
3733         (propagate_one_insn):  Update for above change
3734
3735 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
3736
3737         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
3738         _Unwind_GetTextRelBase): Argument is unused.
3739
3740 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3741
3742         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
3743         Loop through NOPs, placeholders, and components.
3744         Don't go through NOPs if change mode.
3745         (record_alias_subset): Do nothing if SUBSET and SET are the same.
3746         * emit-rtl.c (set_mem_alias_set): Enable check.
3747         * expr.c (find_placeholder): New function.
3748         (expand_expr, case PLACEHOLDER_EXPR): Use it.
3749         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
3750         to modify it and avoid unneeded copies.
3751         * expr.h (expand_expr): Always define.
3752         (find_placeholder): New declaration.
3753
3754 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3755
3756         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
3757         operand 2 is the stack pointer.
3758         ("addr-peephole"): Fix address computation peephole when operand 2
3759         is the stack pointer.
3760
3761 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3762
3763         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
3764         (ix86_setup_incoming_varargs): Likewise.
3765
3766 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
3767
3768         * stor-layout.c (layout_type): Don't complain about too-large
3769         array here.
3770
3771 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3772
3773         * function.c (keep_stack_depressed): Don't use delete_insn.
3774
3775         * expr.h (set_mem_alias_set): Move decl to here.
3776         * rtl.h (mem_attrs): New typedef and struct.
3777         (union rtunion_def): Add field for mem_attrs.
3778         (X0MEMATTR, MEM_ATTRS): New macros.
3779         (MEM_ALIAS_SET): Use MEM_ATTRS.
3780         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
3781         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
3782         (set_mem_alias_set): Delete decl from here.
3783
3784         * alias.c (set_mem_alias_set): Delete from here.
3785         * emit-rtl.c (mem_attrs_htab): New variable.
3786         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
3787         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
3788         (mem_attrs_mark, get_mem_attrs): Likewise.
3789         (gen_rtx_MEM): Clear MEM_ATTRS.
3790         (set_mem_attributes): Move to here.
3791         (set_mem_alias_set): Likewise, and call get_mem_attrs.
3792         (init_emit_once): const_int_htab now deletable htab.
3793         Initialize mem_attrs_htab.
3794         * explow.c (set_mem_attributes): Delete from here.
3795         * function.c (put_var_into_stack): Clear MEM_ATTRS.
3796         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
3797         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
3798         * reload1.c (reload): Rework changing REG to MEM.
3799
3800 2001-09-30  H.J. Lu <hjl@gnu.org>
3801
3802         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
3803         * config.in: Rebuild.
3804
3805 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3806
3807         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
3808         ("tsthi_1"): Avoid allocation in register y.
3809         ("*movqi_68hc12"): Reorganize and fix constraints.
3810         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
3811         ("addqi3"): Likewise.
3812         ("addhi3"): Fix constraints.
3813         ("*logicalhi3_zexthi"): Disparage soft registers.
3814
3815 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3816
3817         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
3818         to tmp reg.
3819
3820 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3821
3822         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
3823         that we use setjmp/longjmp exceptions.
3824
3825 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
3826
3827         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
3828         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
3829         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
3830         _cpp_pool_alloc, _cpp_next_chunk): Remove.
3831         (_cpp_extend_buff, BUFF_ROOM): Update.
3832         (_cpp_append_extend_buff): New.
3833         (struct cpp_reader): Remove macro_pool, add a_buff.
3834         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
3835         macro_pool.
3836         (cpp_destroy): Free a_buff instead of macro_pool.
3837         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
3838         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
3839         _cpp_pool_alloc, ): Remove.
3840         (parse_number, parse_string): Update use of _cpp_extend_buff.
3841         (_cpp_extend_buff): Update.
3842         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
3843         * cpplib.c (glue_header_name, parse_answer):
3844         Update use of _cpp_extend_buff.
3845         (cpp_register_pragma, cpp_register_pragma_space): Use
3846         _cpp_aligned_alloc.
3847         (do_assert, do_unassert): Check for EOL, update.
3848         * cppmacro.c (stringify_arg, collect_args): Update to use
3849         _cpp_extend_buff and _cpp_append_extend_buff.
3850         (save_parameter, parse_params, alloc_expansion_token,
3851         _cpp_create_definition): Rework memory management.
3852
3853 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
3854
3855         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
3856         update md_exec_prefix.
3857         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
3858         to string constant.
3859
3860 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
3861
3862         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
3863         (SELECT_CC_MODE): Use s390_select_ccmode.
3864         * config/s390/s390-protos.h (s390_select_ccmode): Add.
3865         * config/s390/s390.c (s390_select_ccmode): New.
3866         (s390_match_ccmode): Add CCLmode.
3867         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
3868         (output_branch_condition, output_inverse_branch_condition): Removed.
3869         (print_operand): Use s390_branch_condition_mnemonic.
3870         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
3871         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
3872         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
3873
3874         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
3875         when converting conditional branches to far branches.
3876         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
3877         cmpint_di): Use CCSmode instead of CCUmode.
3878
3879         * config/s390/s390.c (legitimate_la_operand_p): New.
3880         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
3881         * config/s390/s390.md (movsi): Convert load address patterns to
3882         arithmetic operations when necessary.
3883         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
3884         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
3885         (*do_la_reg_0): Don't use before reload.
3886
3887         * config/s390/s390.c (legitimize_address): Make more efficient
3888         use of two-register addressing mode.
3889
3890         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
3891         with -mno-backchain in some corner cases.
3892
3893         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
3894
3895 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
3896
3897         * reload.c (find_reloads): Mark new USE insns with QImode.
3898         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
3899         find_reloads_subreg_address): Likewise.
3900         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
3901         encountered.
3902         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
3903         CLOBBERs.
3904         (reload): Make sure there are no USEs with mode other than
3905         VOIDmode.  At the end, remove those marked with QImode.
3906
3907 2001-09-29  Per Bothner  <per@bothner.com>
3908
3909         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
3910         * Makefile.in (includedir):  Rename to local_includedir.
3911         (includedir):  Define as $(prefix)/include.
3912         * config.in (PREFIX_INCLUDE_DIR):  New variable.
3913         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
3914
3915 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
3916
3917         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
3918         storehps builtins.
3919         * doc/extend.texi (Vector Extensions): New node.
3920         * doc/invoke.texi (Machine Dependent Options): Add documentation for
3921         i386 -mmmx, -msse, -m3dnow.
3922
3923 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
3924
3925         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
3926
3927 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
3928
3929         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
3930
3931         * doc/invoke.texi (Optimize Options): Delete spurious @table.
3932
3933 2001-09-28  Richard Henderson  <rth@redhat.com>
3934
3935         * varasm.c (assemble_integer): Bound alignment check by
3936         BIGGEST_ALIGNMENT.
3937
3938         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
3939
3940 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3941
3942         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
3943
3944 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
3945
3946         Mostly from Graham Stott  <grahams@redhat.com>
3947         * c-common.c (type_for_mode): Add support for V2SFmode.
3948         * tree.c (build_common_tree_nodes_2): Likewise.
3949         * tree.h (enum tree_index, global_trees): Likewise.
3950         * config/i386/i386.c (x86_3dnow_a): New variable.
3951         (override_options): Support 3Dnow extensions.
3952         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
3953         Athlon's version of 3Dnow.
3954         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
3955         (ix86_expand_builtin): Handle them.
3956         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
3957         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
3958         TARGET_3DNOW_A): New macros.
3959         (TARGET_SWITCHES): Add 3Dnow switches.
3960         (VALID_MMX_REG_MODE_3DNOW): New macro.
3961         (VECTOR_MODE_SUPPORTED_P): Use it.
3962         (enum ix86_builtins): Add entries for 3Dnow builtins.
3963         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
3964         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
3965         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
3966         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
3967         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
3968         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
3969         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
3970         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
3971         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
3972         sfence_insn, prefetch): Make these available if TARGET_SSE or
3973         TARGET_3DNOW_A.
3974
3975 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
3976
3977         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
3978         ix86_va_start, ix86_build_va_list): Declare.
3979         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
3980         ix86_va_start, ix86_build_va_list): New global functions.
3981         * i386.md (sse_prologue_save_insn): New insn.
3982         (sse_prologue_save): New expander.
3983         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
3984         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
3985
3986 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3987
3988         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
3989         Use size_t everywhere, make definitions consistent with
3990         prototypes.
3991
3992 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
3993
3994         * gcse.c (replace_store_insn): Use delete_insn.
3995         * loop.c (move_movables): Likewise; avoid delete_insn
3996         from clobbering notes moved elsewhere.
3997         (check_dbra_loop): Use delete_insn.
3998         * ssa.c (convert_from_ssa): Likewise.
3999         * cse.c (cse_insn): Use delete_insn.
4000
4001 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4002
4003         * cpphash.h (struct cpp_buff): Make unsigned.
4004         (_cpp_get_buff): Take length of size_t.
4005         (_cpp_unaligned_alloc): New.
4006         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
4007         (struct cpp_reader): Remove ident_pool.  Add u_buff.
4008         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
4009         (cpp_destroy): Destroy u_buff, not ident_pool.
4010         * cpplex.c (parse_number, parse_string, save_comment,
4011         cpp_token_as_text): Update to use the unaligned buffer.
4012         (new_buff): Make unsigned.
4013         (_cpp_unaligned_alloc): New.
4014         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
4015         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
4016         Similarly.
4017         (collect_args): Make unsigned.
4018
4019 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
4020
4021         * cpplex.c (cpp_output_token): Use a putc loop for
4022         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
4023
4024         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
4025         * configure, config.in: Regenerate.
4026         * system.h: Replace fwrite and fprintf with their unlocked
4027         variants if available.
4028
4029 2001-09-27  Richard Henderson  <rth@redhat.com>
4030
4031         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
4032         in favour of .eh_frame.
4033
4034 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
4035
4036         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
4037         to macros.
4038         (LIBCALL_VALUE): Likewise.
4039
4040 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4041
4042         * cpphash.h: Update comment.
4043         * cpplex.c: Update comments.
4044         (_cpp_can_paste): Remove.
4045         * cpplib.h (_cpp_can_paste): Remove.
4046         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
4047         lexer rather than _cpp_can_paste.
4048
4049 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4050
4051         * doc/cppinternals.texi: Update.
4052
4053 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4054
4055         * cpphash.h (struct cpp_pool): Remove locks and locked.
4056         (struct cpp_context): Add member buff.
4057         (struct cpp_reader): Remove member argument_pool.
4058         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
4059         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
4060         * cpplex.c (chunk_suitable): Remove pool argument.
4061         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
4062         (new_buff, _cpp_extend_buff): Update.
4063         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
4064         which buffer is returned.
4065         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
4066         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
4067         * cppmacro.c (lock_pools, unlock_pools): Remove.
4068         (push_ptoken_context): Take a _cpp_buff.
4069         (enter_macro_context): Pool locking removed.
4070         (replace_args): Use a _cpp_buff for the replacement list with
4071         arguments replaced.
4072         (push_token_context): Clear buff.
4073         (expand_arg): Use _cpp_pop_context.
4074         (_cpp_pop_context): Free a context's buffer, if any.
4075
4076 2001-09-26  DJ Delorie  <dj@redhat.com>
4077
4078         * c-typeck.c (digest_init): Check for sizeless arrays.
4079
4080 2001-09-26  Richard Henderson  <rth@redhat.com>
4081
4082         * optabs.c (init_one_libfunc): Create a dummy function type
4083         instead of using error_mark_node.
4084
4085 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4086
4087         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
4088         _cpp_extend_buff, _cpp_free_buff): New.
4089         (struct cpp_reader): New member free_buffs.
4090         * cppinit.c (cpp_destroy): Free buffers.
4091         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
4092         _cpp_extend_buff, _cpp_free_buff): New.
4093         * cpplib.h (struct cpp_options): Remove unused member.
4094         * cppmacro.c (collect_args): New.  Combines the old parse_arg
4095         and parse_args.  Use _cpp_buff for memory allocation.
4096         (funlike_invocation_p, replace_args): Update.
4097
4098 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
4099
4100         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
4101
4102 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
4103
4104         * except.c (sjlj_mark_call_sites): Change address inside sequence.
4105
4106 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
4107
4108         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
4109         glibc.
4110
4111 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
4112             Jim Wilson  <wilson@redhat.com>
4113
4114         * doc/install.texi (Specific, ia64-*-linux): Document.
4115
4116 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
4117
4118         * Makefile.in (cfgrtl.o): Add.
4119         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
4120         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
4121         free_aux_for_edge): Declare.
4122         * cfg.c
4123         (HAVE_return): Undefine.
4124         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
4125         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
4126         free_aux_for_edge): New global functions.
4127         (first_delete_block): New static variable.
4128         (init_flow): Clear first_delete_block.
4129         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
4130          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
4131          try_redirect_by_replacing_jump, last_loop_beg_note,
4132          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
4133          delete_insn, delete_insn_chain, create_basic_block_structure,
4134          create_basic_block, flow_delete_block, compute_bb_for_insn,
4135          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
4136          set_block_for_new_insns, split_block, merge_blocks_nomove,
4137          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
4138          redirect_edge_and_branch, force_nonfallthru_and_redirect,
4139          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
4140          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
4141          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
4142          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4143          purge_all_dead_edges): Move to ....
4144         * cfgrtl.c: New file; .... Here.
4145
4146         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
4147         (reroder_basic_block): Use alloc_aux_for_blocks.
4148         * predict.c (estimate_bb_frequencies): Likewise; use
4149         alloc_aux_for_edges.
4150         * profile.c (compute_branch_probabilities): Likewise.
4151         (branch_prob): Likewise.
4152         * reg-stack.c (reg_to_stack): Likewise.
4153
4154         * emit-rtl.c (emit_insns_after): Never return NULL.
4155
4156         * basic-block.h (set_block_for_new_insns): Delete.
4157         * cfgrtl.c (set_block_for_new_insns): Delete.
4158
4159         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
4160         calls when crossjumping.
4161
4162         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
4163         * unroll.c (copy_loop_body): Use delete_insn.
4164
4165         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
4166         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
4167         keep_stack_depressed): Likewise.
4168         * gcse.c (cprop_cc0_jump): Likewise.
4169         * local-alloc.c (update_equiv_regs): Likewise.
4170         * loop.c (scan_loop, loop_delete_insns): Likewise.
4171         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
4172         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
4173         delete_output_reload, delete_address_reloads_1,
4174         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
4175         Likewise.
4176         * sibcall.c (replace_call_placeholder): Likewise.
4177         * cse.c (cse_insn): Likewise.
4178
4179 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
4180
4181         From Graham Stott  <grahams@redhat.com>
4182         (def_builtin): Only define builtins appropriate for target_flags.  All
4183         callers changed.
4184         (builtin_decsription): Add new field mask which is used to determine
4185         when to define the builtin via the macro def_builtin.
4186
4187         (bdesc_comi): Initialise new mask fields.
4188         (bdesc_2srg): Likewise.
4189         (bdesc_1arg): Likewise.
4190
4191         * config/i386/i386.c (ix86_init_builtins): Correct return type
4192         building v4hi_ftype_v4hi_int_int tree node.
4193         (ix86_expand_sse_comi): Fix typo swapping operands.
4194         Don't swap comparision condition, it is already swapped.
4195         (ix86_expand_sse_compare): Before swapping operands
4196         move operand 1 into new rtx and not the target rtx.
4197         Don't swap comparison condition, it is already swapped.
4198         Always check whether we need to create a new TARGET.
4199
4200         * config/i386/i386.md: (sse_comi) Fix typos.
4201         (sse_ucomi): Likewise.
4202         (cvtss2si): Fix operand 0 contraint.
4203         (cvttss2si): Likewise.
4204         (sse_unpckhps): Fix mode for operand 2.
4205         (sse_unpcklps): Likewise.
4206
4207 2001-09-25  Graham Stott  <grahams@redhat.com>
4208
4209         * sibcall.c (skip_copy_to_return_value): Tighten return value
4210         copy check.
4211
4212 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
4213
4214         * rs6000.c (lwa_operand): Address must be word aligned.
4215
4216 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4217
4218         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
4219         number has been set.
4220         (type_hash_mark): Mark type itself.
4221
4222 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4223
4224         * c-lex.c (cb_def_pragma): Update.
4225         (c_lex): Update, and skip padding.
4226         * cppexp.c (lex, parse_defined): Update, remove unused variable.
4227         * cpphash.h (struct toklist): Delete.
4228         (union utoken): New.
4229         (struct cpp_context): Update.
4230         (struct cpp_reader): New members eof, avoid_paste.
4231         (_cpp_temp_token): New.
4232         * cppinit.c (cpp_create_reader): Update.
4233         * cpplex.c (_cpp_temp_token): New.
4234         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
4235         (cpp_output_token): Don't print leading whitespace.
4236         (cpp_output_line): Update.
4237         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
4238         do_include_common, do_line, do_ident, do_pragma,
4239         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
4240         parse_assertion): Update.
4241         (get_token_no_padding): New.
4242         * cpplib.h (CPP_PADDING): New.
4243         (AVOID_LPASTE): Delete.
4244         (struct cpp_token): New union member source.
4245         (cpp_get_token): Update.
4246         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
4247         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
4248         replace_args, quote_string, stringify_arg, parse_arg, next_context,
4249         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
4250         _cpp_backup_tokens, _cpp_create_definition): Update.
4251         (push_arg_context): Delete.
4252         (padding_token, push_token_context, push_ptoken_context): New.
4253         (make_string_token, make_number_token): Update, rename.
4254         (cpp_get_token): Update to handle tokens as pointers to const,
4255         and insert padding appropriately.
4256         * cppmain.c (struct printer): New member prev.
4257         (check_multiline_token): Constify.
4258         (do_preprocessing, cb_line_change): Update.
4259         (scan_translation_unit): Update to handle spacing.
4260         * scan-decls.c (get_a_token): New.
4261         (skip_to_closing_brace, scan_decls): Update.
4262         * fix-header.c (read_scan_file): Update.
4263
4264         * doc/cpp.texi: Update.
4265
4266 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4267
4268         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
4269         leak by passing malloc'ed pointer to reconcat, not concat.
4270
4271 2001-09-24  DJ Delorie  <dj@redhat.com>
4272
4273         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
4274
4275 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
4276
4277         * flow.c (delete_dead_jumptables): Delete jumptable if the only
4278         reference is from the literal pool.
4279
4280 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
4281
4282         * doc/install.texi (Final install): Request additional information
4283         in mail about successful builds.
4284
4285 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4286
4287         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
4288         initial value of return pointer register instead of value in frame-20.
4289         Revise comments.
4290
4291 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4292
4293         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
4294         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
4295         the libcall if there isn't a referenced identifier for the symbol.
4296
4297 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4298
4299         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
4300         non 64-bit machines.  Use these as a plabel for the trampoline.
4301         (TRAMPOLINE_SIZE): Adjust size for new words.
4302         (INITIALIZE_TRAMPOLINE): Initialize new words.
4303         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
4304         pointer to the plabel in the trampoline.
4305
4306 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4307
4308         * pa.c (function_arg): Pass floating arguments in both general and
4309         floating registers in indirect (dynamic) calls when generating code
4310         for the 32 bit ABI and the HP assembler.
4311
4312 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4313
4314         * doc/install.texi: Markup fixes.
4315         Use Solaris 2, SunOS 4 as appropriate.
4316         (Specific, *-*-solaris2*): Explain this.
4317         Unconditionally warn against /usr/ucb tools.
4318         Remove Sun as warning, obsolete.
4319         Move X11 header bug workaround here, update patches.
4320         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
4321         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
4322
4323 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
4324
4325         * errors.h (warning, error, fatal, internal_error): Don't mark
4326         with ATTRIBUTE_PRINTF_n.
4327         * toplev.h (internal_error, fatal_io_error, warning, error,
4328         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
4329         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
4330         Likewise.
4331
4332 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4333
4334         * function.c (pop_function_context_from): var_refs_queue
4335         and temp slots now in GC memory.
4336         (mark_function_status, free_after_compilation): Likewise;
4337         also struct function now in GC memory.
4338         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
4339         (combine_temp_slots): Likewise.
4340         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
4341         (prepare_function_start): Use GC memory for struct function.
4342         (mark_temp_slot): Deleted.
4343         (gcc_mark_struct_function): struct function now in GC memory.
4344
4345         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
4346         code for division, not modulus.
4347
4348         * rtl.def (MEM): Remove obsolete part of comment.
4349
4350 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
4351
4352         * c-format.c (init_function_format_info): Check __builtin_printf
4353         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
4354         in gnu89 mode.
4355
4356 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4357
4358         * c-common.c (format_attribute_table): Remove decl.
4359         * tree.h (format_attribute_table, lang_attribute_table): New decls.
4360         (lang_attribute_common): Likewise.
4361
4362         * function.c (fix_lexical_address): Use set_mem_alias_set.
4363         (expand_function_start): Likewise.
4364         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
4365
4366         * varasm.c (output_constant): Fix unused variable warning.
4367
4368         * attribs.c: New file, from c-common.c.
4369         (attribute_tables): Now four elements.
4370         (format_attribute_table, lang_attribute_common): New variables.
4371         (init_attributes): Reflect above changes.
4372         (handle_mode_attribute): Delete check for wider than uintmax.
4373         * c-common.c: Delete parts moved to attribs.c.
4374         (enum attrs): Deleted; unused.
4375         (c_format_attribute_table): New variable.
4376         (c_common_lang_init): Initialize format_attribute_table with it.
4377         * c-common.h (decl_attributes): Remove decl.
4378         * tree.h (decl_attribute): Move it to here.
4379         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
4380         (attribs.o): New rule.
4381
4382 2001-09-22  Andreas Jaeger  <aj@suse.de>
4383
4384         * builtins.c (c_getstr): Remove unused variable.
4385
4386 2001-09-21  Richard Henderson  <rth@redhat.com>
4387
4388         * reload1.c (reload): Use delete_insn instead of splatting
4389         NOTE_INSN_DELETED.
4390
4391 2001-09-21  Richard Henderson  <rth@redhat.com>
4392
4393         * reload.c (push_secondary_reload): Don't check for "=" in output
4394         constraint after ""->ALL_REGS check.
4395
4396 2001-09-21  Richard Henderson  <rth@redhat.com>
4397
4398         * predict.c (expected_value_to_br_prob): Use pc_set.
4399
4400         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
4401         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
4402
4403 2001-09-21  Richard Henderson  <rth@redhat.com>
4404
4405         * rtl.h (LCT_RETURNS_TWICE): New.
4406         * calls.c (emit_call_1): Set current_function_calls_setjmp for
4407         ECF_RETURNS_TWICE.
4408         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
4409         to ECF_RETURNS_TWICE.
4410         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
4411         call to setjmp.
4412
4413         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
4414
4415         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
4416         (JMP_BUF_SIZE): New.
4417
4418 2001-09-21  Richard Henderson  <rth@redhat.com>
4419
4420         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
4421         to R8_REGS.
4422
4423 2001-09-21  Richard Henderson  <rth@redhat.com>
4424
4425         * tree.def (FDESC_EXPR): New.
4426         * expr.c (expand_expr): Handle it.
4427         * varasm.c (initializer_constant_valid_p): Likewise.
4428         (output_constant): Likewise.
4429         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
4430         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
4431         (ASM_OUTPUT_FDESC): New.
4432         * doc/tm.texi: Document the new macros.
4433
4434 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
4435
4436         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
4437         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
4438         once merging is complete.
4439
4440 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4441
4442         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
4443
4444 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
4445
4446         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
4447         that would be invalid after a merge.
4448
4449 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
4450
4451         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
4452         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
4453         remove some labels.
4454         (flow_delete_insn): This one.
4455         (delete_insn_chain): Rename from ...; do not care labels.
4456         (flow_delete_insn_chain): ... this one.
4457         (flow_delete_block): Remove the insns one BB has been expunged.
4458         (merge_blocks_nomove): Likewise.
4459         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
4460         updating BB boundaries.
4461         (tidy_fallthru_edge): Likewise.
4462         (commit_one_edge_insertion): Likewise.
4463         * cfgbuild.c (find_basic_block): Likewise.
4464         (find_basic_blocks_1): Likewise.
4465         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
4466         (try_crossjump_to_edge): Likewise.
4467         (try_optimize_cfg): Likewise.
4468         * cse.c (delete_trivially_dead_insns): Likewise.
4469         * df.c (df_insn_delete): Likewise.
4470         * doloop.c (doloop_modify): Use delete_related_insns.
4471         * emit-rtl.c (try_split): Likewise.
4472         (remove_insn): Update BB boundaries.
4473         * expect.c (connect_post_landing_pads): Use delete_related_insns.
4474         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
4475         updating BB boundaries.
4476         (propagate_block_delete_insn): Likewise.
4477         (propagate_block_delete_libcall): Likewise.
4478         * function.c (delete_handlers): Use delete_related_insns.
4479         (thread_prologue_and_epilogue_insns): Likewise.
4480         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
4481         * genpeep.c (gen_peephole): Use delete_related_insns.
4482         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
4483         BB boundaries.
4484         (find_cond_trap): Likewise.
4485         * integrate.c (save_for_inline): Use delete_related_insns.
4486         (copy_insn_list): Likewise.
4487         * jump.c (pruge_linie_number_notes): Likewise.
4488         (duplicate_loop_exit_test): Likewise.
4489         (delete_computation): Likewise.
4490         (delete_related_insn): Rename from ...; use delete_insn
4491         (delete_insn): ... this one.
4492         (redirect_jump): Use delete_related_insns.
4493         * loop.c (scan_loop): Likewise.
4494         (move_movables): Likewise.
4495         (find_and_verify_loops): Likewise.
4496         (check_dbra_loop): Likewise.
4497         * recog.c (peephole2_optimize): Likewise.
4498         * reg-stack.c (delete_insn_for_stacker): Remove.
4499         (move_for_stack_reg): Use delete_insn.
4500         * regmove.c (combine_stack_adjustments_for_block): Likewise.
4501         * reload1.c (delete_address_reloads): Use delete_related_insns.
4502         (fixup_abnormal_edges): Use delete_insn.
4503         * recog.c (emit_delay_sequence): Use delete_related_insns.
4504         (delete_from-delay_slot): Likewise.
4505         (delete_scheduled_jump): likewise.
4506         (optimize_skip): Likewise.
4507         (try_merge_delay_insns): Likewise.
4508         (full_simple_delay_slots): Likewise.
4509         (fill_slots_from_thread): Likewise.
4510         (relax_delay_slots): Likewise.
4511         (make_return_insns): Likewise.
4512         (dbr_schedule): Likewise.
4513         * rtl.h (delete_insn): Rename to delete_related_insns.
4514         (delete_insn, delete_insn_chain): New prototypes.
4515         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
4516         by df_insn_delete already.
4517         * ssa-dce.c (delete_insn_bb): Use delete_insn.
4518         * ssa.c (convert_from_ssa): Use delete_related_insns.
4519         * unroll.c (unroll_loop): Likewise.
4520         (calculate_giv_inc): Likewise.
4521         (copy_loop_body): Likewise.
4522
4523         * i386-protos.h (ix86_libcall_value, ix86_function_value,
4524         ix86_function_arg_regno_p, ix86_function_arg_boundary,
4525         ix86_return_in_memory, ix86_function_value): Declare.
4526         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
4527         new static valurables.
4528         (x86_64_reg_class): New enum
4529         (x86_64_reg_class_name): New array.
4530         (classify_argument, examine_argument, construct_container,
4531          merge_classes): New static functions.
4532         (optimization_options): Enable flag_omit_frame_pointer and disable
4533         flag_pcc_struct_return on 64bit.
4534         (ix86_libcall_value, ix86_function_value,
4535         ix86_function_arg_regno_p, ix86_function_arg_boundary,
4536         ix86_return_in_memory, ix86_function_value): New global functions.
4537         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
4538         (function_arg_advance): Handle x86_64 passing conventions.
4539         (function_arg): Likewise.
4540         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
4541         (RETURN_IN_MEMORY): Move offline.
4542         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
4543         (FUNCTION_VALUE_REGNO_P): New macro.
4544         (FUNCTION_ARG_REGNO_P): Move offline.
4545         (struct ix86_args): Add maybe_vaarg.
4546         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
4547         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
4548
4549 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
4550
4551         * s390.md: Changed attributes for scheduling.
4552         * s390.c: (s390_adjust_cost, s390_adjust_priority)
4553         Changed scheduling
4554
4555 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4556
4557         Table-driven attributes.
4558         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
4559         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
4560         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
4561         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
4562         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
4563         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
4564         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
4565         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
4566         * tree.h (struct tree_decl): Change machine_attributes to
4567         attributes.
4568         * doc/c-tree.texi: Document that all attributes are now attached
4569         to decls and types.
4570         * c-common.c (add_attribute, attrtab, attrtab_idx,
4571         default_valid_lang_attribute, valid_lang_attribute): Remove.
4572         (attribute_tables, attributes_initialized,
4573         c_common_attribute_table, default_lang_attribute_table): New
4574         variables.
4575         (handle_packed_attribute, handle_nocommon_attribute,
4576         handle_common_attribute, handle_noreturn_attribute,
4577         handle_unused_attribute, handle_const_attribute,
4578         handle_transparent_union_attribute, handle_constructor_attribute,
4579         handle_destructor_attribute, handle_mode_attribute,
4580         handle_section_attribute, handle_aligned_attribute,
4581         handle_weak_attribute, handle_alias_attribute,
4582         handle_no_instrument_function_attribute,
4583         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
4584         handle_no_limit_stack_attribute, handle_pure_attribute): New
4585         functions.
4586         (init_attributes, decl_attributes): Rewrite to implement
4587         table-driven attributes.
4588         * c-common.h (enum attribute_flags): Move to tree.h.
4589         * c-format.c (decl_handle_format_attribute,
4590         decl_handle_format_arg_attribute): Rename to
4591         handle_format_attribute and handle_format_arg_attribute.  Update
4592         for table-driven attributes.
4593         * c-common.h (decl_handle_format_attribute,
4594         decl_handle_format_arg_attribute): Remove prototypes.
4595         (handle_format_attribute, handle_format_arg_attribute): Add
4596         prototypes.
4597         * c-decl.c (grokdeclarator): Handle attributes nested inside
4598         declarators.
4599         * c-parse.in (setattrs, maybe_setattrs): Remove.
4600         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
4601         Update to handle nested attributes properly.
4602         (maybe_resetattrs, after_type_declarator,
4603         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
4604         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
4605         properly.
4606         (make_pointer_declarator): Update to handle nested attributes
4607         properly.
4608         * doc/extend.texi: Update documentation of limits of attributes
4609         syntax.  Warn about problems with attribute semantics in C++.
4610         * target.h (struct target): Remove valid_decl_attribute and
4611         valid_type_attribute.  Add attribute_table and
4612         function_attribute_inlinable_p.
4613         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
4614         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
4615         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
4616         Add.
4617         (TARGET_INITIALIZER): Update.
4618         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
4619         definition.
4620         (function_attribute_inlinable_p): New function.  Check for the
4621         presence of any machine attributes before using
4622         targetm.function_attribute_inlinable_p.
4623         (function_cannot_inline_p): Update.
4624         * Makefile.in (integrate.o): Update dependencies.
4625         * doc/tm.texi: Update documentation of target attributes and
4626         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
4627         * tree.c (default_valid_attribute_p, valid_machine_attribute):
4628         Remove.
4629         (default_target_attribute_table,
4630         default_function_attribute_inlinable_p): New.
4631         (lookup_attribute): Update comment to clarify handling of multiple
4632         attributes with the same name.
4633         (merge_attributes, attribute_list_contained): Allow multiple
4634         attributes with the same name but different arguments to appear in
4635         the same attribute list.
4636         * tree.h (default_valid_attribute_p): Remove prototype.
4637         (struct attribute_spec): New.
4638         (default_target_attribute_table): Declare.
4639         (enum attribute_flags): Move from c-common.h.  Add
4640         ATTR_FLAG_TYPE_IN_PLACE.
4641         (default_function_attribute_inlinable_p): Declare.
4642         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
4643         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4644         (TARGET_ATTRIBUTE_TABLE): Define.
4645         (vms_attribute_table): New.
4646         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
4647         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4648         (TARGET_ATTRIBUTE_TABLE): Define.
4649         (arc_attribute_table, arc_handle_interrupt_attribute): New.
4650         * config/arm/arm.c (arm_valid_type_attribute_p,
4651         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
4652         Remove.
4653         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
4654         define.
4655         (TARGET_ATTRIBUTE_TABLE): Define.
4656         (arm_attribute_table, arm_handle_fndecl_attribute,
4657         arm_handle_isr_attribute): New.
4658         * config/avr/avr.c (avr_valid_type_attribute,
4659         avr_valid_decl_attribute): Remove.
4660         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
4661         define.
4662         (TARGET_ATTRIBUTE_TABLE): Define.
4663         (avr_attribute_table, avr_handle_progmem_attribute,
4664         avr_handle_fndecl_attribute): New.
4665         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
4666         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4667         (TARGET_ATTRIBUTE_TABLE): Define.
4668         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
4669         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
4670         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4671         (TARGET_ATTRIBUTE_TABLE): Define.
4672         (h8300_attribute_table, h8300_handle_fndecl_attribute,
4673         h8300_handle_eightbit_data_attribute,
4674         h8300_handle_tiny_data_attribute): New.
4675         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
4676         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
4677         Remove prototypes.
4678         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
4679         declarations.
4680         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
4681         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
4682         define.
4683         (TARGET_ATTRIBUTE_TABLE): Define.
4684         (ix86_attribute_table, ix86_handle_cdecl_attribute,
4685         ix86_handle_regparm_attribute): New.
4686         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
4687         i386_pe_valid_type_attribute_p): Remove.
4688         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
4689         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
4690         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4691         (TARGET_ATTRIBUTE_TABLE): Define.
4692         (ia64_attribute_table): New.
4693         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
4694         interrupt_ident2, model_ident1, model_ident2): Remove.
4695         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4696         (TARGET_ATTRIBUTE_TABLE): Define.
4697         (init_idents): Update.
4698         (m32r_attribute_table, m32r_handle_model_attribute): New.
4699         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
4700         Remove.
4701         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4702         (TARGET_ATTRIBUTE_TABLE): Define.
4703         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
4704         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
4705         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4706         (TARGET_ATTRIBUTE_TABLE): Define.
4707         (mcore_attribute_table, mcore_handle_naked_attribute): New.
4708         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
4709         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4710         (TARGET_ATTRIBUTE_TABLE): Define.
4711         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
4712         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
4713         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4714         (TARGET_ATTRIBUTE_TABLE): Define.
4715         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
4716         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
4717         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4718         (TARGET_ATTRIBUTE_TABLE): Define.
4719         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
4720         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
4721         New.
4722         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
4723         Remove.
4724         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
4725         (TARGET_ATTRIBUTE_TABLE): Define.
4726         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
4727         New.
4728         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
4729         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4730         (TARGET_ATTRIBUTE_TABLE): Define.
4731         (v850_attribute_table, v850_handle_interrupt_attribute,
4732         v850_handle_data_area_attribute): New.
4733         * config/v850/v850-c.c (mark_current_function_as_interrupt):
4734         Return void.  Call decl_attributes instead of
4735         valid_machine_attribute.
4736
4737 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
4738
4739         * sh-protos.h (sh_pr_n_sets): Declare.
4740         * sh.c (calc_live_regs): If the initial value for PR has been copied,
4741         look at the copy to determine if PR needs to be saved.
4742         sh_pr_n_sets: New function.
4743         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
4744         (ALLOCATE_INITIAL_VALUE): Define.
4745
4746         * sh.c (initial_elimination_offset):
4747         Fix RETURN_ADDRESS_POINTER_REGNUM case.
4748
4749 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
4750
4751         * integrate.c (allocate_initial_values): New function.
4752         * integrate.h (allocate_initial_values): Declare.
4753         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
4754         here...
4755         * reload1.c (reload): And initialization of reg_equiv_memory_loc
4756         from here...
4757         * toplev.c (rest_of_compilation): To here.
4758         Call allocate_initial_values.
4759         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
4760
4761 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4762
4763         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
4764
4765 2001-09-20  DJ Delorie  <dj@redhat.com>
4766
4767         * c-typeck.c (really_start_incremental_init): Discriminate
4768         between zero-length arrays and flexible arrays.
4769         (push_init_level): Detect zero-length arrays and handle them
4770         like fixed-sized arrays.
4771         * expr.c (store_constructor): Handle zero-length arrays and
4772         flexible arrays correctly.
4773         * doc/extend.texi: Update zero-length array notes.
4774
4775 2001-09-20  Jim Wilson  <wilson@redhat.com>
4776
4777         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
4778         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
4779         for issue port conflicts.
4780         (cycle_end_fill_slots): TYPE_L instructions take two slots.
4781
4782 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
4783
4784         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
4785         on ia64.
4786
4787 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4788
4789         * fold-const.c (hashtab.h): Include.
4790         (int_const_binop): Remove FORSIZE arg and compute from type; all
4791         callers changed.
4792         Call size_int_type_wide for all single-word constants.
4793         (size_htab_hash, size_htab_eq): New functions.
4794         (size_int_type_wide): Rework to use hash table.
4795         * ggc-common.c (hashtab.h): Include.
4796         (struct d_htab_root): New struct.
4797         (d_htab_roots): New variable.
4798         (ggc_add_deletable_htab, ggc_htab_delete): New functions
4799         (ggc_mark_roots): Handle deletable htabs.
4800         * ggc-page.c (ggc_marked_p): New function.
4801         * ggc-simple.c (ggc_marked_p): Likewise.
4802         * ggc.h: Reformatting throughout.
4803         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
4804         * tree.c (init_obstacks): Make type_hash_table a deletable root.
4805         (type_hash_add): Allocate struct type_hash from GC memory.
4806         (mark_hash_entry, mark_type_hash): Deleted.
4807         (type_hash_marked_p, type_hash_mark): New functions.
4808         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
4809
4810 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
4811
4812         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
4813         than SImode.
4814
4815 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4816
4817         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
4818         array-too-large test for signed sizetype.
4819
4820 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
4821
4822         * i386.md (indirect_jump): Allow Pmode operand.
4823         (tablejump): LIkewise; perform expansion to 64bit mode.
4824         * i386.c (symbolic_operand): Allow 64bit PIC references.
4825         (pic_symbolic_operand): Likewise.
4826         (ix86_find_base_term): Strip the 64bit PIC references.
4827         (legitimate_pic_address_disp_p): Handle 64bit PIC.
4828         (legitimize_pic_address): Likewise.
4829         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
4830         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
4831
4832 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
4833
4834         * stringpool.c (get_identifier_with_length): New function.
4835         * tree.h (get_identifier_with_length): New prototype.
4836
4837 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
4838             David Edelsohn  <edelsohn@gnu.org>
4839
4840         Revert:
4841         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
4842         already sign-extended.
4843
4844         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
4845         * config/rs6000/rs6000.c (logical_operand): Always compare op as
4846         HOST_WIDE_INT.
4847         (rs6000_emit_set_long_const): Avoid unnecessary shift.
4848         (output_profile_hook): Declare label_name const.
4849         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
4850         to match constraints.
4851
4852 2001-09-19  Stan Shebs  <shebs@apple.com>
4853
4854         * alias.c: Fix typos in comments.
4855         * sched-rgn.c (init_ready_list): Ditto.
4856         * unwind-dw2.c (uw_frame_state_for): Ditto.
4857         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
4858         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
4859         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
4860
4861 2001-09-19  Richard Henderson  <rth@redhat.com>
4862
4863         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
4864         to the exit block.
4865         * Makefile.in (cfg.o): Depend on TM_P_H.
4866
4867 2001-09-19  Richard Henderson  <rth@redhat.com>
4868
4869         * config/alpha/alpha.c (local_symbol_p): Split out from ...
4870         (local_symbolic_operand): ... here.
4871         (small_symbolic_operand): Check mode.
4872         (global_symbolic_operand): New.
4873         (input_operand): Reject symbolics if explicit relocs.
4874         (call_operand): Tidy.
4875         (alpha_legitimize_address): Use movdi_er_high_g.
4876         (alpha_expand_mov): Likewise.
4877         * config/alpha/alpha-protos.h: Update.
4878         * config/alpha/alpha.h (PREDICATE_CODES): Update.
4879         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
4880         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
4881         (UNSPECV_LDGP2): Remove.
4882         (all call patterns): Use 's' not 'i' for symbolic constraint.
4883         (call_osf call_value_osf): Use call_operand.
4884         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
4885         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
4886         (prologue_ldgp_1_er): Remove.
4887         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
4888         (builtin_setjmp_receiver_er patterns): Use them.
4889         (exception_receiver_er): Likewise.
4890
4891 2001-09-19  Richard Henderson  <rth@redhat.com>
4892
4893         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
4894
4895         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
4896         and NON_LOCAL_GOTO notes.
4897         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
4898         copy over CALL_INSN_FUNCTION_USAGE.
4899
4900 2001-09-18  Catherine Moore  <clm@redhat.com>
4901
4902         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
4903         Define as 0.
4904
4905 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
4906
4907         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
4908         new-style tm_file specification.  Specify correct tm_p_file,
4909         md_file, and out_file for s390x.
4910
4911         * config/s390/linux.h, linux64.h:  Don't include other target
4912         macro header files.  Now handled via tm_file.
4913
4914         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
4915         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
4916         are defined before use.
4917
4918 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
4919
4920         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
4921         code generation only for Gnu assembler.
4922
4923 2001-09-18  Catherine Moore  <clm@redhat.com>
4924
4925         * config/stormy16 (LIB_SPEC): Remove -lnosys.
4926
4927 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
4928
4929         * config/mips/mips.c (mips_frame_set): New.
4930         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
4931         a parallel frame-related expression with a set for each register.
4932
4933 2001-09-18  Philip Blundell  <philb@gnu.org>
4934
4935         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
4936         header files.
4937
4938 2001-09-17  Dale Johannesen  <dalej@apple.com>
4939
4940         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
4941         * config/rs6000/aix.h (FIXED_R2): Define.
4942         * config/rs6000/darwin.h (FIXED_R2): Define.
4943         * config/rs6000/sysv4.h (FIXED_R2): Define.
4944
4945 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
4946
4947         * except.c (dw2_build_landing_pads): New local
4948         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
4949         barrier after clobbers.  Fixes c++/4012.
4950
4951 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4952
4953         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
4954
4955 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
4956
4957         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
4958         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
4959
4960 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4961
4962         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
4963         alloca/strcpy.
4964
4965 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4966
4967         * cpphash.h (_cpp_lex_direct): New.
4968         * cpplex.c (_cpp_lex_token): Update.
4969         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
4970         and increment that pointer.
4971         * cppmacro.c (alloc_expansion_token): New.
4972         (lex_expansion_token): Lex macro expansion directly into
4973         macro storage.
4974
4975 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
4976
4977         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
4978
4979 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
4980
4981         * basic-block.h (free_bb_for_insn): Declare.
4982         * bb-reorder.c (label_for_bb): Use block_label.
4983         (emit_jump_to_block_after): Remove.
4984         (insert_intra_1): Do not update block_for_insn.
4985         (insert_inter_bb_scope_notes): Likewise; update bb->end
4986         * cfg.c (free_bb_for_insn): New.
4987         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
4988         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
4989         (commit_one_edge_insertion): Likewise.
4990         (commit_one_edge_insertion): Do not update BB boundary.
4991         (commit_edge_insertions): Do not call compute_bb_for_insn.
4992         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
4993         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
4994         (merge_blocks_move_successor_nojumps): Likewise.
4995         (try_crossjump_to_edge): Do not update block_for_insn.
4996         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
4997         * df.c (df_pattern_emit_later): Do not update BB boundary.
4998         (df_jump_pattern_emit_after): Likewise.
4999         (df_insn_move_before): Use emit_insn_before.
5000         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
5001          properly.
5002         (add_insn_after, add_insn_before, emit_insns_after): Update BB
5003         boundaries and basic_block_for_insn.
5004         (reorder_insns_nobb): Rename from reorder_insns.
5005         (reorder_insns): New.
5006         (emit_block_insn_before, emit_block_insn_after): Kill.
5007         * flow.c (check_function_return_warnings): Do not call
5008         compute_bb_for_insn; Do not free basic_block_for_insn.
5009         (attempt_auto_inc): Do not update basic_block_for_insn.
5010         * function.c (emit_return_into_block): Likewise;
5011         do not update BB boundaries.
5012         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
5013         (insert_insn_end_bb): Use emit_insn_before; Likewise.
5014         (pre_insert_copy_insn): Likewise.
5015         (update_ld_motion_notes): Likewise.
5016         (insert_insn_start_bb): Likewise.
5017         (replace_store_insn): Likewise.
5018         * ifcvt.c (noce_process_if_block): Likewise.
5019         (if_convert): Do not call compute_bb_for_insn.
5020         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
5021         Use emit_insn_before and emit_insn_after.
5022         * recog.c (split_all_insns): Do not update BB boundaries;
5023         Do not call compute_bb_for_insn.
5024         (peephole2_optimize): Do not update BB boundaries.
5025         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
5026         emit_insn_before.
5027         (emit_swap_insn): Likewise.
5028         (convert_regs_1): Likewise.
5029         * reload1.c (reload): Call compute_bb_for_insn.
5030         * rtl.h (reorder_insns_nobb): Declare.
5031         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
5032         * toplev.c (rest_of_compilation): Call free_bb_for_insn
5033         at places CFG is invalidated; do not call compute_bb_for_insn.
5034
5035         * cfg.c (expunge_block): Invalidate BB structure.
5036
5037         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
5038         array.
5039
5040         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
5041
5042 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5043
5044         * cpphash.h (_cpp_lex_token): Update prototype.
5045         * cpplex.c (_cpp_lex_token): New prototype.
5046         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
5047         lex_macro_node, read_flag, do_pragma_poison): Update.
5048         * cppmacro.c (cpp_get_token, parse_params,
5049         lex_expansion_token): Update.
5050
5051 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5052
5053         * cppmain.c (scan_translation_unit): Don't worry about
5054         putting a space after hashes.
5055         * cpplib.c (directive_diagnostics): New.
5056         (_cpp_handle_directive): Update to use directive_diagnostics.
5057         (run_directive): Don't toggle prevent_expansion.
5058         (do_line): Backup in case of the line extension.
5059         * cpplib.h (cpp_lexer_pos): Remove.
5060         * cppmacro.c (_cpp_create_definition): Precede a leading #
5061         with whitespace.
5062
5063 2001-09-15  Richard Henderson  <rth@redhat.com>
5064
5065         * c-typeck.c (comptypes): Handle zero-length arrays properly.
5066
5067 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5068
5069         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
5070
5071 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5072
5073         PR preprocessor/3571
5074         * tradcpp.c (handle_directive): Skip non-vertical space.
5075
5076 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5077
5078         * cppmain.c (setup_callbacks): Set line callback only
5079         if outputting preprocessed source.
5080
5081 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5082
5083         * collect2.c (main): Const-ification.
5084         * gcc.c (translate_options, process_command): Use xstrdup in
5085         lieu of xmalloc/strcpy.
5086         (main): Use concat in lieu of xmalloc/strcpy/strcat.
5087
5088 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5089
5090         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
5091         example.
5092
5093 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5094
5095         * scan-decls.c (scan_decls): Fix typo.
5096
5097 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5098
5099         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
5100         Split mlstring_pos into mls_line and mls_col.
5101         * cppinit.c (cpp_create_reader): Initialize line to 1.
5102         (cpp_destroy): Free tokenruns.
5103         (push_include): Don't update lexer_pos.
5104         * cpplex.c (unterminated, parse_string): Update.
5105         (lex_token): Don't update lexer_pos, update.
5106         * cpplib.c (if_stack): Save line instead of line + col.
5107         (start_directive, _cpp_do__Pragma, do_else, do_elif,
5108         push_conditional, _cpp_pop_buffer): Update.
5109         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
5110         (_cpp_create_definition): Update.
5111
5112 2001-09-15  Eric Christopher  <echristo@redhat.com>
5113
5114         * config/mips/abi64.h: Add support for MEABI.
5115
5116 2001-09-15  Eric Christopher  <echristo@redhat.com>
5117
5118         * config/mips/mips.md: Add unspec #2.
5119         (reload_indi): Use.
5120         (reload_outdi): Ditto.
5121         (reload_outsi): Ditto.
5122         (HILO_delay): New.
5123
5124 2001-09-15  Eric Christopher  <echristo@redhat.com>
5125             Jason Eckhardt  <jle@redhat.com>
5126
5127         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
5128         * config/mips/isa32-linux.h: New file.
5129         * config/mips/isa3264.h: Ditto.
5130         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
5131         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
5132         (output_block_mode): Support MEABI.
5133         (function_arg): Ditto. Fix floating point arg passing.
5134         (mips_va_start): Ditto.
5135         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
5136         processors.
5137         (mips_asm_file_start): Add new section to pass abi to gdb.
5138         (function_arg_pass_by_reference): Support MEABI.
5139         (mips_parse_cpu): Support mips32 and mips64 processors.
5140         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
5141         TARGET_MIPS5KC.  Support isa32 and isa64.
5142         (processor_type): Add r4kc, r5kc, r20kc.
5143         (GENERATE_MULT3_SI): New.
5144         (GENERATE_MULT3_DI): Ditto.
5145         (GENERATE_MULT3): Remove.
5146         (ISA_HAS_64BIT_REGS): Add isa == 64.
5147         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
5148         (ISA_HAS_MADD_MSUB): New.
5149         (ISA_HAS_CLZ_CLO): Ditto.
5150         (ISA_HAS_DCLZ_DCLO): Ditto.
5151         (ABI_GAS_ASM_SPEC): New.
5152         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
5153         (ASM_SPEC): Ditto.
5154         (LINK_SPEC): Ditto.
5155         (SUBTARGET_CC1_SPEC): Ditto.
5156         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
5157         (PAD_VARARGS_DOWN): Support MEABI.
5158         (HARD_REGNO_NREGS): Move to mips.c.
5159         (ASM_OUTPUT_IDENT): Add #undef.
5160         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
5161         (mulsi3): Use GENERATE_MULT3_SI.
5162         (mulsi3_mult3): Ditto.  Support mips32, mips64.
5163         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
5164         (mul_sub_si): New pattern.
5165         (unnamed splitters): New.
5166         (muldi3): Use GENERATE_MULT3_DI.
5167         (muldi3_internal2): Ditto.
5168         (movdicc): Support mips32.
5169         * config/mips/t-isa3264: New file.
5170
5171 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
5172
5173         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
5174         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
5175         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
5176
5177         * reorg.c (fill_slots_from_thread): After call to
5178         steal_delay_list_from_target, update own_thread as new_thread may
5179         have branched.
5180
5181 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5182
5183         * cpperror.c (print_location): Take line and column, for
5184         default positioning use the previously lexed token.
5185         (_cpp_begin_message): Take line and column.
5186         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
5187         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
5188         * cpphash.h (_cpp_begin_message): Update prototype.
5189         * cppinit.c (push_include): Don't set output line.
5190         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
5191         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
5192         (do_pragma): Kludge for front ends.  Don't expand macros at all.
5193         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
5194         (struct cpp_token): Remove output_line.
5195         (struct cpp_callbacks): New member line_change.
5196         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
5197         cpp_get_token): Preserve BOL flag.
5198         (cpp_get_line): Remove.
5199         (_cpp_backup_tokens): Remove useless abort().
5200         * cppmain.c (cb_line_change): New.
5201         (scan_translation_unit): Don't worry about starting new lines here.
5202         * scan-decls.c (scan_decls): Update.
5203         * c-lex.c (c_lex, init_c_lex): Update.
5204         (cb_line_change, src_lineno): New.
5205
5206 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
5207
5208         * tree.c (append_random_chars): Generate the random
5209         characters in a reproducable fashion.
5210
5211 2001-09-14  Richard Henderson  <rth@redhat.com>
5212
5213         * config/i386/i386.c (internal_label_prefix): New.
5214         (internal_label_prefix_len): New.
5215         (override_options): Set them.
5216         (local_symbolic_operand): New.
5217         (legitimate_pic_address_disp_p): Use it.
5218         (legitimize_pic_address): Likewise.
5219
5220 2001-09-14  Marc Espie <espie@openbsd.org>
5221
5222         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
5223         correctly.
5224
5225 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5226
5227         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
5228         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
5229
5230 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
5231
5232         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
5233         invocation of SUBREG_REGNO_OFFSET.
5234
5235         * haifa-sched.c: Fix typo in FSF copyright statement.
5236         * sched-deps.c: Fix typo in FSF copyright statement.
5237         * sched-ebb.c: Fix typo in FSF copyright statement.
5238         * sched-rgn.c: Fix typo in FSF copyright statement.
5239         * sched-vis.c: Fix typo in FSF copyright statement.
5240
5241         * config.gcc: Move inclusion of arm elf specific header files
5242         from the files themselves into the tm_file variable.  Make
5243         sure that elfos.h is included before target specific elf
5244         headers.
5245         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
5246         already defined.
5247         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
5248         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
5249         ASM_OUTPUT_CASE_LABEL): Protect definition.
5250         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
5251         not already defined.
5252         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
5253         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
5254         Remove duplicate definition.
5255         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
5256         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
5257         (RDATA_SECTION_FUNCTION): Remove redundant definition.
5258         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
5259         Remove inclusion of arm/elf.h.
5260         * config/arm/unknown-elf.h: as for conix-elf.h.
5261         (STARTFILE_SPEC): Include crti.o and crtn.o.
5262         * config/arm/linux-elf.h: as for conix-elf.h.
5263         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
5264         * config/arm/strongarm-elf.h: Remove inclusion of
5265         unknown-elf.h.
5266         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
5267         * config/arm/unknown-elf-oabi.h: Remove inclusion of
5268         unknown-elf.h and elf.h.
5269         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
5270         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
5271         ASM_WEAKEN_LABEL): Remove redundant definition.
5272         * config/arm/elf.h: Test for inclusion of elfos.h
5273         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
5274         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
5275         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
5276         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
5277         redundant definition.
5278         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
5279         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
5280         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
5281         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
5282         Add rules to build crti.o and crtn.o
5283         * crti.asm: New file.
5284         * crtn.asm: New file.
5285
5286 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5287
5288         * c-parse.in (_yylex): Use _cpp_backup_tokens.
5289         * cpphash.h (struct tokenrun): Add prev.
5290         (struct lexer_state): Remove bol.
5291         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
5292         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
5293         : Remove.
5294         * cppinit.c (cpp_create_reader): Don't set bol.
5295         (cpp_destroy): Don't free lookaheads.
5296         * cpplex.c (lex_directive): Remove.
5297         (next_tokenrun): Update.
5298         (_cpp_lex_token): Clean up logic.
5299         (lex_token): Update to return a pointer to lexed token, since it
5300         can move to the start of the buffer.  Simpify newline handling.
5301         * cpplib.c (SEEN_EOL): Update.
5302         (skip_rest_of_line): Remove lookahead stuff.
5303         (end_directive): Line numbers are already incremented.  Revert
5304         to start of lexed token buffer if we can.
5305         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
5306         parse_answer): Use _cpp_backup_tokens.
5307         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
5308         instead.  Don't check for EOL.
5309         (do_include_common, do_line, do_pragma_system_header): Use
5310         skip_rest_of_line.
5311         * cpplib.h (BOL, _cpp_backup_tokens): New.
5312         * cppmacro.c (save_lookahead_token, take_lookahead_token,
5313         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
5314         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
5315         (builtin_macro): Don't use cpp_get_line.
5316         (cpp_get_line): Short term kludge.
5317         (parse_arg): Handle directives in arguments here.  Back up when
5318         appropriate.  Store EOF at end of argument list.
5319         (funlike_invocation_p): Use _cpp_backup_tokens.
5320         (push_arg_context): Account for EOF at end of list.
5321         (cpp_get_token): Remove lookahead stuff.  Update.
5322
5323 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5324
5325         * c-parse.in (yyerror): Const-ification and/or static-ization.
5326         * c-typeck.c (push_member_name): Likewise.
5327         * collect2.c (main): Likewise.
5328         * dbxout.c (dbxout_parms): Likewise.
5329         * diagnostic.c (format_with_decl): Likewise.
5330         * dwarf2out.c (output_ranges): Likewise.
5331         * dwarfout.c (fundamental_type_code): Likewise.
5332         * except.c (dw2_output_call_site_table): Likewise.
5333         * gcc.c (do_spec_1): Likewise.
5334         * genopinit.c (optabs): Likewise.
5335         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
5336         gen_declaration_1, handle_impent): Likewise.
5337         * protoize.c (default_include, in_system_include_dir, abspath):
5338         Likewise.
5339         * sched-vis.c (visualize_stall_cycles): Likewise.
5340         * sdbout.c (plain_type_1, sdbout_end_function,
5341         sdbout_end_epilogue): Likewise.
5342         * varasm.c (decode_reg_name): Likewise.
5343
5344         * 1750a.c (mod_regno_adjust): Likewise.
5345         * alpha.c (alpha_write_one_linkage,
5346         unicosmk_output_default_externs): Likewise.
5347         * arm.c (arm_condition_codes): Likewise.
5348         * arm.h (arm_condition_codes): Likewise.
5349         * avr.c (output_movsisf, encode_section_info): Likewise.
5350         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
5351         Likewise.
5352         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
5353         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
5354         * m88k.c (output_function_profiler): Likewise.
5355         * mips.c (mips_output_conditional_branch): Likewise.
5356         * ns32k.c (ns32k_out_reg_names): Likewise.
5357         * ns32k.h (ns32k_out_reg_names): Likewise.
5358         * pj.c (pj_output_rval): Likewise.
5359         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
5360         * sparc.c (sparc_flat_function_prologue,
5361         sparc_flat_function_epilogue): Likewise.
5362
5363 2001-09-13  Markus Werle <numerical.simulation@web.de>
5364             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5365
5366         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
5367         Aachen University of Technology".
5368
5369 2001-09-13  Andreas Schwab  <schwab@suse.de>
5370
5371         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
5372         C99.
5373
5374 2001-09-13  Richard Henderson  <rth@redhat.com>
5375
5376         * config/alpha/alpha.c (small_symbolic_operand): New.
5377         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
5378         (some_operand, input_operand): Don't handle HIGH.
5379         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
5380         (alpha_expand_mov): Likewise.
5381         (print_operand) [H]: Just print HIGH symbol.
5382         (print_operand_address): Handle small data.
5383         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
5384         (TARGET_SWITCHES): Add -msmall-data/large-data.
5385         (PIC_OFFSET_TABLE_REGNUM): New.
5386         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
5387         (PREDICATE_COES): Update.
5388         * config/alpha/alpha.md (adddi_er_high): New.
5389         (adddi_er_low): Handle small data.
5390         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
5391         prefer .sdata to .rodata.
5392         (SELECT_RTX_SECTION): Likewise.
5393
5394 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
5395
5396         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
5397         defining __size_t and leaving size_t undefined.
5398
5399 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
5400
5401         * basic-block.h (expunge_block): Declare.
5402         * cfg.c (expunge_block): Remove static declaration.
5403
5404 2001-09-12  Richard Henderson  <rth@redhat.com>
5405
5406         * integrate.c (copy_insn_list): Copy label name from
5407         NOTE_INSN_DELETED_LABEL.
5408
5409 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5410
5411         * c-common.c (c_tree_code_name): Const-ification.
5412         * c-decl.c (c_decode_option): Likewise.
5413         * c-typeck.c (warn_for_assignment): Likewise.
5414         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
5415         Likewise.
5416         * cppinit.c (output_deps): Likewise.
5417         * dependence.c (dependence_string, direction_string): Likewise.
5418         * dwarf2out.c (output_ranges): Likewise.
5419         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
5420         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
5421         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
5422         standard_startfile_prefix, standard_startfile_prefix_1,
5423         standard_startfile_prefix_2, tooldir_base_prefix,
5424         standard_bindir_prefix, find_a_file): Likewise.
5425         * genattrtab.c (make_length_attrs): Likewise.
5426         * gencheck.c (tree_codes): Likewise.
5427         * genemit.c (gen_split): Likewise.
5428         * genrecog.c (special_mode_pred_table): Likewise.
5429         * graph.c (graph_ext): Likewise.
5430         * protoize (default_include): Likewise.
5431         * reload.c (reload_when_needed_name): Likewise.
5432         * sched-vis.c (visualize_stall_cycles): Likewise.
5433         * tlink.c (recompile_files): Likewise.
5434         * toplev.c (decode_g_option): Likewise.
5435         * tradcpp.c (output_deps): Likewise.
5436         * varasm.c (decode_reg_name): Likewise.
5437
5438         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
5439         Const-ification.
5440         * arm.md: Likewise.
5441         * avr.c (avr_regnames, encode_section_info): Likewise.
5442         * c4x.c (float_reg_names): Likewise.
5443         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
5444         * elfos.h (const_section): Likewise.
5445         * i386.c (ix86_comp_type_attributes): Likewise.
5446         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
5447         * ia64/aix.h (UNIQUE_SECTION): Likewise.
5448         * ia64.c (type_names): Likewise.
5449         * m68hc11.c (reg_class_names): Likewise.
5450         * m88k.c (m_options): Likewise.
5451         * mips.c (mips_output_conditional_branch, mips_unique_section):
5452         Likewise.
5453         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5454         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
5455         ultra_code_names): Likewise.
5456         * sparc.h (OVERRIDE_OPTIONS): Likewise.
5457
5458 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
5459
5460         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
5461         Use --fatal-warnings option for gas.
5462         * configure: Rebuilt.
5463
5464 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5465
5466         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
5467
5468 2001-09-11  Jim Wilson  <wilson@redhat.com>
5469
5470         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
5471
5472 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5473
5474         * builtins.c (c_strlen): Treat an offset too large for a
5475         HOST_WIDE_INT as out of range.
5476
5477 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
5478
5479         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
5480         (EDGE_CRITICAL_P): New predicate.
5481         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
5482         handling.
5483         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
5484         (dump_edge_info): Remove "crit".
5485         * cfganal.c (mark_critical_edges): Kill.
5486         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
5487         * cfgcleanup.c (cleanup_cfg): Likewise.
5488         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
5489         (find_spanning_tree): Likewise.
5490         * reg-stack.c (convert_regs_1): Likewise.
5491         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
5492
5493         * basic-block.h (create_basic_block_structure): New.
5494         (create_basic_block): Update prototype.
5495         (force_nonfallthru): New.
5496         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
5497         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
5498         handle updating of block_for_insn, creating of empty BBs and BBs at
5499         the end of INSN chain.
5500         (create_basic_block): New function.
5501         (split_block): Use create_basic_block.
5502         (force_nonfallthru_and_redirect): Break out from ...; cleanup
5503         (redirect_edge_and_branch_force): ... here.
5504         (force_nonfallthru): New.
5505         (split_edge): Rewrite to use force_nonfallthru and create_block.
5506         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
5507         (find_basic_blocks): Free basic_block_for_insn.
5508         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
5509
5510         * cfg.c: Fix formating.
5511         * cfgcleanup.c: Fix formating.
5512         (merge_blocks, tail_recursion_label_p): Return bool.
5513         (merge_blocks_move_predecessor_nojumps,
5514          merge_blocks_move_successor_nojumps): Return void.
5515
5516 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
5517
5518         * configure.in: Check whether assembler supports section merging.
5519         * config.in: Rebuilt.
5520         * configure: Rebuilt.
5521         * varasm.c (variable_section, output_constant_pool): Pass alignment
5522         to SELECT_SECTION and SELECT_RTX_SECTION.
5523         (mergeable_string_section): New.
5524         (mergeable_constant_section): New.
5525         (default_elf_asm_named_section): Output SECTION_MERGE and
5526         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
5527         * output.h (mergeable_string_section): New.
5528         (mergeable_constant_section): New.
5529         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
5530         * toplev.c (flag_merge_constants): New.
5531         (f_options): Add -fmerge-constants and -fmerge-all-constants
5532         options.
5533         (toplev_main): Default to -fno-merge-constants if not optimizing.
5534         * flags.h (flag_merge_constants): Add extern.
5535         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
5536         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
5537         argument.
5538         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
5539         Define if assembler has working .subsection -1 support.
5540         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
5541         Put constant into special SHF_MERGE sections if the linker should
5542         attempt to merge duplicates.
5543         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
5544         macro argument.
5545         Put constant into special SHF_MERGE sections if the linker should
5546         attempt to merge duplicates.
5547         * config/alpha/elf.h: Likewise.
5548         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
5549         has working .subsection -1 support.
5550         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
5551         SELECT_SECTION.
5552         * config/svr3.h: Likewise.
5553         * config/darwin.h: Likewise.
5554         * config/arm/aof.h: Likewise.
5555         * config/arm/linux-elf.h: Likewise.
5556         * config/avr/avr.h: Likewise.
5557         * config/c4x/c4x.h: Likewise.
5558         * config/d30v/d30v.h: Likewise.
5559         * config/i386/dgux.h: Likewise.
5560         * config/i386/osfrose.h: Likewise.
5561         * config/i386/sco5.h: Likewise.
5562         * config/i386/svr3gas.h: Likewise.
5563         * config/ia64/aix.h: Likewise.
5564         * config/m32r/m32r.h: Likewise.
5565         * config/m68k/m68k.h: Likewise.
5566         * config/m88k/dgux.h: Likewise.
5567         * config/m88k/m88k.h: Likewise.
5568         * config/mcore/mcore-pe.h: Likewise.
5569         * config/mips/mips.h: Likewise.
5570         * config/pa/pa.h: Likewise.
5571         * config/pa/pa-linux.h: Likewise.
5572         * config/romp/romp.h: Likewise.
5573         * config/rs6000/sysv4.h: Likewise.
5574         * config/rs6000/xcoff.h: Likewise.
5575         * config/s390/linux.h: Likewise.
5576         * config/sparc/sparc.h: Likewise.
5577         * config/sparc/sysv4.h: Likewise.
5578         * config/stormy16/stormy16.h: Likewise.
5579         * config/v850/v850.h: Likewise.
5580         * config/vax/vms.h: Likewise.
5581         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
5582         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
5583         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
5584         default_elf_asm_named_section for SHF_MERGE sections.
5585
5586 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
5587
5588         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
5589         is OK.
5590
5591 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5592
5593         * c-common.c (split_specs_attrs): Allow for empty attributes with
5594         empty TREE_PURPOSE.  Fixes PR c/4294.
5595
5596 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
5597
5598         * basic-block.h (cached_make_edge, make_single_succ): New.
5599         (make_edge): Remove first parameter.
5600         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
5601         * cfg.c (cached_make_edge): Rename from make_edge; return newly
5602         created edge; use obstack allocation.
5603         (make_edge, make_single_succ_edge): New.
5604         (first_removed_edge): New static variable.
5605         (init_flow): Initialize first_removed_edge and n_edges.
5606         (clear_edges): Use remove_edge.
5607         (flow_delete_block): Likewise.
5608         (remove_edge): Add removed edges to the removed edges list.
5609         (split_block, redirect_edge_and_branch_force, split_edge):
5610         Use make_edge.
5611         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
5612         (add_noreturn_fake_exit_edges): Likewise.
5613         (connect_infinite_loops_to_exit): Liekwise.
5614         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
5615         Use cached_make_edge.
5616         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
5617         * profile.c (branch_prob): Update make_edge call.
5618         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5619
5620 2001-09-11  Richard Henderson  <rth@redhat.com>
5621
5622         * config/alpha/alpha.c: Tidy formatting.
5623         (local_symbolic_operand): Verify mode.
5624         (alpha_sa_mask): Ignore unicos for eh_return.
5625         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
5626         * config/alpha/alpha.md (umk divsi patterns): Remove.
5627         (extendsfdf2): Remove unicos check.
5628         (tablejump): Merge vms and unicos code; always use direct set
5629         plus label_ref use.
5630
5631 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5632
5633         * config.gcc (alpha*-*-unicosmk*): New target.
5634
5635         * config/alpha/alpha-protos.h (symbolic_operand,
5636         unicosmk_add_call_info_word, unicosmk_add_extern,
5637         unicosmk_defer_case_vector, unicosmk_unique_section,
5638         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
5639         unicosmk_asm_file_start, unicosmk_asm_file_end,
5640         unicosmk_output_common): Declare.
5641
5642         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
5643         direct_return, function_arg, alpha_va_start, alpha_va_arg,
5644         alpha_does_function_need_gp, alpha_end_function): Support Cray
5645         Unicos/Mk.
5646         (alpha_init_machine_status, alpha_mark_machine_status,
5647         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
5648         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
5649         unicosmk_asm_named_section, unicosmk_insert_attributes,
5650         unicosmk_section_type_flags, symbolic_operand,
5651         unicosmk_output_module_name, unicosmk_output_default_externs,
5652         unicosmk_output_dex, unicosmk_output_externs,
5653         unicosmk_output_addr_vec, unicosmk_ssib_name,
5654         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
5655         unicosmk_asm_file_end, unicosmk_output_common,
5656         unicosmk_section_type_flags, unicosmk_unique_section,
5657         unicosmk_add_call_info_word, unicosmk_text_section,
5658         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
5659         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
5660         unicosmk_dex_count, unicosmk_special_name): New.
5661         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
5662         TARGET_ABI_UNICOSMK.
5663         (get_aligned_mem, alpha_expand_unaligned_load,
5664         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
5665         alpha_expand_unaligned_store_words): Support big-endian mode.
5666         (print_operand): Likewise. New format specifier 't'. Use
5667         TARGET_AS_SLASH_BEFORE_SUFFIX.
5668         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
5669         (alpha_pv_save_size): Update with above change.
5670         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
5671         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
5672         Unicos/Mk.
5673
5674         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
5675         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
5676         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
5677         (EXTRA_CONSTRAINT): New constraint 'U'.
5678         (PREDICATE_CODES): Add symbolic_operand.
5679
5680         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
5681         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
5682         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
5683         (integer division and modulus patterns): Split in default and
5684         Unicos/Mk versions.
5685         (*divmodsi_internal, *divmoddi_internal): Disable for
5686         TARGET_ABI_UNICOSMK.
5687         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
5688         little-endian and big-endian versions.
5689         (ext, ins, msk): Likewise.
5690         (extv, extzv, insv): Support big-endian mode.
5691         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
5692         (call_umk, call_value_umk, *call_umk, tablejump_umk,
5693         *tablejump_umk_internal, *call_value_umk): New.
5694         (*movdi_nofix): Add pattern for loading an address into a register on
5695         TARGET_ABI_UNICOSMK.
5696         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
5697         (umk_mismatch_args, arg_home_umk): New.
5698         (various insns): Don't use mov, fmov, nop, fnop and unop.
5699         (realign): Support TARGET_ABI_UNICOSMK.
5700
5701         * config/alpha/unicosmk.h: New file.
5702         * config/alpha/t-unicosmk: New file.
5703
5704         * fixinc/inclhack.def (unicosmk_restrict): New.
5705         * fixinc/fixincl.x: Regenerate.
5706
5707         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
5708         (wchar_t): Check for and define __WCHAR_T__.
5709
5710 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
5711
5712         * combine.c (simplify_shift_const): Treat shifts by the mode
5713         size as undefined.
5714
5715 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5716
5717         * cpphash.h (struct tokenrun): New.
5718         (struct cpp_context): New member bol.
5719         (struct cpp_reader): New members.
5720         (_cpp_init_tokenrun): New.
5721         * cppinit.c (cpp_create_reader): Set up the token runs.
5722         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
5723         (lex_token): New internalised version of _cpp_lex_token.  Don't
5724         handle directives or the multiple include opimisation here any
5725         more.  Simply lex a token.
5726         * cpplib.c (run_directive): Clear bol.
5727         (_cpp_pop_buffer): Set bol.
5728         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
5729         arguments.
5730
5731 2001-09-11  Michael Meissner  <meissner@redhat.com>
5732
5733         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
5734         give an error if the user uses -mfp32.
5735         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
5736         default options.
5737         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
5738         floating point register size.
5739         (EXTRA_SPECS): Add CPP_FPR_SPEC.
5740
5741         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
5742         HOST_WIDE_INT_PRINT_DEC to properly print the result of
5743         int_size_in_bytes.
5744         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
5745         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
5746
5747 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
5748
5749         * dbxout.c (dbxout_parms): Fix typo in comment.
5750         * unroll.c (loop_find_equiv_value): Ditto.
5751         * toplev.c (rest_of_compilation): Ditto.
5752         * loop.c (scan_loop): Ditto.
5753         * dwarf2out.c (struct dw_fde_struct): Ditto.
5754
5755 2001-09-10  Zack Weinberg  <zackw@panix.com>
5756
5757         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
5758         copying identifier when we're just going to throw it away.
5759         (parse_identifier_slow): New routine to handle abnormal cases.
5760         (_cpp_lex_token): Update call site.
5761
5762         * hashtable.c (ht_lookup): Don't assume that the string we've
5763         been given is NUL-terminated.
5764         * system.h: #define __builtin_expect(a, b) to (a) if not
5765         GCC >=3.0.
5766
5767 2001-09-10  Michael Meissner  <meissner@redhat.com>
5768
5769         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
5770         binutils, gdb.
5771
5772 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
5773
5774         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
5775
5776 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5777
5778         * builtins.c (c_getstr): Correct thinko in last change and further
5779         cleanup.
5780
5781 2001-09-10  Tim Freeman <tim@fungibole.com>
5782
5783         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
5784         into varray's and register them as roots with the garbage
5785         collector so they are not collected too soon.
5786
5787 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
5788
5789         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
5790         New.
5791         * basic-block.h (flow_obstack, label_value_list,
5792         tail_recursion_label_list): Declare
5793         (tidy_fallthru_edges): Declare.
5794         (expunge_block, last_loop_beg_note): Delete.
5795         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
5796         * cfg.c: New file
5797         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
5798         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
5799         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
5800         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
5801         expunge_block, flow_delete_block, compute_bb_for_insn,
5802         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
5803         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
5804         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
5805         try_redirect_by_replacing_jump, last_loop_beg_note,
5806         redirect_edge_and_branch, redirect_edge_and_branch_force,
5807         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
5808         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
5809         commit_edge_insertions, dump_flow_info, debug_flow_info,
5810         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
5811         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
5812         Move here from flow.c
5813         * cfganal.c: New file.
5814         (forwarder_block_p, can_fallthru, mark_critical_edges,
5815          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
5816          find_unreachable_blocks, create_edge_list, free_edge_list,
5817          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
5818          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
5819          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
5820          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
5821          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
5822          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
5823         Move here from flow.c
5824         * cfgbuild.c: New file
5825         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
5826          make_edges, find_basic_blocks_1, find_basic_blocks,
5827          find_sub_basic_blocks): Move here from flow.c
5828         * cfgcleanup.c: New file.
5829         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
5830          merge_blocks_move_predecessor_nojumps,
5831          merge_blocks_move_successor_nojumps, merge_blocks,
5832          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
5833          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
5834         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
5835         if succeeded.
5836         * cfgloop.c: New file
5837         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
5838          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
5839          flow_loop_exit_edges_find, flow_loop_nodes_find,
5840          flow_loop_pre_header_scan, flow_loop_pre_header_find,
5841          flow_loop_tree_node_add, flow_loops_tree_build,
5842          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
5843          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
5844         Move here from flow.c
5845         * flow.c: Remove everything moved elsewhere
5846         * output.h (cleanup_cfg): Return bool.
5847
5848         * bb-reorder.c (reorder_block_def): Remove 'index'.
5849         (insert_intra_1): Add argument BB, set block for new note.
5850         (make_reorder_chain): Do not depdent on BB indexes.
5851         (make_reorder_chain_1): Do not use BB indexes.
5852         (label_for_bb): Likewise; set BB for new insn.
5853         (emit_jump_to_block_after): Likewise.
5854         (fixup_reoder_chain): Sanity check that all basic blocks
5855         are chained; verify newly created insn chain; remove
5856         undocnitional jump simplifying; Do not use BB indexes;
5857         properly initialize count and frequency information;
5858         dump reordered sequence.
5859         (insert_intra_bb_scope_notes): update call of insert_intra_1.
5860         (insert_inter_bb_scope_notes): Set block for new insn.
5861         (reorder_basic_blocks): Dump flow info before reoredering.
5862
5863 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5864
5865         * alias.c (clear_reg_alias_info): Use K&R format definition.
5866         Avoid unsigned warning.
5867         * builtins.c: Use "unsigned int", not "unsigned".
5868         (target_char_cast): Use host_integerp and tree_low_cst.
5869         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
5870         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
5871         (c_getstr): Likewise.
5872         (std_expand_builtin_va_arg): Use int_size_in_bytes.
5873         (builtin_memcpy_read_str): Avoid unsigned warning.
5874         (expand_builtin_memcpy): Alignments are unsigned.
5875         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
5876         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
5877         * predict.c (expensive_function_p): LIMIT now unsigned.
5878         * resource.c (mark_target_live_regs): Make some vars unsigned.
5879         * sdbout.c: Use "unsigned int", not "unsigned".
5880         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
5881         (sdbout_source_line): Likewise.
5882         (sdbout_record_type_name): Remove "const" for NAME declaration.
5883         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
5884
5885 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
5886
5887         * calls.c (store_one_arg): Expand comment.
5888
5889 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5890
5891         * calls.c (store_one_arg): Make sure that the entire argument is
5892         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
5893
5894 2001-09-09  Richard Henderson  <rth@redhat.com>
5895
5896         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
5897
5898 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
5899
5900         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
5901
5902 2001-09-09  Richard Henderson  <rth@redhat.com>
5903
5904         * config/alpha/alpha.c (alpha_next_sequence_number): New.
5905         (alpha_this_literal_sequence_number): New.
5906         (alpha_this_gpdisp_sequence_number): New.
5907         (some_operand, input_operand): Add HIGH.
5908         (local_symbolic_operand): New.
5909         (alpha_encode_section_info): New.
5910         (alpha_legitimate_address_p): Allow LO_SUM.
5911         (alpha_legitimize_address): Generate HIGH+LO_SUM.
5912         (alpha_expand_mov): Likewise.
5913         (secondary_reload_class): Check memory_operand not general_operand
5914         for FP_REGS test.
5915         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
5916         (alpha_expand_unaligned_store): Likewise.
5917         (alpha_expand_unaligned_load_words): Likewise.
5918         (alpha_expand_unaligned_store_words): Likewise.
5919         (alpha_expand_block_clear): Likewise.
5920         (print_operand): Handle %#, %*, %H.
5921         (print_operand_address): Handle LO_SUM.
5922         (find_lo_sum): New.
5923         (alpha_does_function_need_gp): Use it.
5924         (alpha_expand_block_move): Fix signed compare warnings.
5925         (alpha_sa_mask, alpha_align_insns): Likewise.
5926         * config/alpha/alpha-protos.h: Update.
5927         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
5928         (MASK_EXPLICIT_RELOCS): New.
5929         (TARGET_SWITCHES): Add -mexplicit-relocs.
5930         (EXTRA_CONSTRAINT): Add 'T'.
5931         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
5932         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
5933         (ENCODE_SECTION_INFO): Out line.
5934         (REDO_SECTION_INFO_P): New.
5935         (STRIP_NAME_ENCODING): New.
5936         (ASM_OUTPUT_LABELREF): New.
5937         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
5938         (PREDICATE_CODES): Update.
5939         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
5940         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
5941         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
5942         builtin_setjmp_receiver_er, exception_receiver_1_er,
5943         call_value_osf_1_er): New patterns.
5944         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
5945         (movqi, movhi, movsi): Add explicit $31 base register to lda.
5946         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
5947         (FINAL_PRESCAN_INSN): New.
5948
5949 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
5950
5951         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
5952
5953 2001-09-08  Andreas Jaeger  <aj@suse.de>
5954
5955         * i386.h (TARGET_SWITCHES): Fix description.
5956
5957 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
5958
5959         * rs6000.c (num_insns_constant): Compute number of instructions
5960         more accurately.
5961
5962         * doc/install.texi: Explain AIX exception handling work-around.
5963         Update URL for AIX fixes.
5964
5965 2001-09-07  Jim Wilson  <wilson@redhat.com>
5966
5967         * alias.c (clear_reg_alias_info): New.
5968         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
5969         * rtl.h (clear_reg_alias_info): Declare.
5970
5971 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5972
5973         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
5974         available.
5975         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
5976         (m16m,edivm,emulm): Change declaration to match definition.
5977
5978 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
5979
5980         * reload.c (push_reload): Check for subreg_lowpart_p instead of
5981         SUBREG_BYTE being 0 when determining if the inner part of a subreg
5982         can be reloaded.
5983
5984 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5985
5986         * c-common.c (signed_or_unsigned_type): Handle machine mode types
5987         which have no corresponding C type.
5988         * fold_const.c (target_isinf,target_isnan,target_negative): Update
5989         the representation of 64-bit doubles to work with 64-bit ints.
5990
5991 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
5992
5993         * config/mips/mips.c (override_options): Do not override ISA when ABI
5994         specified if MIPS_CPU_STRING_DEFAULT was specified.
5995
5996 2001-09-07  Richard Henderson  <rth@redhat.com>
5997
5998         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
5999         (express_from_1): Wrap lines.
6000         * rtlanal.c (commutative_operand_precedence): Rename from
6001         operand_preference; export.
6002         * rtl.h: Declare it.
6003         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
6004         (simplify_binary_operation): Invoke simplify_plus_minus on
6005         (CONST (PLUS ...)) as well.
6006         (struct simplify_plus_minus_op_data): New.
6007         (simplify_plus_minus_op_data_cmp): New.
6008         (simplify_plus_minus): Use them.  Avoid infinite recursion with
6009         simplify_binary_operation wrt CONST.
6010
6011 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
6012
6013         * h8300-protos.h (general_operand_dst_push): Remove.
6014         * h8300.c (general_operand_dst_push): Likewise.
6015         * h8300.h (OK_FOR_T): Likewise.
6016         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
6017         * h8300.md (pushqi_h8300): New.
6018         (pushqi_h8300hs): Likewise.
6019         (pushqi): Likewise.
6020         (pushhi_h8300): Likewise.
6021         (pushhi_h8300hs): Likewise.
6022         (pushhi): Likewise.
6023
6024 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6025
6026         * genattrtab.c (attr_printf): First arg is unsigned.
6027         Clean up formatting of callers.
6028
6029 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
6030
6031         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
6032         registers.
6033
6034 2001-09-07  Andreas Jaeger  <aj@suse.de>
6035
6036         * i386.h (TARGET_SWITCHES): Fix descriptions.
6037
6038 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6039
6040         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
6041
6042 2001-09-06  Ira Ruben  <ira@apple.com>
6043
6044         Remove OP_IDENTIFIER.
6045         * tree.def (OP_IDENTIFIER): Remove.
6046         * tree.c (tree_node_kind enum): Remove op_id_kind.
6047         (tree_node_kind_names): Remove "op_identifiers".
6048         (make_node): Remove OP_IDENTIFIER test.
6049         (build_op_identifier): Removed because it isn't being used.
6050         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
6051         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
6052
6053 2001-09-06  Richard Henderson  <rth@redhat.com>
6054
6055         * simplify-rtx.c (simplify_binary_operation): Revert last change.
6056
6057 2001-09-06  Richard Henderson  <rth@redhat.com>
6058
6059         * simplify-rtx.c (simplify_binary_operation): Simplify contents
6060         of CONST.
6061
6062 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6063
6064         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
6065         number used for CR register.
6066
6067 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
6068                           Joern Rennecke (amylaar@cygnus.com)
6069
6070         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
6071         * h8300.c (initial_offset): Handle offset between RP and FP.
6072         (h8300_return_addr_rtx): New function.
6073         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
6074         return register.
6075         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
6076         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6077         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
6078         (CAN_ELIMINATE, REGISTER_NAMES):
6079         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
6080
6081 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
6082
6083         Remove TYPE_NONCOPIED_PARTS.
6084         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
6085         (struct tree_type): Remove noncopied_parts.
6086         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
6087         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
6088         (fixed_type_p): Remove.
6089         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
6090         (expand_expr, MODIFY_EXPR): Likewise.
6091         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
6092         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
6093
6094 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
6095
6096         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
6097         compiler warnings.
6098         (mask64_operand): Likewise.
6099         (includes_rldic_lshift_p): Likewise.
6100         (includes_rldicr_lshift_p): Likewise.
6101
6102 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
6103
6104         * objc/objc-act.c (build_message_expr): If a class method cannot
6105         be found, do not issue a warning if a corresponding instance
6106         method exists in the root class.
6107
6108 2001-09-05  Richard Henderson  <rth@redhat.com>
6109
6110         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
6111
6112 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
6113
6114         * function.c (ggc_mark_struct_function): Mark f->outer.
6115         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
6116         * integrate.c (output_inline_function): ... not here.
6117
6118 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
6119
6120         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
6121
6122         * i386.c (size_cost): New static variable.
6123         (override_function): Use size_cost when -Os is specified.
6124
6125         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
6126         properly;  Use current_function_calls_eh_return.
6127         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
6128         use leave to avoid dependency chain.
6129
6130         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
6131         get BB loop_depth instead of computing it from LOOP notes.
6132
6133         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
6134
6135 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6136
6137         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6138         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6139         UNALIGNED_DOUBLE_INT_ASM_OP): Define
6140
6141 2001-09-05  Jeffrey A Law  (law@cygnus.com)
6142             Jason Merrill (jason@redhat.com)
6143
6144         * stor-layout.c (layout_type): Complain if an array's size can
6145         not be represented in a size_t.
6146
6147         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
6148
6149 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
6150
6151         * gcc.c: (process_command) Add parentheses around assignment
6152         used as truth value.
6153
6154 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
6155
6156         * config/mips/mips.c (save_restore_insns): Don't mark any register
6157         save slots as unchanging if current_function_calls_eh_return.
6158
6159 2001-09-05  Richard Henderson  <rth@redhat.com>
6160
6161         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
6162         * config/alpha/alpha-protos.h: Declare it.
6163         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
6164         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
6165         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
6166         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
6167         (REG_OK_FOR_BASE_P): Select one of the above.
6168
6169 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
6170
6171         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
6172         (crti.o): Prefix name of object file with $(T).
6173         (crtn.o): Likewise.
6174
6175 2001-09-05  David S. Miller  <davem@redhat.com>
6176
6177         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
6178         * config/sparc/linux64.h: Likewise.
6179
6180 2001-09-05  Andreas Jaeger  <aj@suse.de>
6181
6182         * doc/invoke.texi (i386 Options): -mwide-multiply is not
6183         available anymore, remove the documentation.
6184         (i386 Options): Fix typo, cleanup index entries.
6185
6186         * prefix.c (concat): Remove, we can use the version from liberty.
6187
6188 2001-09-05  Richard Henderson  <rth@redhat.com>
6189
6190         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
6191         New functions split out of md file expanders.
6192         * config/alpha/alpha-protos.h: Declare them.
6193         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
6194
6195 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6196
6197         * cppmacro.c (funlike_invocation_p): No need to restore context.
6198
6199 2001-09-04  Richard Henderson  <rth@redhat.com>
6200
6201         * reload.c (push_reload): Export.
6202         * reload.h (push_reload): Declare it.
6203
6204         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
6205         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6206         * config/alpha/alpha.c (alpha_legitimize_address): New.
6207         (alpha_legitimize_reload_address): Likewise.
6208         * config/alpha/alpha-protos.h: Declare them.
6209
6210 2001-09-04  Stan Shebs  <shebs@apple.com>
6211
6212         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
6213         * config/darwin.c (machopic_stub_name): Account for internally
6214         generated lib calls such as memcpy.
6215
6216 2001-09-04  Richard Henderson  <rth@redhat.com>
6217
6218         * unwind.h (_UA_END_OF_STACK): New flag.
6219         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
6220
6221 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
6222
6223         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
6224
6225 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
6226
6227         * config/mips/mips.c (save_restore_insns): Change base_offset to
6228         fp_offset in second call to mips_emit_frame_related_store.
6229
6230 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
6231
6232         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
6233         sometimes be represented as a NOTE of type
6234         NOTE_INSN_DELETED_LABEL.
6235         (Insns): Document NOTE_INSN_DELETED_LABEL.
6236
6237 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
6238
6239         * c-common.h (tree_dump_index): Add more comments.
6240         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
6241         (dump_option_value_info): New struct.
6242         (dump_options): New array.
6243         (dump_switch_p): Parse switch options symbolically.
6244         * doc/invoke.texi (-fdump-ast): Rename to ...
6245         (-fdump-tree): ... here. Document that options are symbolic, and
6246         not all are applicable.
6247
6248 2001-09-04  David S. Miller  <davem@redhat.com>
6249
6250         * config/sparc/sparc.md (define_splits): Kill constraints.
6251
6252         Cleanup redundant and unused insn attributes.
6253         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
6254         binary, and move.  Mark ialu as default.
6255         (commented out define_function_unit "alu"): Kill.
6256         (define_attr "use_clobbered"): Kill.
6257         (whole file): Kill address insn type references.  Replace
6258         all unary/binary/move references with ialu.
6259         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
6260         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
6261         TYPE_IALU.
6262
6263         Simplify length insn attribute and make more judicious use
6264         of insn attribute defaulting.
6265         * config/sparc/sparc.md (all insns with length > one): Mark as
6266         insn type multi if real instructions, else use default if
6267         it is a forced splitter.
6268         (all insns with length == one): Use default insn length.
6269         (all insns of type ialu): Use default insn type.
6270
6271         Fix erroneous insn attribute settings.
6272         (addx): Set insn type to misc.
6273         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
6274         const_umulsidi3_sp64): Set insn type to imul.
6275
6276         Track SFmode vs DFmode insns according to UltraSPARC
6277         scheduling rules.
6278         * config/sparc/sparc.md ("fptype"): New attribute, default
6279         to "single".
6280         (all DFmode single insns): Mark as fptype "double".
6281
6282 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
6283
6284         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
6285
6286 2001-09-03  Richard Henderson  <rth@redhat.com>
6287
6288         * function.h (struct function): Add arg_pointer_save_area_init.
6289         * function.c (expand_function_end): Init arg_pointer_save_area.
6290         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
6291         when called from a nested function.
6292
6293 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
6294
6295         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
6296         is enabled.
6297
6298 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
6299
6300         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
6301
6302 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
6303
6304         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
6305         (emit_push_insn): Use specified padding direction when
6306         STACK_PUSH_CODE is POST_INC.
6307
6308         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
6309
6310 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6311
6312         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
6313
6314 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6315
6316         * cppinit.c (cpp_start_read): Free the imacros list as we
6317         traverse it.  Don't free the chains before returning.
6318         (_cpp_push_next_buffer): Only try pushing buffers if we've
6319         completed -imacros handling.
6320
6321 2001-08-31  Eric Christopher  <echristo@redhat.com>
6322
6323         * gcc.c (handle_braces): Add explaination for abort.
6324
6325 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
6326
6327         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
6328         move adjustment of bitpos instead.
6329
6330 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
6331
6332         * function.c: Remove all_functions.  Make outer_function_chain
6333         static.
6334         (init_function_start): Don't add new function structure to
6335         all_functions.
6336         (find_function_data, push_function_context_to,
6337         pop_function_context_from, put_var_into_stack,
6338         trampoline_address): Update for changed structure element names.
6339         (push_function_context_to): Disentangle.
6340         (free_after_compilation): Also free F.
6341         (expand_dummy_function_end): Don't free cfun here.
6342         (put_var_into_stack): Comment why we can't use find_function_data here.
6343         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
6344         (mark_function_chain): Split into maybe_mark_struct_function and
6345         ggc_mark_struct_function.  Export the latter.
6346         (init_function_once): Mark from cfun and outer_function_chain;
6347         not all_functions.
6348
6349         * function.h (struct function): Kill next_global.  Rename next
6350         to outer.  All users updated to match.
6351         (all_functions, outer_function_chain): Don't declare.
6352
6353         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
6354         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
6355         don't touch f->inlinable, after calling rest_of_compilation.
6356
6357         * tree.h: Forward-declare struct function.  Prototype
6358         ggc_mark_struct_function.
6359
6360 2001-08-31  Kazu Hirata  <kazu@hxi.com>
6361
6362         * config/h8300/h8300.md (*andorhi3): Fix typos.
6363
6364 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6365
6366         * calls.c (emit_library_call_value): Don't use a fixed
6367         argument after VA_CLOSE, i.e. out of scope in traditional C.
6368
6369         * emit-rtl.c (gen_rtvec): Likewise.
6370
6371 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6372
6373         * Makefile.in (c-pragma.o): Depend on output.h.
6374         (reorg.o): Depend on except.h.
6375
6376         * c-pragma.c: Include output.h.
6377
6378         * reorg.c: Include except.h.
6379
6380         * unwind-dw2.c: Call __builtin_alloca, not alloca.
6381
6382 2001-08-31  Richard Henderson  <rth@redhat.com>
6383
6384         * sched-deps.c (add_dependence): Don't elide dependency if the
6385         conditional used by insn is modified in elem.
6386
6387 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
6388
6389         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
6390
6391 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
6392
6393         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
6394         dump_switch_p.
6395
6396 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
6397
6398         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
6399         function.
6400         (stormy16_asm_out_constructor): New function.
6401         (TARGET_ASM_CONSTRUCTOR): Define.
6402         (TARGET_ASM_DESTRUCTOR): Define.
6403
6404 2001-08-31  Andreas Jaeger  <aj@suse.de>
6405
6406         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
6407         * loop.c (add_label_notes): Likewise.
6408         * reload.c (find_reloads): Likewise.
6409         * config/sh/sh.c (machine_dependent_reorg): Likewise.
6410
6411 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
6412
6413         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
6414         code here.  Take _Unwind_{W,Sw}ord*.
6415         (read_encoded_value_with_base): Use them.
6416         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
6417         words.
6418         (extract_cie_info): Simplify read_?leb128 handling.
6419         (execute_stack_op, execute_cfa_program): Likewise.
6420         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
6421
6422 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
6423
6424         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
6425         the frame pointer to pop the stack if convenient.
6426
6427         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
6428         Don't use post-increment before combine.
6429         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
6430         a call-saved register.
6431
6432 2001-08-31  Andreas Jaeger  <aj@suse.de>
6433
6434         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
6435         code was correct.
6436
6437 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
6438
6439         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
6440         not DIV/MOD, of course.
6441
6442 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
6443
6444         * rtl.def: Undo my patch commited 2001-08-27.
6445
6446         * genattrtab.c: Ditto.
6447
6448         * rtl.h: Ditto.
6449
6450         * sched-int.h: Ditto.
6451
6452         * target-def.h: Ditto.
6453
6454         * target.h: Ditto.
6455
6456         * haifa-sched.c: Ditto.
6457
6458         * sched-rgn.c: Ditto.
6459
6460         * sched-vis.c: Ditto.
6461
6462         * Makefile.in: Ditto.
6463
6464         * doc/md.texi: Ditto.
6465
6466         * doc/tm.texi: Ditto.
6467
6468         * doc/contrib.texi: Ditto.
6469
6470         * doc/gcc.texi: Ditto.
6471
6472         * genattrtab.h: Remove it.
6473
6474         * genautomata.c: Remove it.
6475
6476         * genattr.c: Undo my patch and Richard Henderson's patch commited
6477         2001-08-27.
6478
6479 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
6480
6481         * config.gcc (h8300-*-elf*): New case.
6482         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
6483         (SUBTARGET_CPP_SPEC): Define.
6484         (EXTRA_SPECS): Define.
6485         (SUBTARGET_EXTRA_SPECS): Define.
6486         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
6487         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
6488
6489 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
6490
6491         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
6492         (LIB2FUNCS_EXTRA): Define.
6493         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
6494         config/h8300/fixunssfsi.c: New file.
6495
6496 2001-08-30  Kazu Hirata  <kazu@hxi.com>
6497
6498         * config/h8300/h8300.md (zero_extendqihi2): Changes to
6499         define_expand to accommodate target-specific attributes.
6500         (anonymous zero_extendqihi2 patterns): New.
6501
6502 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
6503
6504         * h8300.md (*andorhi3): New pattern.
6505
6506 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
6507
6508         * h8300.c (dosize): Fix test for "sub".
6509
6510 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
6511
6512         * c-typeck.c (pointer_diff): Try to eliminate common term before
6513         doing conversions.
6514
6515 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
6516
6517         * config/arm/arm.c (arm_compute_initial_elimination_offset):
6518         Account for the saves of the FP registers.
6519
6520         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
6521         (TEXT_SECTION_ASM_OP): Define.
6522         (INIT_SECTION_ASM_OP): Define.
6523         (FINI_SECTION_ASM_OP): Define.
6524         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
6525         (RDATA_SECTION_FUNCITON): Provide prototype.
6526
6527 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
6528
6529         * reload1.c (move2add_note_store): Correct typo checking for
6530         argument pushes.
6531
6532 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
6533
6534         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
6535         note should not be considered outside the libcall block.
6536
6537 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6538
6539         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
6540
6541 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6542
6543         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
6544
6545 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6546
6547         * config/h8300/h8300-protos.h: Add a prototype for
6548         emit_logical_op.
6549         * config/h8300/h8300.c (emit_logical_op): New.
6550         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
6551         (andsi3): Likewise.
6552         (iorhi3): Likewise.
6553         (iorsi3): Likewise.
6554         (xorhi3): Likewise.
6555         (xorsi3): Likewise.
6556
6557 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6558
6559         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
6560         comparison with rtx INTVAL.
6561         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
6562         expression.
6563         * pa.h (FUNCTION_ARG_SIZE): Likewise.
6564
6565 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6566
6567         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
6568         comment typos.
6569
6570 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6571
6572         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
6573         (reg n) to (mem (pre_dec (reg n))
6574         (anonymous movsi pattern): Likewise.
6575
6576 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6577
6578         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
6579
6580 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6581
6582         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
6583         several special constants.
6584
6585 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6586
6587         * config/h8300/lib1funcs.asm: Fix comment typos.
6588
6589 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6590
6591         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
6592         Fix format specifier warnings.
6593
6594         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
6595         inet_makeaddr, semctl): Prototype.
6596
6597         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
6598         (save_restore_insns): Use base_offset, not gp_offset.
6599
6600         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
6601         (ASM_OUTPUT_BYTE): Fix format specifier warning.
6602
6603 2001-08-29  Richard Henderson  <rth@redhat.com>
6604
6605         * bb-reorder.c (function_tail_eff_head): New.
6606         (record_effective_endpoints): Set it.
6607         (fixup_reorder_chain): Use it.
6608
6609 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6610
6611         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
6612
6613 2001-08-28  Dale Johannesen  <dalej@apple.com>
6614
6615         * config/darwin.c (machopic_function_base_name): Add const
6616         qualifier to a string.
6617         (darwin_encode_section_info): Ditto.
6618
6619 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6620
6621         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
6622         function definition.
6623
6624 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
6625
6626         * df.h (struct df): Add rts_order variable.
6627
6628         * df.c (df_visit_next_rts): New function.
6629         (df_visit_next): Renamed to df_visit_next_rc
6630         (df_analyse_1): Allocate/compute/free rts_order as well.
6631         (df_rd_global_compute): Use df_visit_next_rc instead of
6632         df_visit_next.
6633         (df_ru_global_compute): Use df_visit_next_rts instead of
6634         df_visit_next.
6635
6636         * flow.c (flow_reverse_top_sort_order_compute): New function.
6637
6638         * basic-block.h: Add prototype.
6639
6640 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
6641
6642         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
6643         blocks, the BB_REACHABLE is now set, rather than aux being
6644         non-NULL. Update the test to reflect this.
6645
6646 2001-08-28  Eric Christopher  <echristo@redhat.com>
6647
6648         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
6649         config/mips/crti.asm: Ditto.
6650
6651 2001-08-28  Eric Christopher <echristo@redhat.com>
6652             Richard Henderson <rth@redhat.com>
6653
6654         * c-pragma.h (add_weak): Move prototype from here...
6655         * output.h (add_weak): ... to here.
6656         * varasm.c (add_weak): Fix typo.
6657         * config/mips/crti.asm: New file.
6658         * config/mips/crtn.asm: Ditto.
6659         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
6660         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
6661         (INVOKE__main): Ditto.
6662         (INIT_SECTION_ASM_OP): New.
6663         (FINI_SECTION_ASM_OP): Ditto.
6664         (STARTFILE_SPEC): Add crti.
6665         (ENDFILE_SPEC): Add crtn.
6666         * config/mips/elf64.h: Same.
6667         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
6668         Remove.
6669         * config/mips/vxworks.h: Ditto.
6670         * config/mips/t-elf: Support crti and crtn.
6671
6672 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6673
6674         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
6675         INSN_LIST.
6676
6677 2001-08-28  Richard Henderson  <rth@redhat.com>
6678
6679         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
6680         (one_cmplbi2 splitter): Remove redundant test.
6681
6682 2001-08-28  Dale Johannesen  <dalej@apple.com>
6683
6684         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
6685
6686 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
6687
6688         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
6689
6690 2001-08-28  Stan Shebs  <shebs@apple.com>
6691
6692         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
6693         (UNALIGNED_SHORT_ASM_OP): Define.
6694         (UNALIGNED_INT_ASM_OP): Define.
6695
6696 2001-08-28  Will Cohen  <wcohen@redhat.com>
6697
6698         * config/rs6000/rs6000.md (store_multiple): Correct RTL
6699         generation for first set.
6700
6701 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
6702
6703         * flow.c (redirect_edge_succ_nodup): Return new edge.
6704         (try_simplify_condjump): Use new edge.
6705         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
6706
6707         * cse.c (cse_basic_block): Skip note instructions.
6708
6709 2001-08-27  Richard Henderson  <rth@redhat.com>
6710
6711         * combine.c (combine_simplify_rtx): Don't reverse condition
6712         if there is no reverse for the condition.
6713         (simplify_comparison): Don't simplify subregs from INT to FP.
6714
6715         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
6716         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
6717         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
6718         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
6719         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
6720         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
6721
6722 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
6723
6724         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
6725         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
6726         (pushqi1): New.
6727         (adddi_dilshr32, adddi_dishl32): Only data register can be
6728         source for mem destination.
6729
6730         * expmed.c (store_bit_field): Ignore adjustment to bitpos
6731         and use bitnum to decide about register move.
6732
6733 2001-08-27  Richard Henderson  <rth@redhat.com>
6734
6735         * genattr.c (main): Emit state_t even when not doing scheduling.
6736
6737 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
6738             Richard Henderson  <rth@redhat.com>
6739
6740         * gcse.c (reg_first_set, reg_last_set): Replace with ...
6741         (reg_avail_info, current_bb): ... these.
6742         (oprs_unchanged_p, record_last_reg_set_info): Use them.
6743         (compute_hash_table): Likewise.
6744
6745 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
6746
6747         * flow.c (verify_flow_info): Use checksums to verify edges.
6748
6749 2001-08-27  Richard Henderson  <rth@redhat.com>
6750
6751         * genautomata.c (expand_automata): Always create a description.
6752
6753 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
6754
6755         * optabs.c (expand_binop): Correctly handle the carry in multiword
6756         add/subtract operations.
6757
6758 2001-08-27  Fred Fish  <fnf@be.com>
6759
6760         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
6761         __SIZE_TYPE__.
6762
6763 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
6764
6765         * reload.c (find_reloads_toplev): Back out this change:
6766
6767         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
6768
6769         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
6770         mem if the address is a mode_dependent_address_p.
6771
6772 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
6773
6774         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
6775         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
6776         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
6777         RTL constructions.
6778
6779         * genattr.c (main): New variable num_insn_reservations.  Increase
6780         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
6781         pipeline hazard recognizer interface.
6782
6783         * genattrtab.h: New file.
6784
6785         * genattrtab.c: Include genattrtab.h.
6786         (attr_printf, check_attr_test, make_internal_attr,
6787         make_numeric_value): Move protypes into genattrtab.h.  Define them
6788         as external.
6789         (num_dfa_decls): New global variable.
6790         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
6791         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
6792         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
6793         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
6794
6795         * genautomata.c: New file.
6796
6797         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
6798
6799         * sched-int.h: (curr_state): Add the external definition for
6800         automaton pipeline interface.
6801         (haifa_insn_data): Add comments for members blockage and units.
6802
6803         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6804         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6805         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6806         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6807         TARGET_SCHED_DFA_POST_CYCLE_INSN,
6808         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6809         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
6810         macros.
6811         (TARGET_SCHED): Use the new macros.
6812
6813         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
6814         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
6815         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
6816         dfa_bubble): New members in gcc_target.sched.
6817
6818         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
6819         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
6820         (insn_queue): Redefine it as pointer to array.
6821         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
6822         INSN_QUEUE_SIZE.
6823         (max_insn_queue_index_macro_value): New variable.
6824         (curr_state, dfa_state_size, ready_try): New varaibles for
6825         automaton interface.
6826         (ready_element, ready_remove, max_issue): New function prototypes
6827         for automaton interface.
6828         (choose_ready): New function prototype.
6829         (insn_unit, blockage_range): Add comments.
6830         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
6831         FUNCTION_UNITS_SIZE == 0.
6832         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
6833         actual_hazard, potential_hazard): Add comments.
6834         (insn_cost): Use cost -1 as undefined value.  Remove
6835         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
6836         pipeline interface.
6837         (ready_element, ready_remove): New functions for automaton
6838         interface.
6839         (schedule_insn): Add new code for automaton pipeline interface.
6840         (queue_to_ready): Add new code for automaton pipeline interface.
6841         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
6842         (debug_ready_list): Print newline when the queue is empty.
6843         (max_issue): New function for automaton pipeline interface.
6844         (choose_ready): New function.
6845         (schedule_block): Add new code for automaton pipeline interface.
6846         Print ready list before scheduling each insn.
6847         (sched_init): Add new code for automaton pipeline interface.
6848         Initiate insn cost by -1.
6849         (sched_finish): Free the current automaton state and finalize
6850         automaton pipeline interface.
6851
6852         * sched-rgn.c: Include target.h.
6853         (init_ready_list, new_ready, debug_dependencies): Add new code for
6854         automaton pipeline interface.
6855
6856         * sched-vis.c: Include target.h.
6857         (get_visual_tbl_length): Add code for automaton interface.
6858         (target_units, print_block_visualization):  Add comments.
6859
6860         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
6861         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
6862         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
6863         (getruntime.o, genautomata.o): New entries.
6864         (genattrtab.o): Add new dependency file genattrtab.h.
6865         (genattrtab): Add new dependencies.  Link it with `libm.a'.
6866         (getruntime.o, hashtab.o): New entries for canadian cross.
6867
6868         * doc/md.texi: Description of automaton based model.
6869
6870         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
6871         Add comments.
6872         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6873         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6874         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6875         TARGET_SCHED_DFA_POST_CYCLE_INSN,
6876         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6877         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6878         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
6879         hook descriptions.
6880         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
6881         MAX_DFA_ISSUE_RATE): New macro descriptions.
6882
6883         * doc/contrib.texi: Add dfa based scheduler contribution.
6884
6885         * doc/gcc.texi: Add more information about genattrtab.
6886
6887 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
6888
6889         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
6890         an RTL basic block.
6891
6892 2001-08-27  Richard Henderson  <rth@redhat.com>
6893
6894         * function.c (expand_function_end): Don't init arg_pointer_save_area.
6895         (get_arg_pointer_save_area): New.  Create an init it here.
6896         (fix_lexical_addr): Use it.
6897         * function.h: Declare it.
6898         * builtins.c (expand_builtin_setjmp_receiver): Use it.
6899         * stmt.c (expand_nl_goto_receiver): Use it.
6900
6901 2001-08-27  Richard Henderson  <rth@redhat.com>
6902
6903         * final.c (final_scan_insn): Don't enter APP_ON mode for
6904         empty asm strings.
6905
6906         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
6907         alignment for assemble_integer for DW_EH_PE_aligned.
6908         * except.c (output_function_exception_table): Likewise.
6909
6910 2001-08-26  Andreas Jaeger  <aj@suse.de>
6911
6912         * c-tree.h: Add prototyp for c_sizeof_nowarn.
6913
6914 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
6915
6916         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
6917
6918 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
6919
6920         * config/rs6000/rs6000.c (mask_operand): Rewrite without
6921         bit-shifting loop.
6922         (mask64_operand): Likewise.
6923         (rldic_operand): Delete.
6924         (includes_lshift64_p): Delete.
6925         (includes_rldic_lshift_p): New function.
6926         (includes_rldicr_lshift_p): New function.
6927         (print_operand): Don't call rldic_operand in case 'W'.
6928         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
6929         (includes_lshift64_p): Remove.
6930         (includes_rldic_lshift_p): Declare.
6931         (includes_rldicr_lshift_p): Declare.
6932         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
6933         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
6934         Replace match_operand rldic_operand predicate with
6935         const_int_operand.  Replace includes_lshift64_p condition with
6936         includes_rldic_lshift_p.
6937         <ashldi3_internal 64 bit rldicr patterns>: New.
6938
6939 2001-08-27  Andreas Jaeger  <aj@suse.de>
6940
6941         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
6942         * errors.c: Likewise.
6943         * final.c: Likewise.
6944         * dwarf2asm.c: Likewise.
6945         * doprint.c (checkit): Likewise.
6946         * diagnostic.c: Likewise.
6947         * collect2.c: Likewise.
6948         * calls.c: Likewise.
6949         * c-semantics.c (build_stmt): Likewise.
6950         * c-format.c (status_warning): Likewise.
6951         * c-errors.c (pedwarn_c99): Likewise.
6952         * builtins.c (validate_arglist): Likewise.
6953         * config/pj/pj.c (pj_printf): Likewise.
6954         * fix-header.c: Likewise.
6955         * gcc.c: Likewise.
6956         * gcov.c (fnotice): Likewise.
6957         * gensupport.c (message_with_line): Likewise.
6958         * mips-tfile.c: Likewise.
6959         * protoize.c (notice): Likewise.
6960         * read-rtl.c (fatal_with_file_and_line): Likewise.
6961         * rtl-error.c: Likewise.
6962         * tradcpp.c: Likewise.
6963         * tree.c: Likewise.
6964         * cp/tree.c (build_min_nt): Likewise.
6965         (build_min): Likewise.
6966         * cp/lex.c: Likewise.
6967         * cp/errfn.c: Likewise.
6968         * cp/rtti.c (create_pseudo_type_info): Likewise.
6969
6970 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
6971
6972         * df.c (df_uses_record): Return after recording all uses
6973         in ASM_OPERANDS.
6974
6975 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
6976
6977         * df.c (df_insn_modify): Realloc the INSN table here, if
6978         necessary, here, too.
6979
6980 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
6981
6982         * config/mips/mips.c (mips_function_value): Handle complex return
6983         values.
6984
6985 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
6986
6987         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
6988         unshared.
6989         * reload.c (make_memloc): Copy result if it is still
6990         reg_equiv_memory_loc[regno] on return.
6991         (subst_reloads) [ENABLE_CHECKING]: Check that none of
6992         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
6993         reg_equiv_mem are modified by the substitutions.
6994
6995 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
6996
6997         * predict.c (expensive_function_p): New.
6998         * rtl.h (expensive_function_p): Declare.
6999         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
7000         (use_fast_prologue_epilogue): New static variable.
7001         (expand_prologue): Set it; emit short prologues if unset.
7002         (expand_epilogue): Likewise.
7003
7004 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
7005
7006         * config.gcc: Add stormy16-*-elf case.
7007         * config/stormy16/stormy-abi: New file.
7008         * config/stormy16/stormy16-lib2.c: New file.
7009         * config/stormy16/stormy16-protos.h: New file.
7010         * config/stormy16/stormy16.c: New file.
7011         * config/stormy16/stormy16.h: New file.
7012         * config/stormy16/stormy16.md: New file.
7013         * config/stormy16/t-stormy16: New file.
7014
7015 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
7016
7017         * i386.h (no-accumulate-outgoing-args): Use proper mask.
7018
7019 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
7020
7021         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
7022         descriptor members are pointer size, not constant 4.
7023         * config/rs6000/rs6000.md (define_splits): Remove more unused
7024         constraints.
7025
7026 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7027
7028         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
7029
7030 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
7031
7032         * cp/rtti.c (VPARAMS): Fix parameter.
7033
7034 2001-08-24  Zack Weinberg  <zackw@panix.com>
7035
7036         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
7037         to zero.
7038         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
7039         to switch.
7040         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
7041         in if controlling use of insv.
7042         (extract_bit_field): Likewise, for extv and extzv.
7043
7044 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
7045
7046         * i386.md (movcc peep2): Fix load of 0.
7047
7048 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7049
7050         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
7051         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
7052
7053 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
7054
7055         * c-pragma.h: Move weak_syms and weak_decls...
7056         * varasm.c: ...here.  Now static.
7057         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
7058         depend on HANDLE_PRAGMA_WEAK.
7059
7060         * c-common.c (c_alignof, c_alignof_expr): Move here...
7061         * c-typeck.c: ...from here.
7062         * c-tree.h, c-common.h: Adjust.
7063
7064 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
7065
7066         * config/ia64/ia64.c (rws_update): If !pred, set write_count
7067         instead of incrementing it.
7068
7069         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
7070         asm ready, don't try to move them all into the same array element.
7071
7072 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
7073
7074         * function.c (thread_prologue_and_epilogue_insns): Avoid
7075         fallthru flag on edge to exit.
7076
7077         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
7078
7079         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
7080         dead edges.
7081
7082 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
7083
7084         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
7085         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
7086         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
7087         Remove prototype.
7088
7089 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
7090
7091         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
7092         replace "GNU CC" with "GCC".
7093
7094 2001-08-23  Richard Henderson  <rth@redhat.com>
7095
7096         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
7097         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
7098         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
7099         Need GR between FR and not GR_AND_FR.
7100         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
7101         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
7102         AR regs before GR regs.
7103         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
7104         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
7105         (REGISTER_MOVE_COST): Update.
7106         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
7107
7108 2001-08-23  Richard Henderson  <rth@redhat.com>
7109
7110         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
7111         a register class.
7112
7113 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
7114
7115         * reload1.c (emit_reload_insns): Don't look for notes
7116         on a NULL store_insn.
7117
7118 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7119
7120         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
7121         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
7122         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
7123         format specifier warnings.
7124         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
7125
7126 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
7127
7128         * config/i386/i386-protos.h: Correct declaration of
7129         i386_pe_asm_named_section.
7130
7131 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7132
7133         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
7134         variable i.
7135         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
7136
7137 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7138
7139         * cpperror.c (print_location): Don't show _Pragma.
7140         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
7141         and file change callback generation here.
7142         (stack_include_file): Update use of cpp_push_buffer.
7143         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
7144         (struct cpp_buffer): Remove type, pfile members.
7145         * cppinit.c (cpp_handle_option): Use free_chain.
7146         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
7147         (skip_escaped_newlines, get_effective_char, lex_percent): Take
7148         a cpp_reader rather than a cpp_buffer.
7149         (skip_escaped_newlines, get_effective_char, skip_block_comment,
7150         skip_line_comment, parse_string, lex_percent, lex_dot,
7151         _cpp_lex_token): Update accordingly.
7152         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
7153         generation here.
7154         (cpp_push_buffer): Update prototype.
7155         (run_directive): Update use of cpp_push_buffer.
7156         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
7157         handle_assertion): Update use of run_directive.
7158         * cpplib.h (enum cpp_buffer_type): Remove.
7159         (cpp_push_buffer): Update prototype.
7160         * fix-header.c (read_scan_file): Update.
7161
7162 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7163
7164         * gcc.c (struct prefix_list): Change prefix to const char *.
7165
7166 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7167
7168         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
7169
7170 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
7171
7172         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
7173         from a new MEM.
7174
7175         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
7176         a squeezable note.
7177         * rtl.h: Adjust.
7178         * ifcvt.c (dead_or_predicable): Adjust.
7179         * loop.c (find_and_verify_loops): Adjust.
7180         * stmt.c (expand_end_case): Adjust.
7181         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
7182         head and end insn pointers in the basic block, not just local copies.
7183         (merge_blocks_move_predecessor_nojumps): Likewise.
7184
7185 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
7186
7187         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
7188         bitmap.h, builtin-types.def, builtins.c, builtins.def,
7189         c-aux-info.c, c-common.c, c-common.def, c-common.h,
7190         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
7191         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
7192         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
7193         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
7194         conditions.h, config.gcc, configure.frag, configure.in,
7195         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
7196         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
7197         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
7198         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
7199         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
7200         emit-rtl.c, errors.c, errors.h, except.c, except.h,
7201         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
7202         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
7203         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
7204         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
7205         gencheck.c, gencodes.c, genconfig.c, genemit.c,
7206         genextract.c, genflags.c, gengenrtl.c, genmultilib,
7207         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
7208         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
7209         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
7210         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
7211         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
7212         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
7213         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
7214         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
7215         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
7216         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
7217         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
7218         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
7219         params.h, predict.c, predict.def, predict.h, prefix.c,
7220         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
7221         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
7222         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
7223         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
7224         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
7225         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
7226         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
7227         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
7228         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
7229         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
7230         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
7231         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
7232         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
7233         xcoffout.h: replace "GNU CC" with "GCC".
7234
7235 2001-08-21  Richard Henderson  <rth@redhat.com>
7236
7237         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
7238         (final_scan_insn): Consider jump tables data even if we have no
7239         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
7240         ADDR_VEC_ALIGN.
7241         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
7242         (ASM_OUTPUT_CASE_END): Remove.
7243         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
7244         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
7245         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
7246
7247 2001-08-21  Richard Henderson  <rth@redhat.com>
7248
7249         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
7250         at barrier insns.  Emit stop bits before barriers.
7251
7252         * flow.c (flow_find_cross_jump): Don't consider unconditional
7253         return insns for commoning.
7254
7255         * final.c (compute_alignments): Fix typo.
7256
7257         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
7258         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
7259         (store_bit_field): Use mode_for_extraction more places.
7260         (extract_bit_field): Likewise.
7261
7262 2001-08-21  Zack Weinberg  <zackw@panix.com>
7263
7264         * caller-save.c: Don't include insn-codes.h.
7265         (reg_save_code, reg_restore_code): Make arrays of int.
7266         All uses updated to match.
7267         (insert_save, insert_restore): No need to initialize "code"
7268         variable upon declaration.
7269         * Makefile.in: update dependencies; fix typo in clean rule.
7270
7271 2001-08-21  Richard Henderson  <rth@redhat.com>
7272
7273         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
7274         (merge_if_block): Handle fallout from same.
7275
7276 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7277
7278         * builtins.c (type_to_class): Fix typo in last change.
7279
7280 2001-08-21  Richard Henderson  <rth@redhat.com>
7281
7282         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
7283         ia64_asm_output_label.
7284
7285         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
7286         copy of gp while the real gp register contains garbage.
7287
7288 2001-08-21  Zack Weinberg  <zackw@panix.com>
7289
7290         * expmed.c (mode_for_extraction): New function.
7291         (store_bit_field, extract_bit_field): Use it.
7292         * expr.h: Prototype it and provide an enum for its first argument.
7293
7294         * combine.c, function.c, recog.c: Don't include insn-codes.h.
7295         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
7296         and digging through the insn_data tables.
7297         * Makefile.in: Update dependencies.
7298
7299 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7300
7301         * cppfiles.c (stack_include_file): line-map.c now handles include
7302         depth.
7303         (handle_missing_handler): Similarly.
7304         (_cpp_execute_include): Similarly.
7305         (_cpp_pop_file_buffer): Similarly.
7306         * cpphash.h (struct cpp_reader): Remove system_include_depth,
7307         buffer_stack_depth and include_depth.
7308         * cpplib.c (do_include_common): line-map.c now handles include depth.
7309         (cpp_push_buffer): Similarly.
7310         (_cpp_pop_buffer): Similarly.
7311         * cppmacro.c (builtin_macro): Update.
7312         * line-map.c (init_line_maps): Set depth.
7313         (add_line_map): Increment "used" earlier.  Update and use the
7314         include depth.
7315         (trace_include): Use the include depth.
7316         * line-map.h (struct line_maps): New member depth.
7317
7318 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7319
7320         * cppfiles.c (stack_include_file): Don't handle -H here.
7321         * cppinit.c (cpp_start_read): Set include tracing after
7322         cpp_post_options and after stacking the main file.
7323         * line-map.c (trace_include): New.
7324         (init_line_maps, add_line_map): Update.
7325         * line-map.h (struct line_maps): New member trace_includes.
7326
7327 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7328
7329         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
7330         * cppfiles.c (stack_include_file): Only stack a file if there
7331         is something to do.  Return a boolean indicating whether a
7332         buffer was stacked or not.
7333         (_cpp_execute_include): Similarly.
7334         (_cpp_read_file): Similarly.
7335         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
7336
7337 2001-08-21  Sam Steingold  <sds@gnu.org>
7338
7339         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
7340         (RECACHE): keep obufp_before_macroname up to date
7341
7342 2001-08-21  Zack Weinberg  <zackw@panix.com>
7343
7344         * stmt.c: Don't include insn-codes.h.
7345         (expand_end_case): Machine specific logic moved to expr.c.
7346         No need to worry about __builtin_classify_type.
7347         (check_for_full_enumeration_handling, emit_case_nodes):
7348         Kill #if 0 blocks.
7349
7350         * builtins.o (expand_builtin_classify_type): Split up so code
7351         can be shared with fold_builtin_classify_type.
7352         (type_to_class, fold_builtin_classify_type): New functions.
7353         (fold_builtins): Handle __builtin_classify_type.
7354
7355         * expr.c (do_tablejump): Now static.
7356         (case_values_threshold, try_casesi, try_tablejump): New;
7357         code mostly from stmt.c (expand_end_case).
7358         (expr.h): Update prototypes.
7359
7360         * Makefile.in (stmt.o): Update dependencies.
7361
7362 2001-08-21  Will Cohen  <wcohen@redhat.com>
7363
7364         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
7365         declaration of variable i.
7366         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
7367         declaration of variable i.
7368
7369 2001-08-21  Richard Henderson  <rth@redhat.com>
7370
7371         * crtstuff.c: Fix thinko last change.  Move list tails to start
7372         of CRT_END section.  Tidy ifdefs.
7373         (__EH_FRAME_BEGIN__): Always static for ELF.
7374         (__do_global_ctors_1): Rename from __frame_dummy.
7375         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
7376         name change; don't hide __EH_FRAME_BEGIN__.
7377
7378 2001-08-21  Richard Henderson  <rth@redhat.com>
7379
7380         * gdbinit.in: Move break on exit after break on fancy_abort.
7381
7382         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
7383         sized types.
7384
7385 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7386
7387         * cpphash.h (_cpp_push_next_buffer): New.
7388         * cppinit.c (do_includes): Remove.
7389         (push_include, free_chain, _cpp_push_next_buffer): New.
7390         (cpp_start_read): Use them to rework command line option handling.
7391         (cpp_handle_option): Combine handling of -include and -imacros.
7392         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
7393         appropriate.  Always insert missing \n at EOF.
7394         * cpplib.c (start_directive): Get the directive position right.
7395         * cppmain.c (cb_file_change): Always print the first line, unless
7396         preprocessed.
7397
7398 2001-08-20  Andreas Jaeger  <aj@suse.de>
7399
7400         * profile.c (compute_branch_probabilities): Remove extra new-line
7401         in error message.
7402         * flow.c (verify_flow_info): Likewise.
7403
7404 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
7405
7406         * basic-block.h (basic_block): Add new field 'flags'.
7407         (BB_REACHABLE): Define.
7408         (expunge_block): Declare.
7409         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
7410         (EXIT_BLOCK_PTR): Ditto.
7411         (expunge_block): Remove static declaration.
7412         (cleanup_cfg): Clear bb->aux on every basic block.
7413         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
7414         computing reachability.
7415         (delete_unreachable_blocks): Delete block b if b->flags has
7416         BB_REACHABLE unset.
7417
7418 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
7419
7420         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
7421
7422 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7423
7424         * sparc.c (sparc_variable_issue): Fix typo in last change.
7425
7426 2001-08-20  Richard Henderson  <rth@redhat.com>
7427
7428         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
7429
7430 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7431
7432         * pa.h (RETURN_IN_MEMORY): Improve comment.
7433
7434 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
7435
7436         * doc/invoke.texi (Profiling options): Clarify the interactions
7437         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
7438
7439 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
7440
7441         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
7442         command.
7443
7444 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7445
7446         * gcc.c (make_relative_prefix): Allocate a sufficiently large
7447         buffer.
7448
7449 2001-08-20  Richard Henderson  <rth@redhat.com>
7450
7451         * final.c (end_final): Fix typo last change.
7452
7453 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7454
7455         * cppinit.c (init_standard_includes): The returned buffer
7456         is already malloc-ed.
7457         * gcc.c (add_prefix): Similarly.
7458         * prefix.c (translate_name): Update to support clear buffer
7459         ownership rules.
7460         (update_path): Similarly.  Be sure to free any newly allocated
7461         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
7462         (tr): New function.
7463         * prefix.h (update_path): Update prototype and document.
7464         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
7465         up and update to new buffer ownership rules.
7466         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
7467
7468 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
7469
7470         * final.c (compute_alignments): New function.
7471         (init_insn_lengths): Do not care label_align.
7472         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
7473         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
7474         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
7475         (shorted_branches): Realloc label_align array; do
7476         not call init_insn_lengths; Do not care about loop alignments.
7477         * output.h (compute_alignments): Declare.
7478         * toplev.c (rest_of_compilation): Call compute_alignments.
7479         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
7480
7481         * predict.c (block_info_def): Add npredecesors, remove nvisited;
7482         change visited to tovisit.
7483         (propagate_freq): Use faster traversing algorithm.
7484         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
7485         to tovisit; reverse meaning.
7486
7487         * predict.c (struct block_info_def): Remove nvisited.
7488         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
7489         (estimate_bb_frequencies): Call mark_dfs_back_edges.
7490
7491 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
7492
7493         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
7494         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
7495         (TARGET_FUSED_MADD): New.
7496         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
7497         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
7498         the multiply-add instructions.
7499
7500 2001-08-19  Richard Henderson  <rth@redhat.com>
7501
7502         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
7503         is aligned to pointer size.
7504
7505 2001-08-19  Richard Henderson  <rth@redhat.com>
7506
7507         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
7508         display markers during final schedule.
7509
7510 2001-08-19  Richard Henderson  <rth@redhat.com>
7511
7512         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
7513
7514 2001-08-19  Richard Henderson  <rth@redhat.com>
7515
7516         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
7517         in the same string.
7518         (ASM_NAME_TO_STRING): Remove.
7519         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
7520         in the same string.  Remove support for expressions.
7521
7522 2001-08-19  Richard Henderson  <rth@redhat.com>
7523
7524         * config/i386/i386.md (tablejump): Make an expander; handle
7525         pic relative addressing here.
7526         (tablejump_1): Rename from tablejump_pic.
7527         (casesi): Remove.
7528
7529 2001-08-19  Richard Henderson  <rth@redhat.com>
7530
7531         * regclass.c (fix_register): Fix typo.
7532
7533 2001-08-18  Richard Henderson  <rth@redhat.com>
7534
7535         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
7536         (struct _Unwind_Context): Expand br_loc to hold it.
7537         (uw_frame_state_for): Handle leaf functions better.
7538         (uw_update_reg_address): Update for br_loc change.
7539
7540 2001-08-18  Richard Henderson  <rth@redhat.com>
7541
7542         * crtstuff.c: Move list heads before code that uses them.
7543         (__JCR_LIST__): Remove initial null.
7544         (frame_dummy, __frame_dummy): Do java registration here ...
7545         (__do_global_ctors_aux): ... not here.
7546
7547         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
7548         (__do_global_dtors_aux): Update to match.
7549         (__JCR_LIST__, __do_jv_register_classes): New.
7550         (.init): Call it.
7551         * config/ia64/crtend.asm (__JCR_END__): New.
7552         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
7553         instead of an indirect LTOFF22 reloc.
7554
7555 2001-08-18  Richard Henderson  <rth@redhat.com>
7556
7557         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
7558         * regclass.c (init_reg_sets_1): Fix typo.
7559         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
7560         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
7561         (ia64_compute_frame_size): Make ar.unat live when in use.
7562         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
7563         for ar.pfs; remove ar.unat handling.
7564         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
7565         call-saved.
7566         (PREDICATE_CODES): Add ar_pfs_reg_operand.
7567         * config/ia64/ia64-protos.h: Update decls.
7568         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
7569         (sibcall_pic): Likewise.
7570
7571 2001-08-18  Richard Henderson  <rth@redhat.com>
7572
7573         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
7574         pred_rel_mutex when searching for insn_group_barrier.
7575         * config/ia64/ia64.md (cycle_display): Combine the expander
7576         and insn patterns.
7577
7578         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
7579         bit before asm as needed.
7580
7581 2001-08-18  Richard Henderson  <rth@redhat.com>
7582
7583         * timevar.def (TV_MACH_DEP): New.
7584         * toplev.c (rest_of_compilation): Use it.
7585         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
7586
7587 2001-08-18  Zack Weinberg  <zackw@panix.com>
7588
7589         * unwind-dw2.c (execute_stack_op): Add default aborts to
7590         the inner switches to prevent warnings.
7591
7592 2001-08-18  Richard Henderson  <rth@redhat.com>
7593
7594         * timevar.h (struct timevar_time_def): Change element type to float.
7595         (ticks_to_msec, clocks_to_msec): Likewise.
7596         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
7597         (get_time): Likewise.
7598         (timevar_print): Adjust zero check and printing to match.
7599
7600 2001-08-18  Zack Weinberg  <zackw@panix.com>
7601
7602         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
7603         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
7604         Eliminate overfull or underfull hboxes.
7605
7606 2001-08-18  Zack Weinberg  <zackw@panix.com>
7607
7608         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
7609
7610 2001-08-18  Zack Weinberg  <zackw@panix.com>
7611
7612         * haifa-sched.c: Convert to target hooks.  Macros replaced
7613         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
7614         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
7615         MD_SCHED_FINISH, and HAVE_cycle_display.
7616         * target-def.h (TARGET_SCHED_ADJUST_COST,
7617         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
7618         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
7619         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
7620         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
7621         New hook #defines to be overridden.
7622         (TARGET_SCHED): Bring them all together.
7623         (TARGET_INITIALIZER): Update.
7624         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
7625         instead of 'struct rtx_def *' throughout.
7626         (struct sched): New set of hooks for the scheduler.
7627         * Makefile.in (haifa-sched.o): Depend on target.h.
7628         * doc/tm.texi: Document the new scheduler hooks, together in
7629         their own section, instead of scattered around.
7630         Fix a bunch of underfull/overfull hboxes.
7631
7632         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
7633         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
7634         sparc.h: Don't define any of the old scheduler macros.
7635
7636         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
7637         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
7638         sparc.c: Create hook functions from code extracted from
7639         corresponding target header, or make existing hooks static, as
7640         appropriate.  Set the appropriate entries in targetm.
7641
7642         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
7643         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
7644         rs6000-protos.h, s390-protos.h, sparc-protos.h:
7645         Remove prototypes for functions which are now static.
7646
7647         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
7648         related gunk; the Haifa scheduler is now the only choice.
7649
7650 2001-08-18  Zack Weinberg  <zackw@panix.com>
7651
7652         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
7653         * genopinit.c: Put floating point divide insns in sdiv_optab.
7654         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
7655         * config/gofast.h, config/c4x/c4x.h,
7656         config/ia64/hpux_longdouble.h, config/mips/mips.h,
7657         config/pa/long_double.h, config/rs6000/sysv4.h,
7658         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
7659         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
7660         (init_optabs): Use init_optabv for overflow-trapping optabs.
7661         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
7662         cmp_optab RTX codes so have_insn_for can find them.
7663
7664         * optabs.c (expand_simple_binop, expand_simple_unop,
7665         have_insn_for, gen_sub3_insn): New interfaces.
7666         * expr.h: Prototype new functions.
7667         (enum optab_methods): Move here from optabs.h.
7668
7669         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
7670         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
7671         Use new functions instead of working directly with optabs.
7672         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
7673         unroll.c: Don't include optabs.h.
7674         * caller-save.c, combine.c, function.c, stmt.c: Just include
7675         insn-codes.h, not optabs.h.
7676         * Makefile.in: Update dependencies.
7677
7678         * combine.c (make_compound_operation, simplify_comparison):
7679         Fix typos testing for this or that instruction.
7680
7681 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
7682
7683         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
7684         generating libgcc.a.
7685
7686 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7687
7688         * except.c (TYPE_HASH): Delete.
7689
7690         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
7691         HOST_WIDE_INT.
7692
7693         * tree.c (TYPE_HASH): Delete.
7694
7695         * tree.h (TYPE_HASH): Define.
7696
7697 2001-08-18  Graham Stott  <grahams@redhat.com>
7698
7699         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
7700         define_split.
7701         (adddi3_internal_2+2): Likewise.
7702         (eh_set_lr_di+1): Likewise.
7703
7704 2001-08-17  Richard Henderson  <rth@redhat.com>
7705
7706         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7707         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
7708         * dwarf2asm.c: ... here.
7709         * dwarfout.c: Remove them.
7710
7711         * varasm.c (assemble_integer): Add align parameter.
7712         (assemble_real, output_constant, output_constructor): Likewise.
7713         * output.h: Update decls.
7714         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
7715         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
7716         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
7717         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
7718         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
7719         Update all callers.
7720
7721         * final.c (end_final): Abort profile block generation if we
7722         havn't layed it out properly.
7723         * output.h (assemble_eh_integer): Remove stale decl.
7724         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
7725         (min_align): New.
7726         (assemble_integer): Handle unaligned data.
7727         (assemble_real): Abort on unaligned data.
7728         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
7729         anything useful.
7730         (default_dtor_section_asm_out_destructor): Use assemble_align.
7731         (default_named_section_asm_out_constructor): Likewise.
7732         (default_ctor_section_asm_out_constructor): Likewise.
7733         * config/darwin.c (machopic_asm_out_constructor): Likewise.
7734         (machopic_asm_out_destructor): Likewise.
7735         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
7736         (nextstep_asm_out_destructor): Likewise.
7737         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
7738         (vms_asm_out_destructor): Likewise.
7739
7740 2001-08-17  Richard Henderson  <rth@redhat.com>
7741
7742         * config/mips/iris6.h (TARGET_IRIX6): New.
7743         (current_section_name, current_section_flags): New.
7744         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
7745         (MAX_OFILE_ALIGNMENT): New.
7746         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
7747         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
7748         (copy_file_data): Split out from
7749         (mips_asm_file_end): ... here.
7750         (mips_asm_file_start): Remove extra .section directive.  Use
7751         tmpfile instead of mips_make_temp_file.
7752         (mips_unique_section): Use const char * as needed for warnings.
7753         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
7754         re-add align parameter.
7755         (iris6_asm_named_section): New.
7756         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
7757         (iris6_asm_output_align, iris6_section_align_1): New.
7758         (iris6_asm_file_start, iris6_asm_file_end): New.
7759         * config/mips/mips-protos.h: Update decls.
7760
7761 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
7762
7763         * doc/install.texi (Install GCC): Add links to build status pages.
7764         (Specific): Ditto.
7765         (Final install): Ditto; request updates for specific info
7766
7767 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7768
7769         * cpperror.c (print_location):  Don't take a file name; use the
7770         line map instead.
7771         (_cpp_begin_message): Similarly.
7772         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7773         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7774         (cpp_pedwarn_with_file_and_line): Remove.
7775         * cppfiles.c (stack_include_file): Update; set filename to stdin
7776         here when appropriate.
7777         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
7778         (_cpp_begin_message): Don't take a file name.
7779         * cppinit.c: Add comment.
7780         * cpplex.c: Fix end-of-directive indicator.
7781         * cpplib.c: Don't include intl.h.
7782         (run_directive, do_diagnostic): Update.
7783         (do_line): Update to not use nominal_fname.
7784         (cpp_push_buffer): Don't take a filename.
7785         * cpplib.h (struct ht): Remove.
7786         (cpp_push_buffer): Don't take a filename.
7787         (cpp_pedwarn_with_file_and_line): Remove.
7788         * cppmacro.c (struct cpp_macro): Remove file.
7789         (builtin_macro): Update.
7790         (_cpp_create_definition): Update.
7791         * cppmain.c: Correct comment.
7792         * fix-header.c (read_scan_file): Update.
7793
7794 2001-08-17  Kazu Hirata  <kazu@hxi.com>
7795
7796         * sbitmap.c: Fix comment formatting.
7797         * sched-deps.c: Likewise.
7798         * sibcall.c: Likewise.
7799         * simplify-rtx.c: Likewise.
7800         * ssa.c: Likewise.
7801         * ssa-ccp.c: Likewise.
7802         * stor-layout.c: Likewise.
7803         * timevar.c: Likewise.
7804         * toplev.c: Likewise.
7805         * unwind-dw2.c: Likewise.
7806         * unwind-dw2-fde.c: Likewise.
7807         * varasm.c: Likewise.
7808
7809 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7810
7811         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
7812         or larger than an integer in memory.
7813
7814 2001-08-17  Zack Weinberg  <zackw@panix.com>
7815
7816         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
7817         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
7818         * rtl.h: Don't forward-declare union tree_node here.  Don't
7819         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
7820         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
7821         and tree respectively.
7822         * tree.h: Don't forward-declare struct rtx_def here.  Don't
7823         typedef tree here.  Change all uses of struct rtx_def *,
7824         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
7825         and tree respectively.
7826
7827 2001-08-17  Richard Henderson  <rth@redhat.com>
7828
7829         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
7830         config/mips/openbsd.h: Fix typos last change.
7831
7832 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7833
7834         * doc/invoke.texi (Optimize Options): The default for
7835         -finline-limit is 600.
7836
7837 2001-08-17  Richard Henderson  <rth@redhat.com>
7838
7839         * varasm.c (text_section): Allow TEXT_SECTION to override the
7840         printing of TEXT_SECTION_ASM_OP.
7841         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
7842         (DATA_SECTION, BSS_SECTION): Remove.
7843         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
7844         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
7845         Rename from s/_NAME//.
7846         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
7847         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
7848         (TEXT_SECTION): ... here.  New.
7849         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
7850         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
7851         * config/mips/openbsd.h: Likewise.
7852         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
7853         (mips_asm_file_end): Likewise test.
7854         (mips_output_function_epilogue): Likewise.  Switch back to data
7855         section after emitting the function.
7856
7857         * doc/tm.texi (Sections): Document TEXT_SECTION.
7858
7859 2001-08-17  Richard Henderson  <rth@redhat.com>
7860
7861         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
7862         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
7863
7864 2001-08-17  Richard Henderson  <rth@redhat.com>
7865
7866         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
7867         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
7868         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
7869         Add aligned attribute.
7870
7871 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
7872
7873         * config/sh/sh.md: Add modes to unspecs in first insn to match
7874         those in the second.
7875
7876         * Makefile.in: Fix collect2 copy for Cygwin.
7877
7878 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
7879
7880         Install the proper patch.
7881         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
7882         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
7883         (expand_function_start): Likewise.
7884         * stmt.c (expand_decl): Likewise.
7885         * varasm.c (make_decl_rtx): Likewise.
7886
7887 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
7888
7889         * final.c: Undo my previous accidental checkin.
7890         * output.h: Likewise.
7891         * tm.texi: Likewise.
7892
7893 2001-08-16  Richard Henderson  <rth@redhat.com>
7894
7895         * varasm.c (named_section_flags): Remove align parameter.
7896         * varasm.c, dwarf2out.c: Update all callers.
7897         * output.h: Update prototypes.
7898
7899         * target.h (target.asm_out.named_section): Remove align parameter.
7900         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
7901         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
7902         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
7903         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
7904         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
7905
7906         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
7907         (get_named_section_flags, set_named_section_flags): New.
7908         (named_section_flags): Use them.
7909         (named_section): Do decl vs section flags check here...
7910         (default_section_type_flags): ... not here.
7911         (init_varasm_once): Create in_named_htab.
7912         (resolve_unique_section): Mark reloc unused.
7913
7914 2001-08-16  Richard Henderson  <rth@redhat.com>
7915
7916         * varasm.c (force_const_mem): Keep pool alignment in bits.
7917         (output_constant_pool): Use assemble_align.
7918
7919 2001-08-16  Zack Weinberg  <zackw@panix.com>
7920
7921         * doc/tm.texi: Remove extra @table command.
7922
7923 2001-08-16  Zack Weinberg  <zackw@panix.com>
7924
7925         * final.c (shorten_branches): Clear the end of the label_align
7926         array only if we made it larger.  Break up messy expressions
7927         for clarity.
7928
7929         * diagnostic.c (internal_error): Check for error recursion
7930         before doing ICE suppression.
7931
7932         * timevar.c: Timing variables now count in milliseconds.
7933         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
7934         (get_time): Not here.
7935         (timevar_print): Don't print any timer whose user, cpu, and
7936         wall times are all zero as displayed.
7937         * timevar.h: Update comment aboout units.  Make timevar
7938         counters unsigned.
7939
7940 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
7941
7942         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
7943         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
7944         (expand_function_start): Likewise.
7945         * stmt.c (expand_decl): Likewise.
7946         * varasm.c (make_decl_rtx): Likewise.
7947
7948 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
7949
7950         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
7951         (finalize_record_size): Don't set TYPE_USER_ALIGN.
7952
7953 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7954
7955         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
7956         variables.
7957
7958 2001-08-16  Andreas Jaeger  <aj@suse.de>
7959
7960         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
7961         prototype.
7962
7963 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
7964
7965         * rtl.h (only_sets_cc0_p): New prototype.
7966         * jump.c (sets_cc0_p): Handle INSN.
7967         (only_sets_cc0_p): New function.
7968         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
7969         (tidy_fallthru_edge): Likewise.
7970         * integrate.c (copy_insn_list): Likewise.
7971         * unroll.c (unroll_loop): Likewise.
7972         (copy_loop_body): Likewise.
7973
7974 2001-08-15  Jason Eckhardt  <jle@redhat.com>
7975
7976         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
7977
7978 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
7979
7980         * predict.c (struct block_info_def): Remove nvisited.
7981         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
7982         (estimate_bb_frequencies): Call mark_dfs_back_edges.
7983
7984         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
7985         (ix86_adjust_cost): Teach scheduler that latency to load operand can
7986         be masked.
7987
7988 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
7989
7990         * predict.def: Update hitrates.
7991
7992 2001-08-15  Richard Henderson  <rth@redhat.com>
7993
7994         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
7995
7996 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
7997
7998         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
7999         note from its associated jump.
8000
8001 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8002
8003         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
8004         also on 64-bit s390x targets.
8005
8006 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
8007
8008         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
8009         function.
8010         (arm_expand_prologue): Handled nested functions which take a
8011         variable argument list.
8012         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
8013         macro with an invocation of
8014         arm_compute_initial_elimination_offset.
8015         * config/arm/arm-protos.h: Prototype
8016         arm_compute_initial_elimination_offset.
8017
8018 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8019
8020         * doc/install.texi (Specific, avr): Fix markup.
8021         (Specific, c4x): Ditto.
8022
8023 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8024
8025         * predict.c (dump_prediction): Change `bool' parameter to `int'.
8026
8027 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
8028
8029         * Makefile.in (OBJS): Add rtl-error.o
8030         (rtl-error.o): New rule.
8031         (diagnostic.o): Adjust dependency.
8032         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
8033         error_for_asm, _fatal_insn, _fatal_insn_not_found,
8034         warning_for_asm): Move to...
8035         rtl-error.c: ...here.  New file.
8036
8037 2001-08-14  Richard Henderson  <rth@redhat.com>
8038
8039         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
8040         if USING_SJLJ_EXCEPTIONS.
8041
8042 2001-08-14  Steve Ellcey <sje@cup.hp.com>
8043
8044         * tlink.c (scan_linker_output): Check string for unsatisfied in
8045         addition to undefined and unresolved.
8046
8047 2001-08-14  Graham Stott  <grahams@redhat.com>
8048
8049         * libgcc2.c (*): Replace EH_FRAME_SECTION with
8050         EH_FRAME_SECTION_NAME.
8051
8052 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
8053
8054         * genattrtab.c (simplify_test_exp_in_temp): New function.
8055         (simplify_test_exp): Avoid explicit use of temporary obstack.
8056         (simplify_cond, insert_right_side, evaluate_eq_attr,
8057         simplify_and_tree, simplify_or_tree, eliminate_known_true):
8058         Use simplify_test_exp_in_temp.
8059         (optimize_attrs): Iterate until expression stabilizes.
8060
8061 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
8062
8063         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
8064         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
8065
8066 2001-08-13  Richard Henderson  <rth@redhat.com>
8067
8068         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
8069         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
8070         * config/arm/conix-elf.h: Likewise.
8071
8072 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
8073
8074         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
8075         in gcc.c.
8076         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8077
8078         * gcse.c (hash_scan_set): Expressions that are set as part of
8079         jump instructions are not available.
8080
8081 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
8082
8083         * config/s390/s390.c (print_operand, s390_function_prologue,
8084         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
8085
8086 2001-08-13  Richard Henderson  <rth@redhat.com>
8087
8088         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
8089         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
8090         * doc/tm.texi (Exception Region Output): Document it.
8091
8092 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
8093
8094         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
8095         DWARF2 instead of stabs by default.
8096
8097 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
8098
8099         * config/rs6000/rs6000.c: Include optabs.h.
8100
8101 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
8102
8103         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
8104         save/restore routines.
8105         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
8106
8107 2001-08-13  Andreas Jaeger  <aj@suse.de>
8108
8109         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
8110         the english is correct.
8111
8112 2001-08-13  Zack Weinberg  <zackw@panix.com>
8113
8114         * expr.h: Split out optab- and libfunc-related code to...
8115         * optabs.h, libfuncs.h: ... these new headers.
8116
8117         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
8118         (OPTABS_H): New.
8119         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
8120         dependencies.
8121         * mkconfig.sh: Don't include insn-codes.h from config.h.
8122
8123         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
8124         enum insn_code is available.  Move reload_in_optab and
8125         reload_out_optab array declarations to optabs.h.
8126         * regmove.c (gen_add3_insn): Move to optabs.c, export from
8127         there, prototype in expr.h.
8128         * gencodes.c: Cleanup: zap global variables, don't use
8129         printf where puts will do, don't bother defining MAX_INSN_CODE
8130         which nothing uses, let CODE_FOR_nothing get its value implicitly.
8131
8132         * genemit.c, genopinit.c: Include optabs.h in generated file.
8133         * genoutput.c: Include insn-codes.h in generated file.
8134         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
8135         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
8136         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
8137         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
8138         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
8139         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
8140         Include optabs.h.
8141         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
8142         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
8143         config/m88k/m88k.c, config/sparc/sparc.c:
8144         Include libfuncs.h.
8145         * reload.c: Include expr.h and optabs.h before reload.h.
8146         * config/alpha/alpha.c: Include tree.h before reload.h.
8147         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
8148         and reload.h in that order.
8149         * config/sparc/sparc.c: Include debug.h.
8150         * recog.c: Include insn-codes.h.
8151
8152 2001-08-13  Andreas Jaeger  <aj@suse.de>
8153
8154         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
8155         s390*linux.
8156
8157 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8158
8159         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
8160         * gcc.c (init_spec): Fix typo in comment.
8161         * varasm.c (data_section): Fix typo in comment.
8162
8163 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
8164
8165         * predict.c (dump_prediction): New argument "USED".
8166         (combine_predictions_for_insn): Determine the used heuristics,
8167         output the case no heuristic applied.
8168         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
8169
8170 2001-08-13  Andreas Jaeger  <aj@suse.de>
8171
8172         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
8173         register %rip.
8174
8175 2001-08-13  Kazu Hirata  <kazu@hxi.com>
8176
8177         * jump.c: Fix formatting.
8178
8179 2001-08-13  Kazu Hirata  <kazu@hxi.com>
8180
8181         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
8182         length.
8183
8184 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
8185
8186         * loop.c (check_dbra_loop): Use condjump_label to compute
8187         jump_label.
8188
8189         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
8190         to better document the files they're in.
8191
8192 2001-08-12  Zack Weinberg  <zackw@panix.com>
8193
8194         * recog.h (struct insn_operand_data): Shrink 'mode' field
8195         to 16 bits.
8196
8197 2001-08-12  Kazu Hirata  <kazu@hxi.com>
8198
8199         * gcc.c: Fix comment formatting.
8200         * gccspec.c: Likewise.
8201         * gcov.c: Likewise.
8202         * gcse.c: Likewise.
8203         * genemit.c: Likewise.
8204         * gengenrtl.c: Likewise.
8205         * genrecog.c: Likewise.
8206         * gensupport.c: Likewise.
8207         * ggc-page.c: Likewise.
8208         * global.c: Likewise.
8209         * graph.c: Likewise.
8210         * ifcvt.c: Likewise.
8211         * integrate.c: Likewise.
8212         * lcm.c: Likewise.
8213         * libgcc2.c: Likewise.
8214         * loop.c: Likewise.
8215         * mbchar.c: Likewise.
8216         * optabs.c: Likewise.
8217         * predict.c: Likewise.
8218         * prefix.c: Likewise.
8219         * profile.c: Likewise.
8220         * protoize.c: Likewise.
8221         * real.c: Likewise.
8222         * recog.c: Likewise.
8223         * regclass.c: Likewise.
8224         * regmove.c: Likewise.
8225         * reg-stack.c: Likewise.
8226         * reload1.c: Likewise.
8227         * resource.c: Likewise.
8228         * rtlanal.c: Likewise.
8229         * rtl.c: Likewise.
8230
8231 2001-08-12  Kazu Hirata  <kazu@hxi.com>
8232
8233         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
8234         a tree representing a constant is passed to the macro.
8235
8236 2001-08-12  Richard Henderson  <rth@redhat.com>
8237
8238         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
8239         (rs6000_elf_asm_out_destructor): New.
8240         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
8241         (DTORS_SECTION_ASM_OP): Remove.
8242         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8243         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
8244
8245 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
8246
8247         Revert:
8248         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8249         * gcc.c (set_collect_gcc_options): New function, split out from
8250         main.
8251         Ignore elided switches.
8252         (do_spec_1): Invoke before executing command.
8253         (set_input): Export.
8254         Move declaration ...
8255         * gcc.h (set_input): ... here.
8256         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
8257         file.
8258
8259 2001-08-12  Richard Henderson  <rth@redhat.com>
8260
8261         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
8262         thinko wrt TARGET_RELOCATABLE.
8263
8264 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8265
8266         * fix-header.c (cb_file_change): Update prototype.
8267
8268 2001-08-11  Zack Weinberg  <zackw@panix.com>
8269
8270         * toplev.c (set_float_handler): Make static.
8271         * toplev.h: Don't prototype set_float_handler.
8272
8273         * simplify-rtx.c: Don't include setjmp.h.
8274         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
8275         New functions.
8276         (simplify_unary_operation, simplify_binary_operation): Use them,
8277         via do_float_handler.
8278
8279         * fold-const.c: Don't include setjmp.h.
8280         (exact_real_inverse_1): New function.
8281         (exact_real_inverse): Use it, via do_float_handler.
8282
8283         * varasm.c: Don't include setjmp.h.
8284         (assemble_real_1): New function.
8285         (assemble_real): Use it, via do_float_handler.
8286         Call internal_error if we get a trap here.
8287
8288         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
8289         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
8290
8291 2001-08-11  Zack Weinberg  <zackw@panix.com>
8292
8293         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
8294         STACK_BOUNDARY if not already defined.
8295
8296         * calls.c, function.c, reload1.c, explow.c: Don't default
8297         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
8298         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
8299
8300         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
8301         to run-time test.
8302
8303         * doc/tm.texi: Document that STACK_BOUNDARY is required;
8304         clarify difference between it and PREFERRED_STACK_BOUNDARY.
8305
8306 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8307
8308         * cppmacro.c (enter_macro_context): Push macro expansions even
8309         if empty.
8310
8311 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8312
8313         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
8314         (rs6000_elf_section_type_flags): Actually return a value.
8315
8316 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
8317
8318         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
8319         Clean up code: add missing comments and prototypes, fix warnings,
8320         remove obsolete code, fix spacing to conform to coding style.
8321
8322 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
8323
8324         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
8325         and TARGET_ASM_CLOSE_PAREN.
8326         (regclass_map): CC register belongs to class NO_REGS.
8327         (legitimize_pic_address): Don't generate unnecessary moves
8328         (to avoid confusing loop optimization).
8329         (check_and_change_labels): Replace jump_long by indirect_jump.
8330         (s390_final_chunkify): Don't start a new literal pool on section
8331         switch in 64-bit code.
8332         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
8333
8334         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
8335         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
8336         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
8337         modes correctly.
8338         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
8339         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
8340         (CONST_COSTS): Fixed incorrect costs.
8341
8342         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
8343         Use emit_jump instead of emit_jump_insn (gen_jump).
8344         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
8345         (to avoid confusing flow analysis).
8346         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
8347         (casesi, casesi_jump): New.
8348         (jump_long): Removed.  Functionality merged into indirect_jump.
8349         (indirect_jump): Accept address_operand, not just register_operand.
8350         (cjump_long, icjump_long): Use same logic as indirect_jump.
8351         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
8352         Fixed broken setjmp/longjmp handling.
8353         (do_builtin_setjmp_setup): Removed.
8354
8355         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
8356         broken GNU as versions that don't accept .quad with large
8357         negative values.  Use hexadecimal output instead.
8358         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
8359         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
8360         FUNCTION_EPILOGUE): Removed.  Now in targetm.
8361
8362         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
8363
8364         * config/s390/fixdfdi.h: Add missing copyright statement.
8365         Fix type conflicts on 64-bit.  Add missing SFmode routines.
8366
8367         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
8368         email address.
8369
8370 2001-08-11  Richard Henderson  <rth@redhat.com>
8371
8372         * rtl.h (REG_EH_RETHROW): Remove.
8373         * rtl.c (reg_note_name): Update.
8374         * combine.c (distribute_notes): Don't check for it.
8375
8376 2001-08-11  Richard Henderson  <rth@redhat.com>
8377
8378         * combine.c (distribute_notes): Place REG_SETJMP.
8379
8380 2001-08-11  Richard Henderson  <rth@redhat.com>
8381
8382         * doc/extend.texi (Arrays and pointers implementation): Discourage
8383         relying on sign-extension of pointers.
8384
8385 2001-08-11  H.J. Lu <hjl@gnu.org>
8386
8387         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
8388         in_dtors.
8389         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
8390         RDATA_SECTION_ASM_OP.
8391
8392 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8393
8394         * doc/install.texi (Specific, c4x): Fix cross-reference to the
8395         main manual to work both for info and HTML versions.
8396
8397 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8398             Matt Kraai <kraai@alumni.carnegiemellon.edu>
8399
8400         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
8401         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
8402         (struct cpp_pool): New member first.
8403         * cppinit.c (append_include_chain): Plug memory leaks.
8404         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
8405         Allocate pragma structures from the (aligned) macro pool to
8406         avoid leaking memory.
8407         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
8408         so we don't leak memory.
8409         * hashtable.c (ht_destroy): New.
8410         * hashtable.h (ht_destroy): New.
8411
8412 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8413             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8414
8415         * c-lex.c (map): Make const.
8416         (cb_file_change): Update for callback passing a line map.
8417         Don't assume we have a previous map.  Remove sanity check
8418         about popping too many files.
8419         * cpperror.c (print_location): Make map const.
8420         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
8421         (cpp_make_system_header): Similarly.
8422         (search_from): Similarly.
8423         (_cpp_execute_include): Don't remember where we came from.
8424         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
8425         (struct cpp_reader): Make map const.
8426         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
8427         * cpplib.c (do_line): Update; line maps now hold sysp.
8428         (cpp_push_buffer): Similarly.
8429         (_cpp_do_file_change): Similarly; callback with map instead.
8430         (cpp_get_line_maps): Constify return value.
8431         (_cpp_pop_buffer): Update.
8432         * cpplib.h (struct cpp_file_change): Remove.
8433         (struct cpp_callbacks): Update.
8434         (cpp_get_line_maps): Constify return value.
8435         * cppmacro.c (_cpp_create_definition): Update.
8436         * cppmain.c (struct printer): Constify map.
8437         (maybe_print_line): Similarly.
8438         (print_line): Similarly.  Deduce flags 1 and 2 here.
8439         (cb_file_change): Update.
8440         * line-map.c (free_line_maps): Warn regardless.
8441         (add_line_map): Return pointer to const.  When passed NULL to_file
8442         with LC_LEAVE, use the obvious values for the return point so the
8443         caller doesn't have to figure them out.
8444         (lookup_line): Return pointer to const.
8445         (print_containing_files): Take pointer to const.
8446         * line-map.h (struct line_map): New members reason, sysp.
8447         (add_line_map): Return pointer to const.
8448         (lookup_line): Similarly.
8449         (print_containing_files): Take pointer to const.
8450
8451 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
8452             Richard Henderson  <rth@redhat.com>
8453
8454         * regmove.c (regmove_optimize): Avoid setting a register twice in
8455         a parallel set.
8456
8457 2001-08-10  Richard Henderson  <rth@redhat.com>
8458
8459         * doc/extend.texi (Arrays and pointers implementation): Document
8460         behavior of pointer/integer conversion.
8461
8462 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
8463
8464         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
8465
8466 2001-08-10  Richard Henderson  <rth@redhat.com>
8467
8468         * doc/extend.texi (C Implementation): New chapter.
8469         * doc/gcc.texi (Top): Link it in.
8470
8471 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
8472
8473         * doc/install.texi (Specific): Fix CVS merge botch.
8474
8475 2001-08-10  Richard Henderson  <rth@redhat.com>
8476
8477         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
8478         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
8479
8480 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
8481
8482         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
8483         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
8484         this macro is now required.
8485
8486         * cselib.c (cselib_process_insn), flow.c (propagate_block),
8487         loop.c (find_and_verify_loops), reload.c (reload): Check
8488         for rtx code of CALL_INSN, not CALL, when deciding if we
8489         need to check for REG_SETJMP note.
8490
8491         * gcse.c (compute_hash_table, compute_store_table): Update
8492         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
8493         logic.
8494
8495         * config/avr/avr.c: Fix typo.
8496         * config/convex/convex.c (expand_movstr): Use adjust_address.
8497         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
8498         variable.
8499         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
8500         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
8501         Fix typo.
8502         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
8503         Do define STACK_BOUNDARY.
8504         * config/i370/i370.c: Include expr.h.
8505         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
8506         config/pa/som.h, config/v850/v850.h: Take in_ctors and
8507         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
8508         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
8509         * config/m88k/m88k.c: Include c-tree.h after expr.h.
8510         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
8511         * config/romp/romp.c: Include expr.h after tree.h.
8512         Include toplev.h.
8513         (output_fpop): Use xmalloc, not oballoc.
8514         * config/we32k/we32k.c: Include expr.h.
8515
8516 2001-08-10  Kazu Hirata  <kazu@hxi.com>
8517
8518         * config/h8300/h8300.h: Fix formatting.
8519
8520 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
8521
8522         * c-common.h (RETURN_NULLIFIED_P): Lose.
8523         * c-semantics.c (genrtl_return_stmt): Don't check it.
8524
8525 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8526
8527         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
8528         (mips_annotate_frame_insn): New function.
8529         (mips_emit_frame_related_store): New function.
8530         (save_restore_insns): Don't mark instructions that set up the base
8531         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
8532         the store instructions instead.
8533         (mips_expand_prologue): If the stack size is moved into a temporary
8534         register, do not mark that move as frame-related.  Add a
8535         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
8536
8537 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8538
8539         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
8540         stack slot as unchanging if current_function_calls_eh_return.
8541
8542 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8543
8544         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
8545         access the second half of the TFmode scratch operand.
8546
8547 2001-08-10  Anthony Green  <green@redhat.com>
8548
8549         * java/class.c (emit_register_classes): Conditionalize code on
8550         JCR_SECTION_NAME.
8551
8552 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8553
8554         * doc/install.texi (Specific, avr): Fix cross-reference to the
8555         main manual to work both for info and HTML versions.
8556
8557 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8558
8559         * stmt.c (expand_null_return_1): Remove code to generate simple returns
8560         and "use_goto" argument.
8561         (expand_null_return, expand_value_return): Update all callers.
8562         * function.c (expand_function_end): Remove code to generate simple
8563         return.
8564         * config/vax/vax.md (epilogue): New expander for function return.
8565         * doc/md.texi (epilogue): Remove "if defined".
8566
8567 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
8568
8569         * Makefile.in: Partially revert my previous change:
8570         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
8571         of the hashtab.o and safe-ctype.o rules.
8572
8573 2001-08-09  Richard Henderson  <rth@redhat.com>
8574
8575         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
8576         (USE_COLLECT2): Remove duplicate definition.
8577         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
8578         (use_collect2): Remove dead code.
8579         * configure.in (use_collect2): Remove will_use_collect2 and
8580         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
8581         * configure: Rebuild.
8582
8583         * target.h (targetm.asm_out.constructor): New.
8584         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
8585         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
8586         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
8587         * varasm.c (in_ctors, in_dtors): New.
8588         (assemble_constructor, assemble_destructor): Remove.
8589         (default_stabs_asm_out_destructor): New.
8590         (default_named_section_asm_out_destructor): New.
8591         (dtors_section, default_dtor_section_asm_out_destructor): New.
8592         (default_stabs_asm_out_constructor): New.
8593         (default_named_section_asm_out_constructor): New.
8594         (ctors_section, default_ctor_section_asm_out_constructor): New.
8595         * output.h: Update declarations.
8596         * c-decl.c (c_expand_body): Use target hooks instead of
8597         assemble_constructor and assemble_destructor.
8598         * profile.c (output_func_start_profiler): Likewise.
8599         * objc/objc-act.c (finish_objc): Likewise.
8600         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
8601         for the constructor.
8602         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
8603
8604         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
8605         (DTORS_SECTION_ASM_OP): Likewise.
8606         (__CTOR_LIST__): Use attribute section when possible.
8607         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
8608
8609         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
8610         ASM_OUTPUT_CONSTRUCTOR.
8611
8612         * config/darwin.c (machopic_asm_out_constructor): New.
8613         (machopic_asm_out_destructor): New.
8614         * config/darwin-protos.h: Update declarations.
8615         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8616         (ASM_OUTPUT_DESTRUCTOR): Remove.
8617         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8618         * config/nextstep.c (nextstep_asm_out_constructor): New.
8619         (nextstep_asm_out_destructor): New.
8620         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8621         (ASM_OUTPUT_DESTRUCTOR): Remove.
8622         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8623         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
8624         ASM_OUTPUT_*STRUCTOR.
8625         * config/i386/aix386ng.h: Likewise.
8626
8627         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
8628         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
8629         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
8630         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8631         * config/lynx.h: Likewise.
8632         * config/netware.h: Likewise.
8633         * config/psos.h: Likewise.
8634         * config/alpha/alpha-interix.h: Likewise.
8635         * config/alpha/elf.h: Likewise.
8636         * config/arc/arc.h: Likewise.
8637         * config/arm/aof.h: Likewise.
8638         * config/arm/coff.h: Likewise.
8639         * config/arm/elf.h: Likewise.
8640         * config/c4x/c4x.h: Likewise.
8641         * config/h8300/h8300.h: Likewise.
8642         * config/i386/cygwin.h: Likewise.
8643         * config/i386/djgpp.h: Likewise.
8644         * config/i386/i386-coff.h: Likewise.
8645         * config/i386/i386-interix.h: Likewise.
8646         * config/i386/sco5.h: Likewise.
8647         * config/i386/vsta.h: Likewise.
8648         * config/i386/win32.h: Likewise.
8649         * config/i960/i960-coff.h: Likewise.
8650         * config/ia64/sysv4.h: Likewise.
8651         * config/m68hc11/m68hc11.h: Likewise.
8652         * config/m68k/coff.h: Likewise.
8653         * config/m68k/mot3300.h: Likewise.
8654         * config/m88k/m88k.h: Likewise.
8655         * config/mcore/mcore-pe.h: Likewise.
8656         * config/mcore/mcore.h: Likewise.
8657         * config/mips/elf.h: Likewise.
8658         * config/mips/elf64.h: Likewise.
8659         * config/mips/iris6.h: Likewise.
8660         * config/pa/pa64-hpux.h: Likewise.
8661         * config/rs6000/sysv4.h: Likewise.
8662         * config/sh/sh.h: Likewise.
8663         * config/sparc/litecoff.h: Likewise.
8664
8665         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
8666         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
8667         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8668         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8669         (ASM_OUTPUT_DESTRUCTOR): Remove.
8670         * config/a29k/a29k.c: Move include of tree.h.
8671         * config/a29k/udi.h: Delete file.
8672         * config/alpha/alpha.c (vms_asm_out_constructor): New.
8673         (vms_asm_out_destructor): New.
8674         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
8675         (EXTRA_SECTION_FUNCTIONS): Likewise.
8676         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8677         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8678         * config/c4x/c4x.c: Move include of tree.h.
8679         * config/clipper/clipper.c (clix_asm_out_constructor): New.
8680         (clix_asm_out_destructor): New.
8681         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8682         (ASM_OUTPUT_DESTRUCTOR): Remove.
8683         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8684         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8685         (TARGET_ASM_CONSTRUCTOR): New.
8686         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
8687         (sco_asm_out_constructor): New.
8688         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
8689         * config/i386/svr3gas.h: Remove stack grows up code.
8690         Remove code duplicated from i386/sysv3.h.
8691         (TARGET_ASM_CONSTRUCTOR): New.
8692         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8693         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
8694         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8695         (TARGET_ASM_CONSTRUCTOR): New.
8696         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
8697         (m68hc11_asm_out_destructor): New.
8698         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
8699         (TARGET_ASM_DESTRUCTOR): New.
8700         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
8701         * config/m68k/dpx2.h: Properly undef all the bits inherited from
8702         config/svr3.h pertaining to section manipulation.
8703         * config/m68k/dpx2g.h: Remove #if 0 code.
8704         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
8705         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
8706         (ASM_OUTPUT_CONSTRUCTOR): Remove.
8707         (TARGET_ASM_CONSTRUCTOR): New.
8708         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
8709         (m88k_svr3_asm_out_constructor): New.
8710         (m88k_svr3_asm_out_destructor): New.
8711         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8712         (ASM_OUTPUT_DESTRUCTOR): Remove.
8713         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8714         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
8715         * config/rs6000/aix.h: Likewise.
8716         * config/mips/rtems64.h: Don't undef removed constructor related bits.
8717         * config/mips/vxworks.h: Likewise.
8718         * config/rs6000/lynx.h: Likewise.
8719         * config/sh/elf.h: Likewise.
8720         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
8721         (DTORS_SECTION_ASM_OP): New.
8722         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8723         (ASM_OUTPUT_DESTRUCTOR): Remove.
8724         * config/sparc/sol2-sld-64.h: Likewise.
8725         * config/vax/vax.c (vms_asm_out_constructor): New.
8726         (vms_asm_out_destructor): New.
8727         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8728         (ASM_OUTPUT_DESTRUCTOR): Remove.
8729         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8730
8731         * doc/tm.texi (@node Initialization): Update.
8732
8733 2001-08-09  Richard Henderson  <rth@redhat.com>
8734
8735         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
8736         (__do_global_dtors_aux): Use gp-relative static data to avoid
8737         one dynamic relocation.
8738         (__do_frame_setup): Register Java classes.
8739         * config/alpha/crtend.asm (__JCR_END__): New.
8740
8741 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
8742
8743         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
8744         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
8745         (GEN, STAGESTUFF): Add new files.
8746         (insn-constants.h, s-constants, tm-preds.h, s-preds,
8747         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
8748         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
8749         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
8750         as well as insn-codes.h and insn-flags.h in config.h; and no
8751         extra headers in tconfig.h and hconfig.h.
8752
8753         * gencodes.c: Eliminate code to generate predicate declarations
8754         or #defines for md-file constants.
8755         * genconstants.c, genpreds.c: New files.
8756
8757         * i386.md: Re-order guard expressions such that TARGET_64BIT
8758         comes first, when this permits better optimization.  Add
8759         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
8760         why this is desirable.
8761
8762 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
8763
8764         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
8765         (find_fde_for_dso): Remove.
8766         (_Unwind_IteratePhdrCallback): New.
8767         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
8768         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
8769
8770 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8771
8772         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
8773         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
8774
8775 2001-08-09  Graham Stott  <grahams@redhat.com>
8776
8777         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
8778         (vis_no_unit): Use it.
8779         (visualize_no_unit): Add the insn only if room exists.
8780
8781 2001-08-09  Graham Stott  <grahams@redhat.com>
8782
8783         * predict.c (estimate_probability): Replace magic numbers with
8784         appropriate enumeration.
8785
8786 2001-08-09  Graham Stott  <grahams@redhat.com>
8787
8788         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
8789         parameter.
8790         (EXTRACT_FLAGS): Likewise.
8791
8792 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
8793
8794         * config/mips/mips.c    (mips_legitimate_address_p): Check for
8795         CONST_INT in last patch.
8796
8797 2001-08-08  Anthony Green  <green@redhat.com>
8798
8799         * java/class.c (emit_register_classes): Use assemble_jcr if
8800         possible.  Keep the original mechanism as a fallback.
8801         * defaults.h (JCR_SECTION_NAME): Define if we have named section
8802         and weak symbol support.
8803         * crtstuff.c (__JCR_LIST__): Define.
8804         (__JCR_END__): Define.
8805         (_Jv_RegiserClasses): Define weak symbol if possible.
8806         (__do_global_ctors_aux): Register classes for ELF targets with
8807         weak symbol support.
8808
8809 2001-08-08  Kazu Hirata  <kazu@hxi.com>
8810
8811         * dbxout.c: Fix comment formatting.
8812         * dependence.c: Likewise.
8813         * df.c: Likewise.
8814         * diagnostic.c: Likewise.
8815         * dominance.c: Likewise.
8816         * doprint.c: Likewise.
8817         * dwarf2out.c: Likewise.
8818         * dwarfout.c: Likewise.
8819         * emit-rtl.c: Likewise.
8820         * except.c: Likewise.
8821         * explow.c: Likewise.
8822         * expmed.c: Likewise.
8823         * expr.c: Likewise.
8824         * flow.c: Likewise.
8825         * fold-const.c: Likewise.
8826         * function.c: Likewise.
8827
8828 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8829
8830         * global.c (retry_global_alloc): Avoid shadowing allocno.
8831
8832 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
8833
8834         * except.c (remove_fixup_regions): Fix typo.
8835
8836 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
8837
8838         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
8839         unsigned HOST_WIDE_INT to avoid warning.
8840         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
8841         * flow.c (set_block_for_new_insns): Likewise.
8842
8843 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
8844
8845         * sibcall.c (return_value_pseudo): New static variable.
8846         (skip_copy_to_return_value): Handle return_value_pseudo.
8847         (call_ends_block_p): Ensure that return_value_pseudo is set.
8848         (optimize_sibling_and_tail_recursive_call): Discover the
8849         load of pseudo return value in alternate exit block.
8850
8851 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8852
8853         * calls.c (ECF_ALWAYS_RETURN): New constant.
8854         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
8855         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
8856         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
8857         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
8858         * rtl.c (reg_note_name): New name.
8859         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
8860
8861 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
8862
8863         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
8864
8865 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
8866
8867         * alias.c (get_alias_set): Return a previously calculated
8868         alias set for a VAR_DECL.
8869         * function.c (gen_mem_addressof): Calculate the alias set before
8870         touching the RTL.
8871
8872 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
8873
8874         * predict.def: Set hitrates according our experimental run.
8875
8876 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
8877
8878         * i386.h (HARD_REGNO_RENAME_OK): New macro.
8879
8880 2001-08-08  H.J. Lu <hjl@gnu.org>
8881
8882         * config/mips/mips.c (mips_unique_section): New. Copied from
8883         config/mips/elf.h.
8884
8885         * config/mips/mips-protos.h (mips_unique_section): New
8886         prototype.
8887
8888         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
8889
8890         * config/mips/little.h: New. Generic little endian mips
8891         targets. Only mips*-*-linux* is converted to use it so far.
8892
8893         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
8894         (WCHAR_TYPE): Defined
8895         (WCHAR_TYPE_SIZE): Likewise.
8896         (INIT_SUBTARGET_OPTABS): Likewise.
8897         (BSS_SECTION_ASM_OP): Likewise.
8898         (SBSS_SECTION_ASM_OP): Likewise.
8899         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8900         (ASM_DECLARE_OBJECT_NAME): Likewise.
8901         (UNIQUE_SECTION): Likewise.
8902         (EXTRA_SECTIONS): Likewise.
8903         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
8904         (ASM_OUTPUT_DESTRUCTOR): Likewise.
8905         (ASM_OUTPUT_DEF): Likewise.
8906         (HANDLE_SYSV_PRAGMA): Removed.
8907         (NO_IMPLICIT_EXTERN_C): Likewise.
8908         (TARGET_MEM_FUNCTIONS): Likewise.
8909         (STARTFILE_SPEC): Likewise.
8910         (ENDFILE_SPEC): Likewise.
8911         (LIB_SPEC): Likewise.
8912         (INVOKE__main): Likewise.
8913         (CTOR_LIST_BEGIN): Likewise.
8914         (CTOR_LIST_END): Likewise.
8915         (DTOR_LIST_BEGIN): Likewise.
8916         (DTOR_LIST_END): Likewise.
8917         (SET_ASM_OP): Likewise.
8918         (ASM_OUTPUT_SOURCE_LINE): Likewise.
8919         (ASM_OUTPUT_DEF): Likewise.
8920         (ASM_OUTPUT_IDENT): Likewise.
8921
8922         * config/mips/mips.h (ASM_SPEC): Undefine before define.
8923         (CPLUSPLUS_CPP_SPEC): Likewise.
8924         (ASM_APP_ON) Redefine only if not defined.
8925         (ASM_APP_OFF): Likewise.
8926         (ASM_OUTPUT_SOURCE_LINE): Likewise.
8927         (ASM_OUTPUT_IDENT): Likewise.
8928
8929         * config.gcc: Update tm_file for Linux/mips.
8930
8931 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
8932
8933         * cselib.c (cselib_record_sets): If insn is predicated, turn
8934         sources into IF_THEN_ELSEs.
8935
8936         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
8937         Turn into define_insn_and_split.
8938
8939         * sched-deps.c: Include "cselib.h".
8940         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
8941         Use cselib to turn memory addresses into VALUEs.
8942         (sched_analyze): Call cselib_init/cselib_finish if necessary.
8943         * sched-int.h (struct sched_info): New member USE_CSELIB.
8944         * sched-ebb.c (ebb_sched_info): Initialize it.
8945         * sched-rgn.c (rgn_sched_info): Likewise.
8946         * Makefile.in (sched-deps.o): Update dependencies.
8947
8948         * cselib.h (cselib_subst_to_values): Declare.
8949         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
8950         that have no value and autoincs to be handled by generating a new
8951         dummy value.
8952
8953 2001-08-08  Graham Stott  <grahams@redhat.com>
8954
8955         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
8956         within fixed length SEQUENCE.
8957
8958 2001-08-08  Graham Stott  <grahams@redhat.com>
8959
8960         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
8961         (diagnostic_prefixing_rule): Likewise.
8962         (diagnostic_line_cutoff): Likewise.
8963         (diagnostic_kind_count): Likewise.
8964
8965 2001-08-08  Graham Stott  <grahams@redhat.com>
8966
8967         * alias.c (find_base_decl): Delete redundent assignment.
8968
8969 2001-08-08  Graham Stott  <grahams@redhat.com>
8970
8971         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
8972         (abs): Uppercase and paranthesize macro parameter.
8973         (MEM_DEPENDENCY): Add whitespace.
8974
8975 2001-08-08  Graham Stott  <grahams@redhat.com>
8976
8977         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
8978         failure check for CONST_INT
8979
8980 2001-08-08  Graham Stott  <grahams@redhat.com>
8981
8982         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
8983         (libcall_dead_p): Likewise.
8984
8985         (mark_used_regs): Constify fmt.
8986         (find_use_as_address): Likewise.
8987
8988 2001-08-08  Graham Stott  <grahams@redhat.com>
8989
8990         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
8991          parameter.
8992
8993 2001-08-08  Graham Stott  <grahams@redhat.com>
8994
8995         * combine.c (combine_simplify_rtx): Update comment and
8996         remove erroneous test.
8997
8998 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8999
9000         * cppinit.c (cpp_finish): Pop the final buffer without comment.
9001         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
9002         take care to avoid multiple no-newline at EOF warnings in that
9003         case.
9004
9005 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
9006
9007         * calls.c (expand_call): Do not emit INSN_SETJMP note.
9008         (emit_library_call_value_1): Likewise.
9009         (emit_call_1): Emit REG_SETJMP note.
9010         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
9011         of INSN_SETJMP
9012         * cselib.c (cselib_process_insn): Likewise.
9013         * flow.c (propagate_block): Likewise.
9014         * loop.c (find_and_verify_loops): Likewise.
9015         * reload.c (find_equiv_regs): Likewise.
9016         * reload1.c (reload): Likewise.
9017         * resource.c (mark_referenced_resources,
9018         mark_set_resources): Likewise.
9019         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
9020         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
9021         * haifa-sched.c (unlink_other_notes): Likewise.
9022         (reemit_notes): Likewise.
9023         * sched-ebb.c (sched_ebb): Likewise.
9024         * sched-rgc.c (sched_region): Likewise.
9025         * rtl.c (note_insn_name): Likewise.
9026         (reg_note_name): Add REG_SETJMP
9027         * rtl.h (reg_note): Add REG_SETJMP.
9028         (insn_note): Remove NOTE_INSN_SETJMP.
9029
9030         * profile.c (branch_prob): Add fake edges for setjmp.
9031
9032 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
9033
9034         * config.gcc: Quote target_cpu_default2 correctly for
9035         powerpc*-*-* targets.
9036
9037 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9038
9039         * cpplib.h, line-map.h: Update comments.
9040         * cppmain.c (printer_init): Move inline.
9041         (maybe_print_line, print_line): Take a map pointer.
9042         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
9043         (cb_file_change): Don't use prior value of print.map.
9044
9045 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
9046
9047         * doc/install.texi: Document fine-grained multilib configuration.
9048
9049 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9050
9051         * rtlanal.c (find_first_parameter_load): Call note_stores
9052         only on the instructions.
9053
9054 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9055
9056         * alias.c (nonlocal_mentioned_p):
9057         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
9058         * calls.c (emit_call_1): Likewise.
9059         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
9060         * cselib.c (cselib_process_insn): Likewise.
9061         * df.c (df_insns_modify): Likewise.
9062         * flow.c (need_fake_edge_p): Likewise.
9063         (propagate_one_insn): Likewise.
9064         * haifa-sched.c (reemit_notes): Likewise.
9065         * integrate.c (copy_insn_list): Likewise.
9066         * jump.c (delete_prior_computation): Likewise.
9067         * local-alloc.c (validate_equiv_mem): Likewise.
9068         * loop.c (scan_loop): Likewise.
9069         * predict.c (estimate_probability): Likewise.
9070         * reload.c (reload): Likewise.
9071         * sched-deps (sched_analyze): Likewise.
9072         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
9073         * gcse.c (compute_hash_table): Likewise.
9074         (mark_call): Likewise.
9075         (store_killed_in_insn): Likewise.
9076
9077 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
9078
9079         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
9080
9081 2001-08-06  Richard Henderson  <rth@redhat.com>
9082
9083         * varasm.c (assemble_gc_entry): Remove.
9084         * output.h: Likewise.
9085
9086 2001-08-06  Richard Henderson  <rth@redhat.com>
9087
9088         * varasm.c (assemble_constructor): Take a symbol_ref and a
9089         priority instead of a bare string.  Move priority handling
9090         here from cp/decl2.c.
9091         * output.h: Update decls.
9092
9093         * c-decl.c (c_expand_body): Update calls to assemble_constructor
9094         and assemble_destructor.
9095         * profile.c (output_func_start_profiler): Likewise.
9096         * objc/objc-act.c (finish_objc): Likewise.
9097         (build_module_descriptor): Return the symbol not the symbol name.
9098
9099 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
9100
9101         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
9102         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
9103         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
9104         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
9105         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
9106         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
9107
9108 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9109
9110         * cpperror.c (print_containing_files): Moved to line-map.c.
9111         (print_location): line-map.c handles re-listing or otherwise.
9112         * cpphash.h (struct lexer_state): Remove next_bol.
9113         (struct cpp_buffer): Remove include_stack_listed.
9114         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
9115         Remove faked buffer handling.
9116         (_cpp_do_file_change): Tweak.
9117         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
9118         * cppmain.c (struct printer): Remove filename.
9119         (print_line, cb_file_change): Update accordingly.
9120         * line-map.c: Include intl.h.
9121         (init_line_maps): Initialize last_listed.
9122         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
9123         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
9124         (print_containing_files): New.
9125         * line-map.h (struct line_maps): New member last_listed.
9126         (print_containing_files, INCLUDED_FROM): New.
9127         * Makefile.in: Update.
9128         * po/POTFILES.in: Add line-map.c.
9129
9130 2001-08-06  Richard Henderson  <rth@redhat.com>
9131
9132         * except.c (convert_from_eh_region_ranges_1): Never mark
9133         USE or CLOBBER insns as throwing.
9134
9135         * expr.c (store_constructor): Don't clobber memory targets.
9136
9137 2001-08-06  Andreas Jaeger  <aj@suse.de>
9138
9139         * profile.c (branch_prob): Remove unused variable insn.
9140
9141         * Makefile.in (local-alloc.o): Add dependency on except.h.
9142
9143         * local-alloc.c: Include except.h for can_throw_internal prototype.
9144
9145 2001-08-06  Richard Henderson  <rth@redhat.com>
9146
9147         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
9148         * function.c (expand_main_function): Implement it.
9149         * doc/tm.texi: Document it.
9150
9151 2001-08-06  Stan Shebs  <shebs@apple.com>
9152
9153         * doc/install.texi: Document powerpc-*-darwin* details.
9154
9155 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
9156
9157         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
9158         (ASM_CPU_SPEC): Move back to rs6000.h
9159         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
9160
9161         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
9162
9163         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
9164         readded.
9165
9166         * config/rs6000/linux64.h: Ditto.
9167
9168         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
9169         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
9170         nothing.
9171
9172         Remove accidently readded definitions of FUNCTION_PROLOGUE,
9173         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
9174
9175         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
9176         to rs6000.h
9177
9178 2001-08-05  Richard Henderson  <rth@redhat.com>
9179
9180         * local-alloc.c (update_equiv_regs): Do not move insns that
9181         can throw.
9182
9183 2001-08-05  Jan Hubicka  <jh@suse.cz>
9184
9185         * Makefile.in (reload1.o): Add dedendancy on except.h
9186         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
9187         prototypes.
9188         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
9189         indicating wehther edges has been cleaned up.
9190         * reload1.c: Inlucde except.h
9191         (fixup_abnormal_edges): Accept deleted insns.
9192         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
9193         after combine.
9194
9195 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9196
9197         * cpplib.c (do_line): Correct line number after pop_buffer.
9198
9199 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9200
9201         PR preprocessor/3824
9202         * line-map.c: Update comments.
9203         * line-map.h: Update comments.
9204         * tradcif.y: Don't consider large numbers unsigned.
9205
9206 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9207
9208         PR preprocessor/3081
9209         * c-lex.c (map): New.
9210         (cb_file_change): Update map and use it.
9211         (cb_def_pragma, cb_define, cb_undef): Use map and line.
9212         (c_lex): Update to use map.
9213         * cpperror.c (print_location): Move to using logical line numbers.
9214         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
9215         (cpp_make_system_header): Similarly.
9216         (_cpp_execute_include): Stop line numbering hacks.  Store the
9217         line we will return to.
9218         * cpphash.h (CPP_BUF_LINE): Remove.
9219         (struct cpp_buffer): Remove lineno and pseudo_newlines.
9220         Add map and return_to_line.
9221         (_cpp_do_file_change): Update.
9222         * cppinit.c (cpp_start_read): Update line kludge.
9223         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
9224         (trigraph_ok): Use logical line numbers for diagnostics.
9225         (skip_block_comment): Likewise.
9226         (skip_whitespace): Likewise.
9227         (skip_line_comment): Use pfile->line instead.
9228         (_cpp_lex_token): Update to use logical line numbering exclusively.
9229         Handle BOL locally.  Accept new lines in directives, but keep
9230         pfile->line decremented.  Diagnostics use logical lines.  Update
9231         directive handling.
9232         * cpplib.c (SEEN_EOL): New.
9233         (skip_rest_of_line, check_eol): Use it.
9234         (end_directive): Increase line number when accepting the newline
9235         at the end of a directive.
9236         (run_directive): Simplify.
9237         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
9238         (_cpp_do_file_change): Update to take buffer line number as an
9239         argument, and store the current map in the cpp_reader.  Remove
9240         line number kludges.
9241         (_cpp_do__Pragma): Restore output position after a _Pragma.
9242         (cpp_push_buffer): Don't set output line or lineno.
9243         (_cpp_pop_buffer): Transfer more info from a faked buffer.
9244         Remove line kludge.  Set output_line.
9245         * cppmacro.c (builtin_macro): Update handling of __LINE__.
9246         (parse_arg): Use logical lines.
9247         (save_lookahead_token): Save EOFs too now.
9248         * cppmain.c (struct printer): Fix comments.
9249         (printer_init): Simplify, let caller do errors.
9250         (scan_translation_unit, check_multiline_token, dump_macro): Update.
9251         (maybe_print_line): Simplify.
9252         (print_line): Don't print a linemarker if -P.
9253         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
9254         (cb_file_change): Simplify.
9255         * line-map.h (LAST_SOURCE_LINE): Fix.
9256         (CURRENT_LINE_MAP): New.
9257
9258 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
9259
9260         * doloop.c (doloop_modify_runtime): Properly compute number of
9261         iterations if loop was unrolled.
9262
9263         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
9264         if their CSELIB_VAL_PTRs are.
9265
9266         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
9267         (setup_spill_pointers): Initialize it.
9268         (spill_restore_mem): Set it.
9269         (do_spill, do_restore): Use it to add REG_INC note.
9270         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
9271
9272         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
9273         asms if other insns are available.
9274
9275         * config/ia64/ia64.c (condop_operator): New predicate.
9276         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
9277         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
9278         patterns.
9279
9280         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
9281         temporary register than directly using a MEM.
9282
9283 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9284
9285         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
9286         parameter in last change.
9287
9288 2001-08-04  Zack Weinberg  <zackw@panix.com>
9289
9290         * sparc.md: Don't use #if inside C test expression.
9291
9292 2001-08-04  Richard Henderson  <rth@redhat.com>
9293
9294         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
9295
9296 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9297
9298         * cpphash.h (struct cpp_reader): New member directive_line.
9299         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
9300         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
9301         do_pragma): Pass line to callbacks.
9302         (start_directive): Record line of directive.
9303         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
9304         cb_include): Similarly.
9305         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
9306         Similarly.
9307
9308 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9309
9310         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
9311         comment.
9312
9313 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9314
9315         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
9316
9317         * reload1.c (fixup_abnormal_edges): New static function.
9318         (reload): Use it.
9319
9320         * flow.c (need_fake_edge_p): New function.
9321         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
9322         avoid call insn to be very last insn in the insn stream.
9323
9324         * profile.c (branch_prob): Call flow_call_edges_add instead of
9325         doing that by hand; cleanup cfg to re-merge basic blocks once
9326         we are done.
9327
9328 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9329
9330         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
9331         are also on line-map.h.
9332         * cppfiles.c (stack_include_file): Update.
9333         * cpphash.h (struct cpp_buffer): New member return_at_eof.
9334         (_cpp_pop_buffer): New.
9335         * cppinit.c (cpp_destroy, cpp_finish): Update.
9336         (do_includes): Mark each buffer to return at EOF.
9337         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
9338         return as requested.
9339         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
9340         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
9341         * cpplib.h (cpp_pop_buffer): Remove.
9342         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
9343         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
9344         buffers.
9345         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
9346         to pop buffers.
9347         (do_preprocessing): Update.
9348         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
9349         * c-parse.in (_yylex): Similarly.
9350         * scan-decls.c (scan_decls): Similarly.
9351         * line-map.h: Update comments.
9352
9353         * objc/Make-lang.in (objc-act.o): Update dependencies.
9354
9355 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9356
9357         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
9358         and soft register for operand 0.
9359         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
9360
9361 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9362
9363         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
9364         register for operand 0.
9365         ("bitcmpqi_z_used"): Allow memory for operand 0.
9366         (split "bitcmpqi"): New split to handle address reg as operand 1.
9367
9368 2001-08-04  Andreas Jaeger  <aj@suse.de>
9369
9370         * gcse.c: Revert Daniel's last patch.
9371
9372 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
9373
9374         * sparc-protos.h: Add prototypes for fp_zero_operand and
9375         reg_or_0_operand.
9376         * sh-protos.h: Add prototype for fpul_operand.
9377
9378 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9379
9380         * doc/extend.texi (Other Builtins): Fix typo in last change.
9381
9382 2001-08-03  Richard Henderson  <rth@redhat.com>
9383
9384         * target.h (gcc_target): Add asm_out.named_section,
9385         section_type_flags, have_named_sections.
9386         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
9387         (TARGET_HAVE_NAMED_SECTIONS): New.
9388         (TARGET_SECTION_TYPE_FLAGS): New.
9389
9390         * Makefile.in (toplev.o): Depend on TARGET_H.
9391         (varasm.o, dbxout.o): Likewise.
9392         * c-common.c (decl_attributes): Check targetm.have_named_sections
9393         instead of ifdef ASM_OUTPUT_SECTION_NAME.
9394         * dbxout.c (dbxout_function_decl): Likewise.
9395         (dbxout_function_end): Likewise.
9396         * toplev.c (compile_file): Likewise.
9397         * varasm.c (exception_section): Likewise.
9398         * cp/decl2.c (finish_objects): Likewise.
9399
9400         * defaults.h (EH_FRAME_SECTION): Remove.
9401         (EH_FRAME_SECTION_ASM_OP): Remove.
9402         (EH_FRAME_SECTION_NAME): New.
9403         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
9404         (UNIQUE_SECTION_P): Remove.
9405         * dwarf2out.c (SECTION_FORMAT): Remove.
9406         (ASM_OUTPUT_SECTION): Remove.
9407         (output_call_frame_info): Use named_section_flags.
9408         (output_comp_unit, dwarf2out_start_source_file): Likewise.
9409         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
9410         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
9411         * varasm.c (in_eh_frame, eh_frame_section): Remove.
9412         (named_section_flags): New.
9413         (named_section): Use it and targetm.section_type_flags.
9414         (resolve_unique_section): New.
9415         (assemble_start_function): Use it.
9416         (asm_emit_uninitialised, assemble_variable): Likewise.
9417         (default_section_type_flags): New.
9418         (default_no_named_section, default_elf_asm_named_section): New.
9419         (default_coff_asm_named_section, default_pe_asm_named_section): New.
9420         * output.h: Update varasm.c decls.
9421         (SECTION_*): New flags.
9422
9423         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
9424         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
9425
9426         * config/elfos.h (UNIQUE_SECTION_P): Remove.
9427         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
9428         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
9429         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
9430         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
9431         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
9432         * config/mips/elf.h, config/mips/elf64.h: Likewise.
9433         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
9434         * config/pa/pa64-hpux.h,
9435
9436         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
9437         (TARGET_ASM_NAMED_SECTION): New.
9438         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
9439         * config/alpha/vms.h, config/arm/coff.h: Likewise.
9440         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
9441         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
9442         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
9443         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
9444         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
9445         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
9446         * config/i386/sco5.h, config/i386/win32.h: Likewise.
9447         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
9448         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
9449         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
9450         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
9451         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
9452         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
9453         * config/sparc/sysv4.h: Likewise.
9454
9455         * config/nextstep.h: Error until named sections implemented.
9456
9457         * config/a29k/a29k.c (a29k_asm_named_section): New.
9458         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
9459         (vms_section_type_flags, vms_asm_named_section): New.
9460         * config/arm/arm.c (arm_elf_asm_named_section): New.
9461         * config/avr/avr.c (asm_output_section_name): Remove.
9462         * config/avr/avr-protos.h: Update.
9463         * config/c4x/c4x.c (c4x_asm_named_section): New.
9464         * config/h8300/h8300.c (h8300_asm_named_section): New.
9465         * config/i386/i386.c (sco_asm_named_section): New.
9466         * config/i386/winnt.c (SECTION_PE_SHARED): New.
9467         (i386_pe_section_type_flags): New.
9468         (i386_pe_asm_named_section): New.
9469         * config/i386/i386-protos.h: Update.
9470         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
9471         * config/mcore/mcore.c (mcore_asm_named_section): New.
9472         * config/mips/mips.c (iris6_asm_named_section): New.
9473         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
9474         instead of UNIQUE_SECTION_P.
9475         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
9476         (xcoff_asm_named_section): New.
9477         * config/sh/sh.c (sh_asm_named_section): New.
9478         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
9479
9480         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
9481         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
9482         (EH_FRAME_SECTION_NAME): New.
9483         (EXCEPTION_SECTION): New.
9484         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
9485         (DEBUG_*_SECTION): Remove.
9486         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
9487         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
9488         (EH_FRAME_SECTION_ASM_OP): Remove.
9489
9490         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
9491         (ASM_OUTPUT_SECTION_NAME): Remove.
9492         (TARGET_ASM_NAMED_SECTION): New.
9493         (TARGET_HAVE_NAMED_SECTIONS): New.
9494         (TARGET_SECTION_TYPE_FLAGS): New.
9495         (EH_FRAME_SECTION_ASM_OP): Remove.
9496         (EH_FRAME_SECTION_NAME): New.
9497
9498 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
9499
9500         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
9501         for complex expressions when cfun == 0.
9502         * doc/extend.texi: Document that __builtin_constant_p can be
9503         used in data initializers as well as functions.
9504
9505 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
9506
9507         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
9508         variable I locally, instead of expecting a declaration in the
9509         calling context.
9510
9511 2001-08-03  Richard Henderson  <rth@redhat.com>
9512
9513         * except.c (collect_one_action_chain): Add an explicit cleanup
9514         action if regions surrounding a catch were encoded entirely
9515         within the call-site entry.
9516
9517 2001-08-03  Richard Henderson  <rth@redhat.com>
9518
9519         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
9520         don't take REGNO of a non-register.
9521
9522 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9523
9524         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
9525         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
9526         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
9527         (__gthread_mutex_init_function): New function for mutex initialization.
9528
9529 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9530
9531         * Makefile.in: Revert screwed up commit.
9532
9533 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9534
9535         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
9536         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
9537         merged by linker script to get a final _exit().
9538         (__do_global_dtors): New for destructor handling in specific exit
9539         section.
9540         (__do_global_ctors): New for constructors in specific install section.
9541         (__map_data_section): Map data sections before running constructors.
9542         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
9543         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
9544         (DTORS_SECTION_ASM_OP): Likewise.
9545         (CTORS_SECTION_FUNCTION): Define to force a reference to
9546         __do_global_ctors.
9547         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
9548
9549 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9550
9551         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
9552
9553         * Makefile.in: Add df.h to gcse.c dependencies.
9554
9555 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9556
9557         * varasm.c (output_constant_def_contents): Use for the length of a
9558         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
9559         depending on which is larger.
9560
9561 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9562
9563         * gcse.c: Include df.h for use as a dataflow analyzer.
9564         Remove regvec.
9565         Declaration of reg_set_info: gone.
9566         New df_analyzer variable used by store motion.
9567         (reg_set_info): Deleted.
9568         (mark_mem_regs): New function, analyze regs used by a mem.
9569         (store_ops_ok): Use dataflow analyzer results to determine if
9570         necessary regs are changed in the block.
9571         (find_moveable_store): Remove check for symbol ref, we can handle
9572         much more complex expressions now.
9573         (compute_store_table): Remove most of the code, it's unnecessary
9574         now that the dataflow analyzer records the info for us.
9575         (store_killed_after): Add parameter to say whether to do the
9576         store_ops_okay test, used to speed up testing when we already know
9577         the answer, and just want to know if the store itself was killed.
9578         (build_store_vector): Largely rewritten to calculate the various
9579         vectors properly, and somewhat optimized.
9580         (store_motion): Init the df_analyzer, get REG_DEF chains.
9581         Also handle trapping expressions (since mems almost always trap)
9582         (simple_mem): Redefine what a simple mem is.
9583
9584 2001-08-03  DJ Delorie  <dj@redhat.com>
9585
9586         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
9587         set from a constant part of the condition.
9588
9589 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
9590
9591         * mkdeps.c (deps_add_default_target): Make local variable
9592         ``start'' a const char pointer.
9593         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
9594
9595 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9596
9597         * doc/install.texi (Configuration): Fix markup.
9598         (Specific, i?86-*-udk): Likewise.
9599         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
9600         --with-gnu-ld.
9601         Document --enable-threads and --enable-libgcj status.
9602         (Specific, mips-sgi-irix*): Canonicalize triples.
9603         (Specific, mips-sgi-irix5): Warn about problems with this config.
9604         Mention required GNU as patch.
9605         Native assembler problems are fixed.
9606         (Specific, mips-sgi-irix6): Update O32 ABI support status.
9607         Document --enable-threads and --enable-libgcj status.
9608
9609 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9610
9611         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
9612         of mkinstalldirs.
9613
9614 2001-08-03  Richard Henderson  <rth@redhat.com>
9615
9616         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
9617         constant data.
9618
9619 2001-08-03  Richard Henderson  <rth@redhat.com>
9620
9621         * rtlanal.c (find_first_parameter_load): Stop if we
9622         reach a CODE_LABEL at BOUNDARY.
9623
9624 2001-08-03  Richard Henderson  <rth@redhat.com>
9625
9626         * config/alpha/alpha.md (force_movdi): New insn.
9627         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
9628         Tweek FRP marking of VMS prologue insns.
9629         * config/alpha/vms.h (EPILOGUE_USES): New.
9630
9631 2001-08-02  Richard Henderson  <rth@redhat.com>
9632
9633         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
9634
9635 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
9636
9637         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
9638         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
9639         config/convex/convex.h, config/d30v/d30v.c,
9640         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9641         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
9642         config/mips/mips.h, config/mn10200/mn10200.h,
9643         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
9644         config/v850/v850.h, config/vax/openbsd.h,
9645         config/vax/openbsd1.h, config/vax/ultrix.h,
9646         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
9647         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
9648         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
9649         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
9650         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
9651         in comments and documentation.
9652
9653 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9654
9655         * line-map.c: New.
9656         * line-map.h: New.
9657         * Makefile.in (line-map.o): New.
9658         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
9659         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
9660         * cpperror.c (print_containing_files): Similarly.
9661         (print_location): Update.  Don't output a space before _Pragma.
9662         * cppfiles.c (stack_include_file): Set to line 1 immediately.
9663         (stack_include_filee, cpp_make_system_header): Update.
9664         (_cpp_execute_include): Get logical line number right for calling
9665         as-yet-unterminated #include.
9666         * cpphash.h (struct cpp_reader): Add line_maps.
9667         (_cpp_do_file_change): Update.
9668         * cppinit.c (cpp_create_reader): Initialize line maps.
9669         (cpp_destroy): Destroy line maps.
9670         (cpp_start_read): Get logical line number right.
9671         * cpplex.c (parse_string): Only warn once for multi-line strings.
9672         Use boolean variable for null warning.
9673         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
9674         already.
9675         (do_include_common): End the directive early.
9676         (do_line): Don't warn about out-of-range lines in preprocessed
9677         source.  Update.  Remove unused variables.
9678         (_cpp_do_file_change): Update for new line mapping.
9679         (pragma_cb): New typedef.
9680         (cpp_register_pragma): Stop looking ahead before calling the
9681         handler.  Clean up.
9682         (do_pragma_system_header): End directive early.
9683         (cpp_get_line_maps): New.
9684         (cpp_pop_buffer): Fudge logical line.  Update.
9685         * cpplib.h: Include line-map.h
9686         (enum cpp_fc_reason): Remove.
9687         (struct cpp_file_change): Update.
9688         (cpp_get_line_maps): New.
9689         * cppmain.c (struct_printer): New member map.
9690         (cb_file_change): Update for new mappings.
9691         * fix-header.c (cb_file_change): Similarly.
9692
9693 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9694
9695         * Makefile.in (libgcc.mk): Define mkinstalldirs.
9696         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
9697
9698 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
9699
9700         * config/vax/vax.c: include expr.h.
9701
9702 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9703
9704         * Makefile.in ($(srcdir)/configure): Only rebuild in
9705         maintainer mode.
9706         ($(srcdir)/config.in): Only define in maintainer mode.
9707         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
9708
9709 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
9710
9711         * doc/install.texi (Install GCC: Binaries): Update Bull info.
9712
9713 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9714
9715         * gcc.c (set_collect_gcc_options): New function, split out from
9716         main.
9717         Ignore elided switches.
9718         (do_spec_1): Invoke before executing command.
9719         (set_input): Export.
9720         Move declaration ...
9721         * gcc.h (set_input): ... here.
9722         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
9723         file.
9724
9725 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
9726
9727         Kill -fhonor-std.
9728         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
9729         interaction.
9730         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
9731
9732 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
9733
9734         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
9735         for the unnamed instructions it expands to.
9736
9737 2001-08-02  Richard Henderson  <rth@redhat.com>
9738
9739         * regclass.c (call_really_used_regs): Conditionally define.
9740         (init_reg_sets_1): Don't use it if not defined.
9741         (fix_register): Similarly, don't set it.
9742
9743 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9744
9745         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
9746         Correct comment that had been missed in the previous change.
9747
9748 2001-08-01  Stan Shebs  <shebs@apple.com>
9749
9750         * config/darwin.c (machopic_stub_name): Try matching by name.
9751         (update_stubs): New function.
9752         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
9753         unconditionally.
9754
9755 2001-08-01  Richard Henderson  <rth@redhat.com>
9756
9757         * except.c (output_function_exception_table): Use assemble_align.
9758         * varasm.c (assemble_eh_label): Remove.
9759         (assemble_eh_align, assemble_eh_integer): Remove.
9760
9761 2001-08-01  Robert Lipe  <robertl@caldera.com>
9762
9763         * dwarfout.c: Remove reference to README.DWARF.
9764
9765 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
9766
9767         * regclass.c (call_really_used_regs): New array for registers which
9768         are actually used by a call.
9769         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
9770         new array.
9771         (fix_register): Set call_really_used too.
9772         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
9773         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
9774
9775 2001-08-01  Richard Henderson  <rth@redhat.com>
9776
9777         * read-rtl.c (read_name): Consider \r whitespace.
9778
9779 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
9780
9781         * config.gcc: Recognize powerpc-*-netbsd*.
9782
9783         * doc/install.texi (Host/target specific installation notes for
9784         GCC): Mention powerpc-*-netbsd*.
9785
9786         * config/rs6000/netbsd.h: New file.
9787         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
9788         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
9789         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
9790         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
9791         (TARGET_VERSION): Redefine.
9792
9793         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
9794         mcall-netbsd as a match for mcall-sysv.
9795         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
9796         (ncrti.S, ncrtn.S): New targets.
9797         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
9798
9799         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
9800         "netbsd' as a V4 ABI.
9801         (ASM_SPEC): Check for -mcall-netbsd.
9802         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
9803         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
9804         (LIB_SPEC, ENDFILE_SPEC): Ditto.
9805         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
9806         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
9807         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
9808         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
9809
9810         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
9811         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
9812
9813 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
9814
9815         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
9816         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
9817         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
9818         including "unwind-pe.h".
9819
9820 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
9821
9822         * rs6000.md (define_splits): Kill unused constraints.
9823
9824 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
9825                               Jan Hubicka  <jh@suse.cz>
9826
9827         * function.c (thread_prologue_and_epilogue_insns): Kill code
9828         dealing with non-existent CFG.
9829
9830 2001-08-01  Kazu Hirata  <kazu@hxi.com>
9831
9832         * alias.c: Fix comment formatting.
9833         * bitmap.c: Likewise.
9834         * builtins.c: Likewise.
9835         * calls.c: Likewise.
9836         * c-common.c: Likewise.
9837         * c-decl.c: Likewise.
9838         * c-dump.c: Likewise.
9839         * c-lex.c: Likewise.
9840         * collect2.c: Likewise.
9841         * combine.c: Likewise.
9842         * conflict.c: Likewise.
9843         * cppfiles.c: Likewise.
9844         * cppinit.c: Likewise.
9845         * cpplex.c: Likewise.
9846         * cpplib.c: Likewise.
9847         * cppmacro.c: Likewise.
9848         * cppspec.c: Likewise.
9849         * c-pragma.c: Likewise.
9850         * crtstuff.c: Likewise.
9851         * cse.c: Likewise.
9852         * cselib.c: Likewise.
9853         * c-semantics.c: Likewise.
9854         * c-typeck.c: Likewise.
9855
9856 2001-08-01  H.J. Lu <hjl@gnu.org>
9857
9858         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
9859
9860 2001-08-01  H.J. Lu <hjl@gnu.org>
9861
9862         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
9863
9864 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
9865
9866         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
9867         contextualizing Objective-C class name lookup by the lexer.
9868         (typespec_reserved_nonattr): Disable ObjC class name lookup after
9869         seeing a TYPESPEC.
9870         (protocoldef): Add support for forward @protocol declarations.
9871         (yylexname): Suppress ObjC class name lookup in certain contexts;
9872         re-enable after lookup is complete.
9873         (_yylex): Re-enable ObjC class name lookup when certain
9874         punctuation marks are seen.
9875
9876         * objc/objc-act.c (check_protocol_recursively): New function used
9877         for finding circular dependencies in protocols.
9878         (objc_declare_protocols): New function for handling forward
9879         @protocol declarations.
9880         (receiver_is_class_object): Detect the case when 'self' is used
9881         inside of a class method.
9882         (build_message_expr): Issue a warning if class method is desired
9883         but instance method is found instead.
9884         (conforms_to_protocol): Streamline.
9885         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
9886         protocol Foo, even if 'Bar foo' does not.
9887         (check_protocols): Streamline.
9888         (start_protocol): Add checks for circular and duplicate protocol
9889         definitions.
9890         (encode_aggregate_within): For typedefs of structs, encode the
9891         underlying struct.
9892         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
9893         (objc_declare_protocols): New prototype.
9894
9895 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9896
9897         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
9898         * cpplex.c (handle_newline): Update prototype.  Maintain logical
9899         line number.
9900         (skip_escaped_newlines, skip_block_comment, parse_string):
9901         Update accordingly.
9902         (_cpp_lex_token): Update, and store token position within the token.
9903         * cpplib.h (struct cpp_token): Add line and column entries.
9904         * cppmacro.c (replace_args): Position stringified tokens correctly.
9905
9906 2001-08-01  Andreas Jaeger  <aj@suse.de>
9907
9908         * basic-block.h: Add prototype for last_loop_beg_note.
9909
9910 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
9911
9912         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
9913         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
9914         comment.
9915         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
9916         while handling WITH_CLEANUP_EXPR node. Use second operand calling
9917         expand_decl_cleanup.
9918         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
9919         the first RTX.
9920         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
9921         operand while calling simple_cst_equal.
9922         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
9923         operand is the cleanup expression, the third is the RTL_EXPR.
9924         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
9925
9926 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
9927
9928         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
9929
9930 2001-07-31  matthew green  <mrg@eterna.com.au>
9931
9932         * config.gcc (i386-*-netbsdelf): New description.
9933         * config/i386/netbsd-elf.h: New file.
9934
9935 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
9936
9937         * loop.c (check_dbra_loop): Use single_set to compute
9938         jump_label.
9939
9940 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
9941
9942         PowerPC reorg and support for powerpc64-*-linux*.
9943
9944         Also fixes emitting of constants on 32 bit and 64 bit
9945         platforms.
9946
9947         * config.gcc: powerpc64-*-linux* is a new target.
9948         Things that needed aix.h now also include xcoff.h
9949
9950         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
9951         xcoff.h.
9952         Move AIX specific stuff into aix.h.
9953         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
9954         with more than just XCOFF now.
9955         (SET_ASM_OP): Remove, now defined where needed.
9956         (FUNCTION_PROLOGUE): New macro definition.
9957         (FUNCTION_EPILOGUE): New macro definition.
9958         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
9959
9960         * config/rs6000/xcoff.h: New file.
9961
9962         * config/rs6000/linux64.h: New file.
9963
9964         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
9965
9966 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
9967
9968         * rs6000.c (print_operand_address): Handle ELF syntax.
9969         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
9970         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
9971         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
9972
9973 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
9974
9975         * rs6000.c (rs6000_override_options): Only disable
9976         flag_function_sections for XCOFF.
9977         (exact_log2_cint_operand): New predicate.
9978         (reg_or_{add,sub}_cint64_operand): New predicates.
9979         (add_operand): Compare CONST_INT with fewer function calls.
9980         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
9981         (print_operand, case 'p'): Ensure positive operand.
9982         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
9983         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
9984         (PREDICATE_CODES): Add new predicates.
9985         * rs6000.md (addsi3): Split 32-bit constants more correctly.
9986         (divsi3, modsi3): Ensure positive power-of-2.
9987         (adddi3): Use new predicate.  Split 32-bit constants more
9988         correctly.  Re-arrange splitter to handle any constant.
9989         (subdi3): Use new predicate.
9990         (divdi3, moddi3): Ensure positive power-of-2.
9991         (movdi): Use rs6000_emit_set_const.
9992         (load_toc_v4_pic_di): Delete.
9993
9994 2001-07-31  Graham Stott <grahams@redhat.com>
9995
9996         * function.c (pad_below): Revert 2001-07-26 patch.
9997
9998 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9999
10000         * reg-stack (convert_regs_1): Fix best edge condition.
10001
10002 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
10003
10004         * jump.c (duplicate_loop_exit_test): Better test for jumps
10005         entering the loop; create loop pre_header.
10006
10007 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
10008
10009         * doc/install.texi: Add s390 and s390x as new targets.
10010         * doc/invoke.texi: Add documentation of S/390 and zSeries
10011         target options.
10012         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
10013
10014 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
10015
10016         * config/m68k/m68k.md: Replace all general_operand with
10017         nonimmediate_operand for all destinations.
10018         * config/m68k/m68k.c (not_sp_operand): Likewise.
10019
10020 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
10021
10022         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
10023
10024 2001-07-30  Richard Henderson  <rth@redhat.com>
10025
10026         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
10027         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
10028
10029 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
10030
10031         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
10032         Add missing doc strings
10033         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
10034         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
10035
10036 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
10037
10038         * i386.c (ix86_output_main_function_alignment_hack): New function.
10039         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
10040
10041         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
10042         edges by EDGE_DFS_BACK flag.
10043         (dump_edge_info): Add dfs_back flag.
10044         * basic-block.h (EDGE_DFS_BACK): New constant.
10045         (mark_dfs_back_edges): Declare.
10046         * alias.c (loop_p): Remove.
10047         (mark_constant_function): Use mark_dfs_back_edges.
10048
10049         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
10050         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
10051         (compensate_edge): Break out from ...
10052         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
10053         (convert_regs_2): Set block_done once block is really done;
10054         Do updating of the predecesors counts.
10055
10056         * toplev.c (rest_of_compilation): Recompute block_for_insn
10057         before post-reload cfg_cleanup.
10058         * function.c (thread_prologue_epilogue_insns):
10059         Call set_block_for_new_insns when emitting prologue directly.
10060
10061 2001-07-30  Andreas Jaeger  <aj@suse.de>
10062
10063         * jump.c: Add prototype for mark_modified_reg.
10064
10065         * cse.c (set_live_p): Add unused attribute.
10066
10067         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
10068         overflow.
10069         (scan_for_source_files): Use long for count to avoid overflow.
10070         (output_data): Likewise.
10071         (output_data): Don't use string concatatenation to silence gcc
10072         -traditional.
10073
10074         * predict.c: Fix typos and grammar.
10075
10076         * gcse.c (insert_insn_end_bb): Remove unused variables.
10077
10078 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
10079
10080         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
10081         (attempt_auto_inc): LIkewise.
10082         (mark_used_reg): Likewise.
10083         (try_pre_increment_1): Likewise.
10084         * regclass.c (regclass): Likewise.
10085         * global.c (allocno_compare): Update comment; change scaling factor.
10086         * local-alloc.c (QTY_CMP_PRI): Likewise.
10087         * regs.h (REG_FREQ_FROM_BB): New.
10088         (REG_FREQ_MAX): Likewise.
10089
10090 2001-07-30  H.J. Lu <hjl@gnu.org>
10091
10092         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
10093         -D_GNU_SOURCE.
10094
10095 2001-07-30  H.J. Lu  (hjl@gnu.org)
10096
10097         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
10098         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10099         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
10100
10101 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
10102
10103         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
10104         as -mthumb-interwork when -mcpu=arm7 is specified.
10105
10106 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10107
10108         * predict.def (noreturn, loop branch, loop exit): Mark as first
10109         match heuristics.
10110
10111 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
10112
10113         * combine.c (try_combine): Avoid barrier after noop jumps.
10114
10115 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10116
10117         * cpphash.h (struct cpp_reader): Remove import_warning.
10118         * cpplib.c (skip_rest_of_line): Don't bother turning off
10119         macro expansion.
10120         (parse_include): Move include handling to...
10121         (do_include_common): ... here.  Move import warning from...
10122         (do_import): ... here.
10123         (do_pragma_poison): Don't do a callback for poison identifiers.
10124         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
10125         * cppmain.c (setup_callbacks): Similarly.
10126
10127 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
10128
10129         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
10130         handle multiple sets.
10131         * except.c (sjlj_mark_call_sites): .... here.
10132         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
10133
10134 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
10135
10136         Suggested by Richard Henderson and Richard Kenner:
10137         * combine.c (recog_for_combine): Use the fake recog
10138         only if instruction does not match.
10139         * rtl.h (NOOP_MOVE_INSN_CODE): New.
10140         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
10141
10142         * combine.c (try_combine): Discover noop jump as direct jump.
10143
10144 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
10145
10146         * df.c (df_rd_global_compute): Add successors to worklist, not
10147         current item.
10148         (df_ru_global_compute): Ditto.
10149
10150 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
10151
10152         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
10153         increment REG_N_SETS.
10154
10155 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
10156
10157         * sbitmap.h: New prototype for sbitmap_a_xor_b.
10158
10159         * sbitmap.c (sbitmap_a_xor_b): New function.
10160         ifdef the basic block stuff on IN_GCC.
10161
10162 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10163
10164         * cppexp.c (parse_defined): Always record the macro name.
10165         (lex): Don't worry about identifiers, or special-case
10166         CPP_NOT here.
10167         (_cpp_parse_expr): Figure out at the end of the routine
10168         whether we saw a valid !defined() expression.
10169         * cppfiles.c (stack_include_file): Update for mi_valid.
10170         (_cpp_pop_file_buffer): Similarly.
10171         * cpplex.c (_cpp_lex_token): Similarly.
10172         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
10173         mi_if_not_defined, mi_lexed): Remove.
10174         (mi_valid): New.
10175         * cpplib.c (do_if): Simplify.
10176         (do_endif, push_conditional, _cpp_handle_directive): Update
10177         for renaming of mi_state to mi_valid.
10178 doc:
10179         * cpp.texi: Add index entries for digraphs, and add comment
10180         that C++ refers to them as alternative tokens.
10181
10182 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
10183
10184         * basic-block.h (CLEANUP_PRE_LOOP): New.
10185         * except.c (finish_eh_generation): Update call of cleanup_cfg.
10186         * sibcall.c (optimize_sibling_calls): Likewise.
10187         * toplev.c (rest_of_compilation): Likewise.
10188         * flow.c (try_forward_edges): Take argument MODE;
10189         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
10190         (try_optimize_cfg): Update call of try_forward_edges.
10191
10192 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
10193                                 Jan Hubicka  <jh@suse.cz>
10194
10195         * (validate_replace_rtx_1): Fix simplification of MINUS.
10196
10197 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10198
10199         PR preprocessor/3669
10200         * cppinit.c (init_dependency_output): Turn off dump requests
10201         if sending dependencies to stdout.
10202
10203 2001-07-28  Richard Henderson  <rth@redhat.com>
10204
10205         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
10206         not optimizing.
10207
10208 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
10209
10210         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
10211
10212 2001-07-28  Kazu Hirata  <kazu@hxi.com>
10213
10214         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
10215         is VAR_DECL first to prevent an ICE.
10216
10217 2001-07-28  Richard Henderson  <rth@redhat.com>
10218
10219         * varasm.c (immed_real_const_1): Don't elide special cases for
10220         nested functions.
10221         (clear_const_double_mem): Clear const_tiny_rtx too.
10222
10223 2001-07-28  Richard Henderson  <rth@redhat.com>
10224
10225         * dwarf2out.c (dw_val_class_offset): New.
10226         (struct dw_ranges_struct, dw_ranges_ref): New.
10227         (ranges_table, ranges_table_allocated): New.
10228         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
10229         (add_AT_offset, add_ranges, output_ranges): New.
10230         (print_die, output_die): Handle dw_val_class_offset.
10231         (attr_checksum, size_of_die, value_format): Likewise.
10232         (gen_lexical_block_die): Handle non-contiguous blocks.
10233         (gen_block_die): Likewise.
10234         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
10235         if needed.  Dump the ranges table.
10236         * final.c (final_start_function): Remove unnecessary notes and
10237         rebuild the block tree before numbering the blocks.
10238         * function.c (reorder_blocks_0): Walk the existing block tree
10239         to unmark all blocks.
10240         (reorder_blocks_1): Create block fragments when duplicate block
10241         notes are seen.
10242         (reorder_fix_fragments): New.
10243         (reorder_blocks): Call it.
10244         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
10245
10246 2001-07-28  Richard Henderson  <rth@redhat.com>
10247
10248         * emit-rtl.c (adjust_address): Make a copy of the memory address.
10249
10250 2001-07-28  Richard Henderson  <rth@redhat.com>
10251
10252         * flow.c (add_to_mem_set_list): New function.
10253         (init_propagate_block_info): Use it.
10254         (mark_set_1): Likewise.
10255         (insn_dead_p): Canonicalize memory address for dead store
10256         comparison.  Allow wider mode stores to kill narrower mode stores.
10257         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
10258         (invalidate_mems_from_set): Don't handle MEMs.
10259
10260 2001-07-28  Kazu Hirata  <kazu@hxi.com>
10261
10262         * config/h8300/h8300.h: Fix formatting.
10263
10264 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10265
10266         * basic-block.h (EDGE_FREQUENCY): New macro.
10267         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
10268         for new BB/edges.
10269         * flow.c (find_sub_basic_blocks): Likewise.
10270         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
10271         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
10272
10273         * predict.c (DEF_PREDICTOR): New argument FLAGS.
10274         (HITRATE): New macro.
10275         (PRED_FLAG_FIRST_MATCH): New constant.
10276         (predictor_info): New field flgags.
10277         (combine_predictions_for_insn): Use DS theory to combine
10278         probabilities; set the edge probabilities when finished.
10279         (estimate_probability): Avoid duplicated matches
10280         of LOOP_BRANCH heuristics for nested loops; update comment.
10281         * predict.def: Add flags for each prediction, set probabilities
10282         according to B&L paper.
10283         * predict.h (DEF_PREDICTOR): New argument FLAGS.
10284
10285         * profile.c (compute_branch_probabilities):  Cleanup way the edge
10286         probabilities are computed and REG_BR_PROB notes are dropped; if
10287         values does not match, emit error.
10288         (init_branch_prob): Do error instead of warning when profile driven
10289         feedback is missing or corrupt.
10290
10291 2001-07-27  DJ Delorie  <dj@redhat.com>
10292
10293         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
10294         against a constant, try to adjust the compare to have the desired
10295         constant in it so that min/max optimizations happen more often.
10296
10297 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10298
10299         * flow.c (last_loop_beg_note): New function.
10300         (redirect_edge_and_branch): Use it.
10301         (split_edge): Likewise.
10302
10303         * alias.c (loop_p): Avoid uninitialized memory access.
10304
10305         * flow.c (try_forward_edges): Avoid accessing freed memory.
10306
10307         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
10308         variable access.
10309
10310 2001-07-26  Andrew Haley  <aph@redhat.com>
10311         Joern Rennecke <amylaar@redhat.com>
10312
10313         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
10314         (SUBTARGET_CPP_ENDIAN_SPEC): New.
10315         (SUBTARGET_CPP_SPEC): New.
10316         (CPP_SPEC): Remove.
10317         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
10318         (SUBTARGET_CPP_PTR_SPEC): New.
10319         (CPP_DEFAULT_CPU_SPEC): New.
10320         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
10321         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
10322         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
10323         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
10324         (SUBTARGET_CPP_SPEC): Define as an empty string.
10325
10326 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10327
10328         * doc/install.texi (Configuration): Properly link the host
10329         specific instructions also when generating HTML.
10330
10331 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
10332
10333         * flow.c (redirect_edge_and_branch_force): Test
10334         target->global_live_at_start.
10335
10336 2001-07-26  Richard Henderson  <rth@redhat.com>
10337
10338         * simplify-rtx.c (avoid_constant_pool_reference): Export.
10339         * rtl.h (avoid_constant_pool_reference): Declare it.
10340         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
10341         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
10342
10343 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10344
10345         * rtl.h (cleanup_barriers): Declare.
10346         * jump.c (cleanup_barriers): New function.
10347         * toplev.c (rest_of_compilation): Call cleanup_barriers
10348         before loop optimizer and after bb_reorder.
10349
10350         * flow.c (back_edge_of_syntactic_loop_p): New.
10351         (split_edge): Use it.
10352
10353 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10354
10355         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
10356
10357 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
10358
10359         * cse.c (cse_process_notes): Replace any registers if the address
10360         remains valid.
10361
10362 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
10363
10364         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
10365         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
10366         (propagate_block): Update prototype.
10367         * flow.c (update_life_info): Simplify the CFG and
10368         recalculate the global regs which are alive when
10369         removing dead code during a global update.
10370         (propagate_block): Return non-zero if an INSN is
10371         deleted.
10372
10373 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10374
10375         * Makefile.in (LIBICONV): Define.
10376
10377 2001-07-26  Catherine Moore  <clm@redhat.com>
10378
10379         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
10380         of conditional to avoid tree checking errors.
10381
10382 2001-07-26  Kazu Hirata  <kazu@hxi.com>
10383
10384         * regmove.c (regmove_optimize): Don't replace a reg with
10385         another reg of a different mode.
10386
10387 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
10388
10389         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
10390         limit length of dependency flush list.
10391         * params.h (MAX_PENDING_LIST_LENGTH): Define.
10392         * sched-int.h  (struct deps): Add pending_flush_length field.
10393         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
10394         has 1 element in it.
10395         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
10396         (sched_analyze): After a jump, if the pending memory flush list is too
10397         large, flush the pending lists.
10398         (init_deps): Initialize pending_flush_length to 0.
10399         * doc/invoke.texi (max_pending_list_length): Document parameter.
10400
10401 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10402
10403         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
10404         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
10405         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
10406
10407 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10408
10409         * cpphash.h (struct_lexer_state): Delete was_skipping.
10410         Move skipping here from struct cpp_reader.
10411         * cpplex.c (parse_identifier): Update.
10412         (_cpp_lex_token): Don't skip tokens in a directive.
10413         * cpplib.c (struct if_stack): Update.
10414         (start_directive, end_directive): Don't change skipping state.
10415         (_cpp_handle_directive): Update.
10416         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
10417         (do_else, do_endif): Update; only check for excess tokens if not
10418         in a skipped conditional block.
10419         (push_conditional): Update for new struct if_stack.
10420
10421 2001-07-26  Graham Stott  <grahams@redhat.com>
10422
10423         * function.c (locate_and_pad_parm): Also pad initial offset
10424         so that the total argument size also includes the padding.
10425
10426 2001-07-26  Graham Stott <grahams@redhat.com>
10427
10428         * gensupport.c (alter_output_for_insn): Correct enable checking failure
10429         change XSTR to XTMPL.
10430
10431         (process_one_cond_exec): Likewise
10432
10433 2001-07-25  Richard Henderson  <rth@redhat.com>
10434
10435         * varasm.c (assemble_variable): Create DECL_RTL before setting
10436         TREE_ASM_WRITTEN.
10437
10438 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
10439
10440         * predict.c (estimate_probability): Avoid duplicated predictions.
10441
10442         * loop.c (find_and_verify_loops): Grok multiple barriers.
10443
10444 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10445
10446         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
10447
10448         * dbxout.c: Consistently use putc instead of fputc.
10449         (print_wide_int): New function; call instead of direct fprintf.
10450         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
10451         (dbxout_type_fields, dbxout_type_method_1): Likewise.
10452         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
10453         (print_int_cst_octal): Likewise.
10454         (print_octal): Show we wrote characters.
10455         (dbxout_type): Set have_used_extensions in more places.
10456
10457 2001-07-25  Catherine Moore  <clm@redhat.com>
10458
10459         * config/v850/v850.c (v850_va_arg):  Use addr
10460         instead of valist to build incr.
10461
10462 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
10463
10464         * flow.c (delete_dead_jumptables): New function.
10465         (life_analyzis): Call it.
10466         * bb-reorder.c (skip_insns_after_block): Handle contradictory
10467         sequences.
10468
10469 2001-07-25  Richard Henderson  <rth@redhat.com>
10470
10471         * except.c (reachable_handlers): Handle a region being removed
10472         out from under a RESX.
10473
10474 2001-07-25  Richard Henderson  <rth@redhat.com>
10475
10476         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
10477         swap GE/GT if it is an fp comparison.
10478
10479 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
10480
10481         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
10482         operands.
10483
10484 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
10485
10486         * ssa.c (rename_insn_1): Do not wrap an assignment to a
10487         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
10488         glitch.
10489
10490         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
10491         throw an exception.
10492         (visit_expression): When attempting to simplify an expression,
10493         retrieve any modes for arguments before they are simplified
10494         to constants.
10495
10496 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
10497             Janis Johnson  <janis@us.ibm.com>
10498
10499         * stmt.c (expand_goto): A nonlocal goto can be a call too.
10500         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
10501         pointer parameters to match documented usage of nonlocal_goto.
10502         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
10503         parameters to their correct order.
10504         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
10505         parameters to their correct order.
10506
10507 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
10508
10509         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
10510
10511 2001-07-25  Jan Hubicka  <jh@suse.cz>
10512             Richard Henderson  <rth@redhat.com>
10513
10514         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
10515         the sequence.
10516         (make_edges): New argument update_p; populate the edge cache if set.
10517         (find_basic_blocks): Update make_edges invocation.
10518
10519 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10520
10521         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
10522
10523 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10524
10525         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
10526         -Acpu and -Amachine.h.
10527         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
10528         Corrected header to say ELF not a.out.
10529         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
10530         when given -msoft-float.
10531
10532 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10533
10534         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
10535         extra multilib parts like arm-elf.
10536         (i960-*-coff*, i960-*-rtems): Should not use collect2.
10537         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
10538         crtfini.o as extra multilib parts.
10539
10540 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10541
10542         * configure.in: Add rtems as a supported thread model.
10543         * gthr-rtems.h: Add missing entry point __gthread_active_p.
10544         * configure: Rebuilt.
10545
10546 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
10547
10548         * stor-layout.c (get_mode_alignment): make it work when
10549         BITS_PER_UNIT is not a power of two.
10550         * builtins.c (get_pointer_alignment): Likewise.
10551
10552 2001-07-24  Richard Henderson  <rth@redhat.com>
10553
10554         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
10555         the retrieved constant into the expected mode.
10556
10557 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
10558
10559         * flow.c (try_simplify_condjump): Avoid duplicated edges.
10560         (verify_flow_info): Check for duplicated edges; clarify
10561         error reporting.
10562
10563         * flow.c (block_label): Update basic_block_for_insn.
10564         (commit_edge_insertions): Call compute_bb_for_insn.
10565
10566         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
10567         returns too.
10568
10569         * flow.c (redirect_edge_and_branch,
10570         try_optimize_cfg): Use redirect_edge_succ_nodup
10571         (redirect_edge_succ_nodup): New.
10572         * basic_block.h (redirect_edge_succ_nodup): Declare.
10573
10574         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
10575         after gcse.
10576
10577 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
10578
10579         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
10580         (try_crossjump_to_edge): Update commetns.
10581         (try_crossjump_bb): Likewise.
10582
10583 2001-07-24  Richard Henderson  <rth@redhat.com>
10584
10585         * combine.c (distribute_notes): Move set of need_refresh
10586         for noop_move_p down to catch all cases.
10587
10588 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
10589
10590         * recog.c (split_all_insns_noflow): New.
10591         * rtl.h (split_all_insns_noflow): Declare.
10592         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
10593         * m68hc11.c (m68hc11_reorg): Likewise.
10594         * sh.c (machine_dependent_reorg): Likewise.
10595         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
10596         call.
10597
10598 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
10599
10600         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
10601         (ashlsi3_n splitter): Likewise.
10602         (lshrsi3_n splitter): Likewise.
10603
10604         (GOTaddr2picreg): Make const SImode.
10605         (sym_label2reg): Likewise.
10606         (symGOT2reg): Likewise.
10607         (symGOTOFF2reg) Likewise.
10608
10609         (casesi_worker_0): Make unspec SImode.
10610
10611 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
10612
10613         * config/sh/sh.c (barrier_align): Check that an operand really is
10614         an insn before extracting its INSN_CODE.
10615
10616 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
10617
10618         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
10619         dangling else.
10620
10621         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
10622         for SImode to prevent overflow.
10623
10624 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10625
10626         * config/mips/irix6-libc-compat.c: New file.
10627         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
10628         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
10629         passing workaround.
10630
10631 2001-07-24  lars brinkhoff  <lars@nocrew.org>
10632
10633         * rtl.texi (REG_POINTER): Document.
10634         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
10635         QFmode, HFmode, TQFmode, QCmode, and HCmode.
10636
10637 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
10638
10639         * flow.c (delete_noop_moves): Do not confuse libcall regions.
10640
10641 2001-07-23  Richard Henderson  <rth@redhat.com>
10642
10643         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
10644
10645 2001-07-23  Kazu Hirata  <kazu@hxi.com>
10646
10647         * config/h8300/h8300-protos.h: Add a prototype for
10648         general_operand_dst_push.
10649         * config/h8300/h8300.c (general_operand_dst_push): New.
10650         * config/h8300/h8300.h (OK_FOR_T): New.
10651         (EXTRA_CONSTRAINT): Use it.
10652         * config/h8300/h8300.md (movqi_push): Remove and integrate into
10653         the existing movqi pattern.
10654         (movhi_push): Likewise.
10655
10656         * reload.c: Fix comment typos.
10657
10658 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
10659
10660         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
10661
10662 2001-07-23  H.J. Lu  (hjl@gnu.org)
10663
10664         * doc/extend.texi: Update __builtin_return_address and
10665         __builtin_frame_address.
10666
10667 2001-07-23  Richard Henderson  <rth@redhat.com>
10668
10669         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
10670         before CSE.
10671         * config/i386/i386.md: New setcc+movzbl peephole2.
10672
10673 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10674
10675         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
10676         * objc/objc-act.c: Include debug.h.
10677         (synth_module_prologue): Save and restore debug hooks too.
10678
10679 2001-07-23  lars brinkhoff  <lars@nocrew.org>
10680
10681         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
10682         and C4X_FLOAT_FORMAT.
10683         (BOOL_TYPE_SIZE): Document.
10684
10685 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
10686
10687         * unroll.c (loop_iterations): Fix miscalculation of initial
10688         giv offset.
10689
10690 2001-07-13  Andrew Haley  <aph@redhat.com>
10691
10692         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
10693         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
10694         * config/sh/sh.c (sh_can_redirect_branch): New function.
10695         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
10696         * reorg.c (steal_delay_list_from_target): Use
10697         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
10698
10699 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
10700
10701         * flow.c (try_simplify_condjump): Unlink insn chain on
10702         fallthru edge; use can_fallthru.
10703
10704 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
10705
10706         * basic-block.h (find_sub_basic_block): Declare.
10707         * flow.c (make_edges): New arguments MIN and MAX;
10708         (find_sub_basic_blocks): Revamp to use make_edges
10709         and purge_dead_edges.
10710         (find_basic_blocks): Update call of find_sub_basic_block.
10711
10712         * recog.c (split_all_insns): Always expect CFG to be consistent;
10713         call find_sub_basic_blocks in case something has changed.
10714         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
10715         has been built.
10716
10717         * basic-block.h (delete_noop_moves): Declare.
10718         * combine.c (combine_instructions): Call it.
10719         (recog_for_combine): Tolerate noop moves
10720         (distribute_notes): Force refresh when register dies at noop move.
10721         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
10722         too.
10723         (life_analysis): Update delete_noop_moves call.
10724         (set_noop_p): Move too ...
10725         * rtlanal.c (noop_move_p): ... here.
10726         * rtl.h (noop_move_p): Declare.
10727
10728         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
10729         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
10730         after combine.
10731         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
10732         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
10733
10734 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
10735
10736         * reload.c (push_reload): Fix typo in comment.
10737         (find_reloads_address): Ditto.
10738         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
10739
10740 2001-07-22  Richard Henderson  <rth@redhat.com>
10741
10742         * flow.c: Grammar check and clarify a lot of comments.
10743         (try_simplify_condjump): Rename variables to be clearer.
10744         (try_forward_edges): Skip complex and fallthru edges.
10745         Rearrange tests to avoid duplicate checks.
10746         (flow_find_cross_jump): Likewise.
10747         (outgoing_edges_match): Allow match if neither branch has
10748         probability data.  Loosen probability match to 5%.
10749         (try_crossjump_to_edge): Hoist repeated indirection into
10750         local variables.
10751         (try_crossjump_bb): Don't check complex edges.  Eliminate
10752         redundant crossjump tests.
10753         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
10754         checks before more expensive checks.
10755
10756 2001-07-22  Richard Henderson  <rth@redhat.com>
10757
10758         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
10759         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
10760         arguments.
10761
10762 2001-07-22  Richard Henderson  <rth@redhat.com>
10763
10764         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
10765         (const_sint32_operand): Likewise.
10766         * m68k.md (anon mulsi pattern): Use const_int_operand not
10767         const_sint32_operand.
10768         (umulsi3_highpart): Zero extend a constant input.
10769         (smulsi3_highpart): Don't bother checking SImode constant.
10770         (const_umulsi3_highpart): Give op3 DImode.
10771         (const_smulsi3_highpart): Likewise.
10772
10773 2001-07-22  Richard Henderson  <rth@redhat.com>
10774
10775         * flow.c (split_block): Make sure bb_note is included in the
10776         new block when splitting before a label.
10777
10778 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
10779
10780         * basic-block.h (redirect_edge_and_branch_force,
10781         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
10782         * flow.c (redirect_edge_and_branch_force,
10783         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
10784         (redirect_edge_and_branch_force): Fix copying of lifeness information.
10785         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
10786         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
10787         instead of label; update CFG after transformation.
10788         (find_if_case_1): Update call, use redirect_edge_and_branch_force
10789         for finishing the transformation; handle even case where ELSE
10790         does not follow THEN.
10791         (find_if_case_2): Update call of dead_or_predictable; simplify
10792         CFG update.
10793
10794         * emit-rtl.c (split_branch_probability): New global variable.
10795         (try_split): Take care to set split_branch_probability and
10796         create REG_BR_PROB note for new jump insns.
10797         * md.texi (define_split): Document new feature.
10798
10799         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
10800
10801 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10802
10803         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
10804         (asm_out_file): Remove redundant declaration.
10805         (assemble_asm): Remove old #if 0 block.
10806         (assemble_variable): Remove end of function; debug output is
10807         now handled with global_decl.  Remove old #if 0 block.  Update.
10808         Remove saved_in_section and associated no-op code.
10809         * Makefile.in (varasm.o): Correct dependencies.
10810
10811 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
10812
10813         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10814         the definition in defaults.h.
10815
10816 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
10817
10818         * jump.c: Update comments.
10819         (delete_barrier_successors, delete_unreferenced_labels,
10820         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
10821         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
10822         jump_optimize, jump_optimize_minimal): Kill.
10823         (rebuild_jump_labels): Move code from jump_optimize_1.
10824         (purge_line_number_notes): Likewise.
10825         (copy_loop_headers): Likewise.
10826         * reg-stack.c: Update comment.
10827         * stmt.c: Likewise.
10828         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
10829         JUMP_AFTER_REGSCAN): Kill.
10830         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
10831         purge_line_number_notes and copy_loop_headers.
10832
10833 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
10834            Richard Henderson  <rth@redhat.com>
10835
10836         * dbxout.c (dbxout_global_decl): New.
10837         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
10838         * sdbout.c (sdbout_finish): New.
10839         (sdbout_debug_hooks): Use it, add comments.
10840         (sdbout_global_decl): Defer initialised public vars to
10841         sdbout_finish.
10842         * varasm.c (assemble_variable): Don't output debug information
10843         for file-scope variables.
10844
10845 2001-07-22  Richard Henderson  <rth@redhat.com>
10846
10847         * config/alpha/alpha.c (get_trap_mode_suffix): New.
10848         (get_round_mode_suffix): New.
10849         (print_operand): Use them for [/].  Remove support for [&'`()+].
10850         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
10851         * config/alpha/alpha.md (attr round_suffix): New.
10852         (attr trap_suffix): New.
10853         (all insns): Set them appropriately.  Use %/ instead of the
10854         myriad punctuators.
10855
10856 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10857
10858         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
10859
10860 2001-07-22  Richard Henderson  <rth@redhat.com>
10861
10862         * regrename.c (regrename_optimize): Compute nregs for each
10863         potential target register.
10864
10865 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
10866            Richard Henderson  <rth@redhat.com>
10867
10868         * dbxout.c (dbxout_global_decl): New.
10869         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
10870         * sdbout.c (sdbout_finish): New.
10871         (sdbout_debug_hooks): Use it, add comments.
10872         (sdbout_global_decl): Defer initialised public vars to
10873         sdbout_finish.
10874         * varasm.c (assemble_variable): Don't output debug information
10875         for file-scope variables.
10876
10877 2001-07-21  H.J. Lu  (hjl@gnu.org)
10878
10879         * config/mips/mips.c (mips_cpu): Moved into ...
10880         (override_options): Here.
10881
10882         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
10883         mips_tune.
10884         (mips_cpu): Removed.
10885
10886 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10887
10888         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
10889         ("iorqi3"): Likewise.
10890         ("xorqi3"): Likewise.
10891         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
10892         ("*subhi3_sp): Likewise.
10893         ("*subhi3"): Likewise.
10894         ("extendhisi2"): Accept D, X and Y as source operand to avoid
10895         reload problems.
10896
10897 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10898
10899         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
10900         * config/freebsd.h: Likewise.
10901         * config/linux.h: Likewise.
10902         * config/openbsd.h: Likewise.
10903         * config/alpha/linux-elf.h: Likewise.
10904         * config/arm/linux-elf.h: Likewise.
10905         * config/d30v/d30v.h: Likewise.
10906         * config/fr30/fr30.h: Likewise.
10907         * config/ia64/aix.h: Likewise.
10908         * config/ia64/ia64.h: Likewise.
10909         * config/mips/linux.h: Likewise.
10910         * config/pj/pj.h: Likewise.
10911         * config/rs6000/linux.h: Likewise.
10912         * config/sparc/linux.h: Likewise.
10913         * config/sparc/linux64.h: Likewise.
10914
10915 2001-07-20  Bruce Korb  <bkorb@gnu.org>
10916
10917         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
10918         because getc() and char* may disagree on signedness.
10919
10920 2001-07-20  Richard Henderson  <rth@redhat.com>
10921
10922         * doc/rtl.texi (REG_DEAD): Update for current semantics.
10923
10924         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
10925         insns to delete in the presence of cc0 in a jump insn.
10926
10927 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
10928                                 Jan Hubicka  <jh@suse.cz>
10929
10930         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
10931         of doing the change by hand.
10932
10933 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
10934
10935         * rtlanal.c (set_noop_p): Return true for noop jumps.
10936
10937         * expr.c (emit_single_push_insn): Add call to push expander.
10938         * expr.h (optab_index): Add OTI_push
10939         (push_optab): New constant.
10940         * genopinit.c (optabs): Add push_optab.
10941         * optabs.c (init_optab): Init push optab.
10942         * md.texi (push??1): Document
10943
10944 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10945
10946         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
10947         expand to emit the pattern; put a REG_INC note for push/pop
10948         instructions.
10949         ("movdf", "movdf_internal"): Likewise.
10950         ("movsi", "movsi_internal"): Likewise.
10951         ("movsf", "movsf_internal"): Likewise.
10952         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
10953
10954 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10955
10956         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
10957         gen_highpart.
10958
10959 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
10960
10961         * params.def: Change default max inline insns to 100.
10962
10963 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
10964
10965         * combine.c (combine_simplify_rtx): Generate a new shift operation
10966         when simplifying the first operand of a (neg (ashift)) expression.
10967
10968 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10969
10970         * regclass.c (N_REG_INTS): Use only 32 bits per element.
10971
10972 2001-07-20  Kelley Cook  <kelley.cook@home.com>
10973
10974         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
10975         information.   Move rest into ...
10976         (*-*-solaris): ... here.  Eliminate redundant information and
10977         reword necessary packages section.  Delete 4.x assembler bug info.
10978         (sparc-sun-*): Merge into ...
10979         (sparc-sun-sunos*): here.
10980
10981 2001-07-20  Catherine Moore  <clm@redhat.com>
10982
10983         * config/v850/v850.md (casesi): Generate LABEL_REF
10984         with Pmode.
10985
10986 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
10987
10988         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
10989         * i386.c (ix86_zero_extend_to_Pmode): Make global.
10990         * i386.md (strclrsi expander): Use it.
10991
10992 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10993
10994         * integrate.c (copy_insn_list): handle
10995         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
10996         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
10997         identically as to CODE_LABEL.
10998
10999         * fold-const (fold): Convert A/B/C to A/(B*C) and
11000         A/(B/C) to (A/B)*C
11001
11002         * except.c (connect_post_landing_pads): Delete the RESX insns.
11003
11004 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
11005
11006         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
11007
11008         * config/mips/mips.md (nmadd/nmsub): Use macro.
11009
11010 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
11011
11012         * cppinit.c (remove_dup_dir): Make static.
11013         (remove_dup_dirs): Make static. Only warn about preempting a
11014         system directory with a non-system directory.
11015
11016 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
11017
11018         * ifcvt.c (noce_try_store_flag_constants): Correct order
11019         of parameters to trunc_int_for_mode.
11020
11021 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
11022
11023         * reorg.c (fill_simple_delay_slots): If an instruction might throw
11024         an exception that will be caught within this function, do not fill
11025         its delay slot with any subsequent instruction.
11026
11027 2001-07-19  Steve Ellcey <sje@cup.hp.com>
11028
11029         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
11030         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
11031         pointer extension instruction.
11032         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
11033         * simplify-rtx.c (simplify_unary_operation) Likewise.
11034         * explow.c (convert_memory_address) Check value of
11035         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
11036         less than zero.
11037         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
11038         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
11039         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
11040         Add Multilib Support.
11041         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
11042         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
11043         Add Multilib Support.
11044         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
11045         support.
11046         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
11047         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
11048         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
11049
11050 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
11051
11052         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
11053         old and new operands in `<', `3' and `b'.
11054
11055 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11056
11057         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
11058         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
11059         (toplev.o): Don't depend on xcoffout.h.
11060         * c-decl.c: Include debug.h
11061         (duplicate_decls): Use debug hook.
11062         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
11063         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11064         (dbxout_types): Remove.
11065         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
11066         * debug.c (do_nothing_debug_hooks): Update.
11067         (debug_true_tree, debug_nothing_rtx): New.
11068         * debug.h (struct rtx_def): New.
11069         (struct gcc_debug_hooks): New hooks ignore_block,
11070         outlining_inline_function and label.
11071         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
11072         dwarf2out_frame_finish): New.
11073         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
11074         Make static, update prototype.
11075         (dwarf2_debug_hooks): Update.
11076         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
11077         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
11078         * dwarfout.c (dwarf_debug_hooks): Update.
11079         * emit-rtl.c: Include debug.h.
11080         (remove_unnecessary_notes): Use debug hook.
11081         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
11082         (final_scan_insn): Use debug hook.
11083         * integrate.c (output_inline_function): Use debug hook.
11084         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
11085         (sdb_debug_hooks): Update.
11086         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
11087         * toplev.c: Don't include xcoffout.h.
11088         (note_outlining_of_inline_function, debug_ignore_block): Remove.
11089         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
11090         Remove.
11091         * tree.h (dwarf2out_do_frame): Remove.
11092
11093 2001-07-19  Catherine Moore  <clm@cygnus.com>
11094
11095         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
11096
11097 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
11098
11099         * reload1.c (eliminate_regs_in_insn): When updating a set
11100         to the frame pointer to the hardware frame pointer, perform
11101         the update always not just when REPLACE is set.
11102
11103         * reload1.c (choose_reload_regs): Don't inherit a reload
11104         that crosses multiple registers if registers past the first
11105         don't fit in the desired class.
11106
11107         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
11108         when negating constants.
11109
11110 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
11111
11112         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
11113         * doc/tree.texi: Ditto.
11114
11115 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
11116             Jakub Jelinek  <jakub@redhat.com>
11117
11118         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
11119         (extract_cie_info): Handle "eh" augmentation properly,
11120         remember eh_ptr.
11121         (struct frame_state, __frame_state_for): New.
11122
11123 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11124
11125         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
11126         HANDLE_SYSV_PRAGMA): Define.
11127         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
11128         previous args.
11129         (copy_object): Caller changed.
11130
11131 2001-07-19  Andreas Schwab  <schwab@suse.de>
11132
11133         * configure.in (assembler dwarf2 debug_line support): Define nop
11134         insn for m68k.
11135         * configure: Regenerated.
11136
11137 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11138
11139         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
11140         dwarfout.h.
11141         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
11142         to conditionally compiled block.
11143         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11144         * dbxout.h (dbxout_function): Remove.
11145         * debug.c (do_nothing_debug_hooks): Update.
11146         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
11147         global_decl, deferred_inline_function.
11148         * dwarf2out.c (dwarf2_debug_hooks): Update.
11149         (dwarf2out_global_decl): New.
11150         * dwarfout.c: Don't include dwarfout.h.
11151         (dwarfout_global_decl, dwarfout_function_decl,
11152         dwarfout_deferred_inline_function): New.
11153         (dwarf_debug_hooks): Update.
11154         * dwarfout.h: Remove.
11155         * final.c: Don't include dwarfout.h.
11156         * sdbout.c (sdbout_global_decl): New.
11157         (sdbout_debug_hooks): Update.
11158         * toplev.c: Don't include dwarfout.h.
11159         (check_global_declarations, rest_of_compilation): Use new debug hooks.
11160         (note_deferral_of_defined_inline_function): Remove.
11161         * toplev.h (note_deferral_of_defined_inline_function): Remove.
11162         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
11163         * ch/lex.c: Don't include dwarfout.h.
11164         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
11165         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
11166         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
11167         * cp/optimize.c: Include debug.h.
11168         (maybe_clone_body): Use debug hook.
11169         * cp/semantics.c: Include debug.h.
11170         (expand_body): Use debug hook.
11171         * po/POTFILES.in: Remove dwarfout.h.
11172
11173 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11174
11175         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
11176         * c-parse.in (yyerror, _yylex): Similarly.
11177         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
11178         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
11179         Update comments.
11180         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
11181         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
11182
11183 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
11184
11185         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
11186         in-class declaration at -g1.  Fixes c++/2814.
11187
11188 2001-07-18  Richard Henderson  <rth@redhat.com>
11189
11190         * doc/md.texi (reload_in/out): Document restrictions in predicates
11191         and constraints for these patterns.  Document empty string matching
11192         ALL_REGS.
11193
11194 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11195
11196         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
11197
11198 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11199
11200         * cse.c: Undo my previous patch.
11201
11202 2001-07-18  Tom Tromey  <tromey@redhat.com>
11203
11204         For PR java/2812:
11205         * configure: Rebuilt.
11206         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
11207         instead.
11208         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
11209
11210 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
11211                                 Jan Hubicka  <jh@suse.cz>
11212
11213         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
11214         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
11215         * jump.c (mark_jump_label): Do not forward branches.
11216
11217 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
11218
11219         * cse.c (delete_trivially_dead_insns): Delete the libcall block
11220         when return value is unused.
11221
11222 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11223
11224         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
11225
11226 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
11227
11228         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
11229         on error.  We can't blindly return the result of
11230         pthread_mutex_trylock because it returns a positive number on
11231         error, while we must return -1 on error.
11232         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
11233         fixes.
11234         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
11235
11236 2001-07-18  Andreas Jaeger  <aj@suse.de>
11237
11238         * integrate.c (output_inline_function): Correct type of debug_hooks.
11239
11240 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
11241
11242         * combine.c (combine_simplify_rtx): DIV can be treated
11243         associatively for floats if unsafe math optimisations are enabled.
11244
11245 2001-07-17  Richard Henderson  <rth@redhat.com>
11246
11247         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
11248
11249 2001-07-17  Richard Henderson  <rth@redhat.com>
11250
11251         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
11252         don't force the function address into a register.
11253         (expand_call, emit_library_call_value_1): Update callers.
11254         * builtins.c (expand_builtin_apply): Likewise.
11255         * expr.h (prepare_call_address): Update decl.
11256
11257 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
11258
11259         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
11260         config directory.
11261         * config/i386/chorus.h: Move up.
11262         * config/sparc/chorus.h: Likewise.
11263         * config/rs6000/chorus.h: Likewise.
11264         * config/chorus.h: Moved here.
11265
11266 2001-07-17  Andreas Schwab  <schwab@suse.de>
11267
11268         * configure.in  (assembler eh_frame optimization): Handle big
11269         endian.
11270         * configure: Regenerated.
11271
11272 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
11273
11274         * expr.c (epxand_expr): Convert divisions into multiplications by
11275         reciprocals if -ffast-math.
11276
11277 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11278
11279         * dbxout.c (dbxout_really_begin_function): Rename to
11280         dbxout_begin_function.
11281         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11282         (dbxout_begin_function): Remove.
11283         (dbxout_function): Update.
11284         (dbxout_source_line): Update prototype.
11285         * dbxout.h (dbxout_begin_function): Remove.
11286         * debug.c (do_nothing_debug_hooks): Update.
11287         (debug_nothing_tree): Update.
11288         (debug_nothing_charstar_rtx): Remove.
11289         * debug.h (union tree_node): Declare.
11290         (struct rtx_def): Remove.
11291         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
11292         begin_function.  Change source_line prototype.
11293         (debug_nothing_tree): New.
11294         (debug_nothing_charstar_rtx): Delete.
11295         (dwarf2out_begin_prologue): Moved from ...
11296         * tree.h: ... here.
11297         * dwarf2out.c (dwarf2_debug_hooks): Update.
11298         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
11299         debug info, call dwarf2out_source_line.
11300         (dwarf2out_souce_line): Update prototype.
11301         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
11302         Change prototype, make static.
11303         (dwarfout_source_line): Update prototype.
11304         (dwarf_debug_hooks): Update.
11305         * dwarfout.h (dwarfout_begin_function): Remove.
11306         * final.c (final_start_function, final_scan_insn): Use appropriate
11307         debug hooks, update to use notice_source_line.
11308         (output_source_line): Rename notice_source_line.  Don't call the
11309         source_line debug hook.
11310         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
11311         make static, update prototype.
11312         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
11313         prototype.
11314         (sdbout_end_prologue): New.
11315         (sdbout_source_line): Update prototype.
11316         (sdbout_debug_hooks): Update.
11317         (sdbout_symbol): Remove unused var.
11318         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
11319         Delete.
11320         * varasm.c: Include debug.h.
11321         (assemble_start_function): Use begin_function debug_hook.
11322         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
11323         update with prototype.
11324         (xcoffout_source_line): Update prototype.
11325         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
11326         update prototype.
11327         (xcoffout_source_line): Update prototype.
11328
11329 2001-07-17  Richard Henderson  <rth@redhat.com>
11330
11331         * c-typeck.c (build_binary_op): Do not shorten unsigned
11332         right shift after sign extension.
11333
11334 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
11335
11336         * combine.c (combine_simplify_rtx): Attempt to simplify
11337         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
11338
11339         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
11340         (simplify_binary_operation, simplify_unary_operation,
11341          simplify_relational_operation): Use it.
11342
11343         * combine.c (combine_simplify_rtx): Don't do associative law
11344         on divisions; allow associative law on floats.
11345
11346 2001-07-17  H.J. Lu <hjl@gnu.org>
11347             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11348
11349         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
11350         ASM_OUTPUT_WEAK_ALIAS are defined.
11351         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
11352         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
11353         Moved ...
11354         * config/mips/iris5.h: ... here.
11355         (HANDLE_SYSV_PRAGMA): Defined as 1.
11356         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
11357         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
11358         symbol.
11359
11360 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
11361
11362         * c-parse.in (all_prefix_attributes): New variable.
11363         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
11364         (maybe_resetattrs): New production.
11365         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
11366         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
11367         notype_initdcl, nested_function, notype_nested_function,
11368         component_decl, components, components_notype,
11369         component_declarator, component_notype_declarator,
11370         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
11371         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
11372         after a comma being applied to more than one declarator.
11373         * doc/extend.texi (Attribute Syntax): Update.  Remove
11374         documentation of bugs that are no longer present.
11375
11376 2001-07-13  Eric Christopher  <echristo@redhat.com>
11377
11378         * config/mips/mips.h: Change TUNE_MIPS* options to use
11379         mips_tune.
11380         (EXTRA_SPECS): Add cc1_cpu_spec.
11381         * config/mips/mips.md (muldf3): Fix typo.
11382
11383 2001-07-16  Richard Henderson  <rth@redhat.com>
11384
11385         * config/m68k/m68k.c: Include expr.h and reload.h.
11386         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
11387         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
11388
11389 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
11390             Richard Henderson  <rth@redhat.com>
11391
11392         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
11393         (insn_live_p): Fix fall off end of function.
11394         (dead_libcall_p): Remove COUNTS argument; update callers.
11395         (delete_trivially_dead_insns): Remove unused variables.
11396
11397 2001-07-17  Andreas Jaeger  <aj@suse.de>
11398
11399         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
11400         x86-64 pic support.
11401
11402         * lcm.c (optimize_mode_switching): Avoid warning for unused
11403         variable if !NORMAL_MODE.
11404
11405         * flow.c (try_crossjump_to_edge): Remove unused variable.
11406
11407 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11408
11409         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
11410         atexit declaration in stdlib.h.
11411
11412 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
11413
11414         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
11415
11416 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11417
11418         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
11419         * except.c (finish_eh_generation): Update call of cleanup_cfg;
11420         do rebuild_jump_labels instead of jump_optimize
11421         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
11422         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
11423         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
11424
11425         * flow.c: Include timevar.h
11426         (find_basic_block): Push/pop timevar;
11427         (cleanup_cfg): Likewise.
11428         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
11429         * Makefile: Add dependencies on timevar.h
11430
11431         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
11432         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
11433
11434         * rtl.h (delete_trivially_dead_insns): Add new parameter.
11435         * toplev.c (rest_of_compilation): Update calls.
11436         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
11437         (delete_trivially_dead_insns): ... here; accept new argument
11438         preserve_basic_blocks; preserve basic blocks if set.
11439
11440         * reg-stack.c (stack_regs_mentioned): Return 0 if
11441         stack_regs_mentioned_data is not initialized.
11442         (reg_to_stack): Make stack_regs_mentioned survive after the
11443         reg-stack is completted; do not call cleanup_cfg.
11444         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
11445         make cleanup_cfg after bb-reorder to output to debug file.
11446
11447 2001-07-16  Richard Henderson  <rth@redhat.com>
11448
11449         * regclass.c (init_reg_sets): Use only 32 bits per initializer
11450         from int_reg_class_contents.
11451
11452 2001-07-16  Richard Henderson  <rth@redhat.com>
11453
11454         * hard-reg-set.h (regs_invalidated_by_call): Declare.
11455         * regclass.c (regs_invalidated_by_call): Move from cse.c.
11456         (init_reg_sets_1): Move initialization from cse_main.
11457         * cse.c (regs_invalidated_by_call): Move to regclass.c.
11458         (cse_main): Move its initialization also.
11459         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
11460         * flow.c (propagate_one_insn): Likewise.
11461         * gcse.c (compute_hash_table): Likewise.
11462         (compute_kill_rd, compute_store_table): Likewise.
11463         * sched-deps.c (sched_analyze_1): Likewise.
11464
11465 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
11466
11467         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
11468         gen_rtx_SET.
11469
11470 2001-07-16  Steve Ellcey <sje@cup.hp.com>
11471
11472         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
11473         in if statement so we don't access undefined memory.
11474
11475 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
11476
11477         * gcse.c: Update comment at top.
11478         Update comment on mem handling.
11479         mem_last_set, mem_first_set, mem_set_in_block: gone.
11480         Declaration of reg_set_info: gone.
11481         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
11482         pointless with load_killed_in_block_p (they are *more*
11483         conservative then it, not less, and less accurate).
11484         (oprs_not_set_p): Ditto.
11485         (alloc_gcse_mem): Don't allocate mem_set_in_block
11486         (free_gcse_mem): Don't free it, either.
11487         (record_last_mem_set_info): Update comment in front, remove
11488         mem_*set_* stuff. Note the reason we don't handle stores directly
11489         here.
11490         (compute_hash_table): Update comments to reflect reality. Remove
11491         mem_*set_* references.
11492         (reset_opr_set_tables): Remove mem_*set_* references.
11493         (mark_call): Ditto.
11494         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
11495         (mark_clobber): Ditto (on both parts, we double set here too).
11496         (expr_killed_p): Remove mem_set_in_block test.
11497         (compute_transp): Remove mem_set_in_block test.
11498
11499         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
11500         of edge, and removal of phi alternative to dump file.
11501         (ssa_ccp_substitute_constants): Add note about register now being
11502         constant, and which uses were replaced in what insns to dump file.
11503
11504 2001-07-16  Andreas Jaeger  <aj@suse.de>
11505
11506         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
11507         variables of type HOST_WIDEST_INT.
11508
11509         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
11510         (__bb_exit_func): Correct type of count_max to avoid overflow.
11511         (num_digits): Handle long long argument.
11512
11513         * combine.c (gen_lowpart_for_combine): Remove unused variable.
11514
11515 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11516
11517         * output.h (sdb_begin_function_line): Restore as an extern
11518         variable.
11519         * sdbout.c (sdb_begin_function_line): Make extern.
11520
11521 2001-07-15  Richard Henderson  <rth@redhat.com>
11522
11523         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
11524         * genrecog.c (maybe_both_true_mode): New.
11525         (maybe_both_true_2): Use it.
11526         (write_switch): Don't put Pmode in a switch.
11527         * rtl.c (mode arrays): Don't explicitly size them.
11528
11529 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11530
11531         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
11532         handling; move unconditional splitting before mode switching.
11533
11534         * i386.md (type): Add fistp type.
11535         (i387, length_attr, scheduling definitions): Handle this type.
11536         (fix_trunc?f?i2): Revamp to use mode switching.
11537         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
11538         * i386.h (fp_cw_mode): New enum
11539         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
11540         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
11541
11542 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11543
11544         * Makefile.in (integrate.o): Add debug.h.
11545         * integrate.c (debug.h): Add.
11546         (output_inline_function): Save, reset, and restore debug_hooks.
11547
11548 2001-07-15  Richard Henderson  <rth@redhat.com>
11549
11550         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
11551         instead of COMPARE for the EQUIV expression.
11552
11553 2001-07-15  Richard Henderson  <rth@redhat.com>
11554
11555         * flow.c (redirect_edge_and_branch_force): Initialize
11556         global_live_at_start and global_live_at_end.
11557         (allocate_bb_life_data): Export.
11558         * basic-block.h (allocate_bb_life_data): Declare.
11559         * toplev.c (rest_of_compilation): Call it.
11560
11561 2001-07-15  Richard Henderson  <rth@redhat.com>
11562
11563         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
11564         (alpha_tablejump_best_label): New.
11565         * config/alpha/alpha-protos.h: Declare them.
11566         * config/alpha/alpha.md: Use braced strings for code blocks.
11567         (tablejump_osf): Break out add with r29.
11568         (tablejump_osf_internal): Remove.
11569         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
11570         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
11571
11572 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11573
11574         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
11575         of the movable.
11576
11577         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
11578
11579         * i386-protos.h (ix86_split_fp_branch): Update prototype.
11580         (ix86_fp_jump_nontrivial_p): New.
11581         * i386.md (fp_jcc_?): Update call of split_fp_branch;
11582         use ix86_fp_jump_nontrivial_p.
11583         * i386.c (ix86_fp_jump_nontrivial_p): New.
11584         (ix86_split_fp_branch): Accept code instead of rtx.
11585         (ix86_expand_compare): Expand comparison early in case
11586         doing so is resonably cheap.
11587
11588 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
11589
11590         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
11591         not 'machine'.
11592         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
11593         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
11594
11595 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
11596
11597         * dbxout.c (dbxout_source_line): Make static, update prototype.
11598         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
11599         (dbxout_init, dbxout_finish, dbxout_source_line,
11600         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
11601         * dbxout.h (dbxout_source_line): Delete.
11602         * debug.c (debug_nothing_file, debug_nothing_file_int,
11603         debug_nothing_file_charstar_rtx): New.
11604         (do_nothing_debug_hooks): Update.
11605         (debug_nothing_void, debug_nothing_charstar_rtx,
11606         dwarf2out_end_epilogue): New.
11607         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
11608         * debug.h (struct rtx_def): Declare.
11609         (gcc_debug_hooks): New hooks source_line, end_epilogue
11610         and end_function.
11611         (debug_nothing_void, debug_nothing_charstar_rtx,
11612         dwarf2out_end_epilogue): New.
11613         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
11614         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
11615         (dwarf2_debug_hooks): Update.
11616         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
11617         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
11618         * dwarf2out.h (dwarf2out_source_line): Remove.
11619         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
11620         Make static, update prototype.
11621         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
11622         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
11623         (dwarf_debug_hooks): Update.
11624         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
11625         dwarfout_end_function): Remove.
11626         * final.c (profile_function): Use debug hooks for ending functions
11627         and epilogues.
11628         (output_source_line, final_end_function): Update prototype,
11629         use debug hooks.
11630         (final_start_function, final_scan_insn): Update.
11631         * output.h (sdb_begin_function_line): Remove.
11632         (final_end_function): Update prototype.
11633         * sdbout.c (sdb_begin_function_line): Make static.
11634         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
11635         (sdbout_source_line): New.
11636         (sdbout_end_epilogue, sdbout_end_function): Make static, update
11637         prototypes.
11638         (sdb_debug_hooks): Update.
11639         (sdbout_init, sdbout_source_line,
11640         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
11641         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
11642         * toplev.c (compile_file, rest_of_compilation): Update.
11643         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
11644         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
11645         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
11646         Update for prototype changes.
11647         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
11648         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
11649
11650 2001-07-15  Richard Henderson  <rth@redhat.com>
11651
11652         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
11653         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
11654         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
11655         * config/alpha/alpha.c: Likewise.
11656         * config/alpha/alpha.md: Likewise.
11657         * config/alpha/alpha32.h: Likewise.
11658         * config/alpha/vms.h: Likewise.
11659         (OPEN_VMS): Remove.
11660
11661 2001-07-14  Richard Henderson  <rth@redhat.com>
11662
11663         * config/alpha/alpha.md: Use define_constants for unspec values.
11664         Substitute throughout.
11665
11666 2001-07-14  Tim Josling  <tej@melbpc.org.au>
11667
11668         * tree.def (EXPON_EXPR) remove. Never supported anyway.
11669
11670 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11671
11672         * pa.md: Remove unused constraints from define_split's.
11673
11674 2001-04-14  Richard Henderson  <rth@redhat.com>
11675
11676         * ifcvt.c (find_cond_trap): Test for exit block.
11677
11678 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
11679
11680         Re-install recently reverted patch.
11681         * emit-rtl.c (try_split): Update mark_jump_label call.
11682         * flow.c (find_sub_basic_blocks): Likewise.
11683         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
11684         jump_back_p): Kill.
11685         (mark_all_labels): Kill second parameter.
11686         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
11687         (rebuild_jump_labels, jump_optimize_minimal): Update call
11688         of jump_optimize_1.
11689         (jump_optimize_1): Kill crossjumping code.
11690         (mark_jump_label): Kill cross_jump parameter.
11691         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
11692         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
11693         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
11694          splitting.
11695         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
11696         DFI_bpro.
11697         (dump_file_info): Likewise.
11698         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
11699         reorganize passes to do reg-stack first, bb-reorder second.
11700         * invoke.texi (-d letters doc): Remove the jump2 pass.
11701
11702 2001-07-14  Richard Henderson  <rth@redhat.com>
11703
11704         * ifcvt.c (find_cond_trap): New.
11705         (find_if_header): Call it.
11706         (merge_if_block): Relax existing jump sanity check.
11707         * jump.c (jump_optimize_1): Remove conditional trap handling.
11708
11709 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
11710
11711         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
11712         millicode.
11713         (insn_refs_are_delayed): Correct comment.
11714         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
11715         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
11716         instead of r31.  Make associated insn !TARGET_64BIT, and
11717         provide an additional 64-bit insn that clobbers r2.
11718         (divsi3): Likewise.
11719         (udivsi3): Likewise.
11720         (modsi3): Likewise.
11721         (umodsi3): Likewise.
11722
11723 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
11724
11725         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
11726
11727         * flow.c (redirect_edge_and_branch_force, split_edge,
11728         try_crossjump_to_edge): Use set_block_for_new_insns.
11729         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
11730
11731 2001-07-13  H.J. Lu  (hjl@gnu.org)
11732
11733         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
11734         the correct patch.
11735
11736 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
11737
11738         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
11739
11740 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
11741
11742         * c-common.c (decl_attributes): Take a pointer to the node to
11743         which attributes are to be attached, and a flags argument.
11744         * c-common.h (enum attribute_flags): New.
11745         (decl_attributes): Update prototype.
11746         * c-decl.c (start_decl, push_parm_decl, finish_struct,
11747         finish_enum, start_function): Update calls to decl_attributes.
11748         * c-parse.in (component_declarator, component_notype_declarator,
11749         label): Update calls to decl_attributes.
11750
11751 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
11752
11753         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
11754         * config/avr/avr.c (legitimate_address_p): Return value changed
11755         from letter to register classes. For better debugging.
11756
11757 2001-07-13  Kazu Hirata  <kazu@hxi.com>
11758
11759         * jump.c (reversed_comparison_code_parts): Fix comment typos.
11760
11761 2001-07-13  H.J. Lu  (hjl@gnu.org)
11762
11763         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
11764
11765 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
11766
11767         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
11768         correctly for shared configurations.
11769         * config/t-libgcc-pic:  New.
11770         * config/{i386,m68k,sparc}/t-openbsd:  New.
11771         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
11772         Support -shared.  Support debugging libraries with -g.
11773         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
11774         frame information does not emit pointer diffs.
11775         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
11776         emit pointer diffs.
11777
11778 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
11779
11780         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
11781
11782 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
11783
11784         * combine.c (try_combine): Ensure const_int pow2 is positive.
11785
11786 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
11787
11788         * config.gcc: Add configuration for s/390.
11789         * config/s390/s390.c: New. Subroutines for code generation.
11790         * config/s390/s390.h: New. Definitions for s/390.
11791         * config/s390/s390-protos.h: New. Prototypes.
11792         * config/s390/linux.h: New. Definitions for linux for s/390.
11793         * config/s390/linux64.h: New. Definitions for linux for zSeries.
11794         * config/s390/t-linux: New. Makefile fragment.
11795         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
11796         * config/s390/fixdfdi.h: New. Fix L_fix*di.
11797
11798 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
11799
11800         * emit-rtl.c (try_split): Update mark_jump_label call.
11801         * flow.c (find_sub_basic_blocks): Likewise.
11802         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
11803         jump_back_p): Kill.
11804         (mark_all_labels): Kill second parameter.
11805         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
11806         (rebuild_jump_labels, jump_optimize_minimal): Update call
11807         of jump_optimize_1.
11808         (jump_optimize_1): Kill crossjumping code.
11809         (mark_jump_label): Kill cross_jump parameter.
11810         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
11811         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
11812         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
11813          splitting.
11814         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
11815         DFI_bpro.
11816         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
11817         reorganize passes to do reg-stack first, bb-reorder second.
11818         * invoke.texi (-d letters doc): Remove the jump2 pass.
11819
11820 2001-07-12  Steve Ellcey <sje@cup.hp.com>
11821
11822         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
11823
11824 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11825
11826         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
11827         basic blocks.
11828         (verify_flow_info): Make diagnostics prettier.
11829
11830 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11831
11832         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
11833
11834         * flow.c (outgoing_edges_match): Return early if condition reversal
11835         failed.
11836
11837 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
11838
11839         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
11840         (mips_move_2words): When splitting a move into two instructions,
11841         prefix the second address operand with '%D'.
11842
11843 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
11844
11845         * Makefile.in (final.o): Depend on debug.h.
11846         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
11847         (dbx_debug_hooks): Add new hooks.
11848         (xcoff_debug_hooks): New.
11849         * debug.c (debug_nothing_file_int_int): New.
11850         (do_nothing_debug_hooks): Update.
11851         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
11852         (debug_nothing_file_int_int): New.
11853         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
11854         static, update prototype.
11855         (dwarf2_debug_hooks): Update.
11856         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
11857         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
11858         static, update prototype.
11859         (dwarf_debug_hooks): Update.
11860         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
11861         * final.c: Include debug.h.
11862         (final_scan_insn): Use debug hooks when beginning and ending blocks.
11863         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
11864         static, update prototype.
11865         (sdb_debug_hooks): Update.
11866         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
11867         * toplev.c: Distinguish between xcoff and dbx.
11868
11869         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
11870         Call all debug hooks, not just dwarf ones.
11871
11872 2001-07-11  Timothy Wall  <twall@redhat.com>
11873
11874         * config.gcc: Add configuration for AIX5/IA64.
11875         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
11876         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
11877         support prefix/suffix code.
11878         * config/ia64/t-aix: New.  Makefile fragment.
11879         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
11880
11881 2001-07-11  Kazu Hirata  <kazu@hxi.com>
11882
11883         * recog.c (validate_change): Fix a comment typo.
11884
11885 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11886
11887         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
11888         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
11889         hooks directly.
11890         * dbxout.c (dbx_debug_hooks): Add new hooks.
11891         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
11892         make static.
11893         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
11894         make static.
11895         * dbxout.h (dbxout_start_new_source_file,
11896         dbxout_resume_previous_source_file): Delete.
11897         * debug.c (do_nothing_debug_hooks): Add new hooks.
11898         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
11899         (debug_nothing_int_charstar, debug_nothing_int): New.
11900         * debug.h (gcc_debug_hooks): New hooks define, undef,
11901         start_source_file and end_source_file.
11902         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
11903         (debug_nothing_int_charstar, debug_nothing_int): New.
11904         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
11905         the conditionally compiled section.
11906         (dwarf2out_start_source_file, dwarf2out_end_source_file,
11907         dwarf2out_define, dwarf2out_undef): Make static.
11908         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
11909         dwarf2out_define, dwarf2out_undef): Remove.
11910         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
11911         (dwarfout_start_source_file, dwarfout_end_source_file,
11912         dwarfout_define, dwarfout_undef): Make static.
11913         (dwarfout_start_source_file_check,
11914         dwarfout_end_source_file_check): New.
11915         (dwarfout_define, dwarfout_finish): Update.
11916         * dwarfout.h (dwarfout_start_new_source_file,
11917         dwarfout_resume_previous_source_file, dwarfout_define,
11918         dwarfout_undef): Remove.
11919         * sdbout.c (sdb_debug_hooks): Add new hooks.
11920         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
11921         make static.
11922         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
11923         make static, take an arg.
11924         * sdbout.h (sdbout_start_new_source_file,
11925         sdbout_resume_previous_source_file): Delete.
11926         * toplev.c (debug_start_source_file, debug_end_source_file,
11927         debug_define, debug_undef): Delete.
11928         * toplev.h (debug_start_source_file, debug_end_source_file,
11929         debug_define, debug_undef): Delete.
11930
11931         * java/jcf-parse.c: Include debug.h.
11932         (parse_class_file): Update to use debug hooks directly.
11933         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
11934
11935 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11936
11937         * alias.c (set_mem_alias_set): New function.
11938         * rtl.h (set_mem_alias_set): Declare it.
11939         * builtins.c (expand_builtin_return_addr): Call it instead of
11940         using MEM_ALIAS_SET accessor.
11941         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
11942         (get_memory_rtx, expand_builtin_va_arg): Likewise.
11943         (expand_builtin_va_copy):Likewise.
11944         * caller-save.c (setup_save_areas): Likewise.
11945         * calls.c (compute_argument_addresses): Likewise.
11946         * explow.c (set_mem_attributes): Likewise.
11947         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
11948         (expand_assignment, store_constructor_field, store_field): Likewise.
11949         (expand_expr_unaligned): Likewise.
11950         * function.c (assign_stack_temp_for_type): Likewise.
11951         (put_reg_into_stack, gen_mem_addressof): Likewise.
11952         * ifcvt.c (noce_try_cmove_arith): Likewise.
11953         * reload1.c (reload, alter_reg): Likewise.
11954         * config/alpha/alpha.c (get_aligned_mem): Likewise.
11955         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
11956         (alpha_expand_unaligned_store): Likewise
11957         (alpha_expand_unaligned_load_words): Likewise.
11958         (alpha_expand_unaligned_store_words): Likewise.
11959         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
11960         (alpha_expand_epilogue): Likewise.
11961         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
11962         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
11963         * config/i386/i386.c (legitimize_pic_address): Likewise.
11964         * config/i960/i960.c (setup_incoming_varargs): Likewise.
11965         * config/ia64/ia64.c (spill_restore_mem): Likewise.
11966         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11967         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
11968         * config/mips/mips.c (mips_va_arg): Likewise.
11969         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11970         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11971         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11972         (setup_incoming_varargs, rs6000_va_arg): Likewise.
11973         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
11974         (rs6000_emit_epilogue): Likewise.
11975         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
11976         * config/sparc/sparc.c (sparc_va_arg): Likewise.
11977         * config/v850/v850.c (v850_va_arg): Likewise.
11978
11979 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
11980
11981         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
11982         when fallthru edge is present.
11983         (mege_blocks): Handle case where creation of jump insn
11984         is required.
11985
11986         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
11987         CLEANUP_POST_REGSTACK): New constants.
11988         * except.c (finish_eh_generation): Update call of cleanup_cfg,
11989         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
11990         * output.h (cleanup_cfg): Update prototype.
11991         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
11992         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
11993         cleanup_cfg call; kill missleading comment.
11994         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
11995         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
11996         parameter; control optimizations performed using it.
11997         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
11998         try_crossjump_bb): New functions.
11999
12000 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12001
12002         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
12003         extern.
12004         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
12005         pa_output_function_prologue.
12006         * pa-protos.h (pa_output_function_prologue): New prototype.
12007
12008 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12009
12010         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
12011         and low to get correct sign extension in low+high test.
12012
12013 2001-07-11  Janis Johnson <janis@us.ibm.com>
12014
12015         * gcov.c (arcdata): Use gcov_type to fix branch percentage
12016         for large hit count.
12017
12018         * profile.c (branch_prob): Fix .bbg info for computed gotos
12019         and C++ EH code.
12020
12021 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
12022
12023         * stmt.c (parse_output_constraint): New function, split out
12024         from ...
12025         (expand_asm_operands): ... here.  Use parse_output_constraint.
12026         * tree.h (parse_output_constraint): Declare it.
12027
12028 2001-07-11  Richard Henderson  <rth@redhat.com>
12029
12030         * bitmap.c: Comment some functions; fiddle whitespace.
12031         (bitmap_free): Don't export.
12032         (bitmap_element_allocate): Use memset.
12033         * bitmap.h (bitmap_free): Don't declare.
12034
12035 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
12036
12037         * gcse.c, lcm.c, sched-deps.c:
12038         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
12039
12040         * flow.c (flow_loops_find): Free dom if we found no loops, since
12041         we aren't going to save it.
12042
12043         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
12044         done.
12045
12046 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
12047
12048         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
12049
12050 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12051
12052         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
12053         #ifndef DWARF2_DEBUGGING_INFO.
12054
12055 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12056
12057         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
12058
12059 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12060
12061         * config/mips/mips.c (gen_int_relational): Tell the caller not to
12062         reverse a branch if a NE comparison is implemented with GTU.
12063
12064 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12065             H.J. Lu  <hjl@gnu.org>
12066
12067         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
12068         constant addresses.
12069         (call_internal2): Likewise.
12070         (call_value_internal1): Likewise.
12071         (call_value_internal2): Likewise.
12072         (call_value_multiple_internal1): Likewise.
12073         (call_value_multiple_internal2): Likewise.
12074
12075 2001-07-10  Kazu Hirata  <kazu@hxi.com>
12076
12077         * calls.c (emit_library_call_value_1): Fix a comment typo.
12078         * dwarf2out.c (mem_loc_descriptor): Likewise.
12079         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
12080
12081 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
12082
12083         * simplify-rtx.c (simplify_subreg): Fix typo in comment
12084
12085 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12086
12087         * recog.c (offsettable_address_p): Handle LO_SUM case.
12088         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
12089         instead of plus_constant.
12090
12091 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12092
12093         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
12094         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
12095
12096 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12097
12098         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
12099         adjust_address_nv instead of plus_constant.
12100
12101 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
12102
12103         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
12104         dwarf2out.o): Depend on debug.h, wrap long lines.
12105         * dbxout.c: Include debug.h.
12106         (dbx_debug_hooks): New.
12107         (dbxout_init): Make static, take just 2 args.
12108         (dbxout_finish): Make static.
12109         * dbxout.h (dbxout_init, dbxout_finish): Delete.
12110         * debug.c: New file.
12111         * debug.h: New file.
12112         * dwarf2out.c: Include debug.h.
12113         (dwarf2_debug_hooks): New.
12114         (dwarf2out_init): Make static.
12115         (dwarf2out_finish): Make static, take 2 args.
12116         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
12117         * dwarfout.c: Include debug.h.
12118         (dwarf_debug_hooks): New.
12119         (dwarfout_init): Make static.
12120         (dwarfout_finish): Make static, take 2 args.
12121         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
12122         * sdbout.c: Include debug.h.
12123         (sdb_debug_hooks): New.
12124         (sdbout_init): Make static, take 2 args.
12125         * sdbout.h (sdbout_init): Delete.
12126         * toplev.c: Include debug.h.
12127         (debug_hooks): New.
12128         (compile_file): Set deubg_hooks based on command line options.
12129         Use the hooks unconditionally rather than conditional compilation.
12130
12131 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
12132
12133         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
12134         first_insn_after_basic_block_note instead.
12135
12136         * df.c (df_bb_refs_unlink): #if 0 out for now.
12137
12138 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
12139
12140         * ssa.h: Add prototype for ssa_const_prop
12141         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
12142         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
12143         (ssa_fast_dce): Remove unused variable
12144
12145 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12146
12147         * diagnostic.c (finish_diagnostic): Rename to
12148         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
12149         calls thourghout.
12150
12151 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
12152
12153         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
12154         .loc support.
12155
12156         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
12157         (dump_file): Only pad the demangled name with spaces if the
12158         mangled name was padded with spaces.
12159
12160 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
12161
12162         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
12163         edge detection.
12164
12165 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12166
12167         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
12168         extraction if no direct load if either EXPAND_CONST_ADDRESS or
12169         EXPAND_INITIALIZER.
12170
12171         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
12172         whether can put offset inside LO_SUM to check mode alignment, not size.
12173
12174 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12175
12176         * doc/tm.texi (Misc): Fix thinko.
12177
12178 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
12179
12180         * regmove.c (replace_in_call_usage): Fix warnings.
12181         * sched-deps.c (add_dependence): Fix warnings.
12182         * simplify-rtx.c (simplify_subreg): Likewise.
12183         Return NULL_RTX instead of NULL.
12184
12185         * reg-stack.c (emit_swap_insn): Eliminate warnings.
12186         (subst_asm_stack_regs): Likewise.
12187
12188         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
12189         warnings.
12190
12191         * dwarf2out.c (output_call_frame_info): Declare i as int.
12192         (build_abbrev_table): Declare n_alloc as int.
12193         (dwarf2out_finish): Initialize die.
12194         * except.c: Declare sjlj_funcdef_number as unsigned.
12195         (connect_post_landing_pads): Declare j as unsigned.
12196         (convert_to_eh_region_ranges): Initialize call_site.
12197         (output_function_exception_table): Initialize tt_format_size.
12198         * expr.c (move_by_pieces_1): Initialize to1.
12199         (store_constructor): Initialize minelt and maxelt.
12200         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
12201         * function.c (instantiate_decls): Avoid signed/unsigned warning.
12202
12203         * c-decl.c (combine_parm_decls): Unused, remove.
12204         * c-tree.h: Remove prototype for combine_parm_decls.
12205
12206         * reload.c (push_reload): Fix warning.
12207         (regno_clobbered_p): Likewise.
12208         * reload1.c (replace_pseudos_in_call_usage): Likewise.
12209         (reload_combine): Likewise.
12210
12211         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
12212         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
12213         warnings.
12214         * bitmap.c (bitmap_operation): Change user.
12215         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
12216
12217 2001-07-10  Eric Christopher  <echristo@redhat.com>
12218
12219         * config/mips/mips.c (override_options): Fix typo.
12220
12221 2001-07-09  Stan Shebs  <shebs@apple.com>
12222
12223         * target.h (struct gcc_target): New fields init_builtins and
12224         expand_builtin.
12225         * target-def.h (TARGET_INIT_BUILTINS): New macro.
12226         (TARGET_EXPAND_BUILTIN): New macro.
12227         (TARGET_INITIALIZER): Add them.
12228         * builtins.c: Include target.h.
12229         (expand_builtin): Use targetm.expand_builtin.
12230         (default_init_builtins): New function.
12231         (default_expand_builtin): New function.
12232         * expr.h (default_init_builtins): Declare.
12233         (default_expand_builtin): Declare.
12234         * c-common.c (c_common_nodes_and_builtins): Use
12235         targetm.init_builtins.
12236         * defaults.h (MD_INIT_BUILTINS): Remove.
12237         * Makefile.in (builtins.o): Depend on target.h.
12238
12239         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
12240         (TARGET_EXPAND_BUILTIN): Define.
12241         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
12242         (MD_EXPAND_BUILTIN): Remove.
12243
12244         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
12245         (TARGET_EXPAND_BUILTIN): Define.
12246         (c4x_init_builtins): Make endlink arg a local.
12247         (c4x_print_operand): Fix typos in adjust_address usages.
12248         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
12249         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
12250         (MD_EXPAND_BUILTIN): Remove.
12251
12252         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
12253         (TARGET_EXPAND_BUILTIN): Define.
12254         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
12255         (ix86_init_builtins): Call new function only if TARGET_MMX.
12256         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
12257         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
12258         (MD_EXPAND_BUILTIN): Remove.
12259
12260         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
12261         (TARGET_EXPAND_BUILTIN): Define.
12262         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
12263         (MD_EXPAND_BUILTIN): Remove.
12264
12265         * doc/tm.texi: Document these changes.
12266
12267 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
12268
12269         * basic-block.h (tree_node): Forward declare if needed.
12270         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
12271         (BLOCK_HEAD_TREE): Define.
12272         (BLOCK_END_TREE): Define.
12273         (struct loops): Rename field 'tree' to 'tree_root'.
12274         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
12275         'end_tree'.
12276         (flow_loops_tree_build): Rename reference to field 'tree' to
12277         'tree_root'.
12278         (flow_loops_level_compute): Ditto.
12279         * predict.c (estimate_bb_frequencies): Ditto.
12280         * tree.h (struct tree_common): Add field 'aux'.
12281
12282 2001-07-09  Stan Shebs  <shebs@apple.com>
12283
12284         * config/darwin.c (darwin_encode_section_info): Don't mark any
12285         DECL_EXTERNAL node as defined.
12286
12287 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12288
12289         * pa.c (pa_init_machine_status, pa_mark_machine_status,
12290         pa_free_machine_status, hppa_init_pic_save): Delete.
12291         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
12292         (hppa_profile_hook): Use hppa_pic_save_rtx.
12293         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
12294         hppa_init_pic_save): Delete.
12295         (hppa_pic_save_rtx): Declare.
12296         * pa.md (call, call_value, sibcall, sibcall_value,
12297         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
12298
12299 2001-07-09  Kazu Hirata  <kazu@hxi.com>
12300
12301         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
12302         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
12303
12304 2001-07-09  Andreas Jaeger  <aj@suse.de>
12305
12306         * output.h: Add declaration of final_forward_branch_p.
12307
12308         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
12309
12310         * varray.c: Include errors.h for internal_error and trim_filename
12311         declarations.
12312
12313         * Makefile.in (varray.o): Add errors.h.
12314
12315 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
12316
12317         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
12318         * optabs.c (have_add2_insn): Check whether the add insn chosen
12319         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
12320         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
12321
12322 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
12323
12324         * Makefile.in (OBJS): Add ssa-ccp.o
12325         (ssa-ccp.o): Add dependencies.
12326         * toplev.c (DFI_ssa_ccp): New dump file enum.
12327         (dump_file): Add entry for dumping after SSA CCP.
12328         (flag_ssa_ccp): New flag variable.
12329         (f_options): Add -fssa-ccp.
12330         (rest_of_compilation): Run SSA CCP if requested.
12331         * timevar.def (TV_SSA_CCP): New timevar.
12332         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
12333         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
12334         Fix minor typo in SSA DCE documentation.
12335         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
12336         Add documentation for new dump option.  Renumber dump files
12337         appropriately.
12338
12339 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12340
12341         * emit-rtl.c (gen_highpart_mode): New.
12342         * rtl.h (gen_highpart_mode): Declare.
12343         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
12344         operand can be VOIDmode constant.
12345
12346 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
12347
12348         * flow.c (redirect_edge_and_branch_force): New.
12349         (can_fallthru): Ensure that basic blocks are succeeding.
12350         (try_optimize_cfg): Do not delete basic block if it is the last one.
12351
12352         * flow.c (try_redirect_by_replacing_jump): Do not remove
12353         jumps with side effects, unlink chain on fallthru edge;
12354         set block for new jump instruction; avoid basic block to
12355         over by line number note.
12356
12357         * flow.c (try_simplify_condjump): Verify that the condjump
12358         is not always falling through.
12359
12360         Re-install patch:
12361         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
12362
12363         * flow.c (forwarder_block_p): Fix for fallthru blocks.
12364         (try_redirect_by_replacing_jump): Update properly the count
12365         and frequency information.
12366
12367 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12368
12369         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
12370         address that is a LO_SUM specially.
12371         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
12372
12373         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
12374
12375         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
12376         (operand_subword): Use them.
12377         (change_address_1): Renamed from change_address; new arg VALIDATE.
12378         * expr.h: Reflect above changes; change_address now macro.
12379         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
12380         making MEM.
12381         * cselib.c (add_mem_for_addr): Likewise.
12382         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
12383         * regmove.c (try_apply_stack_adjustment): Likewise.
12384         * reload.c (push_reload, make_memloc): Likewise.
12385         * reload1.c (eliminate_regs): Likewise.
12386         * simplify-rtx.c (simplify_replace_rtx): Likewise.
12387         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
12388         adjust_addess.
12389         * combine.c (make_extraction, simplify_shift_const): Likewise.
12390         (gen_lowpart_for_combine): Likewise.
12391         * cse.c (gen_lowpart_if_possible): Likewise.
12392         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
12393         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
12394         * optabs.c (gen_move_insn): Likewise.
12395         * reload1.c (alter_reg): Likewise.
12396         * simplify-rtx.c (simplify_subreg): Likewise.
12397         * stmt.c (expand_anon_union_decl): Likewise.
12398         * recog.c (validate_replace_rtx_1): Likewise.
12399         (expr.h): Include.
12400         * Makefile.in (recog.o): Add $(EXPR_H).
12401         * explow.c (stabilize): Call replace_equiv_address.
12402         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
12403         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
12404
12405 2001-07-03  Andrew Haley  <aph@redhat.com>
12406
12407         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
12408         the mode of the memory location.
12409
12410 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
12411
12412         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
12413
12414 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12415
12416         * final.c (output_addr_const): Use target opening and
12417         closing parentheses.
12418         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
12419         defaults, add to TARGET_ASM_OUT.
12420         * target.h (struct gcc_target): Add open_paren and close_paren.
12421         * doc/md.texi: Update.
12422         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
12423         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
12424         TARGET_ASM_CLOSE_PAREN.
12425         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
12426         Override.
12427         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
12428         Override.
12429         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
12430         * config/a29k/a29k.h: Similarly.
12431         * config/alpha/alpha.h: Similarly.
12432         * config/arc/arc.h: Similarly.
12433         * config/arm/aof.h: Similarly.
12434         * config/arm/aout.h: Similarly.
12435         * config/avr/avr.h: Similarly.
12436         * config/c4x/c4x.h: Similarly.
12437         * config/clipper/clipper.h: Similarly.
12438         * config/convex/convex.h: Similarly.
12439         * config/d30v/d30v.h: Similarly.
12440         * config/dsp16xx/dsp16xx.h: Similarly.
12441         * config/elxsi/elxsi.h: Similarly.
12442         * config/fr30/fr30.h: Similarly.
12443         * config/h8300/h8300.h: Similarly.
12444         * config/i370/i370.h: Similarly.
12445         * config/i386/i386.h: Similarly.
12446         * config/i860/i860.h: Similarly.
12447         * config/i960/i960.h: Similarly.
12448         * config/ia64/ia64.h: Similarly.
12449         * config/m32r/m32r.h: Similarly.
12450         * config/m68hc11/m68hc11.h: Similarly.
12451         * config/m68k/m68k.h: Similarly.
12452         * config/m88k/m88k.h: Similarly.
12453         * config/mcore/mcore.h: Similarly.
12454         * config/mips/mips.h: Similarly.
12455         * config/mn10200/mn10200.h: Similarly.
12456         * config/mn10300/mn10300.h: Similarly.
12457         * config/ns32k/ns32k.h: Similarly.
12458         * config/pa/pa.h: Similarly.
12459         * config/pdp11/pdp11.h: Similarly.
12460         * config/pj/pj.h: Similarly.
12461         * config/romp/romp.h: Similarly.
12462         * config/rs6000/rs6000.h: Similarly.
12463         * config/sh/sh.h: Similarly.
12464         * config/sparc/sparc.h: Similarly.
12465         * config/v850/v850.h: Similarly.
12466         * config/vax/vax.h: Similarly.
12467         * config/we32k/we32k.h: Similarly.
12468
12469 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
12470
12471         * doc/c-tree.texi: Document representation of attributes.
12472
12473 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12474
12475         * doc/tm.texi: Update some places for the rename of target to
12476         targetm.  Fix typo.
12477
12478 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12479
12480         * target.h (struct gcc_target): Add insert_attributes.
12481         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
12482         (TARGET_INITIALIZER): Update.
12483         * tree.c, tree.h (default_insert_attributes): New function.
12484         Update comments on other default functions to refer to targetm,
12485         not target.
12486         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
12487         TARGET_INSERT_ATTRIBUTES.
12488         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
12489         * c-common.c (decl_attributes): Use targetm.insert_attributes.
12490         Don't use PRAGMA_INSERT_ATTRIBUTES.
12491         * Makefile.in (c-common.o): Depend on $(TARGET_H).
12492         * c-decl.c (start_decl, start_function): Don't call
12493         SET_DEFAULT_DECL_ATTRIBUTES.
12494         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
12495         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
12496         declare.
12497         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
12498         (c4x_check_attribute): Avoid modifying attribute list itself.
12499         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
12500         Make static.
12501         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
12502         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
12503         declare.
12504         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
12505         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
12506         Make static.
12507         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
12508         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
12509         declare.
12510         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
12511         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
12512         Adjust parameters.  Make static.
12513
12514 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12515
12516         * c-common.c (decl_attributes): Only take a single attributes
12517         parameter.
12518         * c-common.h (decl_attributes): Update prototype.
12519         * c-decl.c (start_decl, start_function): Only take a single
12520         attributes parameter.  Update calls to decl_attributes.
12521         (finish_struct, finish_enum): Update calls to decl_attributes.
12522         (push_parm_decl): Expect unified list of attributes.  Update call
12523         to decl_attributes.
12524         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
12525         notype_nested_function, component_declarator,
12526         component_notype_declarator, label): Update calls to
12527         decl_attributes.
12528         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
12529         lists that are passed to push_parm_decl.
12530         * c-tree.h (start_function, start_decl): Update prototypes.
12531         * config/sh/sh-protos.h, config/sh/sh.c
12532         (sh_pragma_insert_attributes): Only take a single attributes
12533         parameter.
12534         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
12535         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
12536         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
12537         build_module_descriptor, generate_static_references,
12538         generate_strings, build_selector_translation_table,
12539         generate_descriptor_table, generate_protocols,
12540         generate_ivars_list, generate_dispatch_table,
12541         generate_protocol_list, generate_category,
12542         generate_shared_structures, really_start_method, add_objc_decls,
12543         generate_classref_translation_entry): Update calls to start_decl
12544         and start_function.
12545         (build_tmp_function_decl, start_method_def): Unify attribute lists
12546         that are passed to push_parm_decl.
12547
12548 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
12549
12550         * final.c (no_asm_to_stream): New.
12551         (final_scan_insn): Use target structures for prologue ends
12552         and epilogue starts.
12553         * output.h (no_asm_to_stream): New.
12554         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
12555         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
12556         (TARGET_ASM_OUT): Update.
12557         * target.h (struct gcc_target): New members function_end_prologue
12558         and function_begin_epilogue.
12559         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
12560         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
12561         * config/alpha/alpha.c (output_end_prologue): Rename to
12562         alpha_output_function_end_prologue.  Use in target struct
12563         and make static.
12564         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
12565         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
12566         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
12567         ia64_output_function_end_prologue.  Use in target struct
12568         and make static.
12569         (ia64_function_prologue, ia64_funciton_epilogue): Rename
12570         mistyped prototypes.
12571         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
12572         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
12573         Delete.
12574         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
12575         an use in target struct, make static.
12576         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
12577         Delete.
12578
12579 2001-07-08  Richard Henderson  <rth@redhat.com>
12580
12581         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
12582
12583 2001-07-08  Richard Henderson  <rth@redhat.com>
12584
12585         * config/i386/i386.md: Remove constraints strings from define_split
12586         and define_peephole2 patterns.
12587         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
12588         (eh_return): Use them.
12589
12590 2001-07-08  Richard Henderson  <rth@redhat.com>
12591
12592         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
12593         Document MD_FALLBACK_FRAME_STATE_FOR.
12594
12595 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12596
12597         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
12598         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
12599         elimination.
12600         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
12601
12602 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
12603
12604         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
12605         of the label inside NAME as opposed to just the end of NAME.
12606
12607 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12608
12609         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
12610         * config/alpha/alpha.c (alpha_init_machine_status,
12611         alpha_mark_machine_status, alpha_free_machine_status): Delete.
12612         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
12613         (vms_valid_decl_attribute_p): Make static, conditionally compile.
12614         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
12615
12616 2001-07-06  Stan Shebs  <shebs@apple.com>
12617
12618         * target.h (targetm): Rename global from "target", so as not to
12619         conflict with local variables.
12620         * c-decl.c: Ditto.
12621         * c-typeck.c: Ditto.
12622         * final.c: Ditto.
12623         * tree.c: Ditto.
12624         * cp/decl.c: Ditto.
12625         * cp/decl2.c: Ditto.
12626         * cp/typeck.c: Ditto.
12627         * 1750a/1750a.c: Ditto.
12628         * a29k/a29k.c: Ditto.
12629         * arc/arc.c: Ditto.
12630         * arm/arm.c: Ditto.
12631         * avr/avr.c: Ditto.
12632         * clipper/clipper.c: Ditto.
12633         * convex/convex.c: Ditto.
12634         * d30v/d30v.c: Ditto.
12635         * dsp16xx/dsp16xx.c: Ditto.
12636         * elxsi/elxsi.c: Ditto.
12637         * fr30/fr30.c: Ditto.
12638         * h8300/h8300.c: Ditto.
12639         * i370/i370.c: Ditto.
12640         * i386/i386.c: Ditto.
12641         * i860/i860.c: Ditto.
12642         * i960/i960.c: Ditto.
12643         * ia64/ia64.c: Ditto.
12644         * m32r/m32r.c: Ditto.
12645         * m68hc11/m68hc11.c: Ditto.
12646         * m68k/m68k.c: Ditto.
12647         * m88k/m88k.c: Ditto.
12648         * mips/mips.c: Ditto.
12649         * ns32k/ns32k.c: Ditto.
12650         * pa/pa.c: Ditto.
12651         * pdp11/pdp11.c: Ditto.
12652         * romp/romp.c: Ditto.
12653         * rs6000/rs6000.c: Ditto.
12654         * sh/sh.c: Ditto.
12655         * sparc/sparc.c: Ditto.
12656         * vax/vax.c: Ditto.
12657         * we32k/we32k.c: Ditto.
12658         * doc/tm.texi: Update the manual to match.
12659
12660 2001-07-06  Richard Henderson  <rth@redhat.com>
12661
12662         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
12663         DWARF2_UNWIND_INFO not just whether it is defined.
12664
12665 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
12666
12667         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
12668         call to simplify_binary_operation returns a new pattern.
12669
12670 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
12671
12672         * glimits.h (__SHRT_MAX__): New.
12673         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
12674         (SHRT_MAX): Define in terms of __SHRT_MAX__.
12675
12676 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
12677
12678         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
12679         avoid warnings.
12680
12681 2001-07-06  Richard Henderson  <rth@redhat.com>
12682
12683         * bitmap.c (bitmap_release_memory): Move adjacent to the
12684         allocation functions.
12685         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
12686         the implementation.  Binary search for the set bit.
12687         (bitmap_union_of_diff): Allocate the temporary on the stack
12688         instead of using xmalloc.
12689
12690 2001-07-06  Richard Henderson  <rth@redhat.com>
12691
12692         * genrecog.c (validate_pattern): Warn for constraints in
12693         define_{expand,split,peephole2}.  Remove strict_low_part
12694         before looking up match_dup.
12695
12696 2001-07-06  DJ Delorie  <dj@redhat.com>
12697
12698         * doc/gcc.texi (Makefile): Rename to be a more general purpose
12699         chapter about various build hints and history.  Add section
12700         talking about the various types of native and cross builds.
12701
12702 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12703
12704         * Makefile.in (final.o): Depend on target.h.
12705         * final.c: Include target.h.
12706         (default_function_pro_epilogue): New.
12707         (final_start_function): Use target structure for function prologues.
12708         (final_end_function): Use target structure for function epilogues.
12709         * fold-const.c (real_hex_to_f): Constify s and p.
12710         * output.h (default_function_pro_epilogue): New.
12711         * real.h (real_hex_to_f): Update prototype.
12712         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
12713         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
12714         (TARGET_INITIALIZER): Update.
12715         * target.h (gcc_target): Add struct asm_out.
12716         * doc/tm.texi: Update.
12717
12718 config:
12719         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
12720         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
12721         in cpu/cpu.c, or rename old functions consistently.  Take
12722         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
12723         redundant macros and prototypes.  Make new functions static.
12724
12725         * 1750a/1750a.c: Similarly.
12726         * 1750a/1750a.h: Similarly.
12727         * a29k/a29k-protos.h: Similarly.
12728         * a29k/a29k.c: Similarly.
12729         * a29k/a29k.h: Similarly.
12730         * arc/arc-protos.h: Similarly.
12731         * arc/arc.c: Similarly.
12732         * arc/arc.h: Similarly.
12733         * arm/arm-protos.h: Similarly.
12734         * arm/arm.c: Similarly.
12735         * arm/arm.h: Similarly.
12736         * avr/avr-protos.h: Similarly.
12737         * avr/avr.c: Similarly.
12738         * avr/avr.h: Similarly.
12739         * clipper/clipper-protos.h: Similarly.
12740         * clipper/clipper.c: Similarly.
12741         * clipper/clipper.h: Similarly.
12742         * convex/convex.c: Similarly.
12743         * convex/convex.h: Similarly.
12744         * d30v/d30v-protos.h: Similarly.
12745         * d30v/d30v.c: Similarly.
12746         * d30v/d30v.h: Similarly.
12747         * d30v/d30v.md: Similarly.
12748         * dsp16xx/dsp16xx-protos.h: Similarly.
12749         * dsp16xx/dsp16xx.c: Similarly.
12750         * dsp16xx/dsp16xx.h: Similarly.
12751         * elxsi/elxsi.c: Similarly.
12752         * elxsi/elxsi.h: Similarly.
12753         * fr30/fr30.c: Similarly.
12754         * fr30/fr30.md: Similarly.
12755         * h8300/h8300-protos.h: Similarly.
12756         * h8300/h8300.c: Similarly.
12757         * h8300/h8300.h: Similarly.
12758         * i370/i370-protos.h: Similarly.
12759         * i370/i370.c: Similarly.
12760         * i370/i370.h: Similarly.
12761         * i386/i386.c: Similarly.
12762         * i386/osf1elf.h: Similarly.
12763         * i386/osfrose.h: Similarly.
12764         * i860/i860-protos.h: Similarly.
12765         * i860/i860.c: Similarly.
12766         * i860/i860.h: Similarly.
12767         * i960/i960-protos.h: Similarly.
12768         * i960/i960.c: Similarly.
12769         * i960/i960.h: Similarly.
12770         * ia64/ia64-protos.h: Similarly.
12771         * ia64/ia64.c: Similarly.
12772         * ia64/ia64.h: Similarly.
12773         * m32r/m32r-protos.h: Similarly.
12774         * m32r/m32r.c: Similarly.
12775         * m32r/m32r.h: Similarly.
12776         * m68hc11/m68hc11-protos.h: Similarly.
12777         * m68hc11/m68hc11.c: Similarly.
12778         * m68hc11/m68hc11.h: Similarly.
12779         * m68k/crds.h: Similarly.
12780         * m68k/dpx2.h: Similarly.
12781         * m68k/m68k-protos.h: Similarly.
12782         * m68k/m68k.c: Similarly.
12783         * m68k/m68k.h: Similarly.
12784         * m68k/news.h: Similarly.
12785         * m88k/m88k-protos.h: Similarly.
12786         * m88k/m88k.c: Similarly.
12787         * m88k/m88k.h: Similarly.
12788         * mips/mips-protos.h: Similarly.
12789         * mips/mips.c: Similarly.
12790         * mips/mips.h: Similarly.
12791         * ns32k/merlin.h: Similarly.
12792         * ns32k/ns32k.c: Similarly.
12793         * ns32k/ns32k.h: Similarly.
12794         * ns32k/tek6000.h: Similarly.
12795         * pa/pa-protos.h: Similarly.
12796         * pa/pa.c: Similarly.
12797         * pa/pa.h: Similarly.
12798         * pdp11/2bsd.h: Similarly.
12799         * pdp11/pdp11-protos.h: Similarly.
12800         * pdp11/pdp11.c: Similarly.
12801         * pdp11/pdp11.h: Similarly.
12802         * romp/romp-protos.h: Similarly.
12803         * romp/romp.c: Similarly.
12804         * romp/romp.h: Similarly.
12805         * rs6000/rs6000-protos.h: Similarly.
12806         * rs6000/rs6000.c: Similarly.
12807         * rs6000/rs6000.h: Similarly.
12808         * rs6000/sysv4.h: Similarly.
12809         * sh/sh-protos.h: Similarly.
12810         * sh/sh.c: Similarly.
12811         * sh/sh.h: Similarly.
12812         * sparc/sparc-protos.h: Similarly.
12813         * sparc/sparc.c: Similarly.
12814         * sparc/sparc.h: Similarly.
12815         * vax/vax.c: Similarly.
12816         * vax/vax.h: Similarly.
12817         * vax/vms.h: Similarly.
12818         * we32k/we32k.c: Similarly.
12819         * we32k/we32k.h: Similarly.
12820
12821 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
12822
12823         * basic-block.h (first_insn_after_basic_block_note): Declare.
12824         * flow.c (first_insn_after_basic_block_note): Define.  Moved
12825         from...
12826         * ssa.c (first_insn_after_basic_block_note): Remove.
12827         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
12828         necessary.
12829         (ssa_eliminate_dead_code): Properly update the CFG and PHI
12830         nodes when we find a dead conditional branch.  Insert BARRIERs
12831         after any blocks with no successors, but which do not have
12832         any BARRIERs.
12833
12834 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
12835
12836         * varray.c (varray_check_failed): Use internal_error.
12837
12838 2001-07-05  Andrew Haley  <aph@redhat.com>
12839
12840         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
12841         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
12842         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
12843
12844 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
12845
12846         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
12847         reference if the target constant is also a SYMBOL_REF.
12848
12849 2001-07-05  Eric Christopher  <echristo@redhat.com>
12850
12851         * config/mips/mips.h (MASK_MIPS3900): Remove.
12852         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
12853         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
12854         (TARGET_MIPS3900): Change to use mips_arch.
12855         (TARGET_MIPS4000): New.
12856         (TARGET_MIPS4100): New.
12857         (TARGET_MIPS4300): New.
12858         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
12859         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
12860         for -mipsX.
12861         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
12862         (ISA_HAS_BRANCHLIKELY): To here.
12863         (CC1_CPU_SPEC):  New.
12864         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
12865         (mips_arch_string): Declare.
12866         (mips_arch): Declare.
12867         (TARGET_OPTIONS): Add -march and -mtune.
12868
12869         * config/mips/mips.c (mips_arch_string): New.
12870         (mips_arch): New.
12871         (override_options): Handle -march for codegen and -mtune
12872         for scheduling. Use mips_arch. Move tx39 target default here.
12873         (mips_parse_cpu): Move error message to override_options.
12874
12875         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
12876
12877         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
12878
12879         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
12880         (MIPS Options): Ditto.  Change mcpu entry to historical text.
12881
12882 2001-07-05  H.J. Lu  (hjl@gnu.org)
12883
12884         * config/mips/mips.c (mips_parse_cpu): New function to parse
12885         -march=*/-mcpu=*.
12886
12887 2001-07-05  Jim Wilson  <wilson@redhat.com>
12888
12889         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
12890         * config/ia64/t-ia64: Likewise.
12891         (LIB1ASMFUNCS): Update comment.
12892
12893 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
12894
12895         * doc/install.texi (Install GCC: Binaries): Fix typo.
12896
12897 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12898
12899         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
12900         reference using the stack pointer, adjust it since we push Y
12901         temporarily.
12902         ("*ashrsi3"): Likewise.
12903         ("*lshrsi3"): Likewise.
12904
12905 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12906
12907         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
12908         when -fomit-frame-pointer is used.
12909
12910 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
12911
12912         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
12913         (try_redirect_by_replacing_jump): Reverse updating properly the
12914         count and frequency information.  Reverse removing cc0 setter.
12915         (forwarder_block_p): Reverse fixing for fallthru blocks.
12916
12917 2001-07-05  DJ Delorie  <dj@redhat.com>
12918
12919         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
12920         (translate_options): If the above is defined, use it to map
12921         given options to new options.
12922         * doc/tm.texi: Document it.
12923
12924 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
12925             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12926
12927         * doc/invoke.texi (Optimize Options): Document that -fgcse may
12928         cause programs using computed gotos to run more slowly.
12929
12930 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12931
12932         * doc/install.texi (Specific): Markup, spelling and typo fixes.
12933         Fixed sorting.
12934         Consistently require binutils 2.11.2, not prereleases.
12935         (Specific, decstation-*): Canonicalize as mips-dec-*.
12936         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
12937         always necessary.
12938         (Specific, m68k-altos): Removed reference to README.altos, deleted.
12939         (Specific, mips-*): Reword MIPS C compiler requirements.
12940         (Specific, powerpc*-*-*): New, mention --with-cpu once.
12941         (Specific, sunv5): Removed, obsolete.
12942
12943 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
12944
12945         * dwarf2out.c (output_loc_list): Use an all ones mask for
12946         .text asm output and don't rely on long long
12947         literals. Reformat some long lines.
12948
12949 2001-07-05  Andreas Jaeger  <aj@suse.de>
12950
12951         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
12952         section.
12953
12954 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
12955
12956         * dwarf2out.c (dwarf2out_define): Update comment.
12957         (dwarf2out_undef): Ditto.
12958         (dwarf2out_start_source_file): Ditto.
12959         (dwarf2out_end_source_file): Ditto.
12960         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
12961         since we never call the start/end debug hook for the primary file.
12962
12963 2001-07-04  Kazu Hirata  <kazu@hxi.com>
12964
12965         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
12966         from shll.
12967
12968 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
12969
12970         * cppinit.c (remove_dup_dirs): Inform if a system include
12971         directory is being reordered.
12972         * doc/invoke.texi (Directory Options): GCC warns if you hide a
12973         system include.
12974         * doc/cpp.texi (Search Paths): Likewise.
12975         * doc/gcc.texi (Interoperation): Remove information about
12976         -I/usr/include.
12977
12978 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
12979
12980         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
12981         (VARRAY_TOP_CHAR_PTR): Likewise.
12982
12983 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12984
12985         * gcc.c (process_command): Don't assign elements of a const char*.
12986
12987 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12988
12989         * emit-rtl.c (change_address): Don't abort if invalid address while
12990         reload is in progress.
12991
12992 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
12993
12994         * c-lex.c (cb_file_change): Pass line number to
12995         debug_start_source_file.
12996         (cb_undefine): Pass correct line number to debug_undef.
12997
12998         * toplev.c (debug_start_source_file): Add line number to
12999         parameters. Pass it along to dwarf2out_start_source_file.
13000         (decode_g_option): Stop resetting debug level back to normal when
13001         we change debug formats, unless the current level is
13002         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
13003         3).
13004
13005         * toplev.h (debug_start_source_file): Add line number to
13006         parameters.
13007
13008         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
13009         parameters.
13010
13011         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
13012         parameters.
13013         Output debug_macinfo data for starting file if requested.
13014         (dwarf2out_end_source_file): Output debug_macinfo data for ending
13015         file if requested.
13016         (dwarf2out_define): Output debug_macinfo data for defining a macro
13017         if requested.
13018         (dwarf2out_undef): Output debug_macinfo data for undefining a
13019         macro if requested.
13020         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
13021         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
13022         (macinfo_section_label): New. DWARF2 macro info section label.
13023         (dwarf2out_init): If we want macro info, output the start label
13024         for the section.
13025         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
13026         attribute to the compilation unit die pointing to the macro info.
13027
13028 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
13029
13030         * dwarf2out.c (new_loc_list): Move to inside #ifdef
13031         DWARF2_DEBUGGING_INFO.
13032         (add_loc_descr_to_loc_list): Ditto.
13033         (output_loc_list): Ditto.
13034         Also, fix thinko in curr not being initialized.
13035         (gen_internal_sym): Ditto.
13036
13037 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13038
13039         * emit-rtl.c (replace_equiv_address): New function.
13040         * expr.h (replace_equiv_address): New declaration.
13041         * explow.c (validize_mem): Call it instead of change_address and
13042         also call if -fforce-addr and address is constant.
13043         * expr.c: Replace more calls to change_address with adjust_address
13044         and/or replace_equiv_address or to validize_mem.
13045         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
13046         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
13047         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
13048         * config/i370/i370.md, config/i860/i860.md: Likewise.
13049         * config/i960/i960.md, config/mips/mips.c: Likewise.
13050         * config/mips/mips.md, config/pa/pa.md: Likewise.
13051         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
13052         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
13053
13054 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13055
13056         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
13057
13058         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
13059         function.
13060
13061 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
13062
13063         * doc/include: New directory.
13064         * doc/fdl.texi: Move to doc/include/fdl.texi.
13065         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
13066         * doc/include/funding.texi, doc/include/gpl.texi: New files.
13067         * doc/gcc.texi: Use funding.texi and gpl.texi.
13068         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
13069         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
13070         Update dependencies and use -I $(docdir)/include.
13071
13072 2001-07-04  Anthony Green  <green@redhat.com>
13073
13074         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
13075
13076 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13077
13078         * doc/install.texi (sparc64-*-*): Remove garbage.
13079
13080 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
13081
13082         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
13083         Fix typo in last change to use adjust_address.
13084
13085 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13086
13087         * doc/install.texi (Specific): Update information for *-*-solaris*.
13088
13089 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13090
13091         * explow.c (plus_constant_wide): Reinitialize Y for restart.
13092
13093 2001-07-03  Stan Shebs  <shebs@apple.com>
13094
13095         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
13096         case for flag_no_mach_text_sections.
13097         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
13098         * config/darwin.c (flag_no_mach_text_sections): Remove.
13099         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
13100
13101 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13102
13103         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
13104         and avoid checking for constant as first operand.
13105         * recog.c (find_constant_term_loc): No longer static.
13106         (adj_offettable_operand): Delete.
13107         * rtl.h (adj_offsettable_operand): Delete declaration.
13108         (find_constant_term): Add declaration.
13109         * caller-save.c: Replace calls to adj_offsettable_operand with calls
13110         to adjust_address.
13111         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
13112         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
13113         * config/i386/i386.c, config/i386/i386.md: Likewise.
13114         * config/i860/i860.c, config/i960/i960.c: Likewise.
13115         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
13116         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
13117         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
13118         * config/mips/mips.c, config/mips/mips.md: Likewise.
13119         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
13120         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
13121         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
13122         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
13123         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
13124         * config/ns32k/ns32k.md: Likewise.
13125
13126 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
13127
13128         * rtl.c (copy_rtx): Handle 'T' format letter.
13129         * gensupport.c (collect_insn_data): Likewise.
13130         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
13131
13132 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
13133
13134         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
13135         -B option.  Use 'dir' not 'foo' as example directory name.
13136
13137 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13138
13139         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13140         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
13141
13142 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
13143
13144         * doc/cppinternals.texi: Improve formatting and logical markup.
13145
13146 2001-07-03  Andreas Jaeger  <aj@suse.de>
13147
13148         * Makefile.in (insn-recog.o): Add dependency on reload.h.
13149
13150         * genrecog.c (write_header): Include reload.h for prototypes in
13151         insn-recog.c.
13152
13153 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
13154
13155 config:
13156         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
13157         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
13158         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
13159         i386_pe_valid_type_attribute_p): Add.
13160         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
13161         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
13162
13163 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13164
13165         * explow.c (plus_constant_wide, case LO_SUM): New case.
13166         (plus_constant_for_output_wide): Delete.
13167         * rtl.h (plus_constant_for_output): Delete.
13168         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
13169         instead of plus_constant_for_output.
13170         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
13171         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
13172         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
13173         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
13174         * config/sparc/sparc.md: Likewise.
13175         Convert some change_address calls to adjust_address.
13176
13177 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
13178
13179         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
13180         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
13181         documentation of -std and -Wwrite-strings.
13182
13183 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
13184
13185         * cse.c (canon_hash): Don't register registers in very small
13186         register classes, as extending their lifetime might cause
13187         reload to fail.
13188
13189 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13190
13191         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
13192
13193         * flow.c (forwarder_block_p): Fix for fallthru blocks.
13194         (try_redirect_by_replacing_jump): Update properly the count
13195         and frequency information.
13196
13197 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
13198
13199         * toplev.c (dump_file_index): Move SSA dumps just after first
13200         jump dump.
13201         (dump_file): Corresponding changes.
13202         (rest_of_compilation): Move SSA path to just after the first
13203         jump pass.
13204         * doc/gcc.texi (Passes): Update due to movement of SSA path.
13205         * doc/invoke.texi: Update dump file #s as they were completely
13206         out of date with reality.
13207
13208 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
13209
13210         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
13211
13212         * expr.c (emit_move_insn_1): Deal with non-default
13213         STACK_PUSH_CODE.
13214
13215         * expr.c (emit_single_push_insn): Fix warning.
13216
13217 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
13218
13219         * expr.c (emit_move_insn_1): Avoid modifying
13220         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
13221
13222 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13223
13224         * emit-rtl.c (adjust_address): New function.
13225         * expr.h (adjust_address): Add declaration.
13226         * builtins.c: Replace some calls to change_address with calls to it
13227         or to validize_mem.
13228         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
13229         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
13230         * config/arm/arm.c, config/convex/convex.c: Likewise.
13231         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
13232         * config/i386/i386.c, config/i386/i386.md: Likewise.
13233         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
13234         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
13235         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
13236         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
13237         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
13238
13239 2001-07-02  Jim Wilson  <wilson@redhat.com>
13240
13241         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
13242
13243 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
13244
13245         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
13246         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
13247
13248 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
13249
13250         * cppinit.c (lang_defaults): New table.
13251         (set_lang): Just read from lang_defaults into the live options
13252         structure.
13253
13254 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
13255
13256         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
13257         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
13258         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
13259
13260 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13261
13262         * doc/install.texi: Various spelling and markup fixes.
13263         (Installing GCC): Component specific installation instructions are
13264         gone.
13265         Fix reference.
13266         Warn about removing old install dir in the presence of shared libs.
13267         (Configuration): Invoke with options target to match configure
13268         --help.
13269         Consistently refer to gas, gld pathnames.
13270         Invert --enable-multilib documentation.
13271         Remove references to old compiler versions.
13272
13273 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13274
13275         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
13276
13277 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13278
13279         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
13280         section.
13281         (Specific, mips*-sgi-irix5): Note IDO download.
13282         Reworded MIPS C hints.
13283         Use GNU as instead of GAS.
13284         Markup fixes.
13285         Removed SGI Freeware reference, IRIX 6 only.
13286         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
13287         Note N64 library requirement/workaround.
13288         Update O32 hints.
13289         Complete list of structure passing bug victims.
13290
13291 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13292
13293         * doc/install.texi: Remove CVS Id.
13294
13295 2001-07-02  Andreas Jaeger  <aj@suse.de>
13296
13297         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
13298         (find_inherently_necessary): Remove unused variable.
13299
13300 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
13301
13302         * c-common.h (TDI_inlined): New ast dump phase.
13303         (dump_flag_name): New function.
13304         * c-dump.c (dump_files): Add inlined phase.
13305         (dump_flag_name): Define.
13306         * doc/invoke.texi (-fdump-ast-inlined): Document.
13307
13308 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13309
13310         * stor-layout.c (layout_decl): Revert change to handling of alignment
13311         in packed types.
13312
13313 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13314
13315         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
13316         for FIELD_DECL.
13317
13318 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
13319
13320         * doc/tm.texi (FUNCTION_ARG): Document that the last call
13321         is special.
13322
13323 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
13324
13325         * tlink.c (recompile_files): Remove COMPILER_PATH and
13326         LIBRARY_PATH from the environment.
13327
13328 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
13329
13330         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
13331         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
13332         enumerators.
13333         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
13334
13335         * c-parse.in (OBJC_STRING): Kill.
13336         (objc_string): Decompose to [objc_string] '@' STRING.
13337         (reswords): Take the leading '@' off all the Objective C keywords.
13338         (objc_rid_sans_at): Kill.
13339         (init_reswords): Don't initialize it.
13340         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
13341         (_yylex): Kill reconsider label.  Look ahead one token after
13342         an '@'; if we get an identifier, check whether it's an
13343         Objective C @-keyword.  If so, return the keyword.  Otherwise,
13344         put back the token and return the '@' as a terminal.
13345
13346         * cpplib.c (lex_macro_node): Remove unnecessary check for
13347         leading '@' on identifier.  Clarify control flow and commentary.
13348
13349 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13350
13351         * cse.c (new_label_ref): Variable deleted.
13352         (insert): Remove set of new_label_ref.
13353         (check_for_label_ref): New function.
13354         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
13355
13356 See ChangeLog.5 for earlier changes.