OSDN Git Service

* explow.c (convert_memory_address, case SUBREG): Only return
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2
3         * explow.c (convert_memory_address, case SUBREG): Only return
4         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
5
6 2001-11-08  Richard Henderson  <rth@redhat.com>
7
8         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
9         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
10         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
11
12 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
13
14         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
15
16 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
17
18         * dwarf2out.c (debug_str_hash): New.
19         (struct indirect_string_node): New.
20         (struct dw_val_struct): Change type of val_str to it.
21         (DEBUG_STR_SECTION_FLAGS): Define.
22         (add_AT_string): Push string into hashtable, increment reference
23         counter.
24         (AT_string): Return string from ht_identifier.
25         (AT_string_form): New.
26         (free_AT): For dw_val_class_str, just decrement reference counter.
27         (size_of_string): Remove.
28         (size_of_die): Use AT_string_form to decide what size the string
29         occupies in DIE.
30         (size_of_pubnames): Use strlen instead of size_of_string.
31         (value_format): Use AT_string_form for dw_val_class_str.
32         (output_die): Output DW_FORM_strp strings using
33         dw2_asm_output_offset.
34         (indirect_string_alloc, output_indirect_string): New.
35         (dwarf2out_finish): Emit .debug_str strings if there are any.
36
37 2001-11-08  Andreas Franck  <afranck@gmx.de>
38
39         * configure.in: Add AC_ARG_PROGRAM to support program name
40         transformation with --program-prefix, --program-suffix and
41         --program-transform-name.
42         * configure: Regenerated.
43         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
44         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
45         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
46         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
47         program_transform_name the way suggested by autoconf.
48         (GCC_TARGET_INSTALL_NAME): Define.
49         (install-driver): Use the transformed target alias name.
50
51 2001-11-08  Richard Henderson  <rth@redhat.com>
52
53         * config/mips/mips.c (save_restore_insns): Remove GP from the
54         restore registers mask early instead of special casing it inside
55         the loop.
56
57 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
58
59         * cp/decl.c (shadow_warning): New function.
60         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
61         and an error when a block scope decl shadows a parameter.
62
63 2001-11-08  Richard Henderson  <rth@redhat.com>
64
65         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
66         case as well.
67
68 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
69
70         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
71         to implement floating negation on processors prior to PA 2.0.
72
73 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
74
75         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
76         (USE_LINKONCE_INDIRECT): Define.
77         (dw2_output_indirect_constant_1): Try to output indirect constants
78         into linkonce sections if possible.
79         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
80         (dw2_output_indirect_constants): Likewise.
81
82 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
83
84         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
85
86 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
87
88         * c-decl.c (pushdecl): Remove file and line.
89         * c-typeck.c (pop_init_level): Remove size.
90
91 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
92
93         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
94         for rs6000.
95
96         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
97         (TARGET_ALTIVEC): New.
98         (TARGET_SWITCHES): Add altivec.
99         (FIRST_PSEUDO_REGISTER): Change to 109.
100         (CALL_USED_REGISTERS): Same.
101         (FIRST_ALTIVEC_REGNO): New.
102         (LAST_ALTIVEC_REGNO): New.
103         (ALTIVEC_REGNO_P): New.
104         (UNITS_PER_ALTIVEC_WORD): New.
105         (ALTIVEC_VECTOR_MODE): New.
106         (FIXED_REGISTERS): Add altivec registers.
107         (REG_ALLOC_ORDER): Same.
108         (HARD_REGNO_NREGS): Adjust for altivec registers.
109         (HARD_REGNO_MODE_OK): Same.
110         (MODES_TIEABLE_P): Same.
111         (REGISTER_MOVE_COST): Same.
112         (REGNO_REG_CLASS): Same.
113         (reg_class): Add ALTIVEC_REGS.
114         (REG_CLASS_NAMES): Same.
115         (REG_CLASS_CONTENTS): Same.
116         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
117         (ALTIVEC_ARG_RETURN): New.
118         (FUNCTION_VALUE): Handle VECTOR_TYPE.
119         (LIBCALL_VALUE): Handle altivec vector modes.
120         (VECTOR_MODE_SUPPORTED_P): New.
121         (ALTIVEC_ARG_MIN_REG): New.
122         (ALTIVEC_ARG_MAX_REG): New.
123         (ALTIVEC_ARG_NUM_REG): New.
124         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
125         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
126         (REGISTER_NAMES): Add altivec regs.
127         (DEBUG_REGISTER_NAMES): Same.
128         (ADDITIONAL_REGISTER_NAMES): Same.
129         (rs6000_builtins): New.
130         (MD_EXPAND_BUILTIN): New.
131         (MD_INIT_BUILTINS): New.
132         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
133         for AltiVec instructions.
134         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
135         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
136         registers.
137         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
138         (TARGET_SWITCHES): Add no-altivec.
139         (DATA_ALIGNMENT): Align vectors to 128 bits.
140         (TARGET_OPTIONS): Add abi= option.
141         Add rs6000_abi_string extern.
142         (LOCAL_ALIGNMENT): New.
143         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
144         (MASK_ALTIVEC_ABI): New.
145         (TARGET_ALTIVEC_ABI): New.
146         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
147         call-saved.
148         (STACK_BOUNDARY): Adjust for altivec.
149         (BIGGEST_ALIGNMENT): Same.
150         (rs6000_args): Add vregno.
151         (USE_ALTIVEC_FOR_ARG_P): New.
152         (FIXED_REGISTERS): Add vrsave register.
153         (CALL_USED_REGISTERS): Same.
154         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
155         (VRSAVE_REGNO): New.
156         (reg_class): Add VRSAVE_REGS.
157         (REG_CLASS_NAMES): Same.
158         (REG_CLASS_CONTENTS): Same.
159         (REGNO_REG_CLASS): Same.
160         
161         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
162         (ABI_STACK_BOUNDARY): Same.
163         (BIGGEST_ALIGNMENT): Same.
164         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
165         (ROUND_TYPE_ALIGN): Same.
166         
167         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
168         to 64.
169
170         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
171         to 64.
172
173         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
174         to 64.
175
176         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
177         (altivec_expand_builtin): New.
178         (altivec_init_builtins): New.
179         (TARGET_EXPAND_BUILTIN): New.
180         (TARGET_INIT_BUILTINS): New.
181         (rs6000_init_builtins): New.
182         (struct builtin_description): New.
183         (bdesc_2arg): New.
184         (rs6000_reg_names): Add altivec registers.
185         (alt_reg_names): Same.
186         (secondary_reload_class): Altivec regs can hold altivec regs and
187         memory.
188         (rs6000_emit_move): Force constants into memory for AltiVec moves.
189         (print_operand): Add 'y' case for printing altivec memory
190         operands.
191         (rs6000_legitimize_address): Legitimize vector addresses into
192         [REG+REG] or [REG].
193         (altivec_expand_binop_builtin): New.
194         New string rs6000_current_abi.
195         (rs6000_override_options): Call rs6000_parse_abi_options.
196         (rs6000_parse_abi_options): New.
197         (function_arg_boundary): Vector arguments must be 16
198         byte aligned.
199         (function_arg_advance): Handle vector arguments.
200         (function_arg_partial_nregs): Same.
201         (init_cumulative_args): Same.
202         (function_arg): Same.
203
204         * config/rs6000/rs6000.md (altivec_lvx): New.
205         (type): Add altivec attribute.
206         (movv4si): New.
207         (*movv4si_internal): New.
208         (movv16qi): New.
209         (*movv16qi_internal): New.
210         (movv8hi): New.
211         (*movv8hi_internal1): New.
212         (movv4sf): New.
213         (*movv4sf_internal1): New.
214         (altivec_stvx): New.
215         (vaddubm): New.
216         (vadduhm): New.
217         (vadduwm): New.
218         (vaddfp): New.
219         (vaddcuw): New.
220         (vaddubs): New.
221         (vaddsbs): New.
222         (vadduhs): New.
223         (vaddshs): New.
224         (vadduws): New.
225         (vaddsws): New.
226         (vand): New.
227         (vandc): New.
228         (vavgub): New.
229         (vavgsb): New.
230         (vavguh): New.
231         (vavgsh): New.
232         (vavguw): New.
233         (vavgsw): New.
234         (vcmpbfp): New.
235         (vcmpequb): New.
236         (vcmpequh): New.
237         (vcmpequw): New.
238         (vcmpeqfp): New.
239         (vcmpgefp): New.
240         (vcmpgtub): New.
241         (vcmpgtsb): New.
242         (vcmpgtuh): New.
243         (vcmpgtsh): New.
244         (vcmpgtuw): New.
245         (vcmpgtsw): New.
246         (vcmpgtfp): New.
247         (vcmpgefp): New.
248         (vcmpgtub): New.
249         (vcmpgtsb): New.
250         (vcmpgtuh): New.
251         (vcmpgtsh): New.
252         (vcmpgtuw): New.
253         (vcmpgtsw): New.
254         (vcmpgtfp): New.
255         (vmaxub): New.
256         (vmaxsb): New.
257         (vmaxuh): New.
258         (vmaxsh): New.
259         (vmaxuw): New.
260         (vmaxsw): New.
261         (vmaxfp): New.
262         (vmrghb): New.
263         (vmrghh): New.
264         (vmrghw): New.
265         (vmrglb): New.
266         (vmrglh): New.
267         (vmrglw): New.
268         (vminub): New.
269         (vminsb): New.
270         (vminuh): New.
271         (vminsh): New.
272         (vminuw): New.
273         (vminsw): New.
274         (vminfp): New.
275         (vmuleub): New.
276         (vmulesb): New.
277         (vmuleuh): New.
278         (vmulesh): New.
279         (vmuloub): New.
280         (vmulosb): New.
281         (vmulouh): New.
282         (vmulosh): New.
283         (vnor): New.
284         (vor): New.
285         (vpkuhum): New.
286         (vpkuwum): New.
287         (vpkpx): New.
288         (vpkuhss): New.
289         (vpkshss): New.
290         (vpkuwss): New.
291         (vpkswss): New.
292         (vpkuhus): New.
293         (vpkshus): New.
294         (vpkuwus): New.
295         (vpkswus): New.
296         (vrlb): New.
297         (vrlh): New.
298         (vrlw): New.
299         (vslb): New.
300         (vslh): New.
301         (vslw): New.
302         (vsl): New.
303         (vslo): New.
304         (vsrb): New.
305         (vrsh): New.
306         (vrsw): New.
307         (vsrab): New.
308         (vsrah): New.
309         (vsraw): New.
310         (vsr): New.
311         (vsro): New.
312         (vsububm): New.
313         (vsubuhm): New.
314         (vsubuwm): New.
315         (vsubfp): New.
316         (vsubcuw): New.
317         (vsububs): New.
318         (vsubsbs): New.
319         (vsubuhs): New.
320         (vsubshs): New.
321         (vsubuws): New.
322         (vsubsws): New.
323         (vsum4ubs): New.
324         (vsum4sbs): New.
325         (vsum4shs): New.
326         (vsum2sws): New.
327         (vsumsws): New.
328         (vxor): New.
329
330 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
331
332         * Makefile.in (df.o): Add fibheap.h to dependencies.
333        
334         * df.h: Add prototypes for transfer functions, iterative_dataflow
335         functions.
336         (enum df_flow_dir): New enum.
337         (enum df_confluence_op): New enum.
338         (struct df): Add inverse_rts_map.
339
340         * df.c: Add sbitmap.h to the list of includes.
341         (df_rd_global_compute): Removed.
342         (df_ru_global_compute): Removed.
343         (df_lr_global_compute): Removed.
344         (df_rd_transfer_function): New function.
345         (df_ru_transfer_function): New function.
346         (df_lr_transfer_function): New function.
347         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
348         Use iterative_dataflow_bitmap instead of df_*_global_compute.
349         (iterative_dataflow_sbitmap): New function.
350         (iterative_dataflow_bitmap): New function.
351
352 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
353
354         * doc/gcc.texi: Move terminology and spelling conventions to
355         htdocs/codingconventions.html.
356
357 2001-11-07  Graham Stott  <grahams@redhat.com>
358
359         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
360
361 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
362
363         * expmed.c (expand_mult): Force operand to register before computing
364         cost.
365         * i386.c (x86_decompose_lea): New global vairable.
366         * i386.h (x86_decompose_lea): Declare.
367         (TARGET_DECOMPOSE_LEA): New macro.
368         (RTX_COST): Handle leas properly.
369
370 2001-11-06  Richard Henderson  <rth@redhat.com>
371
372         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
373         defined for a CONSTRUCTOR; don't check it.
374
375 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
376
377         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
378         test for absolute pathnames.
379
380 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
381
382         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
383         instructions up to the target pc inclusive.
384
385 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
386
387         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
388
389 2001-11-06  Eric Christopher  <echristo@redhat.com>
390
391         * config/mips/mips.md(movdf_internal2): Add constraints for float
392         to general register move.
393         * config/mips/elf64.h: Add default ABI.
394
395 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
396
397         * alias.c:: Include langhooks.h.
398         * emit-rtl.c: Similarly.
399         * toplev.c: Similarly.
400         * tree-inline.c: Similarly.
401         * langhooks-def.h: New, the old langhooks.h.  Give the default
402         hooks a common prefix.
403         * langhooks.h: Contents extracted from toplev.h.
404         * toplev.h: Move langhook stuff to langhooks.h.
405         * langhooks.c: Give default hooks a common prefix.
406
407         * c-lang.c: Include langhooks-def.h.
408         * objc/objc-act.c: Similarly.
409         * Makefile.in: Update.
410         * objc/Make-lang.in: Update.
411
412 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
413
414         * doc/install.texi: Document that configure options not listed in
415         this file are unsupported.  Document --with-system-zlib.
416
417 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
418
419         * rtl.h (mem_for_const_double): New declaration.
420         * varasm.c (mem_for_const_double): New function.
421         * config/convex/convex.md (movdf): Use it.
422         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
423         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
424         * config/m68k/m68kv4.h: Likewise.
425
426         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
427         of new GP reg classes.
428
429         * expr.c (store_field): When making temp object for unaligned
430         component, set it to alias set 0.
431
432 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
433
434         * c-common.c (c_expand_expr_stmt): Apply default conversions to
435         non-lvalue arrays if C99.
436         * c-typeck.c (default_conversion): Split out code handling
437         array-to-pointer and function-to-pointer conversions into a
438         separate default_function_array_conversion function.
439         (default_function_array_conversion): New function.  Keep track of
440         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
441         arrays unchanged outside C99 mode instead of giving an error for
442         them.
443         (build_component_ref): Use pedantic_non_lvalue when handling
444         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
445         (convert_arguments): Use default_function_array_conversion.
446         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
447         non-lvalues are OK.
448         (unary_complex_lvalue): Likewise.
449         (internal_build_compound_expr): Use
450         default_function_array_conversion.  Apply default conversions to
451         function in compound expression.
452         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
453         Use default_function_array_conversion.
454         * doc/extend.texi: Update documentation of subscripting non-lvalue
455         arrays.
456         Fixes PR c/461.
457
458 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
459
460         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
461         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
462         corresponding to the complete set of .po and .gmo files in
463         the source directory's po subdir, modified by LINGUAS.  Don't
464         look at ALL_LINGUAS.
465         * configure.in: Don't set ALL_LINGUAS.
466         * configure: Regenerate.
467
468         * Makefile.in (.po.gmo): Don't move into source directory.
469         (.po.pox): Clarify comments.
470         (install-po): Look for .gmo files in both srcdir and objdir;
471         don't fail if a file is totally missing.
472         (distclean): rmdir ada subdirectory too.
473
474 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
475
476         * config/rs6000/rs6000.c (rs6000_select_section): Handle
477         CONSTRUCTORs _correctly_.
478
479 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
480
481         * c-decl.c (delete_block): Remove.
482         * c-tree.h (delete_block): Remove.
483
484 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
485
486         * cppexp.c (lex, parse_defined): Update warning about defined.
487
488 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
489
490         * config/rs6000/rs6000.c (rs6000_select_section): Handle
491         CONSTRUCTORs too.
492
493 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
494
495         * config/arm/arm.c (arm_return_in_memory): Cope with
496         int_size_in_bytes returning -1.
497
498         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
499         DECL being NULL.
500
501 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
502
503         * Makefile.in (bb-reoder.o): Add depdendency on cfglayout.h;
504         remove unneded depdendencies;
505         (cfglayout.o): New.
506         * cfglayout.c, cfglayout.h: New files; break out from ...
507         * bb-reorder.c: ... here; Remove unneeded includes;
508
509 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
510
511         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
512
513 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
514
515         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
516         mode as well.  Do not explicitly create intermediate regs.
517
518 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
519
520         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
521         (common_section): Delete unused variable.
522         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
523         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
524         * arm-protos.h (arm_poke_function_name, aof_add_import,
525         aof_delete_import): Const-ify.
526         * arm.c (legitimize_pic_address): Wrap variables in the macro
527         controlling their usage.
528         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
529         (arm_poke_function_name, pic_chain, import, aof_add_import,
530         aof_delete_import): Const-ify.
531         * i386.c (ix86_osf_output_function_prologue): Const-ify.
532         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
533         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
534         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
535         * i860/sysv3.h: Add missing comment closure.
536         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
537         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
538         to symbolic_operand.
539
540         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
541         (i960-*-*): Set tmake_file.
542         (sparc86x-*-elf*): Fix typo in header name.
543
544         * sched-rgn.c (schedule_insns): Delete unused variable.
545
546 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
547
548         PR c/2820
549         * c-typeck.c (lookup_field): Rework to return a chain down to
550         the looked-up field.
551         (build_component_ref): Use the new lookup_field to handle
552         nested anonymous entities correctly.
553
554 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
555
556         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
557         Change parameters to gen_rtx_CONST_DOUBLE.
558         (GEN_INT64, sparc_emit_set_const64): Likewise.
559         * config/sparc/sparc.md (movdf split): Likewise.
560
561 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
562
563         * unroll.c (calculate_giv_inc): Use find_last_value rather
564         than just hoping the last instruction is the right SET.
565         [Fixes 990604-1.c on stormy16.]
566
567         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
568         library at all if -T is used.
569
570         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
571         some uses of uninitialized variables in error cases.
572
573         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
574         look at 'temp' if we won't be using it.
575
576         * config/stormy16/stormy16.h (CONST_COSTS): Define.
577         (RTX_COSTS): Define.
578         (ADDRESS_COST): Define.
579         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
580
581         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
582
583         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
584         stormy16_asm_output_mi_thunk.
585         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
586         function.
587         * config/stormy16/stormy16-protos.h
588         (stormy16_asm_output_mi_thunk): New prototype.
589
590 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
591
592         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
593         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
594         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
595         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
596         sched-int.h, toplev.c, config/alpha/alpha.c,
597         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
598         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
599         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
600         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
601         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
602         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
603         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
604
605 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
606
607         * Makefile.in (dbxout.o): Depend on function.h.
608         * collect2.c (is_in_list): Hide unused function.
609         * dbxout.c: Include function.h.
610         (source_label_number, dbxout_source_line, dbxout_source_file,
611         dbxout_function_end, dbxout_begin_function): Wrap/move inside
612         macros controlling usage.
613         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
614         * output.h (exports_section): Prototype.
615
616         * convex.c (convex_output_function_prologue): Fix format specifier
617         warning.
618         (asm_declare_function_name): Fix signed/unsigned warning.
619         (print_operand): Fix format specifier warning.
620         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
621         * dsp16xx-protos.h (uns_comparison_operator,
622         num_1600_core_shifts): Prototype.
623         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
624         (frame_size, frame_pointer_offset): Delete.
625         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
626         Make static.  Fix format specifier warnings.
627         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
628         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
629         * dsp16xx.md: Add default case in switches.
630         * fr30.h (IN_RANGE): Delete.
631         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
632         * mcore-protos.h (mcore_output_cmov): Const-ify.
633         * mcore.c (mcore_output_cmov): Likewise.
634         * mcore.h (switch_to_section): Make static and prototype.
635         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
636         unsigned>=0 warnings.
637         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
638         * rs6000-protos.h (read_only_data_section,
639         read_only_private_data_section): Prototype.
640         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
641         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
642         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
643
644 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
645
646         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
647         ATTRIBUTE_UNUSED.
648         * final.c (final_scan_insn): Add brackets around body of if-stmt.
649         * gcc.c (convert_filename): Add static prototype.  Const-ify.
650         Wrap variable in macros controlling its use.
651         * output.h (sdata_section): Add prototype.
652
653         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
654         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
655         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
656         (ASM_FILE_START): Const-ify.
657         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
658         specifier warning.
659         * c4x.md: Don't use the 'U' integer suffix.
660         * clipper.md (clipper_movstr): Delete declaration.
661         * d30v-protos.h (d30v_move_2words): Const-ify.
662         (debug_stack_info): Add prototype.
663         * d30v.c: Include "integrate.h".
664         (d30v_function_arg_boundary, d30v_function_arg,
665         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
666         signed/unsigned warnings.
667         (d30v_print_operand_memory_reference, d30v_move_2words):
668         Const-ify.
669         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
670         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
671         * fr30.md: Const-ify.
672         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
673         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
674         (mvs_get_label_page): Hide unused static function.
675         * i860.c (current_function_original_name): Const-ify.
676         * i860/sysv3.h (current_function_original_name): Likewise.
677         * i860/sysv4.h (current_function_original_name): Likewise.
678         * i960.md: Add default case in switches.  Remove unused variable.
679         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
680         * m32r.md: Const-ify.
681         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
682         * m68hc11.c: Include "reload.h".
683         (static_chain_reg, print_options, m68hc11_asm_file_start):
684         Const-ify.
685         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
686         around & in comparison.
687         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
688         * mn10200.c (shift_mode): Remove trailing comma.
689         * mn10300-protos.h (output_tst): Const-ify.
690         * mn10300.c (output_tst): Likewise.
691         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
692         warnings.
693         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
694         * pa.c (output_ascii): Likewise.
695         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
696         * pdp11.md (expand_unop): Delete declarations.
697         * pj-protos.h (pj_output_addsi3): Const-ify.
698         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
699         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
700         unique_src_operand): Add prototypes.
701         (pj_output_store_into_lval): Make definition static.
702         (pj_function_incoming_arg): Don't use unary plus.
703         (pj_output_addsi3): Const-ify.
704         * romp.md (get_symref): Delete declarations.
705         * v850-c.c (mark_current_function_as_interrupt): Don't return
706         value from void function.
707         * v850.c: Include "integrate.h".
708         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
709         * vax-protos.h (const_section): Add prototype.
710
711 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
712
713         * machmode.def: Add documentation for the seventh argument in
714         vector modes.
715
716 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
717
718         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
719         consistently.
720         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
721         <-melf>: Don't have markup for ELF acronym.
722
723 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
724
725         * config.gcc (mmix-*-*): New target.
726         * doc/invoke.texi: Document MMIX options.
727         * doc/contrib.texi: Add note about MMIX port to my entry.
728         * config/mmix/t-mmix: New file.
729         * config/mmix/mmix.h: New file.
730         * config/mmix/mmix-protos.h: New file.
731         * config/mmix/mmix.c: New file.
732         * config/mmix/mmix.md: New file.
733         * config/mmix/crti.asm: New file.
734         * config/mmix/crtn.asm: New file.
735
736 2001-11-03  Kazu Hirata  <kazu@hxi.com>
737
738         * config/sparc/linux-aout.h: Fix comment formatting.
739         * config/sparc/linux.h: Likewise.
740         * config/sparc/linux64.h: Likewise.
741         * config/sparc/lynx.h: Likewise.
742         * config/sparc/pbd.h: Likewise.
743         * config/sparc/sol2-sld-64.h: Likewise.
744         * config/sparc/sol2.h: Likewise.
745         * config/sparc/sparc.c: Likewise.
746         * config/sparc/sparc.h: Likewise.
747         * config/sparc/sparc.md: Likewise.
748         * config/sparc/sunos4.h: Likewise.
749         * config/sparc/vxsim.h: Likewise.
750         * config/sparc/vxsparc.h: Likewise.
751         * config/sparc/vxsparc64.h: Likewise.
752
753 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
754
755         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
756         reference to CONST_DOUBLE_MEM in comment.
757         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
758         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
759         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
760         * function.c (pop_function_context_from): Don't call
761         restore_varasm_status.
762         * function.h (restore_varasm_status): Delete declaration.
763         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
764         * rtl.c: Likewise.
765         * rtl.def (CONST_DOUBLE): Update comment.
766         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
767         (CONST_DOUBLE_CHAIN): Likewise.
768         (CONST_DOUBLE_MEM): Delete.
769         (gen_rtx_CONST_DOUBLE): Update parameters.
770         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
771         Remove reference to CONST_DOUBLE_MEM.
772         (const_alias_set): New variable.
773         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
774         (immed_real_const_1): Adjust tests for 0, 1, and 2.
775         Don't set CONST_DOUBLE_MEM.
776         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
777         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
778         Put constant in const_alias_set.
779         (struct pool_constant): ALIGN now unsigned.
780         OFFSET now HOST_WIDE_INT.
781         Delete LABEL.
782         (restore_varasm_status): Deleted.
783         (mark_pool_constant): Mark desc->rtl.
784         (force_const_mem): Rework to store rtl in hash table,
785         not CONST_DOUBLE_MEM.
786         Put constant in const_alias_set.
787         (find_pool_constant): Check desc->rtl.
788         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
789         (init_varasm_once): Initialize const_alias_set.
790
791         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
792         force_const_mem.
793
794         * reload.c (combine_reloads): Don't combine an output reload if there
795         are other reloads around for part of the output.
796
797         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
798         constant expression.
799         (set_mem_decl): New function.
800         * expr.h (set_mem_decl): New declaration.
801         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
802         (output_asm_operand_names): Add tab.
803         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
804
805         * builtins.c (get_memory_rtx): Properly set MEM alias set and
806         attributes.
807
808 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
809
810         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
811         Use "invalid" instead of "illegal".  Use @r in comments in
812         examples.
813
814 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
815
816         * c-decl.c (pushdecl): Move block inside if conditional to remove
817         possibility of a segfault.  Lookup block-level extern
818         variables in enclosing scopes correctly.
819
820         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
821
822 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
823
824         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
825         SUBREG so we avoid SUBREGing memory.
826
827         * expmed.c (store_bit_field): Same.
828
829 2001-11-02  DJ Delorie  <dj@redhat.com>
830
831         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
832         using FP registers for DImode mem-mem moves is acceptable.
833
834 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
835
836         * builtins.c (apply_args_size): Handle vector arguments.
837         (apply_result_size): Same.
838
839         * machmode.def: Set WIDER mode field for all vector entries.
840
841 2001-11-02  Graham Stott  <grahams@redhat.com>
842
843         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
844
845 2001-11-01  Eric Christopher  <echristo@redhat.com>
846
847         * config.gcc: Revert part of earlier patch.
848         * config/mips/linux.h: Ditto.
849         * df.c: Include tm_p.h to avoid warnings.
850         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
851         #if/#endif.
852         * config/mips/mips.c: Define mips_abi regardless.
853         (mips_output_function_prologues): Add long casts for .frame
854         output.
855         (override_options): Allow use of ABI_32.
856
857 2001-11-01  Kazu Hirata  <kazu@hxi.com>
858
859         * config/m68hc11/m68hc11.c: Fix comment formatting.
860         * config/m68hc11/m68hc11.h: Likewise.
861         * config/m68hc11/m68hc11.md: Likewise.
862
863 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
864
865         * c-typeck.c (default_conversion): Retain the original expression
866         codes.
867         * gcc.dg/Wparentheses.c: New tests.
868
869 2001-11-01  David S. Miller  <davem@redhat.com>
870
871         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
872         64-bit Sparc description more in line with reality.
873
874 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
875
876         * Makefile.in (GCOV_OBJS): Add version.o.
877         * gcov.c: Include "version.h" and <getopt.h>.
878         (gcov_version_string): Remove.
879         (print_usage): Take a parameter to determine whether this is a
880         call from --help or an error message.  Give fuller output that
881         follows the GNU Coding Standards for --help.
882         (print_version): New function.
883         (options): New.
884         (process_args): Use getopt_long.  Support long options.  Follow
885         GNU Coding Standards for --help and --version.
886         * doc/gcov.texi: Document long options.
887         Addresses part of PR other/704.
888
889 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
890
891         * pa.c (output_move_double): Fix typo in double load.
892
893 2001-11-01  Kazu Hirata  <kazu@hxi.com>
894
895         * config/h8300/h8300.c (h8300_encode_label): Compute a string
896         before passing it to ggc_alloc_string.
897
898 2001-11-01  Kazu Hirata  <kazu@hxi.com>
899
900         * config/m68k/3b1.h: Fix comment formatting.
901         * config/m68k/3b1g.h: Likewise.
902         * config/m68k/a-ux.h: Likewise.
903         * config/m68k/amix.h: Likewise.
904         * config/m68k/apollo68.h: Likewise.
905         * config/m68k/atari.h: Likewise.
906         * config/m68k/aux-exit.c: Likewise.
907         * config/m68k/ccur-GAS.h: Likewise.
908         * config/m68k/crds.h: Likewise.
909         * config/m68k/dpx2.h: Likewise.
910         * config/m68k/dpx2g.h: Likewise.
911         * config/m68k/hp310.h: Likewise.
912         * config/m68k/hp320.h: Likewise.
913         * config/m68k/isi.h: Likewise.
914         * config/m68k/linux.h: Likewise.
915         * config/m68k/lynx.h: Likewise.
916         * config/m68k/m68k-psos.h: Likewise.
917         * config/m68k/m68k.c: Likewise.
918         * config/m68k/m68k.h: Likewise.
919         * config/m68k/m68k.md: Likewise.
920         * config/m68k/m68kelf.h: Likewise.
921         * config/m68k/m68kv4.h: Likewise.
922         * config/m68k/mot3300.h: Likewise.
923         * config/m68k/news.h: Likewise.
924         * config/m68k/next.h: Likewise.
925         * config/m68k/pbb.h: Likewise.
926         * config/m68k/plexus.h: Likewise.
927         * config/m68k/sgs.h: Likewise.
928         * config/m68k/sun3.h: Likewise.
929         * config/m68k/tower.h: Likewise.
930         * config/m68k/vxm68k.h: Likewise.
931
932 2001-10-31  DJ Delorie  <dj@redhat.com>
933
934         * config/mips/mips.h (mips_cache_flush_func): Prototype.
935         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
936         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
937         * config/mips/mips.c (mips_cache_flush_func): New.
938         * doc/invoke.texi: Document the new options.
939
940 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
941
942         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
943         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
944
945         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
946
947         * config/cris/cris.c: Include output.h after tree.h but before
948         target.h.
949
950 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
951
952         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
953         (INTL_SUBDIRS): Just intl.
954         (.SUFFIXES): Add .gmo .po .pox.
955         (native): Also depend on build-@POSUB@.
956         (intl.all, intl.install): Depend on config.h and things it includes.
957         (po-generated): New target; depend on c-parse.c and tradcif.c.
958         (install-normal): Also depend on install-@POSUB@.
959         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
960         (build-, install-, build-po, update-po, install-po,
961         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
962
963         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
964         * configure.in: Don't munge XGETTEXT.  Don't generate
965         po/Makefile.in.
966         * configure: Regenerate.
967
968         * exgettext: Delete.
969         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
970         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
971
972 2001-10-31  Kazu Hirata  <kazu@hxi.com>
973
974         * config/h8300/h8300.md (two anonymous patterns): New.
975
976 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
977
978         * tree.h (tree_index): Add support for V16QI and V8HI.
979         (V8HI_type_node): New.
980         (V16QI_type_node): New.
981
982         * tree.c (build_common_tree_nodes_2): Same.
983
984         * c-common.c (type_for_mode): Same.
985
986 2001-10-31  Kazu Hirata  <kazu@hxi.com>
987
988         * config/i386/att.h: Fix comment formatting.
989         * config/i386/beos-elf.h: Likewise.
990         * config/i386/bsd.h: Likewise.
991         * config/i386/bsd386.h: Likewise.
992         * config/i386/crtdll.h: Likewise.
993         * config/i386/cygwin.asm: Likewise.
994         * config/i386/cygwin.h: Likewise.
995         * config/i386/djgpp.h: Likewise.
996         * config/i386/freebsd-aout.h: Likewise.
997         * config/i386/freebsd.h: Likewise.
998         * config/i386/gas.h: Likewise.
999         * config/i386/i386-interix.h: Likewise.
1000         * config/i386/i386-protos.h: Likewise.
1001         * config/i386/i386.c: Likewise.
1002         * config/i386/i386.h: Likewise.
1003         * config/i386/i386.md: Likewise.
1004         * config/i386/i386elf.h: Likewise.
1005         * config/i386/interix.c: Likewise.
1006         * config/i386/isc.h: Likewise.
1007         * config/i386/isccoff.h: Likewise.
1008         * config/i386/iscdbx.h: Likewise.
1009         * config/i386/linux.h: Likewise.
1010         * config/i386/lynx.h: Likewise.
1011         * config/i386/mingw32.h: Likewise.
1012         * config/i386/netbsd-elf.h: Likewise.
1013         * config/i386/next.h: Likewise.
1014         * config/i386/osf1elf.h: Likewise.
1015         * config/i386/osfrose.h: Likewise.
1016         * config/i386/sco5.h: Likewise.
1017         * config/i386/seq-gas.h: Likewise.
1018         * config/i386/seq-sysv3.h: Likewise.
1019         * config/i386/sequent.h: Likewise.
1020         * config/i386/sol2.h: Likewise.
1021         * config/i386/sun386.h: Likewise.
1022         * config/i386/uwin.asm: Likewise.
1023         * config/i386/uwin.h: Likewise.
1024         * config/i386/vxi386.h: Likewise.
1025         * config/i386/win32.h: Likewise.
1026         * config/i386/winnt.c: Likewise.
1027         * config/i386/xm-cygwin.h: Likewise.
1028         * config/i386/xm-mingw32.h: Likewise.
1029
1030 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1031
1032         * builtins.def: Fix comment typos.
1033         * config/alpha.c: Likewise.
1034         * config/arm/arm.c: Likewise.
1035         * config/avr/avr.h: Likewise.
1036         * config/d30v/d30v.c: Likewise.
1037         * config/d30v/d30v.h: Likewise.
1038         * config/d30v/d30v.md: Likewise.
1039         * config/dsp16xx/dsp16xx.c: Likewise.
1040         * config/fr30/fr30.c: Likewise.
1041         * config/fr30/fr30.md: Likewise.
1042         * config/i386/i386.c: Likewise.
1043         * config/i860/i860.c: Likewise.
1044         * config/i960/i960.c: Likewise.
1045         * config/ia64/ia64.c: Likewise.
1046         * config/mips/mips.c: Likewise.
1047         * config/pa/pa.c: Likewise.
1048         * config/rs6000/rs6000.c: Likewise.
1049         * config/s390/s390.c: Likewise.
1050         * config/sparc/sparc.c: Likewise.
1051
1052 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1053
1054         * config/mips/elf.h: Fix comment formatting.
1055         * config/mips/elf64.h: Likewise.
1056         * config/mips/iris5.h: Likewise.
1057         * config/mips/iris5gas.h: Likewise.
1058         * config/mips/iris6.h: Likewise.
1059         * config/mips/isa3264.h: Likewise.
1060         * config/mips/linux.h: Likewise.
1061         * config/mips/mips.c: Likewise.
1062         * config/mips/mips.h: Likewise.
1063         * config/mips/mips.md: Likewise.
1064         * config/mips/mips16.S: Likewise.
1065         * config/mips/netbsd.h: Likewise.
1066         * config/mips/osfrose.h: Likewise.
1067         * config/mips/r3900.h: Likewise.
1068         * config/mips/sni-svr4.h: Likewise.
1069         * config/mips/svr4-t.h: Likewise.
1070         * config/mips/ultrix.h: Likewise.
1071
1072 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
1073
1074         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
1075         when we update head->current.
1076
1077 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
1078
1079         * tree.c (id_string_size): Remove.
1080         (dump_tree_statistics): Update.
1081         * toplev.c (compile_file): If dumping stats, dump tree stats too.
1082
1083 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
1084
1085         * sched-rgn.c (schedule_insns): Fix comment.
1086
1087 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
1088
1089         * configure.in: Correct previous change: don't assume that
1090         gas's version number _isn't_ the last thing on the line, or
1091         isn't the only number on the line, either.
1092         * configure: Regenerate.
1093
1094 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1095
1096         * cfgcleanup.c: Fix a comment typo.
1097
1098 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1099
1100         * alias.c: Fix comment formatting.
1101         * recog.c: Likewise.
1102         * config/cris/cris.c: Likewise.
1103         * config/cris/cris.h: Likewise.
1104         * config/i960/i960.c: Likewise.
1105         * config/i960/i960.h: Likewise.
1106
1107 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1108
1109         * config/arm/arm.c: Fix a comment typo.
1110         * config/arm/arm.h: Likewise.
1111         * config/ia64/ia64.c: Likewise.
1112
1113 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
1114
1115         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
1116         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
1117         * rtl.h (set_unique_reg_note): Change return value.
1118         * gcse.c (try_replace_reg): Use set_unique_reg_note.
1119         * cse.c (cse_insn): Likewise.
1120         * expr.c (emit_move_insn): Likewise.
1121         * explow.c (force_reg): Likewise.
1122         * local-alloc (update_equiv_regs): Likewise.
1123         * loop.c (move_moveables, load_mems): Likewise.
1124         * reload (find_reloads): Likewise.
1125
1126 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
1127
1128         Localization fixes.
1129         * c-decl.c (parmlist_tags_warning, start_struct,
1130         check_for_loop_decls): Separate messages for struct, union and
1131         enum cases to allow for languages in which they have different
1132         genders.
1133         * c-format.c (scanf_flag_specs): Separate short and long name of
1134         the assignment suppression feature.
1135         (check_format_types): Localize "pointer" and "different types"
1136         strings.
1137         * c-lex.c (lex_number): Localize "an unsigned long int" and
1138         related strings.
1139         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
1140         warning message.
1141         * c-typeck.c (build_unary_up): Separate messages for increment and
1142         decrement cases to allow for languages in which they use different
1143         articles.  Localize the strings "increment" and "decrement" in one
1144         case.
1145
1146 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
1147
1148         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
1149         when no changes has been made.
1150
1151         * gcse.c (reg_set_bitmap): Turn into reg_set.
1152         (modify_mem_list_set, canon_modify_mem_list_set)
1153         (clear_modify_mem_tables, free_modify_mem_tables): New.
1154         (gcse_main); Use free_modify_mem_tables.
1155         (free_gcse_mem): Likewise; free the bitmaps.
1156         (alloc_gcse_main): Initialize the bitmaps.
1157         (canon_list_insert): Set canon_modify_mem_list_set.
1158         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
1159         (compute_hash_table): Use clear_modify_mem_tables.
1160         (reset_opr_set_tables): Likewise.
1161         (oprs_not_set_p): reg_set_bitmap is regset.
1162         (mark_set, mark_clobber): Likewise.
1163
1164         * df.h (DF_EQUIV_NOTES): New constant.
1165         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
1166         when asked for.
1167
1168         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
1169         (init_regions, schedule_insns): Conditionalize the checking
1170         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
1171
1172 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
1173
1174         * i386.md (movti_rex64 splitter): Fix condition.
1175
1176 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
1177
1178         * configure.in: Do not assume that gas's version number is the
1179         last thing on the first line of as --version output.
1180         * configure: Regenerate.
1181
1182         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
1183         MT_WARNING, MT_ERROR, MT_FATAL.
1184         (main): Call gcc_init_libintl.
1185         (v_message): Call gettext on msgid and "warning: "
1186         * tradcif.y: Include intl.h.
1187         (yyerror): Make parameter definition consistent with
1188         prototype.  Call gettext on msgid argument.
1189
1190 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1191
1192         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
1193         warnings.
1194
1195         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
1196
1197 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1198
1199         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
1200         before referencing it.
1201
1202 2001-10-26  DJ Delorie  <dj@redhat.com>
1203
1204         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
1205         override -G, and force -G0.
1206
1207 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1208
1209         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
1210         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
1211         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
1212         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
1213
1214         * loop.h (struct induction): Rename ext_dependant to
1215         ext_dependent.
1216         * loop.c: Change all uses.
1217         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
1218         All callers changed.
1219         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
1220
1221 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1222
1223         * c-parse.in (expr_no_commas, primary), c-typeck.c
1224         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
1225
1226 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
1227
1228         Undo assemble_name change in earlier patch.
1229
1230 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
1231
1232         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
1233         determining the type of the receiver, do not check that TREE_CODE
1234         of receiver is CALL_EXPR before calling receiver_is_class_object().
1235         (receiver_is_class_object): For the GNU runtime: recognize
1236         the case that the receiver is self in a class method context.
1237         Check that TREE_CODE of receiver is CALL_EXPR when checking that
1238         the receiver is a call to objc_get_class.
1239
1240 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1241
1242         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
1243
1244 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1245
1246         * Makefile.in (OBJS): Put all files in alphabetical order.
1247
1248         * dwarf2out.c (add_const_value_attribute): Fix error in last
1249         change.
1250
1251 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
1252
1253         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
1254         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
1255         fix warning.
1256         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
1257         (life_analysis): call purge_all_dead_edges after deleting noops.
1258         (delete_noop_move): Do not purge CFG.
1259         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
1260
1261 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
1262
1263         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
1264         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
1265         (ASM_GLOBALIZE_LABEL): Use assemble_name.
1266         (ASM_OUTPUT_COMMON): Likewise.
1267         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
1268         (rs6000_output_function_epilogue): Likewise.
1269         (output_mi_thunk): Fix typo.
1270         (rs6000_output_symbol_ref): Use assemble_name.
1271         (output_toc): Likewise.
1272         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
1273         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
1274         assemble_name calls STRIP_NAME_ENCODING.
1275         (ASM_OUTPUT_LABEL): Use assemble_name.
1276         (ASM_GLOBALIZE_LABEL): Likewise.
1277         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1278         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
1279         (ASM_OUTPUT_LOCAL): Likewise.
1280
1281 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1282
1283         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
1284         (expand_builtin_apply, expand_builtin_return): Likewise.
1285         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
1286
1287 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
1288
1289         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
1290         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
1291         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
1292         configure, configure.in, except.c, except.h, flow.c, function.c,
1293         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
1294         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
1295         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
1296         unroll.c: Fix spelling errors.
1297
1298         * doc/extend.texi, doc/invoke.texi: Fix spelling.
1299
1300         * doc/gcc.texi: Document use of "dependent" and American spelling.
1301
1302 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
1303
1304         * expr.c (emit_group_load): Support CONCATs by storing them to memory
1305         and reloading.
1306
1307 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1308
1309         * expr.c (store_constructor_field): Only call adjust_address on MEM.
1310
1311 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
1312
1313         * genrecog.c (write_switch):  Output if before switch for
1314         DT_elt_zero_wide_safe.
1315
1316 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1317
1318         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
1319         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
1320         (FUNCTION_PROFILER): Const-ify.
1321         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
1322         (eliminate_constant_term, assemble_name, output_addr_const):
1323         Remove declarations.
1324         (ptr_half_pic_address_p, half_pic_hash): Prototype.
1325         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
1326         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
1327         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
1328         (half_pic_declare, half_pic_external): Const-ify.
1329         * toplev.c: Include "halfpic.h".
1330
1331 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
1332
1333         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
1334         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
1335         config/i386/i386.c, config/i386/i386-interix.h,
1336         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
1337         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
1338         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
1339         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
1340         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
1341         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
1342         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
1343         spelling errors.
1344
1345         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
1346         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
1347         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
1348         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
1349         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
1350         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
1351         system.h, toplev.c: Fix spelling errors.
1352
1353 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1354
1355         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
1356
1357         * dwarf2out.c (reg_number): Abort if pseudo.
1358         (reg_loc_descriptor): Return 0 if pseudo.
1359         (is_based_loc): Return 0 if pseudo.
1360         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
1361         recursive calls.
1362         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
1363         (loc_descriptor): Return 0 if can't find location and handle 0
1364         return from recursive calls.
1365         (loc_descriptor_from_tree): Likewise.
1366         Fix handling of indirect.
1367         Also return 0 for PLACEHOLDER_EXPR.
1368         Clean up COMPONENT_REF cases.
1369         (add_AT_location_descriptor): Simplify, but handle 0 return from
1370         loc_descriptor.
1371         (add_const_value_attribute): Avoid shift count warning.
1372         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
1373         Set comp_unit_die as context if not in function.
1374
1375         * config/mips/mips-protos.h: Break up long lines.
1376         Remove needless #ifdef/#endif blocks.
1377         Don't declare functions declared in file made by genpreds or recog.h.
1378         * config/mips/mips.c (mips_output_function_prologue): TSIZE
1379         is now HOST_WIDE_INT; delete unneeded casts.
1380         * config/mips/mips.h: Don't use #elif.
1381
1382         * expr.c (stor_constructor_field): Always call adjust_address.
1383         Copy TARGET before changing its alias set.
1384         (store_field): Likewise, for TO_RTX.
1385         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
1386         replacement.
1387         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
1388         (find_placeholder): Return 0 if can't find object.
1389         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
1390         returns 0.
1391
1392 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
1393
1394         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
1395
1396 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
1397
1398         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
1399         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
1400         (merge_blocks): Properly udpate life after making edge nonfallthru.
1401         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
1402
1403 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1404
1405         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1406
1407 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1408
1409         * c-typeck.c (convert_arguments): When comparing for enumeral
1410         type equality, use TYPE_MAIN_VARIANT.
1411         * gcc.dg/Wconversion.c: New tests.
1412
1413 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1414
1415         * s390/s390.c: Fix comment typos.
1416         * s390/s390.h: Likewise.
1417         * s390/s390.md: Likewise.
1418
1419 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1420
1421         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
1422         (walk_tree): Use it for tail calls where appropriate.
1423
1424 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1425
1426         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
1427         non-local label_refs.
1428
1429 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1430
1431         * config/h8300/h8300.md (4 anonymous patterns): New.
1432
1433 2001-10-26  Kazu Hirata  <kazu@hxi.com>
1434
1435         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
1436         algorithm through the shift_info structure.
1437         (emit_a_shift): Update the use of get_shift_alg.
1438
1439 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
1440
1441         * sched-rgn.c: Remove bitset typedef.
1442         Change bitset to sbitmap in prototypes / variable types.
1443         Remove bbset_size.
1444         Remove edgeset_bits.
1445         Remove edgeset_size.
1446         s/BITSET_ADD/SET_BIT/g
1447         s/BITSET_INVERT/sbitmap_ones/g
1448         s/BITSET_INTER/sbitmap_a_and_b/g
1449         s/BITSET_UNION/sbitmap_a_or_b/g
1450         s/BITSET_DIFFER/sbitmap_difference/g
1451         s/bitset_member/TEST_BIT/g
1452         (BITSET_*): Removed.
1453         (bitset_member): Removed.
1454         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
1455         EXECUTE_IF_SET_IN_SBITMAP.
1456         (split_edges): Rewrite, use sbitmap functions instead of bitset
1457         operations.
1458         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
1459
1460 2001-10-26  Andreas Schwab  <schwab@suse.de>
1461
1462         * reload1.c (emit_input_reload_insns): Fix parens in last
1463         (undocumented) change that was supposed to change only whitespace.
1464
1465 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1466
1467         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
1468
1469         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
1470         ASM_OPERANDS.
1471
1472 2001-10-26  Andreas Jaeger  <aj@suse.de>
1473
1474         * flow.c (clear_log_links): Remove unused variable.
1475         * cfgcleanup.c (cleanup_cfg): Likewise.
1476
1477 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
1478
1479         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
1480         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
1481
1482 2001-10-26  Richard Henderson  <rth@redhat.com>
1483
1484         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
1485         rename PV_REG to R27_REG.
1486         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
1487         (REG_CLASS_FROM_LETTER): Update.
1488         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
1489         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
1490         (udivsi3, modsi3, umodsi3): Likewise.
1491         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
1492
1493 2001-10-26  Richard Henderson  <rth@redhat.com>
1494
1495         * cfg.c (clear_aux_for_blocks): Split out of ...
1496         (free_aux_for_blocks): here.
1497         (clear_aux_for_edges): Split from ...
1498         (free_aux_for_edges): here.
1499         * basic-block.h: Declare them.
1500         * lcm.c (compute_antinout_edge): Use them.
1501         (compute_laterin, compute_available, compute_nearerout): Likewise.
1502         (optimize_mode_switching): Likewise.
1503
1504 2001-10-26  Richard Henderson  <rth@redhat.com>
1505
1506         * Makefile.in (unstage*): Remove as, ld, collect-ld before
1507         moving everything back to the main build directory.
1508
1509 2001-10-26  Christopher Faylor  <cgf@redhat.com>
1510
1511         * config/i386/cygwin.h: Search target specfic include directory, if
1512         appropriate.
1513
1514 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1515
1516         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
1517         of macro guards. Fix #endif comment.
1518
1519         * output.h (default_exception_section, default_eh_frame_section):
1520         Move prototypes outside of macro guard.
1521
1522         * crtstuff.c: Fix #endif comment.
1523
1524 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
1525
1526         * doc/md.texi (movMM): Clarify semantics of storing into a
1527         non-paradoxical SUBREG.
1528
1529 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
1530
1531         * langhooks.c (lang_hook_default_clear_binding_stack): New.
1532         (lang_hook_default_get_alias_set): Move next to other alias
1533         hooks.
1534         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
1535         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
1536         (LANG_HOOKS_INITIALIZER): Add it.
1537         * toplev.h (struct lang_hooks): Add clear_binding_stack.
1538         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
1539         instead of a loop calling poplevel.
1540
1541 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
1542
1543         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
1544         occurrences of #elif with #if...#endif.
1545
1546 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1547
1548         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
1549
1550 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1551
1552         * alias.c (can_address_p): No longer static.
1553         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
1554         Return 0 if all parameters are default values.
1555         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
1556         (adjust_address_1): Try harder to compute a size.
1557         * expr.c (expand_assignment, store_constructor): If can't address,
1558         set MEM_KEEP_ALIAS_SET_P.
1559         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
1560         (store_field): Likewise.
1561         (store_constructor): Simplify call to store_constructor_field.
1562         * expr.h (can_address_p): New declaration.
1563         * gensupport.c (gen_rtx_CONST_INT): New function.
1564         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
1565         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
1566         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
1567
1568         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
1569
1570 2001-10-24  Christopher Faylor  <cgf@redhat.com>
1571
1572         * config/i386/cygwin.h: Use proper path for mingw crt files when
1573         -mno-cygwin.
1574
1575 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1576
1577         * dwarf2out.c (file_info_cmp): Always return consistent results.
1578
1579 2001-10-24  Roger Sayle <roger@eyesopen.com>
1580
1581         * stmt.c (expand_end_case): Index jumptables from zero for
1582         suitably small values of minval.
1583
1584 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
1585
1586         * stor-layout.c (place_union_field): If any field was aligned with
1587         attribute aligned, set record type's TYPE_USER_ALIGN.
1588         (place_field): Likewise.
1589         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
1590         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
1591
1592 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
1593
1594         * c-common.h (struct c_common_identifier): Remove rid_code field.
1595         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
1596
1597         * c-typeck.c (constructor_designated): New local flag.
1598         (struct constructor_stack): Add "designated" field to match.
1599         (start_init): Clear it.
1600         (really_start_incremental_init, push_init_level): Push and
1601         clear it.
1602         (pop_init_level): Pop it.
1603         (set_designator): Set it.
1604
1605         (pop_init_level): Suppress "missing initializer" warnings if
1606         constructor_designated is true.
1607         (process_init_element): Suppress warning about union
1608         initialization under traditional C, if constructor_designated
1609         is true.
1610
1611 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1612
1613         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
1614         change.
1615
1616 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
1617
1618         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
1619
1620 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
1621
1622         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
1623         the node was already a set to a constant.
1624
1625 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1626
1627         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
1628         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
1629
1630 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1631
1632         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
1633         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
1634         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
1635         * s390.c (s390_final_chunkify): Don't use string concatenation.
1636         (s390_function_prologue, s390_function_epilogue): Const-ify.
1637         * s390.h (FUNCTION_PROFILER): Remove unused variable.
1638
1639 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
1640
1641         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
1642         prototypes.
1643
1644 2001-10-23  Stan Shebs  <shebs@apple.com>
1645
1646         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
1647         -traditional-cpp in first-stage compilation.
1648
1649 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1650
1651         * gensupport.c (target_flags): Add.
1652
1653 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
1654
1655         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
1656         if needed.
1657         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
1658         * except.c (expand_builtin_frob_return_addr): Likewise.
1659         (expand_builtin_eh_return): Likewise.
1660         * stmt.c (expand_computed_goto): Likewise.
1661         * explow.c (memory_address): Likewise.
1662         (allocate_dynamic_stack_space): Clean up predicate testing.
1663         (probe_stack_range): Convert SIZE to Pmode.
1664         * calls.c (rtx_for_function_call): Only call convert_memory_address
1665         if needed.
1666         Pass function call operand as ptr_mode, not Pmode.
1667         * expr.c (expand_assignment): Clean up calls to convert_memory
1668         address by only doing so when needed and making offsets Pmode.
1669         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
1670         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
1671         is in Pmode, not ptr_mode.
1672
1673 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1674
1675         * darwin-protos.h (constructor_section, destructor_section,
1676         mod_init_section, mod_term_section): Prototype.
1677         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
1678         Const-ify.
1679         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
1680         Likewise.
1681         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
1682         objc_section_init declaration.
1683         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
1684         (objc_section_init, try_section_alias): Make static.
1685         (alias_section): Make static and hide unused function.
1686         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
1687
1688 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1689
1690         * alias.c (can_address_p): Compnonents are not addressable if
1691         the containing type has alias set 0.
1692         (get_alias_set): Rework to use STRIP_NOPS.
1693         Only call front-end routine on object, type, or object with
1694         NOPs stripped, not inner values.
1695         Use language hook to call front-end routine.
1696         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
1697         (expand_builtin_apply): Call set_mem_align on MEMs we make.
1698         Don't pass alignment to emit_block_move.
1699         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
1700         (expand_builtin_memset): Likewise, but for clear_storage.
1701         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
1702         and remove C++ specific parts.
1703         * c-common.h (c_common_get_alias_set): Add declaration.
1704         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
1705         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
1706         (save_fixed_argument_area): Call set_mem_align.
1707         Remove alignment in call to emit_block_move.
1708         (emit_library_call_value_1, store_one_arg): Likewise.
1709         (target_for_arg): Remove; disabled long ago.
1710         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
1711         once and similar cleanups.
1712         (offset_address): Use proper introductory comment.
1713         * expr.c (emit_block_move): Use alignment from that of MEM args, not
1714         from explicit operand; all callers changed.
1715         (clear_storage): Likewise.
1716         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
1717         (store_field): Remove kludge on alias set used for to_rtx.
1718         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
1719         (expand_expr_unaligned): Call set_mem_attributes instead of
1720         set_mem_alias_set.
1721         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
1722         * function.c (assign_stack_temp_for_type): Set MEM alignment.
1723         (expand_function_end): Track MEM attributes of trampolines.
1724         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
1725         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
1726         attributes from original.
1727         * langhooks.c (lang_hook_default_get_alias_set): New function.
1728         (hook_get_alias_set_0): New function.
1729         * langhooks.h (hook_get_alias_set_0): New declaration.
1730         (lang_hook_default_get_alias_set): Likewise.
1731         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
1732         * reload1.c (alter_reg): Use adjust_address_nv.
1733         * rtl.c (get_mode_alignment): Moved to here.
1734         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
1735         change default if unknown from 1 to BITS_PER_UNIT.
1736         * stor-layout.c (get_mode_alignment): Remove from here.
1737         * toplev.h (struct lang_hoks): Add get_alias_set field.
1738         * tree.h (lang_get_alias_set): Delete declaration.
1739         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
1740         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
1741         (ix86_va_arg): Likewise.
1742         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
1743         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1744         * config/sparc/sparc.c (sparc_va_arg): Likewise.
1745         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
1746         (expand_block_move_mem): Remove dead code.
1747
1748 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1749
1750         * c-common.c (warn_div_by_zero): New.
1751         * c-common.h (warn_div_by_zero): New.
1752         * c-decl.c (c_decode_option): Take it on the command line.
1753         * c-typeck.c (build_binary_op): Warn about division by zero.
1754         * doc/invoke.texi: Document the new command line option, fix
1755         documentation of -Wmultichar.
1756         * testsuite/gcc.dg/divbyzero.c: New tests.
1757         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
1758
1759 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
1760
1761         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
1762
1763         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
1764         to avoid update_life_info call.
1765         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
1766         * cfgcleanup.c (bb_flags): New enum.
1767         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
1768         (notice_new_block, update_forwarder_flag): New functions.
1769         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
1770         (try_forward_edges): Likewise; update flags.
1771         (merge_blocks): Likewise.
1772         (outgoing_edges_match): Likewise.
1773         (try_crossjump_to_edge): Likewise.
1774         (try_optimize_cfg): Likewise; initialize and clear the flags;
1775         recompute life info if needed.
1776         (cleanup_cfg): No need to clear aux pointers.
1777
1778 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
1779
1780         * config/i386/i386.c (override_options): Default to minimum
1781         stack alignment when optimizing for code size.
1782         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
1783         change.
1784
1785         * config/i386/i386.c (override_options): Set upper limit of
1786         -mpreferred-stack-boundary to 12.
1787
1788 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
1789
1790         * recog.c (peephole2_optimize): Add default case to switch.
1791
1792 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1793
1794         * doc/gcc.texi (Sending Patches): Remove.
1795
1796 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
1797
1798         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
1799         fields when comparing.
1800
1801 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1802
1803         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
1804         * arm.c (HOST_INT, HOST_UINT): Likewise.
1805
1806 2001-10-22  Stan Shebs  <shebs@apple.com>
1807
1808         * config/darwin-protos.h (darwin_exception_section): Declare.
1809         (darwin_eh_frame_section): Declare.
1810
1811 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
1812
1813         * i386.md (movti_rex64): Fix mode.
1814
1815 2001-10-22  Stan Shebs  <shebs@apple.com>
1816
1817         * target.h (struct gcc_target): Add asm_out.exception_section,
1818         asm_out.eh_frame_section.
1819         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
1820         (TARGET_ASM_EH_FRAME_SECTION): New.
1821         (TARGET_INITIALIZER): Update.
1822         * output.h (default_exception_section): Declare.
1823         (default_eh_frame_section): Declare.
1824         * dwarf2out.c: Include target.h.
1825         (output_call_frame_info): Call target hook for eh frames.
1826         (default_eh_frame_section): New function.
1827         * except.c: Include target.h.
1828         (output_function_exception_table): Call target hook for exception
1829         section.
1830         * varasm.c (default_exception_section): Rename from
1831         exception_section, remove EXCEPTION_SECTION macro.
1832
1833         * config/darwin.h (darwin_eh_frame_section): New function.
1834         (EXCEPTION_SECTION): Remove.
1835         (TARGET_ASM_EXCEPTION_SECTION): Define.
1836         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
1837         (nextstep_exception_section): New function.
1838         (nextstep_eh_frame_section): New function.
1839         (TARGET_ASM_EXCEPTION_SECTION): Define.
1840         (TARGET_ASM_EH_FRAME_SECTION): Define.
1841
1842         * config/pa/som.h (EXCEPTION_SECTION): Remove.
1843         (TARGET_ASM_EXCEPTION_SECTION): Define.
1844         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
1845         (EXCEPTION_SECTION): Remove.
1846         (TARGET_ASM_EXCEPTION_SECTION): Define.
1847         * config/stormy16/stormy16.h: Remove comments referencing
1848         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
1849
1850         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
1851         TARGET_ASM_EH_FRAME_SECTION.
1852
1853 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
1854
1855         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
1856         terms.
1857
1858         * c-format.c: Fix spelling typo in comment.
1859
1860         * sched-int.h: Fix typo in GCC preamble.
1861
1862 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1863
1864         PR debug/4252
1865         * doc/invoke.texi: Remove references to -fdump-translation-unit.
1866
1867 2001-10-22  Richard Henderson  <rth@redhat.com>
1868
1869         * config/i386/i386.c (ix86_expand_clear): New.
1870         * config/i386/i386-protos.h: Declare it.
1871         * config/i386/i386.md (setcc peep2s): Use it.
1872         (movsi_xor): Unexport.
1873
1874 2001-10-22  Richard Henderson  <rth@redhat.com>
1875
1876         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
1877         free_EXPR_LIST_list for LOG_LINKS.
1878
1879 2001-10-21  Robert Lipe  <robertlipe@usa.net>
1880
1881         * config/i386/i386.c (sco_asm_named_section): Delete.
1882         (sco_asm_out_constructor): Delete.
1883         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
1884         (ASM_OUTPUT_DOUBLE_INT): Likewise.
1885         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
1886         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
1887         (EXCEPTION_SECTION): Delete EH scn renaming hack.
1888
1889 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1890
1891         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
1892         and/or fold extra calls into fewer ones.
1893         * collect2.c (dump_file): Likewise.
1894         * cppexp.c (parse_number): Likewise.
1895         * cpplex.c (_cpp_lex_direct): Likewise.
1896         * final.c (output_asm_insn, asm_fprintf): Likewise.
1897         * fix-header.c (inf_scan_ident, main): Likewise.
1898         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
1899         Likewise.
1900         * fold-const.c (real_hex_to_f): Likewise.
1901         * gen-protos.c (parse_fn_proto): Likewise.
1902         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
1903         * genrecog.c (change_state, write_action): Likewise.
1904         * gensupport.c (shift_output_template): Likewise.
1905         * local-alloc.c (requires_inout): Likewise.
1906         * mips-tfile.c (IS_ASM_IDENT): Likewise.
1907         * protoize.c (is_id_char, main): Likewise.
1908         * real.c (asctoeg): Likewise.
1909         * recog.c (asm_operand_ok): Likewise.
1910         * reload.c (find_reloads): Likewise.
1911         * scan.c (scan_identget_token): Likewise.
1912         * sched-vis.c (print_value): Likewise.
1913         * stringpool.c (ggc_alloc_string): Likewise.
1914         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
1915         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
1916         * tradcpp.c (rescan): Likewise.
1917         * tree.c (clean_symbol_name): Likewise.
1918         * varasm.c (decode_reg_name): Likewise.
1919
1920         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
1921         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
1922         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
1923         * m88k.c (output_ascii): Likewise.
1924         * m88k.h (OVERRIDE_OPTIONS): Likewise.
1925         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
1926         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
1927         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
1928
1929 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1930
1931         * langhooks.c (lang_hook_default_do_nothing,
1932         lang_hook_default_decode_option): New defaults.
1933         * langhooks.h: Make hooks unconditional and non-NULL.
1934         * toplev.c (compile_file, toplev_main): Update.
1935         * toplev.h: Update comments.
1936         * objc/objc-act.c (lang_hooks): Update to new paradigm.
1937
1938 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1939
1940         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
1941
1942         * system.h (IN_RANGE): New macro.
1943
1944 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
1945
1946         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
1947         INTLDEPS variable, which does not include $LIBICONV.
1948         * Makefile.in: Use INTLDEPS in LIBDEPS.
1949         * configure: Regenerate.
1950
1951 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1952
1953         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
1954         * cpplex.c (lex_percent, lex_dot): Remove.
1955         (get_effective_char, skip_block_comment, skip_line_comment,
1956         parse_identifier_slow, parse_number, parse_string, save_comment,
1957         _cpp_lex_direct): Update to do lookback freely.
1958         (IF_NEXT_IS, BACKUP): New macros.
1959         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
1960         * cppmacro.c (paste_tokens): Update.
1961
1962 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1963
1964         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
1965
1966 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
1967
1968         * reload1.c (reload): Check CONSTANT_P before calling
1969         LEGITIMATE_PIC_OPERAND_P.
1970         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
1971         workaround of 2001-10-13.
1972
1973 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
1974
1975         * i386.c (split_di): Handle splitting of DFmode.
1976
1977 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1978
1979         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
1980         (adjust_address_1, offset_address): Likewise.
1981
1982         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
1983         (output_asm_insn): Call it for each line output.
1984         Don't record an operand more than once.
1985
1986         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
1987         * main.c: Include config.h and system.h, but not ansidecl.h.
1988         * Makefile.in (main.o): Update accordingly.
1989
1990 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
1991
1992         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
1993
1994 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
1995
1996         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
1997         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
1998         Break out from ...
1999         (find_sub_basic_blocks): ... here;
2000         (find_many_sub_basic_blocks): New.
2001         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
2002
2003         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
2004
2005         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
2006
2007         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
2008
2009         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
2010         * flow.c (update_life_info): Measure time.
2011         * c-decl.c: Include timevar.h
2012         (c_expand_body): Measure time.
2013         * toplev.c (rest_of_compilation): Measure time of mode switching
2014         separately.
2015         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
2016
2017         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
2018         (lang_independent_options): Add asynchronous-unwind-tables
2019         (toplev_main): flag_asynchronous_unwind_tables implies
2020         flag_unwind_tables.
2021         * flags.h (flag_asynchronous_unwind_tables): Declare.
2022         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
2023         flag_asynchronous_unwind_tables.
2024         (output_call_frame_info): Likewise.
2025         * invoke.texi (-fasynchronous-unwind-tables): Document.
2026         * i386.c (optimization_options): Enable
2027         flag_asynchronous_unwind_tables.
2028
2029         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
2030         * i386.md (s* expanders): Destination is QImode.
2031
2032         * toplev.c (rest_of_compilation): Do not call clear_log_links.
2033         * rtl.h (clear_log_links): Kill.
2034         * flow.c (clear_log_links): Make static; accept blocks parameter;
2035         do no clear life info.
2036         (update_life_info): Call clear_log_links.
2037
2038         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
2039
2040 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2041
2042         * cpplex.c (handle_newline, skip_escaped_newlines,
2043         get_effective_char, skip_block_comment, skip_line_comment,
2044         parse_identifier_slow, parse_number, parse_string,
2045         _cpp_lex_direct): Update to do more stepping back.
2046         (trigraph_ok): Similarly.  Rename trigraph_p.
2047         (SAVE_STATE, RESTORE_STATE): Remove.
2048         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
2049
2050         * cpplib.c (destringize): Rename destringize_and_run, and
2051         call run_directive directly.
2052         (_cpp_do__Pragma): Simplify.
2053
2054 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2055
2056         * pe.c (arm_pe_unique_section): Const-ify.
2057         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2058         (switch_to_section): Add static prototype.
2059
2060         * output.h (drectve_section): Prototype.
2061
2062 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2063
2064         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
2065         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
2066         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
2067         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
2068         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
2069         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
2070         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
2071         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
2072         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
2073         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
2074         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
2075         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
2076         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
2077         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
2078         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
2079         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
2080         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
2081         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
2082         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
2083         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
2084         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
2085         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
2086         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
2087         cris-*-none, cris-*-linux*: Update ${tmfile} list.
2088         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
2089         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
2090         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
2091         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
2092         v850-*-*): Delete superflous ${cpu_type} setting.
2093         * config/linux.h: Delete svr4.h include.
2094         (SET_ASM_OP): Delete.
2095         * config/netware.h (INT_ASM_OP): Undef before define.
2096         * config/ptx4.h: Delete elfos.h include.
2097         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
2098         * config/svr4.h: Delete elfos.h include. Update commentary.
2099         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
2100         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
2101         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
2102         config/v850/v850.h: Delete svr4.h include.
2103         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
2104         config/m68k/m68kv4.h, config/m88k/sysv4.h,
2105         config/sparc/sysv4.h: Update includes.
2106         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
2107         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
2108         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
2109         config/m88k/dguxbcs.h: Delete includes.
2110         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
2111         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
2112         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
2113         it.
2114         * config/m88k/dgux.h: Delete include.
2115         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
2116         defining it.
2117         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
2118         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
2119         * config/sh/elf.h: Update include.
2120         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
2121         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
2122
2123 2001-10-19  Catherine Moore  <clm@redhat.com>
2124
2125         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
2126         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
2127         base and count fields.
2128         (stormy16_expand_builtin_va_start):  last_reg_count changed to
2129         size_of_reg_args.  Use count + size in first comparison.
2130
2131 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2132
2133         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
2134         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
2135         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
2136         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
2137         Set alignment from type if INDIRECT_REF.
2138         (adjust_address_1, offset_address): Simplify alignment compuitation.
2139         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
2140         here; done by set_mem_attributes.
2141
2142 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2143
2144         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
2145         * arm-protos.h (rdata_section, zero_init_section, common_section):
2146         Prototype.
2147         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
2148         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
2149         traditional mode stringification.
2150         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
2151         in macros controling its use.
2152         * rtlanal.c: Include tm_p.h.
2153         * varasm.c (asm_output_aligned_bss): Mark parameter with
2154         ATTRIBUTE_UNUSED.
2155         (assemble_constant_align, assemble_start_function, assemble_align,
2156         assemble_variable, assemble_trampoline_template,
2157         output_constant_def_contents): Wrap potentially empty if-stmt body
2158         in brackets.
2159
2160 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2161
2162         * a29k-protos.h (literal_section): Prototype.
2163         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
2164         * a29k.md: Ensure function pointers are prototyped.
2165         * genattrtab.c (write_eligible_delay): Mark parameter with
2166         ATTRIBUTE_UNUSED.
2167
2168 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2169
2170         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
2171         * 1750a.c (print_operand): Fix format specifier warning.
2172         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
2173         * 1750a.md: Likewise.
2174         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
2175         * genemit.c (output_add_clobbers): Mark parameter with
2176         ATTRIBUTE_UNUSED.
2177         * genrecog.c (write_subroutine): Likewise.
2178         * integrate.c (expand_inline_function): Delete unused variable.
2179         * varasm.c (remove_from_pending_weak_list): Wrap with
2180         ASM_WEAKEN_LABEL.
2181
2182 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2183
2184         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
2185         field is different to previous argument's neg field.
2186
2187         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
2188
2189 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2190
2191         * final.c (get_decl_from_op): New function.
2192         (output_asm_insn): Call it; write "*" when item with decl is address.
2193
2194 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
2195
2196         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
2197         about 64-bit support from the 3.0_branch version.
2198
2199 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
2200
2201         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
2202         USE_INCLUDED_LIBINTL when appropriate.
2203         * configure, config.in: Regenerate.
2204         * Makefile.in (datadir): Set to @datadir@.
2205         (intl.o): Also depend on $(CONFIG_H) and system.h.
2206
2207         * intl.c: Factor out common gettext initialization sequence.
2208         (gcc_init_libintl):  New function.
2209         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
2210         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
2211         off NLS.  Add multiple include guard.  No need to #ifdef-guard
2212         an #undef.  Prototype gcc_init_libintl here.
2213
2214         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
2215         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
2216         Use gcc_init_libintl.
2217
2218 2001-10-19  Catherine Moore  <clm@redhat.com>
2219
2220         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
2221
2222         * config/stormy16/stormy16.c (stormy16_split_move):  Make
2223         sure that REG_INC notes are present for auto_inc operands.
2224
2225 2001-10-19  Andreas Jaeger  <aj@suse.de>
2226
2227         * configure: Regenerated.
2228         * configure.in: Add x86_64 to switch statements.
2229
2230 2001-10-18  Richard Henderson  <rth@redhat.com>
2231
2232         * config/alpha/alpha.md (sibcall_osf_1): Load destination
2233         address into $27 explicitly.
2234         (sibcall_value_osf_1): Likewise.
2235
2236 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2237
2238         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
2239         (offset_address): New function.
2240         (free_emit_status): Free regno_decl.
2241         (init_emit): Pass proper number of elements to xcalloc.
2242         Allocate regno_decl.
2243         (mark_emit_status): Mark regno_decl values.
2244         * expr.c (highest_pow2_factor): New function.
2245         (expand_assigment): Use it and offset_address.
2246         Properly handle ptr_mode vs. Pmode in offset calculation.
2247         (store_constructor, expand_expr_unaligned): Likewise.
2248         (expand_expr, case COMPONENT_EXPR): Likewise.
2249         * expr.h (offset_address): New decl.
2250         * function.h (struct emit_status): Add regno_decl.
2251         (REGNO_DECL): New macro.
2252         * final.c (output_asm_name): Move in file and don't conditionalize
2253         on flag_print_asm_name.
2254         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
2255         Output names of operands, if known.
2256         * function.c (assign_parms): Set REGNO_DECL.
2257         * integrate.c (integrate_decl_tree): Likewise.
2258         * stmt.c (expand_decl): Likewise.
2259         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
2260
2261 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
2262
2263         * attribs.c (handle_noinline_attribute): New function.
2264         (handle_used_attribute): Likewise.
2265         (c_common_attribute_table): Added noinline and used.
2266         * doc/extend.texi (Function Attributes): Document them.
2267         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
2268         Warn when merging inline with attribute noinline.
2269         (start_decl, start_function): Warn if inline and attribute
2270         noinline appear in the same declaration.
2271
2272 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2273
2274         * config.gcc: Update c4x and i370 for C front end-specific
2275         dependencies.
2276         * config/c4x/c4x-c.c: New.
2277         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
2278         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
2279         New declarations.
2280         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
2281         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
2282         Make extern.
2283         (c4x_init_pragma): Remove.
2284         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
2285         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
2286         c4x_pr_ignored): Move to c4x-c.c.
2287         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
2288         * config/c4x/t-c4x: Update.
2289         * config/i370/i370-c.c: New.
2290         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
2291         (i370_pr_map): Move to i370-c.c.
2292         * config/i370/t-i370: New.
2293
2294         * doc/tm.texi: Update.
2295
2296 2001-10-17  Stan Shebs  <shebs@apple.com>
2297
2298         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
2299         typo fixes throughout.
2300         (machopic_output_stub): Remove some dead code.
2301
2302 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
2303
2304         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
2305         leak.
2306
2307 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2308
2309         * Makefile.in (print-rtl.o): Depend on TREE_H.
2310         * alias.c (get_alias_set): Make two passes over objects to first
2311         see if inner object is access via restricted pointer.
2312         Defer allocating alias set for restricted pointer until here.
2313         Call find_placeholder with second arg nonzero.
2314         Minor cleanups.
2315         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
2316         set for restricted pointer types.
2317         * emit-rtl.c (set_mem_attributes): Set more attributes.
2318         (set_mem_align, change_address, adjust_address_1): New functions.
2319         (change_address_1): Now static.
2320         (adjust_address, adjust_address_nv): Deleted.
2321         (replace_equiv_address): Call change_address_1.
2322         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
2323         (find_placeholder): Get starting point from PLIST arg.
2324         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
2325         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
2326         (adjust_address, adjust_address_nv): New macros.
2327         * print-rtl.c (tree.h): New include.
2328         (print_rtx, case MEM): Print all memory attributes.
2329
2330 2001-10-17  Richard Henderson  <rth@redhat.com>
2331
2332         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
2333
2334 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2335
2336         * c-tree.texi: Eliminate duplicated word.
2337         * cpp.texi: Likewise.
2338         * install.texi: Likewise.
2339         * invoke.texi: Likewise.
2340         * tm.texi: Likewise.
2341
2342 2001-10-17  Michael Collison  <collison@isisinc.net>
2343
2344         * dsp16xx.c: Fix comment formatting to match GNU standards.
2345         (dsp16xx_output_function_prologue): Change type of 'size'
2346         parameter from 'int' to HOST_WIDE_INT.
2347         (dsp16xx_output_function_epilogue): Change type of 'size'
2348         parameter from 'int' to HOST_WIDE_INT.
2349
2350 2001-10-16  Richard Henderson  <rth@redhat.com>
2351
2352         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
2353         * configure, config.in: Rebuild.
2354
2355         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
2356         (ix86_output_addr_diff_elt): New.
2357         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
2358         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2359         (JUMP_TABLES_IN_TEXT_SECTION): New.
2360         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
2361         * config/i386/i386-protos.h: Update.
2362
2363         * config/i386/386bsd.h, config/i386/beos-elf.h,
2364         config/i386/freebsd-aout.h, config/i386/freebsd.h,
2365         config/i386/i386-interix.h, config/i386/i386elf.h,
2366         config/i386/linux.h, config/i386/netbsd-elf.h,
2367         config/i386/netbsd.h, config/i386/openbsd.h,
2368         config/i386/ptx4-i.h, config/i386/rtemself.h,
2369         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
2370         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
2371
2372 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
2373
2374         * stmt.c (expand_asm_operands): Update commentary.
2375
2376 2001-10-16  Stan Shebs  <shebs@apple.com>
2377
2378         * config/darwin.h (GCC_NAME): Remove, no longer used.
2379         (NO_MATH_LIBRARY): Ditto.
2380         (MATH_LIBRARY): Define to emptiness.
2381         (DWARF2_DEBUGGING_INFO): Define.
2382         (PREFERRED_DEBUGGING_TYPE): Define.
2383         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
2384         (EXCEPTION_SECTION): Define.
2385         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2386         * config/darwin.c (darwin_encode_section_info): Handle case of
2387         DECL_INITIAL being error_mark_node.
2388
2389 2001-10-16  Richard Henderson  <rth@redhat.com>
2390
2391         * alpha.c (current_file_function_operand): Don't fail for profiling.
2392         (direct_call_operand): New.
2393         * alpha-protos.h: Declare it.
2394         * alpha.h (EXTRA_CONSTRAINT): Use it.
2395         (PREDICATE_CODES): Add it.
2396         (ASM_OUTPUT_MI_THUNK): Remove.
2397         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
2398         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
2399
2400 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
2401
2402         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
2403         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2404
2405 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
2406
2407         * cfg.c (free_edge): Break out from ....
2408         (remove_edge): ... here.
2409         (clear_edges): Use free_edge.
2410
2411         * att.h (ASM_QUAD): Add comment.
2412         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
2413
2414 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
2415
2416         * i386.c (split_ti): New function.
2417         (ix86_split_to_parts): Support TImodes.
2418         * i386.h (VALID_INT_MODE_P): Add TImode.
2419         * i386.md (movdi splitter): Fix.
2420         (movti): Support 64bit integer registers.
2421         (movti_rex64): New function and splitter.
2422
2423         * i386.c (*_cost): Add movsx/movzx cost.
2424         * i386.h (struct processor_costs): Add movsx/movzx fields.
2425         (RTX_COSTS): Handle zero/sign extend + avoid believing that
2426         64bit operations require split on 64bit machine.
2427         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
2428
2429         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
2430         (ix86_expand_move): Avoid pushes of memory if size does not match;
2431         move long constants to register.
2432         (x86_initialize_trampoline): Fix mode.
2433         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
2434         Use ASM_QUAD on 64bit.
2435         * i386.md (test pattern): Disallow impossible constants.
2436         (tablejump PIC expander): Fix emitting of sum.
2437         (movdicc_rex64): Rename to movdicc.
2438         * linux64.h (LINK_SPEC): Add missing '%'.
2439
2440 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
2441
2442         * tree-inline.c (inlinable_function_p): Leave it up to the
2443         front-end to turn -finline-functions into DECL_INLINE set for all
2444         functions.
2445
2446 2001-10-16  Stan Shebs  <shebs@apple.com>
2447
2448         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
2449
2450 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
2451
2452         * recog.c: Formatting and comment typo fixes.
2453
2454         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
2455         version in single tree build.
2456         * configure: Regenerate.
2457
2458 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
2459
2460         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
2461         MODE arguments to gen_rtx and compare operand with const0_rtx.
2462
2463 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2464
2465         * system.h: Poison old unused target macros.
2466         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
2467         * config/stormy16/stormy16.c: Update references to obsolete macros.
2468         * config/stormy16/stormy16.h: Similarly.
2469         * config/stormy16/stormy16.md: Similarly.
2470         * config/cris/cris.h: Similarly.
2471
2472 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2473
2474         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
2475         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
2476         cpp_register_pragma): Update accordingly.
2477
2478 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2479
2480         * c-pragma.h (cpp_register_pragma_space): Remove.
2481         * cpplib.h (cpp_register_pragma_space): Remove.
2482         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
2483         (cpp_register_pragma_space): Remove.
2484         (cpp_register_pragma): Simplify using lookup_pragma_entry,
2485         add sanity checks.
2486         (do_pragma): Similarly.
2487         (_cpp_init_internal_pragmas): Don't register namespaces.
2488
2489         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
2490         Don't register namespaces.
2491         * cp/lex.c (init_cp_pragma): Similarly.
2492         * doc/tm.texi: Update.
2493
2494 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2495
2496         PR c/4157
2497         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
2498
2499 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
2500
2501         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
2502         add scheduling support.
2503         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
2504         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
2505         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
2506
2507
2508 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
2509
2510         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
2511         missing CONSTANT_P test in core GCC.
2512
2513 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
2514
2515         * cppmain.c (struct printer): New member source.
2516         (scan_translation_unit): Fix spacing at start of lines.
2517         (cb_line_change): Update.
2518
2519         * gcc.dg/cpp/spacing2.c: New test.
2520
2521 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
2522
2523         * config/cris/arit.c: Use __builtin_labs, not abs.
2524
2525         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
2526
2527         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
2528         misplaced sprintf and fprintf argument.
2529
2530 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
2531
2532         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
2533         * configure.in, Makefile.in: Take out obsolete check-po logic.
2534         * configure, config.in: Regenerate.
2535
2536 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
2537
2538         * objc/objc-act.c (finish_objc): Correct precondition for emitting
2539         symtab declarations.
2540
2541 2001-10-12  Stan Shebs  <shebs@apple.com>
2542
2543         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
2544         declarations of arguments and local variables.
2545
2546 2001-10-12  Christopher Faylor  <cgf@redhat.com>
2547
2548         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
2549         ENDFILE_SPEC definition.
2550
2551 2001-10-12  Kazu Hirata  <kazu@hxi.com>
2552
2553         * gthr-dce.h: Fix comment formatting.
2554         * gthr-posix.h: Likewise.
2555         * gthr-single.h: Likewise.
2556         * gthr-solaris.h: Likewise.
2557         * gthr-vxworks.h: Likewise.
2558         * gthr-win32.h: Likewise.
2559
2560 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
2561
2562         * final.c (output_asm_insn): Make sure assembly dialects are
2563         terminated, not nested.  Output `|' and `}' characters if they
2564         don't appear inside assembly dialect selection.
2565         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
2566         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
2567         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
2568         strsetsi_rex_1): Add {} braces.
2569
2570 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
2571
2572         * toplev.c (compile_file): Ignore return value from yyparse.
2573         Always pop any nested binding levels after yyparse returns.
2574
2575 2001-10-11  Richard Henderson  <rth@redhat.com>
2576
2577         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
2578
2579 2001-10-11  Richard Henderson  <rth@redhat.com>
2580
2581         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
2582         fall back to add_AT_long_long for large CONST_INT.
2583
2584 2001-10-11  Richard Henderson  <rth@redhat.com>
2585
2586         * config/i386/i386.md (setcc splitters): Add four splitters to
2587         simplify compound compares that simplify_comparison can't handle.
2588
2589 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
2590
2591         * cpplex.c (digraph_spellings, token_spellings): Make static.
2592
2593 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2594
2595         * unroll.c (loop_iterations): Fixup last patch.
2596
2597 2001-10-11  Richard Henderson  <rth@redhat.com>
2598
2599         * rtl.h (REG_VTABLE_REF): New.
2600         * rtl.c (reg_note_name): Add it.
2601         * combine.c (distribute_notes): Handle it.
2602         * final.c (final_scan_insn): Handle it.
2603         * tree.def (VTABLE_REF): New.
2604         * expr.c (expand_expr): Handle it.
2605         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
2606         * output.h: Declare them.
2607
2608 2001-10-11  Richard Henderson  <rth@redhat.com>
2609
2610         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
2611         for a DECL_INITIAL.
2612
2613 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
2614
2615         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
2616         available in 64-bit mode.
2617
2618 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
2619
2620         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
2621         cris-*-linux* cases.
2622         * config/cris/cris-protos.h: New file.
2623         * config/cris/cris.c: New file.
2624         * config/cris/cris.h: New file.
2625         * config/cris/cris.md: New file.
2626         * config/cris/linux.h: New file.
2627         * config/cris/aout.h: New file.
2628         * config/cris/arit.c: New file.
2629         * config/cris/cris_abi_symbol.c: New file.
2630         * config/cris/mulsi3.asm: New file.
2631         * config/cris/t-aout: New file.
2632         * config/cris/t-cris: New file.
2633         * config/cris/t-elfmulti: New file.
2634         * config/cris/t-linux: New file.
2635         * doc/invoke.texi: Add CRIS options.
2636         * doc/install.texi (Specific): Add blurb for CRIS.
2637
2638 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
2639
2640         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
2641         before using it.
2642         * config/float/i32.h: Likewise.
2643         * config/float-i386.h: Likewise.
2644         * config/float-i64.h: Likewise.
2645         * config/float-m68k.h: Likewise.
2646         * config/float-sh.h: Likewise.
2647         * config/float-sparc.h: Likewise.
2648
2649 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
2650
2651         * doc/contrib.texi: Add note about CRIS port to my entry.
2652
2653 2001-10-11  Kazu Hirata  <kazu@hxi.com>
2654
2655         * basic-block.h: Fix formatting.
2656         * bitmap.h: Likewise.
2657         * cpplib.h: Likewise.
2658         * c-tree.h: Likewise.
2659         * diagnostic.h: Likewise.
2660         * flags.h: Likewise.
2661         * ggc.h: Likewise.
2662         * longlong.h: Likewise.
2663         * real.h: Likewise.
2664         * reload.h: Likewise.
2665         * rtl.h: Likewise.
2666         * tree.h: Likewise.
2667
2668 2001-10-10  Richard Henderson  <rth@redhat.com>
2669
2670         * c-parse.in (asm_operand): Allow named operands.
2671         * genconfig.c (max_recog_operands): Set to 29.
2672         * local-alloc.c (requires_inout): Skip multiple digits.
2673         * recog.c (asm_operand_ok): Likewise.
2674         (preprocess_constraints): Use strtoul for matching constraints.
2675         (constrain_operands): Likewise.
2676         * regmove.c (find_matches): Likewise.
2677         * reload.c (find_reloads): Likewise.
2678         * stmt.c (parse_output_constraint): Don't reject in-out
2679         constraint on operands > 9.  Reject '[' in constraint.
2680         (expand_asm_operands): Handle named operands.  Use strtoul
2681         for matching constraints.
2682         (check_operand_nalternatives): Split out from expand_asm_operands.
2683         (check_unique_operand_names): New.
2684         (resolve_operand_names, resolve_operand_name_1): New.
2685
2686         * doc/extend.texi (Extended Asm): Document named operands.
2687         * doc/md.texi (Simple Constraints): Document matching constraints
2688         on operands > 9.
2689
2690 2001-10-10  Richard Henderson  <rth@redhat.com>
2691
2692         * combine.c (try_combine): Handle a SEQUENCE of one insn.
2693
2694         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
2695         (jcc splitters): Add two splitters to simplify compound compares
2696         that simplify_comparison can't handle.
2697
2698 2001-10-10  Richard Henderson  <rth@redhat.com>
2699
2700         * langhooks.c: Include langhooks.h.
2701         * Makefile.in (langhooks.o): Depend on it.
2702
2703 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
2704
2705         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
2706         should not be considered as a no-op.
2707         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
2708
2709 2001-10-10  Stan Shebs  <shebs@apple.com>
2710
2711         * alias.c: Remove uses of "register" specifier in declarations
2712         of arguments and local variables.
2713         * c-common.c: Ditto.
2714         * c-convert.c: Ditto.
2715         * c-decl.c: Ditto.
2716         * c-format.c: Ditto.
2717         * c-semantics.c: Ditto.
2718         * c-typeck.c: Ditto.
2719         * caller-save.c: Ditto.
2720         * calls.c: Ditto.
2721         * cfg.c: Ditto.
2722         * cfgbuild.c: Ditto.
2723         * cfgrtl.c: Ditto.
2724         * collect2.c: Ditto.
2725         * combine.c: Ditto.
2726         * convert.c: Ditto.
2727         * cppexp.c: Ditto.
2728         * cppfiles.c: Ditto.
2729         * cse.c: Ditto.
2730         * dbxout.c: Ditto.
2731         * defaults.h: Ditto.
2732         * df.c: Ditto.
2733         * dwarf2out.c: Ditto.
2734         * dwarfout.c: Ditto.
2735         * emit-rtl.c: Ditto.
2736         * explow.c: Ditto.
2737         * expmed.c: Ditto.
2738         * expr.c: Ditto.
2739         * final.c: Ditto.
2740         * fix-header.c: Ditto.
2741         * floatlib.c: Ditto.
2742         * flow.c: Ditto.
2743         * fold-const.c: Ditto.
2744         * function.c: Ditto.
2745         * gcc.c: Ditto.
2746         * gcse.c: Ditto.
2747         * gen-protos.c: Ditto.
2748         * genattrtab.c: Ditto.
2749         * gencheck.c: Ditto.
2750         * genconfig.c: Ditto.
2751         * genemit.c: Ditto.
2752         * genextract.c: Ditto.
2753         * genflags.c: Ditto.
2754         * gengenrtl.c: Ditto.
2755         * genoutput.c: Ditto.
2756         * genpeep.c: Ditto.
2757         * genrecog.c: Ditto.
2758         * gensupport.c: Ditto.
2759         * global.c: Ditto.
2760         * gmon.c: Ditto.
2761         * graph.c: Ditto.
2762         * haifa-sched.c: Ditto.
2763         * hard-reg-set.h: Ditto.
2764         * hash.c: Ditto.
2765         * integrate.c: Ditto.
2766         * jump.c: Ditto.
2767         * lists.c: Ditto.
2768         * local-alloc.c: Ditto.
2769         * loop.c: Ditto.
2770         * mips-tdump.c: Ditto.
2771         * mips-tfile.c: Ditto.
2772         * optabs.c: Ditto.
2773         * prefix.c: Ditto.
2774         * print-rtl.c: Ditto.
2775         * read-rtl.c: Ditto.
2776         * real.c: Ditto.
2777         * recog.c: Ditto.
2778         * reg-stack.c: Ditto.
2779         * regclass.c: Ditto.
2780         * regmove.c: Ditto.
2781         * reload.c: Ditto.
2782         * reload1.c: Ditto.
2783         * reorg.c: Ditto.
2784         * resource.c: Ditto.
2785         * rtl.c: Ditto.
2786         * rtlanal.c: Ditto.
2787         * scan.c: Ditto.
2788         * sched-deps.c: Ditto.
2789         * sched-rgn.c: Ditto.
2790         * sdbout.c: Ditto.
2791         * simplify-rtx.c: Ditto.
2792         * stmt.c: Ditto.
2793         * stor-layout.c: Ditto.
2794         * toplev.c: Ditto.
2795         * tradcif.y: Ditto.
2796         * tradcpp.c: Ditto.
2797         * tree.c: Ditto.
2798         * unroll.c: Ditto.
2799         * varasm.c: Ditto.
2800         * xcoffout.c: Ditto.
2801
2802 2001-10-10  Richard Henderson  <rth@redhat.com>
2803
2804         * rtl.h (can_reverse_comparison_p): Remove.
2805
2806 2001-10-10  Christopher Faylor <cgf@redhat.com>
2807
2808         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
2809         used.
2810
2811 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2812
2813         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
2814         (Thanks to Chris Faylor for suggesting macro name).
2815         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
2816         WIN32 defines.
2817         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
2818         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
2819         (MATH_LIBRARY): Undef before definition.
2820         (OUTPUT_QUOTED_STRING): Likewise.
2821         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
2822
2823 2001-10-10  Richard Henderson  <rth@redhat.com>
2824
2825         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
2826         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
2827         a tristate comparison value.
2828         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
2829
2830 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2831
2832         PR c++/4512
2833         * unroll.c (loop_iterations): Ignore insns generated by loop
2834         unrolling.
2835
2836         * config.gcc (mips*-*-gnu*): Delete support.
2837         * config/mips/gnu.h: Remove.
2838
2839 2001-10-10  Kazu Hirata  <kazu@hxi.com>
2840
2841         * calls.c: Fix formatting.
2842         * c-decl.c: Likewise.
2843         * cfgcleanup.c: Likewise.
2844         * combine.c: Likewise.
2845         * cppfiles.c: Likewise.
2846         * cpplib.c: Likewise.
2847         * cppmacro.c: Likewise.
2848         * crtstuff.c: Likewise.
2849         * cse.c: Likewise.
2850         * dwarf2out.c: Likewise.
2851         * expmed.c: Likewise.
2852         * expr.c: Likewise.
2853         * fold-const.c: Likewise.
2854         * function.c: Likewise.
2855         * gcse.c: Likewise.
2856         * genattrtab.c: Likewise.
2857         * ggc-page.c: Likewise.
2858         * integrate.c: Likewise.
2859         * libgcc2.c: Likewise.
2860         * loop.c: Likewise.
2861         * optabs.c: Likewise.
2862         * profile.c: Likewise.
2863         * protoize.c: Likewise.
2864         * real.c: Likewise.
2865         * recog.c: Likewise.
2866         * reload1.c: Likewise.
2867         * reload.c: Likewise.
2868         * reorg.c: Likewise.
2869         * resource.c: Likewise.
2870         * sched-rgn.c: Likewise.
2871         * sdbout.c: Likewise.
2872         * stmt.c: Likewise.
2873         * toplev.c: Likewise.
2874         * varasm.c: Likewise.
2875
2876 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
2877
2878         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
2879         * Makefile.in (langhooks.o): Add dependencies.
2880
2881 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
2882
2883         * rs6000.c (rs6000_emit_load_toc_table): Don't
2884         strdup the toc label.
2885         (create_TOC_reference): Likewise.
2886
2887 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2888
2889         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
2890         version default.
2891
2892 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2893
2894         * config/i386/i386.c (ix86_attribute_table): Correct
2895         min_len, max_len fields for dllimport, dllexport and shared.
2896
2897 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
2898
2899         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
2900         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
2901         Consistently use "nonzero" instead of "non-zero".
2902
2903 2001-10-09  Kazu Hirata  <kazu@hxi.com>
2904
2905         * acconfig.h: Fix comment formatting.
2906         * c-dump.h: Likewise.
2907         * c-tree.h: Likewise.
2908         * conditions.h: Likewise.
2909         * expr.h: Likewise.
2910         * function.h: Likewise.
2911         * gthr.h: Likewise.
2912         * hwint.h: Likewise.
2913         * integrate.h: Likewise.
2914         * intl.h: Likewise.
2915         * loop.h: Likewise.
2916         * optabs.h: Likewise.
2917
2918 2001-10-09  Kazu Hirata  <kazu@hxi.com>
2919
2920         * c-common.h: Fix comment formatting.
2921         * c-dump.c: Likewise.
2922         * cfg.c: Likewise.
2923         * diagnostic.h: Likewise.
2924         * except.c: Likewise.
2925         * gcc.h: Likewise.
2926         * gcov-io.h: Likewise.
2927         * genattrtab.c: Likewise.
2928         * output.h: Likewise.
2929         * predict.h: Likewise.
2930         * reload1.c: Likewise.
2931         * reload.h: Likewise.
2932         * resource.h: Likewise.
2933         * scan.h: Likewise.
2934         * system.h: Likewise.
2935         * tree.h: Likewise.
2936         * tree-inline.c: Likewise.
2937         * tsystem.h: Likewise.
2938         * varasm.c: Likewise.
2939         * xcoffout.h: Likewise.
2940
2941 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
2942
2943         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
2944
2945 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
2946
2947         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
2948         config/i386/i386elf.h, config/i386/netbsd-elf.h,
2949         config/i386/netware.h, config/mcore/gfloat.h,
2950         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
2951         config/netware.h, gccbug.in: Update FSF address.
2952
2953 2001-10-09  Kazu Hirata  <kazu@hxi.com>
2954
2955         * c-common.c: Fix comment typos.
2956         * cfgrtl.c: Likewise.
2957         * collect2.c: Likewise.
2958         * cpplex.c: Likewise.
2959         * doloop.c: Likewise.
2960         * dwarf2out.c: Likewise.
2961         * dwarfout.c: Likewise.
2962         * expr.c: Likewise.
2963         * fold-const.c: Likewise.
2964         * gcc.c: Likewise.
2965         * gcov.c: Likewise.
2966         * gcse.c: Likewise.
2967         * global.c: Likewise.
2968         * ifcvt.c: Likewise.
2969         * loop.c: Likewise.
2970         * optabs.c: Likewise.
2971         * protoize.c: Likewise.
2972         * regclass.c: Likewise.
2973         * reorg.c: Likewise.
2974         * rtl.h: Likewise.
2975         * stmt.c: Likewise.
2976         * tree.h: Likewise.
2977         * doc/cpp.texi: Likewise.
2978         * doc/c-tree.texi: Likewise.
2979         * doc/extend.texi: Likewise.
2980         * doc/invoke.texi: Likewise.
2981         * doc/objc.texi: Likewise.
2982         * doc/tm.texi: Likewise.
2983
2984 2001-10-08  Richard Henderson  <rth@redhat.com>
2985
2986         * varasm.c (set_named_section_flags): Initialize "declared".
2987
2988 2001-10-08  Robert Lipe  <robertlipe@usa.net>
2989
2990         * varasm.c (struct in_named_entry): Add declared.
2991         (named_section_first_declaration): New function.
2992         (default_elf_asm_named_section): Use it.
2993         * output.h (named_section_first_declaration): New.
2994
2995 2001-10-08  Richard Henderson  <rth@redhat.com>
2996
2997         * i386.md (movsi_xor): Export.
2998         (setcc peep2): Use it when available; add an alternative to
2999         match zero_extendhisi2_and.
3000
3001 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3002
3003         * romp-protos.h (romp_initialize_trampoline): New function.
3004         * romp.c (romp_initialize_trampoline): Likewise.
3005         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
3006         romp_initialize_trampoline.
3007
3008 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3009
3010         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
3011         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3012         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3013         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3014
3015 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3016
3017         * unroll.c (loop_iterations): Extend check for multiple back edges.
3018
3019 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
3020
3021         * langhooks.h: New file.
3022         * Makefile.in (OBJS): Added langhooks.o.
3023         (c-lang.o): Depend on langhooks.h.
3024         (c-common.o): Don't depend on tree-inline.h.
3025         (tree-inline.o): Depend on toplev.h.
3026         (langhooks.o): New rule.
3027         * c-common.c: Don't include tree-inline.h.
3028         (c_mark_lang_decl): Mark argument c as unused.
3029         (c_common_lang_init): Don't initialize hooks here.
3030         * c-lang.c: Include langhooks.h, then override some macros.
3031         (lang_hooks): Initialize with macros in langhooks.h.
3032         (c_init): Don't initialize hooks here.
3033         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
3034         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
3035         * tree-inline.c: Include toplev.h.  Don't define hook variables.
3036         * tree-inline.h: Don't define hook types nor declare hook
3037         variables.  Move macros to...
3038         * langhooks.c: ... new file, as functions.  Adjust all callers.
3039
3040 2001-10-08  Jeffrey A Law  <law@cygnus.com>
3041
3042         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
3043         purge_mem_unchanging_flag on all instructions, not just on those
3044         before NOTE_INSN_FUNCTION_BEG.
3045
3046 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3047
3048         * cppmacro.c (_cpp_create_definition): Leave comments off.
3049
3050         * doc/cpp.texi: Update.
3051
3052 2001-10-08  DJ Delorie  <dj@redhat.com>
3053
3054         * c-decl.c (grokfield): Make sure the only unnamed fields
3055         we're allowing are either structs or unions.
3056         * doc/extend.texi: Add documentation for the unnamed field
3057         extension.
3058
3059 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
3060
3061         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
3062         * configure.in: Use it.
3063         * configure: Regenerated.
3064         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
3065         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
3066
3067 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3068
3069         * cppfiles.c (open_file): Don't mark zero-length files
3070         never-reread here.  Don't output diagnostics here either.
3071         (stack_include_file): Mark them never-reread here.
3072         (_cpp_read_file): Update.
3073
3074 2001-10-08  Richard Henderson  <rth@redhat.com>
3075
3076         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
3077
3078 2001-10-08  Richard Henderson  <rth@redhat.com>
3079
3080         * expr.c (store_expr): When converting a CONST_INT for storage
3081         in a SUBREG, convert it to both SUBREG modes before stripping
3082         the SUBREG.
3083
3084 2001-10-08  Richard Henderson  <rth@redhat.com>
3085
3086         * varasm.c (restore_varasm_status): New.
3087         * function.h: Declare it.
3088         * function.c (pop_function_context_from): Call it.
3089
3090 2001-10-08  Richard Henderson  <rth@redhat.com>
3091
3092         * c-common.h (struct c_lang_decl): Add declared_inline.
3093         * c-tree.h (DECL_DECLARED_INLINE_P): New.
3094         * c-lang.c (c_disregard_inline_limits): Use it.
3095         * c-decl.c (duplicate_decls): Likewise.
3096         (pushdecl, redeclaration_error_message): Likewise.
3097         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
3098         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
3099         Set DECL_INLINE if -finline-functions.
3100         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
3101
3102 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3103
3104         * cppmacro.c (funlike_invocation_p): Move some logic to caller
3105         in enter_macro_context.  Create a padding token in its own context
3106         if necessary when the search for '(' fails.
3107         (enter_macro_context): Update.
3108
3109 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3110
3111         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
3112         genmultilib, toplev.c: Fix spelling errors of "separate" as
3113         "seperate", and corresponding spelling errors of related words.
3114
3115 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3116
3117         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
3118         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
3119         Likewise.
3120         * c-dump.c (dump_option_value_info): Likewise.
3121         * c-format.c (format_length_info, format_char_info,
3122         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
3123         * collect2.c (names): Likewise.
3124         * cppdefault.h (default_include): Likewise.
3125         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
3126         * flow.c (life_analysis): Likewise.
3127         * gcc.c (dir_separator_str, modify_target, option_map,
3128         target_option_translations, spec_list_1, extra_specs_1,
3129         init_spec): Likewise.
3130         * gcov.c (gcov_version_string): Likewise.
3131         * genattr.c (write_units): Likewise.
3132         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
3133         * gengenrtl.c (rtx_definition, defs): Likewise.
3134         * genrecog.c (pred_table): Likewise.
3135         * global.c (global_alloc): Likewise.
3136         * lcm.c (optimize_mode_switching): Likewise.
3137         * local-alloc.c (find_free_reg): Likewise.
3138         * params.h (param_info): Likewise.
3139         * predict.c (predictor_info): Likewise.
3140         * protoize.c (unexpansion_struct): Likewise.
3141         * real.c (bmask): Likewise.
3142         * recog.h (insn_operand_data, insn_data): Likewise.
3143         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
3144         * stmt.c (expand_nl_goto_receiver): Likewise.
3145         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
3146         target_switches, target_options): Likewise.
3147         * tradcif.y (token, tokentab2, yylex): Likewise.
3148         * tree.h (attribute_spec): Likewise.
3149
3150         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
3151         Likewise.
3152         * arc.c (arc_output_function_epilogue): Likewise.
3153         * arm.c (processors, all_cores, all_architectures,
3154         arm_override_options, isr_attribute_arg, isr_attribute_args,
3155         arm_isr_value): Likewise.
3156         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
3157         Likewise.
3158         * c4x.c (c4x_int_reglist): Likewise.
3159         * d30v.c (override_options): Likewise.
3160         * h8300.c (shift_insn): Likewise.
3161         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
3162         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
3163         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
3164         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
3165         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
3166         * i386.h (processor_costs, ix86_cost): Likewise.
3167         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
3168         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
3169         * m68k.c (codes_68881, codes_FPA): Likewise.
3170         * m88k.c (mode_from_align, max_from_align, all_from_align,
3171         best_from_align, m_options): Likewise.
3172         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
3173         * mcore.c (mode_from_align): Likewise.
3174         * mips/elf64.h (UNIQUE_SECTION): Likewise.
3175         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
3176         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
3177         * mips.h (mips_regno_to_class): Likewise.
3178         * ns32k.c (scales): Likewise.
3179         * pa.c (import_string, magic_milli): Likewise.
3180         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
3181         * sparc.c (leaf_reg_remap, sparc_override_options,
3182         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
3183         Likewise.
3184         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
3185
3186 2001-10-07  Dale Johannesen  <dalej@apple.com>
3187
3188         * reload1.c (reload_reg_free_p): Teach register interference
3189         checking that multiple output reloads are emitted in
3190         reverse order.
3191         reload1.c (reload_reg_reaches_end_p):  Ditto.
3192         reload1.c (reloads_conflict):  Ditto.
3193
3194 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3195
3196         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
3197         NULL_TREE inside @code.
3198
3199 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3200
3201         * doc/gcc.texi: Document consistent style of "32-bit",
3202         "Objective-C", and "@code{NULL}".
3203
3204 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
3205
3206         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
3207         (cpp_token_len, cpp_spell_token, cpp_output_token,
3208         _cpp_equiv_tokens): Handle it.
3209         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
3210         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
3211         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
3212         error messages.
3213
3214 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3215
3216         * gcc.c (default_compilers): Remove .ada.
3217
3218 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3219
3220         * doc/cppinternals.texi: Update.
3221
3222 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
3223
3224         * gcc.c (main): Set this_file_error if the appropriate
3225         compiler for a language has not been installed.
3226
3227 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
3228
3229         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
3230
3231 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
3232
3233         * gccbug.in (CATEGORIES): Add ada.
3234
3235 2001-10-05  Catherine Moore  <clm@redhat.com>
3236
3237         * config/stormy16/stormy-abi:  Document abi changes.
3238         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
3239         (ICALL_REGS): New register class.
3240         (NUM_ARGUMENT_REGISTERS): Now 6.
3241         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
3242         in registers.
3243         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
3244         * config/stormy16.md (call_internal, call_value_internal,
3245         indirect_jump): Use new 'z' constraint.
3246
3247 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3248
3249         * doc/cppinternals.texi: Update.
3250
3251 2001-10-05  Richard Henderson  <rth@redhat.com>
3252
3253         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
3254         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
3255         the gas section-name-as-label feature.
3256
3257 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3258
3259         * doc/cppinternals.texi: Update.
3260
3261 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3262
3263         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
3264         to ensure valid SImode constants.
3265
3266 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
3267
3268         * Makefile.in (c-decl.o): Depend on tree-inline.h.
3269         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
3270         * c-decl.c: Include tree-inline.h.
3271         (c_expand_body): Call optimize_inline_calls. Determine whether
3272         a function is inlinable upfront, and only clear
3273         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
3274         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
3275         (c_disregard_inline_limits): New function.
3276         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
3277         (c_post_options): Enable tree inlining if inlining is enabled.
3278         Don't inline trees when instrumenting functions.
3279         (c_init): Initialize lang_disregard_inline_limits and
3280         lang_cannot_inline_tree_fn.
3281         * tree-inline.c (initialize_inlined_parameters): Handle calls
3282         with fewer arguments than declared parameters, and fewer
3283         parameters than passed arguments.  Don't assume value is a
3284         DECL.
3285         (declare_return_variable): Convert return value back to the
3286         original type, if it was promoted.
3287         (tree_inlinable_function_p): New function.
3288         (inlinable_function_p): Don't look at DECL_INLINE if we're
3289         inlining all functions.  Make it work with a NULL id.
3290         Re-check DECL_UNINLINABLE after language-specific checks.
3291         * tree-inline.h (tree_inlinable_function_p): Declare it.
3292         * integrate.c (save_for_inline): Don't bother to prepare argvec
3293         when not inlining.
3294         * cse.c (check_for_label_ref): Don't check deleted labels.
3295
3296         * Makefile.in (tree-inline.o): Depend on newly-included headers.
3297         * tree-inline.c: Include headers needed for the functions moved in.
3298         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
3299         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
3300         (copy_body, initialize_inlined_parameters): Likewise.
3301         (declare_return_variable, inlinable_function_p): Likewise.
3302         (expand_call_inline, expand_calls_inline): Likewise.
3303         (optimize_inline_calls, clone_body): Likewise.
3304         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
3305         (copy_tree_r, remap_save_expr): Likewise.
3306
3307 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
3308
3309         * Makefile.in (OBJS): Added tree-inline.o.
3310         (c-common.o): Depend on tree-inline.h.
3311         (tree-inline.o): New target.
3312         * c-common.c: Include tree-inline.h.
3313         (c_mark_lang_decl): Don't mark saved_tree.
3314         (c_common_lang_init): Set lang_anon_aggr_type_p.
3315         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
3316         (struct c_lang_decl): Moved saved_tree to tree_decl.
3317         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
3318         * integrate.h (function_attribute_inlinable_p): Declare it.
3319         * integrate.c (function_attribute_inlinable_p): Export it.
3320         * tree-inline.c: New file.  Define variables declared in...
3321         * tree-inline.h: New file.  Declare functions to be moved to
3322         tree-inline.c.  Define macros and declare types and hooks for
3323         language-specific tree inlining.
3324         (flag_inline_trees): Moved definition from cp/decl2.c.
3325         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
3326         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
3327         (struct tree_decl): Moved saved_tree from c_lang_decl and
3328         inlined_fns from C++'s lang_decl.
3329
3330 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
3331
3332         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
3333         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
3334
3335 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3336
3337         * doc/cppinternals.texi: Update.
3338
3339 2001-10-04  Eric Christopher  <echristo@redhat.com>
3340
3341         * config/mips/mips.c (init_cumulative_args): Remember to set
3342         cum->prototype.
3343         * config.gcc: Redo linux configuration. Add target_cpu_default
3344         of soft-float to all mipsisa32 combinations and tx39.
3345         * config/mips/linux.h: Remove include of mips.h.
3346
3347 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
3348
3349         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
3350         HOST_LDFLAGS and HOST_CPPFLAGS.
3351
3352 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
3353
3354         * c-parse.in (objc_inherit_code, objc_pq_context,
3355         objc_public_flag): Make static.
3356         (objc_interface_context, objc_implementation_context,
3357         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
3358         global tree array in objc/objc-act.[ch].
3359         (methoddef): Remove unnecessary code.
3360
3361         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
3362         Hoist struct definitions to objc-act.h.
3363         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
3364         cat_count): Place declaration in objc-act.h.
3365         (objc_tree_index): Move enumeration to objc-act.h.
3366         (objc_global_trees): Place declaration and macro accessors in
3367         objc-act.h.
3368         (implementation_context): Remove duplicate; use
3369         objc_implementation_context instead:
3370         (method_context): Remove duplicate; use objc_method_context
3371         instead.
3372         (objc_ellipsis_node, objc_method_prototype_template,
3373         implemented_classes, function_type): Move global vars to
3374         objc_global_trees.
3375         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
3376         (build_message_expr): Move actual construction of ObjC message
3377         send nodes to finish_message_expr.
3378         (finish_message_expr): New routine, contains code formerly in
3379         build_message_expr.
3380         * objc/objc-act.h (finish_message_expr): New prototype.
3381         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
3382         declarations; these vars are now part of objc_global_trees.
3383         (objc_tree_index, objc_global_trees): Move definitions from
3384         objc-act.c.
3385         * objc/objc-tree.def: Update copyright info.
3386
3387 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
3388
3389         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
3390         op is NULL.
3391         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
3392         only if TARGET_ARCH64.
3393
3394 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
3395
3396         * doc/extend.texi: Fix some problems with previous checkin.
3397         * doc/invoke.texi: Likewise.
3398
3399 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3400
3401         * cpphash.h: Update comments.
3402         (cpp_context): Update.
3403         (spec_nodes): Remove n__Pragma.
3404         * cppinit.c (cpp_create_reader): Update.
3405         (builtin_array): Add _Pragma.
3406         * cpplib.h: Update comments.
3407         (NODE_DISABLED, BT_PRAGMA): New.
3408         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
3409         * cppmacro.c (struct cpp_macro): Remove disabled.
3410         (builtin_macro): Return int, handle _Pragma, push the new token
3411         on the context stack.
3412         (funlike_invocation_p): Unconstify, update.
3413         (enter_macro_context): Handle builtins here.
3414         (replace_args, push_token_context, push_ptoken_context):
3415         Update for prototype changes.
3416         (_cpp_pop_context): Update.
3417         (cpp_get_token): Don't handle buitins, nor _Pragma here.
3418         (cpp_sys_macro_p): Update.
3419         (_cpp_free_definition): Clear disabled flag.
3420         (_cpp_create_definition): Upate.
3421         * cppmain.c: Update comments.
3422
3423 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
3424                                 Andreas Jaeger <aj@suse.de>,
3425                                 Jan Hubicka    <jh@suse.cz>
3426
3427         * doc/invoke.texi (i386 Options): Document x86-64 options.
3428         (i386 and x86-64 Options): Rename i386 options section.
3429
3430         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
3431         (TARGET_SWITCHES): Add -munwind-info.
3432         (MASK_NO_UNWIND_INFO): New.
3433         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
3434         biarch compilation.
3435         (ASM_OUTPUT_DOUBLE_INT): New.
3436
3437         * config/i386/linux64.h: New spec file for Linux x86-64 support.
3438         * config.gcc: Fix tm_file settings for x86-64.
3439         * config/i386/x86-64.h: New file with OS independent x86-64
3440         definitions.
3441         * config/i386/biarch64.h: New file used to configure compiler
3442         to biarch/64bit compilation.
3443
3444         * config/i386/i386.c: (override_options): Set flags default
3445         for 64bit compilation.
3446
3447 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
3448
3449         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
3450         (ix86_expand_int_movcc): Optimize DImode conditional moves with
3451         constants on x86_64.
3452         (ix86_attr_length_immediate_default): Support MODE_DI.
3453         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
3454         condition.
3455         (indirect_jump, tablejump): Turn into expander.
3456
3457 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3458
3459         * c-common.c (c_format_attribute_table): Make format and
3460         format_arg attributes apply to function types rather than to
3461         decls.
3462         (is_valid_printf_arglist): Construct an attribute list and pass
3463         that to check_function_format rather than a name.
3464         * c-common.h (check_function_format): Adjust prototype.
3465         * c-decl.c (duplicate_decls): Preserve attributes from type of
3466         built-in decl when allowing for harmless conflict in types.
3467         * c-format.c (record_function_format,
3468         record_international_format, function_format_list,
3469         international_format_info, international_format_list): Remove.
3470         (function_format_info): Remove next, name and assembler_name.
3471         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
3472         (decode_format_attr): New.
3473         (handle_format_attribute): Handle receiving a type rather than a
3474         decl.  Call decode_format_attr.  Store format information in a
3475         function_format_info.
3476         (handle_format_arg_attribute): Correct comment.  Handle receiving
3477         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
3478         arg_num.
3479         (check_format_info_recurse, check_format_info_main): Take argument
3480         numbers as unsigned HOST_WIDE_INT.
3481         (check_function_format): Take a list of attributes from the
3482         function type rather than a name or assembler name.  Check for
3483         format attributes in that list and the attributes on the type of
3484         the current function rather than looking through
3485         function_format_list.
3486         (check_format_info): Use unsigned HOST_WIDE_INT for argument
3487         numbers.
3488         (check_format_info_recurse): Take format_arg attributes from the
3489         type of the function calls rather than using
3490         international_format_list.  Allow for multiple format_arg
3491         attributes.
3492         * c-typeck.c (build_function_call): Pass type attributes to
3493         check_function_format rather than name or assembler name.  Don't
3494         require there to be a name or assembler name to check formats.
3495
3496 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3497
3498         * attribs.c (decl_attributes): Possibly call
3499         insert_default_attributes to insert default attributes on
3500         functions in a lazy manner.
3501         * builtin-attrs.def: New file; define the default format and
3502         format_arg attributes.
3503         * c-common.c (c_format_attribute_table): Move to earlier in the
3504         file.
3505         (c_common_nodes_and_builtins): Initialize format_attribute_table.
3506         (enum built_in_attribute, built_in_attributes,
3507         c_attrs_initialized, c_init_attributes,
3508         c_common_insert_default_attributes): New.
3509         (c_common_lang_init): Don't initialize format_attribute_table.  Do
3510         call c_init_attributes.
3511         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
3512         * c-common.h (init_function_format_info): Don't declare.
3513         (c_common_insert_default_attributes): Declare.
3514         * c-decl.c (implicitly_declare, builtin_function): Call
3515         decl_attributes.
3516         (init_decl_processing): Don't call init_function_format_info.
3517         (insert_default_attributes): New.
3518         * c-format.c (handle_format_attribute,
3519         handle_format_arg_attribute): Be quiet about inappropriate
3520         declaration when applying default attributes.
3521         (init_function_format_info): Remove.
3522         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
3523         (insert_default_attributes): Declare.
3524
3525 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3526
3527         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
3528
3529 2001-10-01  Jim Wilson  <wilson@redhat.com>
3530
3531         * sched-deps.c (add_dependence): When elide conditional dependence,
3532         check that insn doesn't modify cond2.
3533
3534 2001-10-01  Dale Johannesen  <dalej@apple.com>
3535
3536         * config/rs6000/rs6000.h (enum processor_type): Add support
3537         for 7400 (G4) and 7450.
3538         (RTX_COSTS): Ditto.
3539         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
3540         (rs6000_issue_rate): Ditto.
3541         (rs6000_adjust_cost): Fix cycle counts for compares.
3542         (debug_stack_info):  Fix an obvious typo.
3543         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
3544         * doc/invoke.texi: Document.
3545         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
3546         for Darwin.
3547         (PROCESSOR_DEFAULT): Ditto.
3548
3549 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
3550
3551         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
3552         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
3553         later recursive make invocation.
3554
3555 2001-10-01  Hans Boehm  <boehm@acm.org>
3556
3557         * optabs.c (emit_libcall_block): When using non-call exceptions,
3558         don't add REG_LIBCALL reg notes to trapping calls.
3559
3560 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
3561
3562         * flow.c (propagate_block_delete_libcall): Remove unused first arg
3563         (propagate_one_insn):  Update for above change
3564
3565 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
3566
3567         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
3568         _Unwind_GetTextRelBase): Argument is unused.
3569
3570 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3571
3572         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
3573         Loop through NOPs, placeholders, and components.
3574         Don't go through NOPs if change mode.
3575         (record_alias_subset): Do nothing if SUBSET and SET are the same.
3576         * emit-rtl.c (set_mem_alias_set): Enable check.
3577         * expr.c (find_placeholder): New function.
3578         (expand_expr, case PLACEHOLDER_EXPR): Use it.
3579         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
3580         to modify it and avoid unneeded copies.
3581         * expr.h (expand_expr): Always define.
3582         (find_placeholder): New declaration.
3583
3584 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3585
3586         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
3587         operand 2 is the stack pointer.
3588         ("addr-peephole"): Fix address computation peephole when operand 2
3589         is the stack pointer.
3590
3591 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3592
3593         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
3594         (ix86_setup_incoming_varargs): Likewise.
3595
3596 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
3597
3598         * stor-layout.c (layout_type): Don't complain about too-large
3599         array here.
3600
3601 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3602
3603         * function.c (keep_stack_depressed): Don't use delete_insn.
3604
3605         * expr.h (set_mem_alias_set): Move decl to here.
3606         * rtl.h (mem_attrs): New typedef and struct.
3607         (union rtunion_def): Add field for mem_attrs.
3608         (X0MEMATTR, MEM_ATTRS): New macros.
3609         (MEM_ALIAS_SET): Use MEM_ATTRS.
3610         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
3611         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
3612         (set_mem_alias_set): Delete decl from here.
3613
3614         * alias.c (set_mem_alias_set): Delete from here.
3615         * emit-rtl.c (mem_attrs_htab): New variable.
3616         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
3617         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
3618         (mem_attrs_mark, get_mem_attrs): Likewise.
3619         (gen_rtx_MEM): Clear MEM_ATTRS.
3620         (set_mem_attributes): Move to here.
3621         (set_mem_alias_set): Likewise, and call get_mem_attrs.
3622         (init_emit_once): const_int_htab now deletable htab.
3623         Initialize mem_attrs_htab.
3624         * explow.c (set_mem_attributes): Delete from here.
3625         * function.c (put_var_into_stack): Clear MEM_ATTRS.
3626         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
3627         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
3628         * reload1.c (reload): Rework changing REG to MEM.
3629
3630 2001-09-30  H.J. Lu <hjl@gnu.org>
3631
3632         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
3633         * config.in: Rebuild.
3634
3635 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3636
3637         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
3638         ("tsthi_1"): Avoid allocation in register y.
3639         ("*movqi_68hc12"): Reorganize and fix constraints.
3640         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
3641         ("addqi3"): Likewise.
3642         ("addhi3"): Fix constraints.
3643         ("*logicalhi3_zexthi"): Disparage soft registers.
3644
3645 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3646
3647         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
3648         to tmp reg.
3649
3650 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3651
3652         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
3653         that we use setjmp/longjmp exceptions.
3654
3655 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
3656
3657         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
3658         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
3659         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
3660         _cpp_pool_alloc, _cpp_next_chunk): Remove.
3661         (_cpp_extend_buff, BUFF_ROOM): Update.
3662         (_cpp_append_extend_buff): New.
3663         (struct cpp_reader): Remove macro_pool, add a_buff.
3664         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
3665         macro_pool.
3666         (cpp_destroy): Free a_buff instead of macro_pool.
3667         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
3668         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
3669         _cpp_pool_alloc, ): Remove.
3670         (parse_number, parse_string): Update use of _cpp_extend_buff.
3671         (_cpp_extend_buff): Update.
3672         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
3673         * cpplib.c (glue_header_name, parse_answer):
3674         Update use of _cpp_extend_buff.
3675         (cpp_register_pragma, cpp_register_pragma_space): Use
3676         _cpp_aligned_alloc.
3677         (do_assert, do_unassert): Check for EOL, update.
3678         * cppmacro.c (stringify_arg, collect_args): Update to use
3679         _cpp_extend_buff and _cpp_append_extend_buff.
3680         (save_parameter, parse_params, alloc_expansion_token,
3681         _cpp_create_definition): Rework memory management.
3682
3683 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
3684
3685         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
3686         update md_exec_prefix.
3687         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
3688         to string constant.
3689
3690 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
3691
3692         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
3693         (SELECT_CC_MODE): Use s390_select_ccmode.
3694         * config/s390/s390-protos.h (s390_select_ccmode): Add.
3695         * config/s390/s390.c (s390_select_ccmode): New.
3696         (s390_match_ccmode): Add CCLmode.
3697         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
3698         (output_branch_condition, output_inverse_branch_condition): Removed.
3699         (print_operand): Use s390_branch_condition_mnemonic.
3700         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
3701         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
3702         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
3703
3704         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
3705         when converting conditional branches to far branches.
3706         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
3707         cmpint_di): Use CCSmode instead of CCUmode.
3708
3709         * config/s390/s390.c (legitimate_la_operand_p): New.
3710         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
3711         * config/s390/s390.md (movsi): Convert load address patterns to
3712         arithmetic operations when necessary.
3713         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
3714         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
3715         (*do_la_reg_0): Don't use before reload.
3716
3717         * config/s390/s390.c (legitimize_address): Make more efficient
3718         use of two-register addressing mode.
3719
3720         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
3721         with -mno-backchain in some corner cases.
3722
3723         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
3724
3725 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
3726
3727         * reload.c (find_reloads): Mark new USE insns with QImode.
3728         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
3729         find_reloads_subreg_address): Likewise.
3730         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
3731         encountered.
3732         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
3733         CLOBBERs.
3734         (reload): Make sure there are no USEs with mode other than
3735         VOIDmode.  At the end, remove those marked with QImode.
3736
3737 2001-09-29  Per Bothner  <per@bothner.com>
3738
3739         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
3740         * Makefile.in (includedir):  Rename to local_includedir.
3741         (includedir):  Define as $(prefix)/include.
3742         * config.in (PREFIX_INCLUDE_DIR):  New variable.
3743         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
3744
3745 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
3746
3747         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
3748         storehps builtins.
3749         * doc/extend.texi (Vector Extensions): New node.
3750         * doc/invoke.texi (Machine Dependent Options): Add documentation for
3751         i386 -mmmx, -msse, -m3dnow.
3752
3753 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
3754
3755         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
3756
3757 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
3758
3759         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
3760
3761         * doc/invoke.texi (Optimize Options): Delete spurious @table.
3762
3763 2001-09-28  Richard Henderson  <rth@redhat.com>
3764
3765         * varasm.c (assemble_integer): Bound alignment check by
3766         BIGGEST_ALIGNMENT.
3767
3768         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
3769
3770 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3771
3772         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
3773
3774 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
3775
3776         Mostly from Graham Stott  <grahams@redhat.com>
3777         * c-common.c (type_for_mode): Add support for V2SFmode.
3778         * tree.c (build_common_tree_nodes_2): Likewise.
3779         * tree.h (enum tree_index, global_trees): Likewise.
3780         * config/i386/i386.c (x86_3dnow_a): New variable.
3781         (override_options): Support 3Dnow extensions.
3782         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
3783         Athlon's version of 3Dnow.
3784         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
3785         (ix86_expand_builtin): Handle them.
3786         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
3787         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
3788         TARGET_3DNOW_A): New macros.
3789         (TARGET_SWITCHES): Add 3Dnow switches.
3790         (VALID_MMX_REG_MODE_3DNOW): New macro.
3791         (VECTOR_MODE_SUPPORTED_P): Use it.
3792         (enum ix86_builtins): Add entries for 3Dnow builtins.
3793         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
3794         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
3795         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
3796         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
3797         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
3798         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
3799         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
3800         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
3801         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
3802         sfence_insn, prefetch): Make these available if TARGET_SSE or
3803         TARGET_3DNOW_A.
3804
3805 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
3806
3807         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
3808         ix86_va_start, ix86_build_va_list): Declare.
3809         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
3810         ix86_va_start, ix86_build_va_list): New global functions.
3811         * i386.md (sse_prologue_save_insn): New insn.
3812         (sse_prologue_save): New expander.
3813         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
3814         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
3815
3816 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3817
3818         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
3819         Use size_t everywhere, make definitions consistent with
3820         prototypes.
3821
3822 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
3823
3824         * gcse.c (replace_store_insn): Use delete_insn.
3825         * loop.c (move_movables): Likewise; avoid delete_insn
3826         from clobbering notes moved elsewhere.
3827         (check_dbra_loop): Use delete_insn.
3828         * ssa.c (convert_from_ssa): Likewise.
3829         * cse.c (cse_insn): Use delete_insn.
3830
3831 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3832
3833         * cpphash.h (struct cpp_buff): Make unsigned.
3834         (_cpp_get_buff): Take length of size_t.
3835         (_cpp_unaligned_alloc): New.
3836         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
3837         (struct cpp_reader): Remove ident_pool.  Add u_buff.
3838         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
3839         (cpp_destroy): Destroy u_buff, not ident_pool.
3840         * cpplex.c (parse_number, parse_string, save_comment,
3841         cpp_token_as_text): Update to use the unaligned buffer.
3842         (new_buff): Make unsigned.
3843         (_cpp_unaligned_alloc): New.
3844         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
3845         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
3846         Similarly.
3847         (collect_args): Make unsigned.
3848
3849 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
3850
3851         * cpplex.c (cpp_output_token): Use a putc loop for
3852         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
3853
3854         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
3855         * configure, config.in: Regenerate.
3856         * system.h: Replace fwrite and fprintf with their unlocked
3857         variants if available.
3858
3859 2001-09-27  Richard Henderson  <rth@redhat.com>
3860
3861         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
3862         in favour of .eh_frame.
3863
3864 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
3865
3866         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
3867         to macros.
3868         (LIBCALL_VALUE): Likewise.
3869
3870 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3871
3872         * cpphash.h: Update comment.
3873         * cpplex.c: Update comments.
3874         (_cpp_can_paste): Remove.
3875         * cpplib.h (_cpp_can_paste): Remove.
3876         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
3877         lexer rather than _cpp_can_paste.
3878
3879 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3880
3881         * doc/cppinternals.texi: Update.
3882
3883 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3884
3885         * cpphash.h (struct cpp_pool): Remove locks and locked.
3886         (struct cpp_context): Add member buff.
3887         (struct cpp_reader): Remove member argument_pool.
3888         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
3889         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
3890         * cpplex.c (chunk_suitable): Remove pool argument.
3891         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
3892         (new_buff, _cpp_extend_buff): Update.
3893         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
3894         which buffer is returned.
3895         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
3896         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
3897         * cppmacro.c (lock_pools, unlock_pools): Remove.
3898         (push_ptoken_context): Take a _cpp_buff.
3899         (enter_macro_context): Pool locking removed.
3900         (replace_args): Use a _cpp_buff for the replacement list with
3901         arguments replaced.
3902         (push_token_context): Clear buff.
3903         (expand_arg): Use _cpp_pop_context.
3904         (_cpp_pop_context): Free a context's buffer, if any.
3905
3906 2001-09-26  DJ Delorie  <dj@redhat.com>
3907
3908         * c-typeck.c (digest_init): Check for sizeless arrays.
3909
3910 2001-09-26  Richard Henderson  <rth@redhat.com>
3911
3912         * optabs.c (init_one_libfunc): Create a dummy function type
3913         instead of using error_mark_node.
3914
3915 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3916
3917         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
3918         _cpp_extend_buff, _cpp_free_buff): New.
3919         (struct cpp_reader): New member free_buffs.
3920         * cppinit.c (cpp_destroy): Free buffers.
3921         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
3922         _cpp_extend_buff, _cpp_free_buff): New.
3923         * cpplib.h (struct cpp_options): Remove unused member.
3924         * cppmacro.c (collect_args): New.  Combines the old parse_arg
3925         and parse_args.  Use _cpp_buff for memory allocation.
3926         (funlike_invocation_p, replace_args): Update.
3927
3928 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
3929
3930         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
3931
3932 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
3933
3934         * except.c (sjlj_mark_call_sites): Change address inside sequence.
3935
3936 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
3937
3938         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
3939         glibc.
3940
3941 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
3942             Jim Wilson  <wilson@redhat.com>
3943
3944         * doc/install.texi (Specific, ia64-*-linux): Document.
3945
3946 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
3947
3948         * Makefile.in (cfgrtl.o): Add.
3949         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
3950         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
3951         free_aux_for_edge): Declare.
3952         * cfg.c
3953         (HAVE_return): Undefine.
3954         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
3955         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
3956         free_aux_for_edge): New global functions.
3957         (first_delete_block): New static variable.
3958         (init_flow): Clear first_delete_block.
3959         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
3960          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
3961          try_redirect_by_replacing_jump, last_loop_beg_note,
3962          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
3963          delete_insn, delete_insn_chain, create_basic_block_structure,
3964          create_basic_block, flow_delete_block, compute_bb_for_insn,
3965          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
3966          set_block_for_new_insns, split_block, merge_blocks_nomove,
3967          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
3968          redirect_edge_and_branch, force_nonfallthru_and_redirect,
3969          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
3970          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
3971          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
3972          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3973          purge_all_dead_edges): Move to ....
3974         * cfgrtl.c: New file; .... Here.
3975
3976         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
3977         (reroder_basic_block): Use alloc_aux_for_blocks.
3978         * predict.c (estimate_bb_frequencies): Likewise; use
3979         alloc_aux_for_edges.
3980         * profile.c (compute_branch_probabilities): Likewise.
3981         (branch_prob): Likewise.
3982         * reg-stack.c (reg_to_stack): Likewise.
3983
3984         * emit-rtl.c (emit_insns_after): Never return NULL.
3985
3986         * basic-block.h (set_block_for_new_insns): Delete.
3987         * cfgrtl.c (set_block_for_new_insns): Delete.
3988
3989         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
3990         calls when crossjumping.
3991
3992         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
3993         * unroll.c (copy_loop_body): Use delete_insn.
3994
3995         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
3996         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
3997         keep_stack_depressed): Likewise.
3998         * gcse.c (cprop_cc0_jump): Likewise.
3999         * local-alloc.c (update_equiv_regs): Likewise.
4000         * loop.c (scan_loop, loop_delete_insns): Likewise.
4001         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
4002         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
4003         delete_output_reload, delete_address_reloads_1,
4004         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
4005         Likewise.
4006         * sibcall.c (replace_call_placeholder): Likewise.
4007         * cse.c (cse_insn): Likewise.
4008
4009 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
4010
4011         From Graham Stott  <grahams@redhat.com>
4012         (def_builtin): Only define builtins appropriate for target_flags.  All
4013         callers changed.
4014         (builtin_decsription): Add new field mask which is used to determine
4015         when to define the builtin via the macro def_builtin.
4016
4017         (bdesc_comi): Initialise new mask fields.
4018         (bdesc_2srg): Likewise.
4019         (bdesc_1arg): Likewise.
4020
4021         * config/i386/i386.c (ix86_init_builtins): Correct return type
4022         building v4hi_ftype_v4hi_int_int tree node.
4023         (ix86_expand_sse_comi): Fix typo swapping operands.
4024         Don't swap comparision condition, it is already swapped.
4025         (ix86_expand_sse_compare): Before swapping operands
4026         move operand 1 into new rtx and not the target rtx.
4027         Don't swap comparison condition, it is already swapped.
4028         Always check whether we need to create a new TARGET.
4029
4030         * config/i386/i386.md: (sse_comi) Fix typos.
4031         (sse_ucomi): Likewise.
4032         (cvtss2si): Fix operand 0 contraint.
4033         (cvttss2si): Likewise.
4034         (sse_unpckhps): Fix mode for operand 2.
4035         (sse_unpcklps): Likewise.
4036
4037 2001-09-25  Graham Stott  <grahams@redhat.com>
4038
4039         * sibcall.c (skip_copy_to_return_value): Tighten return value
4040         copy check.
4041
4042 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
4043
4044         * rs6000.c (lwa_operand): Address must be word aligned.
4045
4046 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4047
4048         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
4049         number has been set.
4050         (type_hash_mark): Mark type itself.
4051
4052 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4053
4054         * c-lex.c (cb_def_pragma): Update.
4055         (c_lex): Update, and skip padding.
4056         * cppexp.c (lex, parse_defined): Update, remove unused variable.
4057         * cpphash.h (struct toklist): Delete.
4058         (union utoken): New.
4059         (struct cpp_context): Update.
4060         (struct cpp_reader): New members eof, avoid_paste.
4061         (_cpp_temp_token): New.
4062         * cppinit.c (cpp_create_reader): Update.
4063         * cpplex.c (_cpp_temp_token): New.
4064         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
4065         (cpp_output_token): Don't print leading whitespace.
4066         (cpp_output_line): Update.
4067         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
4068         do_include_common, do_line, do_ident, do_pragma,
4069         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
4070         parse_assertion): Update.
4071         (get_token_no_padding): New.
4072         * cpplib.h (CPP_PADDING): New.
4073         (AVOID_LPASTE): Delete.
4074         (struct cpp_token): New union member source.
4075         (cpp_get_token): Update.
4076         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
4077         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
4078         replace_args, quote_string, stringify_arg, parse_arg, next_context,
4079         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
4080         _cpp_backup_tokens, _cpp_create_definition): Update.
4081         (push_arg_context): Delete.
4082         (padding_token, push_token_context, push_ptoken_context): New.
4083         (make_string_token, make_number_token): Update, rename.
4084         (cpp_get_token): Update to handle tokens as pointers to const,
4085         and insert padding appropriately.
4086         * cppmain.c (struct printer): New member prev.
4087         (check_multiline_token): Constify.
4088         (do_preprocessing, cb_line_change): Update.
4089         (scan_translation_unit): Update to handle spacing.
4090         * scan-decls.c (get_a_token): New.
4091         (skip_to_closing_brace, scan_decls): Update.
4092         * fix-header.c (read_scan_file): Update.
4093
4094         * doc/cpp.texi: Update.
4095
4096 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4097
4098         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
4099         leak by passing malloc'ed pointer to reconcat, not concat.
4100
4101 2001-09-24  DJ Delorie  <dj@redhat.com>
4102
4103         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
4104
4105 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
4106
4107         * flow.c (delete_dead_jumptables): Delete jumptable if the only
4108         reference is from the literal pool.
4109
4110 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
4111
4112         * doc/install.texi (Final install): Request additional information
4113         in mail about successful builds.
4114
4115 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4116
4117         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
4118         initial value of return pointer register instead of value in frame-20.
4119         Revise comments.
4120
4121 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4122
4123         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
4124         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
4125         the libcall if there isn't a referenced identifier for the symbol.
4126
4127 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4128
4129         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
4130         non 64-bit machines.  Use these as a plabel for the trampoline.
4131         (TRAMPOLINE_SIZE): Adjust size for new words.
4132         (INITIALIZE_TRAMPOLINE): Initialize new words.
4133         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
4134         pointer to the plabel in the trampoline.
4135
4136 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4137
4138         * pa.c (function_arg): Pass floating arguments in both general and
4139         floating registers in indirect (dynamic) calls when generating code
4140         for the 32 bit ABI and the HP assembler.
4141
4142 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4143
4144         * doc/install.texi: Markup fixes.
4145         Use Solaris 2, SunOS 4 as appropriate.
4146         (Specific, *-*-solaris2*): Explain this.
4147         Unconditionally warn against /usr/ucb tools.
4148         Remove Sun as warning, obsolete.
4149         Move X11 header bug workaround here, update patches.
4150         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
4151         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
4152
4153 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
4154
4155         * errors.h (warning, error, fatal, internal_error): Don't mark
4156         with ATTRIBUTE_PRINTF_n.
4157         * toplev.h (internal_error, fatal_io_error, warning, error,
4158         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
4159         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
4160         Likewise.
4161
4162 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4163
4164         * function.c (pop_function_context_from): var_refs_queue
4165         and temp slots now in GC memory.
4166         (mark_function_status, free_after_compilation): Likewise;
4167         also struct function now in GC memory.
4168         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
4169         (combine_temp_slots): Likewise.
4170         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
4171         (prepare_function_start): Use GC memory for struct function.
4172         (mark_temp_slot): Deleted.
4173         (gcc_mark_struct_function): struct function now in GC memory.
4174
4175         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
4176         code for division, not modulus.
4177
4178         * rtl.def (MEM): Remove obsolete part of comment.
4179
4180 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
4181
4182         * c-format.c (init_function_format_info): Check __builtin_printf
4183         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
4184         in gnu89 mode.
4185
4186 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4187
4188         * c-common.c (format_attribute_table): Remove decl.
4189         * tree.h (format_attribute_table, lang_attribute_table): New decls.
4190         (lang_attribute_common): Likewise.
4191
4192         * function.c (fix_lexical_address): Use set_mem_alias_set.
4193         (expand_function_start): Likewise.
4194         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
4195
4196         * varasm.c (output_constant): Fix unused variable warning.
4197
4198         * attribs.c: New file, from c-common.c.
4199         (attribute_tables): Now four elements.
4200         (format_attribute_table, lang_attribute_common): New variables.
4201         (init_attributes): Reflect above changes.
4202         (handle_mode_attribute): Delete check for wider than uintmax.
4203         * c-common.c: Delete parts moved to attribs.c.
4204         (enum attrs): Deleted; unused.
4205         (c_format_attribute_table): New variable.
4206         (c_common_lang_init): Initialize format_attribute_table with it.
4207         * c-common.h (decl_attributes): Remove decl.
4208         * tree.h (decl_attribute): Move it to here.
4209         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
4210         (attribs.o): New rule.
4211
4212 2001-09-22  Andreas Jaeger  <aj@suse.de>
4213
4214         * builtins.c (c_getstr): Remove unused variable.
4215
4216 2001-09-21  Richard Henderson  <rth@redhat.com>
4217
4218         * reload1.c (reload): Use delete_insn instead of splatting
4219         NOTE_INSN_DELETED.
4220
4221 2001-09-21  Richard Henderson  <rth@redhat.com>
4222
4223         * reload.c (push_secondary_reload): Don't check for "=" in output
4224         constraint after ""->ALL_REGS check.
4225
4226 2001-09-21  Richard Henderson  <rth@redhat.com>
4227
4228         * predict.c (expected_value_to_br_prob): Use pc_set.
4229
4230         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
4231         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
4232
4233 2001-09-21  Richard Henderson  <rth@redhat.com>
4234
4235         * rtl.h (LCT_RETURNS_TWICE): New.
4236         * calls.c (emit_call_1): Set current_function_calls_setjmp for
4237         ECF_RETURNS_TWICE.
4238         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
4239         to ECF_RETURNS_TWICE.
4240         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
4241         call to setjmp.
4242
4243         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
4244
4245         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
4246         (JMP_BUF_SIZE): New.
4247
4248 2001-09-21  Richard Henderson  <rth@redhat.com>
4249
4250         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
4251         to R8_REGS.
4252
4253 2001-09-21  Richard Henderson  <rth@redhat.com>
4254
4255         * tree.def (FDESC_EXPR): New.
4256         * expr.c (expand_expr): Handle it.
4257         * varasm.c (initializer_constant_valid_p): Likewise.
4258         (output_constant): Likewise.
4259         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
4260         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
4261         (ASM_OUTPUT_FDESC): New.
4262         * doc/tm.texi: Document the new macros.
4263
4264 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
4265
4266         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
4267         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
4268         once merging is complete.
4269
4270 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4271
4272         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
4273
4274 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
4275
4276         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
4277         that would be invalid after a merge.
4278
4279 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
4280
4281         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
4282         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
4283         remove some labels.
4284         (flow_delete_insn): This one.
4285         (delete_insn_chain): Rename from ...; do not care labels.
4286         (flow_delete_insn_chain): ... this one.
4287         (flow_delete_block): Remove the insns one BB has been expunged.
4288         (merge_blocks_nomove): Likewise.
4289         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
4290         updating BB boundaries.
4291         (tidy_fallthru_edge): Likewise.
4292         (commit_one_edge_insertion): Likewise.
4293         * cfgbuild.c (find_basic_block): Likewise.
4294         (find_basic_blocks_1): Likewise.
4295         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
4296         (try_crossjump_to_edge): Likewise.
4297         (try_optimize_cfg): Likewise.
4298         * cse.c (delete_trivially_dead_insns): Likewise.
4299         * df.c (df_insn_delete): Likewise.
4300         * doloop.c (doloop_modify): Use delete_related_insns.
4301         * emit-rtl.c (try_split): Likewise.
4302         (remove_insn): Update BB boundaries.
4303         * expect.c (connect_post_landing_pads): Use delete_related_insns.
4304         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
4305         updating BB boundaries.
4306         (propagate_block_delete_insn): Likewise.
4307         (propagate_block_delete_libcall): Likewise.
4308         * function.c (delete_handlers): Use delete_related_insns.
4309         (thread_prologue_and_epilogue_insns): Likewise.
4310         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
4311         * genpeep.c (gen_peephole): Use delete_related_insns.
4312         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
4313         BB boundaries.
4314         (find_cond_trap): Likewise.
4315         * integrate.c (save_for_inline): Use delete_related_insns.
4316         (copy_insn_list): Likewise.
4317         * jump.c (pruge_linie_number_notes): Likewise.
4318         (duplicate_loop_exit_test): Likewise.
4319         (delete_computation): Likewise.
4320         (delete_related_insn): Rename from ...; use delete_insn
4321         (delete_insn): ... this one.
4322         (redirect_jump): Use delete_related_insns.
4323         * loop.c (scan_loop): Likewise.
4324         (move_movables): Likewise.
4325         (find_and_verify_loops): Likewise.
4326         (check_dbra_loop): Likewise.
4327         * recog.c (peephole2_optimize): Likewise.
4328         * reg-stack.c (delete_insn_for_stacker): Remove.
4329         (move_for_stack_reg): Use delete_insn.
4330         * regmove.c (combine_stack_adjustments_for_block): Likewise.
4331         * reload1.c (delete_address_reloads): Use delete_related_insns.
4332         (fixup_abnormal_edges): Use delete_insn.
4333         * recog.c (emit_delay_sequence): Use delete_related_insns.
4334         (delete_from-delay_slot): Likewise.
4335         (delete_scheduled_jump): likewise.
4336         (optimize_skip): Likewise.
4337         (try_merge_delay_insns): Likewise.
4338         (full_simple_delay_slots): Likewise.
4339         (fill_slots_from_thread): Likewise.
4340         (relax_delay_slots): Likewise.
4341         (make_return_insns): Likewise.
4342         (dbr_schedule): Likewise.
4343         * rtl.h (delete_insn): Rename to delete_related_insns.
4344         (delete_insn, delete_insn_chain): New prototypes.
4345         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
4346         by df_insn_delete already.
4347         * ssa-dce.c (delete_insn_bb): Use delete_insn.
4348         * ssa.c (convert_from_ssa): Use delete_related_insns.
4349         * unroll.c (unroll_loop): Likewise.
4350         (calculate_giv_inc): Likewise.
4351         (copy_loop_body): Likewise.
4352
4353         * i386-protos.h (ix86_libcall_value, ix86_function_value,
4354         ix86_function_arg_regno_p, ix86_function_arg_boundary,
4355         ix86_return_in_memory, ix86_function_value): Declare.
4356         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
4357         new static valurables.
4358         (x86_64_reg_class): New enum
4359         (x86_64_reg_class_name): New array.
4360         (classify_argument, examine_argument, construct_container,
4361          merge_classes): New static functions.
4362         (optimization_options): Enable flag_omit_frame_pointer and disable
4363         flag_pcc_struct_return on 64bit.
4364         (ix86_libcall_value, ix86_function_value,
4365         ix86_function_arg_regno_p, ix86_function_arg_boundary,
4366         ix86_return_in_memory, ix86_function_value): New global functions.
4367         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
4368         (function_arg_advance): Handle x86_64 passing conventions.
4369         (function_arg): Likewise.
4370         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
4371         (RETURN_IN_MEMORY): Move offline.
4372         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
4373         (FUNCTION_VALUE_REGNO_P): New macro.
4374         (FUNCTION_ARG_REGNO_P): Move offline.
4375         (struct ix86_args): Add maybe_vaarg.
4376         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
4377         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
4378
4379 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
4380
4381         * s390.md: Changed attributes for scheduling.
4382         * s390.c: (s390_adjust_cost, s390_adjust_priority)
4383         Changed scheduling
4384
4385 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4386
4387         Table-driven attributes.
4388         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
4389         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
4390         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
4391         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
4392         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
4393         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
4394         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
4395         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
4396         * tree.h (struct tree_decl): Change machine_attributes to
4397         attributes.
4398         * doc/c-tree.texi: Document that all attributes are now attached
4399         to decls and types.
4400         * c-common.c (add_attribute, attrtab, attrtab_idx,
4401         default_valid_lang_attribute, valid_lang_attribute): Remove.
4402         (attribute_tables, attributes_initialized,
4403         c_common_attribute_table, default_lang_attribute_table): New
4404         variables.
4405         (handle_packed_attribute, handle_nocommon_attribute,
4406         handle_common_attribute, handle_noreturn_attribute,
4407         handle_unused_attribute, handle_const_attribute,
4408         handle_transparent_union_attribute, handle_constructor_attribute,
4409         handle_destructor_attribute, handle_mode_attribute,
4410         handle_section_attribute, handle_aligned_attribute,
4411         handle_weak_attribute, handle_alias_attribute,
4412         handle_no_instrument_function_attribute,
4413         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
4414         handle_no_limit_stack_attribute, handle_pure_attribute): New
4415         functions.
4416         (init_attributes, decl_attributes): Rewrite to implement
4417         table-driven attributes.
4418         * c-common.h (enum attribute_flags): Move to tree.h.
4419         * c-format.c (decl_handle_format_attribute,
4420         decl_handle_format_arg_attribute): Rename to
4421         handle_format_attribute and handle_format_arg_attribute.  Update
4422         for table-driven attributes.
4423         * c-common.h (decl_handle_format_attribute,
4424         decl_handle_format_arg_attribute): Remove prototypes.
4425         (handle_format_attribute, handle_format_arg_attribute): Add
4426         prototypes.
4427         * c-decl.c (grokdeclarator): Handle attributes nested inside
4428         declarators.
4429         * c-parse.in (setattrs, maybe_setattrs): Remove.
4430         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
4431         Update to handle nested attributes properly.
4432         (maybe_resetattrs, after_type_declarator,
4433         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
4434         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
4435         properly.
4436         (make_pointer_declarator): Update to handle nested attributes
4437         properly.
4438         * doc/extend.texi: Update documentation of limits of attributes
4439         syntax.  Warn about problems with attribute semantics in C++.
4440         * target.h (struct target): Remove valid_decl_attribute and
4441         valid_type_attribute.  Add attribute_table and
4442         function_attribute_inlinable_p.
4443         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
4444         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
4445         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
4446         Add.
4447         (TARGET_INITIALIZER): Update.
4448         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
4449         definition.
4450         (function_attribute_inlinable_p): New function.  Check for the
4451         presence of any machine attributes before using
4452         targetm.function_attribute_inlinable_p.
4453         (function_cannot_inline_p): Update.
4454         * Makefile.in (integrate.o): Update dependencies.
4455         * doc/tm.texi: Update documentation of target attributes and
4456         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
4457         * tree.c (default_valid_attribute_p, valid_machine_attribute):
4458         Remove.
4459         (default_target_attribute_table,
4460         default_function_attribute_inlinable_p): New.
4461         (lookup_attribute): Update comment to clarify handling of multiple
4462         attributes with the same name.
4463         (merge_attributes, attribute_list_contained): Allow multiple
4464         attributes with the same name but different arguments to appear in
4465         the same attribute list.
4466         * tree.h (default_valid_attribute_p): Remove prototype.
4467         (struct attribute_spec): New.
4468         (default_target_attribute_table): Declare.
4469         (enum attribute_flags): Move from c-common.h.  Add
4470         ATTR_FLAG_TYPE_IN_PLACE.
4471         (default_function_attribute_inlinable_p): Declare.
4472         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
4473         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4474         (TARGET_ATTRIBUTE_TABLE): Define.
4475         (vms_attribute_table): New.
4476         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
4477         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4478         (TARGET_ATTRIBUTE_TABLE): Define.
4479         (arc_attribute_table, arc_handle_interrupt_attribute): New.
4480         * config/arm/arm.c (arm_valid_type_attribute_p,
4481         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
4482         Remove.
4483         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
4484         define.
4485         (TARGET_ATTRIBUTE_TABLE): Define.
4486         (arm_attribute_table, arm_handle_fndecl_attribute,
4487         arm_handle_isr_attribute): New.
4488         * config/avr/avr.c (avr_valid_type_attribute,
4489         avr_valid_decl_attribute): Remove.
4490         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
4491         define.
4492         (TARGET_ATTRIBUTE_TABLE): Define.
4493         (avr_attribute_table, avr_handle_progmem_attribute,
4494         avr_handle_fndecl_attribute): New.
4495         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
4496         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4497         (TARGET_ATTRIBUTE_TABLE): Define.
4498         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
4499         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
4500         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4501         (TARGET_ATTRIBUTE_TABLE): Define.
4502         (h8300_attribute_table, h8300_handle_fndecl_attribute,
4503         h8300_handle_eightbit_data_attribute,
4504         h8300_handle_tiny_data_attribute): New.
4505         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
4506         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
4507         Remove prototypes.
4508         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
4509         declarations.
4510         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
4511         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
4512         define.
4513         (TARGET_ATTRIBUTE_TABLE): Define.
4514         (ix86_attribute_table, ix86_handle_cdecl_attribute,
4515         ix86_handle_regparm_attribute): New.
4516         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
4517         i386_pe_valid_type_attribute_p): Remove.
4518         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
4519         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
4520         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4521         (TARGET_ATTRIBUTE_TABLE): Define.
4522         (ia64_attribute_table): New.
4523         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
4524         interrupt_ident2, model_ident1, model_ident2): Remove.
4525         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4526         (TARGET_ATTRIBUTE_TABLE): Define.
4527         (init_idents): Update.
4528         (m32r_attribute_table, m32r_handle_model_attribute): New.
4529         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
4530         Remove.
4531         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4532         (TARGET_ATTRIBUTE_TABLE): Define.
4533         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
4534         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
4535         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4536         (TARGET_ATTRIBUTE_TABLE): Define.
4537         (mcore_attribute_table, mcore_handle_naked_attribute): New.
4538         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
4539         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4540         (TARGET_ATTRIBUTE_TABLE): Define.
4541         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
4542         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
4543         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
4544         (TARGET_ATTRIBUTE_TABLE): Define.
4545         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
4546         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
4547         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4548         (TARGET_ATTRIBUTE_TABLE): Define.
4549         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
4550         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
4551         New.
4552         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
4553         Remove.
4554         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
4555         (TARGET_ATTRIBUTE_TABLE): Define.
4556         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
4557         New.
4558         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
4559         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
4560         (TARGET_ATTRIBUTE_TABLE): Define.
4561         (v850_attribute_table, v850_handle_interrupt_attribute,
4562         v850_handle_data_area_attribute): New.
4563         * config/v850/v850-c.c (mark_current_function_as_interrupt):
4564         Return void.  Call decl_attributes instead of
4565         valid_machine_attribute.
4566
4567 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
4568
4569         * sh-protos.h (sh_pr_n_sets): Declare.
4570         * sh.c (calc_live_regs): If the initial value for PR has been copied,
4571         look at the copy to determine if PR needs to be saved.
4572         sh_pr_n_sets: New function.
4573         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
4574         (ALLOCATE_INITIAL_VALUE): Define.
4575
4576         * sh.c (initial_elimination_offset):
4577         Fix RETURN_ADDRESS_POINTER_REGNUM case.
4578
4579 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
4580
4581         * integrate.c (allocate_initial_values): New function.
4582         * integrate.h (allocate_initial_values): Declare.
4583         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
4584         here...
4585         * reload1.c (reload): And initialization of reg_equiv_memory_loc
4586         from here...
4587         * toplev.c (rest_of_compilation): To here.
4588         Call allocate_initial_values.
4589         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
4590
4591 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4592
4593         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
4594
4595 2001-09-20  DJ Delorie  <dj@redhat.com>
4596
4597         * c-typeck.c (really_start_incremental_init): Discriminate
4598         between zero-length arrays and flexible arrays.
4599         (push_init_level): Detect zero-length arrays and handle them
4600         like fixed-sized arrays.
4601         * expr.c (store_constructor): Handle zero-length arrays and
4602         flexible arrays correctly.
4603         * doc/extend.texi: Update zero-length array notes.
4604
4605 2001-09-20  Jim Wilson  <wilson@redhat.com>
4606
4607         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
4608         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
4609         for issue port conflicts.
4610         (cycle_end_fill_slots): TYPE_L instructions take two slots.
4611
4612 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
4613
4614         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
4615         on ia64.
4616
4617 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4618
4619         * fold-const.c (hashtab.h): Include.
4620         (int_const_binop): Remove FORSIZE arg and compute from type; all
4621         callers changed.
4622         Call size_int_type_wide for all single-word constants.
4623         (size_htab_hash, size_htab_eq): New functions.
4624         (size_int_type_wide): Rework to use hash table.
4625         * ggc-common.c (hashtab.h): Include.
4626         (struct d_htab_root): New struct.
4627         (d_htab_roots): New variable.
4628         (ggc_add_deletable_htab, ggc_htab_delete): New functions
4629         (ggc_mark_roots): Handle deletable htabs.
4630         * ggc-page.c (ggc_marked_p): New function.
4631         * ggc-simple.c (ggc_marked_p): Likewise.
4632         * ggc.h: Reformatting throughout.
4633         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
4634         * tree.c (init_obstacks): Make type_hash_table a deletable root.
4635         (type_hash_add): Allocate struct type_hash from GC memory.
4636         (mark_hash_entry, mark_type_hash): Deleted.
4637         (type_hash_marked_p, type_hash_mark): New functions.
4638         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
4639
4640 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
4641
4642         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
4643         than SImode.
4644
4645 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4646
4647         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
4648         array-too-large test for signed sizetype.
4649
4650 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
4651
4652         * i386.md (indirect_jump): Allow Pmode operand.
4653         (tablejump): LIkewise; perform expansion to 64bit mode.
4654         * i386.c (symbolic_operand): Allow 64bit PIC references.
4655         (pic_symbolic_operand): Likewise.
4656         (ix86_find_base_term): Strip the 64bit PIC references.
4657         (legitimate_pic_address_disp_p): Handle 64bit PIC.
4658         (legitimize_pic_address): Likewise.
4659         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
4660         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
4661
4662 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
4663
4664         * stringpool.c (get_identifier_with_length): New function.
4665         * tree.h (get_identifier_with_length): New prototype.
4666
4667 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
4668             David Edelsohn  <edelsohn@gnu.org>
4669
4670         Revert:
4671         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
4672         already sign-extended.
4673
4674         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
4675         * config/rs6000/rs6000.c (logical_operand): Always compare op as
4676         HOST_WIDE_INT.
4677         (rs6000_emit_set_long_const): Avoid unnecessary shift.
4678         (output_profile_hook): Declare label_name const.
4679         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
4680         to match constraints.
4681
4682 2001-09-19  Stan Shebs  <shebs@apple.com>
4683
4684         * alias.c: Fix typos in comments.
4685         * sched-rgn.c (init_ready_list): Ditto.
4686         * unwind-dw2.c (uw_frame_state_for): Ditto.
4687         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
4688         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
4689         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
4690
4691 2001-09-19  Richard Henderson  <rth@redhat.com>
4692
4693         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
4694         to the exit block.
4695         * Makefile.in (cfg.o): Depend on TM_P_H.
4696
4697 2001-09-19  Richard Henderson  <rth@redhat.com>
4698
4699         * config/alpha/alpha.c (local_symbol_p): Split out from ...
4700         (local_symbolic_operand): ... here.
4701         (small_symbolic_operand): Check mode.
4702         (global_symbolic_operand): New.
4703         (input_operand): Reject symbolics if explicit relocs.
4704         (call_operand): Tidy.
4705         (alpha_legitimize_address): Use movdi_er_high_g.
4706         (alpha_expand_mov): Likewise.
4707         * config/alpha/alpha-protos.h: Update.
4708         * config/alpha/alpha.h (PREDICATE_CODES): Update.
4709         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
4710         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
4711         (UNSPECV_LDGP2): Remove.
4712         (all call patterns): Use 's' not 'i' for symbolic constraint.
4713         (call_osf call_value_osf): Use call_operand.
4714         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
4715         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
4716         (prologue_ldgp_1_er): Remove.
4717         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
4718         (builtin_setjmp_receiver_er patterns): Use them.
4719         (exception_receiver_er): Likewise.
4720
4721 2001-09-19  Richard Henderson  <rth@redhat.com>
4722
4723         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
4724
4725         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
4726         and NON_LOCAL_GOTO notes.
4727         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
4728         copy over CALL_INSN_FUNCTION_USAGE.
4729
4730 2001-09-18  Catherine Moore  <clm@redhat.com>
4731
4732         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
4733         Define as 0.
4734
4735 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
4736
4737         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
4738         new-style tm_file specification.  Specify correct tm_p_file,
4739         md_file, and out_file for s390x.
4740
4741         * config/s390/linux.h, linux64.h:  Don't include other target
4742         macro header files.  Now handled via tm_file.
4743
4744         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
4745         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
4746         are defined before use.
4747
4748 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
4749
4750         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
4751         code generation only for Gnu assembler.
4752
4753 2001-09-18  Catherine Moore  <clm@redhat.com>
4754
4755         * config/stormy16 (LIB_SPEC): Remove -lnosys.
4756
4757 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
4758
4759         * config/mips/mips.c (mips_frame_set): New.
4760         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
4761         a parallel frame-related expression with a set for each register.
4762
4763 2001-09-18  Philip Blundell  <philb@gnu.org>
4764
4765         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
4766         header files.
4767
4768 2001-09-17  Dale Johannesen  <dalej@apple.com>
4769
4770         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
4771         * config/rs6000/aix.h (FIXED_R2): Define.
4772         * config/rs6000/darwin.h (FIXED_R2): Define.
4773         * config/rs6000/sysv4.h (FIXED_R2): Define.
4774
4775 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
4776
4777         * except.c (dw2_build_landing_pads): New local
4778         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
4779         barrier after clobbers.  Fixes c++/4012.
4780
4781 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4782
4783         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
4784
4785 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
4786
4787         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
4788         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
4789
4790 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4791
4792         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
4793         alloca/strcpy.
4794
4795 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4796
4797         * cpphash.h (_cpp_lex_direct): New.
4798         * cpplex.c (_cpp_lex_token): Update.
4799         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
4800         and increment that pointer.
4801         * cppmacro.c (alloc_expansion_token): New.
4802         (lex_expansion_token): Lex macro expansion directly into
4803         macro storage.
4804
4805 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
4806
4807         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
4808
4809 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
4810
4811         * basic-block.h (free_bb_for_insn): Declare.
4812         * bb-reorder.c (label_for_bb): Use block_label.
4813         (emit_jump_to_block_after): Remove.
4814         (insert_intra_1): Do not update block_for_insn.
4815         (insert_inter_bb_scope_notes): Likewise; update bb->end
4816         * cfg.c (free_bb_for_insn): New.
4817         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
4818         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
4819         (commit_one_edge_insertion): Likewise.
4820         (commit_one_edge_insertion): Do not update BB boundary.
4821         (commit_edge_insertions): Do not call compute_bb_for_insn.
4822         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
4823         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
4824         (merge_blocks_move_successor_nojumps): Likewise.
4825         (try_crossjump_to_edge): Do not update block_for_insn.
4826         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
4827         * df.c (df_pattern_emit_later): Do not update BB boundary.
4828         (df_jump_pattern_emit_after): Likewise.
4829         (df_insn_move_before): Use emit_insn_before.
4830         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
4831          properly.
4832         (add_insn_after, add_insn_before, emit_insns_after): Update BB
4833         boundaries and basic_block_for_insn.
4834         (reorder_insns_nobb): Rename from reorder_insns.
4835         (reorder_insns): New.
4836         (emit_block_insn_before, emit_block_insn_after): Kill.
4837         * flow.c (check_function_return_warnings): Do not call
4838         compute_bb_for_insn; Do not free basic_block_for_insn.
4839         (attempt_auto_inc): Do not update basic_block_for_insn.
4840         * function.c (emit_return_into_block): Likewise;
4841         do not update BB boundaries.
4842         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
4843         (insert_insn_end_bb): Use emit_insn_before; Likewise.
4844         (pre_insert_copy_insn): Likewise.
4845         (update_ld_motion_notes): Likewise.
4846         (insert_insn_start_bb): Likewise.
4847         (replace_store_insn): Likewise.
4848         * ifcvt.c (noce_process_if_block): Likewise.
4849         (if_convert): Do not call compute_bb_for_insn.
4850         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
4851         Use emit_insn_before and emit_insn_after.
4852         * recog.c (split_all_insns): Do not update BB boundaries;
4853         Do not call compute_bb_for_insn.
4854         (peephole2_optimize): Do not update BB boundaries.
4855         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
4856         emit_insn_before.
4857         (emit_swap_insn): Likewise.
4858         (convert_regs_1): Likewise.
4859         * reload1.c (reload): Call compute_bb_for_insn.
4860         * rtl.h (reorder_insns_nobb): Declare.
4861         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
4862         * toplev.c (rest_of_compilation): Call free_bb_for_insn
4863         at places CFG is invalidated; do not call compute_bb_for_insn.
4864
4865         * cfg.c (expunge_block): Invalidate BB structure.
4866
4867         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
4868         array.
4869
4870         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
4871
4872 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4873
4874         * cpphash.h (_cpp_lex_token): Update prototype.
4875         * cpplex.c (_cpp_lex_token): New prototype.
4876         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
4877         lex_macro_node, read_flag, do_pragma_poison): Update.
4878         * cppmacro.c (cpp_get_token, parse_params,
4879         lex_expansion_token): Update.
4880
4881 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4882
4883         * cppmain.c (scan_translation_unit): Don't worry about
4884         putting a space after hashes.
4885         * cpplib.c (directive_diagnostics): New.
4886         (_cpp_handle_directive): Update to use directive_diagnostics.
4887         (run_directive): Don't toggle prevent_expansion.
4888         (do_line): Backup in case of the line extension.
4889         * cpplib.h (cpp_lexer_pos): Remove.
4890         * cppmacro.c (_cpp_create_definition): Precede a leading #
4891         with whitespace.
4892
4893 2001-09-15  Richard Henderson  <rth@redhat.com>
4894
4895         * c-typeck.c (comptypes): Handle zero-length arrays properly.
4896
4897 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4898
4899         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
4900
4901 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4902
4903         PR preprocessor/3571
4904         * tradcpp.c (handle_directive): Skip non-vertical space.
4905
4906 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4907
4908         * cppmain.c (setup_callbacks): Set line callback only
4909         if outputting preprocessed source.
4910
4911 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4912
4913         * collect2.c (main): Const-ification.
4914         * gcc.c (translate_options, process_command): Use xstrdup in
4915         lieu of xmalloc/strcpy.
4916         (main): Use concat in lieu of xmalloc/strcpy/strcat.
4917
4918 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4919
4920         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
4921         example.
4922
4923 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4924
4925         * scan-decls.c (scan_decls): Fix typo.
4926
4927 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4928
4929         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
4930         Split mlstring_pos into mls_line and mls_col.
4931         * cppinit.c (cpp_create_reader): Initialize line to 1.
4932         (cpp_destroy): Free tokenruns.
4933         (push_include): Don't update lexer_pos.
4934         * cpplex.c (unterminated, parse_string): Update.
4935         (lex_token): Don't update lexer_pos, update.
4936         * cpplib.c (if_stack): Save line instead of line + col.
4937         (start_directive, _cpp_do__Pragma, do_else, do_elif,
4938         push_conditional, _cpp_pop_buffer): Update.
4939         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
4940         (_cpp_create_definition): Update.
4941
4942 2001-09-15  Eric Christopher  <echristo@redhat.com>
4943
4944         * config/mips/abi64.h: Add support for MEABI.
4945
4946 2001-09-15  Eric Christopher  <echristo@redhat.com>
4947
4948         * config/mips/mips.md: Add unspec #2.
4949         (reload_indi): Use.
4950         (reload_outdi): Ditto.
4951         (reload_outsi): Ditto.
4952         (HILO_delay): New.
4953
4954 2001-09-15  Eric Christopher  <echristo@redhat.com>
4955             Jason Eckhardt  <jle@redhat.com>
4956
4957         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
4958         * config/mips/isa32-linux.h: New file.
4959         * config/mips/isa3264.h: Ditto.
4960         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
4961         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
4962         (output_block_mode): Support MEABI.
4963         (function_arg): Ditto. Fix floating point arg passing.
4964         (mips_va_start): Ditto.
4965         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
4966         processors.
4967         (mips_asm_file_start): Add new section to pass abi to gdb.
4968         (function_arg_pass_by_reference): Support MEABI.
4969         (mips_parse_cpu): Support mips32 and mips64 processors.
4970         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
4971         TARGET_MIPS5KC.  Support isa32 and isa64.
4972         (processor_type): Add r4kc, r5kc, r20kc.
4973         (GENERATE_MULT3_SI): New.
4974         (GENERATE_MULT3_DI): Ditto.
4975         (GENERATE_MULT3): Remove.
4976         (ISA_HAS_64BIT_REGS): Add isa == 64.
4977         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
4978         (ISA_HAS_MADD_MSUB): New.
4979         (ISA_HAS_CLZ_CLO): Ditto.
4980         (ISA_HAS_DCLZ_DCLO): Ditto.
4981         (ABI_GAS_ASM_SPEC): New.
4982         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
4983         (ASM_SPEC): Ditto.
4984         (LINK_SPEC): Ditto.
4985         (SUBTARGET_CC1_SPEC): Ditto.
4986         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
4987         (PAD_VARARGS_DOWN): Support MEABI.
4988         (HARD_REGNO_NREGS): Move to mips.c.
4989         (ASM_OUTPUT_IDENT): Add #undef.
4990         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
4991         (mulsi3): Use GENERATE_MULT3_SI.
4992         (mulsi3_mult3): Ditto.  Support mips32, mips64.
4993         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
4994         (mul_sub_si): New pattern.
4995         (unnamed splitters): New.
4996         (muldi3): Use GENERATE_MULT3_DI.
4997         (muldi3_internal2): Ditto.
4998         (movdicc): Support mips32.
4999         * config/mips/t-isa3264: New file.
5000
5001 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
5002
5003         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
5004         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
5005         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
5006
5007         * reorg.c (fill_slots_from_thread): After call to
5008         steal_delay_list_from_target, update own_thread as new_thread may
5009         have branched.
5010
5011 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5012
5013         * cpperror.c (print_location): Take line and column, for
5014         default positioning use the previously lexed token.
5015         (_cpp_begin_message): Take line and column.
5016         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
5017         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
5018         * cpphash.h (_cpp_begin_message): Update prototype.
5019         * cppinit.c (push_include): Don't set output line.
5020         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
5021         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
5022         (do_pragma): Kludge for front ends.  Don't expand macros at all.
5023         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
5024         (struct cpp_token): Remove output_line.
5025         (struct cpp_callbacks): New member line_change.
5026         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
5027         cpp_get_token): Preserve BOL flag.
5028         (cpp_get_line): Remove.
5029         (_cpp_backup_tokens): Remove useless abort().
5030         * cppmain.c (cb_line_change): New.
5031         (scan_translation_unit): Don't worry about starting new lines here.
5032         * scan-decls.c (scan_decls): Update.
5033         * c-lex.c (c_lex, init_c_lex): Update.
5034         (cb_line_change, src_lineno): New.
5035
5036 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
5037
5038         * tree.c (append_random_chars): Generate the random
5039         characters in a reproducable fashion.
5040
5041 2001-09-14  Richard Henderson  <rth@redhat.com>
5042
5043         * config/i386/i386.c (internal_label_prefix): New.
5044         (internal_label_prefix_len): New.
5045         (override_options): Set them.
5046         (local_symbolic_operand): New.
5047         (legitimate_pic_address_disp_p): Use it.
5048         (legitimize_pic_address): Likewise.
5049
5050 2001-09-14  Marc Espie <espie@openbsd.org>
5051
5052         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
5053         correctly.
5054
5055 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5056
5057         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
5058         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
5059
5060 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
5061
5062         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
5063         invocation of SUBREG_REGNO_OFFSET.
5064
5065         * haifa-sched.c: Fix typo in FSF copyright statement.
5066         * sched-deps.c: Fix typo in FSF copyright statement.
5067         * sched-ebb.c: Fix typo in FSF copyright statement.
5068         * sched-rgn.c: Fix typo in FSF copyright statement.
5069         * sched-vis.c: Fix typo in FSF copyright statement.
5070
5071         * config.gcc: Move inclusion of arm elf specific header files
5072         from the files themselves into the tm_file variable.  Make
5073         sure that elfos.h is included before target specific elf
5074         headers.
5075         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
5076         already defined.
5077         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
5078         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
5079         ASM_OUTPUT_CASE_LABEL): Protect definition.
5080         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
5081         not already defined.
5082         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
5083         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
5084         Remove duplicate definition.
5085         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
5086         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
5087         (RDATA_SECTION_FUNCTION): Remove redundant definition.
5088         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
5089         Remove inclusion of arm/elf.h.
5090         * config/arm/unknown-elf.h: as for conix-elf.h.
5091         (STARTFILE_SPEC): Include crti.o and crtn.o.
5092         * config/arm/linux-elf.h: as for conix-elf.h.
5093         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
5094         * config/arm/strongarm-elf.h: Remove inclusion of
5095         unknown-elf.h.
5096         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
5097         * config/arm/unknown-elf-oabi.h: Remove inclusion of
5098         unknown-elf.h and elf.h.
5099         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
5100         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
5101         ASM_WEAKEN_LABEL): Remove redundant definition.
5102         * config/arm/elf.h: Test for inclusion of elfos.h
5103         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
5104         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
5105         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
5106         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
5107         redundant definition.
5108         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
5109         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
5110         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
5111         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
5112         Add rules to build crti.o and crtn.o
5113         * crti.asm: New file.
5114         * crtn.asm: New file.
5115
5116 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5117
5118         * c-parse.in (_yylex): Use _cpp_backup_tokens.
5119         * cpphash.h (struct tokenrun): Add prev.
5120         (struct lexer_state): Remove bol.
5121         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
5122         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
5123         : Remove.
5124         * cppinit.c (cpp_create_reader): Don't set bol.
5125         (cpp_destroy): Don't free lookaheads.
5126         * cpplex.c (lex_directive): Remove.
5127         (next_tokenrun): Update.
5128         (_cpp_lex_token): Clean up logic.
5129         (lex_token): Update to return a pointer to lexed token, since it
5130         can move to the start of the buffer.  Simpify newline handling.
5131         * cpplib.c (SEEN_EOL): Update.
5132         (skip_rest_of_line): Remove lookahead stuff.
5133         (end_directive): Line numbers are already incremented.  Revert
5134         to start of lexed token buffer if we can.
5135         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
5136         parse_answer): Use _cpp_backup_tokens.
5137         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
5138         instead.  Don't check for EOL.
5139         (do_include_common, do_line, do_pragma_system_header): Use
5140         skip_rest_of_line.
5141         * cpplib.h (BOL, _cpp_backup_tokens): New.
5142         * cppmacro.c (save_lookahead_token, take_lookahead_token,
5143         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
5144         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
5145         (builtin_macro): Don't use cpp_get_line.
5146         (cpp_get_line): Short term kludge.
5147         (parse_arg): Handle directives in arguments here.  Back up when
5148         appropriate.  Store EOF at end of argument list.
5149         (funlike_invocation_p): Use _cpp_backup_tokens.
5150         (push_arg_context): Account for EOF at end of list.
5151         (cpp_get_token): Remove lookahead stuff.  Update.
5152
5153 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5154
5155         * c-parse.in (yyerror): Const-ification and/or static-ization.
5156         * c-typeck.c (push_member_name): Likewise.
5157         * collect2.c (main): Likewise.
5158         * dbxout.c (dbxout_parms): Likewise.
5159         * diagnostic.c (format_with_decl): Likewise.
5160         * dwarf2out.c (output_ranges): Likewise.
5161         * dwarfout.c (fundamental_type_code): Likewise.
5162         * except.c (dw2_output_call_site_table): Likewise.
5163         * gcc.c (do_spec_1): Likewise.
5164         * genopinit.c (optabs): Likewise.
5165         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
5166         gen_declaration_1, handle_impent): Likewise.
5167         * protoize.c (default_include, in_system_include_dir, abspath):
5168         Likewise.
5169         * sched-vis.c (visualize_stall_cycles): Likewise.
5170         * sdbout.c (plain_type_1, sdbout_end_function,
5171         sdbout_end_epilogue): Likewise.
5172         * varasm.c (decode_reg_name): Likewise.
5173
5174         * 1750a.c (mod_regno_adjust): Likewise.
5175         * alpha.c (alpha_write_one_linkage,
5176         unicosmk_output_default_externs): Likewise.
5177         * arm.c (arm_condition_codes): Likewise.
5178         * arm.h (arm_condition_codes): Likewise.
5179         * avr.c (output_movsisf, encode_section_info): Likewise.
5180         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
5181         Likewise.
5182         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
5183         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
5184         * m88k.c (output_function_profiler): Likewise.
5185         * mips.c (mips_output_conditional_branch): Likewise.
5186         * ns32k.c (ns32k_out_reg_names): Likewise.
5187         * ns32k.h (ns32k_out_reg_names): Likewise.
5188         * pj.c (pj_output_rval): Likewise.
5189         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
5190         * sparc.c (sparc_flat_function_prologue,
5191         sparc_flat_function_epilogue): Likewise.
5192
5193 2001-09-13  Markus Werle <numerical.simulation@web.de>
5194             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5195
5196         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
5197         Aachen University of Technology".
5198
5199 2001-09-13  Andreas Schwab  <schwab@suse.de>
5200
5201         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
5202         C99.
5203
5204 2001-09-13  Richard Henderson  <rth@redhat.com>
5205
5206         * config/alpha/alpha.c (small_symbolic_operand): New.
5207         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
5208         (some_operand, input_operand): Don't handle HIGH.
5209         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
5210         (alpha_expand_mov): Likewise.
5211         (print_operand) [H]: Just print HIGH symbol.
5212         (print_operand_address): Handle small data.
5213         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
5214         (TARGET_SWITCHES): Add -msmall-data/large-data.
5215         (PIC_OFFSET_TABLE_REGNUM): New.
5216         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
5217         (PREDICATE_COES): Update.
5218         * config/alpha/alpha.md (adddi_er_high): New.
5219         (adddi_er_low): Handle small data.
5220         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
5221         prefer .sdata to .rodata.
5222         (SELECT_RTX_SECTION): Likewise.
5223
5224 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
5225
5226         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
5227         defining __size_t and leaving size_t undefined.
5228
5229 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
5230
5231         * basic-block.h (expunge_block): Declare.
5232         * cfg.c (expunge_block): Remove static declaration.
5233
5234 2001-09-12  Richard Henderson  <rth@redhat.com>
5235
5236         * integrate.c (copy_insn_list): Copy label name from
5237         NOTE_INSN_DELETED_LABEL.
5238
5239 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5240
5241         * c-common.c (c_tree_code_name): Const-ification.
5242         * c-decl.c (c_decode_option): Likewise.
5243         * c-typeck.c (warn_for_assignment): Likewise.
5244         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
5245         Likewise.
5246         * cppinit.c (output_deps): Likewise.
5247         * dependence.c (dependence_string, direction_string): Likewise.
5248         * dwarf2out.c (output_ranges): Likewise.
5249         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
5250         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
5251         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
5252         standard_startfile_prefix, standard_startfile_prefix_1,
5253         standard_startfile_prefix_2, tooldir_base_prefix,
5254         standard_bindir_prefix, find_a_file): Likewise.
5255         * genattrtab.c (make_length_attrs): Likewise.
5256         * gencheck.c (tree_codes): Likewise.
5257         * genemit.c (gen_split): Likewise.
5258         * genrecog.c (special_mode_pred_table): Likewise.
5259         * graph.c (graph_ext): Likewise.
5260         * protoize (default_include): Likewise.
5261         * reload.c (reload_when_needed_name): Likewise.
5262         * sched-vis.c (visualize_stall_cycles): Likewise.
5263         * tlink.c (recompile_files): Likewise.
5264         * toplev.c (decode_g_option): Likewise.
5265         * tradcpp.c (output_deps): Likewise.
5266         * varasm.c (decode_reg_name): Likewise.
5267
5268         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
5269         Const-ification.
5270         * arm.md: Likewise.
5271         * avr.c (avr_regnames, encode_section_info): Likewise.
5272         * c4x.c (float_reg_names): Likewise.
5273         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
5274         * elfos.h (const_section): Likewise.
5275         * i386.c (ix86_comp_type_attributes): Likewise.
5276         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
5277         * ia64/aix.h (UNIQUE_SECTION): Likewise.
5278         * ia64.c (type_names): Likewise.
5279         * m68hc11.c (reg_class_names): Likewise.
5280         * m88k.c (m_options): Likewise.
5281         * mips.c (mips_output_conditional_branch, mips_unique_section):
5282         Likewise.
5283         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5284         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
5285         ultra_code_names): Likewise.
5286         * sparc.h (OVERRIDE_OPTIONS): Likewise.
5287
5288 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
5289
5290         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
5291         Use --fatal-warnings option for gas.
5292         * configure: Rebuilt.
5293
5294 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5295
5296         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
5297
5298 2001-09-11  Jim Wilson  <wilson@redhat.com>
5299
5300         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
5301
5302 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5303
5304         * builtins.c (c_strlen): Treat an offset too large for a
5305         HOST_WIDE_INT as out of range.
5306
5307 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
5308
5309         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
5310         (EDGE_CRITICAL_P): New predicate.
5311         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
5312         handling.
5313         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
5314         (dump_edge_info): Remove "crit".
5315         * cfganal.c (mark_critical_edges): Kill.
5316         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
5317         * cfgcleanup.c (cleanup_cfg): Likewise.
5318         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
5319         (find_spanning_tree): Likewise.
5320         * reg-stack.c (convert_regs_1): Likewise.
5321         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
5322
5323         * basic-block.h (create_basic_block_structure): New.
5324         (create_basic_block): Update prototype.
5325         (force_nonfallthru): New.
5326         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
5327         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
5328         handle updating of block_for_insn, creating of empty BBs and BBs at
5329         the end of INSN chain.
5330         (create_basic_block): New function.
5331         (split_block): Use create_basic_block.
5332         (force_nonfallthru_and_redirect): Break out from ...; cleanup
5333         (redirect_edge_and_branch_force): ... here.
5334         (force_nonfallthru): New.
5335         (split_edge): Rewrite to use force_nonfallthru and create_block.
5336         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
5337         (find_basic_blocks): Free basic_block_for_insn.
5338         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
5339
5340         * cfg.c: Fix formating.
5341         * cfgcleanup.c: Fix formating.
5342         (merge_blocks, tail_recursion_label_p): Return bool.
5343         (merge_blocks_move_predecessor_nojumps,
5344          merge_blocks_move_successor_nojumps): Return void.
5345
5346 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
5347
5348         * configure.in: Check whether assembler supports section merging.
5349         * config.in: Rebuilt.
5350         * configure: Rebuilt.
5351         * varasm.c (variable_section, output_constant_pool): Pass alignment
5352         to SELECT_SECTION and SELECT_RTX_SECTION.
5353         (mergeable_string_section): New.
5354         (mergeable_constant_section): New.
5355         (default_elf_asm_named_section): Output SECTION_MERGE and
5356         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
5357         * output.h (mergeable_string_section): New.
5358         (mergeable_constant_section): New.
5359         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
5360         * toplev.c (flag_merge_constants): New.
5361         (f_options): Add -fmerge-constants and -fmerge-all-constants
5362         options.
5363         (toplev_main): Default to -fno-merge-constants if not optimizing.
5364         * flags.h (flag_merge_constants): Add extern.
5365         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
5366         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
5367         argument.
5368         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
5369         Define if assembler has working .subsection -1 support.
5370         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
5371         Put constant into special SHF_MERGE sections if the linker should
5372         attempt to merge duplicates.
5373         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
5374         macro argument.
5375         Put constant into special SHF_MERGE sections if the linker should
5376         attempt to merge duplicates.
5377         * config/alpha/elf.h: Likewise.
5378         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
5379         has working .subsection -1 support.
5380         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
5381         SELECT_SECTION.
5382         * config/svr3.h: Likewise.
5383         * config/darwin.h: Likewise.
5384         * config/arm/aof.h: Likewise.
5385         * config/arm/linux-elf.h: Likewise.
5386         * config/avr/avr.h: Likewise.
5387         * config/c4x/c4x.h: Likewise.
5388         * config/d30v/d30v.h: Likewise.
5389         * config/i386/dgux.h: Likewise.
5390         * config/i386/osfrose.h: Likewise.
5391         * config/i386/sco5.h: Likewise.
5392         * config/i386/svr3gas.h: Likewise.
5393         * config/ia64/aix.h: Likewise.
5394         * config/m32r/m32r.h: Likewise.
5395         * config/m68k/m68k.h: Likewise.
5396         * config/m88k/dgux.h: Likewise.
5397         * config/m88k/m88k.h: Likewise.
5398         * config/mcore/mcore-pe.h: Likewise.
5399         * config/mips/mips.h: Likewise.
5400         * config/pa/pa.h: Likewise.
5401         * config/pa/pa-linux.h: Likewise.
5402         * config/romp/romp.h: Likewise.
5403         * config/rs6000/sysv4.h: Likewise.
5404         * config/rs6000/xcoff.h: Likewise.
5405         * config/s390/linux.h: Likewise.
5406         * config/sparc/sparc.h: Likewise.
5407         * config/sparc/sysv4.h: Likewise.
5408         * config/stormy16/stormy16.h: Likewise.
5409         * config/v850/v850.h: Likewise.
5410         * config/vax/vms.h: Likewise.
5411         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
5412         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
5413         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
5414         default_elf_asm_named_section for SHF_MERGE sections.
5415
5416 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
5417
5418         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
5419         is OK.
5420
5421 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5422
5423         * c-common.c (split_specs_attrs): Allow for empty attributes with
5424         empty TREE_PURPOSE.  Fixes PR c/4294.
5425
5426 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
5427
5428         * basic-block.h (cached_make_edge, make_single_succ): New.
5429         (make_edge): Remove first parameter.
5430         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
5431         * cfg.c (cached_make_edge): Rename from make_edge; return newly
5432         created edge; use obstack allocation.
5433         (make_edge, make_single_succ_edge): New.
5434         (first_removed_edge): New static variable.
5435         (init_flow): Initialize first_removed_edge and n_edges.
5436         (clear_edges): Use remove_edge.
5437         (flow_delete_block): Likewise.
5438         (remove_edge): Add removed edges to the removed edges list.
5439         (split_block, redirect_edge_and_branch_force, split_edge):
5440         Use make_edge.
5441         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
5442         (add_noreturn_fake_exit_edges): Likewise.
5443         (connect_infinite_loops_to_exit): Liekwise.
5444         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
5445         Use cached_make_edge.
5446         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
5447         * profile.c (branch_prob): Update make_edge call.
5448         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5449
5450 2001-09-11  Richard Henderson  <rth@redhat.com>
5451
5452         * config/alpha/alpha.c: Tidy formatting.
5453         (local_symbolic_operand): Verify mode.
5454         (alpha_sa_mask): Ignore unicos for eh_return.
5455         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
5456         * config/alpha/alpha.md (umk divsi patterns): Remove.
5457         (extendsfdf2): Remove unicos check.
5458         (tablejump): Merge vms and unicos code; always use direct set
5459         plus label_ref use.
5460
5461 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5462
5463         * config.gcc (alpha*-*-unicosmk*): New target.
5464
5465         * config/alpha/alpha-protos.h (symbolic_operand,
5466         unicosmk_add_call_info_word, unicosmk_add_extern,
5467         unicosmk_defer_case_vector, unicosmk_unique_section,
5468         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
5469         unicosmk_asm_file_start, unicosmk_asm_file_end,
5470         unicosmk_output_common): Declare.
5471
5472         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
5473         direct_return, function_arg, alpha_va_start, alpha_va_arg,
5474         alpha_does_function_need_gp, alpha_end_function): Support Cray
5475         Unicos/Mk.
5476         (alpha_init_machine_status, alpha_mark_machine_status,
5477         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
5478         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
5479         unicosmk_asm_named_section, unicosmk_insert_attributes,
5480         unicosmk_section_type_flags, symbolic_operand,
5481         unicosmk_output_module_name, unicosmk_output_default_externs,
5482         unicosmk_output_dex, unicosmk_output_externs,
5483         unicosmk_output_addr_vec, unicosmk_ssib_name,
5484         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
5485         unicosmk_asm_file_end, unicosmk_output_common,
5486         unicosmk_section_type_flags, unicosmk_unique_section,
5487         unicosmk_add_call_info_word, unicosmk_text_section,
5488         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
5489         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
5490         unicosmk_dex_count, unicosmk_special_name): New.
5491         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
5492         TARGET_ABI_UNICOSMK.
5493         (get_aligned_mem, alpha_expand_unaligned_load,
5494         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
5495         alpha_expand_unaligned_store_words): Support big-endian mode.
5496         (print_operand): Likewise. New format specifier 't'. Use
5497         TARGET_AS_SLASH_BEFORE_SUFFIX.
5498         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
5499         (alpha_pv_save_size): Update with above change.
5500         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
5501         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
5502         Unicos/Mk.
5503
5504         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
5505         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
5506         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
5507         (EXTRA_CONSTRAINT): New constraint 'U'.
5508         (PREDICATE_CODES): Add symbolic_operand.
5509
5510         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
5511         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
5512         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
5513         (integer division and modulus patterns): Split in default and
5514         Unicos/Mk versions.
5515         (*divmodsi_internal, *divmoddi_internal): Disable for
5516         TARGET_ABI_UNICOSMK.
5517         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
5518         little-endian and big-endian versions.
5519         (ext, ins, msk): Likewise.
5520         (extv, extzv, insv): Support big-endian mode.
5521         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
5522         (call_umk, call_value_umk, *call_umk, tablejump_umk,
5523         *tablejump_umk_internal, *call_value_umk): New.
5524         (*movdi_nofix): Add pattern for loading an address into a register on
5525         TARGET_ABI_UNICOSMK.
5526         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
5527         (umk_mismatch_args, arg_home_umk): New.
5528         (various insns): Don't use mov, fmov, nop, fnop and unop.
5529         (realign): Support TARGET_ABI_UNICOSMK.
5530
5531         * config/alpha/unicosmk.h: New file.
5532         * config/alpha/t-unicosmk: New file.
5533
5534         * fixinc/inclhack.def (unicosmk_restrict): New.
5535         * fixinc/fixincl.x: Regenerate.
5536
5537         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
5538         (wchar_t): Check for and define __WCHAR_T__.
5539
5540 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
5541
5542         * combine.c (simplify_shift_const): Treat shifts by the mode
5543         size as undefined.
5544
5545 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5546
5547         * cpphash.h (struct tokenrun): New.
5548         (struct cpp_context): New member bol.
5549         (struct cpp_reader): New members.
5550         (_cpp_init_tokenrun): New.
5551         * cppinit.c (cpp_create_reader): Set up the token runs.
5552         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
5553         (lex_token): New internalised version of _cpp_lex_token.  Don't
5554         handle directives or the multiple include opimisation here any
5555         more.  Simply lex a token.
5556         * cpplib.c (run_directive): Clear bol.
5557         (_cpp_pop_buffer): Set bol.
5558         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
5559         arguments.
5560
5561 2001-09-11  Michael Meissner  <meissner@redhat.com>
5562
5563         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
5564         give an error if the user uses -mfp32.
5565         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
5566         default options.
5567         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
5568         floating point register size.
5569         (EXTRA_SPECS): Add CPP_FPR_SPEC.
5570
5571         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
5572         HOST_WIDE_INT_PRINT_DEC to properly print the result of
5573         int_size_in_bytes.
5574         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
5575         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
5576
5577 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
5578
5579         * dbxout.c (dbxout_parms): Fix typo in comment.
5580         * unroll.c (loop_find_equiv_value): Ditto.
5581         * toplev.c (rest_of_compilation): Ditto.
5582         * loop.c (scan_loop): Ditto.
5583         * dwarf2out.c (struct dw_fde_struct): Ditto.
5584
5585 2001-09-10  Zack Weinberg  <zackw@panix.com>
5586
5587         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
5588         copying identifier when we're just going to throw it away.
5589         (parse_identifier_slow): New routine to handle abnormal cases.
5590         (_cpp_lex_token): Update call site.
5591
5592         * hashtable.c (ht_lookup): Don't assume that the string we've
5593         been given is NUL-terminated.
5594         * system.h: #define __builtin_expect(a, b) to (a) if not
5595         GCC >=3.0.
5596
5597 2001-09-10  Michael Meissner  <meissner@redhat.com>
5598
5599         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
5600         binutils, gdb.
5601
5602 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
5603
5604         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
5605
5606 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5607
5608         * builtins.c (c_getstr): Correct thinko in last change and further
5609         cleanup.
5610
5611 2001-09-10  Tim Freeman <tim@fungibole.com>
5612
5613         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
5614         into varray's and register them as roots with the garbage
5615         collector so they are not collected too soon.
5616
5617 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
5618
5619         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
5620         New.
5621         * basic-block.h (flow_obstack, label_value_list,
5622         tail_recursion_label_list): Declare
5623         (tidy_fallthru_edges): Declare.
5624         (expunge_block, last_loop_beg_note): Delete.
5625         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
5626         * cfg.c: New file
5627         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
5628         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
5629         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
5630         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
5631         expunge_block, flow_delete_block, compute_bb_for_insn,
5632         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
5633         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
5634         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
5635         try_redirect_by_replacing_jump, last_loop_beg_note,
5636         redirect_edge_and_branch, redirect_edge_and_branch_force,
5637         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
5638         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
5639         commit_edge_insertions, dump_flow_info, debug_flow_info,
5640         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
5641         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
5642         Move here from flow.c
5643         * cfganal.c: New file.
5644         (forwarder_block_p, can_fallthru, mark_critical_edges,
5645          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
5646          find_unreachable_blocks, create_edge_list, free_edge_list,
5647          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
5648          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
5649          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
5650          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
5651          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
5652          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
5653         Move here from flow.c
5654         * cfgbuild.c: New file
5655         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
5656          make_edges, find_basic_blocks_1, find_basic_blocks,
5657          find_sub_basic_blocks): Move here from flow.c
5658         * cfgcleanup.c: New file.
5659         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
5660          merge_blocks_move_predecessor_nojumps,
5661          merge_blocks_move_successor_nojumps, merge_blocks,
5662          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
5663          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
5664         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
5665         if succeeded.
5666         * cfgloop.c: New file
5667         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
5668          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
5669          flow_loop_exit_edges_find, flow_loop_nodes_find,
5670          flow_loop_pre_header_scan, flow_loop_pre_header_find,
5671          flow_loop_tree_node_add, flow_loops_tree_build,
5672          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
5673          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
5674         Move here from flow.c
5675         * flow.c: Remove everything moved elsewhere
5676         * output.h (cleanup_cfg): Return bool.
5677
5678         * bb-reorder.c (reorder_block_def): Remove 'index'.
5679         (insert_intra_1): Add argument BB, set block for new note.
5680         (make_reorder_chain): Do not depdent on BB indexes.
5681         (make_reorder_chain_1): Do not use BB indexes.
5682         (label_for_bb): Likewise; set BB for new insn.
5683         (emit_jump_to_block_after): Likewise.
5684         (fixup_reoder_chain): Sanity check that all basic blocks
5685         are chained; verify newly created insn chain; remove
5686         undocnitional jump simplifying; Do not use BB indexes;
5687         properly initialize count and frequency information;
5688         dump reordered sequence.
5689         (insert_intra_bb_scope_notes): update call of insert_intra_1.
5690         (insert_inter_bb_scope_notes): Set block for new insn.
5691         (reorder_basic_blocks): Dump flow info before reoredering.
5692
5693 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5694
5695         * alias.c (clear_reg_alias_info): Use K&R format definition.
5696         Avoid unsigned warning.
5697         * builtins.c: Use "unsigned int", not "unsigned".
5698         (target_char_cast): Use host_integerp and tree_low_cst.
5699         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
5700         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
5701         (c_getstr): Likewise.
5702         (std_expand_builtin_va_arg): Use int_size_in_bytes.
5703         (builtin_memcpy_read_str): Avoid unsigned warning.
5704         (expand_builtin_memcpy): Alignments are unsigned.
5705         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
5706         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
5707         * predict.c (expensive_function_p): LIMIT now unsigned.
5708         * resource.c (mark_target_live_regs): Make some vars unsigned.
5709         * sdbout.c: Use "unsigned int", not "unsigned".
5710         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
5711         (sdbout_source_line): Likewise.
5712         (sdbout_record_type_name): Remove "const" for NAME declaration.
5713         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
5714
5715 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
5716
5717         * calls.c (store_one_arg): Expand comment.
5718
5719 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5720
5721         * calls.c (store_one_arg): Make sure that the entire argument is
5722         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
5723
5724 2001-09-09  Richard Henderson  <rth@redhat.com>
5725
5726         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
5727
5728 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
5729
5730         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
5731
5732 2001-09-09  Richard Henderson  <rth@redhat.com>
5733
5734         * config/alpha/alpha.c (alpha_next_sequence_number): New.
5735         (alpha_this_literal_sequence_number): New.
5736         (alpha_this_gpdisp_sequence_number): New.
5737         (some_operand, input_operand): Add HIGH.
5738         (local_symbolic_operand): New.
5739         (alpha_encode_section_info): New.
5740         (alpha_legitimate_address_p): Allow LO_SUM.
5741         (alpha_legitimize_address): Generate HIGH+LO_SUM.
5742         (alpha_expand_mov): Likewise.
5743         (secondary_reload_class): Check memory_operand not general_operand
5744         for FP_REGS test.
5745         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
5746         (alpha_expand_unaligned_store): Likewise.
5747         (alpha_expand_unaligned_load_words): Likewise.
5748         (alpha_expand_unaligned_store_words): Likewise.
5749         (alpha_expand_block_clear): Likewise.
5750         (print_operand): Handle %#, %*, %H.
5751         (print_operand_address): Handle LO_SUM.
5752         (find_lo_sum): New.
5753         (alpha_does_function_need_gp): Use it.
5754         (alpha_expand_block_move): Fix signed compare warnings.
5755         (alpha_sa_mask, alpha_align_insns): Likewise.
5756         * config/alpha/alpha-protos.h: Update.
5757         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
5758         (MASK_EXPLICIT_RELOCS): New.
5759         (TARGET_SWITCHES): Add -mexplicit-relocs.
5760         (EXTRA_CONSTRAINT): Add 'T'.
5761         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
5762         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
5763         (ENCODE_SECTION_INFO): Out line.
5764         (REDO_SECTION_INFO_P): New.
5765         (STRIP_NAME_ENCODING): New.
5766         (ASM_OUTPUT_LABELREF): New.
5767         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
5768         (PREDICATE_CODES): Update.
5769         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
5770         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
5771         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
5772         builtin_setjmp_receiver_er, exception_receiver_1_er,
5773         call_value_osf_1_er): New patterns.
5774         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
5775         (movqi, movhi, movsi): Add explicit $31 base register to lda.
5776         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
5777         (FINAL_PRESCAN_INSN): New.
5778
5779 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
5780
5781         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
5782
5783 2001-09-08  Andreas Jaeger  <aj@suse.de>
5784
5785         * i386.h (TARGET_SWITCHES): Fix description.
5786
5787 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
5788
5789         * rs6000.c (num_insns_constant): Compute number of instructions
5790         more accurately.
5791
5792         * doc/install.texi: Explain AIX exception handling work-around.
5793         Update URL for AIX fixes.
5794
5795 2001-09-07  Jim Wilson  <wilson@redhat.com>
5796
5797         * alias.c (clear_reg_alias_info): New.
5798         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
5799         * rtl.h (clear_reg_alias_info): Declare.
5800
5801 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5802
5803         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
5804         available.
5805         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
5806         (m16m,edivm,emulm): Change declaration to match definition.
5807
5808 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
5809
5810         * reload.c (push_reload): Check for subreg_lowpart_p instead of
5811         SUBREG_BYTE being 0 when determining if the inner part of a subreg
5812         can be reloaded.
5813
5814 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5815
5816         * c-common.c (signed_or_unsigned_type): Handle machine mode types
5817         which have no corresponding C type.
5818         * fold_const.c (target_isinf,target_isnan,target_negative): Update
5819         the representation of 64-bit doubles to work with 64-bit ints.
5820
5821 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
5822
5823         * config/mips/mips.c (override_options): Do not override ISA when ABI
5824         specified if MIPS_CPU_STRING_DEFAULT was specified.
5825
5826 2001-09-07  Richard Henderson  <rth@redhat.com>
5827
5828         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
5829         (express_from_1): Wrap lines.
5830         * rtlanal.c (commutative_operand_precedence): Rename from
5831         operand_preference; export.
5832         * rtl.h: Declare it.
5833         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
5834         (simplify_binary_operation): Invoke simplify_plus_minus on
5835         (CONST (PLUS ...)) as well.
5836         (struct simplify_plus_minus_op_data): New.
5837         (simplify_plus_minus_op_data_cmp): New.
5838         (simplify_plus_minus): Use them.  Avoid infinite recursion with
5839         simplify_binary_operation wrt CONST.
5840
5841 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
5842
5843         * h8300-protos.h (general_operand_dst_push): Remove.
5844         * h8300.c (general_operand_dst_push): Likewise.
5845         * h8300.h (OK_FOR_T): Likewise.
5846         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
5847         * h8300.md (pushqi_h8300): New.
5848         (pushqi_h8300hs): Likewise.
5849         (pushqi): Likewise.
5850         (pushhi_h8300): Likewise.
5851         (pushhi_h8300hs): Likewise.
5852         (pushhi): Likewise.
5853
5854 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5855
5856         * genattrtab.c (attr_printf): First arg is unsigned.
5857         Clean up formatting of callers.
5858
5859 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
5860
5861         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
5862         registers.
5863
5864 2001-09-07  Andreas Jaeger  <aj@suse.de>
5865
5866         * i386.h (TARGET_SWITCHES): Fix descriptions.
5867
5868 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5869
5870         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
5871
5872 2001-09-06  Ira Ruben  <ira@apple.com>
5873
5874         Remove OP_IDENTIFIER.
5875         * tree.def (OP_IDENTIFIER): Remove.
5876         * tree.c (tree_node_kind enum): Remove op_id_kind.
5877         (tree_node_kind_names): Remove "op_identifiers".
5878         (make_node): Remove OP_IDENTIFIER test.
5879         (build_op_identifier): Removed because it isn't being used.
5880         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
5881         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
5882
5883 2001-09-06  Richard Henderson  <rth@redhat.com>
5884
5885         * simplify-rtx.c (simplify_binary_operation): Revert last change.
5886
5887 2001-09-06  Richard Henderson  <rth@redhat.com>
5888
5889         * simplify-rtx.c (simplify_binary_operation): Simplify contents
5890         of CONST.
5891
5892 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5893
5894         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
5895         number used for CR register.
5896
5897 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
5898                           Joern Rennecke (amylaar@cygnus.com)
5899
5900         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
5901         * h8300.c (initial_offset): Handle offset between RP and FP.
5902         (h8300_return_addr_rtx): New function.
5903         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
5904         return register.
5905         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
5906         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5907         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
5908         (CAN_ELIMINATE, REGISTER_NAMES):
5909         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
5910
5911 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
5912
5913         Remove TYPE_NONCOPIED_PARTS.
5914         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
5915         (struct tree_type): Remove noncopied_parts.
5916         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
5917         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
5918         (fixed_type_p): Remove.
5919         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
5920         (expand_expr, MODIFY_EXPR): Likewise.
5921         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
5922         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
5923
5924 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
5925
5926         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
5927         compiler warnings.
5928         (mask64_operand): Likewise.
5929         (includes_rldic_lshift_p): Likewise.
5930         (includes_rldicr_lshift_p): Likewise.
5931
5932 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
5933
5934         * objc/objc-act.c (build_message_expr): If a class method cannot
5935         be found, do not issue a warning if a corresponding instance
5936         method exists in the root class.
5937
5938 2001-09-05  Richard Henderson  <rth@redhat.com>
5939
5940         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
5941
5942 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
5943
5944         * function.c (ggc_mark_struct_function): Mark f->outer.
5945         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
5946         * integrate.c (output_inline_function): ... not here.
5947
5948 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
5949
5950         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
5951
5952         * i386.c (size_cost): New static variable.
5953         (override_function): Use size_cost when -Os is specified.
5954
5955         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
5956         properly;  Use current_function_calls_eh_return.
5957         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
5958         use leave to avoid dependency chain.
5959
5960         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
5961         get BB loop_depth instead of computing it from LOOP notes.
5962
5963         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
5964
5965 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5966
5967         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5968         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5969         UNALIGNED_DOUBLE_INT_ASM_OP): Define
5970
5971 2001-09-05  Jeffrey A Law  (law@cygnus.com)
5972             Jason Merrill (jason@redhat.com)
5973
5974         * stor-layout.c (layout_type): Complain if an array's size can
5975         not be represented in a size_t.
5976
5977         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
5978
5979 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
5980
5981         * gcc.c: (process_command) Add parentheses around assignment
5982         used as truth value.
5983
5984 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
5985
5986         * config/mips/mips.c (save_restore_insns): Don't mark any register
5987         save slots as unchanging if current_function_calls_eh_return.
5988
5989 2001-09-05  Richard Henderson  <rth@redhat.com>
5990
5991         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
5992         * config/alpha/alpha-protos.h: Declare it.
5993         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
5994         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
5995         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
5996         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
5997         (REG_OK_FOR_BASE_P): Select one of the above.
5998
5999 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
6000
6001         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
6002         (crti.o): Prefix name of object file with $(T).
6003         (crtn.o): Likewise.
6004
6005 2001-09-05  David S. Miller  <davem@redhat.com>
6006
6007         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
6008         * config/sparc/linux64.h: Likewise.
6009
6010 2001-09-05  Andreas Jaeger  <aj@suse.de>
6011
6012         * doc/invoke.texi (i386 Options): -mwide-multiply is not
6013         available anymore, remove the documentation.
6014         (i386 Options): Fix typo, cleanup index entries.
6015
6016         * prefix.c (concat): Remove, we can use the version from liberty.
6017
6018 2001-09-05  Richard Henderson  <rth@redhat.com>
6019
6020         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
6021         New functions split out of md file expanders.
6022         * config/alpha/alpha-protos.h: Declare them.
6023         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
6024
6025 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6026
6027         * cppmacro.c (funlike_invocation_p): No need to restore context.
6028
6029 2001-09-04  Richard Henderson  <rth@redhat.com>
6030
6031         * reload.c (push_reload): Export.
6032         * reload.h (push_reload): Declare it.
6033
6034         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
6035         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6036         * config/alpha/alpha.c (alpha_legitimize_address): New.
6037         (alpha_legitimize_reload_address): Likewise.
6038         * config/alpha/alpha-protos.h: Declare them.
6039
6040 2001-09-04  Stan Shebs  <shebs@apple.com>
6041
6042         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
6043         * config/darwin.c (machopic_stub_name): Account for internally
6044         generated lib calls such as memcpy.
6045
6046 2001-09-04  Richard Henderson  <rth@redhat.com>
6047
6048         * unwind.h (_UA_END_OF_STACK): New flag.
6049         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
6050
6051 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
6052
6053         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
6054
6055 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
6056
6057         * config/mips/mips.c (save_restore_insns): Change base_offset to
6058         fp_offset in second call to mips_emit_frame_related_store.
6059
6060 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
6061
6062         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
6063         sometimes be represented as a NOTE of type
6064         NOTE_INSN_DELETED_LABEL.
6065         (Insns): Document NOTE_INSN_DELETED_LABEL.
6066
6067 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
6068
6069         * c-common.h (tree_dump_index): Add more comments.
6070         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
6071         (dump_option_value_info): New struct.
6072         (dump_options): New array.
6073         (dump_switch_p): Parse switch options symbolically.
6074         * doc/invoke.texi (-fdump-ast): Rename to ...
6075         (-fdump-tree): ... here. Document that options are symbolic, and
6076         not all are applicable.
6077
6078 2001-09-04  David S. Miller  <davem@redhat.com>
6079
6080         * config/sparc/sparc.md (define_splits): Kill constraints.
6081
6082         Cleanup redundant and unused insn attributes.
6083         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
6084         binary, and move.  Mark ialu as default.
6085         (commented out define_function_unit "alu"): Kill.
6086         (define_attr "use_clobbered"): Kill.
6087         (whole file): Kill address insn type references.  Replace
6088         all unary/binary/move references with ialu.
6089         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
6090         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
6091         TYPE_IALU.
6092
6093         Simplify length insn attribute and make more judicious use
6094         of insn attribute defaulting.
6095         * config/sparc/sparc.md (all insns with length > one): Mark as
6096         insn type multi if real instructions, else use default if
6097         it is a forced splitter.
6098         (all insns with length == one): Use default insn length.
6099         (all insns of type ialu): Use default insn type.
6100
6101         Fix erroneous insn attribute settings.
6102         (addx): Set insn type to misc.
6103         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
6104         const_umulsidi3_sp64): Set insn type to imul.
6105
6106         Track SFmode vs DFmode insns according to UltraSPARC
6107         scheduling rules.
6108         * config/sparc/sparc.md ("fptype"): New attribute, default
6109         to "single".
6110         (all DFmode single insns): Mark as fptype "double".
6111
6112 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
6113
6114         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
6115
6116 2001-09-03  Richard Henderson  <rth@redhat.com>
6117
6118         * function.h (struct function): Add arg_pointer_save_area_init.
6119         * function.c (expand_function_end): Init arg_pointer_save_area.
6120         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
6121         when called from a nested function.
6122
6123 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
6124
6125         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
6126         is enabled.
6127
6128 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
6129
6130         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
6131
6132 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
6133
6134         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
6135         (emit_push_insn): Use specified padding direction when
6136         STACK_PUSH_CODE is POST_INC.
6137
6138         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
6139
6140 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6141
6142         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
6143
6144 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6145
6146         * cppinit.c (cpp_start_read): Free the imacros list as we
6147         traverse it.  Don't free the chains before returning.
6148         (_cpp_push_next_buffer): Only try pushing buffers if we've
6149         completed -imacros handling.
6150
6151 2001-08-31  Eric Christopher  <echristo@redhat.com>
6152
6153         * gcc.c (handle_braces): Add explaination for abort.
6154
6155 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
6156
6157         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
6158         move adjustment of bitpos instead.
6159
6160 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
6161
6162         * function.c: Remove all_functions.  Make outer_function_chain
6163         static.
6164         (init_function_start): Don't add new function structure to
6165         all_functions.
6166         (find_function_data, push_function_context_to,
6167         pop_function_context_from, put_var_into_stack,
6168         trampoline_address): Update for changed structure element names.
6169         (push_function_context_to): Disentangle.
6170         (free_after_compilation): Also free F.
6171         (expand_dummy_function_end): Don't free cfun here.
6172         (put_var_into_stack): Comment why we can't use find_function_data here.
6173         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
6174         (mark_function_chain): Split into maybe_mark_struct_function and
6175         ggc_mark_struct_function.  Export the latter.
6176         (init_function_once): Mark from cfun and outer_function_chain;
6177         not all_functions.
6178
6179         * function.h (struct function): Kill next_global.  Rename next
6180         to outer.  All users updated to match.
6181         (all_functions, outer_function_chain): Don't declare.
6182
6183         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
6184         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
6185         don't touch f->inlinable, after calling rest_of_compilation.
6186
6187         * tree.h: Forward-declare struct function.  Prototype
6188         ggc_mark_struct_function.
6189
6190 2001-08-31  Kazu Hirata  <kazu@hxi.com>
6191
6192         * config/h8300/h8300.md (*andorhi3): Fix typos.
6193
6194 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6195
6196         * calls.c (emit_library_call_value): Don't use a fixed
6197         argument after VA_CLOSE, i.e. out of scope in traditional C.
6198
6199         * emit-rtl.c (gen_rtvec): Likewise.
6200
6201 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6202
6203         * Makefile.in (c-pragma.o): Depend on output.h.
6204         (reorg.o): Depend on except.h.
6205
6206         * c-pragma.c: Include output.h.
6207
6208         * reorg.c: Include except.h.
6209
6210         * unwind-dw2.c: Call __builtin_alloca, not alloca.
6211
6212 2001-08-31  Richard Henderson  <rth@redhat.com>
6213
6214         * sched-deps.c (add_dependence): Don't elide dependency if the
6215         conditional used by insn is modified in elem.
6216
6217 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
6218
6219         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
6220
6221 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
6222
6223         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
6224         dump_switch_p.
6225
6226 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
6227
6228         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
6229         function.
6230         (stormy16_asm_out_constructor): New function.
6231         (TARGET_ASM_CONSTRUCTOR): Define.
6232         (TARGET_ASM_DESTRUCTOR): Define.
6233
6234 2001-08-31  Andreas Jaeger  <aj@suse.de>
6235
6236         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
6237         * loop.c (add_label_notes): Likewise.
6238         * reload.c (find_reloads): Likewise.
6239         * config/sh/sh.c (machine_dependent_reorg): Likewise.
6240
6241 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
6242
6243         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
6244         code here.  Take _Unwind_{W,Sw}ord*.
6245         (read_encoded_value_with_base): Use them.
6246         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
6247         words.
6248         (extract_cie_info): Simplify read_?leb128 handling.
6249         (execute_stack_op, execute_cfa_program): Likewise.
6250         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
6251
6252 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
6253
6254         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
6255         the frame pointer to pop the stack if convenient.
6256
6257         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
6258         Don't use post-increment before combine.
6259         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
6260         a call-saved register.
6261
6262 2001-08-31  Andreas Jaeger  <aj@suse.de>
6263
6264         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
6265         code was correct.
6266
6267 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
6268
6269         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
6270         not DIV/MOD, of course.
6271
6272 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
6273
6274         * rtl.def: Undo my patch commited 2001-08-27.
6275
6276         * genattrtab.c: Ditto.
6277
6278         * rtl.h: Ditto.
6279
6280         * sched-int.h: Ditto.
6281
6282         * target-def.h: Ditto.
6283
6284         * target.h: Ditto.
6285
6286         * haifa-sched.c: Ditto.
6287
6288         * sched-rgn.c: Ditto.
6289
6290         * sched-vis.c: Ditto.
6291
6292         * Makefile.in: Ditto.
6293
6294         * doc/md.texi: Ditto.
6295
6296         * doc/tm.texi: Ditto.
6297
6298         * doc/contrib.texi: Ditto.
6299
6300         * doc/gcc.texi: Ditto.
6301
6302         * genattrtab.h: Remove it.
6303
6304         * genautomata.c: Remove it.
6305
6306         * genattr.c: Undo my patch and Richard Henderson's patch commited
6307         2001-08-27.
6308
6309 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
6310
6311         * config.gcc (h8300-*-elf*): New case.
6312         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
6313         (SUBTARGET_CPP_SPEC): Define.
6314         (EXTRA_SPECS): Define.
6315         (SUBTARGET_EXTRA_SPECS): Define.
6316         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
6317         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
6318
6319 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
6320
6321         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
6322         (LIB2FUNCS_EXTRA): Define.
6323         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
6324         config/h8300/fixunssfsi.c: New file.
6325
6326 2001-08-30  Kazu Hirata  <kazu@hxi.com>
6327
6328         * config/h8300/h8300.md (zero_extendqihi2): Changes to
6329         define_expand to accommodate target-specific attributes.
6330         (anonymous zero_extendqihi2 patterns): New.
6331
6332 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
6333
6334         * h8300.md (*andorhi3): New pattern.
6335
6336 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
6337
6338         * h8300.c (dosize): Fix test for "sub".
6339
6340 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
6341
6342         * c-typeck.c (pointer_diff): Try to eliminate common term before
6343         doing conversions.
6344
6345 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
6346
6347         * config/arm/arm.c (arm_compute_initial_elimination_offset):
6348         Account for the saves of the FP registers.
6349
6350         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
6351         (TEXT_SECTION_ASM_OP): Define.
6352         (INIT_SECTION_ASM_OP): Define.
6353         (FINI_SECTION_ASM_OP): Define.
6354         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
6355         (RDATA_SECTION_FUNCITON): Provide prototype.
6356
6357 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
6358
6359         * reload1.c (move2add_note_store): Correct typo checking for
6360         argument pushes.
6361
6362 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
6363
6364         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
6365         note should not be considered outside the libcall block.
6366
6367 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6368
6369         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
6370
6371 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6372
6373         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
6374
6375 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6376
6377         * config/h8300/h8300-protos.h: Add a prototype for
6378         emit_logical_op.
6379         * config/h8300/h8300.c (emit_logical_op): New.
6380         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
6381         (andsi3): Likewise.
6382         (iorhi3): Likewise.
6383         (iorsi3): Likewise.
6384         (xorhi3): Likewise.
6385         (xorsi3): Likewise.
6386
6387 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6388
6389         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
6390         comparison with rtx INTVAL.
6391         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
6392         expression.
6393         * pa.h (FUNCTION_ARG_SIZE): Likewise.
6394
6395 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6396
6397         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
6398         comment typos.
6399
6400 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6401
6402         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
6403         (reg n) to (mem (pre_dec (reg n))
6404         (anonymous movsi pattern): Likewise.
6405
6406 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6407
6408         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
6409
6410 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6411
6412         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
6413         several special constants.
6414
6415 2001-08-29  Kazu Hirata  <kazu@hxi.com>
6416
6417         * config/h8300/lib1funcs.asm: Fix comment typos.
6418
6419 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6420
6421         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
6422         Fix format specifier warnings.
6423
6424         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
6425         inet_makeaddr, semctl): Prototype.
6426
6427         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
6428         (save_restore_insns): Use base_offset, not gp_offset.
6429
6430         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
6431         (ASM_OUTPUT_BYTE): Fix format specifier warning.
6432
6433 2001-08-29  Richard Henderson  <rth@redhat.com>
6434
6435         * bb-reorder.c (function_tail_eff_head): New.
6436         (record_effective_endpoints): Set it.
6437         (fixup_reorder_chain): Use it.
6438
6439 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6440
6441         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
6442
6443 2001-08-28  Dale Johannesen  <dalej@apple.com>
6444
6445         * config/darwin.c (machopic_function_base_name): Add const
6446         qualifier to a string.
6447         (darwin_encode_section_info): Ditto.
6448
6449 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6450
6451         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
6452         function definition.
6453
6454 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
6455
6456         * df.h (struct df): Add rts_order variable.
6457
6458         * df.c (df_visit_next_rts): New function.
6459         (df_visit_next): Renamed to df_visit_next_rc
6460         (df_analyse_1): Allocate/compute/free rts_order as well.
6461         (df_rd_global_compute): Use df_visit_next_rc instead of
6462         df_visit_next.
6463         (df_ru_global_compute): Use df_visit_next_rts instead of
6464         df_visit_next.
6465
6466         * flow.c (flow_reverse_top_sort_order_compute): New function.
6467
6468         * basic-block.h: Add prototype.
6469
6470 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
6471
6472         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
6473         blocks, the BB_REACHABLE is now set, rather than aux being
6474         non-NULL. Update the test to reflect this.
6475
6476 2001-08-28  Eric Christopher  <echristo@redhat.com>
6477
6478         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
6479         config/mips/crti.asm: Ditto.
6480
6481 2001-08-28  Eric Christopher <echristo@redhat.com>
6482             Richard Henderson <rth@redhat.com>
6483
6484         * c-pragma.h (add_weak): Move prototype from here...
6485         * output.h (add_weak): ... to here.
6486         * varasm.c (add_weak): Fix typo.
6487         * config/mips/crti.asm: New file.
6488         * config/mips/crtn.asm: Ditto.
6489         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
6490         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
6491         (INVOKE__main): Ditto.
6492         (INIT_SECTION_ASM_OP): New.
6493         (FINI_SECTION_ASM_OP): Ditto.
6494         (STARTFILE_SPEC): Add crti.
6495         (ENDFILE_SPEC): Add crtn.
6496         * config/mips/elf64.h: Same.
6497         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
6498         Remove.
6499         * config/mips/vxworks.h: Ditto.
6500         * config/mips/t-elf: Support crti and crtn.
6501
6502 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6503
6504         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
6505         INSN_LIST.
6506
6507 2001-08-28  Richard Henderson  <rth@redhat.com>
6508
6509         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
6510         (one_cmplbi2 splitter): Remove redundant test.
6511
6512 2001-08-28  Dale Johannesen  <dalej@apple.com>
6513
6514         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
6515
6516 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
6517
6518         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
6519
6520 2001-08-28  Stan Shebs  <shebs@apple.com>
6521
6522         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
6523         (UNALIGNED_SHORT_ASM_OP): Define.
6524         (UNALIGNED_INT_ASM_OP): Define.
6525
6526 2001-08-28  Will Cohen  <wcohen@redhat.com>
6527
6528         * config/rs6000/rs6000.md (store_multiple): Correct RTL
6529         generation for first set.
6530
6531 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
6532
6533         * flow.c (redirect_edge_succ_nodup): Return new edge.
6534         (try_simplify_condjump): Use new edge.
6535         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
6536
6537         * cse.c (cse_basic_block): Skip note instructions.
6538
6539 2001-08-27  Richard Henderson  <rth@redhat.com>
6540
6541         * combine.c (combine_simplify_rtx): Don't reverse condition
6542         if there is no reverse for the condition.
6543         (simplify_comparison): Don't simplify subregs from INT to FP.
6544
6545         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
6546         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
6547         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
6548         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
6549         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
6550         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
6551
6552 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
6553
6554         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
6555         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
6556         (pushqi1): New.
6557         (adddi_dilshr32, adddi_dishl32): Only data register can be
6558         source for mem destination.
6559
6560         * expmed.c (store_bit_field): Ignore adjustment to bitpos
6561         and use bitnum to decide about register move.
6562
6563 2001-08-27  Richard Henderson  <rth@redhat.com>
6564
6565         * genattr.c (main): Emit state_t even when not doing scheduling.
6566
6567 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
6568             Richard Henderson  <rth@redhat.com>
6569
6570         * gcse.c (reg_first_set, reg_last_set): Replace with ...
6571         (reg_avail_info, current_bb): ... these.
6572         (oprs_unchanged_p, record_last_reg_set_info): Use them.
6573         (compute_hash_table): Likewise.
6574
6575 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
6576
6577         * flow.c (verify_flow_info): Use checksums to verify edges.
6578
6579 2001-08-27  Richard Henderson  <rth@redhat.com>
6580
6581         * genautomata.c (expand_automata): Always create a description.
6582
6583 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
6584
6585         * optabs.c (expand_binop): Correctly handle the carry in multiword
6586         add/subtract operations.
6587
6588 2001-08-27  Fred Fish  <fnf@be.com>
6589
6590         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
6591         __SIZE_TYPE__.
6592
6593 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
6594
6595         * reload.c (find_reloads_toplev): Back out this change:
6596
6597         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
6598
6599         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
6600         mem if the address is a mode_dependent_address_p.
6601
6602 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
6603
6604         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
6605         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
6606         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
6607         RTL constructions.
6608
6609         * genattr.c (main): New variable num_insn_reservations.  Increase
6610         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
6611         pipeline hazard recognizer interface.
6612
6613         * genattrtab.h: New file.
6614
6615         * genattrtab.c: Include genattrtab.h.
6616         (attr_printf, check_attr_test, make_internal_attr,
6617         make_numeric_value): Move protypes into genattrtab.h.  Define them
6618         as external.
6619         (num_dfa_decls): New global variable.
6620         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
6621         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
6622         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
6623         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
6624
6625         * genautomata.c: New file.
6626
6627         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
6628
6629         * sched-int.h: (curr_state): Add the external definition for
6630         automaton pipeline interface.
6631         (haifa_insn_data): Add comments for members blockage and units.
6632
6633         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6634         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6635         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6636         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6637         TARGET_SCHED_DFA_POST_CYCLE_INSN,
6638         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6639         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
6640         macros.
6641         (TARGET_SCHED): Use the new macros.
6642
6643         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
6644         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
6645         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
6646         dfa_bubble): New members in gcc_target.sched.
6647
6648         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
6649         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
6650         (insn_queue): Redefine it as pointer to array.
6651         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
6652         INSN_QUEUE_SIZE.
6653         (max_insn_queue_index_macro_value): New variable.
6654         (curr_state, dfa_state_size, ready_try): New varaibles for
6655         automaton interface.
6656         (ready_element, ready_remove, max_issue): New function prototypes
6657         for automaton interface.
6658         (choose_ready): New function prototype.
6659         (insn_unit, blockage_range): Add comments.
6660         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
6661         FUNCTION_UNITS_SIZE == 0.
6662         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
6663         actual_hazard, potential_hazard): Add comments.
6664         (insn_cost): Use cost -1 as undefined value.  Remove
6665         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
6666         pipeline interface.
6667         (ready_element, ready_remove): New functions for automaton
6668         interface.
6669         (schedule_insn): Add new code for automaton pipeline interface.
6670         (queue_to_ready): Add new code for automaton pipeline interface.
6671         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
6672         (debug_ready_list): Print newline when the queue is empty.
6673         (max_issue): New function for automaton pipeline interface.
6674         (choose_ready): New function.
6675         (schedule_block): Add new code for automaton pipeline interface.
6676         Print ready list before scheduling each insn.
6677         (sched_init): Add new code for automaton pipeline interface.
6678         Initiate insn cost by -1.
6679         (sched_finish): Free the current automaton state and finalize
6680         automaton pipeline interface.
6681
6682         * sched-rgn.c: Include target.h.
6683         (init_ready_list, new_ready, debug_dependencies): Add new code for
6684         automaton pipeline interface.
6685
6686         * sched-vis.c: Include target.h.
6687         (get_visual_tbl_length): Add code for automaton interface.
6688         (target_units, print_block_visualization):  Add comments.
6689
6690         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
6691         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
6692         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
6693         (getruntime.o, genautomata.o): New entries.
6694         (genattrtab.o): Add new dependency file genattrtab.h.
6695         (genattrtab): Add new dependencies.  Link it with `libm.a'.
6696         (getruntime.o, hashtab.o): New entries for canadian cross.
6697
6698         * doc/md.texi: Description of automaton based model.
6699
6700         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
6701         Add comments.
6702         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6703         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6704         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6705         TARGET_SCHED_DFA_POST_CYCLE_INSN,
6706         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6707         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6708         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
6709         hook descriptions.
6710         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
6711         MAX_DFA_ISSUE_RATE): New macro descriptions.
6712
6713         * doc/contrib.texi: Add dfa based scheduler contribution.
6714
6715         * doc/gcc.texi: Add more information about genattrtab.
6716
6717 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
6718
6719         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
6720         an RTL basic block.
6721
6722 2001-08-27  Richard Henderson  <rth@redhat.com>
6723
6724         * function.c (expand_function_end): Don't init arg_pointer_save_area.
6725         (get_arg_pointer_save_area): New.  Create an init it here.
6726         (fix_lexical_addr): Use it.
6727         * function.h: Declare it.
6728         * builtins.c (expand_builtin_setjmp_receiver): Use it.
6729         * stmt.c (expand_nl_goto_receiver): Use it.
6730
6731 2001-08-27  Richard Henderson  <rth@redhat.com>
6732
6733         * final.c (final_scan_insn): Don't enter APP_ON mode for
6734         empty asm strings.
6735
6736         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
6737         alignment for assemble_integer for DW_EH_PE_aligned.
6738         * except.c (output_function_exception_table): Likewise.
6739
6740 2001-08-26  Andreas Jaeger  <aj@suse.de>
6741
6742         * c-tree.h: Add prototyp for c_sizeof_nowarn.
6743
6744 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
6745
6746         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
6747
6748 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
6749
6750         * config/rs6000/rs6000.c (mask_operand): Rewrite without
6751         bit-shifting loop.
6752         (mask64_operand): Likewise.
6753         (rldic_operand): Delete.
6754         (includes_lshift64_p): Delete.
6755         (includes_rldic_lshift_p): New function.
6756         (includes_rldicr_lshift_p): New function.
6757         (print_operand): Don't call rldic_operand in case 'W'.
6758         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
6759         (includes_lshift64_p): Remove.
6760         (includes_rldic_lshift_p): Declare.
6761         (includes_rldicr_lshift_p): Declare.
6762         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
6763         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
6764         Replace match_operand rldic_operand predicate with
6765         const_int_operand.  Replace includes_lshift64_p condition with
6766         includes_rldic_lshift_p.
6767         <ashldi3_internal 64 bit rldicr patterns>: New.
6768
6769 2001-08-27  Andreas Jaeger  <aj@suse.de>
6770
6771         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
6772         * errors.c: Likewise.
6773         * final.c: Likewise.
6774         * dwarf2asm.c: Likewise.
6775         * doprint.c (checkit): Likewise.
6776         * diagnostic.c: Likewise.
6777         * collect2.c: Likewise.
6778         * calls.c: Likewise.
6779         * c-semantics.c (build_stmt): Likewise.
6780         * c-format.c (status_warning): Likewise.
6781         * c-errors.c (pedwarn_c99): Likewise.
6782         * builtins.c (validate_arglist): Likewise.
6783         * config/pj/pj.c (pj_printf): Likewise.
6784         * fix-header.c: Likewise.
6785         * gcc.c: Likewise.
6786         * gcov.c (fnotice): Likewise.
6787         * gensupport.c (message_with_line): Likewise.
6788         * mips-tfile.c: Likewise.
6789         * protoize.c (notice): Likewise.
6790         * read-rtl.c (fatal_with_file_and_line): Likewise.
6791         * rtl-error.c: Likewise.
6792         * tradcpp.c: Likewise.
6793         * tree.c: Likewise.
6794         * cp/tree.c (build_min_nt): Likewise.
6795         (build_min): Likewise.
6796         * cp/lex.c: Likewise.
6797         * cp/errfn.c: Likewise.
6798         * cp/rtti.c (create_pseudo_type_info): Likewise.
6799
6800 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
6801
6802         * df.c (df_uses_record): Return after recording all uses
6803         in ASM_OPERANDS.
6804
6805 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
6806
6807         * df.c (df_insn_modify): Realloc the INSN table here, if
6808         necessary, here, too.
6809
6810 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
6811
6812         * config/mips/mips.c (mips_function_value): Handle complex return
6813         values.
6814
6815 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
6816
6817         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
6818         unshared.
6819         * reload.c (make_memloc): Copy result if it is still
6820         reg_equiv_memory_loc[regno] on return.
6821         (subst_reloads) [ENABLE_CHECKING]: Check that none of
6822         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
6823         reg_equiv_mem are modified by the substitutions.
6824
6825 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
6826
6827         * predict.c (expensive_function_p): New.
6828         * rtl.h (expensive_function_p): Declare.
6829         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
6830         (use_fast_prologue_epilogue): New static variable.
6831         (expand_prologue): Set it; emit short prologues if unset.
6832         (expand_epilogue): Likewise.
6833
6834 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
6835
6836         * config.gcc: Add stormy16-*-elf case.
6837         * config/stormy16/stormy-abi: New file.
6838         * config/stormy16/stormy16-lib2.c: New file.
6839         * config/stormy16/stormy16-protos.h: New file.
6840         * config/stormy16/stormy16.c: New file.
6841         * config/stormy16/stormy16.h: New file.
6842         * config/stormy16/stormy16.md: New file.
6843         * config/stormy16/t-stormy16: New file.
6844
6845 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
6846
6847         * i386.h (no-accumulate-outgoing-args): Use proper mask.
6848
6849 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
6850
6851         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
6852         descriptor members are pointer size, not constant 4.
6853         * config/rs6000/rs6000.md (define_splits): Remove more unused
6854         constraints.
6855
6856 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6857
6858         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
6859
6860 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
6861
6862         * cp/rtti.c (VPARAMS): Fix parameter.
6863
6864 2001-08-24  Zack Weinberg  <zackw@panix.com>
6865
6866         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
6867         to zero.
6868         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
6869         to switch.
6870         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
6871         in if controlling use of insv.
6872         (extract_bit_field): Likewise, for extv and extzv.
6873
6874 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
6875
6876         * i386.md (movcc peep2): Fix load of 0.
6877
6878 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6879
6880         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
6881         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
6882
6883 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
6884
6885         * c-pragma.h: Move weak_syms and weak_decls...
6886         * varasm.c: ...here.  Now static.
6887         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
6888         depend on HANDLE_PRAGMA_WEAK.
6889
6890         * c-common.c (c_alignof, c_alignof_expr): Move here...
6891         * c-typeck.c: ...from here.
6892         * c-tree.h, c-common.h: Adjust.
6893
6894 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
6895
6896         * config/ia64/ia64.c (rws_update): If !pred, set write_count
6897         instead of incrementing it.
6898
6899         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
6900         asm ready, don't try to move them all into the same array element.
6901
6902 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
6903
6904         * function.c (thread_prologue_and_epilogue_insns): Avoid
6905         fallthru flag on edge to exit.
6906
6907         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
6908
6909         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
6910         dead edges.
6911
6912 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
6913
6914         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
6915         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
6916         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
6917         Remove prototype.
6918
6919 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
6920
6921         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
6922         replace "GNU CC" with "GCC".
6923
6924 2001-08-23  Richard Henderson  <rth@redhat.com>
6925
6926         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
6927         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
6928         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
6929         Need GR between FR and not GR_AND_FR.
6930         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
6931         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
6932         AR regs before GR regs.
6933         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
6934         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
6935         (REGISTER_MOVE_COST): Update.
6936         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
6937
6938 2001-08-23  Richard Henderson  <rth@redhat.com>
6939
6940         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
6941         a register class.
6942
6943 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
6944
6945         * reload1.c (emit_reload_insns): Don't look for notes
6946         on a NULL store_insn.
6947
6948 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6949
6950         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
6951         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
6952         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
6953         format specifier warnings.
6954         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
6955
6956 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
6957
6958         * config/i386/i386-protos.h: Correct declaration of
6959         i386_pe_asm_named_section.
6960
6961 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6962
6963         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
6964         variable i.
6965         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
6966
6967 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6968
6969         * cpperror.c (print_location): Don't show _Pragma.
6970         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
6971         and file change callback generation here.
6972         (stack_include_file): Update use of cpp_push_buffer.
6973         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
6974         (struct cpp_buffer): Remove type, pfile members.
6975         * cppinit.c (cpp_handle_option): Use free_chain.
6976         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
6977         (skip_escaped_newlines, get_effective_char, lex_percent): Take
6978         a cpp_reader rather than a cpp_buffer.
6979         (skip_escaped_newlines, get_effective_char, skip_block_comment,
6980         skip_line_comment, parse_string, lex_percent, lex_dot,
6981         _cpp_lex_token): Update accordingly.
6982         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
6983         generation here.
6984         (cpp_push_buffer): Update prototype.
6985         (run_directive): Update use of cpp_push_buffer.
6986         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
6987         handle_assertion): Update use of run_directive.
6988         * cpplib.h (enum cpp_buffer_type): Remove.
6989         (cpp_push_buffer): Update prototype.
6990         * fix-header.c (read_scan_file): Update.
6991
6992 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6993
6994         * gcc.c (struct prefix_list): Change prefix to const char *.
6995
6996 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6997
6998         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
6999
7000 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
7001
7002         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
7003         from a new MEM.
7004
7005         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
7006         a squeezable note.
7007         * rtl.h: Adjust.
7008         * ifcvt.c (dead_or_predicable): Adjust.
7009         * loop.c (find_and_verify_loops): Adjust.
7010         * stmt.c (expand_end_case): Adjust.
7011         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
7012         head and end insn pointers in the basic block, not just local copies.
7013         (merge_blocks_move_predecessor_nojumps): Likewise.
7014
7015 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
7016
7017         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
7018         bitmap.h, builtin-types.def, builtins.c, builtins.def,
7019         c-aux-info.c, c-common.c, c-common.def, c-common.h,
7020         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
7021         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
7022         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
7023         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
7024         conditions.h, config.gcc, configure.frag, configure.in,
7025         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
7026         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
7027         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
7028         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
7029         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
7030         emit-rtl.c, errors.c, errors.h, except.c, except.h,
7031         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
7032         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
7033         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
7034         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
7035         gencheck.c, gencodes.c, genconfig.c, genemit.c,
7036         genextract.c, genflags.c, gengenrtl.c, genmultilib,
7037         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
7038         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
7039         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
7040         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
7041         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
7042         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
7043         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
7044         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
7045         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
7046         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
7047         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
7048         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
7049         params.h, predict.c, predict.def, predict.h, prefix.c,
7050         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
7051         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
7052         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
7053         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
7054         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
7055         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
7056         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
7057         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
7058         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
7059         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
7060         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
7061         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
7062         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
7063         xcoffout.h: replace "GNU CC" with "GCC".
7064
7065 2001-08-21  Richard Henderson  <rth@redhat.com>
7066
7067         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
7068         (final_scan_insn): Consider jump tables data even if we have no
7069         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
7070         ADDR_VEC_ALIGN.
7071         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
7072         (ASM_OUTPUT_CASE_END): Remove.
7073         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
7074         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
7075         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
7076
7077 2001-08-21  Richard Henderson  <rth@redhat.com>
7078
7079         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
7080         at barrier insns.  Emit stop bits before barriers.
7081
7082         * flow.c (flow_find_cross_jump): Don't consider unconditional
7083         return insns for commoning.
7084
7085         * final.c (compute_alignments): Fix typo.
7086
7087         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
7088         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
7089         (store_bit_field): Use mode_for_extraction more places.
7090         (extract_bit_field): Likewise.
7091
7092 2001-08-21  Zack Weinberg  <zackw@panix.com>
7093
7094         * caller-save.c: Don't include insn-codes.h.
7095         (reg_save_code, reg_restore_code): Make arrays of int.
7096         All uses updated to match.
7097         (insert_save, insert_restore): No need to initialize "code"
7098         variable upon declaration.
7099         * Makefile.in: update dependencies; fix typo in clean rule.
7100
7101 2001-08-21  Richard Henderson  <rth@redhat.com>
7102
7103         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
7104         (merge_if_block): Handle fallout from same.
7105
7106 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7107
7108         * builtins.c (type_to_class): Fix typo in last change.
7109
7110 2001-08-21  Richard Henderson  <rth@redhat.com>
7111
7112         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
7113         ia64_asm_output_label.
7114
7115         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
7116         copy of gp while the real gp register contains garbage.
7117
7118 2001-08-21  Zack Weinberg  <zackw@panix.com>
7119
7120         * expmed.c (mode_for_extraction): New function.
7121         (store_bit_field, extract_bit_field): Use it.
7122         * expr.h: Prototype it and provide an enum for its first argument.
7123
7124         * combine.c, function.c, recog.c: Don't include insn-codes.h.
7125         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
7126         and digging through the insn_data tables.
7127         * Makefile.in: Update dependencies.
7128
7129 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7130
7131         * cppfiles.c (stack_include_file): line-map.c now handles include
7132         depth.
7133         (handle_missing_handler): Similarly.
7134         (_cpp_execute_include): Similarly.
7135         (_cpp_pop_file_buffer): Similarly.
7136         * cpphash.h (struct cpp_reader): Remove system_include_depth,
7137         buffer_stack_depth and include_depth.
7138         * cpplib.c (do_include_common): line-map.c now handles include depth.
7139         (cpp_push_buffer): Similarly.
7140         (_cpp_pop_buffer): Similarly.
7141         * cppmacro.c (builtin_macro): Update.
7142         * line-map.c (init_line_maps): Set depth.
7143         (add_line_map): Increment "used" earlier.  Update and use the
7144         include depth.
7145         (trace_include): Use the include depth.
7146         * line-map.h (struct line_maps): New member depth.
7147
7148 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7149
7150         * cppfiles.c (stack_include_file): Don't handle -H here.
7151         * cppinit.c (cpp_start_read): Set include tracing after
7152         cpp_post_options and after stacking the main file.
7153         * line-map.c (trace_include): New.
7154         (init_line_maps, add_line_map): Update.
7155         * line-map.h (struct line_maps): New member trace_includes.
7156
7157 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7158
7159         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
7160         * cppfiles.c (stack_include_file): Only stack a file if there
7161         is something to do.  Return a boolean indicating whether a
7162         buffer was stacked or not.
7163         (_cpp_execute_include): Similarly.
7164         (_cpp_read_file): Similarly.
7165         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
7166
7167 2001-08-21  Sam Steingold  <sds@gnu.org>
7168
7169         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
7170         (RECACHE): keep obufp_before_macroname up to date
7171
7172 2001-08-21  Zack Weinberg  <zackw@panix.com>
7173
7174         * stmt.c: Don't include insn-codes.h.
7175         (expand_end_case): Machine specific logic moved to expr.c.
7176         No need to worry about __builtin_classify_type.
7177         (check_for_full_enumeration_handling, emit_case_nodes):
7178         Kill #if 0 blocks.
7179
7180         * builtins.o (expand_builtin_classify_type): Split up so code
7181         can be shared with fold_builtin_classify_type.
7182         (type_to_class, fold_builtin_classify_type): New functions.
7183         (fold_builtins): Handle __builtin_classify_type.
7184
7185         * expr.c (do_tablejump): Now static.
7186         (case_values_threshold, try_casesi, try_tablejump): New;
7187         code mostly from stmt.c (expand_end_case).
7188         (expr.h): Update prototypes.
7189
7190         * Makefile.in (stmt.o): Update dependencies.
7191
7192 2001-08-21  Will Cohen  <wcohen@redhat.com>
7193
7194         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
7195         declaration of variable i.
7196         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
7197         declaration of variable i.
7198
7199 2001-08-21  Richard Henderson  <rth@redhat.com>
7200
7201         * crtstuff.c: Fix thinko last change.  Move list tails to start
7202         of CRT_END section.  Tidy ifdefs.
7203         (__EH_FRAME_BEGIN__): Always static for ELF.
7204         (__do_global_ctors_1): Rename from __frame_dummy.
7205         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
7206         name change; don't hide __EH_FRAME_BEGIN__.
7207
7208 2001-08-21  Richard Henderson  <rth@redhat.com>
7209
7210         * gdbinit.in: Move break on exit after break on fancy_abort.
7211
7212         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
7213         sized types.
7214
7215 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7216
7217         * cpphash.h (_cpp_push_next_buffer): New.
7218         * cppinit.c (do_includes): Remove.
7219         (push_include, free_chain, _cpp_push_next_buffer): New.
7220         (cpp_start_read): Use them to rework command line option handling.
7221         (cpp_handle_option): Combine handling of -include and -imacros.
7222         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
7223         appropriate.  Always insert missing \n at EOF.
7224         * cpplib.c (start_directive): Get the directive position right.
7225         * cppmain.c (cb_file_change): Always print the first line, unless
7226         preprocessed.
7227
7228 2001-08-20  Andreas Jaeger  <aj@suse.de>
7229
7230         * profile.c (compute_branch_probabilities): Remove extra new-line
7231         in error message.
7232         * flow.c (verify_flow_info): Likewise.
7233
7234 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
7235
7236         * basic-block.h (basic_block): Add new field 'flags'.
7237         (BB_REACHABLE): Define.
7238         (expunge_block): Declare.
7239         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
7240         (EXIT_BLOCK_PTR): Ditto.
7241         (expunge_block): Remove static declaration.
7242         (cleanup_cfg): Clear bb->aux on every basic block.
7243         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
7244         computing reachability.
7245         (delete_unreachable_blocks): Delete block b if b->flags has
7246         BB_REACHABLE unset.
7247
7248 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
7249
7250         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
7251
7252 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7253
7254         * sparc.c (sparc_variable_issue): Fix typo in last change.
7255
7256 2001-08-20  Richard Henderson  <rth@redhat.com>
7257
7258         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
7259
7260 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7261
7262         * pa.h (RETURN_IN_MEMORY): Improve comment.
7263
7264 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
7265
7266         * doc/invoke.texi (Profiling options): Clarify the interactions
7267         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
7268
7269 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
7270
7271         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
7272         command.
7273
7274 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7275
7276         * gcc.c (make_relative_prefix): Allocate a sufficiently large
7277         buffer.
7278
7279 2001-08-20  Richard Henderson  <rth@redhat.com>
7280
7281         * final.c (end_final): Fix typo last change.
7282
7283 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7284
7285         * cppinit.c (init_standard_includes): The returned buffer
7286         is already malloc-ed.
7287         * gcc.c (add_prefix): Similarly.
7288         * prefix.c (translate_name): Update to support clear buffer
7289         ownership rules.
7290         (update_path): Similarly.  Be sure to free any newly allocated
7291         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
7292         (tr): New function.
7293         * prefix.h (update_path): Update prototype and document.
7294         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
7295         up and update to new buffer ownership rules.
7296         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
7297
7298 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
7299
7300         * final.c (compute_alignments): New function.
7301         (init_insn_lengths): Do not care label_align.
7302         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
7303         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
7304         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
7305         (shorted_branches): Realloc label_align array; do
7306         not call init_insn_lengths; Do not care about loop alignments.
7307         * output.h (compute_alignments): Declare.
7308         * toplev.c (rest_of_compilation): Call compute_alignments.
7309         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
7310
7311         * predict.c (block_info_def): Add npredecesors, remove nvisited;
7312         change visited to tovisit.
7313         (propagate_freq): Use faster traversing algorithm.
7314         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
7315         to tovisit; reverse meaning.
7316
7317         * predict.c (struct block_info_def): Remove nvisited.
7318         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
7319         (estimate_bb_frequencies): Call mark_dfs_back_edges.
7320
7321 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
7322
7323         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
7324         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
7325         (TARGET_FUSED_MADD): New.
7326         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
7327         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
7328         the multiply-add instructions.
7329
7330 2001-08-19  Richard Henderson  <rth@redhat.com>
7331
7332         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
7333         is aligned to pointer size.
7334
7335 2001-08-19  Richard Henderson  <rth@redhat.com>
7336
7337         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
7338         display markers during final schedule.
7339
7340 2001-08-19  Richard Henderson  <rth@redhat.com>
7341
7342         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
7343
7344 2001-08-19  Richard Henderson  <rth@redhat.com>
7345
7346         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
7347         in the same string.
7348         (ASM_NAME_TO_STRING): Remove.
7349         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
7350         in the same string.  Remove support for expressions.
7351
7352 2001-08-19  Richard Henderson  <rth@redhat.com>
7353
7354         * config/i386/i386.md (tablejump): Make an expander; handle
7355         pic relative addressing here.
7356         (tablejump_1): Rename from tablejump_pic.
7357         (casesi): Remove.
7358
7359 2001-08-19  Richard Henderson  <rth@redhat.com>
7360
7361         * regclass.c (fix_register): Fix typo.
7362
7363 2001-08-18  Richard Henderson  <rth@redhat.com>
7364
7365         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
7366         (struct _Unwind_Context): Expand br_loc to hold it.
7367         (uw_frame_state_for): Handle leaf functions better.
7368         (uw_update_reg_address): Update for br_loc change.
7369
7370 2001-08-18  Richard Henderson  <rth@redhat.com>
7371
7372         * crtstuff.c: Move list heads before code that uses them.
7373         (__JCR_LIST__): Remove initial null.
7374         (frame_dummy, __frame_dummy): Do java registration here ...
7375         (__do_global_ctors_aux): ... not here.
7376
7377         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
7378         (__do_global_dtors_aux): Update to match.
7379         (__JCR_LIST__, __do_jv_register_classes): New.
7380         (.init): Call it.
7381         * config/ia64/crtend.asm (__JCR_END__): New.
7382         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
7383         instead of an indirect LTOFF22 reloc.
7384
7385 2001-08-18  Richard Henderson  <rth@redhat.com>
7386
7387         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
7388         * regclass.c (init_reg_sets_1): Fix typo.
7389         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
7390         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
7391         (ia64_compute_frame_size): Make ar.unat live when in use.
7392         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
7393         for ar.pfs; remove ar.unat handling.
7394         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
7395         call-saved.
7396         (PREDICATE_CODES): Add ar_pfs_reg_operand.
7397         * config/ia64/ia64-protos.h: Update decls.
7398         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
7399         (sibcall_pic): Likewise.
7400
7401 2001-08-18  Richard Henderson  <rth@redhat.com>
7402
7403         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
7404         pred_rel_mutex when searching for insn_group_barrier.
7405         * config/ia64/ia64.md (cycle_display): Combine the expander
7406         and insn patterns.
7407
7408         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
7409         bit before asm as needed.
7410
7411 2001-08-18  Richard Henderson  <rth@redhat.com>
7412
7413         * timevar.def (TV_MACH_DEP): New.
7414         * toplev.c (rest_of_compilation): Use it.
7415         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
7416
7417 2001-08-18  Zack Weinberg  <zackw@panix.com>
7418
7419         * unwind-dw2.c (execute_stack_op): Add default aborts to
7420         the inner switches to prevent warnings.
7421
7422 2001-08-18  Richard Henderson  <rth@redhat.com>
7423
7424         * timevar.h (struct timevar_time_def): Change element type to float.
7425         (ticks_to_msec, clocks_to_msec): Likewise.
7426         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
7427         (get_time): Likewise.
7428         (timevar_print): Adjust zero check and printing to match.
7429
7430 2001-08-18  Zack Weinberg  <zackw@panix.com>
7431
7432         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
7433         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
7434         Eliminate overfull or underfull hboxes.
7435
7436 2001-08-18  Zack Weinberg  <zackw@panix.com>
7437
7438         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
7439
7440 2001-08-18  Zack Weinberg  <zackw@panix.com>
7441
7442         * haifa-sched.c: Convert to target hooks.  Macros replaced
7443         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
7444         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
7445         MD_SCHED_FINISH, and HAVE_cycle_display.
7446         * target-def.h (TARGET_SCHED_ADJUST_COST,
7447         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
7448         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
7449         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
7450         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
7451         New hook #defines to be overridden.
7452         (TARGET_SCHED): Bring them all together.
7453         (TARGET_INITIALIZER): Update.
7454         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
7455         instead of 'struct rtx_def *' throughout.
7456         (struct sched): New set of hooks for the scheduler.
7457         * Makefile.in (haifa-sched.o): Depend on target.h.
7458         * doc/tm.texi: Document the new scheduler hooks, together in
7459         their own section, instead of scattered around.
7460         Fix a bunch of underfull/overfull hboxes.
7461
7462         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
7463         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
7464         sparc.h: Don't define any of the old scheduler macros.
7465
7466         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
7467         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
7468         sparc.c: Create hook functions from code extracted from
7469         corresponding target header, or make existing hooks static, as
7470         appropriate.  Set the appropriate entries in targetm.
7471
7472         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
7473         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
7474         rs6000-protos.h, s390-protos.h, sparc-protos.h:
7475         Remove prototypes for functions which are now static.
7476
7477         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
7478         related gunk; the Haifa scheduler is now the only choice.
7479
7480 2001-08-18  Zack Weinberg  <zackw@panix.com>
7481
7482         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
7483         * genopinit.c: Put floating point divide insns in sdiv_optab.
7484         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
7485         * config/gofast.h, config/c4x/c4x.h,
7486         config/ia64/hpux_longdouble.h, config/mips/mips.h,
7487         config/pa/long_double.h, config/rs6000/sysv4.h,
7488         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
7489         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
7490         (init_optabs): Use init_optabv for overflow-trapping optabs.
7491         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
7492         cmp_optab RTX codes so have_insn_for can find them.
7493
7494         * optabs.c (expand_simple_binop, expand_simple_unop,
7495         have_insn_for, gen_sub3_insn): New interfaces.
7496         * expr.h: Prototype new functions.
7497         (enum optab_methods): Move here from optabs.h.
7498
7499         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
7500         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
7501         Use new functions instead of working directly with optabs.
7502         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
7503         unroll.c: Don't include optabs.h.
7504         * caller-save.c, combine.c, function.c, stmt.c: Just include
7505         insn-codes.h, not optabs.h.
7506         * Makefile.in: Update dependencies.
7507
7508         * combine.c (make_compound_operation, simplify_comparison):
7509         Fix typos testing for this or that instruction.
7510
7511 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
7512
7513         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
7514         generating libgcc.a.
7515
7516 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7517
7518         * except.c (TYPE_HASH): Delete.
7519
7520         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
7521         HOST_WIDE_INT.
7522
7523         * tree.c (TYPE_HASH): Delete.
7524
7525         * tree.h (TYPE_HASH): Define.
7526
7527 2001-08-18  Graham Stott  <grahams@redhat.com>
7528
7529         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
7530         define_split.
7531         (adddi3_internal_2+2): Likewise.
7532         (eh_set_lr_di+1): Likewise.
7533
7534 2001-08-17  Richard Henderson  <rth@redhat.com>
7535
7536         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7537         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
7538         * dwarf2asm.c: ... here.
7539         * dwarfout.c: Remove them.
7540
7541         * varasm.c (assemble_integer): Add align parameter.
7542         (assemble_real, output_constant, output_constructor): Likewise.
7543         * output.h: Update decls.
7544         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
7545         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
7546         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
7547         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
7548         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
7549         Update all callers.
7550
7551         * final.c (end_final): Abort profile block generation if we
7552         havn't layed it out properly.
7553         * output.h (assemble_eh_integer): Remove stale decl.
7554         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
7555         (min_align): New.
7556         (assemble_integer): Handle unaligned data.
7557         (assemble_real): Abort on unaligned data.
7558         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
7559         anything useful.
7560         (default_dtor_section_asm_out_destructor): Use assemble_align.
7561         (default_named_section_asm_out_constructor): Likewise.
7562         (default_ctor_section_asm_out_constructor): Likewise.
7563         * config/darwin.c (machopic_asm_out_constructor): Likewise.
7564         (machopic_asm_out_destructor): Likewise.
7565         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
7566         (nextstep_asm_out_destructor): Likewise.
7567         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
7568         (vms_asm_out_destructor): Likewise.
7569
7570 2001-08-17  Richard Henderson  <rth@redhat.com>
7571
7572         * config/mips/iris6.h (TARGET_IRIX6): New.
7573         (current_section_name, current_section_flags): New.
7574         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
7575         (MAX_OFILE_ALIGNMENT): New.
7576         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
7577         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
7578         (copy_file_data): Split out from
7579         (mips_asm_file_end): ... here.
7580         (mips_asm_file_start): Remove extra .section directive.  Use
7581         tmpfile instead of mips_make_temp_file.
7582         (mips_unique_section): Use const char * as needed for warnings.
7583         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
7584         re-add align parameter.
7585         (iris6_asm_named_section): New.
7586         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
7587         (iris6_asm_output_align, iris6_section_align_1): New.
7588         (iris6_asm_file_start, iris6_asm_file_end): New.
7589         * config/mips/mips-protos.h: Update decls.
7590
7591 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
7592
7593         * doc/install.texi (Install GCC): Add links to build status pages.
7594         (Specific): Ditto.
7595         (Final install): Ditto; request updates for specific info
7596
7597 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7598
7599         * cpperror.c (print_location):  Don't take a file name; use the
7600         line map instead.
7601         (_cpp_begin_message): Similarly.
7602         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7603         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7604         (cpp_pedwarn_with_file_and_line): Remove.
7605         * cppfiles.c (stack_include_file): Update; set filename to stdin
7606         here when appropriate.
7607         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
7608         (_cpp_begin_message): Don't take a file name.
7609         * cppinit.c: Add comment.
7610         * cpplex.c: Fix end-of-directive indicator.
7611         * cpplib.c: Don't include intl.h.
7612         (run_directive, do_diagnostic): Update.
7613         (do_line): Update to not use nominal_fname.
7614         (cpp_push_buffer): Don't take a filename.
7615         * cpplib.h (struct ht): Remove.
7616         (cpp_push_buffer): Don't take a filename.
7617         (cpp_pedwarn_with_file_and_line): Remove.
7618         * cppmacro.c (struct cpp_macro): Remove file.
7619         (builtin_macro): Update.
7620         (_cpp_create_definition): Update.
7621         * cppmain.c: Correct comment.
7622         * fix-header.c (read_scan_file): Update.
7623
7624 2001-08-17  Kazu Hirata  <kazu@hxi.com>
7625
7626         * sbitmap.c: Fix comment formatting.
7627         * sched-deps.c: Likewise.
7628         * sibcall.c: Likewise.
7629         * simplify-rtx.c: Likewise.
7630         * ssa.c: Likewise.
7631         * ssa-ccp.c: Likewise.
7632         * stor-layout.c: Likewise.
7633         * timevar.c: Likewise.
7634         * toplev.c: Likewise.
7635         * unwind-dw2.c: Likewise.
7636         * unwind-dw2-fde.c: Likewise.
7637         * varasm.c: Likewise.
7638
7639 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7640
7641         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
7642         or larger than an integer in memory.
7643
7644 2001-08-17  Zack Weinberg  <zackw@panix.com>
7645
7646         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
7647         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
7648         * rtl.h: Don't forward-declare union tree_node here.  Don't
7649         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
7650         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
7651         and tree respectively.
7652         * tree.h: Don't forward-declare struct rtx_def here.  Don't
7653         typedef tree here.  Change all uses of struct rtx_def *,
7654         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
7655         and tree respectively.
7656
7657 2001-08-17  Richard Henderson  <rth@redhat.com>
7658
7659         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
7660         config/mips/openbsd.h: Fix typos last change.
7661
7662 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7663
7664         * doc/invoke.texi (Optimize Options): The default for
7665         -finline-limit is 600.
7666
7667 2001-08-17  Richard Henderson  <rth@redhat.com>
7668
7669         * varasm.c (text_section): Allow TEXT_SECTION to override the
7670         printing of TEXT_SECTION_ASM_OP.
7671         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
7672         (DATA_SECTION, BSS_SECTION): Remove.
7673         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
7674         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
7675         Rename from s/_NAME//.
7676         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
7677         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
7678         (TEXT_SECTION): ... here.  New.
7679         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
7680         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
7681         * config/mips/openbsd.h: Likewise.
7682         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
7683         (mips_asm_file_end): Likewise test.
7684         (mips_output_function_epilogue): Likewise.  Switch back to data
7685         section after emitting the function.
7686
7687         * doc/tm.texi (Sections): Document TEXT_SECTION.
7688
7689 2001-08-17  Richard Henderson  <rth@redhat.com>
7690
7691         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
7692         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
7693
7694 2001-08-17  Richard Henderson  <rth@redhat.com>
7695
7696         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
7697         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
7698         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
7699         Add aligned attribute.
7700
7701 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
7702
7703         * config/sh/sh.md: Add modes to unspecs in first insn to match
7704         those in the second.
7705
7706         * Makefile.in: Fix collect2 copy for Cygwin.
7707
7708 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
7709
7710         Install the proper patch.
7711         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
7712         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
7713         (expand_function_start): Likewise.
7714         * stmt.c (expand_decl): Likewise.
7715         * varasm.c (make_decl_rtx): Likewise.
7716
7717 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
7718
7719         * final.c: Undo my previous accidental checkin.
7720         * output.h: Likewise.
7721         * tm.texi: Likewise.
7722
7723 2001-08-16  Richard Henderson  <rth@redhat.com>
7724
7725         * varasm.c (named_section_flags): Remove align parameter.
7726         * varasm.c, dwarf2out.c: Update all callers.
7727         * output.h: Update prototypes.
7728
7729         * target.h (target.asm_out.named_section): Remove align parameter.
7730         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
7731         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
7732         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
7733         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
7734         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
7735
7736         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
7737         (get_named_section_flags, set_named_section_flags): New.
7738         (named_section_flags): Use them.
7739         (named_section): Do decl vs section flags check here...
7740         (default_section_type_flags): ... not here.
7741         (init_varasm_once): Create in_named_htab.
7742         (resolve_unique_section): Mark reloc unused.
7743
7744 2001-08-16  Richard Henderson  <rth@redhat.com>
7745
7746         * varasm.c (force_const_mem): Keep pool alignment in bits.
7747         (output_constant_pool): Use assemble_align.
7748
7749 2001-08-16  Zack Weinberg  <zackw@panix.com>
7750
7751         * doc/tm.texi: Remove extra @table command.
7752
7753 2001-08-16  Zack Weinberg  <zackw@panix.com>
7754
7755         * final.c (shorten_branches): Clear the end of the label_align
7756         array only if we made it larger.  Break up messy expressions
7757         for clarity.
7758
7759         * diagnostic.c (internal_error): Check for error recursion
7760         before doing ICE suppression.
7761
7762         * timevar.c: Timing variables now count in milliseconds.
7763         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
7764         (get_time): Not here.
7765         (timevar_print): Don't print any timer whose user, cpu, and
7766         wall times are all zero as displayed.
7767         * timevar.h: Update comment aboout units.  Make timevar
7768         counters unsigned.
7769
7770 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
7771
7772         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
7773         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
7774         (expand_function_start): Likewise.
7775         * stmt.c (expand_decl): Likewise.
7776         * varasm.c (make_decl_rtx): Likewise.
7777
7778 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
7779
7780         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
7781         (finalize_record_size): Don't set TYPE_USER_ALIGN.
7782
7783 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7784
7785         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
7786         variables.
7787
7788 2001-08-16  Andreas Jaeger  <aj@suse.de>
7789
7790         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
7791         prototype.
7792
7793 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
7794
7795         * rtl.h (only_sets_cc0_p): New prototype.
7796         * jump.c (sets_cc0_p): Handle INSN.
7797         (only_sets_cc0_p): New function.
7798         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
7799         (tidy_fallthru_edge): Likewise.
7800         * integrate.c (copy_insn_list): Likewise.
7801         * unroll.c (unroll_loop): Likewise.
7802         (copy_loop_body): Likewise.
7803
7804 2001-08-15  Jason Eckhardt  <jle@redhat.com>
7805
7806         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
7807
7808 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
7809
7810         * predict.c (struct block_info_def): Remove nvisited.
7811         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
7812         (estimate_bb_frequencies): Call mark_dfs_back_edges.
7813
7814         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
7815         (ix86_adjust_cost): Teach scheduler that latency to load operand can
7816         be masked.
7817
7818 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
7819
7820         * predict.def: Update hitrates.
7821
7822 2001-08-15  Richard Henderson  <rth@redhat.com>
7823
7824         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
7825
7826 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
7827
7828         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
7829         note from its associated jump.
7830
7831 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
7832
7833         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
7834         also on 64-bit s390x targets.
7835
7836 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
7837
7838         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
7839         function.
7840         (arm_expand_prologue): Handled nested functions which take a
7841         variable argument list.
7842         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
7843         macro with an invocation of
7844         arm_compute_initial_elimination_offset.
7845         * config/arm/arm-protos.h: Prototype
7846         arm_compute_initial_elimination_offset.
7847
7848 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7849
7850         * doc/install.texi (Specific, avr): Fix markup.
7851         (Specific, c4x): Ditto.
7852
7853 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7854
7855         * predict.c (dump_prediction): Change `bool' parameter to `int'.
7856
7857 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
7858
7859         * Makefile.in (OBJS): Add rtl-error.o
7860         (rtl-error.o): New rule.
7861         (diagnostic.o): Adjust dependency.
7862         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
7863         error_for_asm, _fatal_insn, _fatal_insn_not_found,
7864         warning_for_asm): Move to...
7865         rtl-error.c: ...here.  New file.
7866
7867 2001-08-14  Richard Henderson  <rth@redhat.com>
7868
7869         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
7870         if USING_SJLJ_EXCEPTIONS.
7871
7872 2001-08-14  Steve Ellcey <sje@cup.hp.com>
7873
7874         * tlink.c (scan_linker_output): Check string for unsatisfied in
7875         addition to undefined and unresolved.
7876
7877 2001-08-14  Graham Stott  <grahams@redhat.com>
7878
7879         * libgcc2.c (*): Replace EH_FRAME_SECTION with
7880         EH_FRAME_SECTION_NAME.
7881
7882 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
7883
7884         * genattrtab.c (simplify_test_exp_in_temp): New function.
7885         (simplify_test_exp): Avoid explicit use of temporary obstack.
7886         (simplify_cond, insert_right_side, evaluate_eq_attr,
7887         simplify_and_tree, simplify_or_tree, eliminate_known_true):
7888         Use simplify_test_exp_in_temp.
7889         (optimize_attrs): Iterate until expression stabilizes.
7890
7891 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
7892
7893         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
7894         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
7895
7896 2001-08-13  Richard Henderson  <rth@redhat.com>
7897
7898         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
7899         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
7900         * config/arm/conix-elf.h: Likewise.
7901
7902 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
7903
7904         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
7905         in gcc.c.
7906         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7907
7908         * gcse.c (hash_scan_set): Expressions that are set as part of
7909         jump instructions are not available.
7910
7911 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
7912
7913         * config/s390/s390.c (print_operand, s390_function_prologue,
7914         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
7915
7916 2001-08-13  Richard Henderson  <rth@redhat.com>
7917
7918         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
7919         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
7920         * doc/tm.texi (Exception Region Output): Document it.
7921
7922 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
7923
7924         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
7925         DWARF2 instead of stabs by default.
7926
7927 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
7928
7929         * config/rs6000/rs6000.c: Include optabs.h.
7930
7931 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
7932
7933         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
7934         save/restore routines.
7935         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
7936
7937 2001-08-13  Andreas Jaeger  <aj@suse.de>
7938
7939         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
7940         the english is correct.
7941
7942 2001-08-13  Zack Weinberg  <zackw@panix.com>
7943
7944         * expr.h: Split out optab- and libfunc-related code to...
7945         * optabs.h, libfuncs.h: ... these new headers.
7946
7947         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
7948         (OPTABS_H): New.
7949         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
7950         dependencies.
7951         * mkconfig.sh: Don't include insn-codes.h from config.h.
7952
7953         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
7954         enum insn_code is available.  Move reload_in_optab and
7955         reload_out_optab array declarations to optabs.h.
7956         * regmove.c (gen_add3_insn): Move to optabs.c, export from
7957         there, prototype in expr.h.
7958         * gencodes.c: Cleanup: zap global variables, don't use
7959         printf where puts will do, don't bother defining MAX_INSN_CODE
7960         which nothing uses, let CODE_FOR_nothing get its value implicitly.
7961
7962         * genemit.c, genopinit.c: Include optabs.h in generated file.
7963         * genoutput.c: Include insn-codes.h in generated file.
7964         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
7965         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
7966         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
7967         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
7968         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
7969         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
7970         Include optabs.h.
7971         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
7972         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
7973         config/m88k/m88k.c, config/sparc/sparc.c:
7974         Include libfuncs.h.
7975         * reload.c: Include expr.h and optabs.h before reload.h.
7976         * config/alpha/alpha.c: Include tree.h before reload.h.
7977         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
7978         and reload.h in that order.
7979         * config/sparc/sparc.c: Include debug.h.
7980         * recog.c: Include insn-codes.h.
7981
7982 2001-08-13  Andreas Jaeger  <aj@suse.de>
7983
7984         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
7985         s390*linux.
7986
7987 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7988
7989         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
7990         * gcc.c (init_spec): Fix typo in comment.
7991         * varasm.c (data_section): Fix typo in comment.
7992
7993 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
7994
7995         * predict.c (dump_prediction): New argument "USED".
7996         (combine_predictions_for_insn): Determine the used heuristics,
7997         output the case no heuristic applied.
7998         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
7999
8000 2001-08-13  Andreas Jaeger  <aj@suse.de>
8001
8002         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
8003         register %rip.
8004
8005 2001-08-13  Kazu Hirata  <kazu@hxi.com>
8006
8007         * jump.c: Fix formatting.
8008
8009 2001-08-13  Kazu Hirata  <kazu@hxi.com>
8010
8011         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
8012         length.
8013
8014 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
8015
8016         * loop.c (check_dbra_loop): Use condjump_label to compute
8017         jump_label.
8018
8019         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
8020         to better document the files they're in.
8021
8022 2001-08-12  Zack Weinberg  <zackw@panix.com>
8023
8024         * recog.h (struct insn_operand_data): Shrink 'mode' field
8025         to 16 bits.
8026
8027 2001-08-12  Kazu Hirata  <kazu@hxi.com>
8028
8029         * gcc.c: Fix comment formatting.
8030         * gccspec.c: Likewise.
8031         * gcov.c: Likewise.
8032         * gcse.c: Likewise.
8033         * genemit.c: Likewise.
8034         * gengenrtl.c: Likewise.
8035         * genrecog.c: Likewise.
8036         * gensupport.c: Likewise.
8037         * ggc-page.c: Likewise.
8038         * global.c: Likewise.
8039         * graph.c: Likewise.
8040         * ifcvt.c: Likewise.
8041         * integrate.c: Likewise.
8042         * lcm.c: Likewise.
8043         * libgcc2.c: Likewise.
8044         * loop.c: Likewise.
8045         * mbchar.c: Likewise.
8046         * optabs.c: Likewise.
8047         * predict.c: Likewise.
8048         * prefix.c: Likewise.
8049         * profile.c: Likewise.
8050         * protoize.c: Likewise.
8051         * real.c: Likewise.
8052         * recog.c: Likewise.
8053         * regclass.c: Likewise.
8054         * regmove.c: Likewise.
8055         * reg-stack.c: Likewise.
8056         * reload1.c: Likewise.
8057         * resource.c: Likewise.
8058         * rtlanal.c: Likewise.
8059         * rtl.c: Likewise.
8060
8061 2001-08-12  Kazu Hirata  <kazu@hxi.com>
8062
8063         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
8064         a tree representing a constant is passed to the macro.
8065
8066 2001-08-12  Richard Henderson  <rth@redhat.com>
8067
8068         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
8069         (rs6000_elf_asm_out_destructor): New.
8070         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
8071         (DTORS_SECTION_ASM_OP): Remove.
8072         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8073         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
8074
8075 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
8076
8077         Revert:
8078         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8079         * gcc.c (set_collect_gcc_options): New function, split out from
8080         main.
8081         Ignore elided switches.
8082         (do_spec_1): Invoke before executing command.
8083         (set_input): Export.
8084         Move declaration ...
8085         * gcc.h (set_input): ... here.
8086         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
8087         file.
8088
8089 2001-08-12  Richard Henderson  <rth@redhat.com>
8090
8091         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
8092         thinko wrt TARGET_RELOCATABLE.
8093
8094 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8095
8096         * fix-header.c (cb_file_change): Update prototype.
8097
8098 2001-08-11  Zack Weinberg  <zackw@panix.com>
8099
8100         * toplev.c (set_float_handler): Make static.
8101         * toplev.h: Don't prototype set_float_handler.
8102
8103         * simplify-rtx.c: Don't include setjmp.h.
8104         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
8105         New functions.
8106         (simplify_unary_operation, simplify_binary_operation): Use them,
8107         via do_float_handler.
8108
8109         * fold-const.c: Don't include setjmp.h.
8110         (exact_real_inverse_1): New function.
8111         (exact_real_inverse): Use it, via do_float_handler.
8112
8113         * varasm.c: Don't include setjmp.h.
8114         (assemble_real_1): New function.
8115         (assemble_real): Use it, via do_float_handler.
8116         Call internal_error if we get a trap here.
8117
8118         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
8119         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
8120
8121 2001-08-11  Zack Weinberg  <zackw@panix.com>
8122
8123         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
8124         STACK_BOUNDARY if not already defined.
8125
8126         * calls.c, function.c, reload1.c, explow.c: Don't default
8127         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
8128         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
8129
8130         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
8131         to run-time test.
8132
8133         * doc/tm.texi: Document that STACK_BOUNDARY is required;
8134         clarify difference between it and PREFERRED_STACK_BOUNDARY.
8135
8136 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8137
8138         * cppmacro.c (enter_macro_context): Push macro expansions even
8139         if empty.
8140
8141 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8142
8143         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
8144         (rs6000_elf_section_type_flags): Actually return a value.
8145
8146 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
8147
8148         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
8149         Clean up code: add missing comments and prototypes, fix warnings,
8150         remove obsolete code, fix spacing to conform to coding style.
8151
8152 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
8153
8154         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
8155         and TARGET_ASM_CLOSE_PAREN.
8156         (regclass_map): CC register belongs to class NO_REGS.
8157         (legitimize_pic_address): Don't generate unnecessary moves
8158         (to avoid confusing loop optimization).
8159         (check_and_change_labels): Replace jump_long by indirect_jump.
8160         (s390_final_chunkify): Don't start a new literal pool on section
8161         switch in 64-bit code.
8162         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
8163
8164         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
8165         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
8166         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
8167         modes correctly.
8168         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
8169         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
8170         (CONST_COSTS): Fixed incorrect costs.
8171
8172         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
8173         Use emit_jump instead of emit_jump_insn (gen_jump).
8174         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
8175         (to avoid confusing flow analysis).
8176         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
8177         (casesi, casesi_jump): New.
8178         (jump_long): Removed.  Functionality merged into indirect_jump.
8179         (indirect_jump): Accept address_operand, not just register_operand.
8180         (cjump_long, icjump_long): Use same logic as indirect_jump.
8181         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
8182         Fixed broken setjmp/longjmp handling.
8183         (do_builtin_setjmp_setup): Removed.
8184
8185         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
8186         broken GNU as versions that don't accept .quad with large
8187         negative values.  Use hexadecimal output instead.
8188         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
8189         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
8190         FUNCTION_EPILOGUE): Removed.  Now in targetm.
8191
8192         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
8193
8194         * config/s390/fixdfdi.h: Add missing copyright statement.
8195         Fix type conflicts on 64-bit.  Add missing SFmode routines.
8196
8197         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
8198         email address.
8199
8200 2001-08-11  Richard Henderson  <rth@redhat.com>
8201
8202         * rtl.h (REG_EH_RETHROW): Remove.
8203         * rtl.c (reg_note_name): Update.
8204         * combine.c (distribute_notes): Don't check for it.
8205
8206 2001-08-11  Richard Henderson  <rth@redhat.com>
8207
8208         * combine.c (distribute_notes): Place REG_SETJMP.
8209
8210 2001-08-11  Richard Henderson  <rth@redhat.com>
8211
8212         * doc/extend.texi (Arrays and pointers implementation): Discourage
8213         relying on sign-extension of pointers.
8214
8215 2001-08-11  H.J. Lu <hjl@gnu.org>
8216
8217         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
8218         in_dtors.
8219         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
8220         RDATA_SECTION_ASM_OP.
8221
8222 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8223
8224         * doc/install.texi (Specific, c4x): Fix cross-reference to the
8225         main manual to work both for info and HTML versions.
8226
8227 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8228             Matt Kraai <kraai@alumni.carnegiemellon.edu>
8229
8230         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
8231         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
8232         (struct cpp_pool): New member first.
8233         * cppinit.c (append_include_chain): Plug memory leaks.
8234         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
8235         Allocate pragma structures from the (aligned) macro pool to
8236         avoid leaking memory.
8237         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
8238         so we don't leak memory.
8239         * hashtable.c (ht_destroy): New.
8240         * hashtable.h (ht_destroy): New.
8241
8242 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8243             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8244
8245         * c-lex.c (map): Make const.
8246         (cb_file_change): Update for callback passing a line map.
8247         Don't assume we have a previous map.  Remove sanity check
8248         about popping too many files.
8249         * cpperror.c (print_location): Make map const.
8250         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
8251         (cpp_make_system_header): Similarly.
8252         (search_from): Similarly.
8253         (_cpp_execute_include): Don't remember where we came from.
8254         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
8255         (struct cpp_reader): Make map const.
8256         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
8257         * cpplib.c (do_line): Update; line maps now hold sysp.
8258         (cpp_push_buffer): Similarly.
8259         (_cpp_do_file_change): Similarly; callback with map instead.
8260         (cpp_get_line_maps): Constify return value.
8261         (_cpp_pop_buffer): Update.
8262         * cpplib.h (struct cpp_file_change): Remove.
8263         (struct cpp_callbacks): Update.
8264         (cpp_get_line_maps): Constify return value.
8265         * cppmacro.c (_cpp_create_definition): Update.
8266         * cppmain.c (struct printer): Constify map.
8267         (maybe_print_line): Similarly.
8268         (print_line): Similarly.  Deduce flags 1 and 2 here.
8269         (cb_file_change): Update.
8270         * line-map.c (free_line_maps): Warn regardless.
8271         (add_line_map): Return pointer to const.  When passed NULL to_file
8272         with LC_LEAVE, use the obvious values for the return point so the
8273         caller doesn't have to figure them out.
8274         (lookup_line): Return pointer to const.
8275         (print_containing_files): Take pointer to const.
8276         * line-map.h (struct line_map): New members reason, sysp.
8277         (add_line_map): Return pointer to const.
8278         (lookup_line): Similarly.
8279         (print_containing_files): Take pointer to const.
8280
8281 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
8282             Richard Henderson  <rth@redhat.com>
8283
8284         * regmove.c (regmove_optimize): Avoid setting a register twice in
8285         a parallel set.
8286
8287 2001-08-10  Richard Henderson  <rth@redhat.com>
8288
8289         * doc/extend.texi (Arrays and pointers implementation): Document
8290         behavior of pointer/integer conversion.
8291
8292 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
8293
8294         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
8295
8296 2001-08-10  Richard Henderson  <rth@redhat.com>
8297
8298         * doc/extend.texi (C Implementation): New chapter.
8299         * doc/gcc.texi (Top): Link it in.
8300
8301 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
8302
8303         * doc/install.texi (Specific): Fix CVS merge botch.
8304
8305 2001-08-10  Richard Henderson  <rth@redhat.com>
8306
8307         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
8308         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
8309
8310 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
8311
8312         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
8313         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
8314         this macro is now required.
8315
8316         * cselib.c (cselib_process_insn), flow.c (propagate_block),
8317         loop.c (find_and_verify_loops), reload.c (reload): Check
8318         for rtx code of CALL_INSN, not CALL, when deciding if we
8319         need to check for REG_SETJMP note.
8320
8321         * gcse.c (compute_hash_table, compute_store_table): Update
8322         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
8323         logic.
8324
8325         * config/avr/avr.c: Fix typo.
8326         * config/convex/convex.c (expand_movstr): Use adjust_address.
8327         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
8328         variable.
8329         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
8330         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
8331         Fix typo.
8332         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
8333         Do define STACK_BOUNDARY.
8334         * config/i370/i370.c: Include expr.h.
8335         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
8336         config/pa/som.h, config/v850/v850.h: Take in_ctors and
8337         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
8338         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
8339         * config/m88k/m88k.c: Include c-tree.h after expr.h.
8340         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
8341         * config/romp/romp.c: Include expr.h after tree.h.
8342         Include toplev.h.
8343         (output_fpop): Use xmalloc, not oballoc.
8344         * config/we32k/we32k.c: Include expr.h.
8345
8346 2001-08-10  Kazu Hirata  <kazu@hxi.com>
8347
8348         * config/h8300/h8300.h: Fix formatting.
8349
8350 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
8351
8352         * c-common.h (RETURN_NULLIFIED_P): Lose.
8353         * c-semantics.c (genrtl_return_stmt): Don't check it.
8354
8355 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8356
8357         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
8358         (mips_annotate_frame_insn): New function.
8359         (mips_emit_frame_related_store): New function.
8360         (save_restore_insns): Don't mark instructions that set up the base
8361         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
8362         the store instructions instead.
8363         (mips_expand_prologue): If the stack size is moved into a temporary
8364         register, do not mark that move as frame-related.  Add a
8365         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
8366
8367 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8368
8369         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
8370         stack slot as unchanging if current_function_calls_eh_return.
8371
8372 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
8373
8374         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
8375         access the second half of the TFmode scratch operand.
8376
8377 2001-08-10  Anthony Green  <green@redhat.com>
8378
8379         * java/class.c (emit_register_classes): Conditionalize code on
8380         JCR_SECTION_NAME.
8381
8382 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8383
8384         * doc/install.texi (Specific, avr): Fix cross-reference to the
8385         main manual to work both for info and HTML versions.
8386
8387 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8388
8389         * stmt.c (expand_null_return_1): Remove code to generate simple returns
8390         and "use_goto" argument.
8391         (expand_null_return, expand_value_return): Update all callers.
8392         * function.c (expand_function_end): Remove code to generate simple
8393         return.
8394         * config/vax/vax.md (epilogue): New expander for function return.
8395         * doc/md.texi (epilogue): Remove "if defined".
8396
8397 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
8398
8399         * Makefile.in: Partially revert my previous change:
8400         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
8401         of the hashtab.o and safe-ctype.o rules.
8402
8403 2001-08-09  Richard Henderson  <rth@redhat.com>
8404
8405         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
8406         (USE_COLLECT2): Remove duplicate definition.
8407         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
8408         (use_collect2): Remove dead code.
8409         * configure.in (use_collect2): Remove will_use_collect2 and
8410         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
8411         * configure: Rebuild.
8412
8413         * target.h (targetm.asm_out.constructor): New.
8414         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
8415         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
8416         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
8417         * varasm.c (in_ctors, in_dtors): New.
8418         (assemble_constructor, assemble_destructor): Remove.
8419         (default_stabs_asm_out_destructor): New.
8420         (default_named_section_asm_out_destructor): New.
8421         (dtors_section, default_dtor_section_asm_out_destructor): New.
8422         (default_stabs_asm_out_constructor): New.
8423         (default_named_section_asm_out_constructor): New.
8424         (ctors_section, default_ctor_section_asm_out_constructor): New.
8425         * output.h: Update declarations.
8426         * c-decl.c (c_expand_body): Use target hooks instead of
8427         assemble_constructor and assemble_destructor.
8428         * profile.c (output_func_start_profiler): Likewise.
8429         * objc/objc-act.c (finish_objc): Likewise.
8430         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
8431         for the constructor.
8432         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
8433
8434         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
8435         (DTORS_SECTION_ASM_OP): Likewise.
8436         (__CTOR_LIST__): Use attribute section when possible.
8437         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
8438
8439         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
8440         ASM_OUTPUT_CONSTRUCTOR.
8441
8442         * config/darwin.c (machopic_asm_out_constructor): New.
8443         (machopic_asm_out_destructor): New.
8444         * config/darwin-protos.h: Update declarations.
8445         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8446         (ASM_OUTPUT_DESTRUCTOR): Remove.
8447         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8448         * config/nextstep.c (nextstep_asm_out_constructor): New.
8449         (nextstep_asm_out_destructor): New.
8450         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8451         (ASM_OUTPUT_DESTRUCTOR): Remove.
8452         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8453         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
8454         ASM_OUTPUT_*STRUCTOR.
8455         * config/i386/aix386ng.h: Likewise.
8456
8457         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
8458         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
8459         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
8460         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8461         * config/lynx.h: Likewise.
8462         * config/netware.h: Likewise.
8463         * config/psos.h: Likewise.
8464         * config/alpha/alpha-interix.h: Likewise.
8465         * config/alpha/elf.h: Likewise.
8466         * config/arc/arc.h: Likewise.
8467         * config/arm/aof.h: Likewise.
8468         * config/arm/coff.h: Likewise.
8469         * config/arm/elf.h: Likewise.
8470         * config/c4x/c4x.h: Likewise.
8471         * config/h8300/h8300.h: Likewise.
8472         * config/i386/cygwin.h: Likewise.
8473         * config/i386/djgpp.h: Likewise.
8474         * config/i386/i386-coff.h: Likewise.
8475         * config/i386/i386-interix.h: Likewise.
8476         * config/i386/sco5.h: Likewise.
8477         * config/i386/vsta.h: Likewise.
8478         * config/i386/win32.h: Likewise.
8479         * config/i960/i960-coff.h: Likewise.
8480         * config/ia64/sysv4.h: Likewise.
8481         * config/m68hc11/m68hc11.h: Likewise.
8482         * config/m68k/coff.h: Likewise.
8483         * config/m68k/mot3300.h: Likewise.
8484         * config/m88k/m88k.h: Likewise.
8485         * config/mcore/mcore-pe.h: Likewise.
8486         * config/mcore/mcore.h: Likewise.
8487         * config/mips/elf.h: Likewise.
8488         * config/mips/elf64.h: Likewise.
8489         * config/mips/iris6.h: Likewise.
8490         * config/pa/pa64-hpux.h: Likewise.
8491         * config/rs6000/sysv4.h: Likewise.
8492         * config/sh/sh.h: Likewise.
8493         * config/sparc/litecoff.h: Likewise.
8494
8495         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
8496         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
8497         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8498         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8499         (ASM_OUTPUT_DESTRUCTOR): Remove.
8500         * config/a29k/a29k.c: Move include of tree.h.
8501         * config/a29k/udi.h: Delete file.
8502         * config/alpha/alpha.c (vms_asm_out_constructor): New.
8503         (vms_asm_out_destructor): New.
8504         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
8505         (EXTRA_SECTION_FUNCTIONS): Likewise.
8506         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8507         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8508         * config/c4x/c4x.c: Move include of tree.h.
8509         * config/clipper/clipper.c (clix_asm_out_constructor): New.
8510         (clix_asm_out_destructor): New.
8511         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8512         (ASM_OUTPUT_DESTRUCTOR): Remove.
8513         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8514         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8515         (TARGET_ASM_CONSTRUCTOR): New.
8516         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
8517         (sco_asm_out_constructor): New.
8518         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
8519         * config/i386/svr3gas.h: Remove stack grows up code.
8520         Remove code duplicated from i386/sysv3.h.
8521         (TARGET_ASM_CONSTRUCTOR): New.
8522         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
8523         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
8524         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8525         (TARGET_ASM_CONSTRUCTOR): New.
8526         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
8527         (m68hc11_asm_out_destructor): New.
8528         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
8529         (TARGET_ASM_DESTRUCTOR): New.
8530         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
8531         * config/m68k/dpx2.h: Properly undef all the bits inherited from
8532         config/svr3.h pertaining to section manipulation.
8533         * config/m68k/dpx2g.h: Remove #if 0 code.
8534         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
8535         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
8536         (ASM_OUTPUT_CONSTRUCTOR): Remove.
8537         (TARGET_ASM_CONSTRUCTOR): New.
8538         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
8539         (m88k_svr3_asm_out_constructor): New.
8540         (m88k_svr3_asm_out_destructor): New.
8541         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8542         (ASM_OUTPUT_DESTRUCTOR): Remove.
8543         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8544         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
8545         * config/rs6000/aix.h: Likewise.
8546         * config/mips/rtems64.h: Don't undef removed constructor related bits.
8547         * config/mips/vxworks.h: Likewise.
8548         * config/rs6000/lynx.h: Likewise.
8549         * config/sh/elf.h: Likewise.
8550         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
8551         (DTORS_SECTION_ASM_OP): New.
8552         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8553         (ASM_OUTPUT_DESTRUCTOR): Remove.
8554         * config/sparc/sol2-sld-64.h: Likewise.
8555         * config/vax/vax.c (vms_asm_out_constructor): New.
8556         (vms_asm_out_destructor): New.
8557         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
8558         (ASM_OUTPUT_DESTRUCTOR): Remove.
8559         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8560
8561         * doc/tm.texi (@node Initialization): Update.
8562
8563 2001-08-09  Richard Henderson  <rth@redhat.com>
8564
8565         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
8566         (__do_global_dtors_aux): Use gp-relative static data to avoid
8567         one dynamic relocation.
8568         (__do_frame_setup): Register Java classes.
8569         * config/alpha/crtend.asm (__JCR_END__): New.
8570
8571 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
8572
8573         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
8574         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
8575         (GEN, STAGESTUFF): Add new files.
8576         (insn-constants.h, s-constants, tm-preds.h, s-preds,
8577         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
8578         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
8579         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
8580         as well as insn-codes.h and insn-flags.h in config.h; and no
8581         extra headers in tconfig.h and hconfig.h.
8582
8583         * gencodes.c: Eliminate code to generate predicate declarations
8584         or #defines for md-file constants.
8585         * genconstants.c, genpreds.c: New files.
8586
8587         * i386.md: Re-order guard expressions such that TARGET_64BIT
8588         comes first, when this permits better optimization.  Add
8589         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
8590         why this is desirable.
8591
8592 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
8593
8594         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
8595         (find_fde_for_dso): Remove.
8596         (_Unwind_IteratePhdrCallback): New.
8597         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
8598         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
8599
8600 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8601
8602         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
8603         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
8604
8605 2001-08-09  Graham Stott  <grahams@redhat.com>
8606
8607         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
8608         (vis_no_unit): Use it.
8609         (visualize_no_unit): Add the insn only if room exists.
8610
8611 2001-08-09  Graham Stott  <grahams@redhat.com>
8612
8613         * predict.c (estimate_probability): Replace magic numbers with
8614         appropriate enumeration.
8615
8616 2001-08-09  Graham Stott  <grahams@redhat.com>
8617
8618         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
8619         parameter.
8620         (EXTRACT_FLAGS): Likewise.
8621
8622 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
8623
8624         * config/mips/mips.c    (mips_legitimate_address_p): Check for
8625         CONST_INT in last patch.
8626
8627 2001-08-08  Anthony Green  <green@redhat.com>
8628
8629         * java/class.c (emit_register_classes): Use assemble_jcr if
8630         possible.  Keep the original mechanism as a fallback.
8631         * defaults.h (JCR_SECTION_NAME): Define if we have named section
8632         and weak symbol support.
8633         * crtstuff.c (__JCR_LIST__): Define.
8634         (__JCR_END__): Define.
8635         (_Jv_RegiserClasses): Define weak symbol if possible.
8636         (__do_global_ctors_aux): Register classes for ELF targets with
8637         weak symbol support.
8638
8639 2001-08-08  Kazu Hirata  <kazu@hxi.com>
8640
8641         * dbxout.c: Fix comment formatting.
8642         * dependence.c: Likewise.
8643         * df.c: Likewise.
8644         * diagnostic.c: Likewise.
8645         * dominance.c: Likewise.
8646         * doprint.c: Likewise.
8647         * dwarf2out.c: Likewise.
8648         * dwarfout.c: Likewise.
8649         * emit-rtl.c: Likewise.
8650         * except.c: Likewise.
8651         * explow.c: Likewise.
8652         * expmed.c: Likewise.
8653         * expr.c: Likewise.
8654         * flow.c: Likewise.
8655         * fold-const.c: Likewise.
8656         * function.c: Likewise.
8657
8658 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8659
8660         * global.c (retry_global_alloc): Avoid shadowing allocno.
8661
8662 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
8663
8664         * except.c (remove_fixup_regions): Fix typo.
8665
8666 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
8667
8668         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
8669         unsigned HOST_WIDE_INT to avoid warning.
8670         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
8671         * flow.c (set_block_for_new_insns): Likewise.
8672
8673 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
8674
8675         * sibcall.c (return_value_pseudo): New static variable.
8676         (skip_copy_to_return_value): Handle return_value_pseudo.
8677         (call_ends_block_p): Ensure that return_value_pseudo is set.
8678         (optimize_sibling_and_tail_recursive_call): Discover the
8679         load of pseudo return value in alternate exit block.
8680
8681 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8682
8683         * calls.c (ECF_ALWAYS_RETURN): New constant.
8684         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
8685         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
8686         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
8687         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
8688         * rtl.c (reg_note_name): New name.
8689         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
8690
8691 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
8692
8693         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
8694
8695 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
8696
8697         * alias.c (get_alias_set): Return a previously calculated
8698         alias set for a VAR_DECL.
8699         * function.c (gen_mem_addressof): Calculate the alias set before
8700         touching the RTL.
8701
8702 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
8703
8704         * predict.def: Set hitrates according our experimental run.
8705
8706 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
8707
8708         * i386.h (HARD_REGNO_RENAME_OK): New macro.
8709
8710 2001-08-08  H.J. Lu <hjl@gnu.org>
8711
8712         * config/mips/mips.c (mips_unique_section): New. Copied from
8713         config/mips/elf.h.
8714
8715         * config/mips/mips-protos.h (mips_unique_section): New
8716         prototype.
8717
8718         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
8719
8720         * config/mips/little.h: New. Generic little endian mips
8721         targets. Only mips*-*-linux* is converted to use it so far.
8722
8723         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
8724         (WCHAR_TYPE): Defined
8725         (WCHAR_TYPE_SIZE): Likewise.
8726         (INIT_SUBTARGET_OPTABS): Likewise.
8727         (BSS_SECTION_ASM_OP): Likewise.
8728         (SBSS_SECTION_ASM_OP): Likewise.
8729         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8730         (ASM_DECLARE_OBJECT_NAME): Likewise.
8731         (UNIQUE_SECTION): Likewise.
8732         (EXTRA_SECTIONS): Likewise.
8733         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
8734         (ASM_OUTPUT_DESTRUCTOR): Likewise.
8735         (ASM_OUTPUT_DEF): Likewise.
8736         (HANDLE_SYSV_PRAGMA): Removed.
8737         (NO_IMPLICIT_EXTERN_C): Likewise.
8738         (TARGET_MEM_FUNCTIONS): Likewise.
8739         (STARTFILE_SPEC): Likewise.
8740         (ENDFILE_SPEC): Likewise.
8741         (LIB_SPEC): Likewise.
8742         (INVOKE__main): Likewise.
8743         (CTOR_LIST_BEGIN): Likewise.
8744         (CTOR_LIST_END): Likewise.
8745         (DTOR_LIST_BEGIN): Likewise.
8746         (DTOR_LIST_END): Likewise.
8747         (SET_ASM_OP): Likewise.
8748         (ASM_OUTPUT_SOURCE_LINE): Likewise.
8749         (ASM_OUTPUT_DEF): Likewise.
8750         (ASM_OUTPUT_IDENT): Likewise.
8751
8752         * config/mips/mips.h (ASM_SPEC): Undefine before define.
8753         (CPLUSPLUS_CPP_SPEC): Likewise.
8754         (ASM_APP_ON) Redefine only if not defined.
8755         (ASM_APP_OFF): Likewise.
8756         (ASM_OUTPUT_SOURCE_LINE): Likewise.
8757         (ASM_OUTPUT_IDENT): Likewise.
8758
8759         * config.gcc: Update tm_file for Linux/mips.
8760
8761 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
8762
8763         * cselib.c (cselib_record_sets): If insn is predicated, turn
8764         sources into IF_THEN_ELSEs.
8765
8766         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
8767         Turn into define_insn_and_split.
8768
8769         * sched-deps.c: Include "cselib.h".
8770         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
8771         Use cselib to turn memory addresses into VALUEs.
8772         (sched_analyze): Call cselib_init/cselib_finish if necessary.
8773         * sched-int.h (struct sched_info): New member USE_CSELIB.
8774         * sched-ebb.c (ebb_sched_info): Initialize it.
8775         * sched-rgn.c (rgn_sched_info): Likewise.
8776         * Makefile.in (sched-deps.o): Update dependencies.
8777
8778         * cselib.h (cselib_subst_to_values): Declare.
8779         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
8780         that have no value and autoincs to be handled by generating a new
8781         dummy value.
8782
8783 2001-08-08  Graham Stott  <grahams@redhat.com>
8784
8785         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
8786         within fixed length SEQUENCE.
8787
8788 2001-08-08  Graham Stott  <grahams@redhat.com>
8789
8790         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
8791         (diagnostic_prefixing_rule): Likewise.
8792         (diagnostic_line_cutoff): Likewise.
8793         (diagnostic_kind_count): Likewise.
8794
8795 2001-08-08  Graham Stott  <grahams@redhat.com>
8796
8797         * alias.c (find_base_decl): Delete redundent assignment.
8798
8799 2001-08-08  Graham Stott  <grahams@redhat.com>
8800
8801         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
8802         (abs): Uppercase and paranthesize macro parameter.
8803         (MEM_DEPENDENCY): Add whitespace.
8804
8805 2001-08-08  Graham Stott  <grahams@redhat.com>
8806
8807         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
8808         failure check for CONST_INT
8809
8810 2001-08-08  Graham Stott  <grahams@redhat.com>
8811
8812         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
8813         (libcall_dead_p): Likewise.
8814
8815         (mark_used_regs): Constify fmt.
8816         (find_use_as_address): Likewise.
8817
8818 2001-08-08  Graham Stott  <grahams@redhat.com>
8819
8820         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
8821          parameter.
8822
8823 2001-08-08  Graham Stott  <grahams@redhat.com>
8824
8825         * combine.c (combine_simplify_rtx): Update comment and
8826         remove erroneous test.
8827
8828 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8829
8830         * cppinit.c (cpp_finish): Pop the final buffer without comment.
8831         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
8832         take care to avoid multiple no-newline at EOF warnings in that
8833         case.
8834
8835 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
8836
8837         * calls.c (expand_call): Do not emit INSN_SETJMP note.
8838         (emit_library_call_value_1): Likewise.
8839         (emit_call_1): Emit REG_SETJMP note.
8840         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
8841         of INSN_SETJMP
8842         * cselib.c (cselib_process_insn): Likewise.
8843         * flow.c (propagate_block): Likewise.
8844         * loop.c (find_and_verify_loops): Likewise.
8845         * reload.c (find_equiv_regs): Likewise.
8846         * reload1.c (reload): Likewise.
8847         * resource.c (mark_referenced_resources,
8848         mark_set_resources): Likewise.
8849         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
8850         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
8851         * haifa-sched.c (unlink_other_notes): Likewise.
8852         (reemit_notes): Likewise.
8853         * sched-ebb.c (sched_ebb): Likewise.
8854         * sched-rgc.c (sched_region): Likewise.
8855         * rtl.c (note_insn_name): Likewise.
8856         (reg_note_name): Add REG_SETJMP
8857         * rtl.h (reg_note): Add REG_SETJMP.
8858         (insn_note): Remove NOTE_INSN_SETJMP.
8859
8860         * profile.c (branch_prob): Add fake edges for setjmp.
8861
8862 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
8863
8864         * config.gcc: Quote target_cpu_default2 correctly for
8865         powerpc*-*-* targets.
8866
8867 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8868
8869         * cpplib.h, line-map.h: Update comments.
8870         * cppmain.c (printer_init): Move inline.
8871         (maybe_print_line, print_line): Take a map pointer.
8872         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
8873         (cb_file_change): Don't use prior value of print.map.
8874
8875 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
8876
8877         * doc/install.texi: Document fine-grained multilib configuration.
8878
8879 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8880
8881         * rtlanal.c (find_first_parameter_load): Call note_stores
8882         only on the instructions.
8883
8884 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
8885
8886         * alias.c (nonlocal_mentioned_p):
8887         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
8888         * calls.c (emit_call_1): Likewise.
8889         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
8890         * cselib.c (cselib_process_insn): Likewise.
8891         * df.c (df_insns_modify): Likewise.
8892         * flow.c (need_fake_edge_p): Likewise.
8893         (propagate_one_insn): Likewise.
8894         * haifa-sched.c (reemit_notes): Likewise.
8895         * integrate.c (copy_insn_list): Likewise.
8896         * jump.c (delete_prior_computation): Likewise.
8897         * local-alloc.c (validate_equiv_mem): Likewise.
8898         * loop.c (scan_loop): Likewise.
8899         * predict.c (estimate_probability): Likewise.
8900         * reload.c (reload): Likewise.
8901         * sched-deps (sched_analyze): Likewise.
8902         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
8903         * gcse.c (compute_hash_table): Likewise.
8904         (mark_call): Likewise.
8905         (store_killed_in_insn): Likewise.
8906
8907 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
8908
8909         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
8910
8911 2001-08-06  Richard Henderson  <rth@redhat.com>
8912
8913         * varasm.c (assemble_gc_entry): Remove.
8914         * output.h: Likewise.
8915
8916 2001-08-06  Richard Henderson  <rth@redhat.com>
8917
8918         * varasm.c (assemble_constructor): Take a symbol_ref and a
8919         priority instead of a bare string.  Move priority handling
8920         here from cp/decl2.c.
8921         * output.h: Update decls.
8922
8923         * c-decl.c (c_expand_body): Update calls to assemble_constructor
8924         and assemble_destructor.
8925         * profile.c (output_func_start_profiler): Likewise.
8926         * objc/objc-act.c (finish_objc): Likewise.
8927         (build_module_descriptor): Return the symbol not the symbol name.
8928
8929 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
8930
8931         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
8932         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
8933         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
8934         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
8935         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
8936         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
8937
8938 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8939
8940         * cpperror.c (print_containing_files): Moved to line-map.c.
8941         (print_location): line-map.c handles re-listing or otherwise.
8942         * cpphash.h (struct lexer_state): Remove next_bol.
8943         (struct cpp_buffer): Remove include_stack_listed.
8944         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
8945         Remove faked buffer handling.
8946         (_cpp_do_file_change): Tweak.
8947         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
8948         * cppmain.c (struct printer): Remove filename.
8949         (print_line, cb_file_change): Update accordingly.
8950         * line-map.c: Include intl.h.
8951         (init_line_maps): Initialize last_listed.
8952         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
8953         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
8954         (print_containing_files): New.
8955         * line-map.h (struct line_maps): New member last_listed.
8956         (print_containing_files, INCLUDED_FROM): New.
8957         * Makefile.in: Update.
8958         * po/POTFILES.in: Add line-map.c.
8959
8960 2001-08-06  Richard Henderson  <rth@redhat.com>
8961
8962         * except.c (convert_from_eh_region_ranges_1): Never mark
8963         USE or CLOBBER insns as throwing.
8964
8965         * expr.c (store_constructor): Don't clobber memory targets.
8966
8967 2001-08-06  Andreas Jaeger  <aj@suse.de>
8968
8969         * profile.c (branch_prob): Remove unused variable insn.
8970
8971         * Makefile.in (local-alloc.o): Add dependency on except.h.
8972
8973         * local-alloc.c: Include except.h for can_throw_internal prototype.
8974
8975 2001-08-06  Richard Henderson  <rth@redhat.com>
8976
8977         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
8978         * function.c (expand_main_function): Implement it.
8979         * doc/tm.texi: Document it.
8980
8981 2001-08-06  Stan Shebs  <shebs@apple.com>
8982
8983         * doc/install.texi: Document powerpc-*-darwin* details.
8984
8985 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
8986
8987         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
8988         (ASM_CPU_SPEC): Move back to rs6000.h
8989         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
8990
8991         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
8992
8993         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
8994         readded.
8995
8996         * config/rs6000/linux64.h: Ditto.
8997
8998         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
8999         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
9000         nothing.
9001
9002         Remove accidently readded definitions of FUNCTION_PROLOGUE,
9003         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
9004
9005         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
9006         to rs6000.h
9007
9008 2001-08-05  Richard Henderson  <rth@redhat.com>
9009
9010         * local-alloc.c (update_equiv_regs): Do not move insns that
9011         can throw.
9012
9013 2001-08-05  Jan Hubicka  <jh@suse.cz>
9014
9015         * Makefile.in (reload1.o): Add dedendancy on except.h
9016         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
9017         prototypes.
9018         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
9019         indicating wehther edges has been cleaned up.
9020         * reload1.c: Inlucde except.h
9021         (fixup_abnormal_edges): Accept deleted insns.
9022         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
9023         after combine.
9024
9025 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9026
9027         * cpplib.c (do_line): Correct line number after pop_buffer.
9028
9029 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9030
9031         PR preprocessor/3824
9032         * line-map.c: Update comments.
9033         * line-map.h: Update comments.
9034         * tradcif.y: Don't consider large numbers unsigned.
9035
9036 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9037
9038         PR preprocessor/3081
9039         * c-lex.c (map): New.
9040         (cb_file_change): Update map and use it.
9041         (cb_def_pragma, cb_define, cb_undef): Use map and line.
9042         (c_lex): Update to use map.
9043         * cpperror.c (print_location): Move to using logical line numbers.
9044         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
9045         (cpp_make_system_header): Similarly.
9046         (_cpp_execute_include): Stop line numbering hacks.  Store the
9047         line we will return to.
9048         * cpphash.h (CPP_BUF_LINE): Remove.
9049         (struct cpp_buffer): Remove lineno and pseudo_newlines.
9050         Add map and return_to_line.
9051         (_cpp_do_file_change): Update.
9052         * cppinit.c (cpp_start_read): Update line kludge.
9053         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
9054         (trigraph_ok): Use logical line numbers for diagnostics.
9055         (skip_block_comment): Likewise.
9056         (skip_whitespace): Likewise.
9057         (skip_line_comment): Use pfile->line instead.
9058         (_cpp_lex_token): Update to use logical line numbering exclusively.
9059         Handle BOL locally.  Accept new lines in directives, but keep
9060         pfile->line decremented.  Diagnostics use logical lines.  Update
9061         directive handling.
9062         * cpplib.c (SEEN_EOL): New.
9063         (skip_rest_of_line, check_eol): Use it.
9064         (end_directive): Increase line number when accepting the newline
9065         at the end of a directive.
9066         (run_directive): Simplify.
9067         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
9068         (_cpp_do_file_change): Update to take buffer line number as an
9069         argument, and store the current map in the cpp_reader.  Remove
9070         line number kludges.
9071         (_cpp_do__Pragma): Restore output position after a _Pragma.
9072         (cpp_push_buffer): Don't set output line or lineno.
9073         (_cpp_pop_buffer): Transfer more info from a faked buffer.
9074         Remove line kludge.  Set output_line.
9075         * cppmacro.c (builtin_macro): Update handling of __LINE__.
9076         (parse_arg): Use logical lines.
9077         (save_lookahead_token): Save EOFs too now.
9078         * cppmain.c (struct printer): Fix comments.
9079         (printer_init): Simplify, let caller do errors.
9080         (scan_translation_unit, check_multiline_token, dump_macro): Update.
9081         (maybe_print_line): Simplify.
9082         (print_line): Don't print a linemarker if -P.
9083         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
9084         (cb_file_change): Simplify.
9085         * line-map.h (LAST_SOURCE_LINE): Fix.
9086         (CURRENT_LINE_MAP): New.
9087
9088 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
9089
9090         * doloop.c (doloop_modify_runtime): Properly compute number of
9091         iterations if loop was unrolled.
9092
9093         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
9094         if their CSELIB_VAL_PTRs are.
9095
9096         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
9097         (setup_spill_pointers): Initialize it.
9098         (spill_restore_mem): Set it.
9099         (do_spill, do_restore): Use it to add REG_INC note.
9100         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
9101
9102         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
9103         asms if other insns are available.
9104
9105         * config/ia64/ia64.c (condop_operator): New predicate.
9106         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
9107         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
9108         patterns.
9109
9110         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
9111         temporary register than directly using a MEM.
9112
9113 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9114
9115         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
9116         parameter in last change.
9117
9118 2001-08-04  Zack Weinberg  <zackw@panix.com>
9119
9120         * sparc.md: Don't use #if inside C test expression.
9121
9122 2001-08-04  Richard Henderson  <rth@redhat.com>
9123
9124         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
9125
9126 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9127
9128         * cpphash.h (struct cpp_reader): New member directive_line.
9129         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
9130         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
9131         do_pragma): Pass line to callbacks.
9132         (start_directive): Record line of directive.
9133         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
9134         cb_include): Similarly.
9135         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
9136         Similarly.
9137
9138 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9139
9140         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
9141         comment.
9142
9143 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9144
9145         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
9146
9147         * reload1.c (fixup_abnormal_edges): New static function.
9148         (reload): Use it.
9149
9150         * flow.c (need_fake_edge_p): New function.
9151         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
9152         avoid call insn to be very last insn in the insn stream.
9153
9154         * profile.c (branch_prob): Call flow_call_edges_add instead of
9155         doing that by hand; cleanup cfg to re-merge basic blocks once
9156         we are done.
9157
9158 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9159
9160         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
9161         are also on line-map.h.
9162         * cppfiles.c (stack_include_file): Update.
9163         * cpphash.h (struct cpp_buffer): New member return_at_eof.
9164         (_cpp_pop_buffer): New.
9165         * cppinit.c (cpp_destroy, cpp_finish): Update.
9166         (do_includes): Mark each buffer to return at EOF.
9167         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
9168         return as requested.
9169         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
9170         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
9171         * cpplib.h (cpp_pop_buffer): Remove.
9172         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
9173         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
9174         buffers.
9175         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
9176         to pop buffers.
9177         (do_preprocessing): Update.
9178         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
9179         * c-parse.in (_yylex): Similarly.
9180         * scan-decls.c (scan_decls): Similarly.
9181         * line-map.h: Update comments.
9182
9183         * objc/Make-lang.in (objc-act.o): Update dependencies.
9184
9185 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9186
9187         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
9188         and soft register for operand 0.
9189         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
9190
9191 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9192
9193         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
9194         register for operand 0.
9195         ("bitcmpqi_z_used"): Allow memory for operand 0.
9196         (split "bitcmpqi"): New split to handle address reg as operand 1.
9197
9198 2001-08-04  Andreas Jaeger  <aj@suse.de>
9199
9200         * gcse.c: Revert Daniel's last patch.
9201
9202 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
9203
9204         * sparc-protos.h: Add prototypes for fp_zero_operand and
9205         reg_or_0_operand.
9206         * sh-protos.h: Add prototype for fpul_operand.
9207
9208 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9209
9210         * doc/extend.texi (Other Builtins): Fix typo in last change.
9211
9212 2001-08-03  Richard Henderson  <rth@redhat.com>
9213
9214         * target.h (gcc_target): Add asm_out.named_section,
9215         section_type_flags, have_named_sections.
9216         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
9217         (TARGET_HAVE_NAMED_SECTIONS): New.
9218         (TARGET_SECTION_TYPE_FLAGS): New.
9219
9220         * Makefile.in (toplev.o): Depend on TARGET_H.
9221         (varasm.o, dbxout.o): Likewise.
9222         * c-common.c (decl_attributes): Check targetm.have_named_sections
9223         instead of ifdef ASM_OUTPUT_SECTION_NAME.
9224         * dbxout.c (dbxout_function_decl): Likewise.
9225         (dbxout_function_end): Likewise.
9226         * toplev.c (compile_file): Likewise.
9227         * varasm.c (exception_section): Likewise.
9228         * cp/decl2.c (finish_objects): Likewise.
9229
9230         * defaults.h (EH_FRAME_SECTION): Remove.
9231         (EH_FRAME_SECTION_ASM_OP): Remove.
9232         (EH_FRAME_SECTION_NAME): New.
9233         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
9234         (UNIQUE_SECTION_P): Remove.
9235         * dwarf2out.c (SECTION_FORMAT): Remove.
9236         (ASM_OUTPUT_SECTION): Remove.
9237         (output_call_frame_info): Use named_section_flags.
9238         (output_comp_unit, dwarf2out_start_source_file): Likewise.
9239         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
9240         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
9241         * varasm.c (in_eh_frame, eh_frame_section): Remove.
9242         (named_section_flags): New.
9243         (named_section): Use it and targetm.section_type_flags.
9244         (resolve_unique_section): New.
9245         (assemble_start_function): Use it.
9246         (asm_emit_uninitialised, assemble_variable): Likewise.
9247         (default_section_type_flags): New.
9248         (default_no_named_section, default_elf_asm_named_section): New.
9249         (default_coff_asm_named_section, default_pe_asm_named_section): New.
9250         * output.h: Update varasm.c decls.
9251         (SECTION_*): New flags.
9252
9253         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
9254         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
9255
9256         * config/elfos.h (UNIQUE_SECTION_P): Remove.
9257         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
9258         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
9259         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
9260         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
9261         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
9262         * config/mips/elf.h, config/mips/elf64.h: Likewise.
9263         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
9264         * config/pa/pa64-hpux.h,
9265
9266         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
9267         (TARGET_ASM_NAMED_SECTION): New.
9268         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
9269         * config/alpha/vms.h, config/arm/coff.h: Likewise.
9270         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
9271         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
9272         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
9273         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
9274         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
9275         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
9276         * config/i386/sco5.h, config/i386/win32.h: Likewise.
9277         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
9278         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
9279         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
9280         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
9281         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
9282         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
9283         * config/sparc/sysv4.h: Likewise.
9284
9285         * config/nextstep.h: Error until named sections implemented.
9286
9287         * config/a29k/a29k.c (a29k_asm_named_section): New.
9288         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
9289         (vms_section_type_flags, vms_asm_named_section): New.
9290         * config/arm/arm.c (arm_elf_asm_named_section): New.
9291         * config/avr/avr.c (asm_output_section_name): Remove.
9292         * config/avr/avr-protos.h: Update.
9293         * config/c4x/c4x.c (c4x_asm_named_section): New.
9294         * config/h8300/h8300.c (h8300_asm_named_section): New.
9295         * config/i386/i386.c (sco_asm_named_section): New.
9296         * config/i386/winnt.c (SECTION_PE_SHARED): New.
9297         (i386_pe_section_type_flags): New.
9298         (i386_pe_asm_named_section): New.
9299         * config/i386/i386-protos.h: Update.
9300         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
9301         * config/mcore/mcore.c (mcore_asm_named_section): New.
9302         * config/mips/mips.c (iris6_asm_named_section): New.
9303         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
9304         instead of UNIQUE_SECTION_P.
9305         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
9306         (xcoff_asm_named_section): New.
9307         * config/sh/sh.c (sh_asm_named_section): New.
9308         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
9309
9310         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
9311         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
9312         (EH_FRAME_SECTION_NAME): New.
9313         (EXCEPTION_SECTION): New.
9314         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
9315         (DEBUG_*_SECTION): Remove.
9316         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
9317         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
9318         (EH_FRAME_SECTION_ASM_OP): Remove.
9319
9320         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
9321         (ASM_OUTPUT_SECTION_NAME): Remove.
9322         (TARGET_ASM_NAMED_SECTION): New.
9323         (TARGET_HAVE_NAMED_SECTIONS): New.
9324         (TARGET_SECTION_TYPE_FLAGS): New.
9325         (EH_FRAME_SECTION_ASM_OP): Remove.
9326         (EH_FRAME_SECTION_NAME): New.
9327
9328 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
9329
9330         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
9331         for complex expressions when cfun == 0.
9332         * doc/extend.texi: Document that __builtin_constant_p can be
9333         used in data initializers as well as functions.
9334
9335 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
9336
9337         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
9338         variable I locally, instead of expecting a declaration in the
9339         calling context.
9340
9341 2001-08-03  Richard Henderson  <rth@redhat.com>
9342
9343         * except.c (collect_one_action_chain): Add an explicit cleanup
9344         action if regions surrounding a catch were encoded entirely
9345         within the call-site entry.
9346
9347 2001-08-03  Richard Henderson  <rth@redhat.com>
9348
9349         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
9350         don't take REGNO of a non-register.
9351
9352 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9353
9354         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
9355         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
9356         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
9357         (__gthread_mutex_init_function): New function for mutex initialization.
9358
9359 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9360
9361         * Makefile.in: Revert screwed up commit.
9362
9363 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9364
9365         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
9366         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
9367         merged by linker script to get a final _exit().
9368         (__do_global_dtors): New for destructor handling in specific exit
9369         section.
9370         (__do_global_ctors): New for constructors in specific install section.
9371         (__map_data_section): Map data sections before running constructors.
9372         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
9373         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
9374         (DTORS_SECTION_ASM_OP): Likewise.
9375         (CTORS_SECTION_FUNCTION): Define to force a reference to
9376         __do_global_ctors.
9377         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
9378
9379 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9380
9381         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
9382
9383         * Makefile.in: Add df.h to gcse.c dependencies.
9384
9385 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9386
9387         * varasm.c (output_constant_def_contents): Use for the length of a
9388         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
9389         depending on which is larger.
9390
9391 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
9392
9393         * gcse.c: Include df.h for use as a dataflow analyzer.
9394         Remove regvec.
9395         Declaration of reg_set_info: gone.
9396         New df_analyzer variable used by store motion.
9397         (reg_set_info): Deleted.
9398         (mark_mem_regs): New function, analyze regs used by a mem.
9399         (store_ops_ok): Use dataflow analyzer results to determine if
9400         necessary regs are changed in the block.
9401         (find_moveable_store): Remove check for symbol ref, we can handle
9402         much more complex expressions now.
9403         (compute_store_table): Remove most of the code, it's unnecessary
9404         now that the dataflow analyzer records the info for us.
9405         (store_killed_after): Add parameter to say whether to do the
9406         store_ops_okay test, used to speed up testing when we already know
9407         the answer, and just want to know if the store itself was killed.
9408         (build_store_vector): Largely rewritten to calculate the various
9409         vectors properly, and somewhat optimized.
9410         (store_motion): Init the df_analyzer, get REG_DEF chains.
9411         Also handle trapping expressions (since mems almost always trap)
9412         (simple_mem): Redefine what a simple mem is.
9413
9414 2001-08-03  DJ Delorie  <dj@redhat.com>
9415
9416         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
9417         set from a constant part of the condition.
9418
9419 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
9420
9421         * mkdeps.c (deps_add_default_target): Make local variable
9422         ``start'' a const char pointer.
9423         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
9424
9425 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9426
9427         * doc/install.texi (Configuration): Fix markup.
9428         (Specific, i?86-*-udk): Likewise.
9429         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
9430         --with-gnu-ld.
9431         Document --enable-threads and --enable-libgcj status.
9432         (Specific, mips-sgi-irix*): Canonicalize triples.
9433         (Specific, mips-sgi-irix5): Warn about problems with this config.
9434         Mention required GNU as patch.
9435         Native assembler problems are fixed.
9436         (Specific, mips-sgi-irix6): Update O32 ABI support status.
9437         Document --enable-threads and --enable-libgcj status.
9438
9439 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9440
9441         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
9442         of mkinstalldirs.
9443
9444 2001-08-03  Richard Henderson  <rth@redhat.com>
9445
9446         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
9447         constant data.
9448
9449 2001-08-03  Richard Henderson  <rth@redhat.com>
9450
9451         * rtlanal.c (find_first_parameter_load): Stop if we
9452         reach a CODE_LABEL at BOUNDARY.
9453
9454 2001-08-03  Richard Henderson  <rth@redhat.com>
9455
9456         * config/alpha/alpha.md (force_movdi): New insn.
9457         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
9458         Tweek FRP marking of VMS prologue insns.
9459         * config/alpha/vms.h (EPILOGUE_USES): New.
9460
9461 2001-08-02  Richard Henderson  <rth@redhat.com>
9462
9463         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
9464
9465 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
9466
9467         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
9468         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
9469         config/convex/convex.h, config/d30v/d30v.c,
9470         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9471         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
9472         config/mips/mips.h, config/mn10200/mn10200.h,
9473         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
9474         config/v850/v850.h, config/vax/openbsd.h,
9475         config/vax/openbsd1.h, config/vax/ultrix.h,
9476         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
9477         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
9478         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
9479         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
9480         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
9481         in comments and documentation.
9482
9483 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9484
9485         * line-map.c: New.
9486         * line-map.h: New.
9487         * Makefile.in (line-map.o): New.
9488         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
9489         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
9490         * cpperror.c (print_containing_files): Similarly.
9491         (print_location): Update.  Don't output a space before _Pragma.
9492         * cppfiles.c (stack_include_file): Set to line 1 immediately.
9493         (stack_include_filee, cpp_make_system_header): Update.
9494         (_cpp_execute_include): Get logical line number right for calling
9495         as-yet-unterminated #include.
9496         * cpphash.h (struct cpp_reader): Add line_maps.
9497         (_cpp_do_file_change): Update.
9498         * cppinit.c (cpp_create_reader): Initialize line maps.
9499         (cpp_destroy): Destroy line maps.
9500         (cpp_start_read): Get logical line number right.
9501         * cpplex.c (parse_string): Only warn once for multi-line strings.
9502         Use boolean variable for null warning.
9503         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
9504         already.
9505         (do_include_common): End the directive early.
9506         (do_line): Don't warn about out-of-range lines in preprocessed
9507         source.  Update.  Remove unused variables.
9508         (_cpp_do_file_change): Update for new line mapping.
9509         (pragma_cb): New typedef.
9510         (cpp_register_pragma): Stop looking ahead before calling the
9511         handler.  Clean up.
9512         (do_pragma_system_header): End directive early.
9513         (cpp_get_line_maps): New.
9514         (cpp_pop_buffer): Fudge logical line.  Update.
9515         * cpplib.h: Include line-map.h
9516         (enum cpp_fc_reason): Remove.
9517         (struct cpp_file_change): Update.
9518         (cpp_get_line_maps): New.
9519         * cppmain.c (struct_printer): New member map.
9520         (cb_file_change): Update for new mappings.
9521         * fix-header.c (cb_file_change): Similarly.
9522
9523 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9524
9525         * Makefile.in (libgcc.mk): Define mkinstalldirs.
9526         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
9527
9528 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
9529
9530         * config/vax/vax.c: include expr.h.
9531
9532 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
9533
9534         * Makefile.in ($(srcdir)/configure): Only rebuild in
9535         maintainer mode.
9536         ($(srcdir)/config.in): Only define in maintainer mode.
9537         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
9538
9539 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
9540
9541         * doc/install.texi (Install GCC: Binaries): Update Bull info.
9542
9543 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9544
9545         * gcc.c (set_collect_gcc_options): New function, split out from
9546         main.
9547         Ignore elided switches.
9548         (do_spec_1): Invoke before executing command.
9549         (set_input): Export.
9550         Move declaration ...
9551         * gcc.h (set_input): ... here.
9552         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
9553         file.
9554
9555 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
9556
9557         Kill -fhonor-std.
9558         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
9559         interaction.
9560         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
9561
9562 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
9563
9564         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
9565         for the unnamed instructions it expands to.
9566
9567 2001-08-02  Richard Henderson  <rth@redhat.com>
9568
9569         * regclass.c (call_really_used_regs): Conditionally define.
9570         (init_reg_sets_1): Don't use it if not defined.
9571         (fix_register): Similarly, don't set it.
9572
9573 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9574
9575         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
9576         Correct comment that had been missed in the previous change.
9577
9578 2001-08-01  Stan Shebs  <shebs@apple.com>
9579
9580         * config/darwin.c (machopic_stub_name): Try matching by name.
9581         (update_stubs): New function.
9582         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
9583         unconditionally.
9584
9585 2001-08-01  Richard Henderson  <rth@redhat.com>
9586
9587         * except.c (output_function_exception_table): Use assemble_align.
9588         * varasm.c (assemble_eh_label): Remove.
9589         (assemble_eh_align, assemble_eh_integer): Remove.
9590
9591 2001-08-01  Robert Lipe  <robertl@caldera.com>
9592
9593         * dwarfout.c: Remove reference to README.DWARF.
9594
9595 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
9596
9597         * regclass.c (call_really_used_regs): New array for registers which
9598         are actually used by a call.
9599         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
9600         new array.
9601         (fix_register): Set call_really_used too.
9602         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
9603         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
9604
9605 2001-08-01  Richard Henderson  <rth@redhat.com>
9606
9607         * read-rtl.c (read_name): Consider \r whitespace.
9608
9609 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
9610
9611         * config.gcc: Recognize powerpc-*-netbsd*.
9612
9613         * doc/install.texi (Host/target specific installation notes for
9614         GCC): Mention powerpc-*-netbsd*.
9615
9616         * config/rs6000/netbsd.h: New file.
9617         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
9618         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
9619         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
9620         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
9621         (TARGET_VERSION): Redefine.
9622
9623         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
9624         mcall-netbsd as a match for mcall-sysv.
9625         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
9626         (ncrti.S, ncrtn.S): New targets.
9627         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
9628
9629         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
9630         "netbsd' as a V4 ABI.
9631         (ASM_SPEC): Check for -mcall-netbsd.
9632         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
9633         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
9634         (LIB_SPEC, ENDFILE_SPEC): Ditto.
9635         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
9636         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
9637         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
9638         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
9639
9640         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
9641         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
9642
9643 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
9644
9645         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
9646         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
9647         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
9648         including "unwind-pe.h".
9649
9650 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
9651
9652         * rs6000.md (define_splits): Kill unused constraints.
9653
9654 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
9655                               Jan Hubicka  <jh@suse.cz>
9656
9657         * function.c (thread_prologue_and_epilogue_insns): Kill code
9658         dealing with non-existent CFG.
9659
9660 2001-08-01  Kazu Hirata  <kazu@hxi.com>
9661
9662         * alias.c: Fix comment formatting.
9663         * bitmap.c: Likewise.
9664         * builtins.c: Likewise.
9665         * calls.c: Likewise.
9666         * c-common.c: Likewise.
9667         * c-decl.c: Likewise.
9668         * c-dump.c: Likewise.
9669         * c-lex.c: Likewise.
9670         * collect2.c: Likewise.
9671         * combine.c: Likewise.
9672         * conflict.c: Likewise.
9673         * cppfiles.c: Likewise.
9674         * cppinit.c: Likewise.
9675         * cpplex.c: Likewise.
9676         * cpplib.c: Likewise.
9677         * cppmacro.c: Likewise.
9678         * cppspec.c: Likewise.
9679         * c-pragma.c: Likewise.
9680         * crtstuff.c: Likewise.
9681         * cse.c: Likewise.
9682         * cselib.c: Likewise.
9683         * c-semantics.c: Likewise.
9684         * c-typeck.c: Likewise.
9685
9686 2001-08-01  H.J. Lu <hjl@gnu.org>
9687
9688         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
9689
9690 2001-08-01  H.J. Lu <hjl@gnu.org>
9691
9692         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
9693
9694 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
9695
9696         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
9697         contextualizing Objective-C class name lookup by the lexer.
9698         (typespec_reserved_nonattr): Disable ObjC class name lookup after
9699         seeing a TYPESPEC.
9700         (protocoldef): Add support for forward @protocol declarations.
9701         (yylexname): Suppress ObjC class name lookup in certain contexts;
9702         re-enable after lookup is complete.
9703         (_yylex): Re-enable ObjC class name lookup when certain
9704         punctuation marks are seen.
9705
9706         * objc/objc-act.c (check_protocol_recursively): New function used
9707         for finding circular dependencies in protocols.
9708         (objc_declare_protocols): New function for handling forward
9709         @protocol declarations.
9710         (receiver_is_class_object): Detect the case when 'self' is used
9711         inside of a class method.
9712         (build_message_expr): Issue a warning if class method is desired
9713         but instance method is found instead.
9714         (conforms_to_protocol): Streamline.
9715         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
9716         protocol Foo, even if 'Bar foo' does not.
9717         (check_protocols): Streamline.
9718         (start_protocol): Add checks for circular and duplicate protocol
9719         definitions.
9720         (encode_aggregate_within): For typedefs of structs, encode the
9721         underlying struct.
9722         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
9723         (objc_declare_protocols): New prototype.
9724
9725 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9726
9727         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
9728         * cpplex.c (handle_newline): Update prototype.  Maintain logical
9729         line number.
9730         (skip_escaped_newlines, skip_block_comment, parse_string):
9731         Update accordingly.
9732         (_cpp_lex_token): Update, and store token position within the token.
9733         * cpplib.h (struct cpp_token): Add line and column entries.
9734         * cppmacro.c (replace_args): Position stringified tokens correctly.
9735
9736 2001-08-01  Andreas Jaeger  <aj@suse.de>
9737
9738         * basic-block.h: Add prototype for last_loop_beg_note.
9739
9740 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
9741
9742         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
9743         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
9744         comment.
9745         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
9746         while handling WITH_CLEANUP_EXPR node. Use second operand calling
9747         expand_decl_cleanup.
9748         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
9749         the first RTX.
9750         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
9751         operand while calling simple_cst_equal.
9752         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
9753         operand is the cleanup expression, the third is the RTL_EXPR.
9754         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
9755
9756 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
9757
9758         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
9759
9760 2001-07-31  matthew green  <mrg@eterna.com.au>
9761
9762         * config.gcc (i386-*-netbsdelf): New description.
9763         * config/i386/netbsd-elf.h: New file.
9764
9765 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
9766
9767         * loop.c (check_dbra_loop): Use single_set to compute
9768         jump_label.
9769
9770 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
9771
9772         PowerPC reorg and support for powerpc64-*-linux*.
9773
9774         Also fixes emitting of constants on 32 bit and 64 bit
9775         platforms.
9776
9777         * config.gcc: powerpc64-*-linux* is a new target.
9778         Things that needed aix.h now also include xcoff.h
9779
9780         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
9781         xcoff.h.
9782         Move AIX specific stuff into aix.h.
9783         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
9784         with more than just XCOFF now.
9785         (SET_ASM_OP): Remove, now defined where needed.
9786         (FUNCTION_PROLOGUE): New macro definition.
9787         (FUNCTION_EPILOGUE): New macro definition.
9788         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
9789
9790         * config/rs6000/xcoff.h: New file.
9791
9792         * config/rs6000/linux64.h: New file.
9793
9794         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
9795
9796 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
9797
9798         * rs6000.c (print_operand_address): Handle ELF syntax.
9799         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
9800         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
9801         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
9802
9803 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
9804
9805         * rs6000.c (rs6000_override_options): Only disable
9806         flag_function_sections for XCOFF.
9807         (exact_log2_cint_operand): New predicate.
9808         (reg_or_{add,sub}_cint64_operand): New predicates.
9809         (add_operand): Compare CONST_INT with fewer function calls.
9810         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
9811         (print_operand, case 'p'): Ensure positive operand.
9812         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
9813         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
9814         (PREDICATE_CODES): Add new predicates.
9815         * rs6000.md (addsi3): Split 32-bit constants more correctly.
9816         (divsi3, modsi3): Ensure positive power-of-2.
9817         (adddi3): Use new predicate.  Split 32-bit constants more
9818         correctly.  Re-arrange splitter to handle any constant.
9819         (subdi3): Use new predicate.
9820         (divdi3, moddi3): Ensure positive power-of-2.
9821         (movdi): Use rs6000_emit_set_const.
9822         (load_toc_v4_pic_di): Delete.
9823
9824 2001-07-31  Graham Stott <grahams@redhat.com>
9825
9826         * function.c (pad_below): Revert 2001-07-26 patch.
9827
9828 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9829
9830         * reg-stack (convert_regs_1): Fix best edge condition.
9831
9832 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
9833
9834         * jump.c (duplicate_loop_exit_test): Better test for jumps
9835         entering the loop; create loop pre_header.
9836
9837 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
9838
9839         * doc/install.texi: Add s390 and s390x as new targets.
9840         * doc/invoke.texi: Add documentation of S/390 and zSeries
9841         target options.
9842         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
9843
9844 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
9845
9846         * config/m68k/m68k.md: Replace all general_operand with
9847         nonimmediate_operand for all destinations.
9848         * config/m68k/m68k.c (not_sp_operand): Likewise.
9849
9850 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
9851
9852         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
9853
9854 2001-07-30  Richard Henderson  <rth@redhat.com>
9855
9856         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
9857         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
9858
9859 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
9860
9861         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
9862         Add missing doc strings
9863         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
9864         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
9865
9866 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
9867
9868         * i386.c (ix86_output_main_function_alignment_hack): New function.
9869         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
9870
9871         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
9872         edges by EDGE_DFS_BACK flag.
9873         (dump_edge_info): Add dfs_back flag.
9874         * basic-block.h (EDGE_DFS_BACK): New constant.
9875         (mark_dfs_back_edges): Declare.
9876         * alias.c (loop_p): Remove.
9877         (mark_constant_function): Use mark_dfs_back_edges.
9878
9879         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
9880         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
9881         (compensate_edge): Break out from ...
9882         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
9883         (convert_regs_2): Set block_done once block is really done;
9884         Do updating of the predecesors counts.
9885
9886         * toplev.c (rest_of_compilation): Recompute block_for_insn
9887         before post-reload cfg_cleanup.
9888         * function.c (thread_prologue_epilogue_insns):
9889         Call set_block_for_new_insns when emitting prologue directly.
9890
9891 2001-07-30  Andreas Jaeger  <aj@suse.de>
9892
9893         * jump.c: Add prototype for mark_modified_reg.
9894
9895         * cse.c (set_live_p): Add unused attribute.
9896
9897         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
9898         overflow.
9899         (scan_for_source_files): Use long for count to avoid overflow.
9900         (output_data): Likewise.
9901         (output_data): Don't use string concatatenation to silence gcc
9902         -traditional.
9903
9904         * predict.c: Fix typos and grammar.
9905
9906         * gcse.c (insert_insn_end_bb): Remove unused variables.
9907
9908 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
9909
9910         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
9911         (attempt_auto_inc): LIkewise.
9912         (mark_used_reg): Likewise.
9913         (try_pre_increment_1): Likewise.
9914         * regclass.c (regclass): Likewise.
9915         * global.c (allocno_compare): Update comment; change scaling factor.
9916         * local-alloc.c (QTY_CMP_PRI): Likewise.
9917         * regs.h (REG_FREQ_FROM_BB): New.
9918         (REG_FREQ_MAX): Likewise.
9919
9920 2001-07-30  H.J. Lu <hjl@gnu.org>
9921
9922         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
9923         -D_GNU_SOURCE.
9924
9925 2001-07-30  H.J. Lu  (hjl@gnu.org)
9926
9927         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
9928         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
9929         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
9930
9931 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
9932
9933         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
9934         as -mthumb-interwork when -mcpu=arm7 is specified.
9935
9936 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
9937
9938         * predict.def (noreturn, loop branch, loop exit): Mark as first
9939         match heuristics.
9940
9941 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
9942
9943         * combine.c (try_combine): Avoid barrier after noop jumps.
9944
9945 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9946
9947         * cpphash.h (struct cpp_reader): Remove import_warning.
9948         * cpplib.c (skip_rest_of_line): Don't bother turning off
9949         macro expansion.
9950         (parse_include): Move include handling to...
9951         (do_include_common): ... here.  Move import warning from...
9952         (do_import): ... here.
9953         (do_pragma_poison): Don't do a callback for poison identifiers.
9954         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
9955         * cppmain.c (setup_callbacks): Similarly.
9956
9957 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
9958
9959         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
9960         handle multiple sets.
9961         * except.c (sjlj_mark_call_sites): .... here.
9962         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
9963
9964 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
9965
9966         Suggested by Richard Henderson and Richard Kenner:
9967         * combine.c (recog_for_combine): Use the fake recog
9968         only if instruction does not match.
9969         * rtl.h (NOOP_MOVE_INSN_CODE): New.
9970         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
9971
9972         * combine.c (try_combine): Discover noop jump as direct jump.
9973
9974 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
9975
9976         * df.c (df_rd_global_compute): Add successors to worklist, not
9977         current item.
9978         (df_ru_global_compute): Ditto.
9979
9980 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
9981
9982         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
9983         increment REG_N_SETS.
9984
9985 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
9986
9987         * sbitmap.h: New prototype for sbitmap_a_xor_b.
9988
9989         * sbitmap.c (sbitmap_a_xor_b): New function.
9990         ifdef the basic block stuff on IN_GCC.
9991
9992 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9993
9994         * cppexp.c (parse_defined): Always record the macro name.
9995         (lex): Don't worry about identifiers, or special-case
9996         CPP_NOT here.
9997         (_cpp_parse_expr): Figure out at the end of the routine
9998         whether we saw a valid !defined() expression.
9999         * cppfiles.c (stack_include_file): Update for mi_valid.
10000         (_cpp_pop_file_buffer): Similarly.
10001         * cpplex.c (_cpp_lex_token): Similarly.
10002         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
10003         mi_if_not_defined, mi_lexed): Remove.
10004         (mi_valid): New.
10005         * cpplib.c (do_if): Simplify.
10006         (do_endif, push_conditional, _cpp_handle_directive): Update
10007         for renaming of mi_state to mi_valid.
10008 doc:
10009         * cpp.texi: Add index entries for digraphs, and add comment
10010         that C++ refers to them as alternative tokens.
10011
10012 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
10013
10014         * basic-block.h (CLEANUP_PRE_LOOP): New.
10015         * except.c (finish_eh_generation): Update call of cleanup_cfg.
10016         * sibcall.c (optimize_sibling_calls): Likewise.
10017         * toplev.c (rest_of_compilation): Likewise.
10018         * flow.c (try_forward_edges): Take argument MODE;
10019         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
10020         (try_optimize_cfg): Update call of try_forward_edges.
10021
10022 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
10023                                 Jan Hubicka  <jh@suse.cz>
10024
10025         * (validate_replace_rtx_1): Fix simplification of MINUS.
10026
10027 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10028
10029         PR preprocessor/3669
10030         * cppinit.c (init_dependency_output): Turn off dump requests
10031         if sending dependencies to stdout.
10032
10033 2001-07-28  Richard Henderson  <rth@redhat.com>
10034
10035         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
10036         not optimizing.
10037
10038 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
10039
10040         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
10041
10042 2001-07-28  Kazu Hirata  <kazu@hxi.com>
10043
10044         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
10045         is VAR_DECL first to prevent an ICE.
10046
10047 2001-07-28  Richard Henderson  <rth@redhat.com>
10048
10049         * varasm.c (immed_real_const_1): Don't elide special cases for
10050         nested functions.
10051         (clear_const_double_mem): Clear const_tiny_rtx too.
10052
10053 2001-07-28  Richard Henderson  <rth@redhat.com>
10054
10055         * dwarf2out.c (dw_val_class_offset): New.
10056         (struct dw_ranges_struct, dw_ranges_ref): New.
10057         (ranges_table, ranges_table_allocated): New.
10058         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
10059         (add_AT_offset, add_ranges, output_ranges): New.
10060         (print_die, output_die): Handle dw_val_class_offset.
10061         (attr_checksum, size_of_die, value_format): Likewise.
10062         (gen_lexical_block_die): Handle non-contiguous blocks.
10063         (gen_block_die): Likewise.
10064         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
10065         if needed.  Dump the ranges table.
10066         * final.c (final_start_function): Remove unnecessary notes and
10067         rebuild the block tree before numbering the blocks.
10068         * function.c (reorder_blocks_0): Walk the existing block tree
10069         to unmark all blocks.
10070         (reorder_blocks_1): Create block fragments when duplicate block
10071         notes are seen.
10072         (reorder_fix_fragments): New.
10073         (reorder_blocks): Call it.
10074         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
10075
10076 2001-07-28  Richard Henderson  <rth@redhat.com>
10077
10078         * emit-rtl.c (adjust_address): Make a copy of the memory address.
10079
10080 2001-07-28  Richard Henderson  <rth@redhat.com>
10081
10082         * flow.c (add_to_mem_set_list): New function.
10083         (init_propagate_block_info): Use it.
10084         (mark_set_1): Likewise.
10085         (insn_dead_p): Canonicalize memory address for dead store
10086         comparison.  Allow wider mode stores to kill narrower mode stores.
10087         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
10088         (invalidate_mems_from_set): Don't handle MEMs.
10089
10090 2001-07-28  Kazu Hirata  <kazu@hxi.com>
10091
10092         * config/h8300/h8300.h: Fix formatting.
10093
10094 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10095
10096         * basic-block.h (EDGE_FREQUENCY): New macro.
10097         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
10098         for new BB/edges.
10099         * flow.c (find_sub_basic_blocks): Likewise.
10100         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
10101         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
10102
10103         * predict.c (DEF_PREDICTOR): New argument FLAGS.
10104         (HITRATE): New macro.
10105         (PRED_FLAG_FIRST_MATCH): New constant.
10106         (predictor_info): New field flgags.
10107         (combine_predictions_for_insn): Use DS theory to combine
10108         probabilities; set the edge probabilities when finished.
10109         (estimate_probability): Avoid duplicated matches
10110         of LOOP_BRANCH heuristics for nested loops; update comment.
10111         * predict.def: Add flags for each prediction, set probabilities
10112         according to B&L paper.
10113         * predict.h (DEF_PREDICTOR): New argument FLAGS.
10114
10115         * profile.c (compute_branch_probabilities):  Cleanup way the edge
10116         probabilities are computed and REG_BR_PROB notes are dropped; if
10117         values does not match, emit error.
10118         (init_branch_prob): Do error instead of warning when profile driven
10119         feedback is missing or corrupt.
10120
10121 2001-07-27  DJ Delorie  <dj@redhat.com>
10122
10123         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
10124         against a constant, try to adjust the compare to have the desired
10125         constant in it so that min/max optimizations happen more often.
10126
10127 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10128
10129         * flow.c (last_loop_beg_note): New function.
10130         (redirect_edge_and_branch): Use it.
10131         (split_edge): Likewise.
10132
10133         * alias.c (loop_p): Avoid uninitialized memory access.
10134
10135         * flow.c (try_forward_edges): Avoid accessing freed memory.
10136
10137         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
10138         variable access.
10139
10140 2001-07-26  Andrew Haley  <aph@redhat.com>
10141         Joern Rennecke <amylaar@redhat.com>
10142
10143         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
10144         (SUBTARGET_CPP_ENDIAN_SPEC): New.
10145         (SUBTARGET_CPP_SPEC): New.
10146         (CPP_SPEC): Remove.
10147         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
10148         (SUBTARGET_CPP_PTR_SPEC): New.
10149         (CPP_DEFAULT_CPU_SPEC): New.
10150         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
10151         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
10152         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
10153         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
10154         (SUBTARGET_CPP_SPEC): Define as an empty string.
10155
10156 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10157
10158         * doc/install.texi (Configuration): Properly link the host
10159         specific instructions also when generating HTML.
10160
10161 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
10162
10163         * flow.c (redirect_edge_and_branch_force): Test
10164         target->global_live_at_start.
10165
10166 2001-07-26  Richard Henderson  <rth@redhat.com>
10167
10168         * simplify-rtx.c (avoid_constant_pool_reference): Export.
10169         * rtl.h (avoid_constant_pool_reference): Declare it.
10170         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
10171         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
10172
10173 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10174
10175         * rtl.h (cleanup_barriers): Declare.
10176         * jump.c (cleanup_barriers): New function.
10177         * toplev.c (rest_of_compilation): Call cleanup_barriers
10178         before loop optimizer and after bb_reorder.
10179
10180         * flow.c (back_edge_of_syntactic_loop_p): New.
10181         (split_edge): Use it.
10182
10183 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10184
10185         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
10186
10187 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
10188
10189         * cse.c (cse_process_notes): Replace any registers if the address
10190         remains valid.
10191
10192 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
10193
10194         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
10195         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
10196         (propagate_block): Update prototype.
10197         * flow.c (update_life_info): Simplify the CFG and
10198         recalculate the global regs which are alive when
10199         removing dead code during a global update.
10200         (propagate_block): Return non-zero if an INSN is
10201         deleted.
10202
10203 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10204
10205         * Makefile.in (LIBICONV): Define.
10206
10207 2001-07-26  Catherine Moore  <clm@redhat.com>
10208
10209         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
10210         of conditional to avoid tree checking errors.
10211
10212 2001-07-26  Kazu Hirata  <kazu@hxi.com>
10213
10214         * regmove.c (regmove_optimize): Don't replace a reg with
10215         another reg of a different mode.
10216
10217 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
10218
10219         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
10220         limit length of dependency flush list.
10221         * params.h (MAX_PENDING_LIST_LENGTH): Define.
10222         * sched-int.h  (struct deps): Add pending_flush_length field.
10223         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
10224         has 1 element in it.
10225         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
10226         (sched_analyze): After a jump, if the pending memory flush list is too
10227         large, flush the pending lists.
10228         (init_deps): Initialize pending_flush_length to 0.
10229         * doc/invoke.texi (max_pending_list_length): Document parameter.
10230
10231 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10232
10233         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
10234         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
10235         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
10236
10237 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10238
10239         * cpphash.h (struct_lexer_state): Delete was_skipping.
10240         Move skipping here from struct cpp_reader.
10241         * cpplex.c (parse_identifier): Update.
10242         (_cpp_lex_token): Don't skip tokens in a directive.
10243         * cpplib.c (struct if_stack): Update.
10244         (start_directive, end_directive): Don't change skipping state.
10245         (_cpp_handle_directive): Update.
10246         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
10247         (do_else, do_endif): Update; only check for excess tokens if not
10248         in a skipped conditional block.
10249         (push_conditional): Update for new struct if_stack.
10250
10251 2001-07-26  Graham Stott  <grahams@redhat.com>
10252
10253         * function.c (locate_and_pad_parm): Also pad initial offset
10254         so that the total argument size also includes the padding.
10255
10256 2001-07-26  Graham Stott <grahams@redhat.com>
10257
10258         * gensupport.c (alter_output_for_insn): Correct enable checking failure
10259         change XSTR to XTMPL.
10260
10261         (process_one_cond_exec): Likewise
10262
10263 2001-07-25  Richard Henderson  <rth@redhat.com>
10264
10265         * varasm.c (assemble_variable): Create DECL_RTL before setting
10266         TREE_ASM_WRITTEN.
10267
10268 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
10269
10270         * predict.c (estimate_probability): Avoid duplicated predictions.
10271
10272         * loop.c (find_and_verify_loops): Grok multiple barriers.
10273
10274 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10275
10276         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
10277
10278         * dbxout.c: Consistently use putc instead of fputc.
10279         (print_wide_int): New function; call instead of direct fprintf.
10280         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
10281         (dbxout_type_fields, dbxout_type_method_1): Likewise.
10282         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
10283         (print_int_cst_octal): Likewise.
10284         (print_octal): Show we wrote characters.
10285         (dbxout_type): Set have_used_extensions in more places.
10286
10287 2001-07-25  Catherine Moore  <clm@redhat.com>
10288
10289         * config/v850/v850.c (v850_va_arg):  Use addr
10290         instead of valist to build incr.
10291
10292 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
10293
10294         * flow.c (delete_dead_jumptables): New function.
10295         (life_analyzis): Call it.
10296         * bb-reorder.c (skip_insns_after_block): Handle contradictory
10297         sequences.
10298
10299 2001-07-25  Richard Henderson  <rth@redhat.com>
10300
10301         * except.c (reachable_handlers): Handle a region being removed
10302         out from under a RESX.
10303
10304 2001-07-25  Richard Henderson  <rth@redhat.com>
10305
10306         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
10307         swap GE/GT if it is an fp comparison.
10308
10309 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
10310
10311         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
10312         operands.
10313
10314 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
10315
10316         * ssa.c (rename_insn_1): Do not wrap an assignment to a
10317         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
10318         glitch.
10319
10320         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
10321         throw an exception.
10322         (visit_expression): When attempting to simplify an expression,
10323         retrieve any modes for arguments before they are simplified
10324         to constants.
10325
10326 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
10327             Janis Johnson  <janis@us.ibm.com>
10328
10329         * stmt.c (expand_goto): A nonlocal goto can be a call too.
10330         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
10331         pointer parameters to match documented usage of nonlocal_goto.
10332         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
10333         parameters to their correct order.
10334         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
10335         parameters to their correct order.
10336
10337 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
10338
10339         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
10340
10341 2001-07-25  Jan Hubicka  <jh@suse.cz>
10342             Richard Henderson  <rth@redhat.com>
10343
10344         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
10345         the sequence.
10346         (make_edges): New argument update_p; populate the edge cache if set.
10347         (find_basic_blocks): Update make_edges invocation.
10348
10349 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10350
10351         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
10352
10353 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10354
10355         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
10356         -Acpu and -Amachine.h.
10357         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
10358         Corrected header to say ELF not a.out.
10359         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
10360         when given -msoft-float.
10361
10362 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10363
10364         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
10365         extra multilib parts like arm-elf.
10366         (i960-*-coff*, i960-*-rtems): Should not use collect2.
10367         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
10368         crtfini.o as extra multilib parts.
10369
10370 2001-07-24  Joel Sherrill <joel@OARcorp.com>
10371
10372         * configure.in: Add rtems as a supported thread model.
10373         * gthr-rtems.h: Add missing entry point __gthread_active_p.
10374         * configure: Rebuilt.
10375
10376 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
10377
10378         * stor-layout.c (get_mode_alignment): make it work when
10379         BITS_PER_UNIT is not a power of two.
10380         * builtins.c (get_pointer_alignment): Likewise.
10381
10382 2001-07-24  Richard Henderson  <rth@redhat.com>
10383
10384         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
10385         the retrieved constant into the expected mode.
10386
10387 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
10388
10389         * flow.c (try_simplify_condjump): Avoid duplicated edges.
10390         (verify_flow_info): Check for duplicated edges; clarify
10391         error reporting.
10392
10393         * flow.c (block_label): Update basic_block_for_insn.
10394         (commit_edge_insertions): Call compute_bb_for_insn.
10395
10396         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
10397         returns too.
10398
10399         * flow.c (redirect_edge_and_branch,
10400         try_optimize_cfg): Use redirect_edge_succ_nodup
10401         (redirect_edge_succ_nodup): New.
10402         * basic_block.h (redirect_edge_succ_nodup): Declare.
10403
10404         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
10405         after gcse.
10406
10407 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
10408
10409         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
10410         (try_crossjump_to_edge): Update commetns.
10411         (try_crossjump_bb): Likewise.
10412
10413 2001-07-24  Richard Henderson  <rth@redhat.com>
10414
10415         * combine.c (distribute_notes): Move set of need_refresh
10416         for noop_move_p down to catch all cases.
10417
10418 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
10419
10420         * recog.c (split_all_insns_noflow): New.
10421         * rtl.h (split_all_insns_noflow): Declare.
10422         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
10423         * m68hc11.c (m68hc11_reorg): Likewise.
10424         * sh.c (machine_dependent_reorg): Likewise.
10425         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
10426         call.
10427
10428 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
10429
10430         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
10431         (ashlsi3_n splitter): Likewise.
10432         (lshrsi3_n splitter): Likewise.
10433
10434         (GOTaddr2picreg): Make const SImode.
10435         (sym_label2reg): Likewise.
10436         (symGOT2reg): Likewise.
10437         (symGOTOFF2reg) Likewise.
10438
10439         (casesi_worker_0): Make unspec SImode.
10440
10441 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
10442
10443         * config/sh/sh.c (barrier_align): Check that an operand really is
10444         an insn before extracting its INSN_CODE.
10445
10446 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
10447
10448         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
10449         dangling else.
10450
10451         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
10452         for SImode to prevent overflow.
10453
10454 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10455
10456         * config/mips/irix6-libc-compat.c: New file.
10457         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
10458         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
10459         passing workaround.
10460
10461 2001-07-24  lars brinkhoff  <lars@nocrew.org>
10462
10463         * rtl.texi (REG_POINTER): Document.
10464         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
10465         QFmode, HFmode, TQFmode, QCmode, and HCmode.
10466
10467 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
10468
10469         * flow.c (delete_noop_moves): Do not confuse libcall regions.
10470
10471 2001-07-23  Richard Henderson  <rth@redhat.com>
10472
10473         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
10474
10475 2001-07-23  Kazu Hirata  <kazu@hxi.com>
10476
10477         * config/h8300/h8300-protos.h: Add a prototype for
10478         general_operand_dst_push.
10479         * config/h8300/h8300.c (general_operand_dst_push): New.
10480         * config/h8300/h8300.h (OK_FOR_T): New.
10481         (EXTRA_CONSTRAINT): Use it.
10482         * config/h8300/h8300.md (movqi_push): Remove and integrate into
10483         the existing movqi pattern.
10484         (movhi_push): Likewise.
10485
10486         * reload.c: Fix comment typos.
10487
10488 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
10489
10490         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
10491
10492 2001-07-23  H.J. Lu  (hjl@gnu.org)
10493
10494         * doc/extend.texi: Update __builtin_return_address and
10495         __builtin_frame_address.
10496
10497 2001-07-23  Richard Henderson  <rth@redhat.com>
10498
10499         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
10500         before CSE.
10501         * config/i386/i386.md: New setcc+movzbl peephole2.
10502
10503 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10504
10505         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
10506         * objc/objc-act.c: Include debug.h.
10507         (synth_module_prologue): Save and restore debug hooks too.
10508
10509 2001-07-23  lars brinkhoff  <lars@nocrew.org>
10510
10511         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
10512         and C4X_FLOAT_FORMAT.
10513         (BOOL_TYPE_SIZE): Document.
10514
10515 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
10516
10517         * unroll.c (loop_iterations): Fix miscalculation of initial
10518         giv offset.
10519
10520 2001-07-13  Andrew Haley  <aph@redhat.com>
10521
10522         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
10523         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
10524         * config/sh/sh.c (sh_can_redirect_branch): New function.
10525         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
10526         * reorg.c (steal_delay_list_from_target): Use
10527         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
10528
10529 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
10530
10531         * flow.c (try_simplify_condjump): Unlink insn chain on
10532         fallthru edge; use can_fallthru.
10533
10534 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
10535
10536         * basic-block.h (find_sub_basic_block): Declare.
10537         * flow.c (make_edges): New arguments MIN and MAX;
10538         (find_sub_basic_blocks): Revamp to use make_edges
10539         and purge_dead_edges.
10540         (find_basic_blocks): Update call of find_sub_basic_block.
10541
10542         * recog.c (split_all_insns): Always expect CFG to be consistent;
10543         call find_sub_basic_blocks in case something has changed.
10544         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
10545         has been built.
10546
10547         * basic-block.h (delete_noop_moves): Declare.
10548         * combine.c (combine_instructions): Call it.
10549         (recog_for_combine): Tolerate noop moves
10550         (distribute_notes): Force refresh when register dies at noop move.
10551         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
10552         too.
10553         (life_analysis): Update delete_noop_moves call.
10554         (set_noop_p): Move too ...
10555         * rtlanal.c (noop_move_p): ... here.
10556         * rtl.h (noop_move_p): Declare.
10557
10558         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
10559         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
10560         after combine.
10561         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
10562         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
10563
10564 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
10565
10566         * reload.c (push_reload): Fix typo in comment.
10567         (find_reloads_address): Ditto.
10568         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
10569
10570 2001-07-22  Richard Henderson  <rth@redhat.com>
10571
10572         * flow.c: Grammar check and clarify a lot of comments.
10573         (try_simplify_condjump): Rename variables to be clearer.
10574         (try_forward_edges): Skip complex and fallthru edges.
10575         Rearrange tests to avoid duplicate checks.
10576         (flow_find_cross_jump): Likewise.
10577         (outgoing_edges_match): Allow match if neither branch has
10578         probability data.  Loosen probability match to 5%.
10579         (try_crossjump_to_edge): Hoist repeated indirection into
10580         local variables.
10581         (try_crossjump_bb): Don't check complex edges.  Eliminate
10582         redundant crossjump tests.
10583         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
10584         checks before more expensive checks.
10585
10586 2001-07-22  Richard Henderson  <rth@redhat.com>
10587
10588         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
10589         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
10590         arguments.
10591
10592 2001-07-22  Richard Henderson  <rth@redhat.com>
10593
10594         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
10595         (const_sint32_operand): Likewise.
10596         * m68k.md (anon mulsi pattern): Use const_int_operand not
10597         const_sint32_operand.
10598         (umulsi3_highpart): Zero extend a constant input.
10599         (smulsi3_highpart): Don't bother checking SImode constant.
10600         (const_umulsi3_highpart): Give op3 DImode.
10601         (const_smulsi3_highpart): Likewise.
10602
10603 2001-07-22  Richard Henderson  <rth@redhat.com>
10604
10605         * flow.c (split_block): Make sure bb_note is included in the
10606         new block when splitting before a label.
10607
10608 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
10609
10610         * basic-block.h (redirect_edge_and_branch_force,
10611         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
10612         * flow.c (redirect_edge_and_branch_force,
10613         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
10614         (redirect_edge_and_branch_force): Fix copying of lifeness information.
10615         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
10616         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
10617         instead of label; update CFG after transformation.
10618         (find_if_case_1): Update call, use redirect_edge_and_branch_force
10619         for finishing the transformation; handle even case where ELSE
10620         does not follow THEN.
10621         (find_if_case_2): Update call of dead_or_predictable; simplify
10622         CFG update.
10623
10624         * emit-rtl.c (split_branch_probability): New global variable.
10625         (try_split): Take care to set split_branch_probability and
10626         create REG_BR_PROB note for new jump insns.
10627         * md.texi (define_split): Document new feature.
10628
10629         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
10630
10631 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10632
10633         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
10634         (asm_out_file): Remove redundant declaration.
10635         (assemble_asm): Remove old #if 0 block.
10636         (assemble_variable): Remove end of function; debug output is
10637         now handled with global_decl.  Remove old #if 0 block.  Update.
10638         Remove saved_in_section and associated no-op code.
10639         * Makefile.in (varasm.o): Correct dependencies.
10640
10641 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
10642
10643         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10644         the definition in defaults.h.
10645
10646 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
10647
10648         * jump.c: Update comments.
10649         (delete_barrier_successors, delete_unreferenced_labels,
10650         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
10651         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
10652         jump_optimize, jump_optimize_minimal): Kill.
10653         (rebuild_jump_labels): Move code from jump_optimize_1.
10654         (purge_line_number_notes): Likewise.
10655         (copy_loop_headers): Likewise.
10656         * reg-stack.c: Update comment.
10657         * stmt.c: Likewise.
10658         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
10659         JUMP_AFTER_REGSCAN): Kill.
10660         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
10661         purge_line_number_notes and copy_loop_headers.
10662
10663 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
10664            Richard Henderson  <rth@redhat.com>
10665
10666         * dbxout.c (dbxout_global_decl): New.
10667         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
10668         * sdbout.c (sdbout_finish): New.
10669         (sdbout_debug_hooks): Use it, add comments.
10670         (sdbout_global_decl): Defer initialised public vars to
10671         sdbout_finish.
10672         * varasm.c (assemble_variable): Don't output debug information
10673         for file-scope variables.
10674
10675 2001-07-22  Richard Henderson  <rth@redhat.com>
10676
10677         * config/alpha/alpha.c (get_trap_mode_suffix): New.
10678         (get_round_mode_suffix): New.
10679         (print_operand): Use them for [/].  Remove support for [&'`()+].
10680         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
10681         * config/alpha/alpha.md (attr round_suffix): New.
10682         (attr trap_suffix): New.
10683         (all insns): Set them appropriately.  Use %/ instead of the
10684         myriad punctuators.
10685
10686 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10687
10688         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
10689
10690 2001-07-22  Richard Henderson  <rth@redhat.com>
10691
10692         * regrename.c (regrename_optimize): Compute nregs for each
10693         potential target register.
10694
10695 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
10696            Richard Henderson  <rth@redhat.com>
10697
10698         * dbxout.c (dbxout_global_decl): New.
10699         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
10700         * sdbout.c (sdbout_finish): New.
10701         (sdbout_debug_hooks): Use it, add comments.
10702         (sdbout_global_decl): Defer initialised public vars to
10703         sdbout_finish.
10704         * varasm.c (assemble_variable): Don't output debug information
10705         for file-scope variables.
10706
10707 2001-07-21  H.J. Lu  (hjl@gnu.org)
10708
10709         * config/mips/mips.c (mips_cpu): Moved into ...
10710         (override_options): Here.
10711
10712         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
10713         mips_tune.
10714         (mips_cpu): Removed.
10715
10716 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10717
10718         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
10719         ("iorqi3"): Likewise.
10720         ("xorqi3"): Likewise.
10721         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
10722         ("*subhi3_sp): Likewise.
10723         ("*subhi3"): Likewise.
10724         ("extendhisi2"): Accept D, X and Y as source operand to avoid
10725         reload problems.
10726
10727 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10728
10729         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
10730         * config/freebsd.h: Likewise.
10731         * config/linux.h: Likewise.
10732         * config/openbsd.h: Likewise.
10733         * config/alpha/linux-elf.h: Likewise.
10734         * config/arm/linux-elf.h: Likewise.
10735         * config/d30v/d30v.h: Likewise.
10736         * config/fr30/fr30.h: Likewise.
10737         * config/ia64/aix.h: Likewise.
10738         * config/ia64/ia64.h: Likewise.
10739         * config/mips/linux.h: Likewise.
10740         * config/pj/pj.h: Likewise.
10741         * config/rs6000/linux.h: Likewise.
10742         * config/sparc/linux.h: Likewise.
10743         * config/sparc/linux64.h: Likewise.
10744
10745 2001-07-20  Bruce Korb  <bkorb@gnu.org>
10746
10747         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
10748         because getc() and char* may disagree on signedness.
10749
10750 2001-07-20  Richard Henderson  <rth@redhat.com>
10751
10752         * doc/rtl.texi (REG_DEAD): Update for current semantics.
10753
10754         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
10755         insns to delete in the presence of cc0 in a jump insn.
10756
10757 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
10758                                 Jan Hubicka  <jh@suse.cz>
10759
10760         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
10761         of doing the change by hand.
10762
10763 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
10764
10765         * rtlanal.c (set_noop_p): Return true for noop jumps.
10766
10767         * expr.c (emit_single_push_insn): Add call to push expander.
10768         * expr.h (optab_index): Add OTI_push
10769         (push_optab): New constant.
10770         * genopinit.c (optabs): Add push_optab.
10771         * optabs.c (init_optab): Init push optab.
10772         * md.texi (push??1): Document
10773
10774 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10775
10776         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
10777         expand to emit the pattern; put a REG_INC note for push/pop
10778         instructions.
10779         ("movdf", "movdf_internal"): Likewise.
10780         ("movsi", "movsi_internal"): Likewise.
10781         ("movsf", "movsf_internal"): Likewise.
10782         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
10783
10784 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10785
10786         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
10787         gen_highpart.
10788
10789 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
10790
10791         * params.def: Change default max inline insns to 100.
10792
10793 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
10794
10795         * combine.c (combine_simplify_rtx): Generate a new shift operation
10796         when simplifying the first operand of a (neg (ashift)) expression.
10797
10798 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10799
10800         * regclass.c (N_REG_INTS): Use only 32 bits per element.
10801
10802 2001-07-20  Kelley Cook  <kelley.cook@home.com>
10803
10804         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
10805         information.   Move rest into ...
10806         (*-*-solaris): ... here.  Eliminate redundant information and
10807         reword necessary packages section.  Delete 4.x assembler bug info.
10808         (sparc-sun-*): Merge into ...
10809         (sparc-sun-sunos*): here.
10810
10811 2001-07-20  Catherine Moore  <clm@redhat.com>
10812
10813         * config/v850/v850.md (casesi): Generate LABEL_REF
10814         with Pmode.
10815
10816 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
10817
10818         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
10819         * i386.c (ix86_zero_extend_to_Pmode): Make global.
10820         * i386.md (strclrsi expander): Use it.
10821
10822 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10823
10824         * integrate.c (copy_insn_list): handle
10825         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
10826         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
10827         identically as to CODE_LABEL.
10828
10829         * fold-const (fold): Convert A/B/C to A/(B*C) and
10830         A/(B/C) to (A/B)*C
10831
10832         * except.c (connect_post_landing_pads): Delete the RESX insns.
10833
10834 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
10835
10836         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
10837
10838         * config/mips/mips.md (nmadd/nmsub): Use macro.
10839
10840 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10841
10842         * cppinit.c (remove_dup_dir): Make static.
10843         (remove_dup_dirs): Make static. Only warn about preempting a
10844         system directory with a non-system directory.
10845
10846 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
10847
10848         * ifcvt.c (noce_try_store_flag_constants): Correct order
10849         of parameters to trunc_int_for_mode.
10850
10851 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
10852
10853         * reorg.c (fill_simple_delay_slots): If an instruction might throw
10854         an exception that will be caught within this function, do not fill
10855         its delay slot with any subsequent instruction.
10856
10857 2001-07-19  Steve Ellcey <sje@cup.hp.com>
10858
10859         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
10860         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
10861         pointer extension instruction.
10862         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
10863         * simplify-rtx.c (simplify_unary_operation) Likewise.
10864         * explow.c (convert_memory_address) Check value of
10865         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
10866         less than zero.
10867         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
10868         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
10869         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
10870         Add Multilib Support.
10871         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
10872         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
10873         Add Multilib Support.
10874         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
10875         support.
10876         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
10877         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
10878         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
10879
10880 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
10881
10882         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
10883         old and new operands in `<', `3' and `b'.
10884
10885 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10886
10887         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
10888         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
10889         (toplev.o): Don't depend on xcoffout.h.
10890         * c-decl.c: Include debug.h
10891         (duplicate_decls): Use debug hook.
10892         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
10893         (dbx_debug_hooks, xcoff_debug_hooks): Update.
10894         (dbxout_types): Remove.
10895         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
10896         * debug.c (do_nothing_debug_hooks): Update.
10897         (debug_true_tree, debug_nothing_rtx): New.
10898         * debug.h (struct rtx_def): New.
10899         (struct gcc_debug_hooks): New hooks ignore_block,
10900         outlining_inline_function and label.
10901         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
10902         dwarf2out_frame_finish): New.
10903         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
10904         Make static, update prototype.
10905         (dwarf2_debug_hooks): Update.
10906         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
10907         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
10908         * dwarfout.c (dwarf_debug_hooks): Update.
10909         * emit-rtl.c: Include debug.h.
10910         (remove_unnecessary_notes): Use debug hook.
10911         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
10912         (final_scan_insn): Use debug hook.
10913         * integrate.c (output_inline_function): Use debug hook.
10914         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
10915         (sdb_debug_hooks): Update.
10916         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
10917         * toplev.c: Don't include xcoffout.h.
10918         (note_outlining_of_inline_function, debug_ignore_block): Remove.
10919         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
10920         Remove.
10921         * tree.h (dwarf2out_do_frame): Remove.
10922
10923 2001-07-19  Catherine Moore  <clm@cygnus.com>
10924
10925         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
10926
10927 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
10928
10929         * reload1.c (eliminate_regs_in_insn): When updating a set
10930         to the frame pointer to the hardware frame pointer, perform
10931         the update always not just when REPLACE is set.
10932
10933         * reload1.c (choose_reload_regs): Don't inherit a reload
10934         that crosses multiple registers if registers past the first
10935         don't fit in the desired class.
10936
10937         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
10938         when negating constants.
10939
10940 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
10941
10942         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
10943         * doc/tree.texi: Ditto.
10944
10945 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
10946             Jakub Jelinek  <jakub@redhat.com>
10947
10948         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
10949         (extract_cie_info): Handle "eh" augmentation properly,
10950         remember eh_ptr.
10951         (struct frame_state, __frame_state_for): New.
10952
10953 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10954
10955         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
10956         HANDLE_SYSV_PRAGMA): Define.
10957         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
10958         previous args.
10959         (copy_object): Caller changed.
10960
10961 2001-07-19  Andreas Schwab  <schwab@suse.de>
10962
10963         * configure.in (assembler dwarf2 debug_line support): Define nop
10964         insn for m68k.
10965         * configure: Regenerated.
10966
10967 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10968
10969         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
10970         dwarfout.h.
10971         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
10972         to conditionally compiled block.
10973         (dbx_debug_hooks, xcoff_debug_hooks): Update.
10974         * dbxout.h (dbxout_function): Remove.
10975         * debug.c (do_nothing_debug_hooks): Update.
10976         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
10977         global_decl, deferred_inline_function.
10978         * dwarf2out.c (dwarf2_debug_hooks): Update.
10979         (dwarf2out_global_decl): New.
10980         * dwarfout.c: Don't include dwarfout.h.
10981         (dwarfout_global_decl, dwarfout_function_decl,
10982         dwarfout_deferred_inline_function): New.
10983         (dwarf_debug_hooks): Update.
10984         * dwarfout.h: Remove.
10985         * final.c: Don't include dwarfout.h.
10986         * sdbout.c (sdbout_global_decl): New.
10987         (sdbout_debug_hooks): Update.
10988         * toplev.c: Don't include dwarfout.h.
10989         (check_global_declarations, rest_of_compilation): Use new debug hooks.
10990         (note_deferral_of_defined_inline_function): Remove.
10991         * toplev.h (note_deferral_of_defined_inline_function): Remove.
10992         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
10993         * ch/lex.c: Don't include dwarfout.h.
10994         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
10995         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
10996         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
10997         * cp/optimize.c: Include debug.h.
10998         (maybe_clone_body): Use debug hook.
10999         * cp/semantics.c: Include debug.h.
11000         (expand_body): Use debug hook.
11001         * po/POTFILES.in: Remove dwarfout.h.
11002
11003 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11004
11005         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
11006         * c-parse.in (yyerror, _yylex): Similarly.
11007         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
11008         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
11009         Update comments.
11010         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
11011         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
11012
11013 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
11014
11015         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
11016         in-class declaration at -g1.  Fixes c++/2814.
11017
11018 2001-07-18  Richard Henderson  <rth@redhat.com>
11019
11020         * doc/md.texi (reload_in/out): Document restrictions in predicates
11021         and constraints for these patterns.  Document empty string matching
11022         ALL_REGS.
11023
11024 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11025
11026         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
11027
11028 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11029
11030         * cse.c: Undo my previous patch.
11031
11032 2001-07-18  Tom Tromey  <tromey@redhat.com>
11033
11034         For PR java/2812:
11035         * configure: Rebuilt.
11036         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
11037         instead.
11038         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
11039
11040 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
11041                                 Jan Hubicka  <jh@suse.cz>
11042
11043         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
11044         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
11045         * jump.c (mark_jump_label): Do not forward branches.
11046
11047 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
11048
11049         * cse.c (delete_trivially_dead_insns): Delete the libcall block
11050         when return value is unused.
11051
11052 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11053
11054         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
11055
11056 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
11057
11058         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
11059         on error.  We can't blindly return the result of
11060         pthread_mutex_trylock because it returns a positive number on
11061         error, while we must return -1 on error.
11062         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
11063         fixes.
11064         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
11065
11066 2001-07-18  Andreas Jaeger  <aj@suse.de>
11067
11068         * integrate.c (output_inline_function): Correct type of debug_hooks.
11069
11070 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
11071
11072         * combine.c (combine_simplify_rtx): DIV can be treated
11073         associatively for floats if unsafe math optimisations are enabled.
11074
11075 2001-07-17  Richard Henderson  <rth@redhat.com>
11076
11077         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
11078
11079 2001-07-17  Richard Henderson  <rth@redhat.com>
11080
11081         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
11082         don't force the function address into a register.
11083         (expand_call, emit_library_call_value_1): Update callers.
11084         * builtins.c (expand_builtin_apply): Likewise.
11085         * expr.h (prepare_call_address): Update decl.
11086
11087 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
11088
11089         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
11090         config directory.
11091         * config/i386/chorus.h: Move up.
11092         * config/sparc/chorus.h: Likewise.
11093         * config/rs6000/chorus.h: Likewise.
11094         * config/chorus.h: Moved here.
11095
11096 2001-07-17  Andreas Schwab  <schwab@suse.de>
11097
11098         * configure.in  (assembler eh_frame optimization): Handle big
11099         endian.
11100         * configure: Regenerated.
11101
11102 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
11103
11104         * expr.c (epxand_expr): Convert divisions into multiplications by
11105         reciprocals if -ffast-math.
11106
11107 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11108
11109         * dbxout.c (dbxout_really_begin_function): Rename to
11110         dbxout_begin_function.
11111         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11112         (dbxout_begin_function): Remove.
11113         (dbxout_function): Update.
11114         (dbxout_source_line): Update prototype.
11115         * dbxout.h (dbxout_begin_function): Remove.
11116         * debug.c (do_nothing_debug_hooks): Update.
11117         (debug_nothing_tree): Update.
11118         (debug_nothing_charstar_rtx): Remove.
11119         * debug.h (union tree_node): Declare.
11120         (struct rtx_def): Remove.
11121         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
11122         begin_function.  Change source_line prototype.
11123         (debug_nothing_tree): New.
11124         (debug_nothing_charstar_rtx): Delete.
11125         (dwarf2out_begin_prologue): Moved from ...
11126         * tree.h: ... here.
11127         * dwarf2out.c (dwarf2_debug_hooks): Update.
11128         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
11129         debug info, call dwarf2out_source_line.
11130         (dwarf2out_souce_line): Update prototype.
11131         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
11132         Change prototype, make static.
11133         (dwarfout_source_line): Update prototype.
11134         (dwarf_debug_hooks): Update.
11135         * dwarfout.h (dwarfout_begin_function): Remove.
11136         * final.c (final_start_function, final_scan_insn): Use appropriate
11137         debug hooks, update to use notice_source_line.
11138         (output_source_line): Rename notice_source_line.  Don't call the
11139         source_line debug hook.
11140         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
11141         make static, update prototype.
11142         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
11143         prototype.
11144         (sdbout_end_prologue): New.
11145         (sdbout_source_line): Update prototype.
11146         (sdbout_debug_hooks): Update.
11147         (sdbout_symbol): Remove unused var.
11148         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
11149         Delete.
11150         * varasm.c: Include debug.h.
11151         (assemble_start_function): Use begin_function debug_hook.
11152         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
11153         update with prototype.
11154         (xcoffout_source_line): Update prototype.
11155         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
11156         update prototype.
11157         (xcoffout_source_line): Update prototype.
11158
11159 2001-07-17  Richard Henderson  <rth@redhat.com>
11160
11161         * c-typeck.c (build_binary_op): Do not shorten unsigned
11162         right shift after sign extension.
11163
11164 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
11165
11166         * combine.c (combine_simplify_rtx): Attempt to simplify
11167         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
11168
11169         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
11170         (simplify_binary_operation, simplify_unary_operation,
11171          simplify_relational_operation): Use it.
11172
11173         * combine.c (combine_simplify_rtx): Don't do associative law
11174         on divisions; allow associative law on floats.
11175
11176 2001-07-17  H.J. Lu <hjl@gnu.org>
11177             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11178
11179         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
11180         ASM_OUTPUT_WEAK_ALIAS are defined.
11181         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
11182         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
11183         Moved ...
11184         * config/mips/iris5.h: ... here.
11185         (HANDLE_SYSV_PRAGMA): Defined as 1.
11186         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
11187         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
11188         symbol.
11189
11190 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
11191
11192         * c-parse.in (all_prefix_attributes): New variable.
11193         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
11194         (maybe_resetattrs): New production.
11195         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
11196         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
11197         notype_initdcl, nested_function, notype_nested_function,
11198         component_decl, components, components_notype,
11199         component_declarator, component_notype_declarator,
11200         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
11201         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
11202         after a comma being applied to more than one declarator.
11203         * doc/extend.texi (Attribute Syntax): Update.  Remove
11204         documentation of bugs that are no longer present.
11205
11206 2001-07-13  Eric Christopher  <echristo@redhat.com>
11207
11208         * config/mips/mips.h: Change TUNE_MIPS* options to use
11209         mips_tune.
11210         (EXTRA_SPECS): Add cc1_cpu_spec.
11211         * config/mips/mips.md (muldf3): Fix typo.
11212
11213 2001-07-16  Richard Henderson  <rth@redhat.com>
11214
11215         * config/m68k/m68k.c: Include expr.h and reload.h.
11216         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
11217         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
11218
11219 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
11220             Richard Henderson  <rth@redhat.com>
11221
11222         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
11223         (insn_live_p): Fix fall off end of function.
11224         (dead_libcall_p): Remove COUNTS argument; update callers.
11225         (delete_trivially_dead_insns): Remove unused variables.
11226
11227 2001-07-17  Andreas Jaeger  <aj@suse.de>
11228
11229         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
11230         x86-64 pic support.
11231
11232         * lcm.c (optimize_mode_switching): Avoid warning for unused
11233         variable if !NORMAL_MODE.
11234
11235         * flow.c (try_crossjump_to_edge): Remove unused variable.
11236
11237 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11238
11239         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
11240         atexit declaration in stdlib.h.
11241
11242 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
11243
11244         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
11245
11246 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11247
11248         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
11249         * except.c (finish_eh_generation): Update call of cleanup_cfg;
11250         do rebuild_jump_labels instead of jump_optimize
11251         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
11252         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
11253         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
11254
11255         * flow.c: Include timevar.h
11256         (find_basic_block): Push/pop timevar;
11257         (cleanup_cfg): Likewise.
11258         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
11259         * Makefile: Add dependencies on timevar.h
11260
11261         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
11262         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
11263
11264         * rtl.h (delete_trivially_dead_insns): Add new parameter.
11265         * toplev.c (rest_of_compilation): Update calls.
11266         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
11267         (delete_trivially_dead_insns): ... here; accept new argument
11268         preserve_basic_blocks; preserve basic blocks if set.
11269
11270         * reg-stack.c (stack_regs_mentioned): Return 0 if
11271         stack_regs_mentioned_data is not initialized.
11272         (reg_to_stack): Make stack_regs_mentioned survive after the
11273         reg-stack is completted; do not call cleanup_cfg.
11274         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
11275         make cleanup_cfg after bb-reorder to output to debug file.
11276
11277 2001-07-16  Richard Henderson  <rth@redhat.com>
11278
11279         * regclass.c (init_reg_sets): Use only 32 bits per initializer
11280         from int_reg_class_contents.
11281
11282 2001-07-16  Richard Henderson  <rth@redhat.com>
11283
11284         * hard-reg-set.h (regs_invalidated_by_call): Declare.
11285         * regclass.c (regs_invalidated_by_call): Move from cse.c.
11286         (init_reg_sets_1): Move initialization from cse_main.
11287         * cse.c (regs_invalidated_by_call): Move to regclass.c.
11288         (cse_main): Move its initialization also.
11289         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
11290         * flow.c (propagate_one_insn): Likewise.
11291         * gcse.c (compute_hash_table): Likewise.
11292         (compute_kill_rd, compute_store_table): Likewise.
11293         * sched-deps.c (sched_analyze_1): Likewise.
11294
11295 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
11296
11297         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
11298         gen_rtx_SET.
11299
11300 2001-07-16  Steve Ellcey <sje@cup.hp.com>
11301
11302         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
11303         in if statement so we don't access undefined memory.
11304
11305 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
11306
11307         * gcse.c: Update comment at top.
11308         Update comment on mem handling.
11309         mem_last_set, mem_first_set, mem_set_in_block: gone.
11310         Declaration of reg_set_info: gone.
11311         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
11312         pointless with load_killed_in_block_p (they are *more*
11313         conservative then it, not less, and less accurate).
11314         (oprs_not_set_p): Ditto.
11315         (alloc_gcse_mem): Don't allocate mem_set_in_block
11316         (free_gcse_mem): Don't free it, either.
11317         (record_last_mem_set_info): Update comment in front, remove
11318         mem_*set_* stuff. Note the reason we don't handle stores directly
11319         here.
11320         (compute_hash_table): Update comments to reflect reality. Remove
11321         mem_*set_* references.
11322         (reset_opr_set_tables): Remove mem_*set_* references.
11323         (mark_call): Ditto.
11324         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
11325         (mark_clobber): Ditto (on both parts, we double set here too).
11326         (expr_killed_p): Remove mem_set_in_block test.
11327         (compute_transp): Remove mem_set_in_block test.
11328
11329         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
11330         of edge, and removal of phi alternative to dump file.
11331         (ssa_ccp_substitute_constants): Add note about register now being
11332         constant, and which uses were replaced in what insns to dump file.
11333
11334 2001-07-16  Andreas Jaeger  <aj@suse.de>
11335
11336         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
11337         variables of type HOST_WIDEST_INT.
11338
11339         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
11340         (__bb_exit_func): Correct type of count_max to avoid overflow.
11341         (num_digits): Handle long long argument.
11342
11343         * combine.c (gen_lowpart_for_combine): Remove unused variable.
11344
11345 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11346
11347         * output.h (sdb_begin_function_line): Restore as an extern
11348         variable.
11349         * sdbout.c (sdb_begin_function_line): Make extern.
11350
11351 2001-07-15  Richard Henderson  <rth@redhat.com>
11352
11353         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
11354         * genrecog.c (maybe_both_true_mode): New.
11355         (maybe_both_true_2): Use it.
11356         (write_switch): Don't put Pmode in a switch.
11357         * rtl.c (mode arrays): Don't explicitly size them.
11358
11359 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11360
11361         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
11362         handling; move unconditional splitting before mode switching.
11363
11364         * i386.md (type): Add fistp type.
11365         (i387, length_attr, scheduling definitions): Handle this type.
11366         (fix_trunc?f?i2): Revamp to use mode switching.
11367         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
11368         * i386.h (fp_cw_mode): New enum
11369         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
11370         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
11371
11372 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11373
11374         * Makefile.in (integrate.o): Add debug.h.
11375         * integrate.c (debug.h): Add.
11376         (output_inline_function): Save, reset, and restore debug_hooks.
11377
11378 2001-07-15  Richard Henderson  <rth@redhat.com>
11379
11380         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
11381         instead of COMPARE for the EQUIV expression.
11382
11383 2001-07-15  Richard Henderson  <rth@redhat.com>
11384
11385         * flow.c (redirect_edge_and_branch_force): Initialize
11386         global_live_at_start and global_live_at_end.
11387         (allocate_bb_life_data): Export.
11388         * basic-block.h (allocate_bb_life_data): Declare.
11389         * toplev.c (rest_of_compilation): Call it.
11390
11391 2001-07-15  Richard Henderson  <rth@redhat.com>
11392
11393         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
11394         (alpha_tablejump_best_label): New.
11395         * config/alpha/alpha-protos.h: Declare them.
11396         * config/alpha/alpha.md: Use braced strings for code blocks.
11397         (tablejump_osf): Break out add with r29.
11398         (tablejump_osf_internal): Remove.
11399         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
11400         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
11401
11402 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11403
11404         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
11405         of the movable.
11406
11407         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
11408
11409         * i386-protos.h (ix86_split_fp_branch): Update prototype.
11410         (ix86_fp_jump_nontrivial_p): New.
11411         * i386.md (fp_jcc_?): Update call of split_fp_branch;
11412         use ix86_fp_jump_nontrivial_p.
11413         * i386.c (ix86_fp_jump_nontrivial_p): New.
11414         (ix86_split_fp_branch): Accept code instead of rtx.
11415         (ix86_expand_compare): Expand comparison early in case
11416         doing so is resonably cheap.
11417
11418 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
11419
11420         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
11421         not 'machine'.
11422         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
11423         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
11424
11425 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
11426
11427         * dbxout.c (dbxout_source_line): Make static, update prototype.
11428         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
11429         (dbxout_init, dbxout_finish, dbxout_source_line,
11430         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
11431         * dbxout.h (dbxout_source_line): Delete.
11432         * debug.c (debug_nothing_file, debug_nothing_file_int,
11433         debug_nothing_file_charstar_rtx): New.
11434         (do_nothing_debug_hooks): Update.
11435         (debug_nothing_void, debug_nothing_charstar_rtx,
11436         dwarf2out_end_epilogue): New.
11437         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
11438         * debug.h (struct rtx_def): Declare.
11439         (gcc_debug_hooks): New hooks source_line, end_epilogue
11440         and end_function.
11441         (debug_nothing_void, debug_nothing_charstar_rtx,
11442         dwarf2out_end_epilogue): New.
11443         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
11444         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
11445         (dwarf2_debug_hooks): Update.
11446         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
11447         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
11448         * dwarf2out.h (dwarf2out_source_line): Remove.
11449         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
11450         Make static, update prototype.
11451         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
11452         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
11453         (dwarf_debug_hooks): Update.
11454         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
11455         dwarfout_end_function): Remove.
11456         * final.c (profile_function): Use debug hooks for ending functions
11457         and epilogues.
11458         (output_source_line, final_end_function): Update prototype,
11459         use debug hooks.
11460         (final_start_function, final_scan_insn): Update.
11461         * output.h (sdb_begin_function_line): Remove.
11462         (final_end_function): Update prototype.
11463         * sdbout.c (sdb_begin_function_line): Make static.
11464         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
11465         (sdbout_source_line): New.
11466         (sdbout_end_epilogue, sdbout_end_function): Make static, update
11467         prototypes.
11468         (sdb_debug_hooks): Update.
11469         (sdbout_init, sdbout_source_line,
11470         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
11471         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
11472         * toplev.c (compile_file, rest_of_compilation): Update.
11473         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
11474         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
11475         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
11476         Update for prototype changes.
11477         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
11478         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
11479
11480 2001-07-15  Richard Henderson  <rth@redhat.com>
11481
11482         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
11483         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
11484         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
11485         * config/alpha/alpha.c: Likewise.
11486         * config/alpha/alpha.md: Likewise.
11487         * config/alpha/alpha32.h: Likewise.
11488         * config/alpha/vms.h: Likewise.
11489         (OPEN_VMS): Remove.
11490
11491 2001-07-14  Richard Henderson  <rth@redhat.com>
11492
11493         * config/alpha/alpha.md: Use define_constants for unspec values.
11494         Substitute throughout.
11495
11496 2001-07-14  Tim Josling  <tej@melbpc.org.au>
11497
11498         * tree.def (EXPON_EXPR) remove. Never supported anyway.
11499
11500 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11501
11502         * pa.md: Remove unused constraints from define_split's.
11503
11504 2001-04-14  Richard Henderson  <rth@redhat.com>
11505
11506         * ifcvt.c (find_cond_trap): Test for exit block.
11507
11508 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
11509
11510         Re-install recently reverted patch.
11511         * emit-rtl.c (try_split): Update mark_jump_label call.
11512         * flow.c (find_sub_basic_blocks): Likewise.
11513         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
11514         jump_back_p): Kill.
11515         (mark_all_labels): Kill second parameter.
11516         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
11517         (rebuild_jump_labels, jump_optimize_minimal): Update call
11518         of jump_optimize_1.
11519         (jump_optimize_1): Kill crossjumping code.
11520         (mark_jump_label): Kill cross_jump parameter.
11521         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
11522         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
11523         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
11524          splitting.
11525         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
11526         DFI_bpro.
11527         (dump_file_info): Likewise.
11528         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
11529         reorganize passes to do reg-stack first, bb-reorder second.
11530         * invoke.texi (-d letters doc): Remove the jump2 pass.
11531
11532 2001-07-14  Richard Henderson  <rth@redhat.com>
11533
11534         * ifcvt.c (find_cond_trap): New.
11535         (find_if_header): Call it.
11536         (merge_if_block): Relax existing jump sanity check.
11537         * jump.c (jump_optimize_1): Remove conditional trap handling.
11538
11539 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
11540
11541         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
11542         millicode.
11543         (insn_refs_are_delayed): Correct comment.
11544         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
11545         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
11546         instead of r31.  Make associated insn !TARGET_64BIT, and
11547         provide an additional 64-bit insn that clobbers r2.
11548         (divsi3): Likewise.
11549         (udivsi3): Likewise.
11550         (modsi3): Likewise.
11551         (umodsi3): Likewise.
11552
11553 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
11554
11555         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
11556
11557         * flow.c (redirect_edge_and_branch_force, split_edge,
11558         try_crossjump_to_edge): Use set_block_for_new_insns.
11559         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
11560
11561 2001-07-13  H.J. Lu  (hjl@gnu.org)
11562
11563         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
11564         the correct patch.
11565
11566 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
11567
11568         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
11569
11570 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
11571
11572         * c-common.c (decl_attributes): Take a pointer to the node to
11573         which attributes are to be attached, and a flags argument.
11574         * c-common.h (enum attribute_flags): New.
11575         (decl_attributes): Update prototype.
11576         * c-decl.c (start_decl, push_parm_decl, finish_struct,
11577         finish_enum, start_function): Update calls to decl_attributes.
11578         * c-parse.in (component_declarator, component_notype_declarator,
11579         label): Update calls to decl_attributes.
11580
11581 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
11582
11583         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
11584         * config/avr/avr.c (legitimate_address_p): Return value changed
11585         from letter to register classes. For better debugging.
11586
11587 2001-07-13  Kazu Hirata  <kazu@hxi.com>
11588
11589         * jump.c (reversed_comparison_code_parts): Fix comment typos.
11590
11591 2001-07-13  H.J. Lu  (hjl@gnu.org)
11592
11593         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
11594
11595 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
11596
11597         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
11598         correctly for shared configurations.
11599         * config/t-libgcc-pic:  New.
11600         * config/{i386,m68k,sparc}/t-openbsd:  New.
11601         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
11602         Support -shared.  Support debugging libraries with -g.
11603         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
11604         frame information does not emit pointer diffs.
11605         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
11606         emit pointer diffs.
11607
11608 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
11609
11610         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
11611
11612 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
11613
11614         * combine.c (try_combine): Ensure const_int pow2 is positive.
11615
11616 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
11617
11618         * config.gcc: Add configuration for s/390.
11619         * config/s390/s390.c: New. Subroutines for code generation.
11620         * config/s390/s390.h: New. Definitions for s/390.
11621         * config/s390/s390-protos.h: New. Prototypes.
11622         * config/s390/linux.h: New. Definitions for linux for s/390.
11623         * config/s390/linux64.h: New. Definitions for linux for zSeries.
11624         * config/s390/t-linux: New. Makefile fragment.
11625         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
11626         * config/s390/fixdfdi.h: New. Fix L_fix*di.
11627
11628 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
11629
11630         * emit-rtl.c (try_split): Update mark_jump_label call.
11631         * flow.c (find_sub_basic_blocks): Likewise.
11632         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
11633         jump_back_p): Kill.
11634         (mark_all_labels): Kill second parameter.
11635         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
11636         (rebuild_jump_labels, jump_optimize_minimal): Update call
11637         of jump_optimize_1.
11638         (jump_optimize_1): Kill crossjumping code.
11639         (mark_jump_label): Kill cross_jump parameter.
11640         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
11641         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
11642         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
11643          splitting.
11644         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
11645         DFI_bpro.
11646         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
11647         reorganize passes to do reg-stack first, bb-reorder second.
11648         * invoke.texi (-d letters doc): Remove the jump2 pass.
11649
11650 2001-07-12  Steve Ellcey <sje@cup.hp.com>
11651
11652         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
11653
11654 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11655
11656         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
11657         basic blocks.
11658         (verify_flow_info): Make diagnostics prettier.
11659
11660 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11661
11662         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
11663
11664         * flow.c (outgoing_edges_match): Return early if condition reversal
11665         failed.
11666
11667 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
11668
11669         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
11670         (mips_move_2words): When splitting a move into two instructions,
11671         prefix the second address operand with '%D'.
11672
11673 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
11674
11675         * Makefile.in (final.o): Depend on debug.h.
11676         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
11677         (dbx_debug_hooks): Add new hooks.
11678         (xcoff_debug_hooks): New.
11679         * debug.c (debug_nothing_file_int_int): New.
11680         (do_nothing_debug_hooks): Update.
11681         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
11682         (debug_nothing_file_int_int): New.
11683         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
11684         static, update prototype.
11685         (dwarf2_debug_hooks): Update.
11686         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
11687         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
11688         static, update prototype.
11689         (dwarf_debug_hooks): Update.
11690         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
11691         * final.c: Include debug.h.
11692         (final_scan_insn): Use debug hooks when beginning and ending blocks.
11693         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
11694         static, update prototype.
11695         (sdb_debug_hooks): Update.
11696         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
11697         * toplev.c: Distinguish between xcoff and dbx.
11698
11699         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
11700         Call all debug hooks, not just dwarf ones.
11701
11702 2001-07-11  Timothy Wall  <twall@redhat.com>
11703
11704         * config.gcc: Add configuration for AIX5/IA64.
11705         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
11706         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
11707         support prefix/suffix code.
11708         * config/ia64/t-aix: New.  Makefile fragment.
11709         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
11710
11711 2001-07-11  Kazu Hirata  <kazu@hxi.com>
11712
11713         * recog.c (validate_change): Fix a comment typo.
11714
11715 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11716
11717         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
11718         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
11719         hooks directly.
11720         * dbxout.c (dbx_debug_hooks): Add new hooks.
11721         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
11722         make static.
11723         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
11724         make static.
11725         * dbxout.h (dbxout_start_new_source_file,
11726         dbxout_resume_previous_source_file): Delete.
11727         * debug.c (do_nothing_debug_hooks): Add new hooks.
11728         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
11729         (debug_nothing_int_charstar, debug_nothing_int): New.
11730         * debug.h (gcc_debug_hooks): New hooks define, undef,
11731         start_source_file and end_source_file.
11732         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
11733         (debug_nothing_int_charstar, debug_nothing_int): New.
11734         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
11735         the conditionally compiled section.
11736         (dwarf2out_start_source_file, dwarf2out_end_source_file,
11737         dwarf2out_define, dwarf2out_undef): Make static.
11738         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
11739         dwarf2out_define, dwarf2out_undef): Remove.
11740         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
11741         (dwarfout_start_source_file, dwarfout_end_source_file,
11742         dwarfout_define, dwarfout_undef): Make static.
11743         (dwarfout_start_source_file_check,
11744         dwarfout_end_source_file_check): New.
11745         (dwarfout_define, dwarfout_finish): Update.
11746         * dwarfout.h (dwarfout_start_new_source_file,
11747         dwarfout_resume_previous_source_file, dwarfout_define,
11748         dwarfout_undef): Remove.
11749         * sdbout.c (sdb_debug_hooks): Add new hooks.
11750         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
11751         make static.
11752         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
11753         make static, take an arg.
11754         * sdbout.h (sdbout_start_new_source_file,
11755         sdbout_resume_previous_source_file): Delete.
11756         * toplev.c (debug_start_source_file, debug_end_source_file,
11757         debug_define, debug_undef): Delete.
11758         * toplev.h (debug_start_source_file, debug_end_source_file,
11759         debug_define, debug_undef): Delete.
11760
11761         * java/jcf-parse.c: Include debug.h.
11762         (parse_class_file): Update to use debug hooks directly.
11763         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
11764
11765 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11766
11767         * alias.c (set_mem_alias_set): New function.
11768         * rtl.h (set_mem_alias_set): Declare it.
11769         * builtins.c (expand_builtin_return_addr): Call it instead of
11770         using MEM_ALIAS_SET accessor.
11771         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
11772         (get_memory_rtx, expand_builtin_va_arg): Likewise.
11773         (expand_builtin_va_copy):Likewise.
11774         * caller-save.c (setup_save_areas): Likewise.
11775         * calls.c (compute_argument_addresses): Likewise.
11776         * explow.c (set_mem_attributes): Likewise.
11777         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
11778         (expand_assignment, store_constructor_field, store_field): Likewise.
11779         (expand_expr_unaligned): Likewise.
11780         * function.c (assign_stack_temp_for_type): Likewise.
11781         (put_reg_into_stack, gen_mem_addressof): Likewise.
11782         * ifcvt.c (noce_try_cmove_arith): Likewise.
11783         * reload1.c (reload, alter_reg): Likewise.
11784         * config/alpha/alpha.c (get_aligned_mem): Likewise.
11785         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
11786         (alpha_expand_unaligned_store): Likewise
11787         (alpha_expand_unaligned_load_words): Likewise.
11788         (alpha_expand_unaligned_store_words): Likewise.
11789         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
11790         (alpha_expand_epilogue): Likewise.
11791         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
11792         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
11793         * config/i386/i386.c (legitimize_pic_address): Likewise.
11794         * config/i960/i960.c (setup_incoming_varargs): Likewise.
11795         * config/ia64/ia64.c (spill_restore_mem): Likewise.
11796         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11797         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
11798         * config/mips/mips.c (mips_va_arg): Likewise.
11799         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11800         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11801         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11802         (setup_incoming_varargs, rs6000_va_arg): Likewise.
11803         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
11804         (rs6000_emit_epilogue): Likewise.
11805         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
11806         * config/sparc/sparc.c (sparc_va_arg): Likewise.
11807         * config/v850/v850.c (v850_va_arg): Likewise.
11808
11809 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
11810
11811         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
11812         when fallthru edge is present.
11813         (mege_blocks): Handle case where creation of jump insn
11814         is required.
11815
11816         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
11817         CLEANUP_POST_REGSTACK): New constants.
11818         * except.c (finish_eh_generation): Update call of cleanup_cfg,
11819         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
11820         * output.h (cleanup_cfg): Update prototype.
11821         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
11822         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
11823         cleanup_cfg call; kill missleading comment.
11824         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
11825         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
11826         parameter; control optimizations performed using it.
11827         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
11828         try_crossjump_bb): New functions.
11829
11830 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11831
11832         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
11833         extern.
11834         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
11835         pa_output_function_prologue.
11836         * pa-protos.h (pa_output_function_prologue): New prototype.
11837
11838 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11839
11840         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
11841         and low to get correct sign extension in low+high test.
11842
11843 2001-07-11  Janis Johnson <janis@us.ibm.com>
11844
11845         * gcov.c (arcdata): Use gcov_type to fix branch percentage
11846         for large hit count.
11847
11848         * profile.c (branch_prob): Fix .bbg info for computed gotos
11849         and C++ EH code.
11850
11851 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
11852
11853         * stmt.c (parse_output_constraint): New function, split out
11854         from ...
11855         (expand_asm_operands): ... here.  Use parse_output_constraint.
11856         * tree.h (parse_output_constraint): Declare it.
11857
11858 2001-07-11  Richard Henderson  <rth@redhat.com>
11859
11860         * bitmap.c: Comment some functions; fiddle whitespace.
11861         (bitmap_free): Don't export.
11862         (bitmap_element_allocate): Use memset.
11863         * bitmap.h (bitmap_free): Don't declare.
11864
11865 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
11866
11867         * gcse.c, lcm.c, sched-deps.c:
11868         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
11869
11870         * flow.c (flow_loops_find): Free dom if we found no loops, since
11871         we aren't going to save it.
11872
11873         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
11874         done.
11875
11876 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
11877
11878         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
11879
11880 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11881
11882         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
11883         #ifndef DWARF2_DEBUGGING_INFO.
11884
11885 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
11886
11887         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
11888
11889 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
11890
11891         * config/mips/mips.c (gen_int_relational): Tell the caller not to
11892         reverse a branch if a NE comparison is implemented with GTU.
11893
11894 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
11895             H.J. Lu  <hjl@gnu.org>
11896
11897         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
11898         constant addresses.
11899         (call_internal2): Likewise.
11900         (call_value_internal1): Likewise.
11901         (call_value_internal2): Likewise.
11902         (call_value_multiple_internal1): Likewise.
11903         (call_value_multiple_internal2): Likewise.
11904
11905 2001-07-10  Kazu Hirata  <kazu@hxi.com>
11906
11907         * calls.c (emit_library_call_value_1): Fix a comment typo.
11908         * dwarf2out.c (mem_loc_descriptor): Likewise.
11909         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
11910
11911 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
11912
11913         * simplify-rtx.c (simplify_subreg): Fix typo in comment
11914
11915 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11916
11917         * recog.c (offsettable_address_p): Handle LO_SUM case.
11918         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
11919         instead of plus_constant.
11920
11921 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11922
11923         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
11924         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
11925
11926 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11927
11928         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
11929         adjust_address_nv instead of plus_constant.
11930
11931 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
11932
11933         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
11934         dwarf2out.o): Depend on debug.h, wrap long lines.
11935         * dbxout.c: Include debug.h.
11936         (dbx_debug_hooks): New.
11937         (dbxout_init): Make static, take just 2 args.
11938         (dbxout_finish): Make static.
11939         * dbxout.h (dbxout_init, dbxout_finish): Delete.
11940         * debug.c: New file.
11941         * debug.h: New file.
11942         * dwarf2out.c: Include debug.h.
11943         (dwarf2_debug_hooks): New.
11944         (dwarf2out_init): Make static.
11945         (dwarf2out_finish): Make static, take 2 args.
11946         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
11947         * dwarfout.c: Include debug.h.
11948         (dwarf_debug_hooks): New.
11949         (dwarfout_init): Make static.
11950         (dwarfout_finish): Make static, take 2 args.
11951         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
11952         * sdbout.c: Include debug.h.
11953         (sdb_debug_hooks): New.
11954         (sdbout_init): Make static, take 2 args.
11955         * sdbout.h (sdbout_init): Delete.
11956         * toplev.c: Include debug.h.
11957         (debug_hooks): New.
11958         (compile_file): Set deubg_hooks based on command line options.
11959         Use the hooks unconditionally rather than conditional compilation.
11960
11961 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
11962
11963         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
11964         first_insn_after_basic_block_note instead.
11965
11966         * df.c (df_bb_refs_unlink): #if 0 out for now.
11967
11968 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
11969
11970         * ssa.h: Add prototype for ssa_const_prop
11971         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
11972         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
11973         (ssa_fast_dce): Remove unused variable
11974
11975 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
11976
11977         * diagnostic.c (finish_diagnostic): Rename to
11978         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
11979         calls thourghout.
11980
11981 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
11982
11983         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
11984         .loc support.
11985
11986         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
11987         (dump_file): Only pad the demangled name with spaces if the
11988         mangled name was padded with spaces.
11989
11990 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
11991
11992         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
11993         edge detection.
11994
11995 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11996
11997         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
11998         extraction if no direct load if either EXPAND_CONST_ADDRESS or
11999         EXPAND_INITIALIZER.
12000
12001         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
12002         whether can put offset inside LO_SUM to check mode alignment, not size.
12003
12004 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12005
12006         * doc/tm.texi (Misc): Fix thinko.
12007
12008 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
12009
12010         * regmove.c (replace_in_call_usage): Fix warnings.
12011         * sched-deps.c (add_dependence): Fix warnings.
12012         * simplify-rtx.c (simplify_subreg): Likewise.
12013         Return NULL_RTX instead of NULL.
12014
12015         * reg-stack.c (emit_swap_insn): Eliminate warnings.
12016         (subst_asm_stack_regs): Likewise.
12017
12018         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
12019         warnings.
12020
12021         * dwarf2out.c (output_call_frame_info): Declare i as int.
12022         (build_abbrev_table): Declare n_alloc as int.
12023         (dwarf2out_finish): Initialize die.
12024         * except.c: Declare sjlj_funcdef_number as unsigned.
12025         (connect_post_landing_pads): Declare j as unsigned.
12026         (convert_to_eh_region_ranges): Initialize call_site.
12027         (output_function_exception_table): Initialize tt_format_size.
12028         * expr.c (move_by_pieces_1): Initialize to1.
12029         (store_constructor): Initialize minelt and maxelt.
12030         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
12031         * function.c (instantiate_decls): Avoid signed/unsigned warning.
12032
12033         * c-decl.c (combine_parm_decls): Unused, remove.
12034         * c-tree.h: Remove prototype for combine_parm_decls.
12035
12036         * reload.c (push_reload): Fix warning.
12037         (regno_clobbered_p): Likewise.
12038         * reload1.c (replace_pseudos_in_call_usage): Likewise.
12039         (reload_combine): Likewise.
12040
12041         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
12042         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
12043         warnings.
12044         * bitmap.c (bitmap_operation): Change user.
12045         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
12046
12047 2001-07-10  Eric Christopher  <echristo@redhat.com>
12048
12049         * config/mips/mips.c (override_options): Fix typo.
12050
12051 2001-07-09  Stan Shebs  <shebs@apple.com>
12052
12053         * target.h (struct gcc_target): New fields init_builtins and
12054         expand_builtin.
12055         * target-def.h (TARGET_INIT_BUILTINS): New macro.
12056         (TARGET_EXPAND_BUILTIN): New macro.
12057         (TARGET_INITIALIZER): Add them.
12058         * builtins.c: Include target.h.
12059         (expand_builtin): Use targetm.expand_builtin.
12060         (default_init_builtins): New function.
12061         (default_expand_builtin): New function.
12062         * expr.h (default_init_builtins): Declare.
12063         (default_expand_builtin): Declare.
12064         * c-common.c (c_common_nodes_and_builtins): Use
12065         targetm.init_builtins.
12066         * defaults.h (MD_INIT_BUILTINS): Remove.
12067         * Makefile.in (builtins.o): Depend on target.h.
12068
12069         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
12070         (TARGET_EXPAND_BUILTIN): Define.
12071         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
12072         (MD_EXPAND_BUILTIN): Remove.
12073
12074         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
12075         (TARGET_EXPAND_BUILTIN): Define.
12076         (c4x_init_builtins): Make endlink arg a local.
12077         (c4x_print_operand): Fix typos in adjust_address usages.
12078         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
12079         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
12080         (MD_EXPAND_BUILTIN): Remove.
12081
12082         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
12083         (TARGET_EXPAND_BUILTIN): Define.
12084         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
12085         (ix86_init_builtins): Call new function only if TARGET_MMX.
12086         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
12087         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
12088         (MD_EXPAND_BUILTIN): Remove.
12089
12090         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
12091         (TARGET_EXPAND_BUILTIN): Define.
12092         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
12093         (MD_EXPAND_BUILTIN): Remove.
12094
12095         * doc/tm.texi: Document these changes.
12096
12097 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
12098
12099         * basic-block.h (tree_node): Forward declare if needed.
12100         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
12101         (BLOCK_HEAD_TREE): Define.
12102         (BLOCK_END_TREE): Define.
12103         (struct loops): Rename field 'tree' to 'tree_root'.
12104         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
12105         'end_tree'.
12106         (flow_loops_tree_build): Rename reference to field 'tree' to
12107         'tree_root'.
12108         (flow_loops_level_compute): Ditto.
12109         * predict.c (estimate_bb_frequencies): Ditto.
12110         * tree.h (struct tree_common): Add field 'aux'.
12111
12112 2001-07-09  Stan Shebs  <shebs@apple.com>
12113
12114         * config/darwin.c (darwin_encode_section_info): Don't mark any
12115         DECL_EXTERNAL node as defined.
12116
12117 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12118
12119         * pa.c (pa_init_machine_status, pa_mark_machine_status,
12120         pa_free_machine_status, hppa_init_pic_save): Delete.
12121         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
12122         (hppa_profile_hook): Use hppa_pic_save_rtx.
12123         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
12124         hppa_init_pic_save): Delete.
12125         (hppa_pic_save_rtx): Declare.
12126         * pa.md (call, call_value, sibcall, sibcall_value,
12127         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
12128
12129 2001-07-09  Kazu Hirata  <kazu@hxi.com>
12130
12131         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
12132         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
12133
12134 2001-07-09  Andreas Jaeger  <aj@suse.de>
12135
12136         * output.h: Add declaration of final_forward_branch_p.
12137
12138         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
12139
12140         * varray.c: Include errors.h for internal_error and trim_filename
12141         declarations.
12142
12143         * Makefile.in (varray.o): Add errors.h.
12144
12145 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
12146
12147         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
12148         * optabs.c (have_add2_insn): Check whether the add insn chosen
12149         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
12150         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
12151
12152 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
12153
12154         * Makefile.in (OBJS): Add ssa-ccp.o
12155         (ssa-ccp.o): Add dependencies.
12156         * toplev.c (DFI_ssa_ccp): New dump file enum.
12157         (dump_file): Add entry for dumping after SSA CCP.
12158         (flag_ssa_ccp): New flag variable.
12159         (f_options): Add -fssa-ccp.
12160         (rest_of_compilation): Run SSA CCP if requested.
12161         * timevar.def (TV_SSA_CCP): New timevar.
12162         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
12163         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
12164         Fix minor typo in SSA DCE documentation.
12165         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
12166         Add documentation for new dump option.  Renumber dump files
12167         appropriately.
12168
12169 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12170
12171         * emit-rtl.c (gen_highpart_mode): New.
12172         * rtl.h (gen_highpart_mode): Declare.
12173         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
12174         operand can be VOIDmode constant.
12175
12176 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
12177
12178         * flow.c (redirect_edge_and_branch_force): New.
12179         (can_fallthru): Ensure that basic blocks are succeeding.
12180         (try_optimize_cfg): Do not delete basic block if it is the last one.
12181
12182         * flow.c (try_redirect_by_replacing_jump): Do not remove
12183         jumps with side effects, unlink chain on fallthru edge;
12184         set block for new jump instruction; avoid basic block to
12185         over by line number note.
12186
12187         * flow.c (try_simplify_condjump): Verify that the condjump
12188         is not always falling through.
12189
12190         Re-install patch:
12191         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
12192
12193         * flow.c (forwarder_block_p): Fix for fallthru blocks.
12194         (try_redirect_by_replacing_jump): Update properly the count
12195         and frequency information.
12196
12197 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12198
12199         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
12200         address that is a LO_SUM specially.
12201         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
12202
12203         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
12204
12205         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
12206         (operand_subword): Use them.
12207         (change_address_1): Renamed from change_address; new arg VALIDATE.
12208         * expr.h: Reflect above changes; change_address now macro.
12209         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
12210         making MEM.
12211         * cselib.c (add_mem_for_addr): Likewise.
12212         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
12213         * regmove.c (try_apply_stack_adjustment): Likewise.
12214         * reload.c (push_reload, make_memloc): Likewise.
12215         * reload1.c (eliminate_regs): Likewise.
12216         * simplify-rtx.c (simplify_replace_rtx): Likewise.
12217         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
12218         adjust_addess.
12219         * combine.c (make_extraction, simplify_shift_const): Likewise.
12220         (gen_lowpart_for_combine): Likewise.
12221         * cse.c (gen_lowpart_if_possible): Likewise.
12222         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
12223         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
12224         * optabs.c (gen_move_insn): Likewise.
12225         * reload1.c (alter_reg): Likewise.
12226         * simplify-rtx.c (simplify_subreg): Likewise.
12227         * stmt.c (expand_anon_union_decl): Likewise.
12228         * recog.c (validate_replace_rtx_1): Likewise.
12229         (expr.h): Include.
12230         * Makefile.in (recog.o): Add $(EXPR_H).
12231         * explow.c (stabilize): Call replace_equiv_address.
12232         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
12233         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
12234
12235 2001-07-03  Andrew Haley  <aph@redhat.com>
12236
12237         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
12238         the mode of the memory location.
12239
12240 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
12241
12242         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
12243
12244 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12245
12246         * final.c (output_addr_const): Use target opening and
12247         closing parentheses.
12248         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
12249         defaults, add to TARGET_ASM_OUT.
12250         * target.h (struct gcc_target): Add open_paren and close_paren.
12251         * doc/md.texi: Update.
12252         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
12253         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
12254         TARGET_ASM_CLOSE_PAREN.
12255         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
12256         Override.
12257         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
12258         Override.
12259         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
12260         * config/a29k/a29k.h: Similarly.
12261         * config/alpha/alpha.h: Similarly.
12262         * config/arc/arc.h: Similarly.
12263         * config/arm/aof.h: Similarly.
12264         * config/arm/aout.h: Similarly.
12265         * config/avr/avr.h: Similarly.
12266         * config/c4x/c4x.h: Similarly.
12267         * config/clipper/clipper.h: Similarly.
12268         * config/convex/convex.h: Similarly.
12269         * config/d30v/d30v.h: Similarly.
12270         * config/dsp16xx/dsp16xx.h: Similarly.
12271         * config/elxsi/elxsi.h: Similarly.
12272         * config/fr30/fr30.h: Similarly.
12273         * config/h8300/h8300.h: Similarly.
12274         * config/i370/i370.h: Similarly.
12275         * config/i386/i386.h: Similarly.
12276         * config/i860/i860.h: Similarly.
12277         * config/i960/i960.h: Similarly.
12278         * config/ia64/ia64.h: Similarly.
12279         * config/m32r/m32r.h: Similarly.
12280         * config/m68hc11/m68hc11.h: Similarly.
12281         * config/m68k/m68k.h: Similarly.
12282         * config/m88k/m88k.h: Similarly.
12283         * config/mcore/mcore.h: Similarly.
12284         * config/mips/mips.h: Similarly.
12285         * config/mn10200/mn10200.h: Similarly.
12286         * config/mn10300/mn10300.h: Similarly.
12287         * config/ns32k/ns32k.h: Similarly.
12288         * config/pa/pa.h: Similarly.
12289         * config/pdp11/pdp11.h: Similarly.
12290         * config/pj/pj.h: Similarly.
12291         * config/romp/romp.h: Similarly.
12292         * config/rs6000/rs6000.h: Similarly.
12293         * config/sh/sh.h: Similarly.
12294         * config/sparc/sparc.h: Similarly.
12295         * config/v850/v850.h: Similarly.
12296         * config/vax/vax.h: Similarly.
12297         * config/we32k/we32k.h: Similarly.
12298
12299 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
12300
12301         * doc/c-tree.texi: Document representation of attributes.
12302
12303 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12304
12305         * doc/tm.texi: Update some places for the rename of target to
12306         targetm.  Fix typo.
12307
12308 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12309
12310         * target.h (struct gcc_target): Add insert_attributes.
12311         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
12312         (TARGET_INITIALIZER): Update.
12313         * tree.c, tree.h (default_insert_attributes): New function.
12314         Update comments on other default functions to refer to targetm,
12315         not target.
12316         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
12317         TARGET_INSERT_ATTRIBUTES.
12318         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
12319         * c-common.c (decl_attributes): Use targetm.insert_attributes.
12320         Don't use PRAGMA_INSERT_ATTRIBUTES.
12321         * Makefile.in (c-common.o): Depend on $(TARGET_H).
12322         * c-decl.c (start_decl, start_function): Don't call
12323         SET_DEFAULT_DECL_ATTRIBUTES.
12324         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
12325         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
12326         declare.
12327         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
12328         (c4x_check_attribute): Avoid modifying attribute list itself.
12329         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
12330         Make static.
12331         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
12332         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
12333         declare.
12334         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
12335         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
12336         Make static.
12337         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
12338         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
12339         declare.
12340         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
12341         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
12342         Adjust parameters.  Make static.
12343
12344 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12345
12346         * c-common.c (decl_attributes): Only take a single attributes
12347         parameter.
12348         * c-common.h (decl_attributes): Update prototype.
12349         * c-decl.c (start_decl, start_function): Only take a single
12350         attributes parameter.  Update calls to decl_attributes.
12351         (finish_struct, finish_enum): Update calls to decl_attributes.
12352         (push_parm_decl): Expect unified list of attributes.  Update call
12353         to decl_attributes.
12354         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
12355         notype_nested_function, component_declarator,
12356         component_notype_declarator, label): Update calls to
12357         decl_attributes.
12358         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
12359         lists that are passed to push_parm_decl.
12360         * c-tree.h (start_function, start_decl): Update prototypes.
12361         * config/sh/sh-protos.h, config/sh/sh.c
12362         (sh_pragma_insert_attributes): Only take a single attributes
12363         parameter.
12364         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
12365         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
12366         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
12367         build_module_descriptor, generate_static_references,
12368         generate_strings, build_selector_translation_table,
12369         generate_descriptor_table, generate_protocols,
12370         generate_ivars_list, generate_dispatch_table,
12371         generate_protocol_list, generate_category,
12372         generate_shared_structures, really_start_method, add_objc_decls,
12373         generate_classref_translation_entry): Update calls to start_decl
12374         and start_function.
12375         (build_tmp_function_decl, start_method_def): Unify attribute lists
12376         that are passed to push_parm_decl.
12377
12378 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
12379
12380         * final.c (no_asm_to_stream): New.
12381         (final_scan_insn): Use target structures for prologue ends
12382         and epilogue starts.
12383         * output.h (no_asm_to_stream): New.
12384         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
12385         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
12386         (TARGET_ASM_OUT): Update.
12387         * target.h (struct gcc_target): New members function_end_prologue
12388         and function_begin_epilogue.
12389         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
12390         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
12391         * config/alpha/alpha.c (output_end_prologue): Rename to
12392         alpha_output_function_end_prologue.  Use in target struct
12393         and make static.
12394         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
12395         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
12396         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
12397         ia64_output_function_end_prologue.  Use in target struct
12398         and make static.
12399         (ia64_function_prologue, ia64_funciton_epilogue): Rename
12400         mistyped prototypes.
12401         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
12402         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
12403         Delete.
12404         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
12405         an use in target struct, make static.
12406         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
12407         Delete.
12408
12409 2001-07-08  Richard Henderson  <rth@redhat.com>
12410
12411         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
12412
12413 2001-07-08  Richard Henderson  <rth@redhat.com>
12414
12415         * config/i386/i386.md: Remove constraints strings from define_split
12416         and define_peephole2 patterns.
12417         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
12418         (eh_return): Use them.
12419
12420 2001-07-08  Richard Henderson  <rth@redhat.com>
12421
12422         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
12423         Document MD_FALLBACK_FRAME_STATE_FOR.
12424
12425 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12426
12427         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
12428         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
12429         elimination.
12430         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
12431
12432 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
12433
12434         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
12435         of the label inside NAME as opposed to just the end of NAME.
12436
12437 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12438
12439         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
12440         * config/alpha/alpha.c (alpha_init_machine_status,
12441         alpha_mark_machine_status, alpha_free_machine_status): Delete.
12442         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
12443         (vms_valid_decl_attribute_p): Make static, conditionally compile.
12444         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
12445
12446 2001-07-06  Stan Shebs  <shebs@apple.com>
12447
12448         * target.h (targetm): Rename global from "target", so as not to
12449         conflict with local variables.
12450         * c-decl.c: Ditto.
12451         * c-typeck.c: Ditto.
12452         * final.c: Ditto.
12453         * tree.c: Ditto.
12454         * cp/decl.c: Ditto.
12455         * cp/decl2.c: Ditto.
12456         * cp/typeck.c: Ditto.
12457         * 1750a/1750a.c: Ditto.
12458         * a29k/a29k.c: Ditto.
12459         * arc/arc.c: Ditto.
12460         * arm/arm.c: Ditto.
12461         * avr/avr.c: Ditto.
12462         * clipper/clipper.c: Ditto.
12463         * convex/convex.c: Ditto.
12464         * d30v/d30v.c: Ditto.
12465         * dsp16xx/dsp16xx.c: Ditto.
12466         * elxsi/elxsi.c: Ditto.
12467         * fr30/fr30.c: Ditto.
12468         * h8300/h8300.c: Ditto.
12469         * i370/i370.c: Ditto.
12470         * i386/i386.c: Ditto.
12471         * i860/i860.c: Ditto.
12472         * i960/i960.c: Ditto.
12473         * ia64/ia64.c: Ditto.
12474         * m32r/m32r.c: Ditto.
12475         * m68hc11/m68hc11.c: Ditto.
12476         * m68k/m68k.c: Ditto.
12477         * m88k/m88k.c: Ditto.
12478         * mips/mips.c: Ditto.
12479         * ns32k/ns32k.c: Ditto.
12480         * pa/pa.c: Ditto.
12481         * pdp11/pdp11.c: Ditto.
12482         * romp/romp.c: Ditto.
12483         * rs6000/rs6000.c: Ditto.
12484         * sh/sh.c: Ditto.
12485         * sparc/sparc.c: Ditto.
12486         * vax/vax.c: Ditto.
12487         * we32k/we32k.c: Ditto.
12488         * doc/tm.texi: Update the manual to match.
12489
12490 2001-07-06  Richard Henderson  <rth@redhat.com>
12491
12492         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
12493         DWARF2_UNWIND_INFO not just whether it is defined.
12494
12495 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
12496
12497         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
12498         call to simplify_binary_operation returns a new pattern.
12499
12500 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
12501
12502         * glimits.h (__SHRT_MAX__): New.
12503         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
12504         (SHRT_MAX): Define in terms of __SHRT_MAX__.
12505
12506 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
12507
12508         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
12509         avoid warnings.
12510
12511 2001-07-06  Richard Henderson  <rth@redhat.com>
12512
12513         * bitmap.c (bitmap_release_memory): Move adjacent to the
12514         allocation functions.
12515         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
12516         the implementation.  Binary search for the set bit.
12517         (bitmap_union_of_diff): Allocate the temporary on the stack
12518         instead of using xmalloc.
12519
12520 2001-07-06  Richard Henderson  <rth@redhat.com>
12521
12522         * genrecog.c (validate_pattern): Warn for constraints in
12523         define_{expand,split,peephole2}.  Remove strict_low_part
12524         before looking up match_dup.
12525
12526 2001-07-06  DJ Delorie  <dj@redhat.com>
12527
12528         * doc/gcc.texi (Makefile): Rename to be a more general purpose
12529         chapter about various build hints and history.  Add section
12530         talking about the various types of native and cross builds.
12531
12532 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12533
12534         * Makefile.in (final.o): Depend on target.h.
12535         * final.c: Include target.h.
12536         (default_function_pro_epilogue): New.
12537         (final_start_function): Use target structure for function prologues.
12538         (final_end_function): Use target structure for function epilogues.
12539         * fold-const.c (real_hex_to_f): Constify s and p.
12540         * output.h (default_function_pro_epilogue): New.
12541         * real.h (real_hex_to_f): Update prototype.
12542         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
12543         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
12544         (TARGET_INITIALIZER): Update.
12545         * target.h (gcc_target): Add struct asm_out.
12546         * doc/tm.texi: Update.
12547
12548 config:
12549         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
12550         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
12551         in cpu/cpu.c, or rename old functions consistently.  Take
12552         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
12553         redundant macros and prototypes.  Make new functions static.
12554
12555         * 1750a/1750a.c: Similarly.
12556         * 1750a/1750a.h: Similarly.
12557         * a29k/a29k-protos.h: Similarly.
12558         * a29k/a29k.c: Similarly.
12559         * a29k/a29k.h: Similarly.
12560         * arc/arc-protos.h: Similarly.
12561         * arc/arc.c: Similarly.
12562         * arc/arc.h: Similarly.
12563         * arm/arm-protos.h: Similarly.
12564         * arm/arm.c: Similarly.
12565         * arm/arm.h: Similarly.
12566         * avr/avr-protos.h: Similarly.
12567         * avr/avr.c: Similarly.
12568         * avr/avr.h: Similarly.
12569         * clipper/clipper-protos.h: Similarly.
12570         * clipper/clipper.c: Similarly.
12571         * clipper/clipper.h: Similarly.
12572         * convex/convex.c: Similarly.
12573         * convex/convex.h: Similarly.
12574         * d30v/d30v-protos.h: Similarly.
12575         * d30v/d30v.c: Similarly.
12576         * d30v/d30v.h: Similarly.
12577         * d30v/d30v.md: Similarly.
12578         * dsp16xx/dsp16xx-protos.h: Similarly.
12579         * dsp16xx/dsp16xx.c: Similarly.
12580         * dsp16xx/dsp16xx.h: Similarly.
12581         * elxsi/elxsi.c: Similarly.
12582         * elxsi/elxsi.h: Similarly.
12583         * fr30/fr30.c: Similarly.
12584         * fr30/fr30.md: Similarly.
12585         * h8300/h8300-protos.h: Similarly.
12586         * h8300/h8300.c: Similarly.
12587         * h8300/h8300.h: Similarly.
12588         * i370/i370-protos.h: Similarly.
12589         * i370/i370.c: Similarly.
12590         * i370/i370.h: Similarly.
12591         * i386/i386.c: Similarly.
12592         * i386/osf1elf.h: Similarly.
12593         * i386/osfrose.h: Similarly.
12594         * i860/i860-protos.h: Similarly.
12595         * i860/i860.c: Similarly.
12596         * i860/i860.h: Similarly.
12597         * i960/i960-protos.h: Similarly.
12598         * i960/i960.c: Similarly.
12599         * i960/i960.h: Similarly.
12600         * ia64/ia64-protos.h: Similarly.
12601         * ia64/ia64.c: Similarly.
12602         * ia64/ia64.h: Similarly.
12603         * m32r/m32r-protos.h: Similarly.
12604         * m32r/m32r.c: Similarly.
12605         * m32r/m32r.h: Similarly.
12606         * m68hc11/m68hc11-protos.h: Similarly.
12607         * m68hc11/m68hc11.c: Similarly.
12608         * m68hc11/m68hc11.h: Similarly.
12609         * m68k/crds.h: Similarly.
12610         * m68k/dpx2.h: Similarly.
12611         * m68k/m68k-protos.h: Similarly.
12612         * m68k/m68k.c: Similarly.
12613         * m68k/m68k.h: Similarly.
12614         * m68k/news.h: Similarly.
12615         * m88k/m88k-protos.h: Similarly.
12616         * m88k/m88k.c: Similarly.
12617         * m88k/m88k.h: Similarly.
12618         * mips/mips-protos.h: Similarly.
12619         * mips/mips.c: Similarly.
12620         * mips/mips.h: Similarly.
12621         * ns32k/merlin.h: Similarly.
12622         * ns32k/ns32k.c: Similarly.
12623         * ns32k/ns32k.h: Similarly.
12624         * ns32k/tek6000.h: Similarly.
12625         * pa/pa-protos.h: Similarly.
12626         * pa/pa.c: Similarly.
12627         * pa/pa.h: Similarly.
12628         * pdp11/2bsd.h: Similarly.
12629         * pdp11/pdp11-protos.h: Similarly.
12630         * pdp11/pdp11.c: Similarly.
12631         * pdp11/pdp11.h: Similarly.
12632         * romp/romp-protos.h: Similarly.
12633         * romp/romp.c: Similarly.
12634         * romp/romp.h: Similarly.
12635         * rs6000/rs6000-protos.h: Similarly.
12636         * rs6000/rs6000.c: Similarly.
12637         * rs6000/rs6000.h: Similarly.
12638         * rs6000/sysv4.h: Similarly.
12639         * sh/sh-protos.h: Similarly.
12640         * sh/sh.c: Similarly.
12641         * sh/sh.h: Similarly.
12642         * sparc/sparc-protos.h: Similarly.
12643         * sparc/sparc.c: Similarly.
12644         * sparc/sparc.h: Similarly.
12645         * vax/vax.c: Similarly.
12646         * vax/vax.h: Similarly.
12647         * vax/vms.h: Similarly.
12648         * we32k/we32k.c: Similarly.
12649         * we32k/we32k.h: Similarly.
12650
12651 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
12652
12653         * basic-block.h (first_insn_after_basic_block_note): Declare.
12654         * flow.c (first_insn_after_basic_block_note): Define.  Moved
12655         from...
12656         * ssa.c (first_insn_after_basic_block_note): Remove.
12657         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
12658         necessary.
12659         (ssa_eliminate_dead_code): Properly update the CFG and PHI
12660         nodes when we find a dead conditional branch.  Insert BARRIERs
12661         after any blocks with no successors, but which do not have
12662         any BARRIERs.
12663
12664 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
12665
12666         * varray.c (varray_check_failed): Use internal_error.
12667
12668 2001-07-05  Andrew Haley  <aph@redhat.com>
12669
12670         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
12671         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
12672         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
12673
12674 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
12675
12676         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
12677         reference if the target constant is also a SYMBOL_REF.
12678
12679 2001-07-05  Eric Christopher  <echristo@redhat.com>
12680
12681         * config/mips/mips.h (MASK_MIPS3900): Remove.
12682         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
12683         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
12684         (TARGET_MIPS3900): Change to use mips_arch.
12685         (TARGET_MIPS4000): New.
12686         (TARGET_MIPS4100): New.
12687         (TARGET_MIPS4300): New.
12688         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
12689         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
12690         for -mipsX.
12691         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
12692         (ISA_HAS_BRANCHLIKELY): To here.
12693         (CC1_CPU_SPEC):  New.
12694         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
12695         (mips_arch_string): Declare.
12696         (mips_arch): Declare.
12697         (TARGET_OPTIONS): Add -march and -mtune.
12698
12699         * config/mips/mips.c (mips_arch_string): New.
12700         (mips_arch): New.
12701         (override_options): Handle -march for codegen and -mtune
12702         for scheduling. Use mips_arch. Move tx39 target default here.
12703         (mips_parse_cpu): Move error message to override_options.
12704
12705         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
12706
12707         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
12708
12709         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
12710         (MIPS Options): Ditto.  Change mcpu entry to historical text.
12711
12712 2001-07-05  H.J. Lu  (hjl@gnu.org)
12713
12714         * config/mips/mips.c (mips_parse_cpu): New function to parse
12715         -march=*/-mcpu=*.
12716
12717 2001-07-05  Jim Wilson  <wilson@redhat.com>
12718
12719         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
12720         * config/ia64/t-ia64: Likewise.
12721         (LIB1ASMFUNCS): Update comment.
12722
12723 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
12724
12725         * doc/install.texi (Install GCC: Binaries): Fix typo.
12726
12727 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12728
12729         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
12730         reference using the stack pointer, adjust it since we push Y
12731         temporarily.
12732         ("*ashrsi3"): Likewise.
12733         ("*lshrsi3"): Likewise.
12734
12735 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12736
12737         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
12738         when -fomit-frame-pointer is used.
12739
12740 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
12741
12742         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
12743         (try_redirect_by_replacing_jump): Reverse updating properly the
12744         count and frequency information.  Reverse removing cc0 setter.
12745         (forwarder_block_p): Reverse fixing for fallthru blocks.
12746
12747 2001-07-05  DJ Delorie  <dj@redhat.com>
12748
12749         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
12750         (translate_options): If the above is defined, use it to map
12751         given options to new options.
12752         * doc/tm.texi: Document it.
12753
12754 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
12755             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12756
12757         * doc/invoke.texi (Optimize Options): Document that -fgcse may
12758         cause programs using computed gotos to run more slowly.
12759
12760 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12761
12762         * doc/install.texi (Specific): Markup, spelling and typo fixes.
12763         Fixed sorting.
12764         Consistently require binutils 2.11.2, not prereleases.
12765         (Specific, decstation-*): Canonicalize as mips-dec-*.
12766         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
12767         always necessary.
12768         (Specific, m68k-altos): Removed reference to README.altos, deleted.
12769         (Specific, mips-*): Reword MIPS C compiler requirements.
12770         (Specific, powerpc*-*-*): New, mention --with-cpu once.
12771         (Specific, sunv5): Removed, obsolete.
12772
12773 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
12774
12775         * dwarf2out.c (output_loc_list): Use an all ones mask for
12776         .text asm output and don't rely on long long
12777         literals. Reformat some long lines.
12778
12779 2001-07-05  Andreas Jaeger  <aj@suse.de>
12780
12781         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
12782         section.
12783
12784 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
12785
12786         * dwarf2out.c (dwarf2out_define): Update comment.
12787         (dwarf2out_undef): Ditto.
12788         (dwarf2out_start_source_file): Ditto.
12789         (dwarf2out_end_source_file): Ditto.
12790         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
12791         since we never call the start/end debug hook for the primary file.
12792
12793 2001-07-04  Kazu Hirata  <kazu@hxi.com>
12794
12795         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
12796         from shll.
12797
12798 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
12799
12800         * cppinit.c (remove_dup_dirs): Inform if a system include
12801         directory is being reordered.
12802         * doc/invoke.texi (Directory Options): GCC warns if you hide a
12803         system include.
12804         * doc/cpp.texi (Search Paths): Likewise.
12805         * doc/gcc.texi (Interoperation): Remove information about
12806         -I/usr/include.
12807
12808 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
12809
12810         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
12811         (VARRAY_TOP_CHAR_PTR): Likewise.
12812
12813 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12814
12815         * gcc.c (process_command): Don't assign elements of a const char*.
12816
12817 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12818
12819         * emit-rtl.c (change_address): Don't abort if invalid address while
12820         reload is in progress.
12821
12822 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
12823
12824         * c-lex.c (cb_file_change): Pass line number to
12825         debug_start_source_file.
12826         (cb_undefine): Pass correct line number to debug_undef.
12827
12828         * toplev.c (debug_start_source_file): Add line number to
12829         parameters. Pass it along to dwarf2out_start_source_file.
12830         (decode_g_option): Stop resetting debug level back to normal when
12831         we change debug formats, unless the current level is
12832         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
12833         3).
12834
12835         * toplev.h (debug_start_source_file): Add line number to
12836         parameters.
12837
12838         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
12839         parameters.
12840
12841         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
12842         parameters.
12843         Output debug_macinfo data for starting file if requested.
12844         (dwarf2out_end_source_file): Output debug_macinfo data for ending
12845         file if requested.
12846         (dwarf2out_define): Output debug_macinfo data for defining a macro
12847         if requested.
12848         (dwarf2out_undef): Output debug_macinfo data for undefining a
12849         macro if requested.
12850         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
12851         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
12852         (macinfo_section_label): New. DWARF2 macro info section label.
12853         (dwarf2out_init): If we want macro info, output the start label
12854         for the section.
12855         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
12856         attribute to the compilation unit die pointing to the macro info.
12857
12858 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
12859
12860         * dwarf2out.c (new_loc_list): Move to inside #ifdef
12861         DWARF2_DEBUGGING_INFO.
12862         (add_loc_descr_to_loc_list): Ditto.
12863         (output_loc_list): Ditto.
12864         Also, fix thinko in curr not being initialized.
12865         (gen_internal_sym): Ditto.
12866
12867 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12868
12869         * emit-rtl.c (replace_equiv_address): New function.
12870         * expr.h (replace_equiv_address): New declaration.
12871         * explow.c (validize_mem): Call it instead of change_address and
12872         also call if -fforce-addr and address is constant.
12873         * expr.c: Replace more calls to change_address with adjust_address
12874         and/or replace_equiv_address or to validize_mem.
12875         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
12876         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
12877         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
12878         * config/i370/i370.md, config/i860/i860.md: Likewise.
12879         * config/i960/i960.md, config/mips/mips.c: Likewise.
12880         * config/mips/mips.md, config/pa/pa.md: Likewise.
12881         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
12882         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
12883
12884 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12885
12886         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
12887
12888         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
12889         function.
12890
12891 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12892
12893         * doc/include: New directory.
12894         * doc/fdl.texi: Move to doc/include/fdl.texi.
12895         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
12896         * doc/include/funding.texi, doc/include/gpl.texi: New files.
12897         * doc/gcc.texi: Use funding.texi and gpl.texi.
12898         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
12899         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
12900         Update dependencies and use -I $(docdir)/include.
12901
12902 2001-07-04  Anthony Green  <green@redhat.com>
12903
12904         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
12905
12906 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12907
12908         * doc/install.texi (sparc64-*-*): Remove garbage.
12909
12910 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
12911
12912         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
12913         Fix typo in last change to use adjust_address.
12914
12915 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12916
12917         * doc/install.texi (Specific): Update information for *-*-solaris*.
12918
12919 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12920
12921         * explow.c (plus_constant_wide): Reinitialize Y for restart.
12922
12923 2001-07-03  Stan Shebs  <shebs@apple.com>
12924
12925         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
12926         case for flag_no_mach_text_sections.
12927         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
12928         * config/darwin.c (flag_no_mach_text_sections): Remove.
12929         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
12930
12931 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12932
12933         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
12934         and avoid checking for constant as first operand.
12935         * recog.c (find_constant_term_loc): No longer static.
12936         (adj_offettable_operand): Delete.
12937         * rtl.h (adj_offsettable_operand): Delete declaration.
12938         (find_constant_term): Add declaration.
12939         * caller-save.c: Replace calls to adj_offsettable_operand with calls
12940         to adjust_address.
12941         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
12942         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
12943         * config/i386/i386.c, config/i386/i386.md: Likewise.
12944         * config/i860/i860.c, config/i960/i960.c: Likewise.
12945         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
12946         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
12947         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
12948         * config/mips/mips.c, config/mips/mips.md: Likewise.
12949         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
12950         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
12951         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
12952         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
12953         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
12954         * config/ns32k/ns32k.md: Likewise.
12955
12956 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
12957
12958         * rtl.c (copy_rtx): Handle 'T' format letter.
12959         * gensupport.c (collect_insn_data): Likewise.
12960         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
12961
12962 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
12963
12964         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
12965         -B option.  Use 'dir' not 'foo' as example directory name.
12966
12967 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12968
12969         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12970         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
12971
12972 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
12973
12974         * doc/cppinternals.texi: Improve formatting and logical markup.
12975
12976 2001-07-03  Andreas Jaeger  <aj@suse.de>
12977
12978         * Makefile.in (insn-recog.o): Add dependency on reload.h.
12979
12980         * genrecog.c (write_header): Include reload.h for prototypes in
12981         insn-recog.c.
12982
12983 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12984
12985 config:
12986         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
12987         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
12988         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
12989         i386_pe_valid_type_attribute_p): Add.
12990         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
12991         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
12992
12993 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12994
12995         * explow.c (plus_constant_wide, case LO_SUM): New case.
12996         (plus_constant_for_output_wide): Delete.
12997         * rtl.h (plus_constant_for_output): Delete.
12998         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
12999         instead of plus_constant_for_output.
13000         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
13001         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
13002         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
13003         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
13004         * config/sparc/sparc.md: Likewise.
13005         Convert some change_address calls to adjust_address.
13006
13007 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
13008
13009         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
13010         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
13011         documentation of -std and -Wwrite-strings.
13012
13013 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
13014
13015         * cse.c (canon_hash): Don't register registers in very small
13016         register classes, as extending their lifetime might cause
13017         reload to fail.
13018
13019 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13020
13021         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
13022
13023         * flow.c (forwarder_block_p): Fix for fallthru blocks.
13024         (try_redirect_by_replacing_jump): Update properly the count
13025         and frequency information.
13026
13027 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
13028
13029         * toplev.c (dump_file_index): Move SSA dumps just after first
13030         jump dump.
13031         (dump_file): Corresponding changes.
13032         (rest_of_compilation): Move SSA path to just after the first
13033         jump pass.
13034         * doc/gcc.texi (Passes): Update due to movement of SSA path.
13035         * doc/invoke.texi: Update dump file #s as they were completely
13036         out of date with reality.
13037
13038 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
13039
13040         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
13041
13042         * expr.c (emit_move_insn_1): Deal with non-default
13043         STACK_PUSH_CODE.
13044
13045         * expr.c (emit_single_push_insn): Fix warning.
13046
13047 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
13048
13049         * expr.c (emit_move_insn_1): Avoid modifying
13050         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
13051
13052 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13053
13054         * emit-rtl.c (adjust_address): New function.
13055         * expr.h (adjust_address): Add declaration.
13056         * builtins.c: Replace some calls to change_address with calls to it
13057         or to validize_mem.
13058         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
13059         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
13060         * config/arm/arm.c, config/convex/convex.c: Likewise.
13061         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
13062         * config/i386/i386.c, config/i386/i386.md: Likewise.
13063         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
13064         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
13065         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
13066         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
13067         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
13068
13069 2001-07-02  Jim Wilson  <wilson@redhat.com>
13070
13071         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
13072
13073 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
13074
13075         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
13076         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
13077
13078 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
13079
13080         * cppinit.c (lang_defaults): New table.
13081         (set_lang): Just read from lang_defaults into the live options
13082         structure.
13083
13084 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
13085
13086         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
13087         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
13088         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
13089
13090 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13091
13092         * doc/install.texi: Various spelling and markup fixes.
13093         (Installing GCC): Component specific installation instructions are
13094         gone.
13095         Fix reference.
13096         Warn about removing old install dir in the presence of shared libs.
13097         (Configuration): Invoke with options target to match configure
13098         --help.
13099         Consistently refer to gas, gld pathnames.
13100         Invert --enable-multilib documentation.
13101         Remove references to old compiler versions.
13102
13103 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13104
13105         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
13106
13107 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13108
13109         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
13110         section.
13111         (Specific, mips*-sgi-irix5): Note IDO download.
13112         Reworded MIPS C hints.
13113         Use GNU as instead of GAS.
13114         Markup fixes.
13115         Removed SGI Freeware reference, IRIX 6 only.
13116         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
13117         Note N64 library requirement/workaround.
13118         Update O32 hints.
13119         Complete list of structure passing bug victims.
13120
13121 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13122
13123         * doc/install.texi: Remove CVS Id.
13124
13125 2001-07-02  Andreas Jaeger  <aj@suse.de>
13126
13127         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
13128         (find_inherently_necessary): Remove unused variable.
13129
13130 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
13131
13132         * c-common.h (TDI_inlined): New ast dump phase.
13133         (dump_flag_name): New function.
13134         * c-dump.c (dump_files): Add inlined phase.
13135         (dump_flag_name): Define.
13136         * doc/invoke.texi (-fdump-ast-inlined): Document.
13137
13138 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13139
13140         * stor-layout.c (layout_decl): Revert change to handling of alignment
13141         in packed types.
13142
13143 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13144
13145         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
13146         for FIELD_DECL.
13147
13148 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
13149
13150         * doc/tm.texi (FUNCTION_ARG): Document that the last call
13151         is special.
13152
13153 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
13154
13155         * tlink.c (recompile_files): Remove COMPILER_PATH and
13156         LIBRARY_PATH from the environment.
13157
13158 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
13159
13160         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
13161         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
13162         enumerators.
13163         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
13164
13165         * c-parse.in (OBJC_STRING): Kill.
13166         (objc_string): Decompose to [objc_string] '@' STRING.
13167         (reswords): Take the leading '@' off all the Objective C keywords.
13168         (objc_rid_sans_at): Kill.
13169         (init_reswords): Don't initialize it.
13170         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
13171         (_yylex): Kill reconsider label.  Look ahead one token after
13172         an '@'; if we get an identifier, check whether it's an
13173         Objective C @-keyword.  If so, return the keyword.  Otherwise,
13174         put back the token and return the '@' as a terminal.
13175
13176         * cpplib.c (lex_macro_node): Remove unnecessary check for
13177         leading '@' on identifier.  Clarify control flow and commentary.
13178
13179 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13180
13181         * cse.c (new_label_ref): Variable deleted.
13182         (insert): Remove set of new_label_ref.
13183         (check_for_label_ref): New function.
13184         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
13185
13186 See ChangeLog.5 for earlier changes.